stretcher 1.8.0 → 1.9.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -44,8 +44,10 @@ module Stretcher
44
44
  # To update a doc with ID 987 for example:
45
45
  # type.update(987, script: "ctx._source.message = 'Updated!'")
46
46
  # See http://www.elasticsearch.org/guide/reference/api/update.html
47
- def update(id, body)
48
- request(:post, "#{id}/_update", body)
47
+ # Takes an optional, third options hash, allowing you to specify
48
+ # Additional query parameters such as +fields+ and +routing+
49
+ def update(id, body, options={})
50
+ request(:post, Util.qurl("#{id}/_update", options), body)
49
51
  end
50
52
 
51
53
  # Deletes the document with the given ID
@@ -1,3 +1,3 @@
1
1
  module Stretcher
2
- VERSION = "1.8.0"
2
+ VERSION = "1.9.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stretcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.0
4
+ version: 1.9.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-20 00:00:00.000000000 Z
12
+ date: 2013-05-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday