actionpack-xml_parser 1.0.0 → 1.0.1

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: a4811a13f95b2fa6d83a8b28b7d5e86e4e7f2984
4
- data.tar.gz: 7c8be5d2faf72b0bcd7fca1e13ee3167176aa3d6
3
+ metadata.gz: b3d995d2a2f87ecfd7c1cde922347558e3837444
4
+ data.tar.gz: 12241993571a0fe276e97d67ed0f0c1291134210
5
5
  SHA512:
6
- metadata.gz: 93007bf9192e7d5515cf3612694aede4178f00aa61a35579408b346590f269f93f3a3c420fdcb94aff759568af5eb537ca8c55dd07f2821fa3ae966e96615abf
7
- data.tar.gz: ee82c2862b67fdab4cd4c5a2dd5b82d7d8ffcee60cb92fbe88646058e7d861759a5f27619789ce0057c89ae2e78906011cd8d0fdf3610083dfeb800e9d7d788f
6
+ metadata.gz: bc6272b3567c25a6e6c7383685a8f5fa109a0aaf8fab4376b96fa70754f83391e1d07b35a8c0ce2f156d759ba5a717bc860b0e6708ada427dbddd76ed5c8f6c3
7
+ data.tar.gz: 2d053175e932af06b547744f360bb8e269f8198e09cee7d072e8bcd3552ce1debd783ad0e3b9558a1bb555be260f1506643af0b926851d5fe2515ddf92130f58
@@ -26,7 +26,10 @@ module ActionDispatch
26
26
  request.content_mime_type
27
27
 
28
28
  if mime_type == Mime::XML
29
- data = request.deep_munge(Hash.from_xml(request.body.read) || {})
29
+ # Rails 4.1 moved #deep_munge out of the request and into ActionDispatch::Request::Utils
30
+ munger = defined?(Request::Utils) ? Request::Utils : request
31
+
32
+ data = munger.deep_munge(Hash.from_xml(request.body.read) || {})
30
33
  data.with_indifferent_access
31
34
  else
32
35
  false
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: actionpack-xml_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Prem Sichanugrist
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-06-14 00:00:00.000000000 Z
11
+ date: 2013-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack
@@ -17,9 +17,6 @@ dependencies:
17
17
  - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: 4.0.0.rc1
20
- - - <
21
- - !ruby/object:Gem::Version
22
- version: '4.1'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
@@ -27,9 +24,6 @@ dependencies:
27
24
  - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: 4.0.0.rc1
30
- - - <
31
- - !ruby/object:Gem::Version
32
- version: '4.1'
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: rake
35
29
  requirement: !ruby/object:Gem::Requirement
@@ -77,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
77
71
  version: '0'
78
72
  requirements: []
79
73
  rubyforge_project:
80
- rubygems_version: 2.0.3
74
+ rubygems_version: 2.0.6
81
75
  signing_key:
82
76
  specification_version: 4
83
77
  summary: XML parameters parser for Action Pack (removed from core in Rails 4.0)