sequel-pgt_outbox 0.2.0 → 0.2.1
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/.release-please-config.json +32 -0
- data/.release-please-manifest.json +3 -0
- data/.version.txt +1 -0
- data/CHANGELOG.md +13 -0
- data/Rakefile +2 -2
- data/lib/sequel/pgt_outbox/version.rb +1 -1
- data/oci/Containerfile +49 -0
- data/oci/Gemfile +7 -0
- metadata +7 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d856379948fad6e85dee5844e6cb8c290e85aac19491898ec6c0ad36f7479e59
|
4
|
+
data.tar.gz: 96a25fb9ce1c9b2b01f52e0f0de336001f396a8c678eaf6291010aab4421e57e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1adb911c3165d01062c9eb58ef6854388610409285ef5da19c111c4b6f8e63c86b53f7436d04b4b352b062484d7cac320d5df4d869c2f66f9d05d25d68620d03
|
7
|
+
data.tar.gz: 3ad33140421494eab11e0d5ef4ce03e882872f518324d0b0519820b9282a70ded088c08a5a488baa98683fc1cd2ed60beb2e092069cd7374883d1cbbe7d1b5a2
|
@@ -0,0 +1,32 @@
|
|
1
|
+
{
|
2
|
+
"packages": {
|
3
|
+
".": {
|
4
|
+
"changelog-path": "CHANGELOG.md",
|
5
|
+
"release-type": "simple",
|
6
|
+
"bump-minor-pre-major": true,
|
7
|
+
"bump-patch-for-minor-pre-major": true,
|
8
|
+
"draft": false,
|
9
|
+
"prerelease": false,
|
10
|
+
"version-file": ".version.txt",
|
11
|
+
"extra-files": [
|
12
|
+
{
|
13
|
+
"type": "generic",
|
14
|
+
"path": "lib/sequel/pgt_outbox/version.rb"
|
15
|
+
},
|
16
|
+
{
|
17
|
+
"type": "generic",
|
18
|
+
"path": "oci/Gemfile"
|
19
|
+
}
|
20
|
+
],
|
21
|
+
"exclude-paths": [
|
22
|
+
".release-please-manifest.json",
|
23
|
+
".version.txt",
|
24
|
+
"lib/sequel/pgt_outbox/version.rb",
|
25
|
+
".rubocop.yml",
|
26
|
+
".overcommit.yml",
|
27
|
+
"coverage/coverage.json"
|
28
|
+
]
|
29
|
+
}
|
30
|
+
},
|
31
|
+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
|
32
|
+
}
|
data/.version.txt
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.2.1
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
## [Unreleased]
|
2
2
|
|
3
|
+
## [0.2.1](https://github.com/rubyists/sequel-pgt_outbox/compare/v0.2.0...v0.2.1) (2025-02-15)
|
4
|
+
|
5
|
+
|
6
|
+
### Features
|
7
|
+
|
8
|
+
* initial commit ([c7cbcb0](https://github.com/rubyists/sequel-pgt_outbox/commit/c7cbcb01c39d2415100d34af041526a5cecb5626))
|
9
|
+
* Removes the pg_triggers extension to just leave pgt_outbox ([d354218](https://github.com/rubyists/sequel-pgt_outbox/commit/d35421806c8812876e1905afe86afc24a5d501ac))
|
10
|
+
|
11
|
+
|
12
|
+
### Bug Fixes
|
13
|
+
|
14
|
+
* Get it back to feature parity with sequel_postgresql_triggers ([#2](https://github.com/rubyists/sequel-pgt_outbox/issues/2)) ([708a6e8](https://github.com/rubyists/sequel-pgt_outbox/commit/708a6e8a263694714a76d43dde49f8ccae2ca278))
|
15
|
+
|
3
16
|
## [0.1.0] - 2025-02-14
|
4
17
|
|
5
18
|
- Initial release
|
data/Rakefile
CHANGED
@@ -15,14 +15,14 @@ end
|
|
15
15
|
desc 'Create the test database'
|
16
16
|
task :createdb do
|
17
17
|
require 'uri'
|
18
|
-
uri = URI.parse(ENV.fetch(
|
18
|
+
uri = URI.parse(ENV.fetch('PGT_SPEC_DB', 'postgres:///spgt_test'))
|
19
19
|
sh "createdb '#{File.basename(uri.path)}'"
|
20
20
|
end
|
21
21
|
|
22
22
|
desc 'Drop the test database'
|
23
23
|
task :dropdb do
|
24
24
|
require 'uri'
|
25
|
-
uri = URI.parse(ENV.fetch(
|
25
|
+
uri = URI.parse(ENV.fetch('PGT_SPEC_DB', 'postgres:///spgt_test'))
|
26
26
|
sh "dropdb --if-exists '#{File.basename(uri.path)}'"
|
27
27
|
end
|
28
28
|
|
data/oci/Containerfile
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
ARG UBUNTU_VERSION=bookworm
|
2
|
+
ARG RUBY_VERSION=3.4.1
|
3
|
+
FROM docker.io/ruby:$RUBY_VERSION-$UBUNTU_VERSION AS build-env
|
4
|
+
|
5
|
+
# Setting env up
|
6
|
+
ARG APP_ROOT=/app
|
7
|
+
ARG JOBS=8
|
8
|
+
ENV LANG C.UTF-8
|
9
|
+
ENV BUNDLE_SILENCE_ROOT_WARNING=1
|
10
|
+
|
11
|
+
|
12
|
+
# Install dependencies needed for compilation
|
13
|
+
RUN apt-get update && \
|
14
|
+
apt-get install -yq build-essential curl git libpq-dev postgresql-client
|
15
|
+
|
16
|
+
WORKDIR $APP_ROOT
|
17
|
+
|
18
|
+
COPY . .
|
19
|
+
|
20
|
+
RUN mkdir -p ./vendor/cache && \
|
21
|
+
bundle install && \
|
22
|
+
bundle exec rake build && \
|
23
|
+
mv pkg/*.gem ./vendor/cache/ && \
|
24
|
+
cp oci/Gemfile . && \
|
25
|
+
bundle install --jobs $JOBS
|
26
|
+
|
27
|
+
# Remove folders not needed in resulting image
|
28
|
+
RUN rm -rf node_modules tmp/cache app/assets vendor/assets spec
|
29
|
+
|
30
|
+
############### Build step done ###############
|
31
|
+
ARG UBUNTU_VERSION=bookworm
|
32
|
+
ARG RUBY_VERSION=3.3.4
|
33
|
+
FROM docker.io/ruby:$RUBY_VERSION-$UBUNTU_VERSION
|
34
|
+
|
35
|
+
ARG APP_ROOT=/app
|
36
|
+
|
37
|
+
# install packages
|
38
|
+
RUN apt update && \
|
39
|
+
apt install -qy curl bash runit && \
|
40
|
+
useradd -m -u 1000 -s /bin/bash outbox
|
41
|
+
|
42
|
+
# copy bundle from build-env
|
43
|
+
COPY --from=build-env /usr/local/bundle/ /usr/local/bundle/
|
44
|
+
|
45
|
+
USER 1000
|
46
|
+
WORKDIR $APP_ROOT
|
47
|
+
|
48
|
+
|
49
|
+
CMD ['/bin/bash']
|
data/oci/Gemfile
ADDED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sequel-pgt_outbox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- bougyman
|
@@ -33,7 +33,10 @@ extensions: []
|
|
33
33
|
extra_rdoc_files: []
|
34
34
|
files:
|
35
35
|
- ".overcommit.yml"
|
36
|
+
- ".release-please-config.json"
|
37
|
+
- ".release-please-manifest.json"
|
36
38
|
- ".rubocop.yml"
|
39
|
+
- ".version.txt"
|
37
40
|
- CHANGELOG.md
|
38
41
|
- CODE_OF_CONDUCT.md
|
39
42
|
- LICENSE.txt
|
@@ -48,6 +51,8 @@ files:
|
|
48
51
|
- lib/sequel/pgt_outbox/table.rb
|
49
52
|
- lib/sequel/pgt_outbox/trigger.rb
|
50
53
|
- lib/sequel/pgt_outbox/version.rb
|
54
|
+
- oci/Containerfile
|
55
|
+
- oci/Gemfile
|
51
56
|
- sig/sequel/pgt_outbox.rbs
|
52
57
|
homepage: https://github.com/rubyists/sequel-pgt_outbox
|
53
58
|
licenses:
|
@@ -72,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
72
77
|
- !ruby/object:Gem::Version
|
73
78
|
version: '0'
|
74
79
|
requirements: []
|
75
|
-
rubygems_version: 3.6.
|
80
|
+
rubygems_version: 3.6.2
|
76
81
|
specification_version: 4
|
77
82
|
summary: Triggers to implement a transaction outbox pattern.
|
78
83
|
test_files: []
|