qonf 0.0.1 → 0.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: 591bc552b73f533e5f5b4b1bdf31797da741c2cc
4
- data.tar.gz: 5a9adc0b572be57e28ae9e97c75a9a6d0517dae5
3
+ metadata.gz: 8e1ef8c9bbf6a8d5f9cd0f71c5253a44424970dc
4
+ data.tar.gz: 43b459ff2cb58753fe21720f1c1fe3353616d7cd
5
5
  SHA512:
6
- metadata.gz: c3a456363433f117a4e866ec14bbe727e415b2866f12b86a120797a170526d831815cb43263dc1dd2b660c4dac476968d15d946b8f6dfdcb5bf81c527ee40596
7
- data.tar.gz: 4238289d7180f232d3eb9770605f7bec6c989a6d663184df7cd27720cc5d276ab393afc39226ad5d21e2b4a937b2e949e0ef3859371b8406210dc44fefa3f606
6
+ metadata.gz: dbc596ae062ef2df9de3fb17a15e9840e9047e54b9c84a9568326f660674cfee5cb6d17d48e83978ba8a87048420a1a41ca1acafc851e1f27fdf82d6f302477f
7
+ data.tar.gz: 4bf7a0488b3c608021176ef5a3004bac2dc14c08b20c259202e137a36ad91bdc253c8bf0424f06c173154854c134528aacb2fd3d5b885009ce5a0b52c786ed6a
data/lib/qonf/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Qonf
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/lib/qonf.rb CHANGED
@@ -11,7 +11,14 @@ module Qonf
11
11
  end
12
12
 
13
13
  def self.[](item)
14
- Figaro.env[item.to_s.upcase] || self.get(:qonf, item.to_s.downcase)
14
+ # Use Figaro is defined, otherwise ENV, otherwise try to get from `config/qonf.{json,yml}`
15
+ if defined?(Figaro) && Figaro.env[item.to_s.upcase]
16
+ return Figaro.env[item.to_s.upcase]
17
+ elsif ENV[item.to_s.upcase]
18
+ ENV[item.to_s.upcase]
19
+ end
20
+
21
+ self.get(:qonf, item.to_s.downcase)
15
22
  end
16
23
 
17
24
  def self.get(config, route=[])
data/qonf.gemspec CHANGED
@@ -18,8 +18,6 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_runtime_dependency 'figaro'
22
-
23
21
  spec.add_development_dependency "bundler", "~> 1.3"
24
22
  spec.add_development_dependency "rake"
25
23
  end
metadata CHANGED
@@ -1,29 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qonf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geoff Hayes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-22 00:00:00.000000000 Z
11
+ date: 2014-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: figaro
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - '>='
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - '>='
25
- - !ruby/object:Gem::Version
26
- version: '0'
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: bundler
29
15
  requirement: !ruby/object:Gem::Requirement