elastic_search_thrift 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG +4 -0
- data/Gemfile +3 -2
- data/README.markdown +1 -1
- data/lib/elastic_search_thrift/elasticsearch_constants.rb +1 -1
- data/lib/elastic_search_thrift/elasticsearch_types.rb +1 -1
- data/lib/elastic_search_thrift/rest.rb +1 -1
- data/lib/elastic_search_thrift/tire_client.rb +2 -1
- data/lib/elastic_search_thrift/version.rb +1 -1
- metadata +16 -25
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: b3ce594f2a538ff2354c7e4d1361c4ac24599ffc
|
4
|
+
data.tar.gz: e65bafe16bba5dc1935a0c57fe9c09cb483ae6e0
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: cefbb5a9a745e4a53dc4677f6402d28b60f681b6a2ce2579c5c45a582a5995365302ae69c0166228a54efd6d4e720b37aa20a847e831391a8ef2602d03342207
|
7
|
+
data.tar.gz: fe7c8db851efd94238ee1a969ad9a317f7d21cce006afae4ebcc978f3be9af0e81805cbb0e7ea069c7cbe2b16e2ff8aaa57cf0d34187078955ba766ced0b0a51
|
data/CHANGELOG
CHANGED
data/Gemfile
CHANGED
data/README.markdown
CHANGED
@@ -10,7 +10,7 @@ module ElasticSearchThrift
|
|
10
10
|
|
11
11
|
def initialize
|
12
12
|
@client = ElasticSearchThrift.client
|
13
|
-
@
|
13
|
+
@opened = false
|
14
14
|
end
|
15
15
|
|
16
16
|
attr_reader :client
|
@@ -38,6 +38,7 @@ module ElasticSearchThrift
|
|
38
38
|
private
|
39
39
|
|
40
40
|
def execute(method, url, data)
|
41
|
+
@client.open if !@opened
|
41
42
|
path, params = parse_url(url)
|
42
43
|
path.chomp!('/')
|
43
44
|
response = client.send(method, path, params, normalize_data(data))
|
metadata
CHANGED
@@ -1,68 +1,61 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elastic_search_thrift
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- George Ogata
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2014-01-09 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: thrift
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- - ~>
|
17
|
+
- - "~>"
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: 0.9.1
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- - ~>
|
24
|
+
- - "~>"
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: 0.9.1
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: json
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - ">="
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: 1.6.0
|
38
|
-
- - <
|
34
|
+
- - "<"
|
39
35
|
- !ruby/object:Gem::Version
|
40
36
|
version: 1.9.0
|
41
37
|
type: :runtime
|
42
38
|
prerelease: false
|
43
39
|
version_requirements: !ruby/object:Gem::Requirement
|
44
|
-
none: false
|
45
40
|
requirements:
|
46
|
-
- -
|
41
|
+
- - ">="
|
47
42
|
- !ruby/object:Gem::Version
|
48
43
|
version: 1.6.0
|
49
|
-
- - <
|
44
|
+
- - "<"
|
50
45
|
- !ruby/object:Gem::Version
|
51
46
|
version: 1.9.0
|
52
47
|
- !ruby/object:Gem::Dependency
|
53
48
|
name: bundler
|
54
49
|
requirement: !ruby/object:Gem::Requirement
|
55
|
-
none: false
|
56
50
|
requirements:
|
57
|
-
- -
|
51
|
+
- - ">="
|
58
52
|
- !ruby/object:Gem::Version
|
59
53
|
version: '0'
|
60
54
|
type: :development
|
61
55
|
prerelease: false
|
62
56
|
version_requirements: !ruby/object:Gem::Requirement
|
63
|
-
none: false
|
64
57
|
requirements:
|
65
|
-
- -
|
58
|
+
- - ">="
|
66
59
|
- !ruby/object:Gem::Version
|
67
60
|
version: '0'
|
68
61
|
description: Thrift client for ElasticSearch
|
@@ -72,7 +65,7 @@ executables: []
|
|
72
65
|
extensions: []
|
73
66
|
extra_rdoc_files: []
|
74
67
|
files:
|
75
|
-
- .gitignore
|
68
|
+
- ".gitignore"
|
76
69
|
- CHANGELOG
|
77
70
|
- Gemfile
|
78
71
|
- LICENSE
|
@@ -95,31 +88,29 @@ files:
|
|
95
88
|
- test/test_helper.rb
|
96
89
|
homepage: https://github.com/howaboutwe/elastic_search_thrift
|
97
90
|
licenses: []
|
91
|
+
metadata: {}
|
98
92
|
post_install_message:
|
99
93
|
rdoc_options: []
|
100
94
|
require_paths:
|
101
95
|
- lib
|
102
96
|
required_ruby_version: !ruby/object:Gem::Requirement
|
103
|
-
none: false
|
104
97
|
requirements:
|
105
|
-
- -
|
98
|
+
- - ">="
|
106
99
|
- !ruby/object:Gem::Version
|
107
100
|
version: '0'
|
108
101
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
109
|
-
none: false
|
110
102
|
requirements:
|
111
|
-
- -
|
103
|
+
- - ">="
|
112
104
|
- !ruby/object:Gem::Version
|
113
105
|
version: '0'
|
114
106
|
requirements: []
|
115
107
|
rubyforge_project:
|
116
|
-
rubygems_version:
|
108
|
+
rubygems_version: 2.2.0
|
117
109
|
signing_key:
|
118
|
-
specification_version:
|
110
|
+
specification_version: 4
|
119
111
|
summary: Thrift client for ElasticSearch
|
120
112
|
test_files:
|
121
113
|
- test/config.yml
|
122
114
|
- test/elastic_search_thrift/test_client.rb
|
123
115
|
- test/elastic_search_thrift/test_tire_client.rb
|
124
116
|
- test/test_helper.rb
|
125
|
-
has_rdoc:
|