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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 533074dd768a58f5d07c2018af0fb6bcbdc609b580dc2d645f2547419cbcbbf8
4
- data.tar.gz: 7f70218ebdad46163c96bb8a1a314230aa01da161f8d137cf4e96fb9ba925103
3
+ metadata.gz: 74214397ad9564122e307d187eb2b2420f1d840a4b2ef6905f0e10a16975b2b1
4
+ data.tar.gz: 4dd84469ec684ed0439025a8131814aa98caceb5880d86ae980965880a9d9ce7
5
5
  SHA512:
6
- metadata.gz: cfc53303a5bad816089dcfb65b2b9b7e9b1d39a816d2a7b8f4a2af3d7638984696dff3d6ed0712afcbf8cc766fc73e3d9ecd6c4b2b7b07dd16a716bb9ba860b5
7
- data.tar.gz: a5f58b2d5bfe960d9b46c564576abda03f9bb6d2eaa7e8dc1afa969501c211dea3ecb77ec28752be09c65fa75b02ffcb023bd80ee679999317d2e614b39887e6
6
+ metadata.gz: 98cec5779b5f09c36298263719cd55be16480189530cfcd370c3caa1a5023e503cec0d5df8b3361055936ccabd8f64747eb0d27de37edaef6371bd13569d4f13
7
+ data.tar.gz: c34a2588f407f986437af58a28442898484d54fef03708497af0b9282838b3df69ee8fc98f4be0e0739ce62f857cf5552cebc05976f1d7eff374c8fa969ac159
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Boxr
2
- VERSION = "1.21.0".freeze
2
+ VERSION = "1.21.1".freeze
3
3
  end
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.0
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: 2023-12-18 00:00:00.000000000 Z
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.1.6
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.