boxview 0.0.2 → 0.0.3

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 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bc483ec034c4a1219845f3f61c37a775988b4818
4
- data.tar.gz: 9c8bdf3fb87d5c03c5e664765b839be072de0b70
3
+ metadata.gz: 751d4034dff48e9d1d2c846f4b377822f9564ae6
4
+ data.tar.gz: e9e524fb127d328b7d3f3edcc0789fa922bff73d
5
5
  SHA512:
6
- metadata.gz: b8d383e78d2935e93dc3a6d46dad0053da73d5490fb59dfe22ebea28f92c69c0186c0cd4986fcdb964c3b32eeecfc1f801db29c46b972233b9fe25bd54fb5559
7
- data.tar.gz: 9ba6fe08b6a58f8d25debe0a862d6bc17d42b85625d6d77ab861f59f992f6f0cf0c06c6043adeb53c4ffbbb006e21ef05226d3e3b849adef532f257003fed464
6
+ metadata.gz: dd783daecfc309be4a4b56ad2530d35cf722b8f0d273b0bb0d16b9b1998ba008ebb6dc7e2d442cf8e50c445851004cbaf1b29c37398303d671823a3cf49dbf0e
7
+ data.tar.gz: 191f0bc30f4265c903399369a8437494d162d78741316a70131277e43e41af5b8faa4058b4a455a751dff61399d6c841bae2a764df9171aa8cbe0f96e9ecd6a1
data/lib/boxview.rb CHANGED
@@ -11,7 +11,6 @@ module BoxView
11
11
 
12
12
  def self.connection
13
13
  connection = Faraday.new(:url => BoxView.api_url) do |conn|
14
- #conn.request :url_encoded # convert request params as "www-form-urlencoded"
15
14
  conn.response :json, :content_type => /\bjson$/
16
15
  conn.adapter Faraday.default_adapter
17
16
  end
@@ -23,6 +22,7 @@ module BoxView
23
22
  module Documents
24
23
  @@endpoint = "documents"
25
24
 
25
+ # takes the url of where the document is in the cloud
26
26
  def self.create url
27
27
  BoxView.connection.post do |request|
28
28
  request.url @@endpoint
@@ -30,5 +30,9 @@ module BoxView
30
30
  end
31
31
  end
32
32
 
33
+ def self.get_zip box_id
34
+ BoxView.connection.get "documents/#{box_id}/content.zip"
35
+ end
36
+
33
37
  end
34
38
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: boxview
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cyrus Karbassiyoon