zelastic 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6e08c19cd16316a3fb4dc38124ae42d3293d4e9b
4
- data.tar.gz: ce4a3323ce0108383274d47a72f1d1c6fba3b7ea
3
+ metadata.gz: dee5adb76c1fa7ee878f835a822afbe787bbe414
4
+ data.tar.gz: e94671e2baface68a4e5bdc66441ee9526c19497
5
5
  SHA512:
6
- metadata.gz: 68de56328d14fcd6f71c1af59159fb8ccb36f2adf9156292b822bb9a7253b86ff9b1730f5bce1a03bcf0dc27be38b8d9f4d4530528bbd8743997d5a42717ec72
7
- data.tar.gz: 6f6189e1fd0489359a6a556f6724ac3d8e9806853feafe9e3a5a4e8fb213887d82fc70afbaecdaedb624b2e76a57af6fd5f07d2c9882881d9d63ccb3348e4c0d
6
+ metadata.gz: 96bc6c3bbdefea7a2d2383690523e623f5c5d38212a0e0d69ebcf0356c7867fc36994fb42041dfa1e9d26ae979011c4a6e1fbe3b5a0a8ee755d7ef950d5f770f
7
+ data.tar.gz: e47dbc4f6dbf8629001fe7d728c9638b7366007f26f2b6adc77435c4f36fd8ba329204b2bdd7ef5f58464b5790d177f8b4b9b54343a9e7187e3ef28232f5e948
data/.circleci/config.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ruby: &ruby
2
- image: carwow/ruby-ci:2.4.2
2
+ image: carwow/ruby-ci:2.4.3
3
3
 
4
4
  elasticsearch_container: &elasticsearch_container
5
5
  image: carwow/elasticsearch-ci:5.5.1
@@ -19,20 +19,18 @@ jobs:
19
19
  - run: |
20
20
  bundle config --local path vendor/bundle &&
21
21
  bundle check || bundle install --jobs=4 --retry=3
22
+ bundle clean --force
22
23
  - save_cache:
23
24
  key: bundle-{{ checksum "Gemfile.lock" }}
24
- paths: [~/zelastic/vendor/bundle]
25
- - persist_to_workspace:
26
- root: '~'
27
- paths: [zelastic]
25
+ paths: [vendor/bundle]
28
26
 
29
27
  rubocop:
30
28
  working_directory: ~/zelastic
31
29
  docker:
32
30
  - *ruby
33
31
  steps:
34
- - attach_workspace:
35
- at: '~'
32
+ - checkout
33
+ - restore_cache: { keys: ['bundle-{{ checkout "Gemfile.lock" }}'] }
36
34
  - run: bundle exec rubocop
37
35
 
38
36
  tests:
@@ -41,8 +39,8 @@ jobs:
41
39
  - *ruby
42
40
  - *elasticsearch_container
43
41
  steps:
44
- - attach_workspace:
45
- at: '~'
42
+ - checkout
43
+ - restore_cache: { keys: ['bundle-{{ checkout "Gemfile.lock" }}'] }
46
44
  - run: |
47
45
  bundle exec rspec --pattern "**/*_spec.rb" --format "progress"
48
46
  workflows:
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- zelastic (0.3.2)
4
+ zelastic (0.3.3)
5
5
  activesupport
6
6
 
7
7
  GEM
@@ -72,7 +72,9 @@ module Zelastic
72
72
  def_delegators :config, :logger
73
73
 
74
74
  def current_version
75
- config.data_source.connection.select_one('SELECT txid_current()').fetch('txid_current')
75
+ config.data_source.connection
76
+ .select_one('SELECT select txid_snapshot_xmax(txid_current_snapshot()) as xmax')
77
+ .fetch('xmax')
76
78
  end
77
79
 
78
80
  def write_indices(client)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Zelastic
4
- VERSION = '0.3.2'
4
+ VERSION = '0.3.3'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zelastic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - carwow Developers
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-01-31 00:00:00.000000000 Z
11
+ date: 2018-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -152,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
152
152
  version: '0'
153
153
  requirements: []
154
154
  rubyforge_project:
155
- rubygems_version: 2.6.13
155
+ rubygems_version: 2.6.14.1
156
156
  signing_key:
157
157
  specification_version: 4
158
158
  summary: Zero-downtime (re-)indexing of ActiveRecord models into Elasticsearch.