activerecord-cause 0.6.0 → 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/.travis.yml +3 -2
- data/gemfiles/activerecord-503.gemfile +1 -1
- data/gemfiles/{activerecord-42.gemfile → activerecord-507.gemfile} +1 -1
- data/gemfiles/activerecord-520.gemfile +5 -0
- data/lib/activerecord/cause.rb +13 -5
- data/lib/activerecord/cause/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b250d617951e3b932f47b8fda71f160c377160012da71a7dd8faf99239e9cec
|
4
|
+
data.tar.gz: 17ee71c74d35a087f5e5a56a1af1a588793f8cbd01abcf795af2d8620881b0ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6cfc824376e838125fdd2b1c837d911e6ce11144249cde93866fe06de6bdc618b666f4bff5c7ddec4744b5c541514a10377f7d85698b90c084016141b2733832
|
7
|
+
data.tar.gz: 474115ac96f9b6daef25398c4dbb2f0fae75176dda8813b3f0785ae083d8fff8cc8fa4b84a6a2d67e6dff8abd01f028cba0bc7d367f2f5fcc04a3afec7aff364
|
data/.travis.yml
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
language: ruby
|
2
2
|
sudo: false
|
3
3
|
rvm:
|
4
|
+
- 2.5.1
|
4
5
|
- 2.4.1
|
5
|
-
- 2.3.3
|
6
6
|
gemfile:
|
7
|
-
- gemfiles/activerecord-42.gemfile
|
8
7
|
- gemfiles/activerecord-502.gemfile
|
9
8
|
- gemfiles/activerecord-503.gemfile
|
9
|
+
- gemfiles/activerecord-507.gemfile
|
10
10
|
- gemfiles/activerecord-514.gemfile
|
11
11
|
- gemfiles/activerecord-515.gemfile
|
12
|
+
- gemfiles/activerecord-520.gemfile
|
data/lib/activerecord/cause.rb
CHANGED
@@ -166,12 +166,20 @@ end
|
|
166
166
|
require "activerecord/cause/railtie" if defined?(Rails)
|
167
167
|
|
168
168
|
ActiveSupport.on_load(:active_record) do
|
169
|
-
if ActiveRecord.version >= Gem::Version.new("5.1.
|
170
|
-
ActiveRecord::
|
171
|
-
|
172
|
-
|
169
|
+
if ActiveRecord.version >= Gem::Version.new("5.1.0")
|
170
|
+
if ActiveRecord.version >= Gem::Version.new("5.1.5")
|
171
|
+
ActiveRecord::Cause::LogSubscriberAR515.attach_to :active_record
|
172
|
+
else
|
173
|
+
ActiveRecord::Cause::LogSubscriberAR503.attach_to :active_record
|
174
|
+
end
|
173
175
|
elsif ActiveRecord.version >= Gem::Version.new("5.0.0")
|
174
|
-
ActiveRecord::
|
176
|
+
if ActiveRecord.version >= Gem::Version.new("5.0.7")
|
177
|
+
ActiveRecord::Cause::LogSubscriberAR515.attach_to :active_record
|
178
|
+
elsif ActiveRecord.version >= Gem::Version.new("5.0.3")
|
179
|
+
ActiveRecord::Cause::LogSubscriberAR503.attach_to :active_record
|
180
|
+
elsif ActiveRecord.version >= Gem::Version.new("5.0.0")
|
181
|
+
ActiveRecord::Cause::LogSubscriberAR502.attach_to :active_record
|
182
|
+
end
|
175
183
|
else
|
176
184
|
ActiveRecord::Cause::LogSubscriberAR4.attach_to :active_record
|
177
185
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-cause
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- joker1007
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-08-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -96,11 +96,12 @@ files:
|
|
96
96
|
- activerecord-cause.gemspec
|
97
97
|
- bin/console
|
98
98
|
- bin/setup
|
99
|
-
- gemfiles/activerecord-42.gemfile
|
100
99
|
- gemfiles/activerecord-502.gemfile
|
101
100
|
- gemfiles/activerecord-503.gemfile
|
101
|
+
- gemfiles/activerecord-507.gemfile
|
102
102
|
- gemfiles/activerecord-514.gemfile
|
103
103
|
- gemfiles/activerecord-515.gemfile
|
104
|
+
- gemfiles/activerecord-520.gemfile
|
104
105
|
- lib/activerecord-cause.rb
|
105
106
|
- lib/activerecord/cause.rb
|
106
107
|
- lib/activerecord/cause/railtie.rb
|
@@ -124,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
124
125
|
version: '0'
|
125
126
|
requirements: []
|
126
127
|
rubyforge_project:
|
127
|
-
rubygems_version: 2.7.
|
128
|
+
rubygems_version: 2.7.7
|
128
129
|
signing_key:
|
129
130
|
specification_version: 4
|
130
131
|
summary: This gem logs where ActiveRecord actually loads record
|