interpol 0.3.4 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,6 +13,7 @@ module Interpol
13
13
  class RequestParamsParser
14
14
  def initialize(app, &block)
15
15
  @original_app_instance = app
16
+ @config = Configuration.default.customized_duplicate(&block)
16
17
  hook_into_app(&block)
17
18
  end
18
19
 
@@ -34,10 +35,8 @@ module Interpol
34
35
  attr_reader :config, :original_app_instance
35
36
 
36
37
  def hook_into_app(&block)
37
- return if defined?(@config)
38
+ return if original_app_instance.respond_to?(:unparsed_params)
38
39
  check_configuration_validity
39
-
40
- @config = Configuration.default.customized_duplicate(&block)
41
40
  parser = self
42
41
 
43
42
  original_app_instance.class.class_eval do
@@ -1,3 +1,3 @@
1
1
  module Interpol
2
- VERSION = "0.3.4"
2
+ VERSION = "0.3.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: interpol
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-02 00:00:00.000000000 Z
12
+ date: 2012-10-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json-schema
@@ -223,7 +223,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
223
223
  version: '0'
224
224
  segments:
225
225
  - 0
226
- hash: -376854112048680238
226
+ hash: 1026263882758876933
227
227
  required_rubygems_version: !ruby/object:Gem::Requirement
228
228
  none: false
229
229
  requirements:
@@ -232,7 +232,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
232
232
  version: '0'
233
233
  segments:
234
234
  - 0
235
- hash: -376854112048680238
235
+ hash: 1026263882758876933
236
236
  requirements: []
237
237
  rubyforge_project:
238
238
  rubygems_version: 1.8.24