zelastic 0.3.2 → 0.3.3
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/.circleci/config.yml +7 -9
- data/Gemfile.lock +1 -1
- data/lib/zelastic/indexer.rb +3 -1
- data/lib/zelastic/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dee5adb76c1fa7ee878f835a822afbe787bbe414
|
|
4
|
+
data.tar.gz: e94671e2baface68a4e5bdc66441ee9526c19497
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
+
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: [
|
|
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
|
-
-
|
|
35
|
-
|
|
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
|
-
-
|
|
45
|
-
|
|
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
data/lib/zelastic/indexer.rb
CHANGED
|
@@ -72,7 +72,9 @@ module Zelastic
|
|
|
72
72
|
def_delegators :config, :logger
|
|
73
73
|
|
|
74
74
|
def current_version
|
|
75
|
-
config.data_source.connection
|
|
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)
|
data/lib/zelastic/version.rb
CHANGED
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.
|
|
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-
|
|
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.
|
|
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.
|