actionpack-xml_parser 1.0.1 → 1.0.2

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: b3d995d2a2f87ecfd7c1cde922347558e3837444
4
- data.tar.gz: 12241993571a0fe276e97d67ed0f0c1291134210
3
+ metadata.gz: 97a34add867fdd86962702b26a409d5b174d1c11
4
+ data.tar.gz: 76ea8609436ceb7b00c7930cfcd0021bfa3be8de
5
5
  SHA512:
6
- metadata.gz: bc6272b3567c25a6e6c7383685a8f5fa109a0aaf8fab4376b96fa70754f83391e1d07b35a8c0ce2f156d759ba5a717bc860b0e6708ada427dbddd76ed5c8f6c3
7
- data.tar.gz: 2d053175e932af06b547744f360bb8e269f8198e09cee7d072e8bcd3552ce1debd783ad0e3b9558a1bb555be260f1506643af0b926851d5fe2515ddf92130f58
6
+ metadata.gz: 5875755a817de09d059f5dcb3dfa8230161393575d803f89a13f994b1fb17a8a45020286b675901c97d02924cb133da8b7c6d48867836a2f0a5378c8ab622145
7
+ data.tar.gz: 40ab47784a747175029be1fc3d9f3048cea205b36fa7025067f3bc3e0c8f120303f5f21ecda0dd1608864f26f3c14c594172abb9ac28c1b83d84c153a4ded522
data/README.md CHANGED
@@ -18,3 +18,10 @@ in `config/application.rb`:
18
18
  ```ruby
19
19
  config.middleware.insert_after ActionDispatch::ParamsParser, ActionDispatch::XmlParamsParser
20
20
  ```
21
+
22
+ You may need to require the `ActionDispatch::XmlParamsParser` manually. Add the following
23
+ in your `config/application.rb`:
24
+
25
+ ```ruby
26
+ require 'action_dispatch/xml_params_parser'
27
+ ```
@@ -30,6 +30,7 @@ module ActionDispatch
30
30
  munger = defined?(Request::Utils) ? Request::Utils : request
31
31
 
32
32
  data = munger.deep_munge(Hash.from_xml(request.body.read) || {})
33
+ request.body.rewind if request.body.respond_to?(:rewind)
33
34
  data.with_indifferent_access
34
35
  else
35
36
  false
metadata CHANGED
@@ -1,41 +1,47 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: actionpack-xml_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
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-11-04 00:00:00.000000000 Z
11
+ date: 2015-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 4.0.0.rc1
19
+ version: 4.0.0
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '5'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - '>='
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: 4.0.0
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: 4.0.0.rc1
32
+ version: '5'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: rake
29
35
  requirement: !ruby/object:Gem::Requirement
30
36
  requirements:
31
- - - '>='
37
+ - - ">="
32
38
  - !ruby/object:Gem::Version
33
39
  version: '0'
34
40
  type: :development
35
41
  prerelease: false
36
42
  version_requirements: !ruby/object:Gem::Requirement
37
43
  requirements:
38
- - - '>='
44
+ - - ">="
39
45
  - !ruby/object:Gem::Version
40
46
  version: '0'
41
47
  description:
@@ -55,23 +61,23 @@ licenses:
55
61
  metadata: {}
56
62
  post_install_message:
57
63
  rdoc_options:
58
- - --main
64
+ - "--main"
59
65
  - README.md
60
66
  require_paths:
61
67
  - lib
62
68
  required_ruby_version: !ruby/object:Gem::Requirement
63
69
  requirements:
64
- - - '>='
70
+ - - ">="
65
71
  - !ruby/object:Gem::Version
66
72
  version: 1.9.3
67
73
  required_rubygems_version: !ruby/object:Gem::Requirement
68
74
  requirements:
69
- - - '>='
75
+ - - ">="
70
76
  - !ruby/object:Gem::Version
71
77
  version: '0'
72
78
  requirements: []
73
79
  rubyforge_project:
74
- rubygems_version: 2.0.6
80
+ rubygems_version: 2.4.6
75
81
  signing_key:
76
82
  specification_version: 4
77
83
  summary: XML parameters parser for Action Pack (removed from core in Rails 4.0)