inquisitive 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/inquisitive.gemspec +1 -1
- data/lib/inquisitive/environment.rb +1 -5
- data/test/inquisitive/environment_test.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: 6d2ab586c82398bc1fc6e3b54f8372ae7b8f01e1
|
4
|
+
data.tar.gz: 64c18970b81ebbaf2f6d70fd80543ed1a1e9963a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38a3d62e893431adde36ed3cd6b1d2ac02450bd61e3e30f45656221ffa22b811e5c045c92aa36fb299f78da67174852bbba84fa05089c75b6e19b0895b25b105
|
7
|
+
data.tar.gz: 9ad57989d3f9df34eba161f163f07a87665e12443dd7175d600bfb2dd82fb16d867a4972158328fe6500758c2e4028be93e07e3714eea750d87445b68315b8cb
|
data/inquisitive.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "inquisitive"
|
7
|
-
spec.version = "1.
|
7
|
+
spec.version = "1.1.0"
|
8
8
|
spec.authors = ["Chris Keele"]
|
9
9
|
spec.email = ["dev@chriskeele.com"]
|
10
10
|
spec.description = "Predicate methods for those curious about their datastructures."
|
@@ -58,7 +58,7 @@ module Inquisitive
|
|
58
58
|
env_var
|
59
59
|
end
|
60
60
|
|
61
|
-
|
61
|
+
else
|
62
62
|
|
63
63
|
Parser.env_keys_from(var_name).reduce({}) do |hash, key|
|
64
64
|
hash[Parser.key_for(key, var_name)] = Inquisitive[Parser[key]]
|
@@ -74,10 +74,6 @@ module Inquisitive
|
|
74
74
|
end
|
75
75
|
end
|
76
76
|
|
77
|
-
def env_key?(var_name)
|
78
|
-
!env_keys_from(var_name).empty?
|
79
|
-
end
|
80
|
-
|
81
77
|
def key_for(env_key, var_name)
|
82
78
|
env_key.gsub("#{var_name}_", '').downcase
|
83
79
|
end
|
@@ -4,7 +4,7 @@ class InquisitiveEnvironmentTest < EnvironmentTest
|
|
4
4
|
|
5
5
|
def test_missing_variable_responses
|
6
6
|
App.inquires_about '__DOES_NOT_EXIST__', with: :exists
|
7
|
-
assert_equal App.exists,
|
7
|
+
assert_equal App.exists, {}
|
8
8
|
end
|
9
9
|
def test_missing_variable_predicates
|
10
10
|
App.inquires_about '__DOES_NOT_EXIST__', with: :exists
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inquisitive
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Keele
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-11-
|
11
|
+
date: 2013-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|