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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 021a2412757e54989a43c3e99fe84733b76541672eb3088cec3ebdde634fccf5
4
- data.tar.gz: f37236192a3b5cec5b6c79e4fb725af5fd9b12402d83ad93659e1273aa52154a
3
+ metadata.gz: 36573b85709697bd0e687f6c7b870d5e1d7beeebd110e9444557a7ce0cac7693
4
+ data.tar.gz: a3ea2ff6ace54f91317bc3e167775212fe2f3c908b42f82e6d6254e37de5841a
5
5
  SHA512:
6
- metadata.gz: 7f59c5d93e87a2e3aba9f2afd2824eb553da06043c29a0cdccfbd0c5f20eeac93f7f12446a044327b6e5811aec5a23289cfeedc4076c3047fd9b9dac6b44be26
7
- data.tar.gz: 1385f5215ea7071ac7f79fd9b901c2892a92a6577c6f10941bebf6ec064d4bfd4abf1e0d0826c151510811c2c9fe88421be7424e007413615fe6a96f39d3f9f5
6
+ metadata.gz: 4a11145f518abe19e18d631ce3ca6d3e12d6c1e31406321d3a8b52aa70153394f53793b03c6b77be1220690564f7b584c3936b9d71ee53f86f6ad09f13b6f4b1
7
+ data.tar.gz: 4cbd2f016c6f3e783f673e3bb727e4d858810a3d64d290f3133ca057580929f8be86e70a22351e67039b4cc20dcfe086e235cd646a3435cb431efc0ea2d494f3
@@ -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
@@ -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 returns the result.
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
- ActiveSupport::VERSION::MAJOR >= 4 ? current_user.try!(:id) : current_user.try(:id)
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
@@ -1,6 +1,6 @@
1
1
  module PaperTrail
2
2
  module Sinatra
3
- VERSION = "0.6.1"
3
+ VERSION = "0.7.0"
4
4
 
5
5
  # Added in 0.5.0
6
6
  # @api public
@@ -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.6.1
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: 2019-03-18 00:00:00.000000000 Z
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.3
173
+ rubygems_version: 3.0.6
194
174
  signing_key:
195
175
  specification_version: 4
196
176
  summary: Sinatra support for paper_trail