boxr 1.20.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: bc9199475be8f2f434b78c3e9f97235a81070d0feb4ebd194816ba5fe6f78bfb
4
- data.tar.gz: d758a7ada5f0761da42c8dff7accb946ad8567b19c0aa0e5b970d082d8a7ca34
3
+ metadata.gz: 74214397ad9564122e307d187eb2b2420f1d840a4b2ef6905f0e10a16975b2b1
4
+ data.tar.gz: 4dd84469ec684ed0439025a8131814aa98caceb5880d86ae980965880a9d9ce7
5
5
  SHA512:
6
- metadata.gz: 343eac2cc180333da53e939e584c0beccd21a4ed0a72ef46f6a208f11c782fc35646ba7af14979789f4de541aeebd96a2a70db352944278ba8dc8ef44e791aef
7
- data.tar.gz: 21f27d4284e8b713e10a8cf1a97b4929b946aca1c64452baebd50c1bbe4516a60cfcbe1fa9a7e2dbd03593c87bbb635bde380143fb63d298a4c7c8155a45645d
6
+ metadata.gz: 98cec5779b5f09c36298263719cd55be16480189530cfcd370c3caa1a5023e503cec0d5df8b3361055936ccabd8f64747eb0d27de37edaef6371bd13569d4f13
7
+ data.tar.gz: c34a2588f407f986437af58a28442898484d54fef03708497af0b9282838b3df69ee8fc98f4be0e0739ce62f857cf5552cebc05976f1d7eff374c8fa969ac159
data/boxr.gemspec CHANGED
@@ -21,17 +21,17 @@ Gem::Specification.new do |spec|
21
21
  spec.required_ruby_version = '>= 2.0'
22
22
 
23
23
  spec.add_development_dependency "bundler", "~> 2.3"
24
- spec.add_development_dependency "rake", "~> 10.0"
24
+ spec.add_development_dependency "rake", "~> 13.1"
25
25
  spec.add_development_dependency "rspec", "~> 3.1"
26
26
  spec.add_development_dependency "simplecov", "~> 0.9"
27
- spec.add_development_dependency "dotenv", "~> 0.11"
27
+ spec.add_development_dependency "dotenv", "~> 2.8"
28
28
  spec.add_development_dependency "awesome_print", "~> 1.8"
29
- spec.add_development_dependency "lru_redux", "~> 0.8"
29
+ spec.add_development_dependency "lru_redux", "~> 1.1"
30
30
  spec.add_development_dependency "parallel", "~> 1.0"
31
31
  spec.add_development_dependency "rubyzip", "~> 2.3"
32
32
 
33
33
  spec.add_runtime_dependency "httpclient", "~> 2.8"
34
34
  spec.add_runtime_dependency "hashie", ">= 3.5", "< 6"
35
- spec.add_runtime_dependency "addressable", "~> 2.3"
35
+ spec.add_runtime_dependency "addressable", "~> 2.8"
36
36
  spec.add_runtime_dependency "jwt", ">= 1.4", "< 3"
37
37
  end
@@ -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.20.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.20.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-07-28 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
@@ -31,14 +31,14 @@ dependencies:
31
31
  requirements:
32
32
  - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: '10.0'
34
+ version: '13.1'
35
35
  type: :development
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: '10.0'
41
+ version: '13.1'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: rspec
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -73,14 +73,14 @@ dependencies:
73
73
  requirements:
74
74
  - - "~>"
75
75
  - !ruby/object:Gem::Version
76
- version: '0.11'
76
+ version: '2.8'
77
77
  type: :development
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
81
  - - "~>"
82
82
  - !ruby/object:Gem::Version
83
- version: '0.11'
83
+ version: '2.8'
84
84
  - !ruby/object:Gem::Dependency
85
85
  name: awesome_print
86
86
  requirement: !ruby/object:Gem::Requirement
@@ -101,14 +101,14 @@ dependencies:
101
101
  requirements:
102
102
  - - "~>"
103
103
  - !ruby/object:Gem::Version
104
- version: '0.8'
104
+ version: '1.1'
105
105
  type: :development
106
106
  prerelease: false
107
107
  version_requirements: !ruby/object:Gem::Requirement
108
108
  requirements:
109
109
  - - "~>"
110
110
  - !ruby/object:Gem::Version
111
- version: '0.8'
111
+ version: '1.1'
112
112
  - !ruby/object:Gem::Dependency
113
113
  name: parallel
114
114
  requirement: !ruby/object:Gem::Requirement
@@ -177,14 +177,14 @@ dependencies:
177
177
  requirements:
178
178
  - - "~>"
179
179
  - !ruby/object:Gem::Version
180
- version: '2.3'
180
+ version: '2.8'
181
181
  type: :runtime
182
182
  prerelease: false
183
183
  version_requirements: !ruby/object:Gem::Requirement
184
184
  requirements:
185
185
  - - "~>"
186
186
  - !ruby/object:Gem::Version
187
- version: '2.3'
187
+ version: '2.8'
188
188
  - !ruby/object:Gem::Dependency
189
189
  name: jwt
190
190
  requirement: !ruby/object:Gem::Requirement
@@ -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.