pg_easy_replicate 0.3.6 → 0.3.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/Dockerfile +18 -3
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/pg_easy_replicate/version.rb +1 -1
- data/lib/pg_easy_replicate.rb +5 -5
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e534de6c71967e1534422b3bb2871b97e267c63d130a0d21290913c8b7a94d4
|
4
|
+
data.tar.gz: 718fd526277f65d4666a5cfc3e847dcb295e8e298f41893398bf1349c33d71a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ae2923e4c7c2727833bd2084a02aeddb04671fd7787bf573c58cde616279398bb6fe2e9ce2100b349fbcefd811942029e00504da19262ff5e0eb9d81f62f0bd
|
7
|
+
data.tar.gz: 0efdf075efa3b6cdfe070a4153ae49fbb9d21f2c79d2b70ece398ec601147ae68d691899258b2648581fd9c72dfb31b218cc0df2be23bd0b5cf86990bc45adc9
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.
|
1
|
+
3.3.6
|
data/Dockerfile
CHANGED
@@ -1,7 +1,22 @@
|
|
1
|
-
FROM ruby:3.
|
1
|
+
FROM ruby:3.3.6-slim
|
2
2
|
|
3
3
|
ARG VERSION
|
4
4
|
|
5
|
-
RUN apt-get update &&
|
5
|
+
RUN apt-get update && \
|
6
|
+
apt-get install -y --no-install-recommends \
|
7
|
+
wget \
|
8
|
+
gnupg2 \
|
9
|
+
lsb-release \
|
10
|
+
build-essential \
|
11
|
+
libpq-dev \
|
12
|
+
&& wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor -o /usr/share/keyrings/postgresql-keyring.gpg && \
|
13
|
+
echo "deb [signed-by=/usr/share/keyrings/postgresql-keyring.gpg] http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list && \
|
14
|
+
apt-get update && \
|
15
|
+
apt-get install -y --no-install-recommends postgresql-client && \
|
16
|
+
gem install pg_easy_replicate -v $VERSION && \
|
17
|
+
apt-get remove -y wget gnupg2 lsb-release && \
|
18
|
+
apt-get autoremove -y && \
|
19
|
+
apt-get clean && \
|
20
|
+
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
21
|
+
|
6
22
|
RUN pg_dump --version
|
7
|
-
RUN gem install pg_easy_replicate -v $VERSION
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -374,5 +374,5 @@ Next, you can set up a program that watches the `stats` and waits until `switcho
|
|
374
374
|
PRs most welcome. You can get started locally by
|
375
375
|
|
376
376
|
- `docker compose down -v && docker compose up --remove-orphans --build`
|
377
|
-
- Install ruby `3.
|
377
|
+
- Install ruby `3.3.6` using RVM ([instruction](https://rvm.io/rvm/install#any-other-system))
|
378
378
|
- `bundle exec rspec` for specs
|
data/lib/pg_easy_replicate.rb
CHANGED
@@ -169,6 +169,11 @@ module PgEasyReplicate
|
|
169
169
|
logger.info("Dropping groups table")
|
170
170
|
Group.drop
|
171
171
|
end,
|
172
|
+
-> do
|
173
|
+
if options[:restore_connection_on_source_db]
|
174
|
+
restore_connections_on_source_db
|
175
|
+
end
|
176
|
+
end,
|
172
177
|
-> do
|
173
178
|
if options[:everything]
|
174
179
|
logger.info("Dropping schema")
|
@@ -213,11 +218,6 @@ module PgEasyReplicate
|
|
213
218
|
end
|
214
219
|
end
|
215
220
|
end,
|
216
|
-
-> do
|
217
|
-
if options[:restore_connection_on_source_db]
|
218
|
-
restore_connections_on_source_db
|
219
|
-
end
|
220
|
-
end,
|
221
221
|
]
|
222
222
|
|
223
223
|
cleanup_steps.each do |step|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pg_easy_replicate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shayon Mukherjee
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ougai
|
@@ -321,7 +321,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
321
321
|
- !ruby/object:Gem::Version
|
322
322
|
version: '0'
|
323
323
|
requirements: []
|
324
|
-
rubygems_version: 3.
|
324
|
+
rubygems_version: 3.5.22
|
325
325
|
signing_key:
|
326
326
|
specification_version: 4
|
327
327
|
summary: Easily setup logical replication and switchover to new database with minimal
|