boxr 1.21.0 → 1.21.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/boxr/chunked_uploads.rb +4 -4
- data/lib/boxr/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 74214397ad9564122e307d187eb2b2420f1d840a4b2ef6905f0e10a16975b2b1
|
4
|
+
data.tar.gz: 4dd84469ec684ed0439025a8131814aa98caceb5880d86ae980965880a9d9ce7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98cec5779b5f09c36298263719cd55be16480189530cfcd370c3caa1a5023e503cec0d5df8b3361055936ccabd8f64747eb0d27de37edaef6371bd13569d4f13
|
7
|
+
data.tar.gz: c34a2588f407f986437af58a28442898484d54fef03708497af0b9282838b3df69ee8fc98f4be0e0739ce62f857cf5552cebc05976f1d7eff374c8fa969ac159
|
data/lib/boxr/chunked_uploads.rb
CHANGED
@@ -14,7 +14,7 @@ module Boxr
|
|
14
14
|
|
15
15
|
uri = "#{UPLOAD_URI}/files/upload_sessions"
|
16
16
|
body = {folder_id: parent_id, file_size: io.size, file_name: name}
|
17
|
-
session_info, response = post(uri, body, content_type: "application/json")
|
17
|
+
session_info, response = post(uri, body, content_type: "application/json", success_codes: [200,201,202])
|
18
18
|
|
19
19
|
session_info
|
20
20
|
end
|
@@ -31,7 +31,7 @@ module Boxr
|
|
31
31
|
file_id = ensure_id(file)
|
32
32
|
uri = "#{UPLOAD_URI}/files/#{file_id}/upload_sessions"
|
33
33
|
body = {file_size: io.size, file_name: name}
|
34
|
-
session_info, response = post(uri, body, content_type: "application/json")
|
34
|
+
session_info, response = post(uri, body, content_type: "application/json", success_codes: [200,201,202])
|
35
35
|
|
36
36
|
session_info
|
37
37
|
end
|
@@ -60,7 +60,7 @@ module Boxr
|
|
60
60
|
|
61
61
|
uri = "#{UPLOAD_URI}/files/upload_sessions/#{session_id}"
|
62
62
|
body = data
|
63
|
-
part_info, response = put(uri, body, process_body: false, digest: digest, content_type: "application/octet-stream", content_range: range)
|
63
|
+
part_info, response = put(uri, body, process_body: false, digest: digest, content_type: "application/octet-stream", content_range: range, success_codes: [200,201,202])
|
64
64
|
|
65
65
|
part_info.part
|
66
66
|
end
|
@@ -99,7 +99,7 @@ module Boxr
|
|
99
99
|
parts: parts,
|
100
100
|
attributes: attributes
|
101
101
|
}
|
102
|
-
commit_info, response = post(uri, body, process_body: true, digest: digest, content_type: "application/json", if_match: if_match, if_non_match: if_non_match)
|
102
|
+
commit_info, response = post(uri, body, process_body: true, digest: digest, content_type: "application/json", if_match: if_match, if_non_match: if_non_match, success_codes: [200,201,202])
|
103
103
|
|
104
104
|
commit_info
|
105
105
|
end
|
data/lib/boxr/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: boxr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.21.
|
4
|
+
version: 1.21.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chad Burnette
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2024-08-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -275,7 +275,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
275
275
|
- !ruby/object:Gem::Version
|
276
276
|
version: '0'
|
277
277
|
requirements: []
|
278
|
-
rubygems_version: 3.
|
278
|
+
rubygems_version: 3.5.9
|
279
279
|
signing_key:
|
280
280
|
specification_version: 4
|
281
281
|
summary: A Ruby client library for the Box V2 Content API.
|