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 +4 -4
- data/lib/qonf/version.rb +1 -1
- data/lib/qonf.rb +8 -1
- data/qonf.gemspec +0 -2
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e1ef8c9bbf6a8d5f9cd0f71c5253a44424970dc
|
4
|
+
data.tar.gz: 43b459ff2cb58753fe21720f1c1fe3353616d7cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dbc596ae062ef2df9de3fb17a15e9840e9047e54b9c84a9568326f660674cfee5cb6d17d48e83978ba8a87048420a1a41ca1acafc851e1f27fdf82d6f302477f
|
7
|
+
data.tar.gz: 4bf7a0488b3c608021176ef5a3004bac2dc14c08b20c259202e137a36ad91bdc253c8bf0424f06c173154854c134528aacb2fd3d5b885009ce5a0b52c786ed6a
|
data/lib/qonf/version.rb
CHANGED
data/lib/qonf.rb
CHANGED
@@ -11,7 +11,14 @@ module Qonf
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def self.[](item)
|
14
|
-
Figaro
|
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.
|
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-
|
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
|