time_bandits 0.9.1 → 0.9.2

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: 64f835d9ad115551cc372e0b13c7054f5f41f8c0
4
- data.tar.gz: f3bf660fe487c3dca292bc11da139a3639898ae4
3
+ metadata.gz: 60323e9d2981d428d2b3a1053944f22ee61eb006
4
+ data.tar.gz: 468a458c3bcb15cce429e79fe434698d7e689a14
5
5
  SHA512:
6
- metadata.gz: f947c239ac89f5bd7eb7e4b1f45a791eb80ba57aa77d0ddf1a612f23689308f35305c6b644a9799ce4152bedf279f2f043783165f24f9ee8cbc934dbed1a1c5f
7
- data.tar.gz: 4fc33347e870ff39a7646d74545a688880430ea0be22276b049e3280fe3d55032732f94fe2261e0b4b37a6d7f174fe93922f33932c590808c9aebf35551d80f6
6
+ metadata.gz: f7afb9cabf033fc56b8edf45585f08e0257bc3f7955c3ab63267ac38585727a7d633f86895afad3bfd9f2d676e456dc3bedd996d1214b2a04a3d8c2af52b34da
7
+ data.tar.gz: 57f397b925e412816cb7d0b03f49e7208ce16213ba9a64fdf3fe9c422575749dba6b7735a3cd8145e06dfcbf4f0c826e14c854aa615bc29b3c406dd880caf942
data/Appraisals CHANGED
@@ -1,8 +1,9 @@
1
1
  [
2
- "4.1.13",
3
- "4.2.4"
2
+ "4.1.15",
3
+ "4.2.6",
4
4
  ].each do |rails_version|
5
5
  appraise "activesupport-#{rails_version}" do
6
6
  gem "activesupport", rails_version
7
+ gem "activerecord", rails_version
7
8
  end
8
9
  end
@@ -2,6 +2,7 @@
2
2
 
3
3
  source "http://rubygems.org"
4
4
 
5
- gem "activesupport", "4.2.4"
5
+ gem "activesupport", "4.1.15"
6
+ gem "activerecord", "4.1.15"
6
7
 
7
8
  gemspec :path => "../"
@@ -0,0 +1,96 @@
1
+ PATH
2
+ remote: ../
3
+ specs:
4
+ time_bandits (0.9.1)
5
+ activesupport (>= 2.3.2)
6
+ thread_variables
7
+
8
+ GEM
9
+ remote: http://rubygems.org/
10
+ specs:
11
+ activemodel (4.1.15)
12
+ activesupport (= 4.1.15)
13
+ builder (~> 3.1)
14
+ activerecord (4.1.15)
15
+ activemodel (= 4.1.15)
16
+ activesupport (= 4.1.15)
17
+ arel (~> 5.0.0)
18
+ activesupport (4.1.15)
19
+ i18n (~> 0.6, >= 0.6.9)
20
+ json (~> 1.7, >= 1.7.7)
21
+ minitest (~> 5.1)
22
+ thread_safe (~> 0.1)
23
+ tzinfo (~> 1.1)
24
+ amq-client (1.0.2)
25
+ amq-protocol (>= 1.2.0)
26
+ eventmachine
27
+ amq-protocol (1.6.0)
28
+ amqp (1.0.2)
29
+ amq-client (~> 1.0.2)
30
+ amq-protocol (>= 1.3.0)
31
+ eventmachine
32
+ ansi (1.5.0)
33
+ appraisal (2.1.0)
34
+ bundler
35
+ rake
36
+ thor (>= 0.14.0)
37
+ arel (5.0.1.20140414130214)
38
+ beetle (0.4.8)
39
+ activesupport (>= 2.3.4)
40
+ amq-client (= 1.0.2)
41
+ amq-protocol (= 1.6.0)
42
+ amqp (= 1.0.2)
43
+ bunny (~> 0.7.10)
44
+ daemons (>= 1.1.9)
45
+ eventmachine_httpserver (>= 0.2.1)
46
+ hiredis (>= 0.4.5, < 0.6)
47
+ redis (>= 2.2.2, < 3.2)
48
+ uuid4r (>= 0.1.2)
49
+ builder (3.2.2)
50
+ bunny (0.7.10)
51
+ byebug (9.0.5)
52
+ daemons (1.2.3)
53
+ dalli (2.7.6)
54
+ eventmachine (1.2.0.1)
55
+ eventmachine_httpserver (0.2.1)
56
+ hiredis (0.5.2)
57
+ i18n (0.7.0)
58
+ json (1.8.3)
59
+ memcached (1.8.0)
60
+ metaclass (0.0.4)
61
+ minitest (5.9.0)
62
+ mocha (1.1.0)
63
+ metaclass (~> 0.0.1)
64
+ mysql2 (0.4.4)
65
+ rake (10.5.0)
66
+ redis (3.1.0)
67
+ sequel (4.36.0)
68
+ thor (0.19.1)
69
+ thread_safe (0.3.5)
70
+ thread_variables (0.2.0)
71
+ tzinfo (1.2.2)
72
+ thread_safe (~> 0.1)
73
+ uuid4r (0.2.0)
74
+
75
+ PLATFORMS
76
+ ruby
77
+
78
+ DEPENDENCIES
79
+ activerecord (= 4.1.15)
80
+ activesupport (= 4.1.15)
81
+ ansi
82
+ appraisal
83
+ beetle (>= 0.4.6)
84
+ byebug
85
+ dalli
86
+ memcached (~> 1.8.0)
87
+ minitest (~> 5.5)
88
+ mocha
89
+ mysql2
90
+ rake (~> 10.5.0)
91
+ redis
92
+ sequel
93
+ time_bandits!
94
+
95
+ BUNDLED WITH
96
+ 1.12.5
@@ -2,6 +2,7 @@
2
2
 
3
3
  source "http://rubygems.org"
4
4
 
5
- gem "activesupport", "4.1.13"
5
+ gem "activesupport", "4.2.6"
6
+ gem "activerecord", "4.2.6"
6
7
 
7
8
  gemspec :path => "../"
@@ -0,0 +1,96 @@
1
+ PATH
2
+ remote: ../
3
+ specs:
4
+ time_bandits (0.9.1)
5
+ activesupport (>= 2.3.2)
6
+ thread_variables
7
+
8
+ GEM
9
+ remote: http://rubygems.org/
10
+ specs:
11
+ activemodel (4.2.6)
12
+ activesupport (= 4.2.6)
13
+ builder (~> 3.1)
14
+ activerecord (4.2.6)
15
+ activemodel (= 4.2.6)
16
+ activesupport (= 4.2.6)
17
+ arel (~> 6.0)
18
+ activesupport (4.2.6)
19
+ i18n (~> 0.7)
20
+ json (~> 1.7, >= 1.7.7)
21
+ minitest (~> 5.1)
22
+ thread_safe (~> 0.3, >= 0.3.4)
23
+ tzinfo (~> 1.1)
24
+ amq-client (1.0.2)
25
+ amq-protocol (>= 1.2.0)
26
+ eventmachine
27
+ amq-protocol (1.6.0)
28
+ amqp (1.0.2)
29
+ amq-client (~> 1.0.2)
30
+ amq-protocol (>= 1.3.0)
31
+ eventmachine
32
+ ansi (1.5.0)
33
+ appraisal (2.1.0)
34
+ bundler
35
+ rake
36
+ thor (>= 0.14.0)
37
+ arel (6.0.3)
38
+ beetle (0.4.8)
39
+ activesupport (>= 2.3.4)
40
+ amq-client (= 1.0.2)
41
+ amq-protocol (= 1.6.0)
42
+ amqp (= 1.0.2)
43
+ bunny (~> 0.7.10)
44
+ daemons (>= 1.1.9)
45
+ eventmachine_httpserver (>= 0.2.1)
46
+ hiredis (>= 0.4.5, < 0.6)
47
+ redis (>= 2.2.2, < 3.2)
48
+ uuid4r (>= 0.1.2)
49
+ builder (3.2.2)
50
+ bunny (0.7.10)
51
+ byebug (9.0.5)
52
+ daemons (1.2.3)
53
+ dalli (2.7.6)
54
+ eventmachine (1.2.0.1)
55
+ eventmachine_httpserver (0.2.1)
56
+ hiredis (0.5.2)
57
+ i18n (0.7.0)
58
+ json (1.8.3)
59
+ memcached (1.8.0)
60
+ metaclass (0.0.4)
61
+ minitest (5.9.0)
62
+ mocha (1.1.0)
63
+ metaclass (~> 0.0.1)
64
+ mysql2 (0.4.4)
65
+ rake (10.5.0)
66
+ redis (3.1.0)
67
+ sequel (4.36.0)
68
+ thor (0.19.1)
69
+ thread_safe (0.3.5)
70
+ thread_variables (0.2.0)
71
+ tzinfo (1.2.2)
72
+ thread_safe (~> 0.1)
73
+ uuid4r (0.2.0)
74
+
75
+ PLATFORMS
76
+ ruby
77
+
78
+ DEPENDENCIES
79
+ activerecord (= 4.2.6)
80
+ activesupport (= 4.2.6)
81
+ ansi
82
+ appraisal
83
+ beetle (>= 0.4.6)
84
+ byebug
85
+ dalli
86
+ memcached (~> 1.8.0)
87
+ minitest (~> 5.5)
88
+ mocha
89
+ mysql2
90
+ rake (~> 10.5.0)
91
+ redis
92
+ sequel
93
+ time_bandits!
94
+
95
+ BUNDLED WITH
96
+ 1.12.5
@@ -6,14 +6,32 @@ if major < 4 || (major == 4 && minor < 15)
6
6
  end
7
7
 
8
8
  Sequel::Database.class_eval do
9
- alias :_orig_log_yield :log_yield
10
-
11
- def log_yield(*args)
12
- begin
13
- start = Time.now
14
- _orig_log_yield(args) { yield if block_given? }
15
- ensure
16
- ActiveSupport::Notifications.instrument('duration.sequel', durationInSeconds: Time.now - start)
9
+ if instance_methods.include?(:log_connection_yield)
10
+
11
+ alias :_orig_log_connection_yield :log_connection_yield
12
+
13
+ def log_connection_yield(*args, &block)
14
+ begin
15
+ start = Time.now
16
+ _orig_log_connection_yield(*args, &block)
17
+ ensure
18
+ ActiveSupport::Notifications.instrument('duration.sequel', durationInSeconds: Time.now - start)
19
+ end
20
+ end
21
+
22
+ else
23
+
24
+ alias :_orig_log_yield :log_yield
25
+
26
+ def log_yield(*args, &block)
27
+ begin
28
+ start = Time.now
29
+ _orig_log_yield(*args, &block)
30
+ ensure
31
+ ActiveSupport::Notifications.instrument('duration.sequel', durationInSeconds: Time.now - start)
32
+ end
17
33
  end
34
+
18
35
  end
36
+
19
37
  end
@@ -1,3 +1,3 @@
1
1
  module TimeBandits
2
- VERSION = "0.9.1"
2
+ VERSION = "0.9.2"
3
3
  end
data/time_bandits.gemspec CHANGED
@@ -29,7 +29,7 @@ Gem::Specification.new do |s|
29
29
  s.add_development_dependency("minitest", "~> 5.5")
30
30
  s.add_development_dependency("mocha")
31
31
  s.add_development_dependency("mysql2")
32
- s.add_development_dependency("rake")
32
+ s.add_development_dependency("rake", "~> 10.5.0")
33
33
  s.add_development_dependency("redis")
34
34
  s.add_development_dependency("sequel")
35
35
  s.add_development_dependency("activerecord")
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.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Kaes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-22 00:00:00.000000000 Z
11
+ date: 2016-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thread_variables
@@ -154,16 +154,16 @@ dependencies:
154
154
  name: rake
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - ">="
157
+ - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: '0'
159
+ version: 10.5.0
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - ">="
164
+ - - "~>"
165
165
  - !ruby/object:Gem::Version
166
- version: '0'
166
+ version: 10.5.0
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: redis
169
169
  requirement: !ruby/object:Gem::Requirement
@@ -233,8 +233,10 @@ files:
233
233
  - README.rdoc
234
234
  - Rakefile
235
235
  - TODO
236
- - gemfiles/activesupport_4.1.13.gemfile
237
- - gemfiles/activesupport_4.2.4.gemfile
236
+ - gemfiles/activesupport_4.1.15.gemfile
237
+ - gemfiles/activesupport_4.1.15.gemfile.lock
238
+ - gemfiles/activesupport_4.2.6.gemfile
239
+ - gemfiles/activesupport_4.2.6.gemfile.lock
238
240
  - lib/time_bandits.rb
239
241
  - lib/time_bandits/monkey_patches/action_controller.rb
240
242
  - lib/time_bandits/monkey_patches/active_record.rb
@@ -290,7 +292,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
290
292
  version: '0'
291
293
  requirements: []
292
294
  rubyforge_project:
293
- rubygems_version: 2.4.8
295
+ rubygems_version: 2.5.1
294
296
  signing_key:
295
297
  specification_version: 4
296
298
  summary: Custom performance logging for Rails