dumon 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dumon/version.rb +1 -0
- data/lib/rrutils/confdb.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 417d926e3c88adabcf3ed59d4b043a19d8ad72db
|
4
|
+
data.tar.gz: 7c0caf011a4a4602ef35ae05ed2f506cc0e448d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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'],
|
data/lib/rrutils/confdb.rb
CHANGED
@@ -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
|
+
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-
|
11
|
+
date: 2013-04-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gtk2
|