dumon 0.2.4 → 0.2.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: acc82471c1842c62b7a7cb432e20194d7ebf579a
4
- data.tar.gz: 30145a002f41442f2b807e36c47c5771f6c0d664
3
+ metadata.gz: 417d926e3c88adabcf3ed59d4b043a19d8ad72db
4
+ data.tar.gz: 7c0caf011a4a4602ef35ae05ed2f506cc0e448d4
5
5
  SHA512:
6
- metadata.gz: 2d4c3f4f8a83ffbd3a467bac3af0ed981b3b10211e5d58e1de1708c2b978eb1f97a13e0023233a898fd8688e841469b6d0bb829ae265e683a9628d39ed61e425
7
- data.tar.gz: c7283d64b5ecf1612cc531508307a8c79ed5916c5b83d43efc622eee9711d72049ff749d2e71826ed9c2f0336070d48f789f4f498f55d74b7e8c102a892e1c01
6
+ metadata.gz: 79f1944e188a5c5fcdf4246f8d4ae4ef8690800b200fd00d2547c1ab37853bb3602495bcaee8e5a4ab7341dfa655d244ff44335475d54db2c5711344cefbb35b
7
+ data.tar.gz: 7d26510f27588fe464dd9a49577cc6c26242c624f682f34c06f669a8d1ff9864175d236253f3f5d6499fabccf90869598534aa5315bd787fabc419606341e24a
data/lib/dumon/version.rb CHANGED
@@ -2,6 +2,7 @@ module Dumon
2
2
 
3
3
  # Version history.
4
4
  VERSION_HISTORY = [
5
+ ['0.2.5', '2013-04-02', 'BF #12, Profile dialog fails if configuration is empty'],
5
6
  ['0.2.4', '2013-03-29', 'New CLI argument: --reset, tested with MRI Ruby 2.0.0'],
6
7
  ['0.2.3', '2013-03-17', 'BF #10: Profile dialog fails unless configuration exists'],
7
8
  ['0.2.2', '2013-03-15', 'Enh #6: Vertical location of outputs'],
@@ -13,7 +13,8 @@ module Rrutils
13
13
  rslt = {}
14
14
  unless input_stream.nil?
15
15
  begin
16
- rslt = JSON.load(input_stream)
16
+ rslt = JSON.load(input_stream) # returns 'nil' if empty file
17
+ rslt ||= {}
17
18
  Dumon::logger.debug "Configuration readed, keys=#{rslt.keys}"
18
19
  rescue => e
19
20
  Dumon::logger.warn "failed to read configuration: #{e.message}"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dumon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vaclav Sykora
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-03-29 00:00:00.000000000 Z
11
+ date: 2013-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gtk2