backfiller 0.2.1 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Changelog.md +14 -7
- data/backfiller.gemspec +2 -1
- data/lib/backfiller/cursor/postgresql.rb +1 -1
- data/lib/backfiller/runner.rb +7 -5
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb54a72815fecdaea8ec7d163640862d1eb8db42be176e9d6e0b24a718f563d9
|
4
|
+
data.tar.gz: da7c47d5d68f57b3eb9d7cb971f08775a5244762e6029bab94c3a1be8091cc33
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa31b0b09689b1f91debb89f2b53eedf4a0436a7e12623d95b0e9d5b44d8b817c0e82cf2ae8239417342b6c15894ec2817bfcc9020c7e58a36940ef6ec0b398e
|
7
|
+
data.tar.gz: 1edccfd3ee8f2968c72e1f44211c7be1401965c4edbe319329c6a9b6ce28f96df722d489e38aede62581d5cf252c567f0cab639565fabe3faea5998fe564431c
|
data/Changelog.md
CHANGED
@@ -1,17 +1,24 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.2.3
|
4
|
+
- Fix cursor bug in case of enabled query cache (#6)
|
5
|
+
|
6
|
+
## 0.2.2
|
7
|
+
|
8
|
+
- Always release connections in runner (#5).
|
9
|
+
|
3
10
|
## 0.2.1
|
4
11
|
|
5
|
-
|
12
|
+
- `cursor_threshold` is nil by default.
|
6
13
|
|
7
14
|
## 0.2.0
|
8
15
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
16
|
+
- Upgrade local gems
|
17
|
+
- Add rubocop
|
18
|
+
- Add specs
|
19
|
+
- Configure travis
|
20
|
+
- Add `cursor_threshold` feature
|
14
21
|
|
15
22
|
## 0.1.1
|
16
23
|
|
17
|
-
|
24
|
+
- Support Rails 6.0.0
|
data/backfiller.gemspec
CHANGED
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = 'backfiller'
|
8
|
-
spec.version = '0.2.
|
8
|
+
spec.version = '0.2.3'
|
9
9
|
spec.authors = ['Andriy Yanko']
|
10
10
|
spec.email = ['andriy.yanko@railsware.com']
|
11
11
|
|
@@ -30,4 +30,5 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.add_development_dependency 'rubocop', '~> 1.18.0'
|
31
31
|
|
32
32
|
spec.add_development_dependency 'pg', '~> 1.2.0'
|
33
|
+
spec.metadata['rubygems_mfa_required'] = 'true'
|
33
34
|
end
|
data/lib/backfiller/runner.rb
CHANGED
@@ -46,12 +46,14 @@ module Backfiller
|
|
46
46
|
master_connection = acquire_connection
|
47
47
|
worker_connection = acquire_connection
|
48
48
|
|
49
|
-
|
50
|
-
|
49
|
+
begin
|
50
|
+
run_cursor_loop(master_connection) do |row|
|
51
|
+
process_method.call(worker_connection, row)
|
52
|
+
end
|
53
|
+
ensure
|
54
|
+
release_connection(master_connection)
|
55
|
+
release_connection(worker_connection)
|
51
56
|
end
|
52
|
-
|
53
|
-
release_connection(master_connection)
|
54
|
-
release_connection(worker_connection)
|
55
57
|
end
|
56
58
|
|
57
59
|
private
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: backfiller
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andriy Yanko
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -124,7 +124,8 @@ files:
|
|
124
124
|
homepage: https://github.com/railsware/backfiller
|
125
125
|
licenses:
|
126
126
|
- MIT
|
127
|
-
metadata:
|
127
|
+
metadata:
|
128
|
+
rubygems_mfa_required: 'true'
|
128
129
|
post_install_message:
|
129
130
|
rdoc_options: []
|
130
131
|
require_paths:
|
@@ -140,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
140
141
|
- !ruby/object:Gem::Version
|
141
142
|
version: '0'
|
142
143
|
requirements: []
|
143
|
-
rubygems_version: 3.
|
144
|
+
rubygems_version: 3.5.3
|
144
145
|
signing_key:
|
145
146
|
specification_version: 4
|
146
147
|
summary: Backfiller for null database columns
|