http-form_data 2.0.0.pre2 → 2.0.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: f49eaa6a2789b48f0e43011a737fa95aad75e511
4
- data.tar.gz: f0768565855e6777a5ef4206e827759871607e4b
3
+ metadata.gz: 1a44d108e4522fc194181bc81f9a69852f69048a
4
+ data.tar.gz: fd416ada1943d0bf92f534af8ef1ba54002105f6
5
5
  SHA512:
6
- metadata.gz: c44060c6430184df6628fe2972656546744e6434a40446d649851de99e5c7e8be0d5dce0307a6aeff11794fa1b1d77a620d26a085f15fa8316b74aac39e91c2a
7
- data.tar.gz: ed0d387052a1d0681a4b086fd5354e12f0a1a2776a1b35277611deda95d5f10285223bcd352447ffe4fe47af301b4fe97a91d628ae39702fb6b702411c5b432a
6
+ metadata.gz: c6a9f12d474e4265941ef81db33ba70aee2eba6754e341948fbc82b94c0d7957b3df970329cc1ca658659b605ec00d845d4777b47daa5f4d1fc702d2c0a1c5b3
7
+ data.tar.gz: 0f6558ffbef78b44bf5851154de0ed8b115f67763d8aa548c5ef6544f7ba4b2c50cc136a9b0d6666b543ebf628eebf777f012277e87b94ab4450ccebe6b6103f
@@ -1,6 +1,8 @@
1
1
  language: ruby
2
2
  sudo: false
3
3
 
4
+ cache: bundler
5
+
4
6
  before_install:
5
7
  - gem update --system
6
8
  - gem --version
@@ -15,9 +17,7 @@ env: JRUBY_OPTS="$JRUBY_OPTS --debug"
15
17
 
16
18
  rvm:
17
19
  # Include JRuby first because it takes the longest
18
- - jruby-9.1.8.0
19
- - 2.0.0
20
- - 2.1
20
+ - jruby-9.1.13.0
21
21
  - 2.2
22
22
  - 2.3.4
23
23
  - 2.4.1
data/CHANGES.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## 2.0.0 (2017-10-01)
2
+
3
+ * [#17](https://github.com/httprb/form_data/pull/17)
4
+ Add CRLF character to end of multipart body.
5
+ [@mhickman][]
6
+
7
+
1
8
  ## 2.0.0.pre2 (2017-05-11)
2
9
 
3
10
  * [#14](https://github.com/httprb/form_data/pull/14)
@@ -51,3 +58,4 @@
51
58
  [@ixti]: https://github.com/ixti
52
59
  [@abotalov]: https://github.com/abotalov
53
60
  [@janko-m]: https://github.com/janko-m
61
+ [@mhickman]: https://github.com/mhickman
data/README.md CHANGED
@@ -1,9 +1,9 @@
1
1
  # HTTP::FormData
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/http-form_data.png)](http://rubygems.org/gems/http-form_data)
4
- [![Build Status](https://secure.travis-ci.org/httprb/form_data.rb.png?branch=master)](http://travis-ci.org/httprb/form_data.rb)
5
- [![Code Climate](https://codeclimate.com/github/httprb/form_data.rb.png)](https://codeclimate.com/github/httprb/form_data.rb)
6
- [![Coverage Status](https://coveralls.io/repos/httprb/form_data.rb/badge.png?branch=master)](https://coveralls.io/r/httprb/form_data.rb)
3
+ [![Gem Version](https://badge.fury.io/rb/http-form_data.svg)](http://rubygems.org/gems/http-form_data)
4
+ [![Build Status](https://secure.travis-ci.org/httprb/form_data.svg?branch=master)](http://travis-ci.org/httprb/form_data)
5
+ [![Code Climate](https://codeclimate.com/github/httprb/form_data.svg)](https://codeclimate.com/github/httprb/form_data)
6
+ [![Coverage Status](https://coveralls.io/repos/httprb/form_data.rb/badge.svg?branch=master)](https://coveralls.io/r/httprb/form_data.rb)
7
7
 
8
8
  Utility-belt to build form data request bodies.
9
9
 
@@ -52,7 +52,7 @@ module HTTP
52
52
 
53
53
  # @return [String]
54
54
  def tail
55
- @tail ||= "--#{@boundary}--"
55
+ @tail ||= "--#{@boundary}--#{CRLF}"
56
56
  end
57
57
  end
58
58
  end
@@ -3,6 +3,6 @@
3
3
  module HTTP
4
4
  module FormData
5
5
  # Gem version.
6
- VERSION = "2.0.0.pre2"
6
+ VERSION = "2.0.0"
7
7
  end
8
8
  end
@@ -26,7 +26,7 @@ RSpec.describe HTTP::FormData::Multipart do
26
26
  "#{disposition 'name' => 'baz', 'filename' => file.filename}#{crlf}",
27
27
  "Content-Type: #{file.content_type}#{crlf}",
28
28
  "#{crlf}#{file}#{crlf}",
29
- "--#{boundary_value}--"
29
+ "--#{boundary_value}--#{crlf}"
30
30
  ].join("")
31
31
  end
32
32
 
@@ -44,7 +44,7 @@ RSpec.describe HTTP::FormData::Multipart do
44
44
  "#{disposition 'name' => 'baz', 'filename' => file.filename}#{crlf}",
45
45
  "Content-Type: #{file.content_type}#{crlf}",
46
46
  "#{crlf}#{file}#{crlf}",
47
- "--my-boundary--"
47
+ "--my-boundary--#{crlf}"
48
48
  ].join("")
49
49
  end
50
50
  end
@@ -61,7 +61,7 @@ RSpec.describe HTTP::FormData::Multipart do
61
61
  "#{disposition 'name' => 'foo'}#{crlf}",
62
62
  "Content-Type: #{part.content_type}#{crlf}",
63
63
  "#{crlf}s#{crlf}",
64
- "--#{boundary_value}--"
64
+ "--#{boundary_value}--#{crlf}"
65
65
  ].join("")
66
66
  end
67
67
  end
@@ -77,7 +77,7 @@ RSpec.describe HTTP::FormData::Multipart do
77
77
  "--#{boundary_value}#{crlf}",
78
78
  "#{disposition 'name' => 'foo'}#{crlf}",
79
79
  "#{crlf}s#{crlf}",
80
- "--#{boundary_value}--"
80
+ "--#{boundary_value}--#{crlf}"
81
81
  ].join("")
82
82
  end
83
83
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: http-form_data
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.pre2
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aleksey V Zapparov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-11 00:00:00.000000000 Z
11
+ date: 2017-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -79,15 +79,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
79
79
  version: '0'
80
80
  required_rubygems_version: !ruby/object:Gem::Requirement
81
81
  requirements:
82
- - - ">"
82
+ - - ">="
83
83
  - !ruby/object:Gem::Version
84
- version: 1.3.1
84
+ version: '0'
85
85
  requirements: []
86
86
  rubyforge_project:
87
- rubygems_version: 2.6.11
87
+ rubygems_version: 2.6.13
88
88
  signing_key:
89
89
  specification_version: 4
90
- summary: http-form_data-2.0.0.pre2
90
+ summary: http-form_data-2.0.0
91
91
  test_files:
92
92
  - spec/fixtures/expected-multipart-body.tpl
93
93
  - spec/fixtures/the-http-gem.info