boxnet 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Boxnet
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
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
@@ -5,7 +5,7 @@ module Boxnet
5
5
  def initialize(raw_result)
6
6
  @raw_result = raw_result
7
7
  unless status == "Wrong input"
8
- @file_tree = Boxnet::FileTree.new(raw_result)
8
+ @file_tree = ::Boxnet::FileTree.new(raw_result)
9
9
  end
10
10
  end
11
11
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: boxnet
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.8
5
+ version: 0.0.9
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jonathan Birkholz