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 +1 -0
- data/.ruby-version +1 -0
- data/ChangeLog +5 -0
- data/lib/fig_newton/missing.rb +6 -5
- data/lib/fig_newton/version.rb +1 -1
- metadata +6 -5
- data/.rvmrc +0 -1
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
data/lib/fig_newton/missing.rb
CHANGED
@@ -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
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
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
|
data/lib/fig_newton/version.rb
CHANGED
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.
|
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-
|
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
|
-
- .
|
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: -
|
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: -
|
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
|