stretcher 1.11.0 → 1.11.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +16 -0
- data/README.md +4 -0
- data/lib/stretcher/index_type.rb +1 -1
- data/lib/stretcher/version.rb +1 -1
- data/spec/lib/stretcher_index_type_spec.rb +2 -2
- data/spec/lib/stretcher_server_spec.rb +3 -3
- data/stretcher.gemspec +10 -1
- metadata +3 -2
data/.travis.yml
ADDED
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# Stretcher
|
2
2
|
|
3
|
+
[![Build Status](https://travis-ci.org/PoseBiz/stretcher.png?branch=master)](https://travis-ci.org/PoseBiz/stretcher)
|
4
|
+
|
3
5
|
A concise, fast ElasticSearch client designed to reflect the actual elastic search API as closely as possible. Elastic search's API is complex, and mostly documented on the Elastic Search Guide. This client tries to stay out of your way more than others making advanced techniques easier to implement, and making debugging Elastic Search's sometimes cryptic errors easier.
|
4
6
|
|
5
7
|
# Features
|
@@ -94,6 +96,8 @@ Specs may be run with `rake spec`
|
|
94
96
|
## Contributors
|
95
97
|
|
96
98
|
* [@andrewvc](https://github.com/andrewvc)
|
99
|
+
* [@aq1018](https://github.com/aq1018)
|
100
|
+
* [@akahn](https://github.com/akahn)
|
97
101
|
* [@psynix](https://github.com/psynix)
|
98
102
|
* [@fmardini](https://github.com/fmardini)
|
99
103
|
* [@chatgris](https://github.com/chatgris)
|
data/lib/stretcher/index_type.rb
CHANGED
data/lib/stretcher/version.rb
CHANGED
@@ -37,12 +37,12 @@ describe Stretcher::IndexType do
|
|
37
37
|
end
|
38
38
|
|
39
39
|
it "should build results when _source is not included in loaded fields" do
|
40
|
-
res = type.search(query
|
40
|
+
res = type.search(:query => {:match_all => {}}, :fields => ['message'])
|
41
41
|
res.results.first.message.should == @doc[:message]
|
42
42
|
end
|
43
43
|
|
44
44
|
it "should build results when no document fields are selected" do
|
45
|
-
res = type.search(query
|
45
|
+
res = type.search(:query => {:match_all => {}}, :fields => ['_id'])
|
46
46
|
res.results.first.should have_key '_id'
|
47
47
|
end
|
48
48
|
|
@@ -27,12 +27,12 @@ describe Stretcher::Server do
|
|
27
27
|
|
28
28
|
it "should perform alias operations properly" do
|
29
29
|
# Tear down any leftovers from previous runs
|
30
|
-
server.aliases(actions
|
30
|
+
server.aliases(:actions => [{:remove => {:alias => :foo_alias}}]) if server.index(:foo_alias).exists?
|
31
31
|
server.index(:foo).delete if server.index(:foo).exists?
|
32
32
|
|
33
33
|
server.index(:foo).create
|
34
|
-
server.aliases(actions
|
35
|
-
|
34
|
+
server.aliases(:actions => [{:add => {:index => :foo, :alias => :foo_alias}}])
|
35
|
+
|
36
36
|
server.index(:foo_alias).get_settings.should == server.index(:foo).get_settings
|
37
37
|
end
|
38
38
|
|
data/stretcher.gemspec
CHANGED
@@ -17,10 +17,19 @@ Gem::Specification.new do |gem|
|
|
17
17
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
18
18
|
gem.require_paths = ["lib"]
|
19
19
|
|
20
|
+
if RUBY_PLATFORM == 'java'
|
21
|
+
gem.add_runtime_dependency('jruby-openssl')
|
22
|
+
gem.add_runtime_dependency('json-jruby')
|
23
|
+
end
|
24
|
+
|
25
|
+
if RUBY_VERSION < "1.9"
|
26
|
+
gem.add_runtime_dependency('json')
|
27
|
+
end
|
28
|
+
|
20
29
|
gem.add_dependency('faraday', '~> 0.8')
|
21
30
|
gem.add_dependency('faraday_middleware', '~> 0.9.0')
|
22
31
|
gem.add_dependency('net-http-persistent', '~> 2.8')
|
23
|
-
gem.add_dependency('hashie', '~> 1.2.0')
|
32
|
+
gem.add_dependency('hashie', '~> 1.2.0')
|
24
33
|
|
25
34
|
gem.add_development_dependency 'rspec', '>= 2.5.0'
|
26
35
|
gem.add_development_dependency 'simplecov'
|
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.11.
|
4
|
+
version: 1.11.1
|
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-05-
|
12
|
+
date: 2013-05-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: faraday
|
@@ -147,6 +147,7 @@ extensions: []
|
|
147
147
|
extra_rdoc_files: []
|
148
148
|
files:
|
149
149
|
- .gitignore
|
150
|
+
- .travis.yml
|
150
151
|
- Gemfile
|
151
152
|
- LICENSE.txt
|
152
153
|
- README.md
|