rom-elasticsearch 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +21 -8
  3. data/README.md +7 -7
  4. data/lib/rom-elasticsearch.rb +2 -0
  5. data/lib/rom/elasticsearch.rb +3 -1
  6. data/lib/rom/elasticsearch/attribute.rb +2 -0
  7. data/lib/rom/elasticsearch/commands.rb +2 -0
  8. data/lib/rom/elasticsearch/dataset.rb +6 -0
  9. data/lib/rom/elasticsearch/errors.rb +2 -0
  10. data/lib/rom/elasticsearch/gateway.rb +2 -0
  11. data/lib/rom/elasticsearch/index_name.rb +2 -0
  12. data/lib/rom/elasticsearch/plugins/relation/query_dsl.rb +2 -0
  13. data/lib/rom/elasticsearch/query_methods.rb +2 -0
  14. data/lib/rom/elasticsearch/relation.rb +60 -0
  15. data/lib/rom/elasticsearch/relation/loaded.rb +2 -0
  16. data/lib/rom/elasticsearch/schema.rb +5 -1
  17. data/lib/rom/elasticsearch/scroll_methods.rb +40 -0
  18. data/lib/rom/elasticsearch/types.rb +7 -5
  19. data/lib/rom/elasticsearch/version.rb +3 -1
  20. metadata +18 -78
  21. data/.codeclimate.yml +0 -6
  22. data/.gitignore +0 -22
  23. data/.rspec +0 -3
  24. data/.travis.yml +0 -27
  25. data/.yardopts +0 -7
  26. data/CONTRIBUTING.md +0 -29
  27. data/Gemfile +0 -19
  28. data/Rakefile +0 -19
  29. data/docker-compose.yml +0 -7
  30. data/rom-elasticsearch.gemspec +0 -27
  31. data/spec/integration/rom/elasticsearch/relation/command_spec.rb +0 -47
  32. data/spec/integration/rom/elasticsearch/relation/multi_index_spec.rb +0 -60
  33. data/spec/integration/rom/elasticsearch/relation/schema_spec.rb +0 -25
  34. data/spec/shared/setup.rb +0 -16
  35. data/spec/shared/unit/user_fixtures.rb +0 -15
  36. data/spec/shared/unit/users.rb +0 -18
  37. data/spec/spec_helper.rb +0 -42
  38. data/spec/unit/rom/elasticsearch/dataset/body_spec.rb +0 -13
  39. data/spec/unit/rom/elasticsearch/dataset/delete_spec.rb +0 -17
  40. data/spec/unit/rom/elasticsearch/dataset/params_spec.rb +0 -13
  41. data/spec/unit/rom/elasticsearch/dataset/put_spec.rb +0 -14
  42. data/spec/unit/rom/elasticsearch/dataset/query_string_spec.rb +0 -12
  43. data/spec/unit/rom/elasticsearch/dataset/search_spec.rb +0 -20
  44. data/spec/unit/rom/elasticsearch/gateway_spec.rb +0 -10
  45. data/spec/unit/rom/elasticsearch/plugins/relation/query_dsl_spec.rb +0 -34
  46. data/spec/unit/rom/elasticsearch/relation/call_spec.rb +0 -22
  47. data/spec/unit/rom/elasticsearch/relation/create_index_spec.rb +0 -75
  48. data/spec/unit/rom/elasticsearch/relation/dataset_spec.rb +0 -51
  49. data/spec/unit/rom/elasticsearch/relation/delete_spec.rb +0 -32
  50. data/spec/unit/rom/elasticsearch/relation/get_spec.rb +0 -22
  51. data/spec/unit/rom/elasticsearch/relation/map_spec.rb +0 -18
  52. data/spec/unit/rom/elasticsearch/relation/order_spec.rb +0 -40
  53. data/spec/unit/rom/elasticsearch/relation/page_spec.rb +0 -20
  54. data/spec/unit/rom/elasticsearch/relation/pluck_spec.rb +0 -18
  55. data/spec/unit/rom/elasticsearch/relation/query_spec.rb +0 -18
  56. data/spec/unit/rom/elasticsearch/relation/query_string_spec.rb +0 -18
  57. data/spec/unit/rom/elasticsearch/relation/search_spec.rb +0 -18
  58. data/spec/unit/rom/elasticsearch/relation/to_a_spec.rb +0 -28
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aa9cb00a1c12ce6fe7272e59acb19a5a1cb473b4a31c5fd9355bebd4e3993234
4
- data.tar.gz: 2c1338c63fe76a413386fb48c5b7afba3602f8b51b7c8473422c2f9e996966f7
3
+ metadata.gz: 4d16fc720d3b0bbdbb8c31b3e44a301b663eb0cac2ba00b7949414b38576c26a
4
+ data.tar.gz: b86bb549184a72684d21578805ea393a87e6f0d1e665f0a82b8ccd6831065a2a
5
5
  SHA512:
6
- metadata.gz: 7984f2495ca0645cbbe39a7a34f2b6015f16c1c54c7736f96abda000a0669175b28e6a1ee6eefe89e452c33656f40d785562ccf536bd2938c180a84867bc8f04
7
- data.tar.gz: 5f8a73f4038e26f8173739bafa40af575b8599e2318e947943b31d91c21d5b0ea36847f69eb25d094b5202128a81dc8ebb3dac33be64a33ce9ec9c02da435d99
6
+ metadata.gz: 4da96f9e4092383134b09d7b81e5c972f99463e13f4a1fd9430a74c64e9a1b2b292b8e9e7060ce0ca46e963be59942d992bac2a0815651316bcd93c81ee75e02
7
+ data.tar.gz: e1e82ac281fcecbce51a7c00fc08ba39c0a52cdd33a1d4f4e829e988621b17471bd63cc565e04f9f823f1cf8a024c0d93997fd3847ca336b72836ff7f32cadd2
@@ -1,9 +1,22 @@
1
+ # v0.4.0 2019-04-28
2
+
3
+ ### Added
4
+
5
+ - New relation methods: `#count`, `#from` and `#size` (v-kolesnikov)
6
+ - Scroll API (hpetru)
7
+
8
+ ### Changed
9
+
10
+ - Updated to work with `rom ~> 5.0` (v-kolesnikov)
11
+
12
+ [Compare v0.3.0...v0.4.0](https://github.com/rom-rb/rom-elasticsearch/compare/v0.3.0...v0.4.0)
13
+
1
14
  # v0.3.0 2018-03-12
2
15
 
3
16
  ### Added
4
17
 
5
- * Support for multi-index relations via `schema(multi: true)` (solnic)
6
- * Datasets can be configured to include `_metadata` in resulting tuples (solnic)
18
+ - Support for multi-index relations via `schema(multi: true)` (solnic)
19
+ - Datasets can be configured to include `_metadata` in resulting tuples (solnic)
7
20
 
8
21
  [Compare v0.2.1...v0.3.0](https://github.com/rom-rb/rom-elasticsearch/compare/v0.2.1...v0.3.0)
9
22
 
@@ -11,7 +24,7 @@
11
24
 
12
25
  ### Fixed
13
26
 
14
- * Using `read` types in schemas no longer breaks indexing (solnic)
27
+ - Using `read` types in schemas no longer breaks indexing (solnic)
15
28
 
16
29
  [Compare v0.2.0...v0.2.1](https://github.com/rom-rb/rom-elasticsearch/compare/v0.2.0...v0.2.1)
17
30
 
@@ -19,10 +32,10 @@
19
32
 
20
33
  ### Added
21
34
 
22
- * `Relation#order` which sets `:sort` (solnic)
23
- * `Relation#page` which sets `:from` offset (solnic)
24
- * `Relation#per_page` which sets `:size` (solnic)
25
- * `Relation#call` returns custom `ROM::Elasticsearch::Relation::Loaded` object, which provides access to `#total_hits` and raw client response (solnic)
35
+ - `Relation#order` which sets `:sort` (solnic)
36
+ - `Relation#page` which sets `:from` offset (solnic)
37
+ - `Relation#per_page` which sets `:size` (solnic)
38
+ - `Relation#call` returns custom `ROM::Elasticsearch::Relation::Loaded` object, which provides access to `#total_hits` and raw client response (solnic)
26
39
 
27
40
  [Compare v0.1.1...v0.2.0](https://github.com/rom-rb/rom-elasticsearch/compare/v0.1.1...v0.2.0)
28
41
 
@@ -30,7 +43,7 @@
30
43
 
31
44
  ### Changed
32
45
 
33
- * Connection URI is passed directly to the ES client now (solnic)
46
+ - Connection URI is passed directly to the ES client now (solnic)
34
47
 
35
48
  # v0.1.0 2017-11-17
36
49
 
data/README.md CHANGED
@@ -1,23 +1,23 @@
1
1
  [gem]: https://rubygems.org/gems/rom-elasticsearch
2
2
  [travis]: https://travis-ci.org/rom-rb/rom-elasticsearch
3
- [gemnasium]: https://gemnasium.com/rom-rb/rom-elasticsearch
4
3
  [codeclimate]: https://codeclimate.com/github/rom-rb/rom-elasticsearch
5
4
  [inchpages]: http://inch-ci.org/github/rom-rb/rom-elasticsearch
5
+ [chat]: https://rom-rb.zulipchat.com
6
6
 
7
- # rom-elasticsearch
7
+ # rom-elasticsearch [![Join the chat at https://rom-rb.zulipchat.com](https://img.shields.io/badge/rom--rb-join%20chat-942283.svg)][chat]
8
8
 
9
9
  [![Gem Version](https://badge.fury.io/rb/rom-elasticsearch.svg)][gem]
10
10
  [![Build Status](https://travis-ci.org/rom-rb/rom-elasticsearch.svg?branch=master)][travis]
11
- [![Dependency Status](https://gemnasium.com/rom-rb/rom-elasticsearch.svg)][gemnasium]
12
- [![Maintainability](https://api.codeclimate.com/v1/badges/dc6780aac2d99766b141/maintainability)](https://codeclimate.com/github/rom-rb/rom-elasticsearch/maintainability)
13
- [![Test Coverage](https://api.codeclimate.com/v1/badges/dc6780aac2d99766b141/test_coverage)](https://codeclimate.com/github/rom-rb/rom-elasticsearch/test_coverage)
11
+ [![Code Climate](https://codeclimate.com/github/rom-rb/rom-elasticsearch/badges/gpa.svg)][codeclimate]
12
+ [![Test Coverage](https://codeclimate.com/github/rom-rb/rom-elasticsearch/badges/coverage.svg)][codeclimate]
14
13
  [![Inline docs](http://inch-ci.org/github/rom-rb/rom-elasticsearch.svg?branch=master)][inchpages]
15
14
 
16
- ElasticSearch support for [rom-rb](https://github.com/rom-rb/rom).
15
+ Elasticsearch support for [rom-rb](https://github.com/rom-rb/rom).
17
16
 
18
17
  Resources:
19
18
 
20
- - [API Documentation](http://api.rom-rb.org/rom-elasticsearch)
19
+ - [User Documentation](http://rom-rb.org/learn/elasticsearch/)
20
+ - [API Documentation](http://rubydoc.info/gems/rom-elasticsearch)
21
21
 
22
22
  ## Installation
23
23
 
@@ -1 +1,3 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'rom/elasticsearch'
@@ -1,4 +1,6 @@
1
- require 'rom'
1
+ # frozen_string_literal: true
2
+
3
+ require 'rom/core'
2
4
 
3
5
  require 'rom/elasticsearch/version'
4
6
  require 'rom/elasticsearch/gateway'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'rom/attribute'
2
4
 
3
5
  module ROM
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'rom/commands'
2
4
 
3
5
  module ROM
@@ -1,6 +1,9 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'rom/initializer'
2
4
 
3
5
  require 'rom/elasticsearch/query_methods'
6
+ require 'rom/elasticsearch/scroll_methods'
4
7
  require 'rom/elasticsearch/errors'
5
8
 
6
9
  module ROM
@@ -19,6 +22,7 @@ module ROM
19
22
  extend Initializer
20
23
 
21
24
  include QueryMethods
25
+ include ScrollMethods
22
26
 
23
27
  # Sort values separator
24
28
  SORT_VALUES_SEPARATOR = ','.freeze
@@ -276,6 +280,8 @@ module ROM
276
280
  def view
277
281
  if params[:id]
278
282
  [client.get(params)]
283
+ elsif params[:scroll]
284
+ scroll_enumerator(client, response)
279
285
  else
280
286
  response.fetch('hits').fetch('hits')
281
287
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module ROM
2
4
  module Elasticsearch
3
5
  # @api private
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'elasticsearch'
2
4
  require 'uri'
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'rom/support/inflector'
2
4
 
3
5
  module ROM
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'rom/global'
2
4
  require 'elasticsearch/dsl'
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'rom/elasticsearch/errors'
2
4
 
3
5
  module ROM
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'rom/relation'
2
4
 
3
5
  require 'rom/elasticsearch/index_name'
@@ -198,6 +200,17 @@ module ROM
198
200
  end
199
201
  end
200
202
 
203
+ # Return a relation with scroll set
204
+ #
205
+ # @param [String] ttl
206
+ #
207
+ # @return [Relation]
208
+ #
209
+ # @api public
210
+ def scroll(ttl)
211
+ new(dataset.scroll(ttl))
212
+ end
213
+
201
214
  # Map indexed data
202
215
  #
203
216
  # @yieldparam [Hash,ROM::Struct]
@@ -310,6 +323,53 @@ module ROM
310
323
  new(dataset.refresh)
311
324
  end
312
325
 
326
+ # Return count of documents in the index
327
+ #
328
+ # @example
329
+ # users.count
330
+ # GET /_count
331
+ #
332
+ # @example
333
+ # users.search(<query>).count
334
+ # GET /_count?q=<query>
335
+ #
336
+ # @return [Integer]
337
+ #
338
+ # @api public
339
+ def count
340
+ dataset.client.count(
341
+ index: dataset.index,
342
+ type: dataset.type,
343
+ body: dataset.body
344
+ )['count']
345
+ end
346
+
347
+ # Restrict relation data by offset
348
+ #
349
+ # @example
350
+ # users.search.from(100)
351
+ # GET /_search?from=100
352
+ #
353
+ # @return [Integer]
354
+ #
355
+ # @api public
356
+ def from(value)
357
+ new(dataset.from(value))
358
+ end
359
+
360
+ # Restrict relation data by limit the count of documents
361
+ #
362
+ # @example
363
+ # users.search.size(100)
364
+ # GET /_search?size=100
365
+ #
366
+ # @return [Integer]
367
+ #
368
+ # @api public
369
+ def size(value)
370
+ new(dataset.size(value))
371
+ end
372
+
313
373
  private
314
374
 
315
375
  # Dataset index params based on relation configuration
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module ROM
2
4
  module Elasticsearch
3
5
  class Relation < ROM::Relation
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'rom/types'
2
4
  require 'rom/schema'
3
5
 
@@ -19,7 +21,9 @@ module ROM
19
21
  #
20
22
  # @api private
21
23
  def to_output_hash
22
- Types::Hash.symbolized(map { |attr| [attr.key, attr.to_read_type] }.to_h)
24
+ Types::Hash
25
+ .schema(map { |attr| [attr.key, attr.to_read_type] }.to_h)
26
+ .with_key_transform(&:to_sym)
23
27
  end
24
28
  end
25
29
  end
@@ -0,0 +1,40 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ROM
4
+ module Elasticsearch
5
+ # Dataset's scoll methods
6
+ #
7
+ # @see Dataset
8
+ #
9
+ # @api public
10
+ module ScrollMethods
11
+ # Return dataset with :scroll set
12
+ #
13
+ # @param [String] ttl
14
+ #
15
+ # @return [Dataset]
16
+ #
17
+ # @api public
18
+ def scroll(ttl)
19
+ params(scroll: ttl)
20
+ end
21
+
22
+ # @api private
23
+ def scroll_enumerator(client, response)
24
+ Enumerator.new do |yielder|
25
+ loop do
26
+ hits = response.fetch('hits').fetch('hits')
27
+ break if hits.empty?
28
+
29
+ hits.each { |result| yielder.yield(result) }
30
+
31
+ response = client.scroll(
32
+ scroll_id: response.fetch('_scroll_id'),
33
+ scroll: params[:scroll]
34
+ )
35
+ end
36
+ end
37
+ end
38
+ end
39
+ end
40
+ end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'rom/types'
2
4
 
3
5
  module ROM
@@ -9,24 +11,24 @@ module ROM
9
11
  include ROM::Types
10
12
 
11
13
  # Default integer primary key
12
- ID = Int.meta(primary_key: true)
14
+ ID = Integer.meta(primary_key: true)
13
15
 
14
- # Define a keywoard attribute type
16
+ # Define a keyword attribute type
15
17
  #
16
18
  # @return [Dry::Types::Type]
17
19
  #
18
20
  # @api public
19
21
  def self.Keyword(meta = {})
20
- String.meta(type: "keyword").meta(meta)
22
+ String.meta(type: 'keyword', **meta)
21
23
  end
22
24
 
23
- # Define a keywoard attribute type
25
+ # Define a keyword attribute type
24
26
  #
25
27
  # @return [Dry::Types::Type]
26
28
  #
27
29
  # @api public
28
30
  def self.Text(meta = {})
29
- String.meta(type: "text").meta(meta)
31
+ String.meta(type: 'text', **meta)
30
32
  end
31
33
  end
32
34
  end
@@ -1,5 +1,7 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module ROM
2
4
  module Elasticsearch
3
- VERSION = '0.3.0'.freeze
5
+ VERSION = '0.4.0'
4
6
  end
5
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rom-elasticsearch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hannes Nevalainen
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-03-12 00:00:00.000000000 Z
12
+ date: 2019-04-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rom-core
@@ -17,14 +17,20 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: '4.1'
20
+ version: '5.0'
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: 5.0.1
21
24
  type: :runtime
22
25
  prerelease: false
23
26
  version_requirements: !ruby/object:Gem::Requirement
24
27
  requirements:
25
28
  - - "~>"
26
29
  - !ruby/object:Gem::Version
27
- version: '4.1'
30
+ version: '5.0'
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 5.0.1
28
34
  - !ruby/object:Gem::Dependency
29
35
  name: elasticsearch
30
36
  requirement: !ruby/object:Gem::Requirement
@@ -43,16 +49,16 @@ dependencies:
43
49
  name: bundler
44
50
  requirement: !ruby/object:Gem::Requirement
45
51
  requirements:
46
- - - "~>"
52
+ - - ">="
47
53
  - !ruby/object:Gem::Version
48
- version: '1.6'
54
+ version: '0'
49
55
  type: :development
50
56
  prerelease: false
51
57
  version_requirements: !ruby/object:Gem::Requirement
52
58
  requirements:
53
- - - "~>"
59
+ - - ">="
54
60
  - !ruby/object:Gem::Version
55
- version: '1.6'
61
+ version: '0'
56
62
  - !ruby/object:Gem::Dependency
57
63
  name: rake
58
64
  requirement: !ruby/object:Gem::Requirement
@@ -89,18 +95,9 @@ executables: []
89
95
  extensions: []
90
96
  extra_rdoc_files: []
91
97
  files:
92
- - ".codeclimate.yml"
93
- - ".gitignore"
94
- - ".rspec"
95
- - ".travis.yml"
96
- - ".yardopts"
97
98
  - CHANGELOG.md
98
- - CONTRIBUTING.md
99
- - Gemfile
100
99
  - LICENSE.txt
101
100
  - README.md
102
- - Rakefile
103
- - docker-compose.yml
104
101
  - lib/rom-elasticsearch.rb
105
102
  - lib/rom/elasticsearch.rb
106
103
  - lib/rom/elasticsearch/attribute.rb
@@ -114,38 +111,10 @@ files:
114
111
  - lib/rom/elasticsearch/relation.rb
115
112
  - lib/rom/elasticsearch/relation/loaded.rb
116
113
  - lib/rom/elasticsearch/schema.rb
114
+ - lib/rom/elasticsearch/scroll_methods.rb
117
115
  - lib/rom/elasticsearch/types.rb
118
116
  - lib/rom/elasticsearch/version.rb
119
- - rom-elasticsearch.gemspec
120
- - spec/integration/rom/elasticsearch/relation/command_spec.rb
121
- - spec/integration/rom/elasticsearch/relation/multi_index_spec.rb
122
- - spec/integration/rom/elasticsearch/relation/schema_spec.rb
123
- - spec/shared/setup.rb
124
- - spec/shared/unit/user_fixtures.rb
125
- - spec/shared/unit/users.rb
126
- - spec/spec_helper.rb
127
- - spec/unit/rom/elasticsearch/dataset/body_spec.rb
128
- - spec/unit/rom/elasticsearch/dataset/delete_spec.rb
129
- - spec/unit/rom/elasticsearch/dataset/params_spec.rb
130
- - spec/unit/rom/elasticsearch/dataset/put_spec.rb
131
- - spec/unit/rom/elasticsearch/dataset/query_string_spec.rb
132
- - spec/unit/rom/elasticsearch/dataset/search_spec.rb
133
- - spec/unit/rom/elasticsearch/gateway_spec.rb
134
- - spec/unit/rom/elasticsearch/plugins/relation/query_dsl_spec.rb
135
- - spec/unit/rom/elasticsearch/relation/call_spec.rb
136
- - spec/unit/rom/elasticsearch/relation/create_index_spec.rb
137
- - spec/unit/rom/elasticsearch/relation/dataset_spec.rb
138
- - spec/unit/rom/elasticsearch/relation/delete_spec.rb
139
- - spec/unit/rom/elasticsearch/relation/get_spec.rb
140
- - spec/unit/rom/elasticsearch/relation/map_spec.rb
141
- - spec/unit/rom/elasticsearch/relation/order_spec.rb
142
- - spec/unit/rom/elasticsearch/relation/page_spec.rb
143
- - spec/unit/rom/elasticsearch/relation/pluck_spec.rb
144
- - spec/unit/rom/elasticsearch/relation/query_spec.rb
145
- - spec/unit/rom/elasticsearch/relation/query_string_spec.rb
146
- - spec/unit/rom/elasticsearch/relation/search_spec.rb
147
- - spec/unit/rom/elasticsearch/relation/to_a_spec.rb
148
- homepage: http://rom-rb.org
117
+ homepage: https://rom-rb.org
149
118
  licenses:
150
119
  - MIT
151
120
  metadata: {}
@@ -164,37 +133,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
164
133
  - !ruby/object:Gem::Version
165
134
  version: '0'
166
135
  requirements: []
167
- rubyforge_project:
168
- rubygems_version: 2.7.4
136
+ rubygems_version: 3.0.3
169
137
  signing_key:
170
138
  specification_version: 4
171
139
  summary: ROM adapter for Elasticsearch
172
- test_files:
173
- - spec/integration/rom/elasticsearch/relation/command_spec.rb
174
- - spec/integration/rom/elasticsearch/relation/multi_index_spec.rb
175
- - spec/integration/rom/elasticsearch/relation/schema_spec.rb
176
- - spec/shared/setup.rb
177
- - spec/shared/unit/user_fixtures.rb
178
- - spec/shared/unit/users.rb
179
- - spec/spec_helper.rb
180
- - spec/unit/rom/elasticsearch/dataset/body_spec.rb
181
- - spec/unit/rom/elasticsearch/dataset/delete_spec.rb
182
- - spec/unit/rom/elasticsearch/dataset/params_spec.rb
183
- - spec/unit/rom/elasticsearch/dataset/put_spec.rb
184
- - spec/unit/rom/elasticsearch/dataset/query_string_spec.rb
185
- - spec/unit/rom/elasticsearch/dataset/search_spec.rb
186
- - spec/unit/rom/elasticsearch/gateway_spec.rb
187
- - spec/unit/rom/elasticsearch/plugins/relation/query_dsl_spec.rb
188
- - spec/unit/rom/elasticsearch/relation/call_spec.rb
189
- - spec/unit/rom/elasticsearch/relation/create_index_spec.rb
190
- - spec/unit/rom/elasticsearch/relation/dataset_spec.rb
191
- - spec/unit/rom/elasticsearch/relation/delete_spec.rb
192
- - spec/unit/rom/elasticsearch/relation/get_spec.rb
193
- - spec/unit/rom/elasticsearch/relation/map_spec.rb
194
- - spec/unit/rom/elasticsearch/relation/order_spec.rb
195
- - spec/unit/rom/elasticsearch/relation/page_spec.rb
196
- - spec/unit/rom/elasticsearch/relation/pluck_spec.rb
197
- - spec/unit/rom/elasticsearch/relation/query_spec.rb
198
- - spec/unit/rom/elasticsearch/relation/query_string_spec.rb
199
- - spec/unit/rom/elasticsearch/relation/search_spec.rb
200
- - spec/unit/rom/elasticsearch/relation/to_a_spec.rb
140
+ test_files: []