rubberband 0.0.10 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +19 -0
- data/Gemfile +1 -11
- data/Gemfile.lock +16 -18
- data/Rakefile +1 -28
- data/lib/elasticsearch/client/hits.rb +1 -2
- data/lib/elasticsearch/client/index.rb +3 -3
- data/lib/elasticsearch/transport.rb +1 -1
- data/lib/elasticsearch/transport/base_protocol.rb +1 -1
- data/lib/elasticsearch/version.rb +1 -7
- data/rubberband.gemspec +26 -108
- data/spec/connect_spec.rb +32 -0
- data/spec/hits_spec.rb +0 -12
- metadata +35 -80
data/.gitignore
ADDED
data/Gemfile
CHANGED
@@ -1,13 +1,3 @@
|
|
1
1
|
source "http://rubygems.org"
|
2
2
|
|
3
|
-
|
4
|
-
gem "yajl-ruby"
|
5
|
-
|
6
|
-
group :development do
|
7
|
-
gem "bundler", "~> 1.0.0"
|
8
|
-
gem "jeweler", "~> 1.5.2"
|
9
|
-
gem "simplecov", ">= 0.3.8", :require => false
|
10
|
-
gem "rspec", "~> 2.4"
|
11
|
-
gem "yard", "~> 0.6"
|
12
|
-
gem "mocha", "~> 0.9.11"
|
13
|
-
end
|
3
|
+
gemspec
|
data/Gemfile.lock
CHANGED
@@ -1,16 +1,16 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
rubberband (0.0.12)
|
5
|
+
patron
|
6
|
+
yajl-ruby
|
7
|
+
|
1
8
|
GEM
|
2
9
|
remote: http://rubygems.org/
|
3
10
|
specs:
|
4
11
|
diff-lcs (1.1.2)
|
5
|
-
|
6
|
-
|
7
|
-
bundler (~> 1.0.0)
|
8
|
-
git (>= 1.2.5)
|
9
|
-
rake
|
10
|
-
mocha (0.9.11)
|
11
|
-
rake
|
12
|
-
patron (0.4.10)
|
13
|
-
rake (0.8.7)
|
12
|
+
mocha (0.9.12)
|
13
|
+
patron (0.4.11)
|
14
14
|
rspec (2.5.0)
|
15
15
|
rspec-core (~> 2.5.0)
|
16
16
|
rspec-expectations (~> 2.5.0)
|
@@ -19,10 +19,10 @@ GEM
|
|
19
19
|
rspec-expectations (2.5.0)
|
20
20
|
diff-lcs (~> 1.1.2)
|
21
21
|
rspec-mocks (2.5.0)
|
22
|
-
simplecov (0.
|
23
|
-
simplecov-html (
|
24
|
-
simplecov-html (0.3
|
25
|
-
yajl-ruby (0.
|
22
|
+
simplecov (0.4.1)
|
23
|
+
simplecov-html (~> 0.4.3)
|
24
|
+
simplecov-html (0.4.3)
|
25
|
+
yajl-ruby (0.8.2)
|
26
26
|
yard (0.6.4)
|
27
27
|
|
28
28
|
PLATFORMS
|
@@ -30,10 +30,8 @@ PLATFORMS
|
|
30
30
|
|
31
31
|
DEPENDENCIES
|
32
32
|
bundler (~> 1.0.0)
|
33
|
-
jeweler (~> 1.5.2)
|
34
33
|
mocha (~> 0.9.11)
|
35
|
-
|
36
|
-
|
34
|
+
rspec (~> 2)
|
35
|
+
rubberband!
|
37
36
|
simplecov (>= 0.3.8)
|
38
|
-
|
39
|
-
yard (~> 0.6)
|
37
|
+
yard (~> 0.6.0)
|
data/Rakefile
CHANGED
@@ -1,32 +1,5 @@
|
|
1
|
-
require 'rubygems'
|
2
1
|
require 'bundler'
|
3
|
-
|
4
|
-
Bundler.setup(:default, :development)
|
5
|
-
rescue Bundler::BundlerError => e
|
6
|
-
$stderr.puts e.message
|
7
|
-
$stderr.puts "Run `bundle install` to install missing gems"
|
8
|
-
exit e.status_code
|
9
|
-
end
|
10
|
-
require 'rake'
|
11
|
-
|
12
|
-
require 'jeweler'
|
13
|
-
require './lib/elasticsearch/version'
|
14
|
-
Jeweler::Tasks.new do |gem|
|
15
|
-
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
16
|
-
gem.name = "rubberband"
|
17
|
-
gem.version = ElasticSearch::Version::STRING
|
18
|
-
gem.homepage = "http://github.com/grantr/rubberband"
|
19
|
-
gem.license = "Apache v2.0"
|
20
|
-
gem.summary = %Q{An ElasticSearch client.}
|
21
|
-
gem.description = %Q{An ElasticSearch client with ThriftClient-like failover handling.}
|
22
|
-
gem.email = "grantr@gmail.com"
|
23
|
-
gem.authors = ["grantr"]
|
24
|
-
|
25
|
-
gem.add_runtime_dependency 'patron'
|
26
|
-
gem.add_runtime_dependency 'yajl-ruby'
|
27
|
-
gem.add_development_dependency 'rspec', '~> 2.4'
|
28
|
-
end
|
29
|
-
Jeweler::RubygemsDotOrgTasks.new
|
2
|
+
Bundler::GemHelper.install_tasks
|
30
3
|
|
31
4
|
require 'rspec/core'
|
32
5
|
require 'rspec/core/rake_task'
|
@@ -10,7 +10,6 @@ module ElasticSearch
|
|
10
10
|
hit.merge!(hit["_source"]) if hit["_source"]
|
11
11
|
hit["id"] ||= hit["_id"]
|
12
12
|
super(hit)
|
13
|
-
@table.freeze
|
14
13
|
end
|
15
14
|
|
16
15
|
def attributes
|
@@ -76,7 +75,7 @@ module ElasticSearch
|
|
76
75
|
private
|
77
76
|
|
78
77
|
def populate(ids_only=false)
|
79
|
-
@hits = @response["hits"]["hits"].collect { |h| ids_only ? h["_id"] : Hit.new(h)
|
78
|
+
@hits = @response["hits"]["hits"].collect { |h| ids_only ? h["_id"] : Hit.new(h) }
|
80
79
|
end
|
81
80
|
end
|
82
81
|
end
|
@@ -36,7 +36,7 @@ module ElasticSearch
|
|
36
36
|
|
37
37
|
hit = execute(:get, index, type, id, options)
|
38
38
|
if hit
|
39
|
-
Hit.new(hit)
|
39
|
+
Hit.new(hit)
|
40
40
|
end
|
41
41
|
end
|
42
42
|
|
@@ -78,7 +78,7 @@ module ElasticSearch
|
|
78
78
|
|
79
79
|
response = execute(:search, index, type, query, search_options)
|
80
80
|
|
81
|
-
Hits.new(response, {:per_page => options[:per_page], :page => options[:page], :ids_only => options[:ids_only]})
|
81
|
+
Hits.new(response, {:per_page => options[:per_page], :page => options[:page], :ids_only => options[:ids_only]}) #ids_only returns array of ids instead of hits
|
82
82
|
end
|
83
83
|
|
84
84
|
#ids_only Return ids instead of hits
|
@@ -87,7 +87,7 @@ module ElasticSearch
|
|
87
87
|
begin
|
88
88
|
search_options = options.reject { |k, v| [:page, :per_page, :ids_only, :limit, :offset].include?(k) }
|
89
89
|
response = execute(:scroll, scroll_id, options)
|
90
|
-
hits = Hits.new(response, { :ids_only => options[:ids_only] })
|
90
|
+
hits = Hits.new(response, { :ids_only => options[:ids_only] })
|
91
91
|
if block_given? && !hits.empty?
|
92
92
|
yield hits
|
93
93
|
scroll_id = hits.scroll_id
|
@@ -2,7 +2,7 @@ require "transport/base_protocol"
|
|
2
2
|
require "transport/base"
|
3
3
|
|
4
4
|
module ElasticSearch
|
5
|
-
class ConnectionFailed <
|
5
|
+
class ConnectionFailed < FatalError; end
|
6
6
|
class HostResolutionError < RetryableError; end
|
7
7
|
class TimeoutError < RetryableError; end
|
8
8
|
class RequestError < FatalError; end
|
@@ -166,7 +166,7 @@ module ElasticSearch
|
|
166
166
|
def generate_uri(options)
|
167
167
|
path = ""
|
168
168
|
path << "/#{Array(options[:index]).collect { |i| escape(i.downcase) }.join(",")}" if options[:index] && !options[:index].empty?
|
169
|
-
path << "/" if options[:index] && options[:index].empty?
|
169
|
+
path << "/_all" if options[:index] && options[:index].empty?
|
170
170
|
path << "/#{Array(options[:type]).collect { |t| escape(t) }.join(",")}" if options[:type] && !options[:type].empty?
|
171
171
|
path << "/#{Array(options[:id]).collect { |id| escape(id) }.join(",")}" if options[:id] && !options[:id].to_s.empty?
|
172
172
|
path << "/#{options[:op]}" if options[:op]
|
data/rubberband.gemspec
CHANGED
@@ -1,119 +1,37 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
1
|
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "elasticsearch/version"
|
5
4
|
|
6
5
|
Gem::Specification.new do |s|
|
7
|
-
s.name =
|
8
|
-
s.version =
|
6
|
+
s.name = "rubberband"
|
7
|
+
s.version = ElasticSearch::VERSION
|
9
8
|
|
10
|
-
s.
|
11
|
-
s.authors
|
12
|
-
s.
|
9
|
+
s.platform = Gem::Platform::RUBY
|
10
|
+
s.authors = ["Grant Rodgers"]
|
11
|
+
s.email = ["grantr@gmail.com"]
|
12
|
+
s.homepage = "http://github.com/grantr/rubberband"
|
13
|
+
s.summary = %q{An ElasticSearch client with ThriftClient-like failover handling.}
|
13
14
|
s.description = %q{An ElasticSearch client with ThriftClient-like failover handling.}
|
14
|
-
|
15
|
+
|
16
|
+
s.rubyforge_project = "rubberband"
|
17
|
+
|
18
|
+
s.files = `git ls-files`.split("\n")
|
19
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
20
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
21
|
+
s.require_paths = ["lib"]
|
22
|
+
|
15
23
|
s.extra_rdoc_files = [
|
16
24
|
"LICENSE",
|
17
|
-
"README.rdoc"
|
18
|
-
"TODO"
|
19
|
-
]
|
20
|
-
s.files = [
|
21
|
-
".autotest",
|
22
|
-
".rspec",
|
23
|
-
"CONTRIBUTORS",
|
24
|
-
"Gemfile",
|
25
|
-
"Gemfile.lock",
|
26
|
-
"LICENSE",
|
27
|
-
"README.rdoc",
|
28
|
-
"Rakefile",
|
29
|
-
"TODO",
|
30
|
-
"lib/elasticsearch.rb",
|
31
|
-
"lib/elasticsearch/client.rb",
|
32
|
-
"lib/elasticsearch/client/abstract_client.rb",
|
33
|
-
"lib/elasticsearch/client/admin_cluster.rb",
|
34
|
-
"lib/elasticsearch/client/admin_index.rb",
|
35
|
-
"lib/elasticsearch/client/auto_discovering_client.rb",
|
36
|
-
"lib/elasticsearch/client/default_scope.rb",
|
37
|
-
"lib/elasticsearch/client/hits.rb",
|
38
|
-
"lib/elasticsearch/client/index.rb",
|
39
|
-
"lib/elasticsearch/client/retrying_client.rb",
|
40
|
-
"lib/elasticsearch/encoding.rb",
|
41
|
-
"lib/elasticsearch/encoding/base.rb",
|
42
|
-
"lib/elasticsearch/encoding/json.rb",
|
43
|
-
"lib/elasticsearch/transport.rb",
|
44
|
-
"lib/elasticsearch/transport/base.rb",
|
45
|
-
"lib/elasticsearch/transport/base_protocol.rb",
|
46
|
-
"lib/elasticsearch/transport/http.rb",
|
47
|
-
"lib/elasticsearch/transport/memcached.rb",
|
48
|
-
"lib/elasticsearch/transport/thrift.rb",
|
49
|
-
"lib/elasticsearch/transport/thrift/elasticsearch_constants.rb",
|
50
|
-
"lib/elasticsearch/transport/thrift/elasticsearch_types.rb",
|
51
|
-
"lib/elasticsearch/transport/thrift/rest.rb",
|
52
|
-
"lib/elasticsearch/version.rb",
|
53
|
-
"lib/rubberband.rb",
|
54
|
-
"rubberband.gemspec",
|
55
|
-
"spec/admin_spec.rb",
|
56
|
-
"spec/bulk_spec.rb",
|
57
|
-
"spec/hits_spec.rb",
|
58
|
-
"spec/index_spec.rb",
|
59
|
-
"spec/spec_helper.rb",
|
60
|
-
"spec/type_spec.rb",
|
61
|
-
"vendor/elasticsearch/elasticsearch.thrift"
|
62
|
-
]
|
63
|
-
s.homepage = %q{http://github.com/grantr/rubberband}
|
64
|
-
s.licenses = ["Apache v2.0"]
|
65
|
-
s.require_paths = ["lib"]
|
66
|
-
s.rubygems_version = %q{1.6.2}
|
67
|
-
s.summary = %q{An ElasticSearch client.}
|
68
|
-
s.test_files = [
|
69
|
-
"spec/admin_spec.rb",
|
70
|
-
"spec/bulk_spec.rb",
|
71
|
-
"spec/hits_spec.rb",
|
72
|
-
"spec/index_spec.rb",
|
73
|
-
"spec/spec_helper.rb",
|
74
|
-
"spec/type_spec.rb"
|
25
|
+
"README.rdoc"
|
75
26
|
]
|
27
|
+
s.licenses = ["Apache v2"]
|
76
28
|
|
77
|
-
|
78
|
-
|
29
|
+
s.add_runtime_dependency("patron", [">= 0"])
|
30
|
+
s.add_runtime_dependency("yajl-ruby", [">= 0"])
|
31
|
+
s.add_development_dependency("rspec", ["~> 2"])
|
32
|
+
s.add_development_dependency("yard", ["~> 0.6"])
|
33
|
+
s.add_development_dependency("bundler", ["~> 1"])
|
34
|
+
s.add_development_dependency("simplecov", [">= 0.3.8"])
|
35
|
+
s.add_development_dependency("mocha", ["~> 0.9"])
|
79
36
|
|
80
|
-
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
81
|
-
s.add_runtime_dependency(%q<patron>, [">= 0"])
|
82
|
-
s.add_runtime_dependency(%q<yajl-ruby>, [">= 0"])
|
83
|
-
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
84
|
-
s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
|
85
|
-
s.add_development_dependency(%q<simplecov>, [">= 0.3.8"])
|
86
|
-
s.add_development_dependency(%q<rspec>, ["~> 2.4"])
|
87
|
-
s.add_development_dependency(%q<yard>, ["~> 0.6"])
|
88
|
-
s.add_development_dependency(%q<mocha>, ["~> 0.9.11"])
|
89
|
-
s.add_runtime_dependency(%q<patron>, [">= 0"])
|
90
|
-
s.add_runtime_dependency(%q<yajl-ruby>, [">= 0"])
|
91
|
-
s.add_development_dependency(%q<rspec>, ["~> 2.4"])
|
92
|
-
else
|
93
|
-
s.add_dependency(%q<patron>, [">= 0"])
|
94
|
-
s.add_dependency(%q<yajl-ruby>, [">= 0"])
|
95
|
-
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
96
|
-
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
97
|
-
s.add_dependency(%q<simplecov>, [">= 0.3.8"])
|
98
|
-
s.add_dependency(%q<rspec>, ["~> 2.4"])
|
99
|
-
s.add_dependency(%q<yard>, ["~> 0.6"])
|
100
|
-
s.add_dependency(%q<mocha>, ["~> 0.9.11"])
|
101
|
-
s.add_dependency(%q<patron>, [">= 0"])
|
102
|
-
s.add_dependency(%q<yajl-ruby>, [">= 0"])
|
103
|
-
s.add_dependency(%q<rspec>, ["~> 2.4"])
|
104
|
-
end
|
105
|
-
else
|
106
|
-
s.add_dependency(%q<patron>, [">= 0"])
|
107
|
-
s.add_dependency(%q<yajl-ruby>, [">= 0"])
|
108
|
-
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
109
|
-
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
110
|
-
s.add_dependency(%q<simplecov>, [">= 0.3.8"])
|
111
|
-
s.add_dependency(%q<rspec>, ["~> 2.4"])
|
112
|
-
s.add_dependency(%q<yard>, ["~> 0.6"])
|
113
|
-
s.add_dependency(%q<mocha>, ["~> 0.9.11"])
|
114
|
-
s.add_dependency(%q<patron>, [">= 0"])
|
115
|
-
s.add_dependency(%q<yajl-ruby>, [">= 0"])
|
116
|
-
s.add_dependency(%q<rspec>, ["~> 2.4"])
|
117
|
-
end
|
118
37
|
end
|
119
|
-
|
@@ -0,0 +1,32 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
|
2
|
+
|
3
|
+
describe "connect" do
|
4
|
+
|
5
|
+
context 'one server' do
|
6
|
+
let(:servers) { '127.0.0.1:9200' }
|
7
|
+
|
8
|
+
it 'should connect' do
|
9
|
+
client = ElasticSearch.new(servers)
|
10
|
+
client.nodes_info.should include('cluster_name')
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
context "multiple servers" do
|
15
|
+
end
|
16
|
+
|
17
|
+
context 'invalid server' do
|
18
|
+
let(:servers) { '0.1.1.1:9200' }
|
19
|
+
|
20
|
+
it 'should raise ConnectionFailed' do
|
21
|
+
expect { ElasticSearch.new(servers).nodes_info }.to raise_error(ElasticSearch::ConnectionFailed)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
context 'invalid servers' do
|
26
|
+
let(:servers) { ['0.1.1.1:9200', '0.2.2.2:9200'] }
|
27
|
+
|
28
|
+
it 'should raise ConnectionFailed' do
|
29
|
+
expect { ElasticSearch.new(servers).nodes_info }.to raise_error(ElasticSearch::ConnectionFailed)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
data/spec/hits_spec.rb
CHANGED
@@ -7,8 +7,6 @@ describe ElasticSearch::Api::Hit do
|
|
7
7
|
|
8
8
|
its(:id) { should == response["_id"] }
|
9
9
|
|
10
|
-
its(:attributes) { should be_frozen }
|
11
|
-
|
12
10
|
it "should set hit attributes" do
|
13
11
|
subject.foo.should == response["_source"]["foo"]
|
14
12
|
end
|
@@ -37,16 +35,6 @@ describe ElasticSearch::Api::Hits do
|
|
37
35
|
end
|
38
36
|
end
|
39
37
|
|
40
|
-
|
41
|
-
it "should freeze all hits" do
|
42
|
-
subject.hits.all? { |h| h.frozen? }.should be_true
|
43
|
-
end
|
44
|
-
|
45
|
-
it "should freeze hits array when frozen" do
|
46
|
-
subject.freeze
|
47
|
-
subject.hits.should be_frozen
|
48
|
-
end
|
49
|
-
|
50
38
|
it { should respond_to(:to_a) }
|
51
39
|
|
52
40
|
it "should delegate array methods" do
|
metadata
CHANGED
@@ -1,20 +1,19 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubberband
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.12
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
|
-
-
|
8
|
+
- Grant Rodgers
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-
|
13
|
-
default_executable:
|
12
|
+
date: 2011-04-28 00:00:00.000000000Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: patron
|
17
|
-
requirement: &
|
16
|
+
requirement: &20994820 !ruby/object:Gem::Requirement
|
18
17
|
none: false
|
19
18
|
requirements:
|
20
19
|
- - ! '>='
|
@@ -22,10 +21,10 @@ dependencies:
|
|
22
21
|
version: '0'
|
23
22
|
type: :runtime
|
24
23
|
prerelease: false
|
25
|
-
version_requirements: *
|
24
|
+
version_requirements: *20994820
|
26
25
|
- !ruby/object:Gem::Dependency
|
27
26
|
name: yajl-ruby
|
28
|
-
requirement: &
|
27
|
+
requirement: &20994280 !ruby/object:Gem::Requirement
|
29
28
|
none: false
|
30
29
|
requirements:
|
31
30
|
- - ! '>='
|
@@ -33,54 +32,21 @@ dependencies:
|
|
33
32
|
version: '0'
|
34
33
|
type: :runtime
|
35
34
|
prerelease: false
|
36
|
-
version_requirements: *
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
|
-
name: bundler
|
39
|
-
requirement: &10608320 !ruby/object:Gem::Requirement
|
40
|
-
none: false
|
41
|
-
requirements:
|
42
|
-
- - ~>
|
43
|
-
- !ruby/object:Gem::Version
|
44
|
-
version: 1.0.0
|
45
|
-
type: :development
|
46
|
-
prerelease: false
|
47
|
-
version_requirements: *10608320
|
48
|
-
- !ruby/object:Gem::Dependency
|
49
|
-
name: jeweler
|
50
|
-
requirement: &10598620 !ruby/object:Gem::Requirement
|
51
|
-
none: false
|
52
|
-
requirements:
|
53
|
-
- - ~>
|
54
|
-
- !ruby/object:Gem::Version
|
55
|
-
version: 1.5.2
|
56
|
-
type: :development
|
57
|
-
prerelease: false
|
58
|
-
version_requirements: *10598620
|
59
|
-
- !ruby/object:Gem::Dependency
|
60
|
-
name: simplecov
|
61
|
-
requirement: &10585740 !ruby/object:Gem::Requirement
|
62
|
-
none: false
|
63
|
-
requirements:
|
64
|
-
- - ! '>='
|
65
|
-
- !ruby/object:Gem::Version
|
66
|
-
version: 0.3.8
|
67
|
-
type: :development
|
68
|
-
prerelease: false
|
69
|
-
version_requirements: *10585740
|
35
|
+
version_requirements: *20994280
|
70
36
|
- !ruby/object:Gem::Dependency
|
71
37
|
name: rspec
|
72
|
-
requirement: &
|
38
|
+
requirement: &20993760 !ruby/object:Gem::Requirement
|
73
39
|
none: false
|
74
40
|
requirements:
|
75
41
|
- - ~>
|
76
42
|
- !ruby/object:Gem::Version
|
77
|
-
version: '2
|
43
|
+
version: '2'
|
78
44
|
type: :development
|
79
45
|
prerelease: false
|
80
|
-
version_requirements: *
|
46
|
+
version_requirements: *20993760
|
81
47
|
- !ruby/object:Gem::Dependency
|
82
48
|
name: yard
|
83
|
-
requirement: &
|
49
|
+
requirement: &20993280 !ruby/object:Gem::Requirement
|
84
50
|
none: false
|
85
51
|
requirements:
|
86
52
|
- - ~>
|
@@ -88,61 +54,51 @@ dependencies:
|
|
88
54
|
version: '0.6'
|
89
55
|
type: :development
|
90
56
|
prerelease: false
|
91
|
-
version_requirements: *
|
57
|
+
version_requirements: *20993280
|
92
58
|
- !ruby/object:Gem::Dependency
|
93
|
-
name:
|
94
|
-
requirement: &
|
59
|
+
name: bundler
|
60
|
+
requirement: &20992760 !ruby/object:Gem::Requirement
|
95
61
|
none: false
|
96
62
|
requirements:
|
97
63
|
- - ~>
|
98
64
|
- !ruby/object:Gem::Version
|
99
|
-
version:
|
65
|
+
version: '1'
|
100
66
|
type: :development
|
101
67
|
prerelease: false
|
102
|
-
version_requirements: *
|
103
|
-
- !ruby/object:Gem::Dependency
|
104
|
-
name: patron
|
105
|
-
requirement: &10577460 !ruby/object:Gem::Requirement
|
106
|
-
none: false
|
107
|
-
requirements:
|
108
|
-
- - ! '>='
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '0'
|
111
|
-
type: :runtime
|
112
|
-
prerelease: false
|
113
|
-
version_requirements: *10577460
|
68
|
+
version_requirements: *20992760
|
114
69
|
- !ruby/object:Gem::Dependency
|
115
|
-
name:
|
116
|
-
requirement: &
|
70
|
+
name: simplecov
|
71
|
+
requirement: &20992240 !ruby/object:Gem::Requirement
|
117
72
|
none: false
|
118
73
|
requirements:
|
119
74
|
- - ! '>='
|
120
75
|
- !ruby/object:Gem::Version
|
121
|
-
version:
|
122
|
-
type: :
|
76
|
+
version: 0.3.8
|
77
|
+
type: :development
|
123
78
|
prerelease: false
|
124
|
-
version_requirements: *
|
79
|
+
version_requirements: *20992240
|
125
80
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
127
|
-
requirement: &
|
81
|
+
name: mocha
|
82
|
+
requirement: &20991720 !ruby/object:Gem::Requirement
|
128
83
|
none: false
|
129
84
|
requirements:
|
130
85
|
- - ~>
|
131
86
|
- !ruby/object:Gem::Version
|
132
|
-
version: '
|
87
|
+
version: '0.9'
|
133
88
|
type: :development
|
134
89
|
prerelease: false
|
135
|
-
version_requirements: *
|
90
|
+
version_requirements: *20991720
|
136
91
|
description: An ElasticSearch client with ThriftClient-like failover handling.
|
137
|
-
email:
|
92
|
+
email:
|
93
|
+
- grantr@gmail.com
|
138
94
|
executables: []
|
139
95
|
extensions: []
|
140
96
|
extra_rdoc_files:
|
141
97
|
- LICENSE
|
142
98
|
- README.rdoc
|
143
|
-
- TODO
|
144
99
|
files:
|
145
100
|
- .autotest
|
101
|
+
- .gitignore
|
146
102
|
- .rspec
|
147
103
|
- CONTRIBUTORS
|
148
104
|
- Gemfile
|
@@ -178,15 +134,15 @@ files:
|
|
178
134
|
- rubberband.gemspec
|
179
135
|
- spec/admin_spec.rb
|
180
136
|
- spec/bulk_spec.rb
|
137
|
+
- spec/connect_spec.rb
|
181
138
|
- spec/hits_spec.rb
|
182
139
|
- spec/index_spec.rb
|
183
140
|
- spec/spec_helper.rb
|
184
141
|
- spec/type_spec.rb
|
185
142
|
- vendor/elasticsearch/elasticsearch.thrift
|
186
|
-
has_rdoc: true
|
187
143
|
homepage: http://github.com/grantr/rubberband
|
188
144
|
licenses:
|
189
|
-
- Apache v2
|
145
|
+
- Apache v2
|
190
146
|
post_install_message:
|
191
147
|
rdoc_options: []
|
192
148
|
require_paths:
|
@@ -197,9 +153,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
197
153
|
- - ! '>='
|
198
154
|
- !ruby/object:Gem::Version
|
199
155
|
version: '0'
|
200
|
-
segments:
|
201
|
-
- 0
|
202
|
-
hash: -3653460652269889711
|
203
156
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
204
157
|
none: false
|
205
158
|
requirements:
|
@@ -207,15 +160,17 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
207
160
|
- !ruby/object:Gem::Version
|
208
161
|
version: '0'
|
209
162
|
requirements: []
|
210
|
-
rubyforge_project:
|
211
|
-
rubygems_version: 1.
|
163
|
+
rubyforge_project: rubberband
|
164
|
+
rubygems_version: 1.7.2
|
212
165
|
signing_key:
|
213
166
|
specification_version: 3
|
214
|
-
summary: An ElasticSearch client.
|
167
|
+
summary: An ElasticSearch client with ThriftClient-like failover handling.
|
215
168
|
test_files:
|
216
169
|
- spec/admin_spec.rb
|
217
170
|
- spec/bulk_spec.rb
|
171
|
+
- spec/connect_spec.rb
|
218
172
|
- spec/hits_spec.rb
|
219
173
|
- spec/index_spec.rb
|
220
174
|
- spec/spec_helper.rb
|
221
175
|
- spec/type_spec.rb
|
176
|
+
has_rdoc:
|