waistband 0.16.1 → 0.16.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NzdkOGE5ZjVhYmU3ZmJiZDNmMmZhNzdjMTIwNzg0YmE5YjRiODUyZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MzJhYjY3MGEzODM2ZDgwNGM0MTlmZDMyMjVlOTljMzNkNzllZGUyMg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YWZiZjBkOWU0ZDQ1OWI5OGQ0NWYyMTQzMTIxYzY3MTg1ZjQ3YTk1YmI2MzE3
|
10
|
+
NGM4MWY0MTVlZGExMDk2NjRjYjg1ZWY1Y2NmZmY5M2VlNWNjODNjMGNlMTVm
|
11
|
+
ZjkyOTdiNzhhZDc2NDEyMjExMjFiMWJjZjMwOWRkMzI3Mzg1ZTk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OWVmM2NlMGQzODYwMzAxYTkzNzdkMzBmMGJlNmJlOGNiYzBlZDU4Y2ExY2Q4
|
14
|
+
Y2U5MTk3YWRmN2Y5YmEzMjhkYjU3MzViOWYwZmU5OTAzYTFhOTg5OTEyMjEy
|
15
|
+
ZjJkOTk4ZjJhYjVmOWQ2Yzg2OGQ2MzcwZTVlOTYwOTllZDU3N2Y=
|
data/lib/waistband/result.rb
CHANGED
@@ -14,14 +14,14 @@ module Waistband
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def method_missing(method_name, *args, &block)
|
17
|
-
return @result_hash[method_name.to_s] if @result_hash.
|
18
|
-
return @result_hash['_source'][method_name.to_s] if @result_hash['_source'] && @result_hash['_source'].
|
17
|
+
return @result_hash[method_name.to_s] if @result_hash.has_key?(method_name.to_s)
|
18
|
+
return @result_hash['_source'][method_name.to_s] if @result_hash['_source'] && @result_hash['_source'].has_key?(method_name.to_s)
|
19
19
|
nil
|
20
20
|
end
|
21
21
|
|
22
22
|
def respond_to_missing?(method_name, include_private = false)
|
23
|
-
return true if @result_hash.
|
24
|
-
return true if @result_hash['_source'] && @result_hash['_source'].
|
23
|
+
return true if @result_hash.has_key?(method_name.to_s)
|
24
|
+
return true if @result_hash['_source'] && @result_hash['_source'].has_key?(method_name.to_s)
|
25
25
|
super
|
26
26
|
end
|
27
27
|
|
@@ -53,12 +53,12 @@ module Waistband
|
|
53
53
|
end
|
54
54
|
|
55
55
|
def method_missing(method_name, *args, &block)
|
56
|
-
return @search_hash[method_name.to_s] if @search_hash.
|
56
|
+
return @search_hash[method_name.to_s] if @search_hash.has_key?(method_name.to_s)
|
57
57
|
super
|
58
58
|
end
|
59
59
|
|
60
60
|
def respond_to_missing?(method_name, include_private = false)
|
61
|
-
return true if @search_hash.
|
61
|
+
return true if @search_hash.has_key?(method_name.to_s)
|
62
62
|
super
|
63
63
|
end
|
64
64
|
|
data/lib/waistband/version.rb
CHANGED
@@ -43,6 +43,10 @@ describe Waistband::Configuration do
|
|
43
43
|
expect(::Waistband.config.send(:timeout)).to eql 2
|
44
44
|
end
|
45
45
|
|
46
|
+
it "allows setting false config values" do
|
47
|
+
expect(config.extra_falsy_config).to eql false
|
48
|
+
end
|
49
|
+
|
46
50
|
describe 'hosts' do
|
47
51
|
|
48
52
|
it "returns array of all available servers' configs" do
|
@@ -51,7 +55,7 @@ describe Waistband::Configuration do
|
|
51
55
|
expect(hosts.size).to eql 2
|
52
56
|
|
53
57
|
hosts.each_with_index do |server, i|
|
54
|
-
expect(server['host']).to match
|
58
|
+
expect(server['host']).to match(/127\.0\.0\.1|localhost/)
|
55
59
|
expect(server['port']).to eql 9200
|
56
60
|
expect(server['protocol']).to eql 'http'
|
57
61
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: waistband
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.16.
|
4
|
+
version: 0.16.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Jairala
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-02-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -142,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
142
142
|
version: '0'
|
143
143
|
requirements: []
|
144
144
|
rubyforge_project:
|
145
|
-
rubygems_version: 2.
|
145
|
+
rubygems_version: 2.4.5
|
146
146
|
signing_key:
|
147
147
|
specification_version: 4
|
148
148
|
summary: Configuration and sensible defaults for ElasticSearch on Ruby
|