dumon 0.2.0 → 0.2.1

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.
Files changed (3) hide show
  1. data/lib/dumon/version.rb +1 -0
  2. data/lib/dumon.rb +2 -1
  3. metadata +2 -2
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.1', '2013-03-13', 'BF #9: Crash Ruby 1.8.7 because of Dir.home'],
5
6
  ['0.2.0', '2013-03-12', 'Enh #5: Profiles; File based configuration'],
6
7
  ['0.1.7', '2013-02-13', 'Enh #4: About dialog'],
7
8
  ['0.1.6', '2013-02-11', 'BF #3: Crash by rendering popup menu if only one output is there'],
data/lib/dumon.rb CHANGED
@@ -65,7 +65,8 @@ module Dumon
65
65
  ###
66
66
  # Gets default config file.
67
67
  def config_file(mode='r')
68
- filename = "#{Dir.home}#{File::SEPARATOR}.config#{File::SEPARATOR}dumon.conf"
68
+ homedir = RUBY_VERSION < '1.9' ? ENV['HOME'] : Dir.home
69
+ filename = "#{homedir}#{File::SEPARATOR}.config#{File::SEPARATOR}dumon.conf"
69
70
 
70
71
  # check and create directory structure
71
72
  dirname = File.dirname filename
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dumon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-12 00:00:00.000000000 Z
12
+ date: 2013-03-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: gtk2