2016-03-05 17:07:32 -05:00
|
|
|
$LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
|
|
|
|
require "paper_trail/version_number"
|
2009-05-27 13:31:20 -04:00
|
|
|
|
|
|
|
Gem::Specification.new do |s|
|
2016-04-09 00:31:44 -04:00
|
|
|
s.name = "paper_trail"
|
2016-08-23 02:16:40 -04:00
|
|
|
s.version = PaperTrail::VERSION::STRING.dup # The `dup` is for ruby 1.9.3
|
2016-04-09 00:31:44 -04:00
|
|
|
s.platform = Gem::Platform::RUBY
|
|
|
|
s.summary = "Track changes to your models' data. Good for auditing or versioning."
|
|
|
|
s.description = s.summary
|
|
|
|
s.homepage = "https://github.com/airblade/paper_trail"
|
|
|
|
s.authors = ["Andy Stewart", "Ben Atkins"]
|
|
|
|
s.email = "batkinz@gmail.com"
|
|
|
|
s.license = "MIT"
|
2009-05-27 13:31:20 -04:00
|
|
|
|
2016-04-09 00:31:44 -04:00
|
|
|
s.files = `git ls-files`.split("\n")
|
|
|
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
|
|
|
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
|
2016-03-05 17:07:32 -05:00
|
|
|
s.require_paths = ["lib"]
|
2010-10-15 07:53:33 -04:00
|
|
|
|
2016-03-05 17:07:32 -05:00
|
|
|
s.required_rubygems_version = ">= 1.3.6"
|
|
|
|
s.required_ruby_version = ">= 1.9.3"
|
2013-12-11 17:45:50 -05:00
|
|
|
|
2016-11-22 13:08:15 -05:00
|
|
|
# Rails 5.1 will deprecate the current behavior of AR::Dirty
|
|
|
|
# (https://github.com/rails/rails/pull/25337) which is pretty important
|
|
|
|
# to PT. I haven't found good instructions yet on how to upgrade, but
|
|
|
|
# Sean Griffin described it as easy, on his podcast (http://bikeshed.fm/87).
|
|
|
|
s.add_dependency "activerecord", [">= 3.0", "< 5.1"]
|
2016-03-05 17:07:32 -05:00
|
|
|
s.add_dependency "request_store", "~> 1.1"
|
2011-02-08 12:16:35 -05:00
|
|
|
|
2016-03-05 17:07:32 -05:00
|
|
|
s.add_development_dependency "appraisal", "~> 2.1"
|
|
|
|
s.add_development_dependency "rake", "~> 10.4.2"
|
|
|
|
s.add_development_dependency "shoulda", "~> 3.5.0"
|
|
|
|
s.add_development_dependency "ffaker", "~> 2.1.0"
|
|
|
|
s.add_development_dependency "railties", [">= 3.0", "< 6.0"]
|
|
|
|
s.add_development_dependency "rack-test", "~> 0.6.3"
|
2016-08-21 23:51:34 -04:00
|
|
|
s.add_development_dependency "rspec-rails", "~> 3.5"
|
2016-03-05 17:07:32 -05:00
|
|
|
s.add_development_dependency "generator_spec", "~> 0.9.3"
|
|
|
|
s.add_development_dependency "database_cleaner", "~> 1.2"
|
|
|
|
s.add_development_dependency "pry-nav", "~> 0.2.4"
|
2016-06-27 03:02:33 -04:00
|
|
|
s.add_development_dependency "rubocop", "~> 0.41.1"
|
2016-03-05 17:07:32 -05:00
|
|
|
s.add_development_dependency "timecop", "~> 0.8.0"
|
2013-08-07 10:54:19 -04:00
|
|
|
|
2015-12-19 18:50:57 -05:00
|
|
|
if defined?(JRUBY_VERSION)
|
2016-03-05 17:07:32 -05:00
|
|
|
s.add_development_dependency "activerecord-jdbcsqlite3-adapter", "~> 1.3.15"
|
|
|
|
s.add_development_dependency "activerecord-jdbcpostgresql-adapter", "~> 1.3.15"
|
|
|
|
s.add_development_dependency "activerecord-jdbcmysql-adapter", "~> 1.3.15"
|
2015-12-19 18:50:57 -05:00
|
|
|
else
|
2016-03-05 17:07:32 -05:00
|
|
|
s.add_development_dependency "sqlite3", "~> 1.2"
|
2016-09-27 17:41:58 -04:00
|
|
|
|
2016-09-30 23:46:04 -04:00
|
|
|
# pg 0.19 requires ruby >= 2.0.0
|
|
|
|
if ::Gem.ruby_version >= ::Gem::Version.new("2.0.0")
|
|
|
|
s.add_development_dependency "pg", "~> 0.19.0"
|
|
|
|
else
|
|
|
|
s.add_development_dependency "pg", [">= 0.17", "< 0.19"]
|
|
|
|
end
|
2015-12-19 18:56:38 -05:00
|
|
|
|
|
|
|
# activerecord >= 4.2.5 may use mysql2 >= 0.4
|
2016-03-05 17:07:32 -05:00
|
|
|
s.add_development_dependency "mysql2", "~> 0.4.2"
|
2013-03-26 12:28:16 -04:00
|
|
|
end
|
2009-05-27 13:31:20 -04:00
|
|
|
end
|