http-form_data 2.0.0.pre2 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +3 -3
- data/CHANGES.md +8 -0
- data/README.md +4 -4
- data/lib/http/form_data/multipart.rb +1 -1
- data/lib/http/form_data/version.rb +1 -1
- data/spec/lib/http/form_data/multipart_spec.rb +4 -4
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a44d108e4522fc194181bc81f9a69852f69048a
|
4
|
+
data.tar.gz: fd416ada1943d0bf92f534af8ef1ba54002105f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6a9f12d474e4265941ef81db33ba70aee2eba6754e341948fbc82b94c0d7957b3df970329cc1ca658659b605ec00d845d4777b47daa5f4d1fc702d2c0a1c5b3
|
7
|
+
data.tar.gz: 0f6558ffbef78b44bf5851154de0ed8b115f67763d8aa548c5ef6544f7ba4b2c50cc136a9b0d6666b543ebf628eebf777f012277e87b94ab4450ccebe6b6103f
|
data/.travis.yml
CHANGED
@@ -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.
|
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
|
-
[](http://rubygems.org/gems/http-form_data)
|
4
|
+
[](http://travis-ci.org/httprb/form_data)
|
5
|
+
[](https://codeclimate.com/github/httprb/form_data)
|
6
|
+
[](https://coveralls.io/r/httprb/form_data.rb)
|
7
7
|
|
8
8
|
Utility-belt to build form data request bodies.
|
9
9
|
|
@@ -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
|
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-
|
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:
|
84
|
+
version: '0'
|
85
85
|
requirements: []
|
86
86
|
rubyforge_project:
|
87
|
-
rubygems_version: 2.6.
|
87
|
+
rubygems_version: 2.6.13
|
88
88
|
signing_key:
|
89
89
|
specification_version: 4
|
90
|
-
summary: http-form_data-2.0.0
|
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
|