boxnet 0.0.14 → 0.0.15

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module BoxnetApi
2
- VERSION = "0.0.14"
2
+ VERSION = "0.0.15"
3
3
  end
data/lib/boxnet.rb CHANGED
@@ -36,7 +36,6 @@ module BoxnetApi
36
36
  raw_result = get(@@URL + "?api_key=#{@@API_KEY}&action=get_account_tree&auth_token=#{auth_token}&folder_id=#{folder_id}&params[]=#{params_string}")
37
37
  end
38
38
 
39
- puts raw_result
40
39
  Result.new(raw_result)
41
40
  end
42
41
  end
@@ -50,7 +49,6 @@ module BoxnetApi
50
49
  @folders = []
51
50
 
52
51
  if data.has_key?("folder")
53
- puts "1" if data["folder"].nil?
54
52
  self.folders << BoxnetApi::Folder.new(data["folder"])
55
53
  elsif data.has_key?("folders")
56
54
  folder = data["folders"]["folder"]
@@ -2,23 +2,25 @@ require 'spec_helper'
2
2
 
3
3
  describe "get account tree" do
4
4
  before(:each) do
5
- BoxnetApi::Client.API_KEY = ENV["BOXNET_API_KEY"]
5
+ # BoxnetApi::Client.API_KEY = ENV["BOXNET_API_KEY"]
6
+ BoxnetApi::Client.API_KEY = "psslok0kb5vv4efa0jefydfppyzq7x65"
6
7
  end
7
8
 
8
9
  context "entire tree from root" do
9
10
  before(:each) do
10
- @auth_token = "d402qzspvmk46zo6l59kcplaidmza76o"
11
+ # @auth_token = "d402qzspvmk46zo6l59kcplaidmza76o"
12
+ @auth_token = "ktoymf6umnn7tfiular81xb48n91zrlr"
11
13
  @result = BoxnetApi::Client.get_account_tree(@auth_token, "0")
12
14
  end
13
15
  it { @result.should_not be_nil }
14
16
  end
15
17
 
16
- context "entire tree from root" do
17
- before(:each) do
18
- @auth_token = "vgp6hb8kjpxbctlmrrigdmvz2fyqpvib"
19
- @result = BoxnetApi::Client.get_account_tree(@auth_token, "0")
20
- end
21
- it { @result.should_not be_nil }
22
- end
18
+ # context "entire tree from root" do
19
+ # before(:each) do
20
+ # @auth_token = "vgp6hb8kjpxbctlmrrigdmvz2fyqpvib"
21
+ # @result = BoxnetApi::Client.get_account_tree(@auth_token, "0")
22
+ # end
23
+ # it { @result.should_not be_nil }
24
+ # end
23
25
 
24
26
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: boxnet
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.14
5
+ version: 0.0.15
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jonathan Birkholz
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-12-20 00:00:00 Z
13
+ date: 2012-01-04 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec