files.com 1.0.40 → 1.0.41
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_VERSION +1 -1
- data/lib/files.com/models/behavior.rb +1 -1
- data/lib/files.com/models/file.rb +4 -4
- data/lib/files.com/models/file_action.rb +3 -3
- data/lib/files.com/models/file_comment.rb +1 -1
- data/lib/files.com/models/folder.rb +1 -1
- data/lib/files.com/models/lock.rb +3 -3
- data/lib/files.com/models/style.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48e8179e8257b2a26c7f9cbcabadb44ccac7638ffc3c55208d7f5222dcc71131
|
4
|
+
data.tar.gz: 024f9fe9152e1f136a1e90fcef37f3169fa6f8d154409dca788a1e53e238c7f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8d668061974ce10e51f5e810b2c0ec1a026b3df4cc3f32a93eb92fa6c73133fdf1fd512edda2178c82e429684a06499bc96511a0b7bb509d7846e453ec94c6e
|
7
|
+
data.tar.gz: 21fb074bd60a039379515075011209a4838c4252d835e435918f348d8fe2072dc74a1c955ed1dcaacb3031c6ac17ed4175a82b176a845c45819c3b45c9149ce2
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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
|
|