files.com 1.0.61 → 1.0.62

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: 0b09e6ed543889e7e479258251d52d0b107268d1f433193f288173901f503941
4
- data.tar.gz: f4234f67b3d797ba688dacbb3afba2572995157ad298d8f261024ea9c50d3ff3
3
+ metadata.gz: 47b2517c82f3f42d1734e705931677fb550521a147ce08000d01ef1404c29024
4
+ data.tar.gz: e7cbe0ac99053c1d156c57f8983ec58842552eef38d3e8b3e72faf8e4c262c8e
5
5
  SHA512:
6
- metadata.gz: bfc55bd3614d89dadd955e5952234c82e949ff68664a9d309c0c4edd691ddd11e0e0300f2b95cb3256f3d48266bb535f7cdf907f44532f7512900d70da215cc3
7
- data.tar.gz: 9caf19959a456c7c83fd0efe1d21bdc5066bbabaaf765fc6cbc13a48b44e602dd17807d873d63066bd8bcca509d096523a06f92f4b0cc4f4e4943bd40f5cbb00
6
+ metadata.gz: a41ec5693d7f81ff075f8d3ad29f9b8e8fb047007ea0de0b2035b94bf9983bc1dd461f5fc06637628000dd9b815438c16a35bc4c35acdb94c801a0f6e69e94dc
7
+ data.tar.gz: 2e2091a78586c778fae7573569d03a019a9dd20a8cd78d34c75dcba404560b967bef6c1efc3da603cda03409d44dce82e6b515a0ec8d0982e18e457b9344619e
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.61
1
+ 1.0.62
@@ -191,8 +191,9 @@ module Files
191
191
  def self.update(id, params = {}, options = {})
192
192
  params ||= {}
193
193
  params[:id] = id
194
- raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
194
+ raise InvalidParameterError.new("Bad parameter: id must be one of String, Integer, Hash") if params.dig(:id) and [String, Integer, Hash].none? { |klass| params.dig(:id).is_a?(klass) }
195
195
  raise InvalidParameterError.new("Bad parameter: value must be an String") if params.dig(:value) and !params.dig(:value).is_a?(String)
196
+ raise InvalidParameterError.new("Bad parameter: attachment_file must be one of String, Integer, Hash") if params.dig(:attachment_file) and [String, Integer, Hash].none? { |klass| params.dig(:attachment_file).is_a?(klass) }
196
197
  raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
197
198
 
198
199
  response, options = Api.send_request("/behaviors/#{params[:id]}", :patch, params, options)
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.61
4
+ version: 1.0.62
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com