boxr 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/boxr/exceptions.rb +1 -1
- data/lib/boxr/folders.rb +4 -0
- data/lib/boxr/version.rb +1 -1
- data/spec/boxr_spec.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 701cf0b13487355be79ee76e2a1e3c14f6b469e2
|
4
|
+
data.tar.gz: 4be68b9d0ea475e149e15dbda0698651a6de8deb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2a8c7de20cf50e9b1908663af64e438de58b23c6e1414e55ead210aa6b331f77160512760a72a50c89817e9433913c2cda99092ef32e21c102b4fa9d2547dce
|
7
|
+
data.tar.gz: 9fa79592811db54ff842378f90c5801f3303bda768456f5297557cf5b23288f6fb7330a48850f4225ce0c87de761ba1eca64cf525c42e59513145374423934d6
|
data/lib/boxr/exceptions.rb
CHANGED
data/lib/boxr/folders.rb
CHANGED
@@ -26,6 +26,10 @@ module Boxr
|
|
26
26
|
items = get_with_pagination uri, query: query, limit: FOLDER_ITEMS_LIMIT
|
27
27
|
end
|
28
28
|
|
29
|
+
def root_folder_items(fields: [])
|
30
|
+
folder_items(Boxr::ROOT, fields: fields)
|
31
|
+
end
|
32
|
+
|
29
33
|
def create_folder(name, parent_id)
|
30
34
|
uri = "#{FOLDERS_URI}"
|
31
35
|
attributes = {:name => name, :parent => {:id => parent_id}}
|
data/lib/boxr/version.rb
CHANGED
data/spec/boxr_spec.rb
CHANGED
@@ -37,7 +37,7 @@ describe Boxr::Client do
|
|
37
37
|
before(:each) do
|
38
38
|
puts "-----> Resetting Box Environment"
|
39
39
|
sleep BOX_SERVER_SLEEP
|
40
|
-
root_folders = BOX_CLIENT.
|
40
|
+
root_folders = BOX_CLIENT.root_folder_items.folders
|
41
41
|
test_folder = root_folders.find{|f| f.name == TEST_FOLDER_NAME}
|
42
42
|
if(test_folder)
|
43
43
|
BOX_CLIENT.delete_folder(test_folder.id, recursive: true)
|