biosphere 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 07a529aa22b0274989393f6105d8ca6e3fda645b
4
- data.tar.gz: 055f4a5f72c074c03e338d5cd28b3aaf4c2af184
3
+ metadata.gz: 404d1a6e3d9d209f64e447a2bf47a5f7b0d1084b
4
+ data.tar.gz: 1ce8345cceb2828c14d2b2ba60b60cf04aac17ab
5
5
  SHA512:
6
- metadata.gz: 77f8b8cfaf284f335622fce5f853604cbdd4eccb5e758cb1da3bf98556cc000fea73125ff3bfce4f54d65bbfdbb50cb94d739934f5be61e3ee2654f8d4935da1
7
- data.tar.gz: 42aea2700cc84a49ac80127ee9762f2c05c74d10883041c81ec3db70902b35e72607d857dc304289f323329bd7d91000c082e01f9f2a919b781d19f225b53f1b
6
+ metadata.gz: fe2c1b07bb80b8654978cfd7850e649e801cc116409e997fc08279921ede18dbc3613cc8e5b426f0c6bd9ef7d8233e037b2e760a20595966e2704122a1578907
7
+ data.tar.gz: 5c6dd6ad9ca0dc2e0e75a846e1e623d108e00110d176809000130cfb3a5e8e7c0b8c5970fb19d9e8c4e3655fbdb8872e2dc43f1ce1b139fefae11159b744a990
data/bin/biosphere CHANGED
@@ -13,6 +13,7 @@ class BiosphereOpts
13
13
  options = OpenStruct.new
14
14
  options.build = "build"
15
15
  options.src = "./"
16
+ options.version = ::Biosphere::Version
16
17
 
17
18
  opt_parser = OptionParser.new do |opts|
18
19
 
@@ -68,7 +69,10 @@ if options.src
68
69
  STDERR.puts "Loading suite from current directory (#{File.expand_path(options.src)}). Use --src to change the path"
69
70
  end
70
71
 
71
- suite.load_all()
72
+ if suite.load_all() == 0
73
+ STDERR.puts "No files found. Are you in the right directory where your biosphere .rb files are?"
74
+ exit -1
75
+ end
72
76
  end
73
77
 
74
78
  if options.build
@@ -42,6 +42,7 @@ class Biosphere
42
42
  @files.each do |file_name, proxy|
43
43
  proxy.evaluate_resources()
44
44
  end
45
+
45
46
  end
46
47
 
47
48
  def load_all()
@@ -56,6 +57,8 @@ class Biosphere
56
57
  @actions[key] = value
57
58
  end
58
59
  end
60
+
61
+ return @files.length
59
62
  end
60
63
 
61
64
  def save_node(filename = "state.node")
@@ -1,3 +1,3 @@
1
1
  class Biosphere
2
- Version = "0.0.4"
2
+ Version = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: biosphere
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juho Mäkinen