chewy 7.3.6 → 7.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ruby.yml +2 -28
  3. data/.rubocop.yml +1 -1
  4. data/CHANGELOG.md +18 -1
  5. data/Gemfile +4 -4
  6. data/README.md +24 -1
  7. data/chewy.gemspec +3 -17
  8. data/gemfiles/base.gemfile +12 -0
  9. data/gemfiles/rails.6.1.activerecord.gemfile +2 -1
  10. data/gemfiles/rails.7.0.activerecord.gemfile +2 -1
  11. data/gemfiles/rails.7.1.activerecord.gemfile +2 -1
  12. data/lib/chewy/config.rb +15 -11
  13. data/lib/chewy/elastic_client.rb +31 -0
  14. data/lib/chewy/fields/root.rb +1 -1
  15. data/lib/chewy/index/adapter/active_record.rb +1 -1
  16. data/lib/chewy/index/adapter/object.rb +3 -3
  17. data/lib/chewy/index/adapter/orm.rb +2 -2
  18. data/lib/chewy/index/import/bulk_builder.rb +2 -2
  19. data/lib/chewy/index/import.rb +2 -2
  20. data/lib/chewy/index/observe/active_record_methods.rb +1 -1
  21. data/lib/chewy/index/syncer.rb +1 -1
  22. data/lib/chewy/minitest/search_index_receiver.rb +3 -1
  23. data/lib/chewy/rake_helper.rb +3 -3
  24. data/lib/chewy/rspec/update_index.rb +3 -3
  25. data/lib/chewy/runtime/version.rb +1 -1
  26. data/lib/chewy/search/parameters/indices.rb +1 -1
  27. data/lib/chewy/search/parameters/storage.rb +1 -1
  28. data/lib/chewy/search/parameters.rb +3 -3
  29. data/lib/chewy/search.rb +6 -4
  30. data/lib/chewy/strategy/delayed_sidekiq/scheduler.rb +3 -0
  31. data/lib/chewy/strategy/delayed_sidekiq.rb +13 -0
  32. data/lib/chewy/version.rb +1 -1
  33. data/lib/chewy.rb +3 -7
  34. data/spec/chewy/elastic_client_spec.rb +26 -0
  35. data/spec/chewy/index/actions_spec.rb +4 -4
  36. data/spec/chewy/index/import/bulk_builder_spec.rb +3 -3
  37. data/spec/chewy/index/import_spec.rb +3 -3
  38. data/spec/chewy/minitest/helpers_spec.rb +1 -1
  39. data/spec/chewy/minitest/search_index_receiver_spec.rb +6 -4
  40. data/spec/chewy/rake_helper_spec.rb +4 -4
  41. data/spec/chewy/rspec/helpers_spec.rb +1 -1
  42. data/spec/chewy/search/pagination/kaminari_examples.rb +1 -1
  43. data/spec/chewy/search/pagination/kaminari_spec.rb +1 -1
  44. data/spec/chewy/strategy/active_job_spec.rb +8 -8
  45. data/spec/chewy/strategy/delayed_sidekiq_spec.rb +12 -0
  46. data/spec/chewy/strategy/lazy_sidekiq_spec.rb +10 -10
  47. data/spec/chewy/strategy/sidekiq_spec.rb +4 -4
  48. data/spec/chewy_spec.rb +7 -4
  49. data/spec/spec_helper.rb +1 -1
  50. metadata +8 -269
  51. data/gemfiles/rails.5.2.activerecord.gemfile +0 -11
  52. data/gemfiles/rails.6.0.activerecord.gemfile +0 -11
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chewy
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.3.6
4
+ version: 7.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Toptal, LLC
@@ -9,176 +9,8 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-12-13 00:00:00.000000000 Z
12
+ date: 2024-01-15 00:00:00.000000000 Z
13
13
  dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: database_cleaner
16
- requirement: !ruby/object:Gem::Requirement
17
- requirements:
18
- - - ">="
19
- - !ruby/object:Gem::Version
20
- version: '0'
21
- type: :development
22
- prerelease: false
23
- version_requirements: !ruby/object:Gem::Requirement
24
- requirements:
25
- - - ">="
26
- - !ruby/object:Gem::Version
27
- version: '0'
28
- - !ruby/object:Gem::Dependency
29
- name: elasticsearch-extensions
30
- requirement: !ruby/object:Gem::Requirement
31
- requirements:
32
- - - ">="
33
- - !ruby/object:Gem::Version
34
- version: '0'
35
- type: :development
36
- prerelease: false
37
- version_requirements: !ruby/object:Gem::Requirement
38
- requirements:
39
- - - ">="
40
- - !ruby/object:Gem::Version
41
- version: '0'
42
- - !ruby/object:Gem::Dependency
43
- name: mock_redis
44
- requirement: !ruby/object:Gem::Requirement
45
- requirements:
46
- - - ">="
47
- - !ruby/object:Gem::Version
48
- version: '0'
49
- type: :development
50
- prerelease: false
51
- version_requirements: !ruby/object:Gem::Requirement
52
- requirements:
53
- - - ">="
54
- - !ruby/object:Gem::Version
55
- version: '0'
56
- - !ruby/object:Gem::Dependency
57
- name: rake
58
- requirement: !ruby/object:Gem::Requirement
59
- requirements:
60
- - - ">="
61
- - !ruby/object:Gem::Version
62
- version: '0'
63
- type: :development
64
- prerelease: false
65
- version_requirements: !ruby/object:Gem::Requirement
66
- requirements:
67
- - - ">="
68
- - !ruby/object:Gem::Version
69
- version: '0'
70
- - !ruby/object:Gem::Dependency
71
- name: rspec
72
- requirement: !ruby/object:Gem::Requirement
73
- requirements:
74
- - - ">="
75
- - !ruby/object:Gem::Version
76
- version: 3.7.0
77
- type: :development
78
- prerelease: false
79
- version_requirements: !ruby/object:Gem::Requirement
80
- requirements:
81
- - - ">="
82
- - !ruby/object:Gem::Version
83
- version: 3.7.0
84
- - !ruby/object:Gem::Dependency
85
- name: rspec-collection_matchers
86
- requirement: !ruby/object:Gem::Requirement
87
- requirements:
88
- - - ">="
89
- - !ruby/object:Gem::Version
90
- version: '0'
91
- type: :development
92
- prerelease: false
93
- version_requirements: !ruby/object:Gem::Requirement
94
- requirements:
95
- - - ">="
96
- - !ruby/object:Gem::Version
97
- version: '0'
98
- - !ruby/object:Gem::Dependency
99
- name: rspec-its
100
- requirement: !ruby/object:Gem::Requirement
101
- requirements:
102
- - - ">="
103
- - !ruby/object:Gem::Version
104
- version: '0'
105
- type: :development
106
- prerelease: false
107
- version_requirements: !ruby/object:Gem::Requirement
108
- requirements:
109
- - - ">="
110
- - !ruby/object:Gem::Version
111
- version: '0'
112
- - !ruby/object:Gem::Dependency
113
- name: rubocop
114
- requirement: !ruby/object:Gem::Requirement
115
- requirements:
116
- - - '='
117
- - !ruby/object:Gem::Version
118
- version: '1.11'
119
- type: :development
120
- prerelease: false
121
- version_requirements: !ruby/object:Gem::Requirement
122
- requirements:
123
- - - '='
124
- - !ruby/object:Gem::Version
125
- version: '1.11'
126
- - !ruby/object:Gem::Dependency
127
- name: sqlite3
128
- requirement: !ruby/object:Gem::Requirement
129
- requirements:
130
- - - ">="
131
- - !ruby/object:Gem::Version
132
- version: '0'
133
- type: :development
134
- prerelease: false
135
- version_requirements: !ruby/object:Gem::Requirement
136
- requirements:
137
- - - ">="
138
- - !ruby/object:Gem::Version
139
- version: '0'
140
- - !ruby/object:Gem::Dependency
141
- name: timecop
142
- requirement: !ruby/object:Gem::Requirement
143
- requirements:
144
- - - ">="
145
- - !ruby/object:Gem::Version
146
- version: '0'
147
- type: :development
148
- prerelease: false
149
- version_requirements: !ruby/object:Gem::Requirement
150
- requirements:
151
- - - ">="
152
- - !ruby/object:Gem::Version
153
- version: '0'
154
- - !ruby/object:Gem::Dependency
155
- name: method_source
156
- requirement: !ruby/object:Gem::Requirement
157
- requirements:
158
- - - ">="
159
- - !ruby/object:Gem::Version
160
- version: '0'
161
- type: :development
162
- prerelease: false
163
- version_requirements: !ruby/object:Gem::Requirement
164
- requirements:
165
- - - ">="
166
- - !ruby/object:Gem::Version
167
- version: '0'
168
- - !ruby/object:Gem::Dependency
169
- name: unparser
170
- requirement: !ruby/object:Gem::Requirement
171
- requirements:
172
- - - ">="
173
- - !ruby/object:Gem::Version
174
- version: '0'
175
- type: :development
176
- prerelease: false
177
- version_requirements: !ruby/object:Gem::Requirement
178
- requirements:
179
- - - ">="
180
- - !ruby/object:Gem::Version
181
- version: '0'
182
14
  - !ruby/object:Gem::Dependency
183
15
  name: activesupport
184
16
  requirement: !ruby/object:Gem::Requirement
@@ -257,13 +89,13 @@ files:
257
89
  - Rakefile
258
90
  - chewy.gemspec
259
91
  - filters
260
- - gemfiles/rails.5.2.activerecord.gemfile
261
- - gemfiles/rails.6.0.activerecord.gemfile
92
+ - gemfiles/base.gemfile
262
93
  - gemfiles/rails.6.1.activerecord.gemfile
263
94
  - gemfiles/rails.7.0.activerecord.gemfile
264
95
  - gemfiles/rails.7.1.activerecord.gemfile
265
96
  - lib/chewy.rb
266
97
  - lib/chewy/config.rb
98
+ - lib/chewy/elastic_client.rb
267
99
  - lib/chewy/errors.rb
268
100
  - lib/chewy/fields/base.rb
269
101
  - lib/chewy/fields/root.rb
@@ -373,6 +205,7 @@ files:
373
205
  - lib/tasks/chewy.rake
374
206
  - migration_guide.md
375
207
  - spec/chewy/config_spec.rb
208
+ - spec/chewy/elastic_client_spec.rb
376
209
  - spec/chewy/fields/base_spec.rb
377
210
  - spec/chewy/fields/root_spec.rb
378
211
  - spec/chewy/fields/time_fields_spec.rb
@@ -470,7 +303,8 @@ files:
470
303
  homepage: https://github.com/toptal/chewy
471
304
  licenses:
472
305
  - MIT
473
- metadata: {}
306
+ metadata:
307
+ rubygems_mfa_required: 'true'
474
308
  post_install_message:
475
309
  rdoc_options: []
476
310
  require_paths:
@@ -490,99 +324,4 @@ rubygems_version: 3.4.10
490
324
  signing_key:
491
325
  specification_version: 4
492
326
  summary: Elasticsearch ODM client wrapper
493
- test_files:
494
- - spec/chewy/config_spec.rb
495
- - spec/chewy/fields/base_spec.rb
496
- - spec/chewy/fields/root_spec.rb
497
- - spec/chewy/fields/time_fields_spec.rb
498
- - spec/chewy/index/actions_spec.rb
499
- - spec/chewy/index/adapter/active_record_spec.rb
500
- - spec/chewy/index/adapter/object_spec.rb
501
- - spec/chewy/index/aliases_spec.rb
502
- - spec/chewy/index/import/bulk_builder_spec.rb
503
- - spec/chewy/index/import/bulk_request_spec.rb
504
- - spec/chewy/index/import/journal_builder_spec.rb
505
- - spec/chewy/index/import/routine_spec.rb
506
- - spec/chewy/index/import_spec.rb
507
- - spec/chewy/index/mapping_spec.rb
508
- - spec/chewy/index/observe/active_record_methods_spec.rb
509
- - spec/chewy/index/observe/callback_spec.rb
510
- - spec/chewy/index/observe_spec.rb
511
- - spec/chewy/index/settings_spec.rb
512
- - spec/chewy/index/specification_spec.rb
513
- - spec/chewy/index/syncer_spec.rb
514
- - spec/chewy/index/witchcraft_spec.rb
515
- - spec/chewy/index/wrapper_spec.rb
516
- - spec/chewy/index_spec.rb
517
- - spec/chewy/journal_spec.rb
518
- - spec/chewy/minitest/helpers_spec.rb
519
- - spec/chewy/minitest/search_index_receiver_spec.rb
520
- - spec/chewy/multi_search_spec.rb
521
- - spec/chewy/rake_helper_spec.rb
522
- - spec/chewy/repository_spec.rb
523
- - spec/chewy/rspec/build_query_spec.rb
524
- - spec/chewy/rspec/helpers_spec.rb
525
- - spec/chewy/rspec/update_index_spec.rb
526
- - spec/chewy/runtime/version_spec.rb
527
- - spec/chewy/runtime_spec.rb
528
- - spec/chewy/search/loader_spec.rb
529
- - spec/chewy/search/pagination/kaminari_examples.rb
530
- - spec/chewy/search/pagination/kaminari_spec.rb
531
- - spec/chewy/search/parameters/aggs_spec.rb
532
- - spec/chewy/search/parameters/bool_storage_examples.rb
533
- - spec/chewy/search/parameters/collapse_spec.rb
534
- - spec/chewy/search/parameters/docvalue_fields_spec.rb
535
- - spec/chewy/search/parameters/explain_spec.rb
536
- - spec/chewy/search/parameters/filter_spec.rb
537
- - spec/chewy/search/parameters/hash_storage_examples.rb
538
- - spec/chewy/search/parameters/highlight_spec.rb
539
- - spec/chewy/search/parameters/ignore_unavailable_spec.rb
540
- - spec/chewy/search/parameters/indices_spec.rb
541
- - spec/chewy/search/parameters/integer_storage_examples.rb
542
- - spec/chewy/search/parameters/knn_spec.rb
543
- - spec/chewy/search/parameters/limit_spec.rb
544
- - spec/chewy/search/parameters/load_spec.rb
545
- - spec/chewy/search/parameters/min_score_spec.rb
546
- - spec/chewy/search/parameters/none_spec.rb
547
- - spec/chewy/search/parameters/offset_spec.rb
548
- - spec/chewy/search/parameters/order_spec.rb
549
- - spec/chewy/search/parameters/post_filter_spec.rb
550
- - spec/chewy/search/parameters/preference_spec.rb
551
- - spec/chewy/search/parameters/profile_spec.rb
552
- - spec/chewy/search/parameters/query_spec.rb
553
- - spec/chewy/search/parameters/query_storage_examples.rb
554
- - spec/chewy/search/parameters/request_cache_spec.rb
555
- - spec/chewy/search/parameters/rescore_spec.rb
556
- - spec/chewy/search/parameters/script_fields_spec.rb
557
- - spec/chewy/search/parameters/search_after_spec.rb
558
- - spec/chewy/search/parameters/search_type_spec.rb
559
- - spec/chewy/search/parameters/source_spec.rb
560
- - spec/chewy/search/parameters/storage_spec.rb
561
- - spec/chewy/search/parameters/stored_fields_spec.rb
562
- - spec/chewy/search/parameters/string_array_storage_examples.rb
563
- - spec/chewy/search/parameters/string_storage_examples.rb
564
- - spec/chewy/search/parameters/suggest_spec.rb
565
- - spec/chewy/search/parameters/terminate_after_spec.rb
566
- - spec/chewy/search/parameters/timeout_spec.rb
567
- - spec/chewy/search/parameters/track_scores_spec.rb
568
- - spec/chewy/search/parameters/track_total_hits_spec.rb
569
- - spec/chewy/search/parameters/version_spec.rb
570
- - spec/chewy/search/parameters_spec.rb
571
- - spec/chewy/search/query_proxy_spec.rb
572
- - spec/chewy/search/request_spec.rb
573
- - spec/chewy/search/response_spec.rb
574
- - spec/chewy/search/scrolling_spec.rb
575
- - spec/chewy/search_spec.rb
576
- - spec/chewy/stash_spec.rb
577
- - spec/chewy/strategy/active_job_spec.rb
578
- - spec/chewy/strategy/atomic_no_refresh_spec.rb
579
- - spec/chewy/strategy/atomic_spec.rb
580
- - spec/chewy/strategy/delayed_sidekiq_spec.rb
581
- - spec/chewy/strategy/lazy_sidekiq_spec.rb
582
- - spec/chewy/strategy/sidekiq_spec.rb
583
- - spec/chewy/strategy_spec.rb
584
- - spec/chewy_spec.rb
585
- - spec/spec_helper.rb
586
- - spec/support/active_record.rb
587
- - spec/support/class_helpers.rb
588
- - spec/support/fail_helpers.rb
327
+ test_files: []
@@ -1,11 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gem 'activejob', '~> 5.2.0'
4
- gem 'activerecord', '~> 5.2.0'
5
- gem 'activesupport', '~> 5.2.0'
6
- gem 'kaminari-core', '~> 1.1.0', require: false
7
- gem 'parallel', require: false
8
- gem 'rspec_junit_formatter', '~> 0.4.1'
9
- gem 'sidekiq', require: false
10
-
11
- gemspec path: '../'
@@ -1,11 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gem 'activejob', '~> 6.0.0'
4
- gem 'activerecord', '~> 6.0.0'
5
- gem 'activesupport', '~> 6.0.0'
6
- gem 'kaminari-core', '~> 1.1.0', require: false
7
- gem 'parallel', require: false
8
- gem 'rspec_junit_formatter', '~> 0.4.1'
9
- gem 'sidekiq', require: false
10
-
11
- gemspec path: '../'