elasticsearch-persistence 7.1.2.pre → 7.2.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 +4 -4
 - data/Gemfile +1 -1
 - data/README.md +2 -2
 - data/Rakefile +4 -4
 - data/elasticsearch-persistence.gemspec +2 -4
 - data/examples/notes/Gemfile +1 -1
 - data/examples/notes/application.rb +1 -1
 - data/examples/notes/test.rb +2 -2
 - data/lib/elasticsearch/persistence.rb +1 -1
 - data/lib/elasticsearch/persistence/repository.rb +1 -1
 - data/lib/elasticsearch/persistence/repository/dsl.rb +1 -1
 - data/lib/elasticsearch/persistence/repository/find.rb +1 -1
 - data/lib/elasticsearch/persistence/repository/response/results.rb +1 -1
 - data/lib/elasticsearch/persistence/repository/search.rb +1 -1
 - data/lib/elasticsearch/persistence/repository/serialize.rb +1 -1
 - data/lib/elasticsearch/persistence/repository/store.rb +1 -1
 - data/lib/elasticsearch/persistence/version.rb +2 -2
 - data/spec/repository/find_spec.rb +1 -1
 - data/spec/repository/response/results_spec.rb +1 -1
 - data/spec/repository/search_spec.rb +1 -1
 - data/spec/repository/serialize_spec.rb +1 -1
 - data/spec/repository/store_spec.rb +1 -1
 - data/spec/repository_spec.rb +3 -3
 - data/spec/spec_helper.rb +1 -1
 - metadata +7 -21
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 992d476265b824785559c687b7def7f1ce6973457c24dd1e87d6f309468aff17
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 0c0af789fe389b2cdb70c5595ab2f9fd154ef10bd3a1309990533f25c3372596
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: ad07506aad3f74c8b799d6042f873abc926331b7d7efa8c4bfc41d1e3ecf77445be4a6baf84ad4c999c52c8b912f7dd963bc9588f7156ea0019000f097a24087
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: f276125a0f9e99bc6cd5e330e17f12cfeafe172bd9b5da4b1b361106a2d423728d5e9936019e20cd6a32d8e2b96a173b3fec191c2cd909e0b1a37dc5f7110abf
         
     | 
    
        data/Gemfile
    CHANGED
    
    | 
         @@ -6,7 +6,7 @@ 
     | 
|
| 
       6 
6 
     | 
    
         
             
            # not use this file except in compliance with the License.
         
     | 
| 
       7 
7 
     | 
    
         
             
            # You may obtain a copy of the License at
         
     | 
| 
       8 
8 
     | 
    
         
             
            #
         
     | 
| 
       9 
     | 
    
         
            -
            # 
     | 
| 
      
 9 
     | 
    
         
            +
            #   http://www.apache.org/licenses/LICENSE-2.0
         
     | 
| 
       10 
10 
     | 
    
         
             
            #
         
     | 
| 
       11 
11 
     | 
    
         
             
            # Unless required by applicable law or agreed to in writing,
         
     | 
| 
       12 
12 
     | 
    
         
             
            # software distributed under the License is distributed on an
         
     | 
    
        data/README.md
    CHANGED
    
    | 
         @@ -236,7 +236,7 @@ You can also override the default configuration with options passed to the initi 
     | 
|
| 
       236 
236 
     | 
    
         | 
| 
       237 
237 
     | 
    
         
             
            ```ruby
         
     | 
| 
       238 
238 
     | 
    
         
             
            client = Elasticsearch::Client.new(url: 'http://localhost:9250', log: true)
         
     | 
| 
       239 
     | 
    
         
            -
            client.transport.logger.formatter = proc { |s, d, p, m| "\e[2m# #{m}\n\e[0m" }
         
     | 
| 
      
 239 
     | 
    
         
            +
            client.transport.transport.logger.formatter = proc { |s, d, p, m| "\e[2m# #{m}\n\e[0m" }
         
     | 
| 
       240 
240 
     | 
    
         
             
            repository = NoteRepository.new(client: client, index_name: 'notes_development')
         
     | 
| 
       241 
241 
     | 
    
         | 
| 
       242 
242 
     | 
    
         
             
            repository.create_index!(force: true)
         
     | 
| 
         @@ -267,7 +267,7 @@ The repository uses the standard Elasticsearch [client](https://github.com/elast 
     | 
|
| 
       267 
267 
     | 
    
         
             
            ```ruby
         
     | 
| 
       268 
268 
     | 
    
         
             
            client = Elasticsearch::Client.new(url: 'http://search.server.org')
         
     | 
| 
       269 
269 
     | 
    
         
             
            repository = NoteRepository.new(client: client)
         
     | 
| 
       270 
     | 
    
         
            -
            repository.client.transport.logger = Logger.new(STDERR)
         
     | 
| 
      
 270 
     | 
    
         
            +
            repository.client.transport.transport.logger = Logger.new(STDERR)
         
     | 
| 
       271 
271 
     | 
    
         
             
            repository.client
         
     | 
| 
       272 
272 
     | 
    
         
             
            # => Elasticsearch::Client
         
     | 
| 
       273 
273 
     | 
    
         | 
    
        data/Rakefile
    CHANGED
    
    | 
         @@ -6,7 +6,7 @@ 
     | 
|
| 
       6 
6 
     | 
    
         
             
            # not use this file except in compliance with the License.
         
     | 
| 
       7 
7 
     | 
    
         
             
            # You may obtain a copy of the License at
         
     | 
| 
       8 
8 
     | 
    
         
             
            #
         
     | 
| 
       9 
     | 
    
         
            -
            # 
     | 
| 
      
 9 
     | 
    
         
            +
            #   http://www.apache.org/licenses/LICENSE-2.0
         
     | 
| 
       10 
10 
     | 
    
         
             
            #
         
     | 
| 
       11 
11 
     | 
    
         
             
            # Unless required by applicable law or agreed to in writing,
         
     | 
| 
       12 
12 
     | 
    
         
             
            # software distributed under the License is distributed on an
         
     | 
| 
         @@ -40,11 +40,11 @@ end 
     | 
|
| 
       40 
40 
     | 
    
         
             
            namespace :bundle do
         
     | 
| 
       41 
41 
     | 
    
         
             
              desc 'Install gem dependencies'
         
     | 
| 
       42 
42 
     | 
    
         
             
              task :install do
         
     | 
| 
       43 
     | 
    
         
            -
                puts '-'*80
         
     | 
| 
       44 
     | 
    
         
            -
                Bundler. 
     | 
| 
      
 43 
     | 
    
         
            +
                puts '-' * 80
         
     | 
| 
      
 44 
     | 
    
         
            +
                Bundler.with_unbundled_env do
         
     | 
| 
       45 
45 
     | 
    
         
             
                  sh 'bundle install'
         
     | 
| 
       46 
46 
     | 
    
         
             
                end
         
     | 
| 
       47 
     | 
    
         
            -
                puts '-'*80
         
     | 
| 
      
 47 
     | 
    
         
            +
                puts '-' * 80
         
     | 
| 
       48 
48 
     | 
    
         
             
              end
         
     | 
| 
       49 
49 
     | 
    
         
             
            end
         
     | 
| 
       50 
50 
     | 
    
         | 
| 
         @@ -6,7 +6,7 @@ 
     | 
|
| 
       6 
6 
     | 
    
         
             
            # not use this file except in compliance with the License.
         
     | 
| 
       7 
7 
     | 
    
         
             
            # You may obtain a copy of the License at
         
     | 
| 
       8 
8 
     | 
    
         
             
            #
         
     | 
| 
       9 
     | 
    
         
            -
            # 
     | 
| 
      
 9 
     | 
    
         
            +
            #   http://www.apache.org/licenses/LICENSE-2.0
         
     | 
| 
       10 
10 
     | 
    
         
             
            #
         
     | 
| 
       11 
11 
     | 
    
         
             
            # Unless required by applicable law or agreed to in writing,
         
     | 
| 
       12 
12 
     | 
    
         
             
            # software distributed under the License is distributed on an
         
     | 
| 
         @@ -41,7 +41,7 @@ Gem::Specification.new do |s| 
     | 
|
| 
       41 
41 
     | 
    
         
             
              s.required_ruby_version = ">= 1.9.3"
         
     | 
| 
       42 
42 
     | 
    
         | 
| 
       43 
43 
     | 
    
         
             
              s.add_dependency "elasticsearch",       '~> 7'
         
     | 
| 
       44 
     | 
    
         
            -
              s.add_dependency "elasticsearch-model", '7. 
     | 
| 
      
 44 
     | 
    
         
            +
              s.add_dependency "elasticsearch-model", '7.2.0'
         
     | 
| 
       45 
45 
     | 
    
         
             
              s.add_dependency "activesupport",       '> 4'
         
     | 
| 
       46 
46 
     | 
    
         
             
              s.add_dependency "activemodel",         '> 4'
         
     | 
| 
       47 
47 
     | 
    
         
             
              s.add_dependency "hashie"
         
     | 
| 
         @@ -53,8 +53,6 @@ Gem::Specification.new do |s| 
     | 
|
| 
       53 
53 
     | 
    
         | 
| 
       54 
54 
     | 
    
         
             
              s.add_development_dependency "rails", '> 4'
         
     | 
| 
       55 
55 
     | 
    
         | 
| 
       56 
     | 
    
         
            -
              s.add_development_dependency "elasticsearch-extensions"
         
     | 
| 
       57 
     | 
    
         
            -
             
     | 
| 
       58 
56 
     | 
    
         
             
              s.add_development_dependency "minitest"
         
     | 
| 
       59 
57 
     | 
    
         
             
              s.add_development_dependency "test-unit"
         
     | 
| 
       60 
58 
     | 
    
         
             
              s.add_development_dependency "shoulda-context"
         
     | 
    
        data/examples/notes/Gemfile
    CHANGED
    
    | 
         @@ -6,7 +6,7 @@ 
     | 
|
| 
       6 
6 
     | 
    
         
             
            # not use this file except in compliance with the License.
         
     | 
| 
       7 
7 
     | 
    
         
             
            # You may obtain a copy of the License at
         
     | 
| 
       8 
8 
     | 
    
         
             
            #
         
     | 
| 
       9 
     | 
    
         
            -
            # 
     | 
| 
      
 9 
     | 
    
         
            +
            #   http://www.apache.org/licenses/LICENSE-2.0
         
     | 
| 
       10 
10 
     | 
    
         
             
            #
         
     | 
| 
       11 
11 
     | 
    
         
             
            # Unless required by applicable law or agreed to in writing,
         
     | 
| 
       12 
12 
     | 
    
         
             
            # software distributed under the License is distributed on an
         
     | 
| 
         @@ -6,7 +6,7 @@ 
     | 
|
| 
       6 
6 
     | 
    
         
             
            # not use this file except in compliance with the License.
         
     | 
| 
       7 
7 
     | 
    
         
             
            # You may obtain a copy of the License at
         
     | 
| 
       8 
8 
     | 
    
         
             
            #
         
     | 
| 
       9 
     | 
    
         
            -
            # 
     | 
| 
      
 9 
     | 
    
         
            +
            #   http://www.apache.org/licenses/LICENSE-2.0
         
     | 
| 
       10 
10 
     | 
    
         
             
            #
         
     | 
| 
       11 
11 
     | 
    
         
             
            # Unless required by applicable law or agreed to in writing,
         
     | 
| 
       12 
12 
     | 
    
         
             
            # software distributed under the License is distributed on an
         
     | 
    
        data/examples/notes/test.rb
    CHANGED
    
    | 
         @@ -6,7 +6,7 @@ 
     | 
|
| 
       6 
6 
     | 
    
         
             
            # not use this file except in compliance with the License.
         
     | 
| 
       7 
7 
     | 
    
         
             
            # You may obtain a copy of the License at
         
     | 
| 
       8 
8 
     | 
    
         
             
            #
         
     | 
| 
       9 
     | 
    
         
            -
            # 
     | 
| 
      
 9 
     | 
    
         
            +
            #   http://www.apache.org/licenses/LICENSE-2.0
         
     | 
| 
       10 
10 
     | 
    
         
             
            #
         
     | 
| 
       11 
11 
     | 
    
         
             
            # Unless required by applicable law or agreed to in writing,
         
     | 
| 
       12 
12 
     | 
    
         
             
            # software distributed under the License is distributed on an
         
     | 
| 
         @@ -90,7 +90,7 @@ class Elasticsearch::Persistence::ExampleApplicationTest < Test::Unit::TestCase 
     | 
|
| 
       90 
90 
     | 
    
         
             
                  app.settings.repository.client = Elasticsearch::Client.new \
         
     | 
| 
       91 
91 
     | 
    
         
             
                    hosts: [{ host: 'localhost', port: ENV.fetch('TEST_CLUSTER_PORT', 9250)}],
         
     | 
| 
       92 
92 
     | 
    
         
             
                    log: true
         
     | 
| 
       93 
     | 
    
         
            -
                  app.settings.repository.client.transport.logger.formatter = proc { |s, d, p, m| "\e[2m#{m}\n\e[0m" }
         
     | 
| 
      
 93 
     | 
    
         
            +
                  app.settings.repository.client.transport.transport.logger.formatter = proc { |s, d, p, m| "\e[2m#{m}\n\e[0m" }
         
     | 
| 
       94 
94 
     | 
    
         
             
                  app.settings.repository.create_index! force: true
         
     | 
| 
       95 
95 
     | 
    
         
             
                  app.settings.repository.client.cluster.health wait_for_status: 'yellow'
         
     | 
| 
       96 
96 
     | 
    
         
             
                end
         
     | 
| 
         @@ -6,7 +6,7 @@ 
     | 
|
| 
       6 
6 
     | 
    
         
             
            # not use this file except in compliance with the License.
         
     | 
| 
       7 
7 
     | 
    
         
             
            # You may obtain a copy of the License at
         
     | 
| 
       8 
8 
     | 
    
         
             
            #
         
     | 
| 
       9 
     | 
    
         
            -
            # 
     | 
| 
      
 9 
     | 
    
         
            +
            #   http://www.apache.org/licenses/LICENSE-2.0
         
     | 
| 
       10 
10 
     | 
    
         
             
            #
         
     | 
| 
       11 
11 
     | 
    
         
             
            # Unless required by applicable law or agreed to in writing,
         
     | 
| 
       12 
12 
     | 
    
         
             
            # software distributed under the License is distributed on an
         
     | 
| 
         @@ -6,7 +6,7 @@ 
     | 
|
| 
       6 
6 
     | 
    
         
             
            # not use this file except in compliance with the License.
         
     | 
| 
       7 
7 
     | 
    
         
             
            # You may obtain a copy of the License at
         
     | 
| 
       8 
8 
     | 
    
         
             
            #
         
     | 
| 
       9 
     | 
    
         
            -
            # 
     | 
| 
      
 9 
     | 
    
         
            +
            #   http://www.apache.org/licenses/LICENSE-2.0
         
     | 
| 
       10 
10 
     | 
    
         
             
            #
         
     | 
| 
       11 
11 
     | 
    
         
             
            # Unless required by applicable law or agreed to in writing,
         
     | 
| 
       12 
12 
     | 
    
         
             
            # software distributed under the License is distributed on an
         
     | 
| 
         @@ -6,7 +6,7 @@ 
     | 
|
| 
       6 
6 
     | 
    
         
             
            # not use this file except in compliance with the License.
         
     | 
| 
       7 
7 
     | 
    
         
             
            # You may obtain a copy of the License at
         
     | 
| 
       8 
8 
     | 
    
         
             
            #
         
     | 
| 
       9 
     | 
    
         
            -
            # 
     | 
| 
      
 9 
     | 
    
         
            +
            #   http://www.apache.org/licenses/LICENSE-2.0
         
     | 
| 
       10 
10 
     | 
    
         
             
            #
         
     | 
| 
       11 
11 
     | 
    
         
             
            # Unless required by applicable law or agreed to in writing,
         
     | 
| 
       12 
12 
     | 
    
         
             
            # software distributed under the License is distributed on an
         
     | 
| 
         @@ -6,7 +6,7 @@ 
     | 
|
| 
       6 
6 
     | 
    
         
             
            # not use this file except in compliance with the License.
         
     | 
| 
       7 
7 
     | 
    
         
             
            # You may obtain a copy of the License at
         
     | 
| 
       8 
8 
     | 
    
         
             
            #
         
     | 
| 
       9 
     | 
    
         
            -
            # 
     | 
| 
      
 9 
     | 
    
         
            +
            #   http://www.apache.org/licenses/LICENSE-2.0
         
     | 
| 
       10 
10 
     | 
    
         
             
            #
         
     | 
| 
       11 
11 
     | 
    
         
             
            # Unless required by applicable law or agreed to in writing,
         
     | 
| 
       12 
12 
     | 
    
         
             
            # software distributed under the License is distributed on an
         
     | 
| 
         @@ -6,7 +6,7 @@ 
     | 
|
| 
       6 
6 
     | 
    
         
             
            # not use this file except in compliance with the License.
         
     | 
| 
       7 
7 
     | 
    
         
             
            # You may obtain a copy of the License at
         
     | 
| 
       8 
8 
     | 
    
         
             
            #
         
     | 
| 
       9 
     | 
    
         
            -
            # 
     | 
| 
      
 9 
     | 
    
         
            +
            #   http://www.apache.org/licenses/LICENSE-2.0
         
     | 
| 
       10 
10 
     | 
    
         
             
            #
         
     | 
| 
       11 
11 
     | 
    
         
             
            # Unless required by applicable law or agreed to in writing,
         
     | 
| 
       12 
12 
     | 
    
         
             
            # software distributed under the License is distributed on an
         
     | 
| 
         @@ -6,7 +6,7 @@ 
     | 
|
| 
       6 
6 
     | 
    
         
             
            # not use this file except in compliance with the License.
         
     | 
| 
       7 
7 
     | 
    
         
             
            # You may obtain a copy of the License at
         
     | 
| 
       8 
8 
     | 
    
         
             
            #
         
     | 
| 
       9 
     | 
    
         
            -
            # 
     | 
| 
      
 9 
     | 
    
         
            +
            #   http://www.apache.org/licenses/LICENSE-2.0
         
     | 
| 
       10 
10 
     | 
    
         
             
            #
         
     | 
| 
       11 
11 
     | 
    
         
             
            # Unless required by applicable law or agreed to in writing,
         
     | 
| 
       12 
12 
     | 
    
         
             
            # software distributed under the License is distributed on an
         
     | 
| 
         @@ -6,7 +6,7 @@ 
     | 
|
| 
       6 
6 
     | 
    
         
             
            # not use this file except in compliance with the License.
         
     | 
| 
       7 
7 
     | 
    
         
             
            # You may obtain a copy of the License at
         
     | 
| 
       8 
8 
     | 
    
         
             
            #
         
     | 
| 
       9 
     | 
    
         
            -
            # 
     | 
| 
      
 9 
     | 
    
         
            +
            #   http://www.apache.org/licenses/LICENSE-2.0
         
     | 
| 
       10 
10 
     | 
    
         
             
            #
         
     | 
| 
       11 
11 
     | 
    
         
             
            # Unless required by applicable law or agreed to in writing,
         
     | 
| 
       12 
12 
     | 
    
         
             
            # software distributed under the License is distributed on an
         
     | 
| 
         @@ -6,7 +6,7 @@ 
     | 
|
| 
       6 
6 
     | 
    
         
             
            # not use this file except in compliance with the License.
         
     | 
| 
       7 
7 
     | 
    
         
             
            # You may obtain a copy of the License at
         
     | 
| 
       8 
8 
     | 
    
         
             
            #
         
     | 
| 
       9 
     | 
    
         
            -
            # 
     | 
| 
      
 9 
     | 
    
         
            +
            #   http://www.apache.org/licenses/LICENSE-2.0
         
     | 
| 
       10 
10 
     | 
    
         
             
            #
         
     | 
| 
       11 
11 
     | 
    
         
             
            # Unless required by applicable law or agreed to in writing,
         
     | 
| 
       12 
12 
     | 
    
         
             
            # software distributed under the License is distributed on an
         
     | 
| 
         @@ -6,7 +6,7 @@ 
     | 
|
| 
       6 
6 
     | 
    
         
             
            # not use this file except in compliance with the License.
         
     | 
| 
       7 
7 
     | 
    
         
             
            # You may obtain a copy of the License at
         
     | 
| 
       8 
8 
     | 
    
         
             
            #
         
     | 
| 
       9 
     | 
    
         
            -
            # 
     | 
| 
      
 9 
     | 
    
         
            +
            #   http://www.apache.org/licenses/LICENSE-2.0
         
     | 
| 
       10 
10 
     | 
    
         
             
            #
         
     | 
| 
       11 
11 
     | 
    
         
             
            # Unless required by applicable law or agreed to in writing,
         
     | 
| 
       12 
12 
     | 
    
         
             
            # software distributed under the License is distributed on an
         
     | 
| 
         @@ -17,6 +17,6 @@ 
     | 
|
| 
       17 
17 
     | 
    
         | 
| 
       18 
18 
     | 
    
         
             
            module Elasticsearch
         
     | 
| 
       19 
19 
     | 
    
         
             
              module Persistence
         
     | 
| 
       20 
     | 
    
         
            -
                VERSION = '7. 
     | 
| 
      
 20 
     | 
    
         
            +
                VERSION = '7.2.0'
         
     | 
| 
       21 
21 
     | 
    
         
             
              end
         
     | 
| 
       22 
22 
     | 
    
         
             
            end
         
     | 
| 
         @@ -6,7 +6,7 @@ 
     | 
|
| 
       6 
6 
     | 
    
         
             
            # not use this file except in compliance with the License.
         
     | 
| 
       7 
7 
     | 
    
         
             
            # You may obtain a copy of the License at
         
     | 
| 
       8 
8 
     | 
    
         
             
            #
         
     | 
| 
       9 
     | 
    
         
            -
            # 
     | 
| 
      
 9 
     | 
    
         
            +
            #   http://www.apache.org/licenses/LICENSE-2.0
         
     | 
| 
       10 
10 
     | 
    
         
             
            #
         
     | 
| 
       11 
11 
     | 
    
         
             
            # Unless required by applicable law or agreed to in writing,
         
     | 
| 
       12 
12 
     | 
    
         
             
            # software distributed under the License is distributed on an
         
     | 
| 
         @@ -6,7 +6,7 @@ 
     | 
|
| 
       6 
6 
     | 
    
         
             
            # not use this file except in compliance with the License.
         
     | 
| 
       7 
7 
     | 
    
         
             
            # You may obtain a copy of the License at
         
     | 
| 
       8 
8 
     | 
    
         
             
            #
         
     | 
| 
       9 
     | 
    
         
            -
            # 
     | 
| 
      
 9 
     | 
    
         
            +
            #   http://www.apache.org/licenses/LICENSE-2.0
         
     | 
| 
       10 
10 
     | 
    
         
             
            #
         
     | 
| 
       11 
11 
     | 
    
         
             
            # Unless required by applicable law or agreed to in writing,
         
     | 
| 
       12 
12 
     | 
    
         
             
            # software distributed under the License is distributed on an
         
     | 
| 
         @@ -6,7 +6,7 @@ 
     | 
|
| 
       6 
6 
     | 
    
         
             
            # not use this file except in compliance with the License.
         
     | 
| 
       7 
7 
     | 
    
         
             
            # You may obtain a copy of the License at
         
     | 
| 
       8 
8 
     | 
    
         
             
            #
         
     | 
| 
       9 
     | 
    
         
            -
            # 
     | 
| 
      
 9 
     | 
    
         
            +
            #   http://www.apache.org/licenses/LICENSE-2.0
         
     | 
| 
       10 
10 
     | 
    
         
             
            #
         
     | 
| 
       11 
11 
     | 
    
         
             
            # Unless required by applicable law or agreed to in writing,
         
     | 
| 
       12 
12 
     | 
    
         
             
            # software distributed under the License is distributed on an
         
     | 
| 
         @@ -6,7 +6,7 @@ 
     | 
|
| 
       6 
6 
     | 
    
         
             
            # not use this file except in compliance with the License.
         
     | 
| 
       7 
7 
     | 
    
         
             
            # You may obtain a copy of the License at
         
     | 
| 
       8 
8 
     | 
    
         
             
            #
         
     | 
| 
       9 
     | 
    
         
            -
            # 
     | 
| 
      
 9 
     | 
    
         
            +
            #   http://www.apache.org/licenses/LICENSE-2.0
         
     | 
| 
       10 
10 
     | 
    
         
             
            #
         
     | 
| 
       11 
11 
     | 
    
         
             
            # Unless required by applicable law or agreed to in writing,
         
     | 
| 
       12 
12 
     | 
    
         
             
            # software distributed under the License is distributed on an
         
     | 
| 
         @@ -6,7 +6,7 @@ 
     | 
|
| 
       6 
6 
     | 
    
         
             
            # not use this file except in compliance with the License.
         
     | 
| 
       7 
7 
     | 
    
         
             
            # You may obtain a copy of the License at
         
     | 
| 
       8 
8 
     | 
    
         
             
            #
         
     | 
| 
       9 
     | 
    
         
            -
            # 
     | 
| 
      
 9 
     | 
    
         
            +
            #   http://www.apache.org/licenses/LICENSE-2.0
         
     | 
| 
       10 
10 
     | 
    
         
             
            #
         
     | 
| 
       11 
11 
     | 
    
         
             
            # Unless required by applicable law or agreed to in writing,
         
     | 
| 
       12 
12 
     | 
    
         
             
            # software distributed under the License is distributed on an
         
     | 
    
        data/spec/repository_spec.rb
    CHANGED
    
    | 
         @@ -6,7 +6,7 @@ 
     | 
|
| 
       6 
6 
     | 
    
         
             
            # not use this file except in compliance with the License.
         
     | 
| 
       7 
7 
     | 
    
         
             
            # You may obtain a copy of the License at
         
     | 
| 
       8 
8 
     | 
    
         
             
            #
         
     | 
| 
       9 
     | 
    
         
            -
            # 
     | 
| 
      
 9 
     | 
    
         
            +
            #   http://www.apache.org/licenses/LICENSE-2.0
         
     | 
| 
       10 
10 
     | 
    
         
             
            #
         
     | 
| 
       11 
11 
     | 
    
         
             
            # Unless required by applicable law or agreed to in writing,
         
     | 
| 
       12 
12 
     | 
    
         
             
            # software distributed under the License is distributed on an
         
     | 
| 
         @@ -104,7 +104,7 @@ describe Elasticsearch::Persistence::Repository do 
     | 
|
| 
       104 
104 
     | 
    
         
             
                  end
         
     | 
| 
       105 
105 
     | 
    
         | 
| 
       106 
106 
     | 
    
         
             
                  it 'sets a default client' do
         
     | 
| 
       107 
     | 
    
         
            -
                    expect(repository.client).to be_a(Elasticsearch:: 
     | 
| 
      
 107 
     | 
    
         
            +
                    expect(repository.client).to be_a(Elasticsearch::Client)
         
     | 
| 
       108 
108 
     | 
    
         
             
                  end
         
     | 
| 
       109 
109 
     | 
    
         | 
| 
       110 
110 
     | 
    
         | 
| 
         @@ -465,7 +465,7 @@ describe Elasticsearch::Persistence::Repository do 
     | 
|
| 
       465 
465 
     | 
    
         
             
                  end
         
     | 
| 
       466 
466 
     | 
    
         | 
| 
       467 
467 
     | 
    
         
             
                  it 'sets a default on the instance' do
         
     | 
| 
       468 
     | 
    
         
            -
                    expect(RepositoryWithoutDSL.new.client).to be_a(Elasticsearch:: 
     | 
| 
      
 468 
     | 
    
         
            +
                    expect(RepositoryWithoutDSL.new.client).to be_a(Elasticsearch::Client)
         
     | 
| 
       469 
469 
     | 
    
         
             
                  end
         
     | 
| 
       470 
470 
     | 
    
         | 
| 
       471 
471 
     | 
    
         
             
                  it 'allows the value to be overridden with options on the instance' do
         
     | 
    
        data/spec/spec_helper.rb
    CHANGED
    
    | 
         @@ -6,7 +6,7 @@ 
     | 
|
| 
       6 
6 
     | 
    
         
             
            # not use this file except in compliance with the License.
         
     | 
| 
       7 
7 
     | 
    
         
             
            # You may obtain a copy of the License at
         
     | 
| 
       8 
8 
     | 
    
         
             
            #
         
     | 
| 
       9 
     | 
    
         
            -
            # 
     | 
| 
      
 9 
     | 
    
         
            +
            #   http://www.apache.org/licenses/LICENSE-2.0
         
     | 
| 
       10 
10 
     | 
    
         
             
            #
         
     | 
| 
       11 
11 
     | 
    
         
             
            # Unless required by applicable law or agreed to in writing,
         
     | 
| 
       12 
12 
     | 
    
         
             
            # software distributed under the License is distributed on an
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: elasticsearch-persistence
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 7. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 7.2.0
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Karel Minarik
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2021- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2021-08-11 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: elasticsearch
         
     | 
| 
         @@ -30,14 +30,14 @@ dependencies: 
     | 
|
| 
       30 
30 
     | 
    
         
             
                requirements:
         
     | 
| 
       31 
31 
     | 
    
         
             
                - - '='
         
     | 
| 
       32 
32 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       33 
     | 
    
         
            -
                    version: 7. 
     | 
| 
      
 33 
     | 
    
         
            +
                    version: 7.2.0
         
     | 
| 
       34 
34 
     | 
    
         
             
              type: :runtime
         
     | 
| 
       35 
35 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       36 
36 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       37 
37 
     | 
    
         
             
                requirements:
         
     | 
| 
       38 
38 
     | 
    
         
             
                - - '='
         
     | 
| 
       39 
39 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       40 
     | 
    
         
            -
                    version: 7. 
     | 
| 
      
 40 
     | 
    
         
            +
                    version: 7.2.0
         
     | 
| 
       41 
41 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       42 
42 
     | 
    
         
             
              name: activesupport
         
     | 
| 
       43 
43 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
         @@ -136,20 +136,6 @@ dependencies: 
     | 
|
| 
       136 
136 
     | 
    
         
             
                - - ">"
         
     | 
| 
       137 
137 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       138 
138 
     | 
    
         
             
                    version: '4'
         
     | 
| 
       139 
     | 
    
         
            -
            - !ruby/object:Gem::Dependency
         
     | 
| 
       140 
     | 
    
         
            -
              name: elasticsearch-extensions
         
     | 
| 
       141 
     | 
    
         
            -
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
       142 
     | 
    
         
            -
                requirements:
         
     | 
| 
       143 
     | 
    
         
            -
                - - ">="
         
     | 
| 
       144 
     | 
    
         
            -
                  - !ruby/object:Gem::Version
         
     | 
| 
       145 
     | 
    
         
            -
                    version: '0'
         
     | 
| 
       146 
     | 
    
         
            -
              type: :development
         
     | 
| 
       147 
     | 
    
         
            -
              prerelease: false
         
     | 
| 
       148 
     | 
    
         
            -
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       149 
     | 
    
         
            -
                requirements:
         
     | 
| 
       150 
     | 
    
         
            -
                - - ">="
         
     | 
| 
       151 
     | 
    
         
            -
                  - !ruby/object:Gem::Version
         
     | 
| 
       152 
     | 
    
         
            -
                    version: '0'
         
     | 
| 
       153 
139 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       154 
140 
     | 
    
         
             
              name: minitest
         
     | 
| 
       155 
141 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
         @@ -345,11 +331,11 @@ required_ruby_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       345 
331 
     | 
    
         
             
                  version: 1.9.3
         
     | 
| 
       346 
332 
     | 
    
         
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         
     | 
| 
       347 
333 
     | 
    
         
             
              requirements:
         
     | 
| 
       348 
     | 
    
         
            -
              - - " 
     | 
| 
      
 334 
     | 
    
         
            +
              - - ">="
         
     | 
| 
       349 
335 
     | 
    
         
             
                - !ruby/object:Gem::Version
         
     | 
| 
       350 
     | 
    
         
            -
                  version:  
     | 
| 
      
 336 
     | 
    
         
            +
                  version: '0'
         
     | 
| 
       351 
337 
     | 
    
         
             
            requirements: []
         
     | 
| 
       352 
     | 
    
         
            -
            rubygems_version: 3.1. 
     | 
| 
      
 338 
     | 
    
         
            +
            rubygems_version: 3.1.6
         
     | 
| 
       353 
339 
     | 
    
         
             
            signing_key: 
         
     | 
| 
       354 
340 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       355 
341 
     | 
    
         
             
            summary: Persistence layer for Ruby models and Elasticsearch.
         
     |