box-com 0.0.11 → 0.0.12

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
  SHA1:
3
- metadata.gz: a205bac505b6e347a5168bee0a2ed5abaa2fac36
4
- data.tar.gz: e839361647cc9ab4b45856abaa5e399583091d59
3
+ metadata.gz: 1f53059226cce98c963e0386eade4b27a93907cc
4
+ data.tar.gz: 3be5baad4099a164f7f761601f8af20812979cb2
5
5
  SHA512:
6
- metadata.gz: b132cbf74eb1b2c32d56bc38b66a6739e87258aa15b30646e598775744e8f16fc68ebc638c871250d1db589298caa5893ce9f6ea0e06b842bb2361f68a84ea5d
7
- data.tar.gz: 8dda62716824e96a43c93768bc3002f54fcbfc74d89bf513b03592e990e61b24a31aee31a0ba9376bca83532fde58c045a4606411cf7f571d18df70138837881
6
+ metadata.gz: 67ce44bff92f596ca67b640a44f92ea14848b2ddcfefdf0f9154e1290b8848fe0e789e6e4c54bebb976aadc6bff79a6dd7c75f4b9460faa66dc631b19a0e4a8c
7
+ data.tar.gz: f6ecea124d711dbe688507c2e285bf21410e66f48822794ff636339a0c43937f8425c967d084d25ae60426c34477e6b342693cf128c14ba39f008a57a6354b49
@@ -13,4 +13,4 @@ module Box
13
13
 
14
14
  class MalformedAuthHeaders < BoxError
15
15
  end
16
- end
16
+ end
@@ -27,9 +27,9 @@ module Box
27
27
  type == 'file'
28
28
  end
29
29
 
30
- def self.find(id)
31
- response = Box.client.get("#{type.pluralize}/#{id}")
32
- self.new(Box.client, response.body)
30
+ def self.find(id, client = Box.client)
31
+ response = client.get("#{type.pluralize}/#{id}")
32
+ self.new(client, response.body)
33
33
  rescue Box::ResourceNotFound => e
34
34
  nil
35
35
  end
@@ -1,3 +1,3 @@
1
1
  module Box
2
- VERSION = "0.0.11"
2
+ VERSION = "0.0.12"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: box-com
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Michael