files.com 1.0.40 → 1.0.41

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: 1cc5e27a9ffa9ed5fdf496bf1e6579bee8667bab65615d44026ccb3b3043aac7
4
- data.tar.gz: 11849b0ae94dcb01bc00e2f636392949a7add10e9df114f20429547d693ddb7a
3
+ metadata.gz: 48e8179e8257b2a26c7f9cbcabadb44ccac7638ffc3c55208d7f5222dcc71131
4
+ data.tar.gz: 024f9fe9152e1f136a1e90fcef37f3169fa6f8d154409dca788a1e53e238c7f4
5
5
  SHA512:
6
- metadata.gz: a6ee615de2dadc3273c3828bc1249e30f0bb04609e84b717d028b5dc4e5e744dd9f34c4a90abc9139f066245a43c1e3de9bd705ee7914aa5a7c033db1da87611
7
- data.tar.gz: 077d479cd0fc95971de5f503456d5088ebf2347dba6f9e79de050da92ed90eef3d976973b67ca72b049705abc3a8bf1b78cfab58385ecadecdae9a6ccddfd106
6
+ metadata.gz: c8d668061974ce10e51f5e810b2c0ec1a026b3df4cc3f32a93eb92fa6c73133fdf1fd512edda2178c82e429684a06499bc96511a0b7bb509d7846e453ec94c6e
7
+ data.tar.gz: 21fb074bd60a039379515075011209a4838c4252d835e435918f348d8fe2072dc74a1c955ed1dcaacb3031c6ac17ed4175a82b176a845c45819c3b45c9149ce2
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.40
1
+ 1.0.41
@@ -136,7 +136,7 @@ module Files
136
136
  raise InvalidParameterError.new("Bad parameter: behavior must be an String") if params.dig(:behavior) and !params.dig(:behavior).is_a?(String)
137
137
  raise MissingParameterError.new("Parameter missing: path") unless params.dig(:path)
138
138
 
139
- response, options = Api.send_request("/behaviors/folders/#{URI.encode_www_form_component(params[:path])}", :get, params, options)
139
+ response, options = Api.send_request("/behaviors/folders/#{Addressable::URI.encode_component(params[:path])}", :get, params, options)
140
140
  end
141
141
 
142
142
  # Parameters:
@@ -930,7 +930,7 @@ module Files
930
930
  raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
931
931
  raise MissingParameterError.new("Parameter missing: path") unless params.dig(:path)
932
932
 
933
- response, options = Api.send_request("/files/#{URI.encode_www_form_component(params[:path])}", :get, params, options)
933
+ response, options = Api.send_request("/files/#{Addressable::URI.encode_component(params[:path])}", :get, params, options)
934
934
  File.new(response.data, options)
935
935
  end
936
936
 
@@ -965,7 +965,7 @@ module Files
965
965
  raise InvalidParameterError.new("Bad parameter: structure must be an String") if params.dig(:structure) and !params.dig(:structure).is_a?(String)
966
966
  raise MissingParameterError.new("Parameter missing: path") unless params.dig(:path)
967
967
 
968
- response, options = Api.send_request("/files/#{URI.encode_www_form_component(params[:path])}", :post, params, options)
968
+ response, options = Api.send_request("/files/#{Addressable::URI.encode_component(params[:path])}", :post, params, options)
969
969
  File.new(response.data, options)
970
970
  end
971
971
 
@@ -980,7 +980,7 @@ module Files
980
980
  raise InvalidParameterError.new("Bad parameter: priority_color must be an String") if params.dig(:priority_color) and !params.dig(:priority_color).is_a?(String)
981
981
  raise MissingParameterError.new("Parameter missing: path") unless params.dig(:path)
982
982
 
983
- response, options = Api.send_request("/files/#{URI.encode_www_form_component(params[:path])}", :patch, params, options)
983
+ response, options = Api.send_request("/files/#{Addressable::URI.encode_component(params[:path])}", :patch, params, options)
984
984
  File.new(response.data, options)
985
985
  end
986
986
 
@@ -992,7 +992,7 @@ module Files
992
992
  raise InvalidParameterError.new("Bad parameter: path must be an String") if params.dig(:path) and !params.dig(:path).is_a?(String)
993
993
  raise MissingParameterError.new("Parameter missing: path") unless params.dig(:path)
994
994
 
995
- response, _options = Api.send_request("/files/#{URI.encode_www_form_component(params[:path])}", :delete, params, options)
995
+ response, _options = Api.send_request("/files/#{Addressable::URI.encode_component(params[:path])}", :delete, params, options)
996
996
  response.data
997
997
  end
998
998
 
@@ -76,7 +76,7 @@ module Files
76
76
  raise MissingParameterError.new("Parameter missing: path") unless params.dig(:path)
77
77
  raise MissingParameterError.new("Parameter missing: destination") unless params.dig(:destination)
78
78
 
79
- response, _options = Api.send_request("/file_actions/copy/#{URI.encode_www_form_component(params[:path])}", :post, params, options)
79
+ response, _options = Api.send_request("/file_actions/copy/#{Addressable::URI.encode_component(params[:path])}", :post, params, options)
80
80
  response.data
81
81
  end
82
82
 
@@ -92,7 +92,7 @@ module Files
92
92
  raise MissingParameterError.new("Parameter missing: path") unless params.dig(:path)
93
93
  raise MissingParameterError.new("Parameter missing: destination") unless params.dig(:destination)
94
94
 
95
- response, _options = Api.send_request("/file_actions/move/#{URI.encode_www_form_component(params[:path])}", :post, params, options)
95
+ response, _options = Api.send_request("/file_actions/move/#{Addressable::URI.encode_component(params[:path])}", :post, params, options)
96
96
  response.data
97
97
  end
98
98
 
@@ -115,7 +115,7 @@ module Files
115
115
  raise InvalidParameterError.new("Bad parameter: restart must be an Integer") if params.dig(:restart) and !params.dig(:restart).is_a?(Integer)
116
116
  raise MissingParameterError.new("Parameter missing: path") unless params.dig(:path)
117
117
 
118
- response, options = Api.send_request("/file_actions/begin_upload/#{URI.encode_www_form_component(params[:path])}", :post, params, options)
118
+ response, options = Api.send_request("/file_actions/begin_upload/#{Addressable::URI.encode_component(params[:path])}", :post, params, options)
119
119
  FilePartUpload.new(response.data, options)
120
120
  end
121
121
  end
@@ -96,7 +96,7 @@ module Files
96
96
  raise InvalidParameterError.new("Bad parameter: path must be an String") if params.dig(:path) and !params.dig(:path).is_a?(String)
97
97
  raise MissingParameterError.new("Parameter missing: path") unless params.dig(:path)
98
98
 
99
- response, options = Api.send_request("/file_comments/files/#{URI.encode_www_form_component(params[:path])}", :get, params, options)
99
+ response, options = Api.send_request("/file_comments/files/#{Addressable::URI.encode_component(params[:path])}", :get, params, options)
100
100
  end
101
101
 
102
102
  # Parameters:
@@ -358,7 +358,7 @@ module Files
358
358
  raise InvalidParameterError.new("Bad parameter: path must be an String") if params.dig(:path) and !params.dig(:path).is_a?(String)
359
359
  raise MissingParameterError.new("Parameter missing: path") unless params.dig(:path)
360
360
 
361
- response, options = Api.send_request("/folders/#{URI.encode_www_form_component(params[:path])}", :post, params, options)
361
+ response, options = Api.send_request("/folders/#{Addressable::URI.encode_component(params[:path])}", :post, params, options)
362
362
  File.new(response.data, options)
363
363
  end
364
364
  end
@@ -147,7 +147,7 @@ module Files
147
147
  raise InvalidParameterError.new("Bad parameter: path must be an String") if params.dig(:path) and !params.dig(:path).is_a?(String)
148
148
  raise MissingParameterError.new("Parameter missing: path") unless params.dig(:path)
149
149
 
150
- response, options = Api.send_request("/locks/#{URI.encode_www_form_component(params[:path])}", :get, params, options)
150
+ response, options = Api.send_request("/locks/#{Addressable::URI.encode_component(params[:path])}", :get, params, options)
151
151
  end
152
152
 
153
153
  # Create Lock
@@ -161,7 +161,7 @@ module Files
161
161
  raise InvalidParameterError.new("Bad parameter: timeout must be an Integer") if params.dig(:timeout) and !params.dig(:timeout).is_a?(Integer)
162
162
  raise MissingParameterError.new("Parameter missing: path") unless params.dig(:path)
163
163
 
164
- response, options = Api.send_request("/locks/#{URI.encode_www_form_component(params[:path])}", :post, params, options)
164
+ response, options = Api.send_request("/locks/#{Addressable::URI.encode_component(params[:path])}", :post, params, options)
165
165
  Lock.new(response.data, options)
166
166
  end
167
167
 
@@ -175,7 +175,7 @@ module Files
175
175
  raise MissingParameterError.new("Parameter missing: path") unless params.dig(:path)
176
176
  raise MissingParameterError.new("Parameter missing: token") unless params.dig(:token)
177
177
 
178
- response, _options = Api.send_request("/locks/#{URI.encode_www_form_component(params[:path])}", :delete, params, options)
178
+ response, _options = Api.send_request("/locks/#{Addressable::URI.encode_component(params[:path])}", :delete, params, options)
179
179
  response.data
180
180
  end
181
181
 
@@ -93,7 +93,7 @@ module Files
93
93
  raise InvalidParameterError.new("Bad parameter: path must be an String") if params.dig(:path) and !params.dig(:path).is_a?(String)
94
94
  raise MissingParameterError.new("Parameter missing: path") unless params.dig(:path)
95
95
 
96
- response, options = Api.send_request("/styles/#{URI.encode_www_form_component(params[:path])}", :get, params, options)
96
+ response, options = Api.send_request("/styles/#{Addressable::URI.encode_component(params[:path])}", :get, params, options)
97
97
  Style.new(response.data, options)
98
98
  end
99
99
 
@@ -110,7 +110,7 @@ module Files
110
110
  raise MissingParameterError.new("Parameter missing: path") unless params.dig(:path)
111
111
  raise MissingParameterError.new("Parameter missing: file") unless params.dig(:file)
112
112
 
113
- response, options = Api.send_request("/styles/#{URI.encode_www_form_component(params[:path])}", :patch, params, options)
113
+ response, options = Api.send_request("/styles/#{Addressable::URI.encode_component(params[:path])}", :patch, params, options)
114
114
  Style.new(response.data, options)
115
115
  end
116
116
 
@@ -120,7 +120,7 @@ module Files
120
120
  raise InvalidParameterError.new("Bad parameter: path must be an String") if params.dig(:path) and !params.dig(:path).is_a?(String)
121
121
  raise MissingParameterError.new("Parameter missing: path") unless params.dig(:path)
122
122
 
123
- response, _options = Api.send_request("/styles/#{URI.encode_www_form_component(params[:path])}", :delete, params, options)
123
+ response, _options = Api.send_request("/styles/#{Addressable::URI.encode_component(params[:path])}", :delete, params, options)
124
124
  response.data
125
125
  end
126
126
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: files.com
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.40
4
+ version: 1.0.41
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com