boxnet 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/boxnet/version.rb +1 -1
- data/lib/boxnet.rb +3 -2
- metadata +2 -2
data/lib/boxnet/version.rb
CHANGED
data/lib/boxnet.rb
CHANGED
@@ -36,6 +36,7 @@ module BoxnetApi
|
|
36
36
|
raw_result = get(@@URL + "?api_key=#{@@API_KEY}&action=get_account_tree&auth_token=#{auth_token}&folder_id=#{folder_id}¶ms[]=#{params_string}")
|
37
37
|
end
|
38
38
|
|
39
|
+
puts raw_result
|
39
40
|
Result.new(raw_result)
|
40
41
|
end
|
41
42
|
end
|
@@ -47,7 +48,7 @@ module BoxnetApi
|
|
47
48
|
# return data.nil?
|
48
49
|
@files = []
|
49
50
|
@folders = []
|
50
|
-
|
51
|
+
|
51
52
|
if data.has_key?("folder")
|
52
53
|
puts "1" if data["folder"].nil?
|
53
54
|
self.folders << BoxnetApi::Folder.new(data["folder"])
|
@@ -134,7 +135,7 @@ module BoxnetApi
|
|
134
135
|
|
135
136
|
def initialize(raw_result)
|
136
137
|
@raw_result = raw_result
|
137
|
-
unless status == "Wrong input"
|
138
|
+
unless status == "Wrong input" || status == "not_logged_in"
|
138
139
|
@file_tree = BoxnetApi::FileTree.new(raw_result)
|
139
140
|
end
|
140
141
|
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.
|
5
|
+
version: 0.0.14
|
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-
|
13
|
+
date: 2011-12-20 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rspec
|