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 +4 -4
- data/Appraisals +8 -0
- data/Gemfile +0 -5
- data/README.rdoc +3 -0
- data/Rakefile +9 -0
- data/gemfiles/activesupport_4.1.13.gemfile +7 -0
- data/gemfiles/activesupport_4.2.4.gemfile +7 -0
- data/lib/time_bandits.rb +1 -0
- data/lib/time_bandits/monkey_patches/active_record.rb +10 -0
- data/lib/time_bandits/version.rb +1 -1
- data/test/test_helper.rb +1 -3
- data/time_bandits.gemspec +8 -5
- metadata +46 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17110b29f1ba8ee80a3ca0de9909218131cdf064
|
4
|
+
data.tar.gz: 4dfb3e7de75bc3501e6f85cfb18c07cd0f518868
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2463780ec2f4d803d685aec3aa32ba3026b51fc416a4651763abf109183b9102a166e2f8f50241df224d79e91045e95cbdbf17d8b395297519e7bf6c4c3e740a
|
7
|
+
data.tar.gz: 01e05bdadc84b9c14c6a1e8b0437c7794d67b1a69243d85c2bdee7b627bbcfee3506333fe113c9bafe057512d192205d30206e7bd36af7762a478055e30b3d99
|
data/Appraisals
ADDED
data/Gemfile
CHANGED
data/README.rdoc
CHANGED
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
|
data/lib/time_bandits.rb
CHANGED
@@ -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
|
data/lib/time_bandits/version.rb
CHANGED
data/test/test_helper.rb
CHANGED
@@ -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 =
|
32
|
+
STRING = ActiveSupport::VERSION::STRING
|
35
33
|
end
|
36
34
|
def cache
|
37
35
|
@cache ||= ActiveSupport::Cache.lookup_store(:mem_cache_store)
|
data/time_bandits.gemspec
CHANGED
@@ -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
|
-
|
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.
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
168
|
+
name: redis
|
155
169
|
requirement: !ruby/object:Gem::Requirement
|
156
170
|
requirements:
|
157
|
-
- - "
|
171
|
+
- - ">="
|
158
172
|
- !ruby/object:Gem::Version
|
159
|
-
version: '
|
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: '
|
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.
|
262
|
+
rubygems_version: 2.4.8
|
232
263
|
signing_key:
|
233
264
|
specification_version: 4
|
234
265
|
summary: Custom performance logging for Rails
|