config_reader 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/config_reader.rb +2 -2
- data/lib/config_reader/version.rb +1 -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: 5ca158dc16e7204d57e033aa7cde6d0b8b38934a
|
4
|
+
data.tar.gz: fca1444d32ab8484f947f46d10e71cb6ddc0dc02
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 517ef5738ce9a2c00269282ec34724ea1a838eefc5f1bfea923945668bd2ced247beea8ecb77eb8905229b444e45e2ac2c68a9f72d8b202111c67fa2dee5e202
|
7
|
+
data.tar.gz: fbe04606c602d4ab4dc1ce9874400569832cc6d09caec9c53fc8428f6a23f864c6321c680dca4464680df472bb3039c9ed1e859f23860a6100f5ba92d5971c2d
|
data/Gemfile.lock
CHANGED
data/lib/config_reader.rb
CHANGED
@@ -53,7 +53,7 @@ class ConfigReader
|
|
53
53
|
end
|
54
54
|
|
55
55
|
def find_env
|
56
|
-
if defined?(Rails) && Rails.stage
|
56
|
+
if defined?(Rails) && Rails.respond_to?(:stage)
|
57
57
|
Rails.stage
|
58
58
|
elsif defined?(Rails) && Rails.env
|
59
59
|
Rails.env
|
@@ -71,7 +71,7 @@ class ConfigReader
|
|
71
71
|
end
|
72
72
|
|
73
73
|
def load_config
|
74
|
-
raise 'No config file set' unless
|
74
|
+
raise 'No config file set' unless find_config
|
75
75
|
|
76
76
|
if defined?(ERB)
|
77
77
|
conf = YAML.load(ERB.new(File.open(find_config).read).result)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: config_reader
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Moen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-11-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|