elasticsearch-api 0.4.8 → 0.4.9

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -3,10 +3,14 @@ source 'https://rubygems.org'
3
3
  # Specify your gem's dependencies in elasticsearch-api.gemspec
4
4
  gemspec
5
5
 
6
+ if File.exists? File.expand_path("../../elasticsearch-transport", __FILE__)
7
+ gem 'elasticsearch-transport', :path => File.expand_path("../../elasticsearch-transport", __FILE__), :require => true
8
+ end
9
+
6
10
  if File.exists? File.expand_path("../../elasticsearch-extensions", __FILE__)
7
11
  gem 'elasticsearch-extensions', :path => File.expand_path("../../elasticsearch-extensions", __FILE__), :require => true
8
12
  end
9
13
 
10
- if File.exists? File.expand_path("../../elasticsearch-transport", __FILE__)
11
- gem 'elasticsearch-transport', :path => File.expand_path("../../elasticsearch-transport", __FILE__), :require => true
14
+ if File.exists? File.expand_path("../../elasticsearch/elasticsearch.gemspec", __FILE__)
15
+ gem 'elasticsearch', :path => File.expand_path("../../elasticsearch", __FILE__), :require => false
12
16
  end
data/README.md CHANGED
@@ -54,17 +54,18 @@ require 'elasticsearch'
54
54
  client = Elasticsearch::Client.new log: true
55
55
 
56
56
  client.index index: 'myindex', type: 'mytype', id: 1, body: { title: 'Test' }
57
- # => {"ok"=>true, "_index"=>"myindex", ...}
57
+ # => {"_index"=>"myindex", ... "created"=>true}
58
58
 
59
59
  client.search index: 'myindex', body: { query: { match: { title: 'test' } } }
60
60
  # => {"took"=>2, ..., "hits"=>{"total":5, ...}}
61
61
  ```
62
62
 
63
- Full documentation is available at <http://rubydoc.info/gems/elasticsearch-api>.
63
+ Full documentation and examples are included as RDoc annotations in the source code
64
+ and available online at <http://rubydoc.info/gems/elasticsearch-api>.
64
65
 
65
66
  ### Usage with a custom client
66
67
 
67
- When you want to mix the library into you own client, it must conform to a following _contract_:
68
+ When you want to mix the library into your own client, it must conform to a following _contract_:
68
69
 
69
70
  * It responds to a `perform_request(method, path, params, body)` method,
70
71
  * the method returns an object with `status`, `body` and `headers` methods.
@@ -1,5 +1,5 @@
1
1
  module Elasticsearch
2
2
  module API
3
- VERSION = "0.4.8"
3
+ VERSION = "0.4.9"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elasticsearch-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.8
4
+ version: 0.4.9
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: 2014-02-09 00:00:00.000000000 Z
12
+ date: 2014-02-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multi_json