chewy 5.0.0 → 7.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (147) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +240 -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 +94 -0
  7. data/Appraisals +1 -17
  8. data/CHANGELOG.md +308 -356
  9. data/CODE_OF_CONDUCT.md +14 -0
  10. data/CONTRIBUTING.md +63 -0
  11. data/Gemfile +2 -0
  12. data/LICENSE.txt +1 -1
  13. data/README.md +71 -55
  14. data/chewy.gemspec +5 -5
  15. data/gemfiles/rails.5.2.activerecord.gemfile +4 -3
  16. data/gemfiles/{rails.5.0.activerecord.gemfile → rails.5.2.mongoid.6.4.gemfile} +4 -3
  17. data/gemfiles/{rails.5.0.mongoid.6.1.gemfile → rails.6.0.activerecord.gemfile} +4 -3
  18. data/gemfiles/{rails.5.1.activerecord.gemfile → rails.6.1.activerecord.gemfile} +6 -3
  19. data/lib/chewy.rb +1 -1
  20. data/lib/chewy/backports/duplicable.rb +1 -1
  21. data/lib/chewy/config.rb +2 -20
  22. data/lib/chewy/fields/base.rb +1 -7
  23. data/lib/chewy/fields/root.rb +2 -2
  24. data/lib/chewy/index.rb +2 -0
  25. data/lib/chewy/index/actions.rb +15 -5
  26. data/lib/chewy/index/aliases.rb +16 -5
  27. data/lib/chewy/multi_search.rb +62 -0
  28. data/lib/chewy/railtie.rb +1 -1
  29. data/lib/chewy/search.rb +2 -9
  30. data/lib/chewy/search/loader.rb +1 -1
  31. data/lib/chewy/search/pagination/will_paginate.rb +1 -1
  32. data/lib/chewy/search/parameters.rb +24 -6
  33. data/lib/chewy/search/parameters/allow_partial_search_results.rb +27 -0
  34. data/lib/chewy/search/parameters/indices.rb +123 -0
  35. data/lib/chewy/search/parameters/none.rb +1 -3
  36. data/lib/chewy/search/request.rb +101 -74
  37. data/lib/chewy/search/scrolling.rb +7 -6
  38. data/lib/chewy/stash.rb +1 -1
  39. data/lib/chewy/strategy/active_job.rb +1 -1
  40. data/lib/chewy/strategy/sidekiq.rb +1 -1
  41. data/lib/chewy/type.rb +4 -1
  42. data/lib/chewy/type/adapter/active_record.rb +1 -1
  43. data/lib/chewy/type/adapter/mongoid.rb +1 -1
  44. data/lib/chewy/type/adapter/orm.rb +7 -4
  45. data/lib/chewy/type/adapter/sequel.rb +1 -1
  46. data/lib/chewy/type/import.rb +14 -4
  47. data/lib/chewy/type/import/bulk_request.rb +4 -2
  48. data/lib/chewy/type/import/journal_builder.rb +1 -1
  49. data/lib/chewy/type/import/routine.rb +1 -1
  50. data/lib/chewy/type/mapping.rb +4 -4
  51. data/lib/chewy/type/observe.rb +3 -3
  52. data/lib/chewy/type/syncer.rb +4 -5
  53. data/lib/chewy/type/witchcraft.rb +4 -2
  54. data/lib/chewy/type/wrapper.rb +12 -2
  55. data/lib/chewy/version.rb +1 -1
  56. data/migration_guide.md +56 -0
  57. data/spec/chewy/config_spec.rb +1 -22
  58. data/spec/chewy/fields/base_spec.rb +11 -9
  59. data/spec/chewy/index/actions_spec.rb +120 -33
  60. data/spec/chewy/index/aliases_spec.rb +3 -3
  61. data/spec/chewy/index_spec.rb +16 -39
  62. data/spec/chewy/journal_spec.rb +22 -18
  63. data/spec/chewy/minitest/search_index_receiver_spec.rb +11 -9
  64. data/spec/chewy/multi_search_spec.rb +85 -0
  65. data/spec/chewy/rake_helper_spec.rb +102 -87
  66. data/spec/chewy/rspec/update_index_spec.rb +47 -46
  67. data/spec/chewy/runtime_spec.rb +2 -2
  68. data/spec/chewy/search/parameters/indices_spec.rb +190 -0
  69. data/spec/chewy/search/parameters/none_spec.rb +1 -1
  70. data/spec/chewy/search/parameters_spec.rb +21 -4
  71. data/spec/chewy/search/request_spec.rb +103 -70
  72. data/spec/chewy/search/response_spec.rb +27 -17
  73. data/spec/chewy/search/scrolling_spec.rb +27 -17
  74. data/spec/chewy/search_spec.rb +45 -41
  75. data/spec/chewy/stash_spec.rb +14 -12
  76. data/spec/chewy/strategy/active_job_spec.rb +15 -2
  77. data/spec/chewy/strategy/shoryuken_spec.rb +6 -2
  78. data/spec/chewy/strategy/sidekiq_spec.rb +6 -2
  79. data/spec/chewy/type/adapter/active_record_spec.rb +16 -4
  80. data/spec/chewy/type/import/bulk_builder_spec.rb +9 -94
  81. data/spec/chewy/type/import/journal_builder_spec.rb +9 -7
  82. data/spec/chewy/type/import_spec.rb +9 -0
  83. data/spec/chewy/type/mapping_spec.rb +3 -1
  84. data/spec/chewy/type/observe_spec.rb +4 -4
  85. data/spec/chewy/type/witchcraft_spec.rb +15 -0
  86. data/spec/chewy/type/wrapper_spec.rb +3 -1
  87. data/spec/chewy_spec.rb +0 -7
  88. data/spec/spec_helper.rb +4 -8
  89. data/spec/support/active_record.rb +21 -0
  90. metadata +32 -97
  91. data/.travis.yml +0 -45
  92. data/LEGACY_DSL.md +0 -497
  93. data/gemfiles/rails.4.0.activerecord.gemfile +0 -15
  94. data/gemfiles/rails.4.1.activerecord.gemfile +0 -15
  95. data/gemfiles/rails.4.2.activerecord.gemfile +0 -16
  96. data/gemfiles/rails.4.2.mongoid.5.2.gemfile +0 -16
  97. data/gemfiles/rails.5.1.mongoid.6.3.gemfile +0 -16
  98. data/lib/chewy/query.rb +0 -1137
  99. data/lib/chewy/query/compose.rb +0 -68
  100. data/lib/chewy/query/criteria.rb +0 -191
  101. data/lib/chewy/query/filters.rb +0 -244
  102. data/lib/chewy/query/loading.rb +0 -110
  103. data/lib/chewy/query/nodes/and.rb +0 -25
  104. data/lib/chewy/query/nodes/base.rb +0 -17
  105. data/lib/chewy/query/nodes/bool.rb +0 -34
  106. data/lib/chewy/query/nodes/equal.rb +0 -34
  107. data/lib/chewy/query/nodes/exists.rb +0 -20
  108. data/lib/chewy/query/nodes/expr.rb +0 -28
  109. data/lib/chewy/query/nodes/field.rb +0 -110
  110. data/lib/chewy/query/nodes/has_child.rb +0 -15
  111. data/lib/chewy/query/nodes/has_parent.rb +0 -15
  112. data/lib/chewy/query/nodes/has_relation.rb +0 -59
  113. data/lib/chewy/query/nodes/match_all.rb +0 -11
  114. data/lib/chewy/query/nodes/missing.rb +0 -20
  115. data/lib/chewy/query/nodes/not.rb +0 -25
  116. data/lib/chewy/query/nodes/or.rb +0 -25
  117. data/lib/chewy/query/nodes/prefix.rb +0 -19
  118. data/lib/chewy/query/nodes/query.rb +0 -20
  119. data/lib/chewy/query/nodes/range.rb +0 -63
  120. data/lib/chewy/query/nodes/raw.rb +0 -15
  121. data/lib/chewy/query/nodes/regexp.rb +0 -35
  122. data/lib/chewy/query/nodes/script.rb +0 -20
  123. data/lib/chewy/query/pagination.rb +0 -25
  124. data/spec/chewy/query/criteria_spec.rb +0 -700
  125. data/spec/chewy/query/filters_spec.rb +0 -201
  126. data/spec/chewy/query/loading_spec.rb +0 -124
  127. data/spec/chewy/query/nodes/and_spec.rb +0 -12
  128. data/spec/chewy/query/nodes/bool_spec.rb +0 -14
  129. data/spec/chewy/query/nodes/equal_spec.rb +0 -32
  130. data/spec/chewy/query/nodes/exists_spec.rb +0 -18
  131. data/spec/chewy/query/nodes/has_child_spec.rb +0 -59
  132. data/spec/chewy/query/nodes/has_parent_spec.rb +0 -59
  133. data/spec/chewy/query/nodes/match_all_spec.rb +0 -11
  134. data/spec/chewy/query/nodes/missing_spec.rb +0 -16
  135. data/spec/chewy/query/nodes/not_spec.rb +0 -14
  136. data/spec/chewy/query/nodes/or_spec.rb +0 -12
  137. data/spec/chewy/query/nodes/prefix_spec.rb +0 -16
  138. data/spec/chewy/query/nodes/query_spec.rb +0 -12
  139. data/spec/chewy/query/nodes/range_spec.rb +0 -32
  140. data/spec/chewy/query/nodes/raw_spec.rb +0 -11
  141. data/spec/chewy/query/nodes/regexp_spec.rb +0 -43
  142. data/spec/chewy/query/nodes/script_spec.rb +0 -15
  143. data/spec/chewy/query/pagination/kaminari_spec.rb +0 -5
  144. data/spec/chewy/query/pagination/will_paginate_spec.rb +0 -5
  145. data/spec/chewy/query/pagination_spec.rb +0 -39
  146. data/spec/chewy/query_spec.rb +0 -637
  147. data/spec/chewy/search/parameters/indices_boost_spec.rb +0 -83
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2decd9fc56f1c1116f0470c5dfce2fb84b3dbbab25ed42bcc1813f2f91069292
4
- data.tar.gz: 969f6d74cff1f399ffa9752d2559a9affcaa2fe96a63e05cdfe4aa2b0add0af4
3
+ metadata.gz: 1dd4e22b7f5c013837c2799973a115efec21cac6555a8ec9f30c85b63525f155
4
+ data.tar.gz: d938f5225426da6b649179bcacced5f24974a80995cf4dd62ac77f8e9484df8b
5
5
  SHA512:
6
- metadata.gz: e55c97184ed6f171f9383087b792b6261167687acad1add6ca2d5196e87676b1600c54277174e213fd07de6d6d811124a20130ac7ca7ccb5b7077a78a710fbbc
7
- data.tar.gz: b0ceb62da09eea3332e1d67bdca2ab56dfadae6366ca27a8009e502da01057891e7c6a33bfb67f81f4b35119eff550b4390d40e9860e2441065d72c4d30fca78
6
+ metadata.gz: f54a6ae762f36af260a07f7da838d802e5152431b14b8120c1be2fa083510ecaf1ae650e115294a2bac3ad4ae17bac399b0873d4259e63f4ad9a655c05bfa224
7
+ data.tar.gz: d2c4cf7030995844d04841ad0739497dacffd3fb57d52ca6d7aed871d30e112fe6eb88f084a678c7090d359f91f944b21fc4f45b65f1f9fffa6da2775f9845b0
@@ -0,0 +1,240 @@
1
+ # Check https://circleci.com/docs/2.0/language-ruby/ for more details
2
+ version: 2.1
3
+
4
+ es-env: &es-env
5
+ cluster.name: elasticsearch
6
+ transport.host: localhost
7
+ network.host: 127.0.0.1
8
+ http.port: 9250
9
+ discovery.type: single-node
10
+ xpack.security.enabled: false
11
+ xpack.monitoring.enabled: false
12
+
13
+ workflows:
14
+ build:
15
+ jobs:
16
+ - rubocop
17
+ - rspec-ruby-26-activerecord61
18
+ - rspec-ruby-26-activerecord60
19
+ - rspec-ruby-26-activerecord52
20
+ - rspec-ruby-26-mongoid
21
+ - rspec-ruby-27-activerecord61
22
+ - rspec-ruby-27-activerecord60
23
+ - rspec-ruby-27-activerecord52
24
+ - rspec-ruby-27-mongoid
25
+ - rspec-ruby-30-activerecord61
26
+ - rspec-ruby-27-activerecord61-es6
27
+ - rspec-ruby-30-activerecord61-es6
28
+
29
+ commands:
30
+ rspec-test:
31
+ description: Test rspec in current ruby
32
+ parameters:
33
+ pre-steps:
34
+ description: Necessary steps after checkout
35
+ type: steps
36
+ default: []
37
+ steps:
38
+ - checkout
39
+ - run:
40
+ name: ruby version
41
+ command: |
42
+ ruby -e "STDERR.puts RUBY_VERSION; puts RUBY_VERSION.gsub(/^(\d+)\.(\d+)\..*/, '\1_\2')" > .ruby.version
43
+ - run:
44
+ name: Gemfile.lock version
45
+ command: |
46
+ echo "$GEMFILE.lock" > .Gemfile.lock.path
47
+ - steps: << parameters.pre-steps >>
48
+ - restore_cache:
49
+ keys:
50
+ - dependencies-{{ checksum ".ruby.version" }}-{{ checksum ".Gemfile.lock.path" }}
51
+ - run:
52
+ name: install dependencies
53
+ command: |
54
+ bundle install --jobs=4 --retry=3 --path vendor/bundle --gemfile=$GEMFILE
55
+ - save_cache:
56
+ paths:
57
+ - ./vendor/bundle
58
+ key: dependencies-{{ checksum ".ruby.version" }}-{{ checksum ".Gemfile.lock.path" }}
59
+ - run:
60
+ name: Disable replication of elastic indices
61
+ command: |
62
+ curl -XPUT 'http://localhost:9250/_all/_settings?preserve_existing=true' -d '{
63
+ "index.number_of_replicas":"0"
64
+ }'
65
+ - run:
66
+ name: run tests
67
+ command: |
68
+ ruby -v
69
+ git config --global user.email "you@example.com"
70
+ git config --global user.name "Your Name"
71
+ mkdir /tmp/test-results
72
+ TEST_FILES="$(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings)"
73
+ BUNDLE_GEMFILE=$GEMFILE bundle exec rspec --format progress --format RspecJunitFormatter --out /tmp/test-results/rspec.xml $TEST_FILES
74
+ - store_test_results:
75
+ path: /tmp/test-results
76
+
77
+ jobs:
78
+ rubocop:
79
+ docker:
80
+ - image: circleci/ruby:2.6
81
+ working_directory: ~/repo
82
+ steps:
83
+ - checkout
84
+ - run:
85
+ name: ruby version
86
+ command: |
87
+ ruby -e "STDERR.puts RUBY_VERSION; puts RUBY_VERSION.gsub(/^(\d+)\.(\d+)\..*/, '\1_\2')" > .ruby.version
88
+ - run:
89
+ name: Gemfile.lock version
90
+ command: |
91
+ echo "$GEMFILE.lock" > .Gemfile.lock.path
92
+ - restore_cache:
93
+ keys:
94
+ - dependencies-{{ checksum ".ruby.version" }}-{{ checksum ".Gemfile.lock.path" }}
95
+ - run:
96
+ name: install dependencies
97
+ command: |
98
+ bundle install --jobs=4 --retry=3 --path vendor/bundle --binstubs=/usr/local/bundle/bin
99
+ - save_cache:
100
+ paths:
101
+ - ./vendor/bundle
102
+ key: dependencies-{{ checksum ".ruby.version" }}-{{ checksum ".Gemfile.lock.path" }}
103
+ - run:
104
+ name: run rubocop
105
+ command: |
106
+ bundle exec rubocop --format simple
107
+
108
+ rspec-ruby-26-activerecord52:
109
+ docker:
110
+ - image: circleci/ruby:2.6
111
+ - image: docker.elastic.co/elasticsearch/elasticsearch:7.10.1
112
+ environment:
113
+ <<: *es-env
114
+ working_directory: ~/repo
115
+ environment:
116
+ GEMFILE: gemfiles/rails.5.2.activerecord.gemfile
117
+ steps:
118
+ - rspec-test
119
+
120
+ rspec-ruby-26-activerecord60:
121
+ docker:
122
+ - image: circleci/ruby:2.6
123
+ - image: docker.elastic.co/elasticsearch/elasticsearch:7.10.1
124
+ environment:
125
+ <<: *es-env
126
+ working_directory: ~/repo
127
+ environment:
128
+ GEMFILE: gemfiles/rails.6.0.activerecord.gemfile
129
+ steps:
130
+ - rspec-test
131
+
132
+ rspec-ruby-26-activerecord61:
133
+ docker:
134
+ - image: circleci/ruby:2.6
135
+ - image: docker.elastic.co/elasticsearch/elasticsearch:7.10.1
136
+ environment:
137
+ <<: *es-env
138
+ working_directory: ~/repo
139
+ environment:
140
+ GEMFILE: gemfiles/rails.6.1.activerecord.gemfile
141
+ steps:
142
+ - rspec-test
143
+
144
+ rspec-ruby-26-mongoid:
145
+ docker:
146
+ - image: circleci/ruby:2.6
147
+ - image: circleci/mongo:4.2.5
148
+ - image: docker.elastic.co/elasticsearch/elasticsearch:7.10.1
149
+ environment:
150
+ <<: *es-env
151
+ working_directory: ~/repo
152
+ environment:
153
+ GEMFILE: gemfiles/rails.5.2.mongoid.6.4.gemfile
154
+ steps:
155
+ - rspec-test
156
+
157
+ rspec-ruby-27-activerecord52:
158
+ docker:
159
+ - image: circleci/ruby:2.7
160
+ - image: docker.elastic.co/elasticsearch/elasticsearch:7.10.1
161
+ environment:
162
+ <<: *es-env
163
+ working_directory: ~/repo
164
+ environment:
165
+ GEMFILE: gemfiles/rails.5.2.activerecord.gemfile
166
+ steps:
167
+ - rspec-test
168
+
169
+ rspec-ruby-27-activerecord60:
170
+ docker:
171
+ - image: circleci/ruby:2.7
172
+ - image: docker.elastic.co/elasticsearch/elasticsearch:7.10.1
173
+ environment:
174
+ <<: *es-env
175
+ working_directory: ~/repo
176
+ environment:
177
+ GEMFILE: gemfiles/rails.6.0.activerecord.gemfile
178
+ steps:
179
+ - rspec-test
180
+
181
+ rspec-ruby-27-activerecord61:
182
+ docker:
183
+ - image: circleci/ruby:2.7
184
+ - image: docker.elastic.co/elasticsearch/elasticsearch:7.10.1
185
+ environment:
186
+ <<: *es-env
187
+ working_directory: ~/repo
188
+ environment:
189
+ GEMFILE: gemfiles/rails.6.1.activerecord.gemfile
190
+ steps:
191
+ - rspec-test
192
+
193
+ rspec-ruby-27-mongoid:
194
+ docker:
195
+ - image: circleci/ruby:2.7
196
+ - image: circleci/mongo:4.2.5
197
+ - image: docker.elastic.co/elasticsearch/elasticsearch:7.10.1
198
+ environment:
199
+ <<: *es-env
200
+ working_directory: ~/repo
201
+ environment:
202
+ GEMFILE: gemfiles/rails.5.2.mongoid.6.4.gemfile
203
+ steps:
204
+ - rspec-test
205
+
206
+ rspec-ruby-30-activerecord61:
207
+ docker:
208
+ - image: circleci/ruby:3.0
209
+ - image: docker.elastic.co/elasticsearch/elasticsearch:7.10.1
210
+ environment:
211
+ <<: *es-env
212
+ working_directory: ~/repo
213
+ environment:
214
+ GEMFILE: gemfiles/rails.6.1.activerecord.gemfile
215
+ steps:
216
+ - rspec-test
217
+
218
+ rspec-ruby-27-activerecord61-es6:
219
+ docker:
220
+ - image: circleci/ruby:2.7
221
+ - image: docker.elastic.co/elasticsearch/elasticsearch:6.8.13
222
+ environment:
223
+ <<: *es-env
224
+ working_directory: ~/repo
225
+ environment:
226
+ GEMFILE: gemfiles/rails.6.1.activerecord.gemfile
227
+ steps:
228
+ - rspec-test
229
+
230
+ rspec-ruby-30-activerecord61-es6:
231
+ docker:
232
+ - image: circleci/ruby:3.0
233
+ - image: docker.elastic.co/elasticsearch/elasticsearch:6.8.13
234
+ environment:
235
+ <<: *es-env
236
+ working_directory: ~/repo
237
+ environment:
238
+ GEMFILE: gemfiles/rails.6.1.activerecord.gemfile
239
+ steps:
240
+ - rspec-test
@@ -0,0 +1,39 @@
1
+ ---
2
+ name: Bug Report
3
+ about: Report an issue with Chewy you've discovered.
4
+ ---
5
+
6
+ *Be clear, concise and precise in your description of the problem.
7
+ Open an issue with a descriptive title and a summary in grammatically correct,
8
+ complete sentences.*
9
+
10
+ *Use the template below when reporting bugs. Please, make sure that
11
+ you're running the latest stable Chewy and that the problem you're reporting
12
+ hasn't been reported (and potentially fixed) already.*
13
+
14
+ *Before filing the ticket you should replace all text above the horizontal
15
+ rule with your own words.*
16
+
17
+ --------
18
+
19
+ ## Expected behavior
20
+
21
+ Describe here how you expected Chewy to behave in this particular situation.
22
+
23
+ ## Actual behavior
24
+
25
+ Describe here what actually happened.
26
+
27
+ ## Steps to reproduce the problem
28
+
29
+ This is extremely important! Providing us with a reliable way to reproduce
30
+ a problem will expedite its solution.
31
+
32
+ ## Version Information
33
+
34
+ Share here essential version information such as:
35
+
36
+ * Chewy version
37
+ * Elasticsearch version
38
+ * Ruby version
39
+ * Rails version
@@ -0,0 +1,20 @@
1
+ ---
2
+ name: Feature Request
3
+ about: Suggest new Chewy features or improvements to existing features.
4
+ ---
5
+
6
+ ## Is your feature request related to a problem? Please describe.
7
+
8
+ A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
9
+
10
+ ## Describe the solution you'd like
11
+
12
+ A clear and concise description of what you want to happen.
13
+
14
+ ## Describe alternatives you've considered
15
+
16
+ A clear and concise description of any alternative solutions or features you've considered.
17
+
18
+ ## Additional context
19
+
20
+ Add any other context or screenshots about the feature request here.
@@ -0,0 +1,16 @@
1
+ **Replace this text with a summary of the changes in your PR.
2
+ The more detailed you are, the better.**
3
+
4
+ -----------------
5
+
6
+ Before submitting the PR make sure the following are checked:
7
+
8
+ * [ ] The PR relates to *only* one subject with a clear title and description in grammatically correct, complete sentences.
9
+ * [ ] Wrote [good commit messages][1].
10
+ * [ ] Commit message starts with `[Fix #issue-number]` (if the related issue exists).
11
+ * [ ] Feature branch is up-to-date with `master` (if not - rebase it).
12
+ * [ ] Squashed related commits together.
13
+ * [ ] Added tests.
14
+ * [ ] Added an entry to the changelog if the new code introduces user-observable changes. See [changelog entry format](https://github.com/toptal/chewy/blob/master/CONTRIBUTING.md#changelog-entry-format) for details.
15
+
16
+ [1]: https://chris.beams.io/posts/git-commit/
@@ -0,0 +1,94 @@
1
+ name: CI
2
+
3
+ on: [push]
4
+
5
+ jobs:
6
+ tests:
7
+ runs-on: ubuntu-latest
8
+ strategy:
9
+ fail-fast: false
10
+ matrix:
11
+ ruby: [2.6, 2.7]
12
+ gemfile: [rails.5.2.activerecord, rails.6.0.activerecord, rails.6.1.activerecord]
13
+ name: ${{ matrix.ruby }}-${{ matrix.gemfile }}
14
+
15
+ env:
16
+ BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
17
+
18
+ steps:
19
+ - uses: actions/checkout@v2
20
+ - uses: ruby/setup-ruby@v1
21
+ with:
22
+ ruby-version: ${{ matrix.ruby }}
23
+ bundler-cache: true
24
+ - name: Run Elasticsearch
25
+ uses: elastic/elastic-github-actions/elasticsearch@master
26
+ with:
27
+ stack-version: 7.10.1
28
+ port: 9250
29
+ - name: Tests
30
+ run: bundle exec rspec
31
+
32
+ ruby-3-0-activerecord-6-1:
33
+ runs-on: ubuntu-latest
34
+ env:
35
+ BUNDLE_GEMFILE: gemfiles/rails.6.1.activerecord.gemfile
36
+ steps:
37
+ - uses: actions/checkout@v2
38
+ - uses: ruby/setup-ruby@v1
39
+ with:
40
+ ruby-version: '3.0'
41
+ bundler-cache: true
42
+ - name: Run Elasticsearch
43
+ uses: elastic/elastic-github-actions/elasticsearch@master
44
+ with:
45
+ stack-version: 7.10.1
46
+ port: 9250
47
+ - name: Tests
48
+ run: bundle exec rspec
49
+
50
+ ruby-3-0-activerecord-6-1-es6:
51
+ runs-on: ubuntu-latest
52
+ env:
53
+ BUNDLE_GEMFILE: gemfiles/rails.6.1.activerecord.gemfile
54
+ steps:
55
+ - uses: actions/checkout@v2
56
+ - uses: ruby/setup-ruby@v1
57
+ with:
58
+ ruby-version: '3.0'
59
+ bundler-cache: true
60
+ - name: Run Elasticsearch
61
+ uses: elastic/elastic-github-actions/elasticsearch@master
62
+ with:
63
+ stack-version: 6.8.15
64
+ port: 9250
65
+ - name: Tests
66
+ run: bundle exec rspec
67
+
68
+ ruby-2-7-activerecord-6-1-es6:
69
+ runs-on: ubuntu-latest
70
+ env:
71
+ BUNDLE_GEMFILE: gemfiles/rails.6.1.activerecord.gemfile
72
+ steps:
73
+ - uses: actions/checkout@v2
74
+ - uses: ruby/setup-ruby@v1
75
+ with:
76
+ ruby-version: 2.7
77
+ bundler-cache: true
78
+ - name: Run Elasticsearch
79
+ uses: elastic/elastic-github-actions/elasticsearch@master
80
+ with:
81
+ stack-version: 6.8.15
82
+ port: 9250
83
+ - name: Tests
84
+ run: bundle exec rspec
85
+
86
+ rubocop:
87
+ runs-on: ubuntu-latest
88
+ steps:
89
+ - uses: actions/checkout@v2
90
+ - uses: ruby/setup-ruby@v1
91
+ with:
92
+ ruby-version: 2.7
93
+ bundler-cache: true
94
+ - run: bundle exec rubocop --format simple
data/Appraisals CHANGED
@@ -16,7 +16,7 @@
16
16
  end
17
17
  end
18
18
 
19
- %w[5.0 5.1].each do |activesupport|
19
+ %w[5.0 5.1 5.2].each do |activesupport|
20
20
  appraise "rails.#{activesupport}.activerecord" do
21
21
  gem 'activerecord', "~> #{activesupport}.0"
22
22
  gem 'activesupport', "~> #{activesupport}.0"
@@ -34,22 +34,6 @@ end
34
34
  end
35
35
  end
36
36
 
37
- appraise 'rails.5.2.activerecord' do
38
- gem 'activerecord', '~> 5.2.0.rc1'
39
- gem 'activesupport', '~> 5.2.0.rc1'
40
-
41
- gem 'activejob', '~> 5.2.0.rc1'
42
- gem 'resque', require: false
43
- gem 'shoryuken', require: false
44
- gem 'aws-sdk-sqs', require: false
45
- gem 'sidekiq', require: false
46
-
47
- gem 'kaminari-core', '~> 1.1.0', require: false
48
- gem 'will_paginate', require: false
49
-
50
- gem 'parallel', require: false
51
- end
52
-
53
37
  appraise 'rails.4.2.mongoid.5.2' do
54
38
  gem 'mongoid', '~> 5.2.0'
55
39
  gem 'activesupport', '~> 4.2.0'