biosphere 0.2.9 → 0.2.10

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: fc7978fc42c73db8148546690ffdc26363814862
4
- data.tar.gz: 62ab431bc12cfe129837619a221a2ab22da044d0
3
+ metadata.gz: 5334e29f8810799170f770884df905fdf69475fb
4
+ data.tar.gz: 81106994d0ce532dd43c7353f0380b5d3b886167
5
5
  SHA512:
6
- metadata.gz: 5e6c4478856e452ea74f8f6deaa46d9ef75eeb66f7fdc10a07976b235939a8f5d6b235f7d891951c61c74e6b69283292317bbd7d4f28837cf01a8ed1b0c507cd
7
- data.tar.gz: 390b6054285459b1870b6e1582d0ce3c1a4dfa147d39764d76277965b38b4a90db43403d33040f4683ba940c0f730a5914d0537c42923002d499b6bf94f8e6fd
6
+ metadata.gz: 792641b8e3ddda7b06d1a1755e7e3a674d63c36b4ee639cb39dee408cf2246a9c8adaf87ad3237ff9aa9d12b115c294b4175ee0e6351e3ebce6649eea40fd3ed
7
+ data.tar.gz: 5ffbf10cd0629e36c6f1f88b5fd64969f0e07cb929f3cf3b1d1aa1ee94df258b697f41cc248c41ad762ac259a53666a62a25295d576d93ddc94419a0e9c1383e
data/bin/biosphere CHANGED
@@ -104,8 +104,13 @@ if options.src
104
104
  end
105
105
  rescue ::Biosphere::ConfigurationError => e
106
106
  STDERR.puts "Configuration Error: #{e}".colorize(:red)
107
- STDERR.puts "Relevant configuration part:"
108
- ap e.settings
107
+ if e.explanation
108
+ STDERR.puts e.explanation
109
+ end
110
+ if e.settings
111
+ STDERR.puts "Relevant configuration part:"
112
+ ap e.settings
113
+ end
109
114
  exit -1
110
115
  end
111
116
 
@@ -3,9 +3,9 @@ class Biosphere
3
3
 
4
4
  class ConfigurationError < ::RuntimeError
5
5
 
6
- attr_reader :settings
6
+ attr_accessor :settings, :explanation
7
7
 
8
- def initialize(msg, settings)
8
+ def initialize(msg, settings = nil)
9
9
  super(msg)
10
10
 
11
11
  @settings = settings
@@ -1,3 +1,3 @@
1
1
  class Biosphere
2
- Version = "0.2.9"
2
+ Version = "0.2.10"
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.2.9
4
+ version: 0.2.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juho Mäkinen