boxnet 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/boxnet/version.rb +1 -1
  2. data/lib/file_node.rb +6 -1
  3. metadata +1 -1
@@ -1,3 +1,3 @@
1
1
  module Boxnet
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
data/lib/file_node.rb CHANGED
@@ -3,20 +3,23 @@ module Boxnet
3
3
  attr :files, :folders
4
4
 
5
5
  def process_node(data)
6
- return data.nil?
6
+ # return data.nil?
7
7
  @files = []
8
8
  @folders = []
9
9
 
10
10
  if data.has_key?("folder")
11
+ puts "1" if data["folder"].nil?
11
12
  self.folders << Folder.new(data["folder"])
12
13
  elsif data.has_key?("folders")
13
14
  folder = data["folders"]["folder"]
14
15
 
15
16
  if folder.class == Array
16
17
  folder.each do |f|
18
+ puts "2" if f.nil?
17
19
  self.folders << Folder.new(f)
18
20
  end
19
21
  elsif folder.class == Hash
22
+ puts "3" if folder.nil?
20
23
  self.folders << Folder.new(folder)
21
24
  end
22
25
  end
@@ -26,9 +29,11 @@ module Boxnet
26
29
 
27
30
  if file.class == Array
28
31
  file.each do |f|
32
+ puts "4" if f.nil?
29
33
  self.files << File.new(f)
30
34
  end
31
35
  elsif file.class == Hash
36
+ puts "5" if file.nil?
32
37
  self.files << File.new(file)
33
38
  end
34
39
  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.7
5
+ version: 0.0.8
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jonathan Birkholz