savon-multipart 2.1.0 → 2.1.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: 5b2646fc41ff720bd7228d8c05f4300972e64686
4
- data.tar.gz: 885ce75c4025dd8e64ee5fe7a430599caf534049
3
+ metadata.gz: 1453752c3356664f6f81bceaf030316157f4d7d4
4
+ data.tar.gz: 9511e7c2d636c54af0eb11dcf1e6c6264422d2ed
5
5
  SHA512:
6
- metadata.gz: fb7660f083792e8452663715fdd6624bbf1d01cab3469e72b12ff6b9146de5660d0a976b6f9df9f2c4f4c5e69b508b5efcbf38aeb96be6ea37b88ba560c0de9b
7
- data.tar.gz: b7496671d6a550a9d9ae0c079f5bce6ae45371dd1141a1925698749a3a3552fecf8dd5b23d58015e928069520eb3297d9756b53b392f578bd9f3a6c828c48649
6
+ metadata.gz: f3b2cbf00edc90989ced02fa321cb5e370e7f3938ea092a91036d4fdddadf6acad9cbc7905445c12dd43a108f0cfe09913d0ac8909c71a2c3adf7f2b9a15b6bc
7
+ data.tar.gz: 43975f967153b5107f1fa1050fa6c131991148c5ab81acb3434abfa98a12a2599b4cbbe231df02de9235af538ce3a921f814193fea3da3a797ae3849bce45924
@@ -1,4 +1,8 @@
1
- ## 2.1.0 (current)
1
+ ## 2.1.1 (current)
2
+
3
+ * Improve detection of multipart content-type header.s
4
+
5
+ ## 2.1.0
2
6
 
3
7
  * Drops support for ruby 1.8.7
4
8
 
@@ -30,7 +30,7 @@ module Savon
30
30
 
31
31
  private
32
32
  def multipart?
33
- !(http.headers['content-type'] =~ /^multipart/).nil?
33
+ !(http.headers['content-type'] =~ /^multipart/im).nil?
34
34
  end
35
35
 
36
36
  def boundary
@@ -1,5 +1,5 @@
1
1
  module Savon
2
2
  module Multipart
3
- VERSION = "2.1.0"
3
+ VERSION = "2.1.1"
4
4
  end
5
5
  end
@@ -53,6 +53,15 @@ describe Savon::Multipart::Response do
53
53
  end
54
54
  end
55
55
 
56
+ describe "a multipart response with case sensitive headers" do
57
+ let(:header) {{ "Content-Type" => 'MuLtIpArT/rElAtEd; boundary="--==_mimepart_4d416ae62fd32_201a8043814c4724"; charset=UTF-8; type="text/xml"' }}
58
+ let(:path) { File.expand_path('../../../fixtures/response/simple_multipart.txt', __FILE__) }
59
+
60
+ it "does not care about upper or lowercase values for ContentType" do
61
+ expect(response.body).to eq({:submit_req => true})
62
+ end
63
+ end
64
+
56
65
  context "not multipart" do
57
66
  let(:path) { File.expand_path('../../../fixtures/response/not_multipart.txt', __FILE__) }
58
67
  let(:header) { { 'Content-Type' => 'text/html; charset=utf-8'} }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: savon-multipart
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Westin
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-04-01 00:00:00.000000000 Z
12
+ date: 2015-05-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: savon
@@ -153,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
153
153
  version: '0'
154
154
  requirements: []
155
155
  rubyforge_project: savon-multipart
156
- rubygems_version: 2.2.2
156
+ rubygems_version: 2.4.6
157
157
  signing_key:
158
158
  specification_version: 4
159
159
  summary: Heavy metal Ruby SOAP client with multipart support