<commit_before># -*- encoding: utf-8 -*-
$:.push File.expand_path('../lib', __FILE__)
require 'public_activity/version'

Gem::Specification.new do |s|
  s.name = 'public_activity'
  s.version = PublicActivity::VERSION
  s.platform = Gem::Platform::RUBY
  s.authors = ["<NAME>", "<NAME>"]
  s.email = "<EMAIL>"
  s.homepage = 'https://github.com/pokonski/public_activity'
  s.summary = "Easy activity tracking for ActiveRecord models"
  s.description = "Easy activity tracking for your ActiveRecord models. Provides Activity model with details about actions performed by your users, like adding comments, responding etc."
  s.license = "MIT"

  s.files = `git ls-files lib`.split("\n") + ['Gemfile','Rakefile','README.md', 'MIT-LICENSE']
  s.test_files = `git ls-files test`.split("\n")
  s.require_paths = ['lib']

  s.required_ruby_version = '>= 1.9.2'

  if File.exist?('UPGRADING')
    s.post_install_message = File.read("UPGRADING")
  end

  s.add_dependency 'actionpack', '>= 3.0.0'
  s.add_dependency 'railties', '>= 3.0.0'
  s.add_dependency 'i18n', '>= 0.5.0'

  ENV['PA_ORM'] ||= 'active_record'
  case ENV['PA_ORM']
  when 'active_record'
    s.add_dependency 'activerecord', '>= 3.0'
  when 'mongoid'
    s.add_dependency 'mongoid',      '~> 3.0'
  when 'mongo_mapper'
    s.add_dependency 'bson_ext'
    s.add_dependency 'mongo_mapper', '>= 0.12.0'
  end

  s.add_development_dependency 'sqlite3', '~> 1.3.7'
  s.add_development_dependency 'mocha', '~> 0.13.0'
  s.add_development_dependency 'simplecov', '~> 0.7.0'
  s.add_development_dependency 'minitest', '~> 4.7.5'
  s.add_development_dependency 'redcarpet'
  s.add_development_dependency 'yard', '~> 0.8'
  s.add_development_dependency 'pry'
end
<commit_msg>Fix tests by forcing mongo <= 1.9.2 dependency mongo-mapper gem relies on mongo 1.x but versions >= 1.10.0 started using upsert in a way that is incompatible with mongo 3.x<commit_after># -*- encoding: utf-8 -*-
$:.push File.expand_path('../lib', __FILE__)
require 'public_activity/version'

Gem::Specification.new do |s|
  s.name = 'public_activity'
  s.version = PublicActivity::VERSION
  s.platform = Gem::Platform::RUBY
  s.authors = ["<NAME>", "<NAME>"]
  s.email = "<EMAIL>"
  s.homepage = 'https://github.com/pokonski/public_activity'
  s.summary = "Easy activity tracking for ActiveRecord models"
  s.description = "Easy activity tracking for your ActiveRecord models. Provides Activity model with details about actions performed by your users, like adding comments, responding etc."
  s.license = "MIT"

  s.files = `git ls-files lib`.split("\n") + ['Gemfile','Rakefile','README.md', 'MIT-LICENSE']
  s.test_files = `git ls-files test`.split("\n")
  s.require_paths = ['lib']

  s.required_ruby_version = '>= 1.9.2'

  if File.exist?('UPGRADING')
    s.post_install_message = File.read("UPGRADING")
  end

  s.add_dependency 'actionpack', '>= 3.0.0'
  s.add_dependency 'railties', '>= 3.0.0'
  s.add_dependency 'i18n', '>= 0.5.0'

  ENV['PA_ORM'] ||= 'active_record'
  case ENV['PA_ORM']
  when 'active_record'
    s.add_dependency 'activerecord', '>= 3.0'
  when 'mongoid'
    s.add_dependency 'mongoid',      '~> 3.0'
  when 'mongo_mapper'
    s.add_dependency 'bson_ext'
    s.add_dependency 'mongo_mapper', '>= 0.12.0'
    s.add_dependency 'mongo', '<= 1.9.2'
  end

  s.add_development_dependency 'sqlite3', '~> 1.3.7'
  s.add_development_dependency 'mocha', '~> 0.13.0'
  s.add_development_dependency 'simplecov', '~> 0.7.0'
  s.add_development_dependency 'minitest', '~> 4.7.5'
  s.add_development_dependency 'redcarpet'
  s.add_development_dependency 'yard', '~> 0.8'
  s.add_development_dependency 'pry'
end

{'fraction_non_alphanumeric': 0.16511500547645125, 'fraction_numerical': 0.024644030668127054, 'mean_word_length': 4.174220963172805, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 34, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7114310', 'n_tokens_mistral': 1458, 'n_tokens_neox': 1340, 'n_words': 284}