time_bandits 0.10.10 → 0.10.11

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
  SHA256:
3
- metadata.gz: c58d28c93e2abce5a7e5748cafd1720e71e9efd1a9dbad61dfd84f8c388d18ac
4
- data.tar.gz: 4cdd00f82f637c496b5810f46ae1899c898f86850502626c33ab5d676bf8bacd
3
+ metadata.gz: 8447b013b4ab90d594ca245cb69c3c2bbda8e8222bccddcd8780f8c1434893ad
4
+ data.tar.gz: a29d3e3afd51d36d464f503211551af24be3f239dacc4e5dcb8fc2752aed0939
5
5
  SHA512:
6
- metadata.gz: 0b9afbbe602af0a36640c60491f7de0e8bf173619572c65206a2502c2056a05f1b81d9b14c36ebfeacc69e9a7633cc3c53d8c308475dda258d54ffec4f294e57
7
- data.tar.gz: fc6dbf5399f916035854330e3a00a517fe50e809cbac3b30d35519c8a74e97eb6b3a8bf0a5c5e9d70f76825d30c69a873f584cacf7952696a427f75384677747
6
+ metadata.gz: afa8037541dc31446f75fc89c437c8a70b785126c1162d38b865fbe94ecebf399c00eaaafa73802c88e612b0b164dc5af3e15ffd8582342f1d523bd8ecd6f92d
7
+ data.tar.gz: 139d9563ca52d1f45cf00f582a5c25d7778e6da98fc9dce93fbcf99b6355915fe76ef96805935081d613af747464ac4262e3228099a88c6a8226f60a39d188c4
@@ -1,9 +1,9 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.2.5
4
- - 2.3.4
5
- - 2.4.1
6
- script: "rake appraisal:test"
3
+ - 2.3.6
4
+ - 2.4.3
5
+ - 2.5.0
6
+ script: "bundle exec rake appraisal:test"
7
7
  sudo: false
8
8
  services:
9
9
  - redis-server
data/Appraisals CHANGED
@@ -7,6 +7,7 @@
7
7
  "5.1.1",
8
8
  "5.1.2",
9
9
  "5.1.5",
10
+ "5.2.0",
10
11
  ].each do |rails_version|
11
12
  next if RUBY_VERSION >= "2.4.0" && rails_version < "4.2.8"
12
13
  appraise "activesupport-#{rails_version}" do
data/README.md CHANGED
@@ -84,6 +84,18 @@ 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
+ ## Version 0.10.11
88
+ - support rails 5.2.0
89
+
90
+ ## Version 0.10.10
91
+ - fixed regression introduced in 0.10.9
92
+
93
+ ### Version 0.10.9
94
+ - added specialized activerecord logging for Rails >= 5.1.5
95
+
96
+ ### Version 0.10.8
97
+ - rails has changed render_bind in 5.0.3
98
+
87
99
  ### Version 0.10.7
88
100
  - fixed bug in activerecord monkeypatch for Rails 5.1
89
101
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- time_bandits (0.10.7)
4
+ time_bandits (0.10.10)
5
5
  activesupport (>= 2.3.2)
6
6
  thread_variables
7
7
 
@@ -88,4 +88,4 @@ DEPENDENCIES
88
88
  time_bandits!
89
89
 
90
90
  BUNDLED WITH
91
- 1.15.1
91
+ 1.16.1
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- time_bandits (0.10.9)
4
+ time_bandits (0.10.10)
5
5
  activesupport (>= 2.3.2)
6
6
  thread_variables
7
7
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- time_bandits (0.10.9)
4
+ time_bandits (0.10.10)
5
5
  activesupport (>= 2.3.2)
6
6
  thread_variables
7
7
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- time_bandits (0.10.9)
4
+ time_bandits (0.10.10)
5
5
  activesupport (>= 2.3.2)
6
6
  thread_variables
7
7
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- time_bandits (0.10.9)
4
+ time_bandits (0.10.10)
5
5
  activesupport (>= 2.3.2)
6
6
  thread_variables
7
7
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- time_bandits (0.10.9)
4
+ time_bandits (0.10.10)
5
5
  activesupport (>= 2.3.2)
6
6
  thread_variables
7
7
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- time_bandits (0.10.9)
4
+ time_bandits (0.10.10)
5
5
  activesupport (>= 2.3.2)
6
6
  thread_variables
7
7
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- time_bandits (0.10.9)
4
+ time_bandits (0.10.10)
5
5
  activesupport (>= 2.3.2)
6
6
  thread_variables
7
7
 
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "activesupport", "5.2.0"
6
+ gem "activerecord", "5.2.0"
7
+
8
+ gemspec :path => "../"
@@ -0,0 +1,85 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ time_bandits (0.10.10)
5
+ activesupport (>= 2.3.2)
6
+ thread_variables
7
+
8
+ GEM
9
+ remote: http://rubygems.org/
10
+ specs:
11
+ activemodel (5.2.0)
12
+ activesupport (= 5.2.0)
13
+ activerecord (5.2.0)
14
+ activemodel (= 5.2.0)
15
+ activesupport (= 5.2.0)
16
+ arel (>= 9.0)
17
+ activesupport (5.2.0)
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 (9.0.0)
32
+ beetle (2.1.1)
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.5)
45
+ hiredis (0.6.1)
46
+ i18n (1.0.0)
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.1)
54
+ rake (10.5.0)
55
+ redis (4.0.1)
56
+ sequel (5.7.1)
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.2.0)
69
+ activesupport (= 5.2.0)
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
@@ -118,7 +118,7 @@ module ActionController #:nodoc:
118
118
  end
119
119
  end
120
120
 
121
- # this gets included in ActionController::Base
121
+ # this gets included in ActionController::Base in the time_bandits railtie
122
122
  module TimeBanditry #:nodoc:
123
123
  extend ActiveSupport::Concern
124
124
 
@@ -4,7 +4,7 @@
4
4
  # it needs to be adapted to each new rails version
5
5
 
6
6
  raise "time_bandits ActiveRecord monkey patch is not compatible with your rails version" unless
7
- Rails::VERSION::STRING =~ /^(3\.[012]|4\.[012])|5\.[01]/
7
+ Rails::VERSION::STRING =~ /^(3\.[012]|4\.[012])|5\.[012]/
8
8
 
9
9
  require "active_record/log_subscriber"
10
10
 
@@ -1,3 +1,3 @@
1
1
  module TimeBandits
2
- VERSION = "0.10.10"
2
+ VERSION = "0.10.11"
3
3
  end
@@ -34,4 +34,7 @@ module Rails
34
34
  def cache
35
35
  @cache ||= ActiveSupport::Cache.lookup_store(:mem_cache_store)
36
36
  end
37
+ def env
38
+ "test"
39
+ end
37
40
  end
@@ -4,12 +4,16 @@ require 'time_bandits/monkey_patches/active_record'
4
4
 
5
5
  class DatabaseTest < Test::Unit::TestCase
6
6
 
7
- ActiveRecord::Base.logger = Logger.new($stdout)
8
-
9
7
  def setup
10
8
  TimeBandits.time_bandits = []
11
9
  TimeBandits.add TimeBandits::TimeConsumers::Database
12
10
  TimeBandits.reset
11
+ @old_logger = ActiveRecord::Base.logger
12
+ ActiveRecord::Base.logger = Logger.new($stdout)
13
+ end
14
+
15
+ def teardown
16
+ ActiveRecord::Base.logger = @old_logger
13
17
  end
14
18
 
15
19
  test "getting metrics" do
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.10
4
+ version: 0.10.11
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-02-26 00:00:00.000000000 Z
11
+ date: 2018-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thread_variables
@@ -251,6 +251,8 @@ files:
251
251
  - gemfiles/activesupport_5.1.2.gemfile.lock
252
252
  - gemfiles/activesupport_5.1.5.gemfile
253
253
  - gemfiles/activesupport_5.1.5.gemfile.lock
254
+ - gemfiles/activesupport_5.2.0.gemfile
255
+ - gemfiles/activesupport_5.2.0.gemfile.lock
254
256
  - lib/time_bandits.rb
255
257
  - lib/time_bandits/monkey_patches/action_controller.rb
256
258
  - lib/time_bandits/monkey_patches/active_record.rb
@@ -306,7 +308,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
306
308
  version: '0'
307
309
  requirements: []
308
310
  rubyforge_project:
309
- rubygems_version: 2.7.3
311
+ rubygems_version: 2.7.6
310
312
  signing_key:
311
313
  specification_version: 4
312
314
  summary: Custom performance logging for Rails