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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f627d3cd5d6271964448e0d68b12604103e1dc4b
4
- data.tar.gz: 3190d9dbb17ec7b53f6ea0dfa87614e777579ebb
3
+ metadata.gz: 5ca158dc16e7204d57e033aa7cde6d0b8b38934a
4
+ data.tar.gz: fca1444d32ab8484f947f46d10e71cb6ddc0dc02
5
5
  SHA512:
6
- metadata.gz: 8d184f3bc4f6e5f937af4386f10ab37411d0c3757ceae31b0cc9ac3545b1dc0ce6c9b958caf3a123896d506d494940fe43986185054efebc630fa795b6b50b68
7
- data.tar.gz: ff6236376dea77f27dd52ac27a9accde4ebf09e36f968800dcbcf595f280054076873990ea3087ef47934bc1fd35dba51a91518b976b3b52dbe454acfad46376
6
+ metadata.gz: 517ef5738ce9a2c00269282ec34724ea1a838eefc5f1bfea923945668bd2ced247beea8ecb77eb8905229b444e45e2ac2c68a9f72d8b202111c67fa2dee5e202
7
+ data.tar.gz: fbe04606c602d4ab4dc1ce9874400569832cc6d09caec9c53fc8428f6a23f864c6321c680dca4464680df472bb3039c9ed1e859f23860a6100f5ba92d5971c2d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- config_reader (1.0.1)
4
+ config_reader (1.0.2)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
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 @config_file
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)
@@ -1,3 +1,3 @@
1
1
  class ConfigReader
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
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.1
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-06-25 00:00:00.000000000 Z
11
+ date: 2014-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake