multipart-post 2.1.0 → 2.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b7f48186ca2c1e47dbb18d8ba20ed99e1d2dbabac5735c47a5fdf3f3de2ff6c1
4
- data.tar.gz: 86bdb76a37261133d45eba29e94c6026118564fa0168120549d64a8cf89e19f7
3
+ metadata.gz: e64b8bb7510028e6d5c5ca9626ff5448a12ee4e393938a69edd9eddfedf04e70
4
+ data.tar.gz: dddcaa65fa823b59d0d3a025c8ad1e88eae0e2fe976469c9b69931a0bc66af6a
5
5
  SHA512:
6
- metadata.gz: 47022f82aba55743549c58e82cda833a1f769927ca7c348b35e8dbcfeec851ca5570ef4b43755d33c4d5957a97b915412e86d9b333769f5cd11d0b9cdeede744
7
- data.tar.gz: c9c767b946971349722a5798b0594f9da22095262f0f322391656dc79e73a677a48b0fdc53942f5bfbfe58d258c7e6df8bd3fb02821b49a64f794c6f898012d5
6
+ metadata.gz: a046600778502bf34933ca1f4b2abd7ce0c7e8b4911ab9abc2bc74316cd42ce2f9167c6a40254ffb290ede586de81500a03500c09bfcb15ed96c0495bed19964
7
+ data.tar.gz: 422aa7086f923b29e545cba81cd1caca270ed4e86f0d29a50a8c61bc111ad30d546b353ef3db5eb52f63f697d03a5671e759f3119c8c200807184c9cfe3c1f58
@@ -11,8 +11,10 @@ rvm:
11
11
  - 2.6
12
12
  - ruby-head
13
13
  - jruby-head
14
+ - truffleruby
14
15
 
15
16
  matrix:
16
17
  allow_failures:
17
- - rvm: "ruby-head"
18
- - rvm: "jruby-head"
18
+ - rvm: ruby-head
19
+ - rvm: jruby-head
20
+ - rvm: truffleruby
data/README.md CHANGED
@@ -1,9 +1,9 @@
1
- # `Multipart::Post`
1
+ # Multipart::Post
2
2
 
3
3
  Adds a streamy multipart form post capability to `Net::HTTP`. Also supports other
4
4
  methods besides `POST`.
5
5
 
6
- [![Build Status](https://secure.travis-ci.org/ioquatix/multipart-post.svg)](http://travis-ci.org/ioquatix/multipart-post)
6
+ [![Build Status](https://secure.travis-ci.org/socketry/multipart-post.svg)](http://travis-ci.org/socketry/multipart-post)
7
7
 
8
8
  ## Features/Problems
9
9
 
data/Rakefile CHANGED
@@ -1,9 +1,6 @@
1
1
  require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
2
3
 
3
- task :default => :test
4
+ RSpec::Core::RakeTask.new(:test)
4
5
 
5
- require 'rake/testtask'
6
- Rake::TestTask.new do |t|
7
- t.libs << "test"
8
- t.test_files = FileList['test/**/test*.rb']
9
- end
6
+ task :default => :test
@@ -5,5 +5,5 @@
5
5
  #++
6
6
 
7
7
  module MultipartPost
8
- VERSION = "2.1.0"
8
+ VERSION = "2.1.1"
9
9
  end
@@ -19,7 +19,7 @@ module Multipartable
19
19
  # "+" / "_" / "," / "-" / "." /
20
20
  # "/" / ":" / "=" / "?"
21
21
 
22
- "--#{SecureRandom.alphanumeric(60)}"
22
+ "--#{SecureRandom.uuid}"
23
23
  end
24
24
 
25
25
  def initialize(path, params, headers={}, boundary = Multipartable.secure_boundary)
@@ -100,7 +100,7 @@ RSpec.describe Net::HTTP::Post::Multipart do
100
100
 
101
101
  body = post.body_stream.read
102
102
  expect(body.lines.grep(/name="foo"/).length).to be == 2
103
- expect(body) =~ /Content-Type: application\/json; charset=UTF-8/
103
+ expect(body).to be =~ /Content-Type: application\/json; charset=UTF-8/
104
104
  end
105
105
 
106
106
  it "test_form_multipart_body_with_arrayparam" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: multipart-post
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
  - Nick Sieger
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-05-08 00:00:00.000000000 Z
12
+ date: 2019-05-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
108
  - !ruby/object:Gem::Version
109
109
  version: '0'
110
110
  requirements: []
111
- rubygems_version: 3.0.2
111
+ rubygems_version: 3.0.3
112
112
  signing_key:
113
113
  specification_version: 4
114
114
  summary: A multipart form post accessory for Net::HTTP.