time_bandits 0.10.11 → 0.10.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Appraisals +1 -0
- data/README.md +3 -0
- data/gemfiles/activesupport_4.1.16.gemfile.lock +1 -1
- data/gemfiles/activesupport_4.2.8.gemfile.lock +1 -1
- data/gemfiles/activesupport_4.2.9.gemfile.lock +1 -1
- data/gemfiles/activesupport_5.0.3.gemfile.lock +1 -1
- data/gemfiles/activesupport_5.0.4.gemfile.lock +1 -1
- data/gemfiles/activesupport_5.0.7.gemfile +8 -0
- data/gemfiles/activesupport_5.0.7.gemfile.lock +85 -0
- data/gemfiles/activesupport_5.1.1.gemfile.lock +1 -1
- data/gemfiles/activesupport_5.1.2.gemfile.lock +1 -1
- data/gemfiles/activesupport_5.1.5.gemfile.lock +1 -1
- data/gemfiles/activesupport_5.2.0.gemfile.lock +1 -1
- data/lib/time_bandits/monkey_patches/active_record.rb +18 -0
- data/lib/time_bandits/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0bcf9fb1de3827c6c2c2812909aa726b4cbbc385634f476bfbb852469a6aacef
|
4
|
+
data.tar.gz: c6e3a299361704450bc80fafbf1db2641a4d3e46413401445c68abc851f09607
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb875827c05df0918f1fd0765f2a780fd9e1357bd2f7c0457461b352a6c8c3f0fa2a7930c308425d55727ad1bf0ff97661e922139ce80cf9e5be301fd3514dd2
|
7
|
+
data.tar.gz: 1939cfe231dbfd64ad96cafb2311ca4359ab8c014107a9aaedf1477af02f290e1c8241ed153478fc5f99c745e818da72932a18c4b042d700da6f7bbfa9a53626
|
data/Appraisals
CHANGED
data/README.md
CHANGED
@@ -0,0 +1,85 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ..
|
3
|
+
specs:
|
4
|
+
time_bandits (0.10.12)
|
5
|
+
activesupport (>= 2.3.2)
|
6
|
+
thread_variables
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: http://rubygems.org/
|
10
|
+
specs:
|
11
|
+
activemodel (5.0.7)
|
12
|
+
activesupport (= 5.0.7)
|
13
|
+
activerecord (5.0.7)
|
14
|
+
activemodel (= 5.0.7)
|
15
|
+
activesupport (= 5.0.7)
|
16
|
+
arel (~> 7.0)
|
17
|
+
activesupport (5.0.7)
|
18
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
19
|
+
i18n (>= 0.7, < 2)
|
20
|
+
minitest (~> 5.1)
|
21
|
+
tzinfo (~> 1.1)
|
22
|
+
amq-protocol (2.0.1)
|
23
|
+
amqp (1.6.0)
|
24
|
+
amq-protocol (>= 2.0.1)
|
25
|
+
eventmachine
|
26
|
+
ansi (1.5.0)
|
27
|
+
appraisal (2.2.0)
|
28
|
+
bundler
|
29
|
+
rake
|
30
|
+
thor (>= 0.14.0)
|
31
|
+
arel (7.1.4)
|
32
|
+
beetle (2.1.2)
|
33
|
+
activesupport (>= 2.3.4)
|
34
|
+
amq-protocol (= 2.0.1)
|
35
|
+
amqp (= 1.6.0)
|
36
|
+
bunny (~> 0.7.10)
|
37
|
+
hiredis (>= 0.4.5)
|
38
|
+
redis (>= 2.2.2)
|
39
|
+
uuid4r (>= 0.1.2)
|
40
|
+
bunny (0.7.11)
|
41
|
+
byebug (10.0.2)
|
42
|
+
concurrent-ruby (1.0.5)
|
43
|
+
dalli (2.7.8)
|
44
|
+
eventmachine (1.2.7)
|
45
|
+
hiredis (0.6.1)
|
46
|
+
i18n (1.0.1)
|
47
|
+
concurrent-ruby (~> 1.0)
|
48
|
+
memcached (1.8.0)
|
49
|
+
metaclass (0.0.4)
|
50
|
+
minitest (5.11.3)
|
51
|
+
mocha (1.5.0)
|
52
|
+
metaclass (~> 0.0.1)
|
53
|
+
mysql2 (0.5.2)
|
54
|
+
rake (10.5.0)
|
55
|
+
redis (4.0.1)
|
56
|
+
sequel (5.10.0)
|
57
|
+
thor (0.20.0)
|
58
|
+
thread_safe (0.3.6)
|
59
|
+
thread_variables (0.2.0)
|
60
|
+
tzinfo (1.2.5)
|
61
|
+
thread_safe (~> 0.1)
|
62
|
+
uuid4r (0.2.0)
|
63
|
+
|
64
|
+
PLATFORMS
|
65
|
+
ruby
|
66
|
+
|
67
|
+
DEPENDENCIES
|
68
|
+
activerecord (= 5.0.7)
|
69
|
+
activesupport (= 5.0.7)
|
70
|
+
ansi
|
71
|
+
appraisal
|
72
|
+
beetle (>= 0.4.6)
|
73
|
+
byebug
|
74
|
+
dalli
|
75
|
+
memcached (~> 1.8.0)
|
76
|
+
minitest (~> 5.5)
|
77
|
+
mocha
|
78
|
+
mysql2
|
79
|
+
rake (~> 10.5.0)
|
80
|
+
redis
|
81
|
+
sequel
|
82
|
+
time_bandits!
|
83
|
+
|
84
|
+
BUNDLED WITH
|
85
|
+
1.16.1
|
@@ -101,6 +101,24 @@ module ActiveRecord
|
|
101
101
|
name = colorize_payload_name(name, payload[:name])
|
102
102
|
sql = color(sql, sql_color(sql), true)
|
103
103
|
|
104
|
+
debug " #{name} #{sql}#{binds}"
|
105
|
+
end
|
106
|
+
elsif Rails::VERSION::STRING >= "5.0.7" && Rails::VERSION::STRING < "5.1.0"
|
107
|
+
def log_sql_statement(payload, event)
|
108
|
+
name = '%s (%.1fms)' % [payload[:name], event.duration]
|
109
|
+
sql = payload[:sql].squeeze(' ')
|
110
|
+
binds = nil
|
111
|
+
|
112
|
+
unless (payload[:binds] || []).empty?
|
113
|
+
casted_params = type_casted_binds(payload[:type_casted_binds])
|
114
|
+
binds = " " + payload[:binds].zip(casted_params).map { |attr, value|
|
115
|
+
render_bind(attr, value)
|
116
|
+
}.inspect
|
117
|
+
end
|
118
|
+
|
119
|
+
name = colorize_payload_name(name, payload[:name])
|
120
|
+
sql = color(sql, sql_color(sql), true)
|
121
|
+
|
104
122
|
debug " #{name} #{sql}#{binds}"
|
105
123
|
end
|
106
124
|
elsif Rails::VERSION::STRING >= "5.0.3"
|
data/lib/time_bandits/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: time_bandits
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Kaes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thread_variables
|
@@ -245,6 +245,8 @@ files:
|
|
245
245
|
- gemfiles/activesupport_5.0.3.gemfile.lock
|
246
246
|
- gemfiles/activesupport_5.0.4.gemfile
|
247
247
|
- gemfiles/activesupport_5.0.4.gemfile.lock
|
248
|
+
- gemfiles/activesupport_5.0.7.gemfile
|
249
|
+
- gemfiles/activesupport_5.0.7.gemfile.lock
|
248
250
|
- gemfiles/activesupport_5.1.1.gemfile
|
249
251
|
- gemfiles/activesupport_5.1.1.gemfile.lock
|
250
252
|
- gemfiles/activesupport_5.1.2.gemfile
|