fig_newton 0.8 → 0.9

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.
data/.ruby-gemset ADDED
@@ -0,0 +1 @@
1
+ fig_newton
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ ruby-1.9.3-p392
data/ChangeLog CHANGED
@@ -1,3 +1,8 @@
1
+ === Version 0.9 / 2013-3-2
2
+ * Enhancements
3
+ * Fixed so no longer reading file when using default
4
+ * Removed some print statements
5
+
1
6
  === Version 0.8 / 2013-3-28
2
7
  * Enhancements
3
8
  * Added ability to provide default values for any element (Thanks Peter Hartman)
@@ -16,15 +16,16 @@ module FigNewton
16
16
  def read_file
17
17
  @yml = nil
18
18
  @yml = YAML.load_file "#{yml_directory}/#{ENV['FIG_NEWTON_FILE']}" if ENV['FIG_NEWTON_FILE']
19
- hostname = Socket.gethostname
20
- puts hostname
21
- hostfile = "#{yml_directory}/#{hostname}.yml"
22
- puts hostfile
23
- @yml = YAML.load_file hostfile if File.exist? hostfile and @yml.nil?
19
+ unless @yml
20
+ hostname = Socket.gethostname
21
+ hostfile = "#{yml_directory}/#{hostname}.yml"
22
+ @yml = YAML.load_file hostfile if File.exist? hostfile
23
+ end
24
24
  FigNewton.load('default.yml') if @yml.nil?
25
25
  end
26
26
 
27
27
  private
28
+
28
29
  def type_known?(value)
29
30
  value.kind_of? String or value.kind_of? Integer
30
31
  end
@@ -1,3 +1,3 @@
1
1
  module FigNewton
2
- VERSION = "0.8"
2
+ VERSION = "0.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fig_newton
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.8'
4
+ version: '0.9'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-03-28 00:00:00.000000000 Z
13
+ date: 2013-06-02 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: yml_reader
@@ -71,7 +71,8 @@ extra_rdoc_files: []
71
71
  files:
72
72
  - .gitignore
73
73
  - .rspec
74
- - .rvmrc
74
+ - .ruby-gemset
75
+ - .ruby-version
75
76
  - .travis.yml
76
77
  - ChangeLog
77
78
  - Gemfile
@@ -107,7 +108,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
107
108
  version: '0'
108
109
  segments:
109
110
  - 0
110
- hash: -3441503605915492035
111
+ hash: -2725441559212189178
111
112
  required_rubygems_version: !ruby/object:Gem::Requirement
112
113
  none: false
113
114
  requirements:
@@ -116,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
117
  version: '0'
117
118
  segments:
118
119
  - 0
119
- hash: -3441503605915492035
120
+ hash: -2725441559212189178
120
121
  requirements: []
121
122
  rubyforge_project:
122
123
  rubygems_version: 1.8.25
data/.rvmrc DELETED
@@ -1 +0,0 @@
1
- rvm 1.9.3-p392@fig_newton --create