pg_easy_replicate 0.3.6 → 0.3.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e7291bb160de0db280d2e11a7b5e46d89bdd6b259ea2acf070ab302a80b27579
4
- data.tar.gz: 7b5f1df7f16a833ce6f9fc2bdac7765e0d8835b6b271d029834a06a0f21bd3b7
3
+ metadata.gz: 5e534de6c71967e1534422b3bb2871b97e267c63d130a0d21290913c8b7a94d4
4
+ data.tar.gz: 718fd526277f65d4666a5cfc3e847dcb295e8e298f41893398bf1349c33d71a9
5
5
  SHA512:
6
- metadata.gz: a066f7421b3be12ad1aa28017c9c680652f18477a37390fdaaf58efe2dc31aca28abc40715f15e33afbf628c973c2d8786d6d2818e22ea59e9ee6ca9c74dccd8
7
- data.tar.gz: 45b5cfa989e4209ceddacc2582088ff712e45a17d34bfff423c30d3d350635cc894cc0f6c84dc5a68cb96ec4f0280d16cc8a2d4b108296543cde095b752312d6
6
+ metadata.gz: 6ae2923e4c7c2727833bd2084a02aeddb04671fd7787bf573c58cde616279398bb6fe2e9ce2100b349fbcefd811942029e00504da19262ff5e0eb9d81f62f0bd
7
+ data.tar.gz: 0efdf075efa3b6cdfe070a4153ae49fbb9d21f2c79d2b70ece398ec601147ae68d691899258b2648581fd9c72dfb31b218cc0df2be23bd0b5cf86990bc45adc9
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.1.4
1
+ 3.3.6
data/Dockerfile CHANGED
@@ -1,7 +1,22 @@
1
- FROM ruby:3.1.4
1
+ FROM ruby:3.3.6-slim
2
2
 
3
3
  ARG VERSION
4
4
 
5
- RUN apt-get update && apt-get install postgresql-client -y
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pg_easy_replicate (0.3.6)
4
+ pg_easy_replicate (0.3.8)
5
5
  ougai (~> 2.0.0)
6
6
  pg (~> 1.5.3)
7
7
  pg_query (~> 5.1.0)
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.1.4` using RVM ([instruction](https://rvm.io/rvm/install#any-other-system))
377
+ - Install ruby `3.3.6` using RVM ([instruction](https://rvm.io/rvm/install#any-other-system))
378
378
  - `bundle exec rspec` for specs
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PgEasyReplicate
4
- VERSION = "0.3.6"
4
+ VERSION = "0.3.8"
5
5
  end
@@ -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.6
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-22 00:00:00.000000000 Z
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.3.26
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