rom-elasticsearch 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4d16fc720d3b0bbdbb8c31b3e44a301b663eb0cac2ba00b7949414b38576c26a
4
- data.tar.gz: b86bb549184a72684d21578805ea393a87e6f0d1e665f0a82b8ccd6831065a2a
3
+ metadata.gz: c2706a7a8a9fcde89b7ad2a6965594a1891c39fb27a9faade8273793499a920c
4
+ data.tar.gz: 6710ed9229b728d2db9b391b759f7236bad238ede805469098bf46d72c9f1e88
5
5
  SHA512:
6
- metadata.gz: 4da96f9e4092383134b09d7b81e5c972f99463e13f4a1fd9430a74c64e9a1b2b292b8e9e7060ce0ca46e963be59942d992bac2a0815651316bcd93c81ee75e02
7
- data.tar.gz: e1e82ac281fcecbce51a7c00fc08ba39c0a52cdd33a1d4f4e829e988621b17471bd63cc565e04f9f823f1cf8a024c0d93997fd3847ca336b72836ff7f32cadd2
6
+ metadata.gz: fd2e9eb744108d4a89ca01631b8a228e46bdde76d40b4ca507eb225085e93aa78414e2e350fff512929df569a5da0b56584c28f70980cbf9180ed3db36bae114
7
+ data.tar.gz: 8f6ae092b5ec62eb5550d78e9b0b844f20c135c8adc95ff9528189e63a16741c4953974a21dcf9418f75cb863c4a784de3fee78984d2cff6fcad21e2ce0b8b4a
data/CHANGELOG.md CHANGED
@@ -1,4 +1,16 @@
1
- # v0.4.0 2019-04-28
1
+ <!--- DO NOT EDIT THIS FILE - IT'S AUTOMATICALLY GENERATED VIA DEVTOOLS --->
2
+
3
+ ## 0.5.0 2021-06-05
4
+
5
+
6
+ ### Changed
7
+
8
+ - Upgrade to elasticsearch ~> 7.13 (via #25) (@demsullivan + @solnic)
9
+
10
+ [Compare v0.4.0...v0.5.0](https://github.com/rom-rb/rom-elasticsearch/compare/v0.4.0...v0.5.0)
11
+
12
+ ## 0.4.0 2019-04-28
13
+
2
14
 
3
15
  ### Added
4
16
 
@@ -11,24 +23,29 @@
11
23
 
12
24
  [Compare v0.3.0...v0.4.0](https://github.com/rom-rb/rom-elasticsearch/compare/v0.3.0...v0.4.0)
13
25
 
14
- # v0.3.0 2018-03-12
26
+ ## 0.3.0 2018-03-12
27
+
15
28
 
16
29
  ### Added
17
30
 
18
31
  - Support for multi-index relations via `schema(multi: true)` (solnic)
19
32
  - Datasets can be configured to include `_metadata` in resulting tuples (solnic)
20
33
 
34
+
21
35
  [Compare v0.2.1...v0.3.0](https://github.com/rom-rb/rom-elasticsearch/compare/v0.2.1...v0.3.0)
22
36
 
23
- # v0.2.1 2018-02-06
37
+ ## 0.2.1 2018-02-06
38
+
24
39
 
25
40
  ### Fixed
26
41
 
27
42
  - Using `read` types in schemas no longer breaks indexing (solnic)
28
43
 
44
+
29
45
  [Compare v0.2.0...v0.2.1](https://github.com/rom-rb/rom-elasticsearch/compare/v0.2.0...v0.2.1)
30
46
 
31
- # v0.2.0 2018-01-23
47
+ ## 0.2.0 2018-01-23
48
+
32
49
 
33
50
  ### Added
34
51
 
@@ -37,14 +54,18 @@
37
54
  - `Relation#per_page` which sets `:size` (solnic)
38
55
  - `Relation#call` returns custom `ROM::Elasticsearch::Relation::Loaded` object, which provides access to `#total_hits` and raw client response (solnic)
39
56
 
57
+
40
58
  [Compare v0.1.1...v0.2.0](https://github.com/rom-rb/rom-elasticsearch/compare/v0.1.1...v0.2.0)
41
59
 
42
- # v0.1.1 2017-11-18
60
+ ## 0.1.1 2017-11-18
61
+
43
62
 
44
63
  ### Changed
45
64
 
46
65
  - Connection URI is passed directly to the ES client now (solnic)
47
66
 
48
- # v0.1.0 2017-11-17
67
+ [Compare v0.1.0...v0.1.1](https://github.com/rom-rb/rom-elasticsearch/compare/v0.1.0...v0.1.1)
68
+
69
+ ## 0.1.0 2017-11-17
49
70
 
50
71
  First public release
data/README.md CHANGED
@@ -1,39 +1,28 @@
1
1
  [gem]: https://rubygems.org/gems/rom-elasticsearch
2
- [travis]: https://travis-ci.org/rom-rb/rom-elasticsearch
3
- [codeclimate]: https://codeclimate.com/github/rom-rb/rom-elasticsearch
4
- [inchpages]: http://inch-ci.org/github/rom-rb/rom-elasticsearch
2
+ [actions]: https://github.com/rom-rb/rom-elasticsearch/actions
3
+ [codacy]: https://www.codacy.com/gh/rom-rb/rom-elasticsearch
5
4
  [chat]: https://rom-rb.zulipchat.com
5
+ [inchpages]: http://inch-ci.org/github/rom-rb/rom-elasticsearch
6
6
 
7
- # rom-elasticsearch [![Join the chat at https://rom-rb.zulipchat.com](https://img.shields.io/badge/rom--rb-join%20chat-942283.svg)][chat]
7
+ # rom-elasticsearch [![Join the chat at https://rom-rb.zulipchat.com](https://img.shields.io/badge/rom--rb-join%20chat-%23346b7a.svg)][chat]
8
8
 
9
9
  [![Gem Version](https://badge.fury.io/rb/rom-elasticsearch.svg)][gem]
10
- [![Build Status](https://travis-ci.org/rom-rb/rom-elasticsearch.svg?branch=master)][travis]
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]
10
+ [![CI Status](https://github.com/rom-rb/rom-elasticsearch/workflows/ci/badge.svg)][actions]
11
+ [![Codacy Badge](https://api.codacy.com/project/badge/Grade/9882fd022f904b48b5359b799b59ae88)][codacy]
12
+ [![Codacy Badge](https://api.codacy.com/project/badge/Coverage/9882fd022f904b48b5359b799b59ae88)][codacy]
13
13
  [![Inline docs](http://inch-ci.org/github/rom-rb/rom-elasticsearch.svg?branch=master)][inchpages]
14
14
 
15
- Elasticsearch support for [rom-rb](https://github.com/rom-rb/rom).
16
-
17
- Resources:
18
-
19
- - [User Documentation](http://rom-rb.org/learn/elasticsearch/)
20
- - [API Documentation](http://rubydoc.info/gems/rom-elasticsearch)
21
-
22
- ## Installation
23
-
24
- Add this line to your application's Gemfile:
25
-
26
- ```ruby
27
- gem 'rom-elasticsearch'
28
- ```
15
+ ## Links
29
16
 
30
- And then execute:
17
+ * [User documentation](http://rom-rb.org/learn/elasticsearch)
18
+ * [API documentation](http://rubydoc.info/gems/rom-elasticsearch)
31
19
 
32
- $ bundle
20
+ ## Supported Ruby versions
33
21
 
34
- Or install it yourself as:
22
+ This library officially supports the following Ruby versions:
35
23
 
36
- $ gem install rom-elasticsearch
24
+ * MRI >= `2.5`
25
+ * jruby >= `9.2`
37
26
 
38
27
  ## License
39
28
 
@@ -1,3 +1,3 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'rom/elasticsearch'
3
+ require "rom/elasticsearch"
@@ -1,10 +1,10 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'rom/core'
3
+ require "rom/core"
4
4
 
5
- require 'rom/elasticsearch/version'
6
- require 'rom/elasticsearch/gateway'
7
- require 'rom/elasticsearch/relation'
8
- require 'rom/elasticsearch/commands'
5
+ require "rom/elasticsearch/version"
6
+ require "rom/elasticsearch/gateway"
7
+ require "rom/elasticsearch/relation"
8
+ require "rom/elasticsearch/commands"
9
9
 
10
10
  ROM.register_adapter(:elasticsearch, ROM::Elasticsearch)
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'rom/attribute'
3
+ require "rom/attribute"
4
4
 
5
5
  module ROM
6
6
  module Elasticsearch
@@ -9,7 +9,7 @@ module ROM
9
9
  # @api public
10
10
  class Attribute < ROM::Attribute
11
11
  INTERNAL_META_KEYS = %i[name source primary_key read].freeze
12
- DEFAULT_SORT_DIRECTION = 'asc'.freeze
12
+ DEFAULT_SORT_DIRECTION = "asc"
13
13
 
14
14
  # Return ES mapping properties
15
15
  #
@@ -26,7 +26,7 @@ module ROM
26
26
  #
27
27
  # @api public
28
28
  def properties?
29
- properties.size > 0
29
+ properties.size.positive?
30
30
  end
31
31
 
32
32
  # Return attribute with direction set to ascending
@@ -35,7 +35,7 @@ module ROM
35
35
  #
36
36
  # @api public
37
37
  def asc
38
- meta(direction: 'asc')
38
+ meta(direction: "asc")
39
39
  end
40
40
 
41
41
  # Return attribute with direction set to descending
@@ -44,7 +44,7 @@ module ROM
44
44
  #
45
45
  # @api public
46
46
  def desc
47
- meta(direction: 'desc')
47
+ meta(direction: "desc")
48
48
  end
49
49
 
50
50
  # @api private
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'rom/commands'
3
+ require "rom/commands"
4
4
 
5
5
  module ROM
6
6
  module Elasticsearch
@@ -22,7 +22,7 @@ module ROM
22
22
  else
23
23
  dataset.put(tuple)
24
24
  end
25
- [relation.get(result['_id']).one]
25
+ [relation.get(result["_id"]).one]
26
26
  end
27
27
 
28
28
  private
@@ -1,10 +1,10 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'rom/initializer'
3
+ require "rom/initializer"
4
4
 
5
- require 'rom/elasticsearch/query_methods'
6
- require 'rom/elasticsearch/scroll_methods'
7
- require 'rom/elasticsearch/errors'
5
+ require "rom/elasticsearch/query_methods"
6
+ require "rom/elasticsearch/scroll_methods"
7
+ require "rom/elasticsearch/errors"
8
8
 
9
9
  module ROM
10
10
  module Elasticsearch
@@ -25,13 +25,13 @@ module ROM
25
25
  include ScrollMethods
26
26
 
27
27
  # Sort values separator
28
- SORT_VALUES_SEPARATOR = ','.freeze
28
+ SORT_VALUES_SEPARATOR = ","
29
29
 
30
30
  # Default query options
31
- ALL = { query: { match_all: EMPTY_HASH } }.freeze
31
+ ALL = {query: {match_all: EMPTY_HASH}}.freeze
32
32
 
33
33
  # The source key in raw results
34
- SOURCE_KEY = '_source'.freeze
34
+ SOURCE_KEY = "_source"
35
35
 
36
36
  # @!attribute [r] client
37
37
  # @return [::Elasticsearch::Client] configured client from the gateway
@@ -65,7 +65,7 @@ module ROM
65
65
  TUPLE_PROC_WITH_METADATA = -> t { TUPLE_PROC[t].merge(_metadata: t) }
66
66
 
67
67
  # @api private
68
- def initialize(*args)
68
+ def initialize(*args, **kwargs)
69
69
  super
70
70
  @tuple_proc = options[:include_metadata] ? TUPLE_PROC_WITH_METADATA : TUPLE_PROC
71
71
  end
@@ -87,7 +87,7 @@ module ROM
87
87
  #
88
88
  # @api public
89
89
  def settings
90
- client.indices.get_settings[index.to_s]['settings']['index']
90
+ client.indices.get_settings[index.to_s]["settings"]["index"]
91
91
  end
92
92
 
93
93
  # Return index mappings
@@ -96,7 +96,7 @@ module ROM
96
96
  #
97
97
  # @api public
98
98
  def mappings
99
- client.indices.get_mapping[index.to_s]['mappings'][type.to_s]
99
+ client.indices.get_mapping[index.to_s]["mappings"]
100
100
  end
101
101
 
102
102
  # Delete everything matching configured params and/or body
@@ -134,6 +134,7 @@ module ROM
134
134
  # @api public
135
135
  def each
136
136
  return to_enum unless block_given?
137
+
137
138
  view.each { |result| yield(tuple_proc[result]) }
138
139
  rescue ::Elasticsearch::Transport::Transport::Error => e
139
140
  raise SearchError.new(e, options)
@@ -283,7 +284,7 @@ module ROM
283
284
  elsif params[:scroll]
284
285
  scroll_enumerator(client, response)
285
286
  else
286
- response.fetch('hits').fetch('hits')
287
+ response.fetch("hits").fetch("hits")
287
288
  end
288
289
  end
289
290
 
@@ -1,12 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'elasticsearch'
4
- require 'uri'
3
+ require "elasticsearch"
4
+ require "uri"
5
5
 
6
- require 'rom/gateway'
7
- require 'rom/support/inflector'
8
- require 'rom/elasticsearch/dataset'
9
- require 'rom/elasticsearch/index_name'
6
+ require "rom/gateway"
7
+ require "rom/support/inflector"
8
+ require "rom/elasticsearch/dataset"
9
+ require "rom/elasticsearch/index_name"
10
10
 
11
11
  module ROM
12
12
  module Elasticsearch
@@ -38,8 +38,14 @@ module ROM
38
38
  #
39
39
  # posts.like('Hello').first
40
40
  #
41
+ # @example using an existing client
42
+ # client = Elasticsearch::Client.new('http://localhost:9200')
43
+ # conf = ROM::Configuration.new(:elasticsearch, client: client)
44
+ #
41
45
  # @api public
42
46
  class Gateway < ROM::Gateway
47
+ extend ROM::Initializer
48
+
43
49
  adapter :elasticsearch
44
50
 
45
51
  # @!attribute [r] url
@@ -50,11 +56,9 @@ module ROM
50
56
  # @return [::Elasticsearch::Client] configured ES client
51
57
  attr_reader :client
52
58
 
53
- # @api private
54
- def initialize(uri, log: false)
55
- @url = URI.parse(uri)
56
- @client = ::Elasticsearch::Client.new(url: url, log: log)
57
- end
59
+ param :uri, default: proc {}
60
+ option :client, default: -> { ::Elasticsearch::Client.new(url: uri, log: log) }
61
+ option :log, default: -> { false }
58
62
 
59
63
  # Return true if a dataset with the given :index exists
60
64
  #
@@ -77,7 +81,7 @@ module ROM
77
81
  # @api public
78
82
  def dataset(index)
79
83
  idx_name = IndexName[index]
80
- Dataset.new(client, params: { index: idx_name.to_sym, type: idx_name.type })
84
+ Dataset.new(client, params: {index: idx_name.to_sym})
81
85
  end
82
86
  alias_method :[], :dataset
83
87
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'rom/support/inflector'
3
+ require "rom/support/inflector"
4
4
 
5
5
  module ROM
6
6
  module Elasticsearch
@@ -9,34 +9,24 @@ module ROM
9
9
  # @api private
10
10
  attr_reader :name
11
11
 
12
- # @api private
13
- attr_reader :types
14
-
15
- def self.[](name, types = nil)
12
+ def self.[](name)
16
13
  if name.is_a?(self)
17
14
  name
18
15
  else
19
- new(name, types)
16
+ new(name)
20
17
  end
21
18
  end
22
19
 
23
20
  # @api private
24
- def initialize(name, types = nil)
21
+ def initialize(name)
25
22
  @name = name
26
- @types = types
27
23
  freeze
28
24
  end
29
25
 
30
- # @api private
31
- def type
32
- types ? Array(types).join(',') : Inflector.singularize(name).to_sym
33
- end
34
-
35
26
  # @api private
36
27
  def to_sym
37
28
  name
38
29
  end
39
30
  end
40
-
41
31
  end
42
32
  end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'rom/global'
4
- require 'elasticsearch/dsl'
3
+ require "rom/global"
4
+ require "elasticsearch/dsl"
5
5
 
6
6
  module ROM
7
7
  module Elasticsearch
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'rom/elasticsearch/errors'
3
+ require "rom/elasticsearch/errors"
4
4
 
5
5
  module ROM
6
6
  module Elasticsearch
@@ -46,7 +46,7 @@ module ROM
46
46
  #
47
47
  # @api public
48
48
  def query_string(expression)
49
- query(query_string: { query: expression })
49
+ query(query_string: {query: expression})
50
50
  end
51
51
 
52
52
  # Return a new dataset configured to search via :query body option
@@ -1,12 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'rom/relation'
3
+ require "rom/relation"
4
4
 
5
- require 'rom/elasticsearch/index_name'
6
- require 'rom/elasticsearch/relation/loaded'
7
- require 'rom/elasticsearch/types'
8
- require 'rom/elasticsearch/schema'
9
- require 'rom/elasticsearch/attribute'
5
+ require "rom/elasticsearch/index_name"
6
+ require "rom/elasticsearch/relation/loaded"
7
+ require "rom/elasticsearch/types"
8
+ require "rom/elasticsearch/schema"
9
+ require "rom/elasticsearch/attribute"
10
10
 
11
11
  module ROM
12
12
  module Elasticsearch
@@ -130,17 +130,17 @@ module ROM
130
130
 
131
131
  # Default index settings that can be overridden
132
132
  index_settings(
133
- { number_of_shards: 1,
134
- index: {
135
- analysis: {
136
- analyzer: {
137
- standard_stopwords: {
138
- type: "standard",
139
- stopwords: "_english_"
140
- }
141
- }
142
- }
143
- } }.freeze
133
+ {number_of_shards: 1,
134
+ index: {
135
+ analysis: {
136
+ analyzer: {
137
+ standard_stopwords: {
138
+ type: "standard",
139
+ stopwords: "_english_"
140
+ }
141
+ }
142
+ }
143
+ }}.freeze
144
144
  )
145
145
 
146
146
  # Define a schema for the relation
@@ -148,7 +148,7 @@ module ROM
148
148
  # @return [self]
149
149
  def self.schema(dataset = nil, multi: false, **opts, &block)
150
150
  if multi
151
- super(IndexName[:_all, multi_index_types], **opts, &block)
151
+ super(IndexName[:_all], **opts, &block)
152
152
  else
153
153
  super(dataset, **opts, &block)
154
154
  end
@@ -339,9 +339,8 @@ module ROM
339
339
  def count
340
340
  dataset.client.count(
341
341
  index: dataset.index,
342
- type: dataset.type,
343
342
  body: dataset.body
344
- )['count']
343
+ )["count"]
345
344
  end
346
345
 
347
346
  # Restrict relation data by offset
@@ -378,10 +377,11 @@ module ROM
378
377
  #
379
378
  # @api private
380
379
  def index_params
381
- { index: name.dataset.to_sym,
382
- body: {
383
- settings: self.class.index_settings,
384
- mappings: { dataset.type => { properties: schema.to_properties } } } }
380
+ {index: name.dataset.to_sym,
381
+ body: {
382
+ settings: self.class.index_settings,
383
+ mappings: {properties: schema.to_properties}
384
+ }}
385
385
  end
386
386
  end
387
387
  end
@@ -13,7 +13,7 @@ module ROM
13
13
  #
14
14
  # @api public
15
15
  def total_hits
16
- response['hits']['total']
16
+ response["hits"]["total"]["value"]
17
17
  end
18
18
 
19
19
  # Return raw response from the ES client
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'rom/types'
4
- require 'rom/schema'
3
+ require "rom/types"
4
+ require "rom/schema"
5
5
 
6
6
  module ROM
7
7
  module Elasticsearch
@@ -23,13 +23,13 @@ module ROM
23
23
  def scroll_enumerator(client, response)
24
24
  Enumerator.new do |yielder|
25
25
  loop do
26
- hits = response.fetch('hits').fetch('hits')
26
+ hits = response.fetch("hits").fetch("hits")
27
27
  break if hits.empty?
28
28
 
29
29
  hits.each { |result| yielder.yield(result) }
30
30
 
31
31
  response = client.scroll(
32
- scroll_id: response.fetch('_scroll_id'),
32
+ scroll_id: response.fetch("_scroll_id"),
33
33
  scroll: params[:scroll]
34
34
  )
35
35
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'rom/types'
3
+ require "rom/types"
4
4
 
5
5
  module ROM
6
6
  module Elasticsearch
@@ -19,7 +19,7 @@ module ROM
19
19
  #
20
20
  # @api public
21
21
  def self.Keyword(meta = {})
22
- String.meta(type: 'keyword', **meta)
22
+ String.meta(type: "keyword", **meta)
23
23
  end
24
24
 
25
25
  # Define a keyword attribute type
@@ -28,7 +28,7 @@ module ROM
28
28
  #
29
29
  # @api public
30
30
  def self.Text(meta = {})
31
- String.meta(type: 'text', **meta)
31
+ String.meta(type: "text", **meta)
32
32
  end
33
33
  end
34
34
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ROM
4
4
  module Elasticsearch
5
- VERSION = '0.4.0'
5
+ VERSION = "0.5.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rom-elasticsearch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hannes Nevalainen
8
8
  - Piotr Solnica
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-04-28 00:00:00.000000000 Z
12
+ date: 2021-06-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rom-core
@@ -17,34 +17,34 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: '5.0'
20
+ version: '5.2'
21
21
  - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: 5.0.1
23
+ version: 5.2.5
24
24
  type: :runtime
25
25
  prerelease: false
26
26
  version_requirements: !ruby/object:Gem::Requirement
27
27
  requirements:
28
28
  - - "~>"
29
29
  - !ruby/object:Gem::Version
30
- version: '5.0'
30
+ version: '5.2'
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 5.0.1
33
+ version: 5.2.5
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: elasticsearch
36
36
  requirement: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '6.0'
40
+ version: '7.0'
41
41
  type: :runtime
42
42
  prerelease: false
43
43
  version_requirements: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '6.0'
47
+ version: '7.0'
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: bundler
50
50
  requirement: !ruby/object:Gem::Requirement
@@ -96,7 +96,6 @@ extensions: []
96
96
  extra_rdoc_files: []
97
97
  files:
98
98
  - CHANGELOG.md
99
- - LICENSE.txt
100
99
  - README.md
101
100
  - lib/rom-elasticsearch.rb
102
101
  - lib/rom/elasticsearch.rb
@@ -118,7 +117,7 @@ homepage: https://rom-rb.org
118
117
  licenses:
119
118
  - MIT
120
119
  metadata: {}
121
- post_install_message:
120
+ post_install_message:
122
121
  rdoc_options: []
123
122
  require_paths:
124
123
  - lib
@@ -133,8 +132,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
133
132
  - !ruby/object:Gem::Version
134
133
  version: '0'
135
134
  requirements: []
136
- rubygems_version: 3.0.3
137
- signing_key:
135
+ rubygems_version: 3.2.15
136
+ signing_key:
138
137
  specification_version: 4
139
138
  summary: ROM adapter for Elasticsearch
140
139
  test_files: []
data/LICENSE.txt DELETED
@@ -1,22 +0,0 @@
1
- Copyright (c) rom-rb team
2
-
3
- MIT License
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- "Software"), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.