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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 54ca7b1399c8230ab12deef17b2639e5d6b0e06aa564bead2daeb246ee720880
4
- data.tar.gz: 71cde8d2f692c8f27a82de10434bb05369eb09a6073ba1f330100f5467f57cae
3
+ metadata.gz: 7b250d617951e3b932f47b8fda71f160c377160012da71a7dd8faf99239e9cec
4
+ data.tar.gz: 17ee71c74d35a087f5e5a56a1af1a588793f8cbd01abcf795af2d8620881b0ea
5
5
  SHA512:
6
- metadata.gz: d7f68258e9ec31b850ba51b6975f61e28b8c5bab019219efc199e3cb55b05113ba253722f44c2d124df94471a15483e97de5a7118b395c881cf56a01ffdf0948
7
- data.tar.gz: b7816dded9c23a9c1e4779333c90f57190b3824212ebd276cc43325520cb6e8db3a9232dddd3da92aa7da60a3ca193d48153b7c9a1ab7a174ba9ab192618b061
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
@@ -1,5 +1,5 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- gem "activerecord", "~> 5.0.3"
3
+ gem "activerecord", "~> 5.0.3", "< 5.0.7"
4
4
 
5
5
  gemspec :path => "../"
@@ -1,5 +1,5 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- gem "activerecord", "~> 4.2.0"
3
+ gem "activerecord", "~> 5.0.7"
4
4
 
5
5
  gemspec :path => "../"
@@ -0,0 +1,5 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "activerecord", "~> 5.2.0"
4
+
5
+ gemspec :path => "../"
@@ -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.5")
170
- ActiveRecord::Cause::LogSubscriberAR515.attach_to :active_record
171
- elsif ActiveRecord.version >= Gem::Version.new("5.0.3")
172
- ActiveRecord::Cause::LogSubscriberAR503.attach_to :active_record
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::Cause::LogSubscriberAR502.attach_to :active_record
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
@@ -1,5 +1,5 @@
1
1
  module ActiveRecord
2
2
  module Cause
3
- VERSION = "0.6.0"
3
+ VERSION = "0.7.0"
4
4
  end
5
5
  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.6.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-03-20 00:00:00.000000000 Z
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.6
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