time_bandits 0.7.3 → 0.7.4

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: 49d969750b99d03c0d11b1268c50daab039a5416
4
- data.tar.gz: f69f222e09dea2bf1a95e79bdb164b00433aabbd
3
+ metadata.gz: 17110b29f1ba8ee80a3ca0de9909218131cdf064
4
+ data.tar.gz: 4dfb3e7de75bc3501e6f85cfb18c07cd0f518868
5
5
  SHA512:
6
- metadata.gz: b083343d3b81f94cabb2b07711aa68de48f61ab7bd61f705e05d8939354f6011a3269d114184dba8a1d4014adb89c92d38a054782c67cbe344186a3775f6a118
7
- data.tar.gz: 61638788e719ce91c16c09410b5a6a44cd4d4373ab02749a0b666da158f2a7c176dec66296e7878d0b87352dfaf8d99bb8b3f6087cc8b79ab500b783a2ee36b8
6
+ metadata.gz: 2463780ec2f4d803d685aec3aa32ba3026b51fc416a4651763abf109183b9102a166e2f8f50241df224d79e91045e95cbdbf17d8b395297519e7bf6c4c3e740a
7
+ data.tar.gz: 01e05bdadc84b9c14c6a1e8b0437c7794d67b1a69243d85c2bdee7b627bbcfee3506333fe113c9bafe057512d192205d30206e7bd36af7762a478055e30b3d99
@@ -0,0 +1,8 @@
1
+ [
2
+ "4.1.13",
3
+ "4.2.4"
4
+ ].each do |rails_version|
5
+ appraise "activesupport-#{rails_version}" do
6
+ gem "activesupport", rails_version
7
+ end
8
+ end
data/Gemfile CHANGED
@@ -2,8 +2,3 @@ source "http://rubygems.org"
2
2
 
3
3
  # Specify your gem's dependencies in time_bandits.gemspec
4
4
  gemspec
5
-
6
- # gem "activesupport", "3.2.13"
7
- gem "activesupport", "4.1.8"
8
-
9
- gem "byebug"
@@ -84,6 +84,9 @@ In order for the test to run you need a running memcached, redis-server and mysq
84
84
 
85
85
  == Release Notes
86
86
 
87
+ master
88
+ - use appraisal for testing against multiple rails versions
89
+
87
90
  version 0.7.1
88
91
  - support measuring sequel gem
89
92
 
data/Rakefile CHANGED
@@ -14,3 +14,12 @@ Rake::TestTask.new do |t|
14
14
  t.test_files = FileList['test/**/*_test.rb']
15
15
  t.verbose = true
16
16
  end
17
+
18
+ namespace :appraisal do
19
+ task :install do
20
+ system "appraisal install"
21
+ end
22
+ task :test => :install do
23
+ system("appraisal rake test")
24
+ end
25
+ end
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "activesupport", "4.1.13"
6
+
7
+ gemspec :path => "../"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "activesupport", "4.2.4"
6
+
7
+ gemspec :path => "../"
@@ -1,3 +1,4 @@
1
+ require 'active_support'
1
2
  require 'active_support/core_ext'
2
3
  require 'thread_variables'
3
4
 
@@ -102,9 +102,19 @@ module ActiveRecord
102
102
  module Railties
103
103
  module ControllerRuntime
104
104
  def cleanup_view_runtime
105
+ # this method has been redefined to do nothing for activerecord on purpose
105
106
  super
106
107
  end
108
+
109
+ def append_info_to_payload(payload)
110
+ super
111
+ if ActiveRecord::Base.connected?
112
+ payload[:db_runtime] = TimeBandits::TimeConsumers::Database.instance.consumed
113
+ end
114
+ end
115
+
107
116
  module ClassMethods
117
+ # this method has been redefined to do nothing for activerecord on purpose
108
118
  def log_process_action(payload)
109
119
  super
110
120
  end
@@ -1,3 +1,3 @@
1
1
  module TimeBandits
2
- VERSION = "0.7.3"
2
+ VERSION = "0.7.4"
3
3
  end
@@ -15,8 +15,6 @@ module Test
15
15
  end
16
16
  end
17
17
 
18
- Minitest::Test.i_suck_and_my_tests_are_order_dependent!
19
-
20
18
  require_relative '../lib/time_bandits'
21
19
  require "byebug"
22
20
 
@@ -31,7 +29,7 @@ end
31
29
  module Rails
32
30
  extend self
33
31
  module VERSION
34
- STRING = "4.1.8"
32
+ STRING = ActiveSupport::VERSION::STRING
35
33
  end
36
34
  def cache
37
35
  @cache ||= ActiveSupport::Cache.lookup_store(:mem_cache_store)
@@ -20,14 +20,17 @@ Gem::Specification.new do |s|
20
20
 
21
21
  s.add_runtime_dependency("thread_variables")
22
22
  s.add_runtime_dependency("activesupport", [">= 2.3.2"])
23
- s.add_development_dependency("rake")
24
- s.add_development_dependency("mocha")
23
+
25
24
  s.add_development_dependency("ansi")
25
+ s.add_development_dependency("appraisal")
26
+ s.add_development_dependency("byebug")
26
27
  s.add_development_dependency("dalli")
27
- s.add_development_dependency("redis")
28
28
  s.add_development_dependency("memcached")
29
- s.add_development_dependency("sequel")
30
- s.add_development_dependency("mysql2")
31
29
  s.add_development_dependency("minitest", "~> 5.5")
30
+ s.add_development_dependency("mocha")
31
+ s.add_development_dependency("mysql2")
32
+ s.add_development_dependency("rake")
33
+ s.add_development_dependency("redis")
34
+ s.add_development_dependency("sequel")
32
35
  end
33
36
 
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.7.3
4
+ version: 0.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Kaes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-30 00:00:00.000000000 Z
11
+ date: 2015-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thread_variables
@@ -39,7 +39,7 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: 2.3.2
41
41
  - !ruby/object:Gem::Dependency
42
- name: rake
42
+ name: ansi
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ">="
@@ -53,7 +53,7 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: mocha
56
+ name: appraisal
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
@@ -67,7 +67,7 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: ansi
70
+ name: byebug
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - ">="
@@ -95,7 +95,7 @@ dependencies:
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
- name: redis
98
+ name: memcached
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - ">="
@@ -109,7 +109,21 @@ dependencies:
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
- name: memcached
112
+ name: minitest
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '5.5'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '5.5'
125
+ - !ruby/object:Gem::Dependency
126
+ name: mocha
113
127
  requirement: !ruby/object:Gem::Requirement
114
128
  requirements:
115
129
  - - ">="
@@ -123,7 +137,7 @@ dependencies:
123
137
  - !ruby/object:Gem::Version
124
138
  version: '0'
125
139
  - !ruby/object:Gem::Dependency
126
- name: sequel
140
+ name: mysql2
127
141
  requirement: !ruby/object:Gem::Requirement
128
142
  requirements:
129
143
  - - ">="
@@ -137,7 +151,7 @@ dependencies:
137
151
  - !ruby/object:Gem::Version
138
152
  version: '0'
139
153
  - !ruby/object:Gem::Dependency
140
- name: mysql2
154
+ name: rake
141
155
  requirement: !ruby/object:Gem::Requirement
142
156
  requirements:
143
157
  - - ">="
@@ -151,19 +165,33 @@ dependencies:
151
165
  - !ruby/object:Gem::Version
152
166
  version: '0'
153
167
  - !ruby/object:Gem::Dependency
154
- name: minitest
168
+ name: redis
155
169
  requirement: !ruby/object:Gem::Requirement
156
170
  requirements:
157
- - - "~>"
171
+ - - ">="
158
172
  - !ruby/object:Gem::Version
159
- version: '5.5'
173
+ version: '0'
160
174
  type: :development
161
175
  prerelease: false
162
176
  version_requirements: !ruby/object:Gem::Requirement
163
177
  requirements:
164
- - - "~>"
178
+ - - ">="
165
179
  - !ruby/object:Gem::Version
166
- version: '5.5'
180
+ version: '0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: sequel
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ">="
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
167
195
  description: Rails Completed Line on Steroids
168
196
  email:
169
197
  - skaes@railsexpress.de
@@ -172,10 +200,13 @@ extensions: []
172
200
  extra_rdoc_files: []
173
201
  files:
174
202
  - ".gitignore"
203
+ - Appraisals
175
204
  - Gemfile
176
205
  - README.rdoc
177
206
  - Rakefile
178
207
  - TODO
208
+ - gemfiles/activesupport_4.1.13.gemfile
209
+ - gemfiles/activesupport_4.2.4.gemfile
179
210
  - lib/time_bandits.rb
180
211
  - lib/time_bandits/monkey_patches/action_controller.rb
181
212
  - lib/time_bandits/monkey_patches/active_record.rb
@@ -228,7 +259,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
228
259
  version: '0'
229
260
  requirements: []
230
261
  rubyforge_project:
231
- rubygems_version: 2.4.5
262
+ rubygems_version: 2.4.8
232
263
  signing_key:
233
264
  specification_version: 4
234
265
  summary: Custom performance logging for Rails