logjam_agent 0.9.8 → 0.9.9

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: 5240009250542043c44d989894802a803240fe06
4
- data.tar.gz: 3b85208c9de672e62e97ecd3ff819428d97bbf50
3
+ metadata.gz: 7c9df6634b307e0867c87418be19e507708431c2
4
+ data.tar.gz: 568afd62532e3cebf0c5a1d9c5eb9bd9af2fd5eb
5
5
  SHA512:
6
- metadata.gz: cf988b9b7a1536fe88d2f15e69050865c72a8b528d34ac8ecad18ed18174beae751a940f6db648b264d7387b63e05952efe0eb43b390075709eaa3de47e2624d
7
- data.tar.gz: d8f00aaa4b05b3cda2ebd9bf8072d1e2745da99802207929b2cc372ad23656ac65494e472e57ddbaf11e79b96c3c219095a1a9e26794ae213d214fd4497702d3
6
+ metadata.gz: 32bf45ff7ba595f81bc81e46321ecb77466923587ed6619ac5a026f3c33c81bb0f77607acc811d2538e040f8a5320d8029c8624df42cd7995b9fe0fc39a7e2ce
7
+ data.tar.gz: 1e73e75d99f7debe4540f3fba0179f4bed7d9aa90d103b1938b1457477c4d32ce5c7c89a04c272a71f370315facc274c213fa4f55885864e19d179b38f1c6203
@@ -220,6 +220,12 @@ module ActionController #:nodoc:
220
220
 
221
221
  elsif Rails::VERSION::STRING =~ /\A(3\.2|4\.0|4\.1)/
222
222
 
223
+ # Rails 4.1 uses method_added to automatically subscribe newly
224
+ # added methods. Since start_processing is already defined, the
225
+ # net effect is that start_processing gets called
226
+ # twice. Therefore, we temporarily switch to protected mode and
227
+ # change it back later to public.
228
+ protected
223
229
  def start_processing(event)
224
230
  payload = event.payload
225
231
  params = payload[:params].except(*INTERNAL_PARAMS)
@@ -236,9 +242,10 @@ module ActionController #:nodoc:
236
242
  info "Processing by #{full_name} as #{format}"
237
243
  info " Parameters: #{params.inspect}" unless params.empty?
238
244
  end
245
+ public :start_processing
239
246
 
240
247
  else
241
- raise "loggjam_agent ActionController monkey patch is not compatible with your Rails version"
248
+ raise "logjam_agent ActionController monkey patch is not compatible with your Rails version"
242
249
  end
243
250
  end
244
251
 
@@ -1,3 +1,3 @@
1
1
  module LogjamAgent
2
- VERSION = "0.9.8"
2
+ VERSION = "0.9.9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logjam_agent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.8
4
+ version: 0.9.9
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-04-10 00:00:00.000000000 Z
11
+ date: 2014-05-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake