es-elasticity 0.6.1 → 0.6.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: 0894b365ac839909536201e53a77446302a51606
4
- data.tar.gz: 1aac5d88c4ea51c355babcef0d6d62218d3f6b52
3
+ metadata.gz: 8fb560ae15568a614d3ee458f20feefdd5a2ac59
4
+ data.tar.gz: f19e9eaa49475de62ad69068b4fc210028520f32
5
5
  SHA512:
6
- metadata.gz: d349ea21084175b7b9c933c521d5af7b02d37d868929248f64ddeaa7ede415dc2d254d6edca448a8886af04d8bdd69f4fe658034c77f0b210d4f168cba395d61
7
- data.tar.gz: a889157a7788f7ccbfd9dedc6a540f924f473af7a2d70a792b88617f37e0be52f377391a6ac64a1cdb287273660b423b1600185e572ddd10d4b8a641fe07e9f5
6
+ metadata.gz: 78932ec63a5a18de6ddf9d94ce9f2f46af3e765f465a2078188e5e232d8c2b6dc67e11ea61c0b6f9dd1da7daed8b9bed3f1c051505cc432a4e9373b6289e9067
7
+ data.tar.gz: 46d3412bec0201ff96e4ff6106988da16c92e45c06a016506dbb5e5b73c173c84ec479386af2acf9c2941f0b795e8727391a75d90eaeae788ab6198dde0a6a6f
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ v0.6.2
2
+ - update multi search `[]` method to raise an exception with key name to
3
+ make it easier to debug failed queries within a multi search hash.
1
4
  v0.6.0
2
5
  - Change documents to be able to define indexes with multiple doc types. A
3
6
  Document class can define subclasses which are of different doc_types and
@@ -25,6 +25,8 @@ module Elasticity
25
25
 
26
26
  def [](name)
27
27
  results_collection[name]
28
+ rescue NoMethodError => e
29
+ raise "#{e.inspect} with key #{name}"
28
30
  end
29
31
 
30
32
  private
@@ -1,3 +1,3 @@
1
1
  module Elasticity
2
- VERSION = "0.6.1"
2
+ VERSION = "0.6.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: es-elasticity
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rodrigo Kochenburger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-04 00:00:00.000000000 Z
11
+ date: 2016-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -230,7 +230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
230
230
  version: '0'
231
231
  requirements: []
232
232
  rubyforge_project:
233
- rubygems_version: 2.4.5.1
233
+ rubygems_version: 2.4.5
234
234
  signing_key:
235
235
  specification_version: 4
236
236
  summary: ActiveModel-based library for working with Elasticsearch