optin_parsing 0.2.0 → 0.3.0

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: 0dba66eb4acade9c0e1b6178f68c9ed4acf64b51
4
- data.tar.gz: 7291ad94416495756a203944f098e61c6e067be8
3
+ metadata.gz: 5db72767cf1b5b1fc167a792f54b64595762638d
4
+ data.tar.gz: 22a01a15737a34de364e57e5a892b6d935baaad6
5
5
  SHA512:
6
- metadata.gz: ae20475ce706fe259e27049b5db4f640fb250e4b9ab1f55ee882e9b23322f4ba11fb504b35dc8c5f51b6e590518337046bce9ce986fea432891e6d5a183e3c1c
7
- data.tar.gz: 85af8e502ce6308214b24b9b2b947cf82dd286bd65ef6b2d761f4ab59bb6aeb7ae6f9a9dabe9baa2254220bfb0eb8d9024eec80ecef664dbc1b7f037deab47e2
6
+ metadata.gz: 34e9cb22acb90a16622408347135a6cdc17199e61837b2065d050c1b413be6f5b9a53b6042700f1d0c95a83ea44e6a9e21a5dddc3dc385c4da8d9d5916ca4eaf
7
+ data.tar.gz: 334e3a9440c04b77753818040332d5e0073b40d3769a7e3d229d7bf4bb1e1dd3d328b8ede4338211db0225b079748181ccff5a436dd8a831f1666e1f22f754b9
data/CHANGELOG CHANGED
@@ -1,3 +1,8 @@
1
+ 0.3.0
2
+ =====
3
+
4
+ Don't use methods deprecated in rails 4.1
5
+
1
6
  0.2.0
2
7
  =====
3
8
 
@@ -73,11 +73,11 @@ module OptinParsing
73
73
  when Proc
74
74
  strategy.call(request.raw_post)
75
75
  when :xml
76
- data = request.deep_munge(Hash.from_xml(request.body.read) || {})
76
+ data = ActionDispatch::Request::Utils.deep_munge(Hash.from_xml(request.body.read) || {})
77
77
  request.body.rewind if request.body.respond_to?(:rewind)
78
78
  data.with_indifferent_access
79
79
  when :json
80
- data = request.deep_munge ActiveSupport::JSON.decode(request.body.read)
80
+ data = ActionDispatch::Request::Utils.deep_munge ActiveSupport::JSON.decode(request.body.read)
81
81
  request.body.rewind if request.body.respond_to?(:rewind)
82
82
  data = {:_json => data} unless data.is_a?(Hash)
83
83
  data.with_indifferent_access
@@ -1,3 +1,3 @@
1
1
  module OptinParsing
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
@@ -16,7 +16,7 @@ Gem::Specification.new do |gem|
16
16
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
17
17
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
18
  gem.require_paths = ["lib"]
19
-
19
+ gem.add_dependency 'actionpack', '>=4.1.0'
20
20
  gem.add_development_dependency "rspec", "~>2.10"
21
21
  gem.add_development_dependency "rspec-rails", "~>2.10"
22
22
  gem.add_development_dependency "rspec-instafail"
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: optin_parsing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frederick Cheung
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-11 00:00:00.000000000 Z
11
+ date: 2014-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: actionpack
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 4.1.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 4.1.0
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: rspec
15
29
  requirement: !ruby/object:Gem::Requirement