chewy 0.10.1 → 7.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (243) hide show
  1. checksums.yaml +5 -5
  2. data/.github/CODEOWNERS +1 -0
  3. data/.github/ISSUE_TEMPLATE/bug_report.md +39 -0
  4. data/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
  5. data/.github/PULL_REQUEST_TEMPLATE.md +16 -0
  6. data/.github/workflows/ruby.yml +74 -0
  7. data/.rubocop.yml +28 -23
  8. data/.rubocop_todo.yml +110 -22
  9. data/CHANGELOG.md +480 -298
  10. data/CODE_OF_CONDUCT.md +14 -0
  11. data/CONTRIBUTING.md +63 -0
  12. data/Gemfile +3 -5
  13. data/Guardfile +3 -1
  14. data/LICENSE.txt +1 -1
  15. data/README.md +571 -333
  16. data/chewy.gemspec +12 -15
  17. data/gemfiles/rails.5.2.activerecord.gemfile +11 -0
  18. data/gemfiles/rails.6.0.activerecord.gemfile +11 -0
  19. data/gemfiles/rails.6.1.activerecord.gemfile +13 -0
  20. data/gemfiles/rails.7.0.activerecord.gemfile +13 -0
  21. data/lib/chewy/config.rb +48 -77
  22. data/lib/chewy/errors.rb +4 -10
  23. data/lib/chewy/fields/base.rb +88 -16
  24. data/lib/chewy/fields/root.rb +15 -21
  25. data/lib/chewy/index/actions.rb +67 -38
  26. data/lib/chewy/{type → index}/adapter/active_record.rb +18 -4
  27. data/lib/chewy/{type → index}/adapter/base.rb +11 -12
  28. data/lib/chewy/{type → index}/adapter/object.rb +28 -32
  29. data/lib/chewy/{type → index}/adapter/orm.rb +26 -24
  30. data/lib/chewy/index/aliases.rb +14 -5
  31. data/lib/chewy/index/crutch.rb +40 -0
  32. data/lib/chewy/index/import/bulk_builder.rb +311 -0
  33. data/lib/chewy/{type → index}/import/bulk_request.rb +10 -9
  34. data/lib/chewy/{type → index}/import/journal_builder.rb +11 -12
  35. data/lib/chewy/{type → index}/import/routine.rb +19 -18
  36. data/lib/chewy/{type → index}/import.rb +82 -36
  37. data/lib/chewy/{type → index}/mapping.rb +63 -62
  38. data/lib/chewy/index/observe/active_record_methods.rb +87 -0
  39. data/lib/chewy/index/observe/callback.rb +34 -0
  40. data/lib/chewy/index/observe.rb +17 -0
  41. data/lib/chewy/index/settings.rb +2 -0
  42. data/lib/chewy/index/specification.rb +13 -10
  43. data/lib/chewy/{type → index}/syncer.rb +62 -63
  44. data/lib/chewy/{type → index}/witchcraft.rb +15 -9
  45. data/lib/chewy/{type → index}/wrapper.rb +16 -6
  46. data/lib/chewy/index.rb +68 -93
  47. data/lib/chewy/journal.rb +25 -14
  48. data/lib/chewy/minitest/helpers.rb +91 -18
  49. data/lib/chewy/minitest/search_index_receiver.rb +29 -33
  50. data/lib/chewy/multi_search.rb +62 -0
  51. data/lib/chewy/railtie.rb +8 -24
  52. data/lib/chewy/rake_helper.rb +141 -112
  53. data/lib/chewy/rspec/build_query.rb +12 -0
  54. data/lib/chewy/rspec/helpers.rb +55 -0
  55. data/lib/chewy/rspec/update_index.rb +58 -49
  56. data/lib/chewy/rspec.rb +2 -0
  57. data/lib/chewy/runtime.rb +1 -1
  58. data/lib/chewy/search/loader.rb +19 -41
  59. data/lib/chewy/search/parameters/allow_partial_search_results.rb +27 -0
  60. data/lib/chewy/search/parameters/collapse.rb +16 -0
  61. data/lib/chewy/search/parameters/concerns/query_storage.rb +6 -5
  62. data/lib/chewy/search/parameters/ignore_unavailable.rb +27 -0
  63. data/lib/chewy/search/parameters/indices.rb +78 -0
  64. data/lib/chewy/search/parameters/none.rb +1 -3
  65. data/lib/chewy/search/parameters/order.rb +6 -19
  66. data/lib/chewy/search/parameters/source.rb +5 -1
  67. data/lib/chewy/search/parameters/track_total_hits.rb +16 -0
  68. data/lib/chewy/search/parameters.rb +28 -8
  69. data/lib/chewy/search/query_proxy.rb +9 -2
  70. data/lib/chewy/search/request.rb +207 -157
  71. data/lib/chewy/search/response.rb +5 -5
  72. data/lib/chewy/search/scoping.rb +7 -8
  73. data/lib/chewy/search/scrolling.rb +14 -13
  74. data/lib/chewy/search.rb +7 -26
  75. data/lib/chewy/stash.rb +27 -29
  76. data/lib/chewy/strategy/active_job.rb +2 -2
  77. data/lib/chewy/strategy/atomic.rb +1 -1
  78. data/lib/chewy/strategy/atomic_no_refresh.rb +18 -0
  79. data/lib/chewy/strategy/base.rb +10 -0
  80. data/lib/chewy/strategy/delayed_sidekiq/scheduler.rb +148 -0
  81. data/lib/chewy/strategy/delayed_sidekiq/worker.rb +52 -0
  82. data/lib/chewy/strategy/delayed_sidekiq.rb +17 -0
  83. data/lib/chewy/strategy/lazy_sidekiq.rb +64 -0
  84. data/lib/chewy/strategy/sidekiq.rb +3 -2
  85. data/lib/chewy/strategy.rb +6 -19
  86. data/lib/chewy/version.rb +1 -1
  87. data/lib/chewy.rb +37 -80
  88. data/lib/generators/chewy/install_generator.rb +1 -1
  89. data/lib/tasks/chewy.rake +26 -32
  90. data/migration_guide.md +56 -0
  91. data/spec/chewy/config_spec.rb +27 -57
  92. data/spec/chewy/fields/base_spec.rb +457 -174
  93. data/spec/chewy/fields/root_spec.rb +24 -32
  94. data/spec/chewy/fields/time_fields_spec.rb +5 -5
  95. data/spec/chewy/index/actions_spec.rb +425 -60
  96. data/spec/chewy/{type → index}/adapter/active_record_spec.rb +110 -44
  97. data/spec/chewy/{type → index}/adapter/object_spec.rb +21 -6
  98. data/spec/chewy/index/aliases_spec.rb +3 -3
  99. data/spec/chewy/index/import/bulk_builder_spec.rb +494 -0
  100. data/spec/chewy/{type → index}/import/bulk_request_spec.rb +5 -12
  101. data/spec/chewy/{type → index}/import/journal_builder_spec.rb +22 -30
  102. data/spec/chewy/{type → index}/import/routine_spec.rb +19 -19
  103. data/spec/chewy/{type → index}/import_spec.rb +154 -95
  104. data/spec/chewy/index/mapping_spec.rb +135 -0
  105. data/spec/chewy/index/observe/active_record_methods_spec.rb +68 -0
  106. data/spec/chewy/index/observe/callback_spec.rb +139 -0
  107. data/spec/chewy/index/observe_spec.rb +143 -0
  108. data/spec/chewy/index/settings_spec.rb +3 -1
  109. data/spec/chewy/index/specification_spec.rb +32 -33
  110. data/spec/chewy/{type → index}/syncer_spec.rb +14 -19
  111. data/spec/chewy/{type → index}/witchcraft_spec.rb +34 -21
  112. data/spec/chewy/index/wrapper_spec.rb +100 -0
  113. data/spec/chewy/index_spec.rb +99 -114
  114. data/spec/chewy/journal_spec.rb +56 -101
  115. data/spec/chewy/minitest/helpers_spec.rb +122 -14
  116. data/spec/chewy/minitest/search_index_receiver_spec.rb +24 -26
  117. data/spec/chewy/multi_search_spec.rb +84 -0
  118. data/spec/chewy/rake_helper_spec.rb +325 -101
  119. data/spec/chewy/rspec/build_query_spec.rb +34 -0
  120. data/spec/chewy/rspec/helpers_spec.rb +61 -0
  121. data/spec/chewy/rspec/update_index_spec.rb +106 -102
  122. data/spec/chewy/runtime_spec.rb +2 -2
  123. data/spec/chewy/search/loader_spec.rb +19 -53
  124. data/spec/chewy/search/pagination/kaminari_examples.rb +3 -5
  125. data/spec/chewy/search/pagination/kaminari_spec.rb +1 -1
  126. data/spec/chewy/search/parameters/collapse_spec.rb +5 -0
  127. data/spec/chewy/search/parameters/ignore_unavailable_spec.rb +67 -0
  128. data/spec/chewy/search/parameters/indices_spec.rb +99 -0
  129. data/spec/chewy/search/parameters/none_spec.rb +1 -1
  130. data/spec/chewy/search/parameters/order_spec.rb +18 -11
  131. data/spec/chewy/search/parameters/query_storage_examples.rb +67 -21
  132. data/spec/chewy/search/parameters/search_after_spec.rb +4 -1
  133. data/spec/chewy/search/parameters/source_spec.rb +8 -2
  134. data/spec/chewy/search/parameters/track_total_hits_spec.rb +5 -0
  135. data/spec/chewy/search/parameters_spec.rb +39 -8
  136. data/spec/chewy/search/query_proxy_spec.rb +68 -17
  137. data/spec/chewy/search/request_spec.rb +360 -149
  138. data/spec/chewy/search/response_spec.rb +35 -25
  139. data/spec/chewy/search/scrolling_spec.rb +28 -26
  140. data/spec/chewy/search_spec.rb +73 -53
  141. data/spec/chewy/stash_spec.rb +16 -26
  142. data/spec/chewy/strategy/active_job_spec.rb +23 -10
  143. data/spec/chewy/strategy/atomic_no_refresh_spec.rb +60 -0
  144. data/spec/chewy/strategy/atomic_spec.rb +9 -10
  145. data/spec/chewy/strategy/delayed_sidekiq_spec.rb +190 -0
  146. data/spec/chewy/strategy/lazy_sidekiq_spec.rb +214 -0
  147. data/spec/chewy/strategy/sidekiq_spec.rb +14 -10
  148. data/spec/chewy/strategy_spec.rb +19 -15
  149. data/spec/chewy_spec.rb +17 -110
  150. data/spec/spec_helper.rb +7 -22
  151. data/spec/support/active_record.rb +43 -5
  152. metadata +123 -198
  153. data/.travis.yml +0 -53
  154. data/Appraisals +0 -79
  155. data/LEGACY_DSL.md +0 -497
  156. data/gemfiles/rails.4.0.activerecord.gemfile +0 -14
  157. data/gemfiles/rails.4.1.activerecord.gemfile +0 -14
  158. data/gemfiles/rails.4.2.activerecord.gemfile +0 -15
  159. data/gemfiles/rails.4.2.mongoid.5.1.gemfile +0 -15
  160. data/gemfiles/rails.5.0.activerecord.gemfile +0 -15
  161. data/gemfiles/rails.5.0.mongoid.6.0.gemfile +0 -15
  162. data/gemfiles/rails.5.1.activerecord.gemfile +0 -15
  163. data/gemfiles/rails.5.1.mongoid.6.1.gemfile +0 -15
  164. data/gemfiles/sequel.4.45.gemfile +0 -11
  165. data/lib/chewy/backports/deep_dup.rb +0 -46
  166. data/lib/chewy/backports/duplicable.rb +0 -91
  167. data/lib/chewy/query/compose.rb +0 -68
  168. data/lib/chewy/query/criteria.rb +0 -191
  169. data/lib/chewy/query/filters.rb +0 -227
  170. data/lib/chewy/query/loading.rb +0 -111
  171. data/lib/chewy/query/nodes/and.rb +0 -25
  172. data/lib/chewy/query/nodes/base.rb +0 -17
  173. data/lib/chewy/query/nodes/bool.rb +0 -34
  174. data/lib/chewy/query/nodes/equal.rb +0 -34
  175. data/lib/chewy/query/nodes/exists.rb +0 -20
  176. data/lib/chewy/query/nodes/expr.rb +0 -28
  177. data/lib/chewy/query/nodes/field.rb +0 -110
  178. data/lib/chewy/query/nodes/has_child.rb +0 -15
  179. data/lib/chewy/query/nodes/has_parent.rb +0 -15
  180. data/lib/chewy/query/nodes/has_relation.rb +0 -59
  181. data/lib/chewy/query/nodes/match_all.rb +0 -11
  182. data/lib/chewy/query/nodes/missing.rb +0 -20
  183. data/lib/chewy/query/nodes/not.rb +0 -25
  184. data/lib/chewy/query/nodes/or.rb +0 -25
  185. data/lib/chewy/query/nodes/prefix.rb +0 -19
  186. data/lib/chewy/query/nodes/query.rb +0 -20
  187. data/lib/chewy/query/nodes/range.rb +0 -63
  188. data/lib/chewy/query/nodes/raw.rb +0 -15
  189. data/lib/chewy/query/nodes/regexp.rb +0 -35
  190. data/lib/chewy/query/nodes/script.rb +0 -20
  191. data/lib/chewy/query/pagination.rb +0 -25
  192. data/lib/chewy/query.rb +0 -1098
  193. data/lib/chewy/search/pagination/will_paginate.rb +0 -43
  194. data/lib/chewy/search/parameters/types.rb +0 -20
  195. data/lib/chewy/strategy/resque.rb +0 -27
  196. data/lib/chewy/strategy/shoryuken.rb +0 -40
  197. data/lib/chewy/type/actions.rb +0 -43
  198. data/lib/chewy/type/adapter/mongoid.rb +0 -69
  199. data/lib/chewy/type/adapter/sequel.rb +0 -95
  200. data/lib/chewy/type/crutch.rb +0 -32
  201. data/lib/chewy/type/import/bulk_builder.rb +0 -122
  202. data/lib/chewy/type/observe.rb +0 -78
  203. data/lib/chewy/type.rb +0 -117
  204. data/lib/sequel/plugins/chewy_observe.rb +0 -78
  205. data/spec/chewy/query/criteria_spec.rb +0 -700
  206. data/spec/chewy/query/filters_spec.rb +0 -201
  207. data/spec/chewy/query/loading_spec.rb +0 -124
  208. data/spec/chewy/query/nodes/and_spec.rb +0 -12
  209. data/spec/chewy/query/nodes/bool_spec.rb +0 -14
  210. data/spec/chewy/query/nodes/equal_spec.rb +0 -32
  211. data/spec/chewy/query/nodes/exists_spec.rb +0 -18
  212. data/spec/chewy/query/nodes/has_child_spec.rb +0 -59
  213. data/spec/chewy/query/nodes/has_parent_spec.rb +0 -59
  214. data/spec/chewy/query/nodes/match_all_spec.rb +0 -11
  215. data/spec/chewy/query/nodes/missing_spec.rb +0 -16
  216. data/spec/chewy/query/nodes/not_spec.rb +0 -13
  217. data/spec/chewy/query/nodes/or_spec.rb +0 -12
  218. data/spec/chewy/query/nodes/prefix_spec.rb +0 -16
  219. data/spec/chewy/query/nodes/query_spec.rb +0 -12
  220. data/spec/chewy/query/nodes/range_spec.rb +0 -32
  221. data/spec/chewy/query/nodes/raw_spec.rb +0 -11
  222. data/spec/chewy/query/nodes/regexp_spec.rb +0 -43
  223. data/spec/chewy/query/nodes/script_spec.rb +0 -15
  224. data/spec/chewy/query/pagination/kaminari_spec.rb +0 -5
  225. data/spec/chewy/query/pagination/will_paginate_spec.rb +0 -5
  226. data/spec/chewy/query/pagination_spec.rb +0 -39
  227. data/spec/chewy/query_spec.rb +0 -636
  228. data/spec/chewy/search/pagination/will_paginate_examples.rb +0 -63
  229. data/spec/chewy/search/pagination/will_paginate_spec.rb +0 -23
  230. data/spec/chewy/search/parameters/indices_boost_spec.rb +0 -83
  231. data/spec/chewy/search/parameters/types_spec.rb +0 -5
  232. data/spec/chewy/strategy/resque_spec.rb +0 -46
  233. data/spec/chewy/strategy/shoryuken_spec.rb +0 -64
  234. data/spec/chewy/type/actions_spec.rb +0 -50
  235. data/spec/chewy/type/adapter/mongoid_spec.rb +0 -372
  236. data/spec/chewy/type/adapter/sequel_spec.rb +0 -472
  237. data/spec/chewy/type/import/bulk_builder_spec.rb +0 -279
  238. data/spec/chewy/type/mapping_spec.rb +0 -142
  239. data/spec/chewy/type/observe_spec.rb +0 -137
  240. data/spec/chewy/type/wrapper_spec.rb +0 -98
  241. data/spec/chewy/type_spec.rb +0 -55
  242. data/spec/support/mongoid.rb +0 -93
  243. data/spec/support/sequel.rb +0 -80
metadata CHANGED
@@ -1,17 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chewy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.1
4
+ version: 7.3.2
5
5
  platform: ruby
6
6
  authors:
7
+ - Toptal, LLC
7
8
  - pyromaniac
8
- autorequire:
9
+ autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2017-08-07 00:00:00.000000000 Z
12
+ date: 2023-04-21 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
- name: rake
15
+ name: database_cleaner
15
16
  requirement: !ruby/object:Gem::Requirement
16
17
  requirements:
17
18
  - - ">="
@@ -25,7 +26,7 @@ dependencies:
25
26
  - !ruby/object:Gem::Version
26
27
  version: '0'
27
28
  - !ruby/object:Gem::Dependency
28
- name: appraisal
29
+ name: elasticsearch-extensions
29
30
  requirement: !ruby/object:Gem::Requirement
30
31
  requirements:
31
32
  - - ">="
@@ -39,7 +40,7 @@ dependencies:
39
40
  - !ruby/object:Gem::Version
40
41
  version: '0'
41
42
  - !ruby/object:Gem::Dependency
42
- name: rspec
43
+ name: mock_redis
43
44
  requirement: !ruby/object:Gem::Requirement
44
45
  requirements:
45
46
  - - ">="
@@ -53,7 +54,7 @@ dependencies:
53
54
  - !ruby/object:Gem::Version
54
55
  version: '0'
55
56
  - !ruby/object:Gem::Dependency
56
- name: rspec-its
57
+ name: rake
57
58
  requirement: !ruby/object:Gem::Requirement
58
59
  requirements:
59
60
  - - ">="
@@ -67,21 +68,21 @@ dependencies:
67
68
  - !ruby/object:Gem::Version
68
69
  version: '0'
69
70
  - !ruby/object:Gem::Dependency
70
- name: rspec-collection_matchers
71
+ name: rspec
71
72
  requirement: !ruby/object:Gem::Requirement
72
73
  requirements:
73
74
  - - ">="
74
75
  - !ruby/object:Gem::Version
75
- version: '0'
76
+ version: 3.7.0
76
77
  type: :development
77
78
  prerelease: false
78
79
  version_requirements: !ruby/object:Gem::Requirement
79
80
  requirements:
80
81
  - - ">="
81
82
  - !ruby/object:Gem::Version
82
- version: '0'
83
+ version: 3.7.0
83
84
  - !ruby/object:Gem::Dependency
84
- name: sqlite3
85
+ name: rspec-collection_matchers
85
86
  requirement: !ruby/object:Gem::Requirement
86
87
  requirements:
87
88
  - - ">="
@@ -95,7 +96,7 @@ dependencies:
95
96
  - !ruby/object:Gem::Version
96
97
  version: '0'
97
98
  - !ruby/object:Gem::Dependency
98
- name: database_cleaner
99
+ name: rspec-its
99
100
  requirement: !ruby/object:Gem::Requirement
100
101
  requirements:
101
102
  - - ">="
@@ -109,21 +110,21 @@ dependencies:
109
110
  - !ruby/object:Gem::Version
110
111
  version: '0'
111
112
  - !ruby/object:Gem::Dependency
112
- name: elasticsearch-extensions
113
+ name: rubocop
113
114
  requirement: !ruby/object:Gem::Requirement
114
115
  requirements:
115
- - - ">="
116
+ - - '='
116
117
  - !ruby/object:Gem::Version
117
- version: '0'
118
+ version: '1.11'
118
119
  type: :development
119
120
  prerelease: false
120
121
  version_requirements: !ruby/object:Gem::Requirement
121
122
  requirements:
122
- - - ">="
123
+ - - '='
123
124
  - !ruby/object:Gem::Version
124
- version: '0'
125
+ version: '1.11'
125
126
  - !ruby/object:Gem::Dependency
126
- name: resque_spec
127
+ name: sqlite3
127
128
  requirement: !ruby/object:Gem::Requirement
128
129
  requirements:
129
130
  - - ">="
@@ -150,20 +151,6 @@ dependencies:
150
151
  - - ">="
151
152
  - !ruby/object:Gem::Version
152
153
  version: '0'
153
- - !ruby/object:Gem::Dependency
154
- name: rubocop
155
- requirement: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - '='
158
- - !ruby/object:Gem::Version
159
- version: 0.48.1
160
- type: :development
161
- prerelease: false
162
- version_requirements: !ruby/object:Gem::Requirement
163
- requirements:
164
- - - '='
165
- - !ruby/object:Gem::Version
166
- version: 0.48.1
167
154
  - !ruby/object:Gem::Dependency
168
155
  name: method_source
169
156
  requirement: !ruby/object:Gem::Requirement
@@ -198,28 +185,34 @@ dependencies:
198
185
  requirements:
199
186
  - - ">="
200
187
  - !ruby/object:Gem::Version
201
- version: '4.0'
188
+ version: '5.2'
202
189
  type: :runtime
203
190
  prerelease: false
204
191
  version_requirements: !ruby/object:Gem::Requirement
205
192
  requirements:
206
193
  - - ">="
207
194
  - !ruby/object:Gem::Version
208
- version: '4.0'
195
+ version: '5.2'
209
196
  - !ruby/object:Gem::Dependency
210
197
  name: elasticsearch
211
198
  requirement: !ruby/object:Gem::Requirement
212
199
  requirements:
213
200
  - - ">="
214
201
  - !ruby/object:Gem::Version
215
- version: 2.0.0
202
+ version: 7.12.0
203
+ - - "<"
204
+ - !ruby/object:Gem::Version
205
+ version: 7.14.0
216
206
  type: :runtime
217
207
  prerelease: false
218
208
  version_requirements: !ruby/object:Gem::Requirement
219
209
  requirements:
220
210
  - - ">="
221
211
  - !ruby/object:Gem::Version
222
- version: 2.0.0
212
+ version: 7.12.0
213
+ - - "<"
214
+ - !ruby/object:Gem::Version
215
+ version: 7.14.0
223
216
  - !ruby/object:Gem::Dependency
224
217
  name: elasticsearch-dsl
225
218
  requirement: !ruby/object:Gem::Requirement
@@ -237,92 +230,85 @@ dependencies:
237
230
  description: Chewy provides functionality for Elasticsearch index handling, documents
238
231
  import mappings and chainable query DSL
239
232
  email:
233
+ - open-source@toptal.com
240
234
  - kinwizard@gmail.com
241
235
  executables: []
242
236
  extensions: []
243
237
  extra_rdoc_files: []
244
238
  files:
239
+ - ".github/CODEOWNERS"
240
+ - ".github/ISSUE_TEMPLATE/bug_report.md"
241
+ - ".github/ISSUE_TEMPLATE/feature_request.md"
242
+ - ".github/PULL_REQUEST_TEMPLATE.md"
243
+ - ".github/workflows/ruby.yml"
245
244
  - ".gitignore"
246
245
  - ".rspec"
247
246
  - ".rubocop.yml"
248
247
  - ".rubocop_todo.yml"
249
- - ".travis.yml"
250
248
  - ".yardopts"
251
- - Appraisals
252
249
  - CHANGELOG.md
250
+ - CODE_OF_CONDUCT.md
251
+ - CONTRIBUTING.md
253
252
  - Gemfile
254
253
  - Guardfile
255
- - LEGACY_DSL.md
256
254
  - LICENSE.txt
257
255
  - README.md
258
256
  - Rakefile
259
257
  - chewy.gemspec
260
258
  - filters
261
- - gemfiles/rails.4.0.activerecord.gemfile
262
- - gemfiles/rails.4.1.activerecord.gemfile
263
- - gemfiles/rails.4.2.activerecord.gemfile
264
- - gemfiles/rails.4.2.mongoid.5.1.gemfile
265
- - gemfiles/rails.5.0.activerecord.gemfile
266
- - gemfiles/rails.5.0.mongoid.6.0.gemfile
267
- - gemfiles/rails.5.1.activerecord.gemfile
268
- - gemfiles/rails.5.1.mongoid.6.1.gemfile
269
- - gemfiles/sequel.4.45.gemfile
259
+ - gemfiles/rails.5.2.activerecord.gemfile
260
+ - gemfiles/rails.6.0.activerecord.gemfile
261
+ - gemfiles/rails.6.1.activerecord.gemfile
262
+ - gemfiles/rails.7.0.activerecord.gemfile
270
263
  - lib/chewy.rb
271
- - lib/chewy/backports/deep_dup.rb
272
- - lib/chewy/backports/duplicable.rb
273
264
  - lib/chewy/config.rb
274
265
  - lib/chewy/errors.rb
275
266
  - lib/chewy/fields/base.rb
276
267
  - lib/chewy/fields/root.rb
277
268
  - lib/chewy/index.rb
278
269
  - lib/chewy/index/actions.rb
270
+ - lib/chewy/index/adapter/active_record.rb
271
+ - lib/chewy/index/adapter/base.rb
272
+ - lib/chewy/index/adapter/object.rb
273
+ - lib/chewy/index/adapter/orm.rb
279
274
  - lib/chewy/index/aliases.rb
275
+ - lib/chewy/index/crutch.rb
276
+ - lib/chewy/index/import.rb
277
+ - lib/chewy/index/import/bulk_builder.rb
278
+ - lib/chewy/index/import/bulk_request.rb
279
+ - lib/chewy/index/import/journal_builder.rb
280
+ - lib/chewy/index/import/routine.rb
281
+ - lib/chewy/index/mapping.rb
282
+ - lib/chewy/index/observe.rb
283
+ - lib/chewy/index/observe/active_record_methods.rb
284
+ - lib/chewy/index/observe/callback.rb
280
285
  - lib/chewy/index/settings.rb
281
286
  - lib/chewy/index/specification.rb
287
+ - lib/chewy/index/syncer.rb
288
+ - lib/chewy/index/witchcraft.rb
289
+ - lib/chewy/index/wrapper.rb
282
290
  - lib/chewy/journal.rb
283
291
  - lib/chewy/log_subscriber.rb
284
292
  - lib/chewy/minitest.rb
285
293
  - lib/chewy/minitest/helpers.rb
286
294
  - lib/chewy/minitest/search_index_receiver.rb
287
- - lib/chewy/query.rb
288
- - lib/chewy/query/compose.rb
289
- - lib/chewy/query/criteria.rb
290
- - lib/chewy/query/filters.rb
291
- - lib/chewy/query/loading.rb
292
- - lib/chewy/query/nodes/and.rb
293
- - lib/chewy/query/nodes/base.rb
294
- - lib/chewy/query/nodes/bool.rb
295
- - lib/chewy/query/nodes/equal.rb
296
- - lib/chewy/query/nodes/exists.rb
297
- - lib/chewy/query/nodes/expr.rb
298
- - lib/chewy/query/nodes/field.rb
299
- - lib/chewy/query/nodes/has_child.rb
300
- - lib/chewy/query/nodes/has_parent.rb
301
- - lib/chewy/query/nodes/has_relation.rb
302
- - lib/chewy/query/nodes/match_all.rb
303
- - lib/chewy/query/nodes/missing.rb
304
- - lib/chewy/query/nodes/not.rb
305
- - lib/chewy/query/nodes/or.rb
306
- - lib/chewy/query/nodes/prefix.rb
307
- - lib/chewy/query/nodes/query.rb
308
- - lib/chewy/query/nodes/range.rb
309
- - lib/chewy/query/nodes/raw.rb
310
- - lib/chewy/query/nodes/regexp.rb
311
- - lib/chewy/query/nodes/script.rb
312
- - lib/chewy/query/pagination.rb
295
+ - lib/chewy/multi_search.rb
313
296
  - lib/chewy/railtie.rb
314
297
  - lib/chewy/rake_helper.rb
315
298
  - lib/chewy/repository.rb
316
299
  - lib/chewy/rspec.rb
300
+ - lib/chewy/rspec/build_query.rb
301
+ - lib/chewy/rspec/helpers.rb
317
302
  - lib/chewy/rspec/update_index.rb
318
303
  - lib/chewy/runtime.rb
319
304
  - lib/chewy/runtime/version.rb
320
305
  - lib/chewy/search.rb
321
306
  - lib/chewy/search/loader.rb
322
307
  - lib/chewy/search/pagination/kaminari.rb
323
- - lib/chewy/search/pagination/will_paginate.rb
324
308
  - lib/chewy/search/parameters.rb
325
309
  - lib/chewy/search/parameters/aggs.rb
310
+ - lib/chewy/search/parameters/allow_partial_search_results.rb
311
+ - lib/chewy/search/parameters/collapse.rb
326
312
  - lib/chewy/search/parameters/concerns/bool_storage.rb
327
313
  - lib/chewy/search/parameters/concerns/hash_storage.rb
328
314
  - lib/chewy/search/parameters/concerns/integer_storage.rb
@@ -333,6 +319,8 @@ files:
333
319
  - lib/chewy/search/parameters/explain.rb
334
320
  - lib/chewy/search/parameters/filter.rb
335
321
  - lib/chewy/search/parameters/highlight.rb
322
+ - lib/chewy/search/parameters/ignore_unavailable.rb
323
+ - lib/chewy/search/parameters/indices.rb
336
324
  - lib/chewy/search/parameters/indices_boost.rb
337
325
  - lib/chewy/search/parameters/limit.rb
338
326
  - lib/chewy/search/parameters/load.rb
@@ -356,7 +344,7 @@ files:
356
344
  - lib/chewy/search/parameters/terminate_after.rb
357
345
  - lib/chewy/search/parameters/timeout.rb
358
346
  - lib/chewy/search/parameters/track_scores.rb
359
- - lib/chewy/search/parameters/types.rb
347
+ - lib/chewy/search/parameters/track_total_hits.rb
360
348
  - lib/chewy/search/parameters/version.rb
361
349
  - lib/chewy/search/query_proxy.rb
362
350
  - lib/chewy/search/request.rb
@@ -367,89 +355,67 @@ files:
367
355
  - lib/chewy/strategy.rb
368
356
  - lib/chewy/strategy/active_job.rb
369
357
  - lib/chewy/strategy/atomic.rb
358
+ - lib/chewy/strategy/atomic_no_refresh.rb
370
359
  - lib/chewy/strategy/base.rb
371
360
  - lib/chewy/strategy/bypass.rb
372
- - lib/chewy/strategy/resque.rb
373
- - lib/chewy/strategy/shoryuken.rb
361
+ - lib/chewy/strategy/delayed_sidekiq.rb
362
+ - lib/chewy/strategy/delayed_sidekiq/scheduler.rb
363
+ - lib/chewy/strategy/delayed_sidekiq/worker.rb
364
+ - lib/chewy/strategy/lazy_sidekiq.rb
374
365
  - lib/chewy/strategy/sidekiq.rb
375
366
  - lib/chewy/strategy/urgent.rb
376
- - lib/chewy/type.rb
377
- - lib/chewy/type/actions.rb
378
- - lib/chewy/type/adapter/active_record.rb
379
- - lib/chewy/type/adapter/base.rb
380
- - lib/chewy/type/adapter/mongoid.rb
381
- - lib/chewy/type/adapter/object.rb
382
- - lib/chewy/type/adapter/orm.rb
383
- - lib/chewy/type/adapter/sequel.rb
384
- - lib/chewy/type/crutch.rb
385
- - lib/chewy/type/import.rb
386
- - lib/chewy/type/import/bulk_builder.rb
387
- - lib/chewy/type/import/bulk_request.rb
388
- - lib/chewy/type/import/journal_builder.rb
389
- - lib/chewy/type/import/routine.rb
390
- - lib/chewy/type/mapping.rb
391
- - lib/chewy/type/observe.rb
392
- - lib/chewy/type/syncer.rb
393
- - lib/chewy/type/witchcraft.rb
394
- - lib/chewy/type/wrapper.rb
395
367
  - lib/chewy/version.rb
396
368
  - lib/generators/chewy/install_generator.rb
397
369
  - lib/generators/templates/chewy.yml
398
- - lib/sequel/plugins/chewy_observe.rb
399
370
  - lib/tasks/chewy.rake
371
+ - migration_guide.md
400
372
  - spec/chewy/config_spec.rb
401
373
  - spec/chewy/fields/base_spec.rb
402
374
  - spec/chewy/fields/root_spec.rb
403
375
  - spec/chewy/fields/time_fields_spec.rb
404
376
  - spec/chewy/index/actions_spec.rb
377
+ - spec/chewy/index/adapter/active_record_spec.rb
378
+ - spec/chewy/index/adapter/object_spec.rb
405
379
  - spec/chewy/index/aliases_spec.rb
380
+ - spec/chewy/index/import/bulk_builder_spec.rb
381
+ - spec/chewy/index/import/bulk_request_spec.rb
382
+ - spec/chewy/index/import/journal_builder_spec.rb
383
+ - spec/chewy/index/import/routine_spec.rb
384
+ - spec/chewy/index/import_spec.rb
385
+ - spec/chewy/index/mapping_spec.rb
386
+ - spec/chewy/index/observe/active_record_methods_spec.rb
387
+ - spec/chewy/index/observe/callback_spec.rb
388
+ - spec/chewy/index/observe_spec.rb
406
389
  - spec/chewy/index/settings_spec.rb
407
390
  - spec/chewy/index/specification_spec.rb
391
+ - spec/chewy/index/syncer_spec.rb
392
+ - spec/chewy/index/witchcraft_spec.rb
393
+ - spec/chewy/index/wrapper_spec.rb
408
394
  - spec/chewy/index_spec.rb
409
395
  - spec/chewy/journal_spec.rb
410
396
  - spec/chewy/minitest/helpers_spec.rb
411
397
  - spec/chewy/minitest/search_index_receiver_spec.rb
412
- - spec/chewy/query/criteria_spec.rb
413
- - spec/chewy/query/filters_spec.rb
414
- - spec/chewy/query/loading_spec.rb
415
- - spec/chewy/query/nodes/and_spec.rb
416
- - spec/chewy/query/nodes/bool_spec.rb
417
- - spec/chewy/query/nodes/equal_spec.rb
418
- - spec/chewy/query/nodes/exists_spec.rb
419
- - spec/chewy/query/nodes/has_child_spec.rb
420
- - spec/chewy/query/nodes/has_parent_spec.rb
421
- - spec/chewy/query/nodes/match_all_spec.rb
422
- - spec/chewy/query/nodes/missing_spec.rb
423
- - spec/chewy/query/nodes/not_spec.rb
424
- - spec/chewy/query/nodes/or_spec.rb
425
- - spec/chewy/query/nodes/prefix_spec.rb
426
- - spec/chewy/query/nodes/query_spec.rb
427
- - spec/chewy/query/nodes/range_spec.rb
428
- - spec/chewy/query/nodes/raw_spec.rb
429
- - spec/chewy/query/nodes/regexp_spec.rb
430
- - spec/chewy/query/nodes/script_spec.rb
431
- - spec/chewy/query/pagination/kaminari_spec.rb
432
- - spec/chewy/query/pagination/will_paginate_spec.rb
433
- - spec/chewy/query/pagination_spec.rb
434
- - spec/chewy/query_spec.rb
398
+ - spec/chewy/multi_search_spec.rb
435
399
  - spec/chewy/rake_helper_spec.rb
436
400
  - spec/chewy/repository_spec.rb
401
+ - spec/chewy/rspec/build_query_spec.rb
402
+ - spec/chewy/rspec/helpers_spec.rb
437
403
  - spec/chewy/rspec/update_index_spec.rb
438
404
  - spec/chewy/runtime/version_spec.rb
439
405
  - spec/chewy/runtime_spec.rb
440
406
  - spec/chewy/search/loader_spec.rb
441
407
  - spec/chewy/search/pagination/kaminari_examples.rb
442
408
  - spec/chewy/search/pagination/kaminari_spec.rb
443
- - spec/chewy/search/pagination/will_paginate_examples.rb
444
- - spec/chewy/search/pagination/will_paginate_spec.rb
445
409
  - spec/chewy/search/parameters/aggs_spec.rb
446
410
  - spec/chewy/search/parameters/bool_storage_examples.rb
411
+ - spec/chewy/search/parameters/collapse_spec.rb
447
412
  - spec/chewy/search/parameters/docvalue_fields_spec.rb
448
413
  - spec/chewy/search/parameters/explain_spec.rb
449
414
  - spec/chewy/search/parameters/filter_spec.rb
450
415
  - spec/chewy/search/parameters/hash_storage_examples.rb
451
416
  - spec/chewy/search/parameters/highlight_spec.rb
452
- - spec/chewy/search/parameters/indices_boost_spec.rb
417
+ - spec/chewy/search/parameters/ignore_unavailable_spec.rb
418
+ - spec/chewy/search/parameters/indices_spec.rb
453
419
  - spec/chewy/search/parameters/integer_storage_examples.rb
454
420
  - spec/chewy/search/parameters/limit_spec.rb
455
421
  - spec/chewy/search/parameters/load_spec.rb
@@ -476,7 +442,7 @@ files:
476
442
  - spec/chewy/search/parameters/terminate_after_spec.rb
477
443
  - spec/chewy/search/parameters/timeout_spec.rb
478
444
  - spec/chewy/search/parameters/track_scores_spec.rb
479
- - spec/chewy/search/parameters/types_spec.rb
445
+ - spec/chewy/search/parameters/track_total_hits_spec.rb
480
446
  - spec/chewy/search/parameters/version_spec.rb
481
447
  - spec/chewy/search/parameters_spec.rb
482
448
  - spec/chewy/search/query_proxy_spec.rb
@@ -486,39 +452,22 @@ files:
486
452
  - spec/chewy/search_spec.rb
487
453
  - spec/chewy/stash_spec.rb
488
454
  - spec/chewy/strategy/active_job_spec.rb
455
+ - spec/chewy/strategy/atomic_no_refresh_spec.rb
489
456
  - spec/chewy/strategy/atomic_spec.rb
490
- - spec/chewy/strategy/resque_spec.rb
491
- - spec/chewy/strategy/shoryuken_spec.rb
457
+ - spec/chewy/strategy/delayed_sidekiq_spec.rb
458
+ - spec/chewy/strategy/lazy_sidekiq_spec.rb
492
459
  - spec/chewy/strategy/sidekiq_spec.rb
493
460
  - spec/chewy/strategy_spec.rb
494
- - spec/chewy/type/actions_spec.rb
495
- - spec/chewy/type/adapter/active_record_spec.rb
496
- - spec/chewy/type/adapter/mongoid_spec.rb
497
- - spec/chewy/type/adapter/object_spec.rb
498
- - spec/chewy/type/adapter/sequel_spec.rb
499
- - spec/chewy/type/import/bulk_builder_spec.rb
500
- - spec/chewy/type/import/bulk_request_spec.rb
501
- - spec/chewy/type/import/journal_builder_spec.rb
502
- - spec/chewy/type/import/routine_spec.rb
503
- - spec/chewy/type/import_spec.rb
504
- - spec/chewy/type/mapping_spec.rb
505
- - spec/chewy/type/observe_spec.rb
506
- - spec/chewy/type/syncer_spec.rb
507
- - spec/chewy/type/witchcraft_spec.rb
508
- - spec/chewy/type/wrapper_spec.rb
509
- - spec/chewy/type_spec.rb
510
461
  - spec/chewy_spec.rb
511
462
  - spec/spec_helper.rb
512
463
  - spec/support/active_record.rb
513
464
  - spec/support/class_helpers.rb
514
465
  - spec/support/fail_helpers.rb
515
- - spec/support/mongoid.rb
516
- - spec/support/sequel.rb
517
466
  homepage: https://github.com/toptal/chewy
518
467
  licenses:
519
468
  - MIT
520
469
  metadata: {}
521
- post_install_message:
470
+ post_install_message:
522
471
  rdoc_options: []
523
472
  require_paths:
524
473
  - lib
@@ -533,9 +482,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
533
482
  - !ruby/object:Gem::Version
534
483
  version: '0'
535
484
  requirements: []
536
- rubyforge_project:
537
- rubygems_version: 2.6.12
538
- signing_key:
485
+ rubygems_version: 3.3.26
486
+ signing_key:
539
487
  specification_version: 4
540
488
  summary: Elasticsearch ODM client wrapper
541
489
  test_files:
@@ -544,54 +492,48 @@ test_files:
544
492
  - spec/chewy/fields/root_spec.rb
545
493
  - spec/chewy/fields/time_fields_spec.rb
546
494
  - spec/chewy/index/actions_spec.rb
495
+ - spec/chewy/index/adapter/active_record_spec.rb
496
+ - spec/chewy/index/adapter/object_spec.rb
547
497
  - spec/chewy/index/aliases_spec.rb
498
+ - spec/chewy/index/import/bulk_builder_spec.rb
499
+ - spec/chewy/index/import/bulk_request_spec.rb
500
+ - spec/chewy/index/import/journal_builder_spec.rb
501
+ - spec/chewy/index/import/routine_spec.rb
502
+ - spec/chewy/index/import_spec.rb
503
+ - spec/chewy/index/mapping_spec.rb
504
+ - spec/chewy/index/observe/active_record_methods_spec.rb
505
+ - spec/chewy/index/observe/callback_spec.rb
506
+ - spec/chewy/index/observe_spec.rb
548
507
  - spec/chewy/index/settings_spec.rb
549
508
  - spec/chewy/index/specification_spec.rb
509
+ - spec/chewy/index/syncer_spec.rb
510
+ - spec/chewy/index/witchcraft_spec.rb
511
+ - spec/chewy/index/wrapper_spec.rb
550
512
  - spec/chewy/index_spec.rb
551
513
  - spec/chewy/journal_spec.rb
552
514
  - spec/chewy/minitest/helpers_spec.rb
553
515
  - spec/chewy/minitest/search_index_receiver_spec.rb
554
- - spec/chewy/query/criteria_spec.rb
555
- - spec/chewy/query/filters_spec.rb
556
- - spec/chewy/query/loading_spec.rb
557
- - spec/chewy/query/nodes/and_spec.rb
558
- - spec/chewy/query/nodes/bool_spec.rb
559
- - spec/chewy/query/nodes/equal_spec.rb
560
- - spec/chewy/query/nodes/exists_spec.rb
561
- - spec/chewy/query/nodes/has_child_spec.rb
562
- - spec/chewy/query/nodes/has_parent_spec.rb
563
- - spec/chewy/query/nodes/match_all_spec.rb
564
- - spec/chewy/query/nodes/missing_spec.rb
565
- - spec/chewy/query/nodes/not_spec.rb
566
- - spec/chewy/query/nodes/or_spec.rb
567
- - spec/chewy/query/nodes/prefix_spec.rb
568
- - spec/chewy/query/nodes/query_spec.rb
569
- - spec/chewy/query/nodes/range_spec.rb
570
- - spec/chewy/query/nodes/raw_spec.rb
571
- - spec/chewy/query/nodes/regexp_spec.rb
572
- - spec/chewy/query/nodes/script_spec.rb
573
- - spec/chewy/query/pagination/kaminari_spec.rb
574
- - spec/chewy/query/pagination/will_paginate_spec.rb
575
- - spec/chewy/query/pagination_spec.rb
576
- - spec/chewy/query_spec.rb
516
+ - spec/chewy/multi_search_spec.rb
577
517
  - spec/chewy/rake_helper_spec.rb
578
518
  - spec/chewy/repository_spec.rb
519
+ - spec/chewy/rspec/build_query_spec.rb
520
+ - spec/chewy/rspec/helpers_spec.rb
579
521
  - spec/chewy/rspec/update_index_spec.rb
580
522
  - spec/chewy/runtime/version_spec.rb
581
523
  - spec/chewy/runtime_spec.rb
582
524
  - spec/chewy/search/loader_spec.rb
583
525
  - spec/chewy/search/pagination/kaminari_examples.rb
584
526
  - spec/chewy/search/pagination/kaminari_spec.rb
585
- - spec/chewy/search/pagination/will_paginate_examples.rb
586
- - spec/chewy/search/pagination/will_paginate_spec.rb
587
527
  - spec/chewy/search/parameters/aggs_spec.rb
588
528
  - spec/chewy/search/parameters/bool_storage_examples.rb
529
+ - spec/chewy/search/parameters/collapse_spec.rb
589
530
  - spec/chewy/search/parameters/docvalue_fields_spec.rb
590
531
  - spec/chewy/search/parameters/explain_spec.rb
591
532
  - spec/chewy/search/parameters/filter_spec.rb
592
533
  - spec/chewy/search/parameters/hash_storage_examples.rb
593
534
  - spec/chewy/search/parameters/highlight_spec.rb
594
- - spec/chewy/search/parameters/indices_boost_spec.rb
535
+ - spec/chewy/search/parameters/ignore_unavailable_spec.rb
536
+ - spec/chewy/search/parameters/indices_spec.rb
595
537
  - spec/chewy/search/parameters/integer_storage_examples.rb
596
538
  - spec/chewy/search/parameters/limit_spec.rb
597
539
  - spec/chewy/search/parameters/load_spec.rb
@@ -618,7 +560,7 @@ test_files:
618
560
  - spec/chewy/search/parameters/terminate_after_spec.rb
619
561
  - spec/chewy/search/parameters/timeout_spec.rb
620
562
  - spec/chewy/search/parameters/track_scores_spec.rb
621
- - spec/chewy/search/parameters/types_spec.rb
563
+ - spec/chewy/search/parameters/track_total_hits_spec.rb
622
564
  - spec/chewy/search/parameters/version_spec.rb
623
565
  - spec/chewy/search/parameters_spec.rb
624
566
  - spec/chewy/search/query_proxy_spec.rb
@@ -628,31 +570,14 @@ test_files:
628
570
  - spec/chewy/search_spec.rb
629
571
  - spec/chewy/stash_spec.rb
630
572
  - spec/chewy/strategy/active_job_spec.rb
573
+ - spec/chewy/strategy/atomic_no_refresh_spec.rb
631
574
  - spec/chewy/strategy/atomic_spec.rb
632
- - spec/chewy/strategy/resque_spec.rb
633
- - spec/chewy/strategy/shoryuken_spec.rb
575
+ - spec/chewy/strategy/delayed_sidekiq_spec.rb
576
+ - spec/chewy/strategy/lazy_sidekiq_spec.rb
634
577
  - spec/chewy/strategy/sidekiq_spec.rb
635
578
  - spec/chewy/strategy_spec.rb
636
- - spec/chewy/type/actions_spec.rb
637
- - spec/chewy/type/adapter/active_record_spec.rb
638
- - spec/chewy/type/adapter/mongoid_spec.rb
639
- - spec/chewy/type/adapter/object_spec.rb
640
- - spec/chewy/type/adapter/sequel_spec.rb
641
- - spec/chewy/type/import/bulk_builder_spec.rb
642
- - spec/chewy/type/import/bulk_request_spec.rb
643
- - spec/chewy/type/import/journal_builder_spec.rb
644
- - spec/chewy/type/import/routine_spec.rb
645
- - spec/chewy/type/import_spec.rb
646
- - spec/chewy/type/mapping_spec.rb
647
- - spec/chewy/type/observe_spec.rb
648
- - spec/chewy/type/syncer_spec.rb
649
- - spec/chewy/type/witchcraft_spec.rb
650
- - spec/chewy/type/wrapper_spec.rb
651
- - spec/chewy/type_spec.rb
652
579
  - spec/chewy_spec.rb
653
580
  - spec/spec_helper.rb
654
581
  - spec/support/active_record.rb
655
582
  - spec/support/class_helpers.rb
656
583
  - spec/support/fail_helpers.rb
657
- - spec/support/mongoid.rb
658
- - spec/support/sequel.rb
data/.travis.yml DELETED
@@ -1,53 +0,0 @@
1
- language: ruby
2
- sudo: false
3
- services:
4
- - mongodb
5
- jdk:
6
- - oraclejdk8
7
- rvm:
8
- - 2.2.7
9
- - 2.3.4
10
- - 2.4.1
11
- env:
12
- global:
13
- - TEST_CLUSTER_NODES=1
14
- matrix:
15
- - ES_VERSION=2.4.4
16
- - ES_VERSION=5.4.0
17
- gemfile:
18
- - gemfiles/rails.4.0.activerecord.gemfile
19
- - gemfiles/rails.4.1.activerecord.gemfile
20
- - gemfiles/rails.4.2.activerecord.gemfile
21
- - gemfiles/rails.5.0.activerecord.gemfile
22
- - gemfiles/rails.5.1.activerecord.gemfile
23
- - gemfiles/rails.4.2.mongoid.5.1.gemfile
24
- - gemfiles/rails.5.0.mongoid.6.0.gemfile
25
- - gemfiles/rails.5.1.mongoid.6.1.gemfile
26
- - gemfiles/sequel.4.45.gemfile
27
- matrix:
28
- exclude:
29
- - rvm: 2.2.7
30
- env: ES_VERSION=5.4.0
31
- - rvm: 2.3.4
32
- env: ES_VERSION=2.4.4
33
- - gemfile: gemfiles/rails.4.0.activerecord.gemfile
34
- env: ES_VERSION=5.4.0
35
- - gemfile: gemfiles/rails.4.1.activerecord.gemfile
36
- env: ES_VERSION=5.4.0
37
- - gemfile: gemfiles/rails.4.2.mongoid.5.1.gemfile
38
- env: ES_VERSION=5.4.0
39
- - gemfile: gemfiles/rails.5.1.mongoid.6.0.gemfile
40
- env: ES_VERSION=5.4.0
41
- - rvm: 2.4.1
42
- gemfile: gemfiles/rails.4.0.activerecord.gemfile
43
- - rvm: 2.4.1
44
- gemfile: gemfiles/rails.4.1.activerecord.gemfile
45
- before_install:
46
- - curl -s https://download.elasticsearch.org/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/2.4.4/elasticsearch-2.4.4.tar.gz | tar xz -C /tmp
47
- - curl -s https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.4.0.tar.gz | tar xz -C /tmp
48
- before_script:
49
- - /tmp/elasticsearch-2.4.4/bin/plugin install delete-by-query
50
- - TEST_CLUSTER_COMMAND=/tmp/elasticsearch-$ES_VERSION/bin/elasticsearch TEST_CLUSTER_LOGS=/tmp/log rake es:start
51
- script:
52
- - bundle exec rspec
53
- - bundle exec rubocop