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 +4 -4
- data/CHANGELOG +5 -0
- data/lib/optin_parsing/controller_additions.rb +2 -2
- data/lib/optin_parsing/version.rb +1 -1
- data/optin_parsing.gemspec +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5db72767cf1b5b1fc167a792f54b64595762638d
|
4
|
+
data.tar.gz: 22a01a15737a34de364e57e5a892b6d935baaad6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34e9cb22acb90a16622408347135a6cdc17199e61837b2065d050c1b413be6f5b9a53b6042700f1d0c95a83ea44e6a9e21a5dddc3dc385c4da8d9d5916ca4eaf
|
7
|
+
data.tar.gz: 334e3a9440c04b77753818040332d5e0073b40d3769a7e3d229d7bf4bb1e1dd3d328b8ede4338211db0225b079748181ccff5a436dd8a831f1666e1f22f754b9
|
data/CHANGELOG
CHANGED
@@ -73,11 +73,11 @@ module OptinParsing
|
|
73
73
|
when Proc
|
74
74
|
strategy.call(request.raw_post)
|
75
75
|
when :xml
|
76
|
-
data =
|
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 =
|
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
|
data/optin_parsing.gemspec
CHANGED
@@ -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.
|
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-
|
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
|