activerecord-cause 0.4.0 → 0.5.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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a18619979f3889a97e7280fe083029b4f83c42c4
|
4
|
+
data.tar.gz: 3163a8a41f7aaa493fbeab493d6dface52e2f9e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5195069b3cb3f905d625d26ee8c75ea92ecab47c3d5056cfdcc30969b59163e0b499365fdb7ee946da10a76bb8f4e1a32bdc6a3e14e954da40a3ea0dfac71033
|
7
|
+
data.tar.gz: d081b98ce509d9c768186888621967d1d5d1261765da82f0f26cbebdd25796b49593951d0ce1d13dafa1626dd4dd70cd1bfb1862d74859cd202c508e04c423c1
|
data/.travis.yml
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
language: ruby
|
2
2
|
sudo: false
|
3
3
|
rvm:
|
4
|
-
- 2.
|
5
|
-
- 2.
|
4
|
+
- 2.4.1
|
5
|
+
- 2.3.3
|
6
6
|
gemfile:
|
7
|
-
- gemfiles/activerecord-41.gemfile
|
8
7
|
- gemfiles/activerecord-42.gemfile
|
8
|
+
- gemfiles/activerecord-502.gemfile
|
9
9
|
- gemfiles/activerecord-50.gemfile
|
10
|
+
- gemfiles/activerecord-51.gemfile
|
data/Rakefile
CHANGED
@@ -7,7 +7,7 @@ task :default => :spec
|
|
7
7
|
|
8
8
|
pwd = File.expand_path('../', __FILE__)
|
9
9
|
|
10
|
-
gemfiles =
|
10
|
+
gemfiles = Dir.glob(File.join(pwd, "gemfiles", "*.gemfile")).map { |f| File.basename(f, ".*") }
|
11
11
|
|
12
12
|
namespace :spec do
|
13
13
|
gemfiles.each do |gemfile|
|
data/lib/activerecord/cause.rb
CHANGED
@@ -98,7 +98,11 @@ module ActiveRecord
|
|
98
98
|
binds = nil
|
99
99
|
|
100
100
|
unless (payload[:binds] || []).empty?
|
101
|
-
binds =
|
101
|
+
binds = if ActiveRecord.version >= Gem::Version.new("5.0.3")
|
102
|
+
" " + payload[:binds].zip(payload[:type_casted_binds]).map { |attr, value| render_bind(attr, value) }.inspect
|
103
|
+
else
|
104
|
+
" " + payload[:binds].map { |attr| render_bind(attr) }.inspect
|
105
|
+
end
|
102
106
|
end
|
103
107
|
|
104
108
|
name = colorize_payload_name(name, payload[:name])
|
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.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- joker1007
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -96,9 +96,10 @@ files:
|
|
96
96
|
- activerecord-cause.gemspec
|
97
97
|
- bin/console
|
98
98
|
- bin/setup
|
99
|
-
- gemfiles/activerecord-41.gemfile
|
100
99
|
- gemfiles/activerecord-42.gemfile
|
101
100
|
- gemfiles/activerecord-50.gemfile
|
101
|
+
- gemfiles/activerecord-502.gemfile
|
102
|
+
- gemfiles/activerecord-51.gemfile
|
102
103
|
- lib/activerecord-cause.rb
|
103
104
|
- lib/activerecord/cause.rb
|
104
105
|
- lib/activerecord/cause/railtie.rb
|
@@ -122,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
122
123
|
version: '0'
|
123
124
|
requirements: []
|
124
125
|
rubyforge_project:
|
125
|
-
rubygems_version: 2.6.
|
126
|
+
rubygems_version: 2.6.11
|
126
127
|
signing_key:
|
127
128
|
specification_version: 4
|
128
129
|
summary: This gem logs where ActiveRecord actually loads record
|