paper_trail-sinatra 0.6.1 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -0
- data/lib/paper_trail/sinatra.rb +3 -4
- data/lib/paper_trail/sinatra/version.rb +1 -1
- data/paper_trail-sinatra.gemspec +0 -2
- metadata +3 -23
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 36573b85709697bd0e687f6c7b870d5e1d7beeebd110e9444557a7ce0cac7693
|
4
|
+
data.tar.gz: a3ea2ff6ace54f91317bc3e167775212fe2f3c908b42f82e6d6254e37de5841a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a11145f518abe19e18d631ce3ca6d3e12d6c1e31406321d3a8b52aa70153394f53793b03c6b77be1220690564f7b584c3936b9d71ee53f86f6ad09f13b6f4b1
|
7
|
+
data.tar.gz: 4cbd2f016c6f3e783f673e3bb727e4d858810a3d64d290f3133ca057580929f8be86e70a22351e67039b4cc20dcfe086e235cd646a3435cb431efc0ea2d494f3
|
data/CHANGELOG.md
CHANGED
@@ -19,6 +19,21 @@ Fixed
|
|
19
19
|
|
20
20
|
- None
|
21
21
|
|
22
|
+
## 0.7.0 (2020-04-23)
|
23
|
+
|
24
|
+
Breaking Changes
|
25
|
+
|
26
|
+
- None
|
27
|
+
|
28
|
+
Added
|
29
|
+
|
30
|
+
- None
|
31
|
+
|
32
|
+
Fixed
|
33
|
+
|
34
|
+
- [#11](https://github.com/paper-trail-gem/paper_trail-sinatra/pull/11) - Drop
|
35
|
+
`activesupport` dependency, thus allowing `activerecord` 6.0
|
36
|
+
|
22
37
|
## 0.6.1 (2019-03-18)
|
23
38
|
|
24
39
|
Breaking Changes
|
data/lib/paper_trail/sinatra.rb
CHANGED
@@ -20,15 +20,14 @@ module PaperTrail
|
|
20
20
|
protected
|
21
21
|
|
22
22
|
# Returns the user who is responsible for any changes that occur.
|
23
|
-
# By default this calls `current_user` and
|
23
|
+
# By default this calls `current_user#id` and falls back to
|
24
|
+
# `current_user`.
|
24
25
|
#
|
25
26
|
# Override this method in your controller to call a different
|
26
27
|
# method, e.g. `current_person`, or anything you like.
|
27
28
|
def user_for_paper_trail
|
28
29
|
return unless defined?(current_user)
|
29
|
-
|
30
|
-
rescue NoMethodError
|
31
|
-
current_user
|
30
|
+
current_user&.id || current_user
|
32
31
|
end
|
33
32
|
|
34
33
|
# Returns any information about the controller or request that you
|
data/paper_trail-sinatra.gemspec
CHANGED
@@ -19,8 +19,6 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
spec.required_ruby_version = ">= 2.3.0"
|
21
21
|
|
22
|
-
spec.add_dependency "activesupport", [">= 4.2", "< 6"]
|
23
|
-
|
24
22
|
# This gem should not be used with PT < 7 because both define
|
25
23
|
# `::PaperTrail::Sinatra`.
|
26
24
|
spec.add_dependency "paper_trail", [">= 9", "< 11"]
|
metadata
CHANGED
@@ -1,35 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paper_trail-sinatra
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jared Beck
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: activesupport
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '4.2'
|
20
|
-
- - "<"
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: '6'
|
23
|
-
type: :runtime
|
24
|
-
prerelease: false
|
25
|
-
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
requirements:
|
27
|
-
- - ">="
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '4.2'
|
30
|
-
- - "<"
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: '6'
|
33
13
|
- !ruby/object:Gem::Dependency
|
34
14
|
name: paper_trail
|
35
15
|
requirement: !ruby/object:Gem::Requirement
|
@@ -190,7 +170,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
190
170
|
- !ruby/object:Gem::Version
|
191
171
|
version: '0'
|
192
172
|
requirements: []
|
193
|
-
rubygems_version: 3.0.
|
173
|
+
rubygems_version: 3.0.6
|
194
174
|
signing_key:
|
195
175
|
specification_version: 4
|
196
176
|
summary: Sinatra support for paper_trail
|