boxview 0.0.5 → 0.0.6
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 +4 -4
- data/lib/boxview.rb +5 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4fc38f98a5ff5bdad3c0621d42e59324b9d06aa8
|
4
|
+
data.tar.gz: b7dda21ac7d36e68b42468dfa9b74f2a8f16bd31
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
#
|
24
|
-
|
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.
|
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-
|
11
|
+
date: 2013-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|