2011-02-08 12:16:35 -05:00
|
|
|
$LOAD_PATH.unshift File.expand_path('../lib', __FILE__)
|
2010-10-12 08:15:56 -04:00
|
|
|
require 'paper_trail/version_number'
|
2009-05-27 13:31:20 -04:00
|
|
|
|
|
|
|
Gem::Specification.new do |s|
|
2011-02-08 12:16:35 -05:00
|
|
|
s.name = 'paper_trail'
|
2014-06-11 14:55:04 -04:00
|
|
|
s.version = PaperTrail.version
|
2013-09-04 10:29:04 -04:00
|
|
|
s.platform = Gem::Platform::RUBY
|
2013-11-16 19:00:31 -05:00
|
|
|
s.summary = "Track changes to your models' data. Good for auditing or versioning."
|
2011-02-08 12:16:35 -05:00
|
|
|
s.description = s.summary
|
2013-12-11 17:45:50 -05:00
|
|
|
s.homepage = 'https://github.com/airblade/paper_trail'
|
2013-08-07 10:54:19 -04:00
|
|
|
s.authors = ['Andy Stewart', 'Ben Atkins']
|
2013-11-16 19:00:31 -05:00
|
|
|
s.email = 'batkinz@gmail.com'
|
2013-09-04 10:29:04 -04:00
|
|
|
s.license = 'MIT'
|
2009-05-27 13:31:20 -04:00
|
|
|
|
2011-02-08 12:16:35 -05: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) }
|
|
|
|
s.require_paths = ['lib']
|
2010-10-15 07:53:33 -04:00
|
|
|
|
2013-12-11 17:45:50 -05:00
|
|
|
s.required_rubygems_version = '>= 1.3.6'
|
|
|
|
|
2014-12-30 16:57:32 -05:00
|
|
|
s.add_dependency 'activerecord', ['>= 3.0', '< 6.0']
|
|
|
|
s.add_dependency 'activesupport', ['>= 3.0', '< 6.0']
|
2015-02-03 16:28:43 -05:00
|
|
|
s.add_dependency 'request_store', '~> 1.1.0'
|
2011-02-08 12:16:35 -05:00
|
|
|
|
2014-03-25 14:42:43 -04:00
|
|
|
s.add_development_dependency 'rake', '~> 10.1.1'
|
2013-07-31 20:37:04 -04:00
|
|
|
s.add_development_dependency 'shoulda', '~> 3.5'
|
2013-11-16 19:00:31 -05:00
|
|
|
# s.add_development_dependency 'shoulda-matchers', '~> 1.5' # needed for ActiveRecord < 4
|
2015-02-05 11:13:10 -05:00
|
|
|
s.add_development_dependency 'ffaker', '<= 1.31.0'
|
2013-08-13 17:10:41 -04:00
|
|
|
s.add_development_dependency 'railties', ['>= 3.0', '< 5.0']
|
|
|
|
s.add_development_dependency 'sinatra', '~> 1.0'
|
|
|
|
s.add_development_dependency 'rack-test', '>= 0.6'
|
2014-10-09 15:04:17 -04:00
|
|
|
s.add_development_dependency 'rspec-rails', '~> 3.1.0'
|
2014-03-07 16:06:18 -05:00
|
|
|
s.add_development_dependency 'generator_spec'
|
2014-05-09 11:05:58 -04:00
|
|
|
s.add_development_dependency 'database_cleaner', '~> 1.2'
|
2014-11-03 20:20:37 -05:00
|
|
|
|
|
|
|
# Allow time travel in testing. timecop is only supported after 1.9.2 but does a better cleanup at 'return'
|
|
|
|
if RUBY_VERSION < "1.9.2"
|
|
|
|
s.add_development_dependency 'delorean'
|
|
|
|
else
|
|
|
|
s.add_development_dependency 'timecop'
|
|
|
|
end
|
2013-08-07 10:54:19 -04:00
|
|
|
|
2013-03-26 12:28:16 -04:00
|
|
|
# JRuby support for the test ENV
|
|
|
|
unless defined?(JRUBY_VERSION)
|
|
|
|
s.add_development_dependency 'sqlite3', '~> 1.2'
|
2014-03-14 16:11:10 -04:00
|
|
|
s.add_development_dependency 'mysql2', '~> 0.3'
|
|
|
|
s.add_development_dependency 'pg', '~> 0.17'
|
2013-03-26 12:28:16 -04:00
|
|
|
else
|
2013-10-10 16:11:22 -04:00
|
|
|
s.add_development_dependency 'activerecord-jdbcsqlite3-adapter', '~> 1.3'
|
2014-03-14 16:11:10 -04:00
|
|
|
s.add_development_dependency 'activerecord-jdbcpostgresql-adapter', '~> 1.3'
|
|
|
|
s.add_development_dependency 'activerecord-jdbcmysql-adapter', '~> 1.3'
|
2013-03-26 12:28:16 -04:00
|
|
|
end
|
2009-05-27 13:31:20 -04:00
|
|
|
end
|