1
0
Fork 0
mirror of https://github.com/paper-trail-gem/paper_trail.git synced 2022-11-09 11:33:19 -05:00
paper-trail-gem--paper_trail/paper_trail.gemspec

88 lines
3.6 KiB
Ruby
Raw Normal View History

2017-12-10 23:05:11 -05:00
# frozen_string_literal: true
2018-03-27 18:32:52 -04:00
$LOAD_PATH.unshift File.expand_path("lib", __dir__)
require "paper_trail/compatibility"
require "paper_trail/version_number"
2009-05-27 13:31:20 -04:00
Gem::Specification.new do |s|
s.name = "paper_trail"
2016-12-30 11:47:50 -05:00
s.version = PaperTrail::VERSION::STRING
s.platform = Gem::Platform::RUBY
s.summary = "Track changes to your models."
s.description = <<-EOS
Track changes to your models, for auditing or versioning. See how a model looked
at any stage in its lifecycle, revert it to any version, or restore it after it
has been destroyed.
EOS
2018-05-09 07:25:56 -04:00
s.homepage = "https://github.com/paper-trail-gem/paper_trail"
2017-06-09 20:46:08 -04:00
s.authors = ["Andy Stewart", "Ben Atkins", "Jared Beck"]
2017-12-15 11:47:32 -05:00
s.email = "jared@jaredbeck.com"
s.license = "MIT"
2009-05-27 13:31:20 -04:00
# > Files included in this gem. .. Only add files you can require to this
# > list, not directories, etc.
# > https://guides.rubygems.org/specification-reference/#files
#
# > Avoid using `git ls-files` to produce lists of files. Downstreams (OS
# > packagers) often need to build your package in an environment that does
# > not have git (on purpose).
# > https://packaging.rubystyle.guide/#using-git-in-gemspec
#
# By convention, the `.gemspec` is omitted. Tests and related files (like
# `Gemfile`) are omitted. Documentation is omitted because it would double
# gem size. See discussion:
# https://github.com/paper-trail-gem/paper_trail/pull/1279#pullrequestreview-558840513
s.files = Dir["lib/**/*", "LICENSE"].reject { |f| File.directory?(f) }
s.executables = []
s.require_paths = ["lib"]
2010-10-15 07:53:33 -04:00
s.required_rubygems_version = ">= 1.3.6"
2020-12-26 20:40:34 -05:00
# PT supports ruby versions until they reach End-of-Life, historically
# about 3 years, per https://www.ruby-lang.org/en/downloads/branches/
#
2020-12-26 20:48:45 -05:00
# See "Lowest supported ruby version" in CONTRIBUTING.md
2020-12-26 20:40:34 -05:00
#
# Ruby 2.5 reaches EoL on 2021-03-31.
s.required_ruby_version = ">= 2.5.0"
2013-12-11 17:45:50 -05:00
# We no longer specify a maximum activerecord version.
# See discussion in paper_trail/compatibility.rb
s.add_dependency "activerecord", ::PaperTrail::Compatibility::ACTIVERECORD_GTE
s.add_dependency "request_store", "~> 1.1"
2011-02-08 12:16:35 -05:00
2017-10-17 18:14:16 -04:00
s.add_development_dependency "appraisal", "~> 2.2"
2019-08-06 00:50:41 -04:00
s.add_development_dependency "byebug", "~> 11.0"
2019-08-06 00:48:57 -04:00
s.add_development_dependency "ffaker", "~> 2.11"
2017-10-17 18:14:16 -04:00
s.add_development_dependency "generator_spec", "~> 0.9.4"
s.add_development_dependency "memory_profiler", "~> 0.9.14"
# For `spec/dummy_app`. Technically, we only need `actionpack` (as of 2020).
# However, that might change in the future, and the advantages of specifying a
# subset (e.g. actionpack only) are unclear.
s.add_development_dependency "rails", ::PaperTrail::Compatibility::ACTIVERECORD_GTE
2020-05-03 00:41:55 -04:00
s.add_development_dependency "rake", "~> 13.0"
2020-05-03 00:55:04 -04:00
s.add_development_dependency "rspec-rails", "~> 4.0"
2021-03-20 23:48:30 -04:00
s.add_development_dependency "rubocop", "~> 1.11.0"
s.add_development_dependency "rubocop-rails", "~> 2.9.1"
s.add_development_dependency "rubocop-packaging", "~> 0.5.1"
2021-03-20 23:48:30 -04:00
s.add_development_dependency "rubocop-performance", "~> 1.10.1"
s.add_development_dependency "rubocop-rspec", "~> 2.2.0"
2019-10-21 13:22:58 -04:00
# ## Database Adapters
#
# The dependencies here must match the `gem` call at the top of their
# adapters, eg. `active_record/connection_adapters/mysql2_adapter.rb`,
# assuming said call is consistent for all versions of rails we test against
# (see `Appraisals`).
#
# Currently, all versions of rails we test against are consistent. In the past,
# when we tested against rails 4.2, we had to specify database adapters in
# `Appraisals`.
2019-10-21 13:45:18 -04:00
s.add_development_dependency "mysql2", "~> 0.5"
2019-10-21 13:22:58 -04:00
s.add_development_dependency "pg", ">= 0.18", "< 2.0"
s.add_development_dependency "sqlite3", "~> 1.4"
2009-05-27 13:31:20 -04:00
end