elasticsearch-api 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (115) hide show
  1. data/README.md +8 -2
  2. data/Rakefile +15 -1
  3. data/elasticsearch-api.gemspec +12 -0
  4. data/lib/{elasticsearch-api → elasticsearch-api.rb} +0 -0
  5. data/lib/elasticsearch/api.rb +9 -0
  6. data/lib/elasticsearch/api/actions/bulk.rb +9 -9
  7. data/lib/elasticsearch/api/actions/cluster/health.rb +12 -12
  8. data/lib/elasticsearch/api/actions/cluster/node_hot_threads.rb +9 -9
  9. data/lib/elasticsearch/api/actions/cluster/node_info.rb +16 -16
  10. data/lib/elasticsearch/api/actions/cluster/node_shutdown.rb +7 -7
  11. data/lib/elasticsearch/api/actions/cluster/node_stats.rb +16 -18
  12. data/lib/elasticsearch/api/actions/cluster/reroute.rb +4 -6
  13. data/lib/elasticsearch/api/actions/cluster/state.rb +12 -12
  14. data/lib/elasticsearch/api/actions/count.rb +9 -9
  15. data/lib/elasticsearch/api/actions/delete.rb +16 -13
  16. data/lib/elasticsearch/api/actions/delete_by_query.rb +15 -14
  17. data/lib/elasticsearch/api/actions/exists.rb +13 -11
  18. data/lib/elasticsearch/api/actions/explain.rb +28 -17
  19. data/lib/elasticsearch/api/actions/get.rb +20 -11
  20. data/lib/elasticsearch/api/actions/get_source.rb +23 -11
  21. data/lib/elasticsearch/api/actions/index.rb +20 -18
  22. data/lib/elasticsearch/api/actions/indices/analyze.rb +12 -13
  23. data/lib/elasticsearch/api/actions/indices/clear_cache.rb +15 -15
  24. data/lib/elasticsearch/api/actions/indices/close.rb +5 -6
  25. data/lib/elasticsearch/api/actions/indices/create.rb +5 -6
  26. data/lib/elasticsearch/api/actions/indices/delete.rb +5 -6
  27. data/lib/elasticsearch/api/actions/indices/delete_alias.rb +5 -6
  28. data/lib/elasticsearch/api/actions/indices/delete_mapping.rb +1 -1
  29. data/lib/elasticsearch/api/actions/indices/delete_template.rb +5 -6
  30. data/lib/elasticsearch/api/actions/indices/delete_warmer.rb +1 -1
  31. data/lib/elasticsearch/api/actions/indices/exists_alias.rb +5 -6
  32. data/lib/elasticsearch/api/actions/indices/exists_type.rb +5 -6
  33. data/lib/elasticsearch/api/actions/indices/flush.rb +9 -9
  34. data/lib/elasticsearch/api/actions/indices/get_alias.rb +5 -6
  35. data/lib/elasticsearch/api/actions/indices/get_aliases.rb +5 -6
  36. data/lib/elasticsearch/api/actions/indices/get_mapping.rb +1 -1
  37. data/lib/elasticsearch/api/actions/indices/get_settings.rb +1 -1
  38. data/lib/elasticsearch/api/actions/indices/get_template.rb +1 -2
  39. data/lib/elasticsearch/api/actions/indices/get_warmer.rb +1 -1
  40. data/lib/elasticsearch/api/actions/indices/open.rb +5 -6
  41. data/lib/elasticsearch/api/actions/indices/optimize.rb +12 -12
  42. data/lib/elasticsearch/api/actions/indices/put_alias.rb +5 -6
  43. data/lib/elasticsearch/api/actions/indices/put_mapping.rb +5 -7
  44. data/lib/elasticsearch/api/actions/indices/put_settings.rb +1 -1
  45. data/lib/elasticsearch/api/actions/indices/put_template.rb +5 -7
  46. data/lib/elasticsearch/api/actions/indices/refresh.rb +5 -6
  47. data/lib/elasticsearch/api/actions/indices/segments.rb +5 -6
  48. data/lib/elasticsearch/api/actions/indices/snapshot_index.rb +5 -6
  49. data/lib/elasticsearch/api/actions/indices/stats.rb +23 -23
  50. data/lib/elasticsearch/api/actions/indices/status.rb +8 -8
  51. data/lib/elasticsearch/api/actions/indices/update_aliases.rb +4 -5
  52. data/lib/elasticsearch/api/actions/indices/validate_query.rb +11 -9
  53. data/lib/elasticsearch/api/actions/mget.rb +21 -11
  54. data/lib/elasticsearch/api/actions/mlt.rb +28 -24
  55. data/lib/elasticsearch/api/actions/msearch.rb +4 -5
  56. data/lib/elasticsearch/api/actions/percolate.rb +7 -6
  57. data/lib/elasticsearch/api/actions/scroll.rb +5 -6
  58. data/lib/elasticsearch/api/actions/search.rb +37 -30
  59. data/lib/elasticsearch/api/actions/suggest.rb +8 -8
  60. data/lib/elasticsearch/api/actions/update.rb +24 -20
  61. data/lib/elasticsearch/api/utils.rb +44 -6
  62. data/lib/elasticsearch/api/version.rb +1 -1
  63. data/test/integration/yaml_test_runner.rb +4 -5
  64. data/test/test_helper.rb +1 -1
  65. data/test/unit/bulk_test.rb +9 -0
  66. data/test/unit/cluster/node_hot_threads_test.rb +9 -0
  67. data/test/unit/create_document_test.rb +9 -0
  68. data/test/unit/delete_document_test.rb +16 -1
  69. data/test/unit/exists_document_test.rb +9 -0
  70. data/test/unit/explain_document_test.rb +9 -0
  71. data/test/unit/get_document_source_test.rb +10 -1
  72. data/test/unit/get_document_test.rb +16 -1
  73. data/test/unit/index_document_test.rb +15 -0
  74. data/test/unit/indices/analyze_test.rb +9 -0
  75. data/test/unit/indices/clear_cache_test.rb +9 -0
  76. data/test/unit/indices/close_test.rb +9 -0
  77. data/test/unit/indices/create_test.rb +9 -0
  78. data/test/unit/indices/delete_alias_test.rb +9 -0
  79. data/test/unit/indices/delete_mapping_test.rb +9 -0
  80. data/test/unit/indices/delete_template_test.rb +9 -0
  81. data/test/unit/indices/delete_test.rb +9 -0
  82. data/test/unit/indices/delete_warmer_test.rb +9 -0
  83. data/test/unit/indices/exists_alias_test.rb +9 -0
  84. data/test/unit/indices/exists_test.rb +9 -0
  85. data/test/unit/indices/exists_type_test.rb +9 -0
  86. data/test/unit/indices/flush_test.rb +9 -0
  87. data/test/unit/indices/get_alias_test.rb +9 -0
  88. data/test/unit/indices/get_aliases_test.rb +9 -0
  89. data/test/unit/indices/get_mapping_test.rb +9 -0
  90. data/test/unit/indices/get_settings_test.rb +9 -0
  91. data/test/unit/indices/get_template_test.rb +10 -6
  92. data/test/unit/indices/get_warmer_test.rb +9 -0
  93. data/test/unit/indices/open_test.rb +9 -0
  94. data/test/unit/indices/optimize_test.rb +9 -0
  95. data/test/unit/indices/put_alias_test.rb +9 -0
  96. data/test/unit/indices/put_mapping_test.rb +9 -0
  97. data/test/unit/indices/put_settings_test.rb +9 -0
  98. data/test/unit/indices/put_template_test.rb +9 -0
  99. data/test/unit/indices/put_warmer_test.rb +9 -0
  100. data/test/unit/indices/refresh_test.rb +9 -0
  101. data/test/unit/indices/segments_test.rb +9 -0
  102. data/test/unit/indices/snapshot_index_test.rb +9 -0
  103. data/test/unit/indices/stats_test.rb +9 -0
  104. data/test/unit/indices/status_test.rb +9 -0
  105. data/test/unit/indices/validate_query_test.rb +9 -0
  106. data/test/unit/mget_test.rb +9 -0
  107. data/test/unit/mlt_test.rb +9 -0
  108. data/test/unit/msearch_test.rb +9 -0
  109. data/test/unit/percolate_test.rb +9 -0
  110. data/test/unit/search_test.rb +16 -1
  111. data/test/unit/suggest_test.rb +9 -0
  112. data/test/unit/update_document_test.rb +16 -1
  113. data/test/unit/utils_test.rb +34 -5
  114. metadata +161 -44
  115. checksums.yaml +0 -7
@@ -38,6 +38,15 @@ module Elasticsearch
38
38
  subject.suggest :index => 'foo', :routing => 'abc123', :body => {}
39
39
  end
40
40
 
41
+ should "URL-escape the parts" do
42
+ subject.expects(:perform_request).with do |method, url, params, body|
43
+ assert_equal 'foo%5Ebar/_suggest', url
44
+ true
45
+ end.returns(FakeResponse.new)
46
+
47
+ subject.suggest :index => 'foo^bar', :body => {}
48
+ end
49
+
41
50
  should "pass the request definition in the body" do
42
51
  subject.expects(:perform_request).with do |method, url, params, body|
43
52
  assert_equal '_suggest', url
@@ -47,11 +47,26 @@ module Elasticsearch
47
47
  subject.update :index => 'foo', :type => 'bar', :id => '1', :version => 100, :body => {}
48
48
  end
49
49
 
50
+ should "validate URL parameters" do
51
+ assert_raise ArgumentError do
52
+ subject.update :index => 'foo', :type => 'bar', :id => '1', :body => { :doc => {} }, :qwertypoiuy => 'asdflkjhg'
53
+ end
54
+ end
55
+
56
+ should "URL-escape the parts" do
57
+ subject.expects(:perform_request).with do |method, url, params, body|
58
+ assert_equal 'foo%5Ebar/bar%2Fbam/1/_update', url
59
+ true
60
+ end.returns(FakeResponse.new)
61
+
62
+ subject.update :index => 'foo^bar', :type => 'bar/bam', :id => '1', :body => {}
63
+ end
64
+
50
65
  should "catch a NotFound exception with the ignore parameter" do
51
66
  subject.expects(:perform_request).raises(NotFound)
52
67
 
53
68
  assert_nothing_raised do
54
- subject.get :index => 'foo', :type => 'bar', :id => 'XXX', ignore: 404
69
+ subject.get :index => 'foo', :type => 'bar', :id => 'XXX', :ignore => 404
55
70
  end
56
71
  end
57
72
 
@@ -16,7 +16,21 @@ module Elasticsearch
16
16
  end
17
17
 
18
18
  should "encode special characters" do
19
- assert_equal 'foo%20bar', __escape('foo bar')
19
+ assert_equal 'foo+bar', __escape('foo bar')
20
+ assert_equal 'foo%2Fbar', __escape('foo/bar')
21
+ assert_equal 'foo%5Ebar', __escape('foo^bar')
22
+ end
23
+
24
+ should "use CGI.escape by default" do
25
+ CGI.expects(:escape)
26
+ __escape('foo bar')
27
+ end
28
+
29
+ should "use the escape_utils gem when available" do
30
+ require 'escape_utils'
31
+ CGI.expects(:escape).never
32
+ EscapeUtils.expects(:escape_url)
33
+ __escape('foo bar')
20
34
  end
21
35
 
22
36
  end
@@ -39,6 +53,10 @@ module Elasticsearch
39
53
  assert_equal 'foo,bar', __listify(['foo', nil, 'bar'])
40
54
  end
41
55
 
56
+ should "encode special characters" do
57
+ assert_equal 'foo,bar%5Ebam', __listify(['foo', 'bar^bam'])
58
+ end
59
+
42
60
  end
43
61
 
44
62
  context "__pathify" do
@@ -59,10 +77,6 @@ module Elasticsearch
59
77
  assert_equal 'foo/bar', __pathify(['foo', '', 'bar'])
60
78
  end
61
79
 
62
- should "encode special characters" do
63
- assert_equal 'foo/bar%5Ebam', __pathify(['foo', 'bar^bam'])
64
- end
65
-
66
80
  end
67
81
 
68
82
  context "__bulkify" do
@@ -112,6 +126,21 @@ module Elasticsearch
112
126
 
113
127
  end
114
128
 
129
+ context "__validate_and_extract_params" do
130
+
131
+ should "extract valid params from a Hash" do
132
+ assert_equal( {:foo => 'qux'},
133
+ __validate_and_extract_params({ :foo => 'qux' }, [:foo, :bar]) )
134
+ end
135
+
136
+ should "raise an exception when invalid keys present" do
137
+ assert_raise ArgumentError do
138
+ __validate_and_extract_params({ :foo => 'qux', :bam => 'mux' }, [:foo, :bar])
139
+ end
140
+ end
141
+
142
+ end
143
+
115
144
  end
116
145
  end
117
146
  end
metadata CHANGED
@@ -1,255 +1,371 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elasticsearch-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Karel Minarik
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-09-24 00:00:00.000000000 Z
12
+ date: 2013-10-23 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: multi_json
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - '>='
19
+ - - ! '>='
18
20
  - !ruby/object:Gem::Version
19
21
  version: '0'
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
- - - '>='
27
+ - - ! '>='
25
28
  - !ruby/object:Gem::Version
26
29
  version: '0'
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: bundler
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
- - - '>'
35
+ - - ! '>'
32
36
  - !ruby/object:Gem::Version
33
37
  version: '1'
34
38
  type: :development
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
- - - '>'
43
+ - - ! '>'
39
44
  - !ruby/object:Gem::Version
40
45
  version: '1'
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: rake
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
- - - '>='
51
+ - - ! '>='
46
52
  - !ruby/object:Gem::Version
47
53
  version: '0'
48
54
  type: :development
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
- - - '>='
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: elasticsearch
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
53
76
  - !ruby/object:Gem::Version
54
77
  version: '0'
55
78
  - !ruby/object:Gem::Dependency
56
79
  name: elasticsearch-transport
57
80
  requirement: !ruby/object:Gem::Requirement
81
+ none: false
58
82
  requirements:
59
- - - '>='
83
+ - - ! '>='
60
84
  - !ruby/object:Gem::Version
61
85
  version: '0'
62
86
  type: :development
63
87
  prerelease: false
64
88
  version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
65
90
  requirements:
66
- - - '>='
91
+ - - ! '>='
67
92
  - !ruby/object:Gem::Version
68
93
  version: '0'
69
94
  - !ruby/object:Gem::Dependency
70
95
  name: ansi
71
96
  requirement: !ruby/object:Gem::Requirement
97
+ none: false
72
98
  requirements:
73
- - - '>='
99
+ - - ! '>='
74
100
  - !ruby/object:Gem::Version
75
101
  version: '0'
76
102
  type: :development
77
103
  prerelease: false
78
104
  version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
79
106
  requirements:
80
- - - '>='
107
+ - - ! '>='
81
108
  - !ruby/object:Gem::Version
82
109
  version: '0'
83
110
  - !ruby/object:Gem::Dependency
84
111
  name: shoulda-context
85
112
  requirement: !ruby/object:Gem::Requirement
113
+ none: false
86
114
  requirements:
87
- - - '>='
115
+ - - ! '>='
88
116
  - !ruby/object:Gem::Version
89
117
  version: '0'
90
118
  type: :development
91
119
  prerelease: false
92
120
  version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
93
122
  requirements:
94
- - - '>='
123
+ - - ! '>='
95
124
  - !ruby/object:Gem::Version
96
125
  version: '0'
97
126
  - !ruby/object:Gem::Dependency
98
127
  name: mocha
99
128
  requirement: !ruby/object:Gem::Requirement
129
+ none: false
100
130
  requirements:
101
- - - '>='
131
+ - - ! '>='
102
132
  - !ruby/object:Gem::Version
103
133
  version: '0'
104
134
  type: :development
105
135
  prerelease: false
106
136
  version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
107
138
  requirements:
108
- - - '>='
139
+ - - ! '>='
109
140
  - !ruby/object:Gem::Version
110
141
  version: '0'
111
142
  - !ruby/object:Gem::Dependency
112
143
  name: turn
113
144
  requirement: !ruby/object:Gem::Requirement
145
+ none: false
114
146
  requirements:
115
- - - '>='
147
+ - - ! '>='
116
148
  - !ruby/object:Gem::Version
117
149
  version: '0'
118
150
  type: :development
119
151
  prerelease: false
120
152
  version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
121
154
  requirements:
122
- - - '>='
155
+ - - ! '>='
123
156
  - !ruby/object:Gem::Version
124
157
  version: '0'
125
158
  - !ruby/object:Gem::Dependency
126
159
  name: yard
127
160
  requirement: !ruby/object:Gem::Requirement
161
+ none: false
128
162
  requirements:
129
- - - '>='
163
+ - - ! '>='
130
164
  - !ruby/object:Gem::Version
131
165
  version: '0'
132
166
  type: :development
133
167
  prerelease: false
134
168
  version_requirements: !ruby/object:Gem::Requirement
169
+ none: false
135
170
  requirements:
136
- - - '>='
171
+ - - ! '>='
137
172
  - !ruby/object:Gem::Version
138
173
  version: '0'
139
174
  - !ruby/object:Gem::Dependency
140
175
  name: ruby-prof
141
176
  requirement: !ruby/object:Gem::Requirement
177
+ none: false
178
+ requirements:
179
+ - - ! '>='
180
+ - !ruby/object:Gem::Version
181
+ version: '0'
182
+ type: :development
183
+ prerelease: false
184
+ version_requirements: !ruby/object:Gem::Requirement
185
+ none: false
186
+ requirements:
187
+ - - ! '>='
188
+ - !ruby/object:Gem::Version
189
+ version: '0'
190
+ - !ruby/object:Gem::Dependency
191
+ name: pry
192
+ requirement: !ruby/object:Gem::Requirement
193
+ none: false
142
194
  requirements:
143
- - - '>='
195
+ - - ! '>='
144
196
  - !ruby/object:Gem::Version
145
197
  version: '0'
146
198
  type: :development
147
199
  prerelease: false
148
200
  version_requirements: !ruby/object:Gem::Requirement
201
+ none: false
149
202
  requirements:
150
- - - '>='
203
+ - - ! '>='
204
+ - !ruby/object:Gem::Version
205
+ version: '0'
206
+ - !ruby/object:Gem::Dependency
207
+ name: ci_reporter
208
+ requirement: !ruby/object:Gem::Requirement
209
+ none: false
210
+ requirements:
211
+ - - ! '>='
212
+ - !ruby/object:Gem::Version
213
+ version: '0'
214
+ type: :development
215
+ prerelease: false
216
+ version_requirements: !ruby/object:Gem::Requirement
217
+ none: false
218
+ requirements:
219
+ - - ! '>='
151
220
  - !ruby/object:Gem::Version
152
221
  version: '0'
153
222
  - !ruby/object:Gem::Dependency
154
223
  name: multi_json
155
224
  requirement: !ruby/object:Gem::Requirement
225
+ none: false
156
226
  requirements:
157
- - - '>='
227
+ - - ! '>='
158
228
  - !ruby/object:Gem::Version
159
229
  version: '0'
160
230
  type: :development
161
231
  prerelease: false
162
232
  version_requirements: !ruby/object:Gem::Requirement
233
+ none: false
163
234
  requirements:
164
- - - '>='
235
+ - - ! '>='
165
236
  - !ruby/object:Gem::Version
166
237
  version: '0'
167
238
  - !ruby/object:Gem::Dependency
168
239
  name: jbuilder
169
240
  requirement: !ruby/object:Gem::Requirement
241
+ none: false
170
242
  requirements:
171
- - - '>='
243
+ - - ! '>='
172
244
  - !ruby/object:Gem::Version
173
245
  version: '0'
174
246
  type: :development
175
247
  prerelease: false
176
248
  version_requirements: !ruby/object:Gem::Requirement
249
+ none: false
177
250
  requirements:
178
- - - '>='
251
+ - - ! '>='
179
252
  - !ruby/object:Gem::Version
180
253
  version: '0'
181
254
  - !ruby/object:Gem::Dependency
182
255
  name: jsonify
183
256
  requirement: !ruby/object:Gem::Requirement
257
+ none: false
184
258
  requirements:
185
- - - '>='
259
+ - - ! '>='
186
260
  - !ruby/object:Gem::Version
187
261
  version: '0'
188
262
  type: :development
189
263
  prerelease: false
190
264
  version_requirements: !ruby/object:Gem::Requirement
265
+ none: false
191
266
  requirements:
192
- - - '>='
267
+ - - ! '>='
193
268
  - !ruby/object:Gem::Version
194
269
  version: '0'
195
270
  - !ruby/object:Gem::Dependency
196
271
  name: hashie
197
272
  requirement: !ruby/object:Gem::Requirement
273
+ none: false
198
274
  requirements:
199
- - - '>='
275
+ - - ! '>='
200
276
  - !ruby/object:Gem::Version
201
277
  version: '0'
202
278
  type: :development
203
279
  prerelease: false
204
280
  version_requirements: !ruby/object:Gem::Requirement
281
+ none: false
205
282
  requirements:
206
- - - '>='
283
+ - - ! '>='
284
+ - !ruby/object:Gem::Version
285
+ version: '0'
286
+ - !ruby/object:Gem::Dependency
287
+ name: escape_utils
288
+ requirement: !ruby/object:Gem::Requirement
289
+ none: false
290
+ requirements:
291
+ - - ! '>='
292
+ - !ruby/object:Gem::Version
293
+ version: '0'
294
+ type: :development
295
+ prerelease: false
296
+ version_requirements: !ruby/object:Gem::Requirement
297
+ none: false
298
+ requirements:
299
+ - - ! '>='
207
300
  - !ruby/object:Gem::Version
208
301
  version: '0'
209
302
  - !ruby/object:Gem::Dependency
210
303
  name: simplecov
211
304
  requirement: !ruby/object:Gem::Requirement
305
+ none: false
212
306
  requirements:
213
- - - '>='
307
+ - - ! '>='
214
308
  - !ruby/object:Gem::Version
215
309
  version: '0'
216
310
  type: :development
217
311
  prerelease: false
218
312
  version_requirements: !ruby/object:Gem::Requirement
313
+ none: false
219
314
  requirements:
220
- - - '>='
315
+ - - ! '>='
221
316
  - !ruby/object:Gem::Version
222
317
  version: '0'
223
318
  - !ruby/object:Gem::Dependency
224
319
  name: cane
225
320
  requirement: !ruby/object:Gem::Requirement
321
+ none: false
226
322
  requirements:
227
- - - '>='
323
+ - - ! '>='
228
324
  - !ruby/object:Gem::Version
229
325
  version: '0'
230
326
  type: :development
231
327
  prerelease: false
232
328
  version_requirements: !ruby/object:Gem::Requirement
329
+ none: false
233
330
  requirements:
234
- - - '>='
331
+ - - ! '>='
235
332
  - !ruby/object:Gem::Version
236
333
  version: '0'
237
334
  - !ruby/object:Gem::Dependency
238
335
  name: require-prof
239
336
  requirement: !ruby/object:Gem::Requirement
337
+ none: false
338
+ requirements:
339
+ - - ! '>='
340
+ - !ruby/object:Gem::Version
341
+ version: '0'
342
+ type: :development
343
+ prerelease: false
344
+ version_requirements: !ruby/object:Gem::Requirement
345
+ none: false
346
+ requirements:
347
+ - - ! '>='
348
+ - !ruby/object:Gem::Version
349
+ version: '0'
350
+ - !ruby/object:Gem::Dependency
351
+ name: coveralls
352
+ requirement: !ruby/object:Gem::Requirement
353
+ none: false
240
354
  requirements:
241
- - - '>='
355
+ - - ! '>='
242
356
  - !ruby/object:Gem::Version
243
357
  version: '0'
244
358
  type: :development
245
359
  prerelease: false
246
360
  version_requirements: !ruby/object:Gem::Requirement
361
+ none: false
247
362
  requirements:
248
- - - '>='
363
+ - - ! '>='
249
364
  - !ruby/object:Gem::Version
250
365
  version: '0'
251
- description: |
252
- Ruby API for Elasticsearch. See the `elasticsearch` gem for full integration.
366
+ description: ! 'Ruby API for Elasticsearch. See the `elasticsearch` gem for full integration.
367
+
368
+ '
253
369
  email:
254
370
  - karel.minarik@elasticsearch.org
255
371
  executables: []
@@ -264,7 +380,7 @@ files:
264
380
  - README.md
265
381
  - Rakefile
266
382
  - elasticsearch-api.gemspec
267
- - lib/elasticsearch-api
383
+ - lib/elasticsearch-api.rb
268
384
  - lib/elasticsearch/api.rb
269
385
  - lib/elasticsearch/api/actions/bulk.rb
270
386
  - lib/elasticsearch/api/actions/cluster/get_settings.rb
@@ -404,27 +520,28 @@ files:
404
520
  homepage: https://github.com/elasticsearch/elasticsearch-ruby/tree/master/elasticsearch-api
405
521
  licenses:
406
522
  - Apache 2
407
- metadata: {}
408
523
  post_install_message:
409
524
  rdoc_options:
410
525
  - --charset=UTF-8
411
526
  require_paths:
412
527
  - lib
413
528
  required_ruby_version: !ruby/object:Gem::Requirement
529
+ none: false
414
530
  requirements:
415
- - - '>='
531
+ - - ! '>='
416
532
  - !ruby/object:Gem::Version
417
533
  version: '0'
418
534
  required_rubygems_version: !ruby/object:Gem::Requirement
535
+ none: false
419
536
  requirements:
420
- - - '>='
537
+ - - ! '>='
421
538
  - !ruby/object:Gem::Version
422
539
  version: '0'
423
540
  requirements: []
424
541
  rubyforge_project:
425
- rubygems_version: 2.0.0
542
+ rubygems_version: 1.8.23
426
543
  signing_key:
427
- specification_version: 4
544
+ specification_version: 3
428
545
  summary: Ruby API for Elasticsearch.
429
546
  test_files:
430
547
  - test/integration/yaml_test_runner.rb