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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2c18376379e842ce96e09a55327f32e626a25c04
4
- data.tar.gz: 745ebacc0f952e67809dfc5a0fc9c2aa0a6b0ac3
3
+ metadata.gz: 6d2ab586c82398bc1fc6e3b54f8372ae7b8f01e1
4
+ data.tar.gz: 64c18970b81ebbaf2f6d70fd80543ed1a1e9963a
5
5
  SHA512:
6
- metadata.gz: 40d8af8890c71242210733158d282e228a855d75882861a7a6d35ff2ca048abc267f47459613be4343c74833be9d16d4f888c83e5b8cff541b667d00e73e986c
7
- data.tar.gz: 1c0f9745d5dbe15d2f9a98caea7d487db33e5276d32725819c14cadc7f2114adbb1d7de353af49e71df6ba1704103067492d8453e9b3cb224128fa959f4f672f
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.0.0"
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
- elsif Parser.env_key? var_name
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, nil
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.0.0
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-09 00:00:00.000000000 Z
11
+ date: 2013-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler