iron_core 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/iron_core/client.rb +7 -2
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.1
|
data/lib/iron_core/client.rb
CHANGED
@@ -43,12 +43,17 @@ module IronCore
|
|
43
43
|
load_from_env(company.upcase)
|
44
44
|
|
45
45
|
suffixes = []
|
46
|
-
|
46
|
+
|
47
|
+
unless @env.nil?
|
48
|
+
suffixes << "-#{env}"
|
49
|
+
suffixes << "_#{env}"
|
50
|
+
end
|
51
|
+
|
47
52
|
suffixes << ''
|
48
53
|
|
49
54
|
suffixes.each do |suffix|
|
50
55
|
['.json', ''].each do |ext|
|
51
|
-
["#{company}-#{product}", product, company].each do |config_base|
|
56
|
+
["#{company}-#{product}", "#{company}_#{product}", product, company].each do |config_base|
|
52
57
|
load_from_config(company, product, "#{config_base}#{suffix}#{ext}")
|
53
58
|
load_from_config(company, product, ".#{config_base}#{suffix}#{ext}")
|
54
59
|
load_from_config(company, product, "~/#{config_base}#{suffix}#{ext}")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iron_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -89,7 +89,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
89
89
|
version: '0'
|
90
90
|
segments:
|
91
91
|
- 0
|
92
|
-
hash:
|
92
|
+
hash: 414805085
|
93
93
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|