multipart-post 2.3.0 → 2.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/composite_io.rb +1 -1
- data/lib/multipart/post/composite_read_io.rb +19 -1
- data/lib/multipart/post/multipartable.rb +3 -9
- data/lib/multipart/post/parts.rb +1 -1
- data/lib/multipart/post/upload_io.rb +1 -1
- data/lib/multipart/post/version.rb +2 -2
- data/lib/multipart/post.rb +1 -1
- data/lib/multipart_post.rb +1 -1
- data/lib/multipartable.rb +1 -1
- data/lib/net/http/post/multipart.rb +1 -1
- data/lib/parts.rb +1 -1
- data/license.md +2 -1
- data.tar.gz.sig +0 -0
- metadata +9 -48
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b1a97f42595e55e76cf1f115f5ffb78f95e9c36f989d071dbe3c96334e2b159
|
4
|
+
data.tar.gz: fd4caef26f7fce4698034f9c2812f3c7e18ff3b1358ac2cfb8b7a3313eb01c7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 202d4172f8c99a3eda1e8a6d988ec4295d5ca14a4ce78e026f1d9f453e7ef176bf9ef362646ce660c6d79e17197c172637e43ae8f380106d62c944cf8234fffc
|
7
|
+
data.tar.gz: 77eb98a13d3afe0f20978fda9bf9c08be6c6e3edd4b3ede1ab2acf9e7780080bb1d146e229cc6413abdfe0f9bb46c6e72c4c96a4f81f1e2341335e360b3c427c
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/composite_io.rb
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
# Copyright, 2013, by Mislav Marohnić.
|
12
12
|
# Copyright, 2013, by Leo Cassarani.
|
13
13
|
# Copyright, 2019, by Olle Jonsson.
|
14
|
-
# Copyright, 2022, by Samuel Williams.
|
14
|
+
# Copyright, 2022-2024, by Samuel Williams.
|
15
15
|
|
16
16
|
warn "Top level ::CompositeIO is deprecated, require 'multipart/post' and use `Multipart::Post::CompositeReadIO` instead!"
|
17
17
|
require_relative 'multipart/post'
|
@@ -13,7 +13,7 @@
|
|
13
13
|
# Copyright, 2019, by Olle Jonsson.
|
14
14
|
# Copyright, 2019, by Patrick Davey.
|
15
15
|
# Copyright, 2021, by Lewis Cowles.
|
16
|
-
# Copyright, 2021-
|
16
|
+
# Copyright, 2021-2024, by Samuel Williams.
|
17
17
|
|
18
18
|
module Multipart
|
19
19
|
module Post
|
@@ -33,8 +33,26 @@ module Multipart
|
|
33
33
|
@index = 0
|
34
34
|
end
|
35
35
|
|
36
|
+
# Close all the underyling IOs.
|
37
|
+
def close
|
38
|
+
@ios.each do |io|
|
39
|
+
io.close if io.respond_to?(:close)
|
40
|
+
end
|
41
|
+
|
42
|
+
@ios = nil
|
43
|
+
@index = 0
|
44
|
+
end
|
45
|
+
|
46
|
+
def closed?
|
47
|
+
@ios.nil?
|
48
|
+
end
|
49
|
+
|
36
50
|
# Read from IOs in order until `length` bytes have been received.
|
37
51
|
def read(length = nil, outbuf = nil)
|
52
|
+
if @ios.nil?
|
53
|
+
raise IOError, "CompositeReadIO is closed!"
|
54
|
+
end
|
55
|
+
|
38
56
|
got_result = false
|
39
57
|
outbuf = outbuf ? outbuf.replace("") : String.new
|
40
58
|
|
@@ -9,7 +9,7 @@
|
|
9
9
|
# Copyright, 2013, by Socrates Vicente.
|
10
10
|
# Copyright, 2013, by Steffen Grunwald.
|
11
11
|
# Copyright, 2019, by Olle Jonsson.
|
12
|
-
# Copyright, 2019-
|
12
|
+
# Copyright, 2019-2024, by Samuel Williams.
|
13
13
|
# Copyright, 2019, by Patrick Davey.
|
14
14
|
# Copyright, 2022, by Jason York.
|
15
15
|
|
@@ -62,14 +62,8 @@ module Multipart
|
|
62
62
|
|
63
63
|
private
|
64
64
|
|
65
|
-
|
66
|
-
|
67
|
-
hash.transform_keys(&:to_sym)
|
68
|
-
end
|
69
|
-
else
|
70
|
-
def symbolize_keys(hash)
|
71
|
-
hash.map{|key,value| [key.to_sym, value]}.to_h
|
72
|
-
end
|
65
|
+
def symbolize_keys(hash)
|
66
|
+
hash.transform_keys(&:to_sym)
|
73
67
|
end
|
74
68
|
end
|
75
69
|
end
|
data/lib/multipart/post/parts.rb
CHANGED
@@ -2,10 +2,10 @@
|
|
2
2
|
|
3
3
|
# Released under the MIT License.
|
4
4
|
# Copyright, 2019, by Patrick Davey.
|
5
|
-
# Copyright, 2021-
|
5
|
+
# Copyright, 2021-2024, by Samuel Williams.
|
6
6
|
|
7
7
|
module Multipart
|
8
8
|
module Post
|
9
|
-
VERSION = "2.
|
9
|
+
VERSION = "2.4.1"
|
10
10
|
end
|
11
11
|
end
|
data/lib/multipart/post.rb
CHANGED
data/lib/multipart_post.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
# Released under the MIT License.
|
4
4
|
# Copyright, 2009-2013, by Nick Sieger.
|
5
|
-
# Copyright, 2019-
|
5
|
+
# Copyright, 2019-2024, by Samuel Williams.
|
6
6
|
|
7
7
|
warn "Top level ::MultipartPost is deprecated, require 'multipart/post' and use `Multipart::Post` instead!"
|
8
8
|
require_relative 'multipart/post'
|
data/lib/multipartable.rb
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
# Copyright, 2013, by Socrates Vicente.
|
10
10
|
# Copyright, 2013, by Steffen Grunwald.
|
11
11
|
# Copyright, 2019, by Olle Jonsson.
|
12
|
-
# Copyright, 2019-
|
12
|
+
# Copyright, 2019-2024, by Samuel Williams.
|
13
13
|
# Copyright, 2019, by Patrick Davey.
|
14
14
|
|
15
15
|
warn "Top level ::Multipartable is deprecated, require 'multipart/post' and use `Multipart::Post::Multipartable` instead!"
|
data/lib/parts.rb
CHANGED
@@ -16,7 +16,7 @@
|
|
16
16
|
# Copyright, 2017, by Eric Hutzelman.
|
17
17
|
# Copyright, 2019, by Olle Jonsson.
|
18
18
|
# Copyright, 2019, by Ethan Turkeltaub.
|
19
|
-
# Copyright, 2022, by Samuel Williams.
|
19
|
+
# Copyright, 2022-2024, by Samuel Williams.
|
20
20
|
|
21
21
|
warn "Top level ::Parts is deprecated, require 'multipart/post' and use `Multipart::Post::Parts` instead!"
|
22
22
|
require_relative 'multipart/post'
|
data/license.md
CHANGED
@@ -21,7 +21,7 @@ Copyright, 2013, by Leo Cassarani.
|
|
21
21
|
Copyright, 2013, by Jagtesh Chadha.
|
22
22
|
Copyright, 2013, by Steffen Grunwald.
|
23
23
|
Copyright, 2013, by Lonre Wang.
|
24
|
-
Copyright, 2017-
|
24
|
+
Copyright, 2017-2024, by Samuel Williams.
|
25
25
|
Copyright, 2017, by Feuda Nan.
|
26
26
|
Copyright, 2017, by David Moles.
|
27
27
|
Copyright, 2017, by Matt Colyer.
|
@@ -37,6 +37,7 @@ Copyright, 2021, by Lewis Cowles.
|
|
37
37
|
Copyright, 2022, by Jason York.
|
38
38
|
Copyright, 2022, by Takuya Noguchi.
|
39
39
|
Copyright, 2023, by Peter Goldstein.
|
40
|
+
Copyright, 2024, by Masato Nakamura.
|
40
41
|
|
41
42
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
42
43
|
of this software and associated documentation files (the "Software"), to deal
|
data.tar.gz.sig
CHANGED
Binary file
|
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.
|
4
|
+
version: 2.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Sieger
|
@@ -34,6 +34,7 @@ authors:
|
|
34
34
|
- Leo Cassarani
|
35
35
|
- Lonre Wang
|
36
36
|
- Luke Redpath
|
37
|
+
- Masato Nakamura
|
37
38
|
- Matt Colyer
|
38
39
|
- Mislav Marohnić
|
39
40
|
- Peter Goldstein
|
@@ -73,50 +74,8 @@ cert_chain:
|
|
73
74
|
Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
|
74
75
|
voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
|
75
76
|
-----END CERTIFICATE-----
|
76
|
-
date:
|
77
|
-
dependencies:
|
78
|
-
- !ruby/object:Gem::Dependency
|
79
|
-
name: bundler
|
80
|
-
requirement: !ruby/object:Gem::Requirement
|
81
|
-
requirements:
|
82
|
-
- - ">="
|
83
|
-
- !ruby/object:Gem::Version
|
84
|
-
version: '0'
|
85
|
-
type: :development
|
86
|
-
prerelease: false
|
87
|
-
version_requirements: !ruby/object:Gem::Requirement
|
88
|
-
requirements:
|
89
|
-
- - ">="
|
90
|
-
- !ruby/object:Gem::Version
|
91
|
-
version: '0'
|
92
|
-
- !ruby/object:Gem::Dependency
|
93
|
-
name: rspec
|
94
|
-
requirement: !ruby/object:Gem::Requirement
|
95
|
-
requirements:
|
96
|
-
- - "~>"
|
97
|
-
- !ruby/object:Gem::Version
|
98
|
-
version: '3.4'
|
99
|
-
type: :development
|
100
|
-
prerelease: false
|
101
|
-
version_requirements: !ruby/object:Gem::Requirement
|
102
|
-
requirements:
|
103
|
-
- - "~>"
|
104
|
-
- !ruby/object:Gem::Version
|
105
|
-
version: '3.4'
|
106
|
-
- !ruby/object:Gem::Dependency
|
107
|
-
name: covered
|
108
|
-
requirement: !ruby/object:Gem::Requirement
|
109
|
-
requirements:
|
110
|
-
- - ">="
|
111
|
-
- !ruby/object:Gem::Version
|
112
|
-
version: '0'
|
113
|
-
type: :development
|
114
|
-
prerelease: false
|
115
|
-
version_requirements: !ruby/object:Gem::Requirement
|
116
|
-
requirements:
|
117
|
-
- - ">="
|
118
|
-
- !ruby/object:Gem::Version
|
119
|
-
version: '0'
|
77
|
+
date: 2024-05-07 00:00:00.000000000 Z
|
78
|
+
dependencies: []
|
120
79
|
description:
|
121
80
|
email:
|
122
81
|
executables: []
|
@@ -140,7 +99,9 @@ files:
|
|
140
99
|
homepage: https://github.com/socketry/multipart-post
|
141
100
|
licenses:
|
142
101
|
- MIT
|
143
|
-
metadata:
|
102
|
+
metadata:
|
103
|
+
documentation_uri: https://socketry.github.io/multipart-post/
|
104
|
+
source_code_uri: https://github.com/socketry/multipart-post.git
|
144
105
|
post_install_message:
|
145
106
|
rdoc_options: []
|
146
107
|
require_paths:
|
@@ -149,14 +110,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
149
110
|
requirements:
|
150
111
|
- - ">="
|
151
112
|
- !ruby/object:Gem::Version
|
152
|
-
version: 2.
|
113
|
+
version: 2.5.0
|
153
114
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
154
115
|
requirements:
|
155
116
|
- - ">="
|
156
117
|
- !ruby/object:Gem::Version
|
157
118
|
version: '0'
|
158
119
|
requirements: []
|
159
|
-
rubygems_version: 3.
|
120
|
+
rubygems_version: 3.5.3
|
160
121
|
signing_key:
|
161
122
|
specification_version: 4
|
162
123
|
summary: A multipart form post accessory for Net::HTTP.
|
metadata.gz.sig
CHANGED
Binary file
|