boxnet 0.0.8 → 0.0.9
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/file_node.rb +5 -5
- data/lib/result.rb +1 -1
- metadata +1 -1
data/lib/boxnet/version.rb
CHANGED
data/lib/file_node.rb
CHANGED
@@ -9,18 +9,18 @@ module Boxnet
|
|
9
9
|
|
10
10
|
if data.has_key?("folder")
|
11
11
|
puts "1" if data["folder"].nil?
|
12
|
-
self.folders << Folder.new(data["folder"])
|
12
|
+
self.folders << ::Boxnet::Folder.new(data["folder"])
|
13
13
|
elsif data.has_key?("folders")
|
14
14
|
folder = data["folders"]["folder"]
|
15
15
|
|
16
16
|
if folder.class == Array
|
17
17
|
folder.each do |f|
|
18
18
|
puts "2" if f.nil?
|
19
|
-
self.folders << Folder.new(f)
|
19
|
+
self.folders << ::Boxnet::Folder.new(f)
|
20
20
|
end
|
21
21
|
elsif folder.class == Hash
|
22
22
|
puts "3" if folder.nil?
|
23
|
-
self.folders << Folder.new(folder)
|
23
|
+
self.folders << ::Boxnet::Folder.new(folder)
|
24
24
|
end
|
25
25
|
end
|
26
26
|
|
@@ -30,11 +30,11 @@ module Boxnet
|
|
30
30
|
if file.class == Array
|
31
31
|
file.each do |f|
|
32
32
|
puts "4" if f.nil?
|
33
|
-
self.files << File.new(f)
|
33
|
+
self.files << ::Boxnet::File.new(f)
|
34
34
|
end
|
35
35
|
elsif file.class == Hash
|
36
36
|
puts "5" if file.nil?
|
37
|
-
self.files << File.new(file)
|
37
|
+
self.files << ::Boxnet::File.new(file)
|
38
38
|
end
|
39
39
|
end
|
40
40
|
end
|
data/lib/result.rb
CHANGED