boxview 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/boxview.rb +5 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6603dddee7427b8bb859a25bf29d871ea8160de6
4
- data.tar.gz: 2a314760484ce9df9dda7aa37e9dec0fc6f92015
3
+ metadata.gz: 4fc38f98a5ff5bdad3c0621d42e59324b9d06aa8
4
+ data.tar.gz: b7dda21ac7d36e68b42468dfa9b74f2a8f16bd31
5
5
  SHA512:
6
- metadata.gz: f3792ebd3015f90256cc010474bfd85a0a482db0198fac4fbc599fdc59f87d8697f894ce600162f28ee7280edbd1269a91c42146d0404141e934c260ea537df8
7
- data.tar.gz: 0bc07a04dd1a62a7c521a9ed8b22402358b2137f9ef72c6bf6de37a7b71ce27cdb88acdb4c9bc79b07df653c30cf367f80c6bc74cd9a62384507d556b85fe441
6
+ metadata.gz: d570a5d874fec8e34627ff31a935d46e41fbccceaf5aa69ab9ede6e1f4b896fa8974bf33d172329567b1022e9bebf510ddb1ef59a248010c6254dc6a38956e2d
7
+ data.tar.gz: 12be1c1bcd72d6b288a7e00a05ae167de6d982f569b5197eedafb4d444d293b2804c2f8e80e52c6c913f0a79214ee4758b84a4f44158f05231ac8cc87a380dbb
data/lib/boxview.rb CHANGED
@@ -20,10 +20,13 @@ module BoxView
20
20
  end
21
21
 
22
22
  module Documents
23
- # url: url of a document in the cloud
24
- def self.create url
23
+ # attributes: a hash with url (required), name, and thumbnails
24
+ # url: string with url of a document in the cloud
25
+ # thumbnails: string with widthxheight dimensions "128x128,256x256"
26
+ def self.create attributes
25
27
  BoxView.connection.post do |request|
26
28
  request.url "documents"
29
+ attributes = { "url" => attributes[:url], "thumbnails" => attributes[:thumbnails] }
27
30
  request.body = '{"url": "' + url + '"}'
28
31
  end
29
32
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: boxview
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cyrus Karbassiyoon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-01-22 00:00:00.000000000 Z
11
+ date: 2013-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday