paper_trail 11.0.0 → 11.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +4 -0
- data/LICENSE +20 -0
- data/lib/paper_trail/compatibility.rb +1 -1
- data/lib/paper_trail/has_paper_trail.rb +1 -1
- data/lib/paper_trail/version_number.rb +1 -1
- data/paper_trail.gemspec +69 -0
- metadata +19 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c312ab701b8ab7b26df37957b03b9f01b6ce6cbe0e5e25d4c478258f5bec1d6f
|
4
|
+
data.tar.gz: 62e94f6c2fa657d4c24f0fe6ecdf5abf3c8ae785e7b25f88611fc18e6d4324a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b59d91302dde736a2476240eadb9306938db2521594cf55de792c9678324762c4a1ffedfa5a53c3fc0fd9e37a87bc1b6ea4e74e68535b80fe70342d48a221532
|
7
|
+
data.tar.gz: b4aba2c107556fd6fbf758d9373f147c9b9bb0d1e6059bb3e2ad28b77906e980c559bd3c888fe9734665182cbe294bf470e77527a5536e202b8f32a5b7993516
|
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2009 Andy Stewart, AirBlade Software Ltd.
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@@ -18,7 +18,7 @@ module PaperTrail
|
|
18
18
|
# versions.
|
19
19
|
module Compatibility
|
20
20
|
ACTIVERECORD_GTE = ">= 5.2" # enforced in gemspec
|
21
|
-
ACTIVERECORD_LT = "< 6.
|
21
|
+
ACTIVERECORD_LT = "< 6.2" # not enforced in gemspec
|
22
22
|
|
23
23
|
E_INCOMPATIBLE_AR = <<-EOS
|
24
24
|
PaperTrail %s is not compatible with ActiveRecord %s. We allow PT
|
data/paper_trail.gemspec
ADDED
@@ -0,0 +1,69 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
$LOAD_PATH.unshift File.expand_path("lib", __dir__)
|
4
|
+
require "paper_trail/compatibility"
|
5
|
+
require "paper_trail/version_number"
|
6
|
+
|
7
|
+
Gem::Specification.new do |s|
|
8
|
+
s.name = "paper_trail"
|
9
|
+
s.version = PaperTrail::VERSION::STRING
|
10
|
+
s.platform = Gem::Platform::RUBY
|
11
|
+
s.summary = "Track changes to your models."
|
12
|
+
s.description = <<-EOS
|
13
|
+
Track changes to your models, for auditing or versioning. See how a model looked
|
14
|
+
at any stage in its lifecycle, revert it to any version, or restore it after it
|
15
|
+
has been destroyed.
|
16
|
+
EOS
|
17
|
+
s.homepage = "https://github.com/paper-trail-gem/paper_trail"
|
18
|
+
s.authors = ["Andy Stewart", "Ben Atkins", "Jared Beck"]
|
19
|
+
s.email = "jared@jaredbeck.com"
|
20
|
+
s.license = "MIT"
|
21
|
+
|
22
|
+
s.files = `git ls-files -z`.split("\x0").select { |f|
|
23
|
+
f.match(%r{^(Gemfile|LICENSE|lib/|paper_trail.gemspec)})
|
24
|
+
}
|
25
|
+
s.executables = []
|
26
|
+
s.require_paths = ["lib"]
|
27
|
+
|
28
|
+
s.required_rubygems_version = ">= 1.3.6"
|
29
|
+
|
30
|
+
# Ruby 2.4 reaches EoL at the end of March of 2020
|
31
|
+
# https://www.ruby-lang.org/en/news/2019/10/02/ruby-2-4-9-released/
|
32
|
+
s.required_ruby_version = ">= 2.4.0"
|
33
|
+
|
34
|
+
# We no longer specify a maximum activerecord version.
|
35
|
+
# See discussion in paper_trail/compatibility.rb
|
36
|
+
s.add_dependency "activerecord", ::PaperTrail::Compatibility::ACTIVERECORD_GTE
|
37
|
+
s.add_dependency "request_store", "~> 1.1"
|
38
|
+
|
39
|
+
s.add_development_dependency "appraisal", "~> 2.2"
|
40
|
+
s.add_development_dependency "byebug", "~> 11.0"
|
41
|
+
s.add_development_dependency "ffaker", "~> 2.11"
|
42
|
+
s.add_development_dependency "generator_spec", "~> 0.9.4"
|
43
|
+
s.add_development_dependency "memory_profiler", "~> 0.9.14"
|
44
|
+
|
45
|
+
# For `spec/dummy_app`. Technically, we only need `actionpack` (as of 2020).
|
46
|
+
# However, that might change in the future, and the advantages of specifying a
|
47
|
+
# subset (e.g. actionpack only) are unclear.
|
48
|
+
s.add_development_dependency "rails", ::PaperTrail::Compatibility::ACTIVERECORD_GTE
|
49
|
+
|
50
|
+
s.add_development_dependency "rake", "~> 13.0"
|
51
|
+
s.add_development_dependency "rspec-rails", "~> 4.0"
|
52
|
+
s.add_development_dependency "rubocop", "~> 0.89.1"
|
53
|
+
s.add_development_dependency "rubocop-performance", "~> 1.7.1"
|
54
|
+
s.add_development_dependency "rubocop-rspec", "~> 1.42.0"
|
55
|
+
|
56
|
+
# ## Database Adapters
|
57
|
+
#
|
58
|
+
# The dependencies here must match the `gem` call at the top of their
|
59
|
+
# adapters, eg. `active_record/connection_adapters/mysql2_adapter.rb`,
|
60
|
+
# assuming said call is consistent for all versions of rails we test against
|
61
|
+
# (see `Appraisals`).
|
62
|
+
#
|
63
|
+
# Currently, all versions of rails we test against are consistent. In the past,
|
64
|
+
# when we tested against rails 4.2, we had to specify database adapters in
|
65
|
+
# `Appraisals`.
|
66
|
+
s.add_development_dependency "mysql2", "~> 0.5"
|
67
|
+
s.add_development_dependency "pg", ">= 0.18", "< 2.0"
|
68
|
+
s.add_development_dependency "sqlite3", "~> 1.4"
|
69
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paper_trail
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 11.
|
4
|
+
version: 11.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Stewart
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2020-
|
13
|
+
date: 2020-12-16 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activerecord
|
@@ -110,6 +110,20 @@ dependencies:
|
|
110
110
|
- - "~>"
|
111
111
|
- !ruby/object:Gem::Version
|
112
112
|
version: 0.9.14
|
113
|
+
- !ruby/object:Gem::Dependency
|
114
|
+
name: rails
|
115
|
+
requirement: !ruby/object:Gem::Requirement
|
116
|
+
requirements:
|
117
|
+
- - ">="
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
version: '5.2'
|
120
|
+
type: :development
|
121
|
+
prerelease: false
|
122
|
+
version_requirements: !ruby/object:Gem::Requirement
|
123
|
+
requirements:
|
124
|
+
- - ">="
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: '5.2'
|
113
127
|
- !ruby/object:Gem::Dependency
|
114
128
|
name: rake
|
115
129
|
requirement: !ruby/object:Gem::Requirement
|
@@ -237,6 +251,8 @@ executables: []
|
|
237
251
|
extensions: []
|
238
252
|
extra_rdoc_files: []
|
239
253
|
files:
|
254
|
+
- Gemfile
|
255
|
+
- LICENSE
|
240
256
|
- lib/generators/paper_trail/install/USAGE
|
241
257
|
- lib/generators/paper_trail/install/install_generator.rb
|
242
258
|
- lib/generators/paper_trail/install/templates/add_object_changes_to_versions.rb.erb
|
@@ -279,6 +295,7 @@ files:
|
|
279
295
|
- lib/paper_trail/type_serializers/postgres_array_serializer.rb
|
280
296
|
- lib/paper_trail/version_concern.rb
|
281
297
|
- lib/paper_trail/version_number.rb
|
298
|
+
- paper_trail.gemspec
|
282
299
|
homepage: https://github.com/paper-trail-gem/paper_trail
|
283
300
|
licenses:
|
284
301
|
- MIT
|