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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 85a9e52479cab2e593a06741ba16b2e4a44f60d6
4
- data.tar.gz: 20e2668309a30f3adbd07a0f494ccb97788144a0
3
+ metadata.gz: 701cf0b13487355be79ee76e2a1e3c14f6b469e2
4
+ data.tar.gz: 4be68b9d0ea475e149e15dbda0698651a6de8deb
5
5
  SHA512:
6
- metadata.gz: 46f24ca8c3bfb93a098c5dfbd63b69eeff3a316e662d119d096a0c92264608d755629fe933955d9ab5ad7b78d960c870ffb05bcc6427ee9bc78e1dda7568ca30
7
- data.tar.gz: 7f62b487fe1526578ab85386dda281b6cabcf1f21a69fcc83b39cd469dc7109b060dea139a4775016e2f060269045b2641bff38dfcc144478335b7939f08d274
6
+ metadata.gz: a2a8c7de20cf50e9b1908663af64e438de58b23c6e1414e55ead210aa6b331f77160512760a72a50c89817e9433913c2cda99092ef32e21c102b4fa9d2547dce
7
+ data.tar.gz: 9fa79592811db54ff842378f90c5801f3303bda768456f5297557cf5b23288f6fb7330a48850f4225ce0c87de761ba1eca64cf525c42e59513145374423934d6
@@ -28,7 +28,7 @@ module Boxr
28
28
  if(auth_header && auth_header != [])
29
29
  "#{@status}: #{auth_header}"
30
30
  elsif(@box_message)
31
- "#{@status}: #{@boxr_message}"
31
+ "#{@status}: #{@box_message}"
32
32
  elsif(@boxr_message)
33
33
  @boxr_message
34
34
  else
@@ -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}}
@@ -1,3 +1,3 @@
1
1
  module Boxr
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -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.folder_items(Boxr::ROOT).folders
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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: boxr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chad Burnette