sequel-pgt_outbox 0.2.0 → 0.2.2

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: 24d2ec8fd8ddefdc27af445348e42d8324a5a4dc7591694ac9646df1ca8675e1
4
- data.tar.gz: 3b5865ee09aa89409ae47cc3b61a364a95ae40365705cf354b028b5d22012c6e
3
+ metadata.gz: f9fd7197584e294be0efae2230bf621b01532126e5008764dbce434b6167d01e
4
+ data.tar.gz: 778a8d254b36f252b97f28e2b059dbf5bd3b8bc32240b7935ae7823123b55b5d
5
5
  SHA512:
6
- metadata.gz: e9d7f8d7545faa4e8f86532520f74aef45332612a3824c0ae52122da160a67ac2241bde894234a3939df27dc6f2daa58be7d322cea76c84ebb8c210fc95ae87a
7
- data.tar.gz: 6157a47c7e2f103389be623968dd4d1f095d85ae70381b4f90aa9990180f7cd9f350e41fe5161980fce1a74fdc38fe12bf326a9cad28030cd0ef9a86d186445a
6
+ metadata.gz: f07f8aef12cf3588980b94d9bcc2a518cfafbc30ba75deecc349ef474b2bfcf3847c74804f1227819cf0fcfb3ee96b8d4507e7e8abfe3d4a234b1b862d4a7b82
7
+ data.tar.gz: 4c49f2793b0a238061542c3f5fbc159aed16b952f6fa2aa674f26b3df2616510f6de24d3bee0d9c7cecbdf31abf2be00b776e054631036d6e62ad26e48328ed1
@@ -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
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "0.2.2"
3
+ }
data/.version.txt ADDED
@@ -0,0 +1 @@
1
+ 0.2.2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.2.2](https://github.com/rubyists/sequel-pgt_outbox/compare/v0.2.1...v0.2.2) (2025-02-15)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * Corrects github remote to origin and ignores rubygems api checksum ([#6](https://github.com/rubyists/sequel-pgt_outbox/issues/6)) ([eb2e557](https://github.com/rubyists/sequel-pgt_outbox/commit/eb2e55743fb13a30427bbcc3ffd71a9c17f1972e))
9
+
10
+ ## [0.2.1](https://github.com/rubyists/sequel-pgt_outbox/compare/v0.2.0...v0.2.1) (2025-02-15)
11
+
12
+
13
+ ### Features
14
+
15
+ * initial commit ([c7cbcb0](https://github.com/rubyists/sequel-pgt_outbox/commit/c7cbcb01c39d2415100d34af041526a5cecb5626))
16
+ * Removes the pg_triggers extension to just leave pgt_outbox ([d354218](https://github.com/rubyists/sequel-pgt_outbox/commit/d35421806c8812876e1905afe86afc24a5d501ac))
17
+
18
+
19
+ ### Bug Fixes
20
+
21
+ * 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))
22
+
3
23
  ## [0.1.0] - 2025-02-14
4
24
 
5
25
  - 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("PGT_SPEC_DB", "postgres:///spgt_test"))
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("PGT_SPEC_DB", "postgres:///spgt_test"))
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/ci/build_image.sh CHANGED
@@ -194,7 +194,7 @@ fi
194
194
 
195
195
  revision=$(git rev-parse HEAD)
196
196
  shortref=$(git rev-parse --short "$revision")
197
- repo_url=$(git remote get-url upstream)
197
+ repo_url=$(git remote get-url origin)
198
198
  if [ -z "$repo_url" ]
199
199
  then
200
200
  die 7 "No remote found"
@@ -3,7 +3,7 @@
3
3
  module Rubyists
4
4
  module PgtOutbox
5
5
  # x-release-please-start-version
6
- VERSION = '0.2.0'
6
+ VERSION = '0.2.2'
7
7
  # x-release-please-end
8
8
  end
9
9
  end
data/oci/Containerfile ADDED
@@ -0,0 +1,50 @@
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 config set --local disable_checksum_validation true && \
26
+ bundle install --jobs $JOBS
27
+
28
+ # Remove folders not needed in resulting image
29
+ RUN rm -rf node_modules tmp/cache app/assets vendor/assets spec
30
+
31
+ ############### Build step done ###############
32
+ ARG UBUNTU_VERSION=bookworm
33
+ ARG RUBY_VERSION=3.3.4
34
+ FROM docker.io/ruby:$RUBY_VERSION-$UBUNTU_VERSION
35
+
36
+ ARG APP_ROOT=/app
37
+
38
+ # install packages
39
+ RUN apt update && \
40
+ apt install -qy curl bash runit && \
41
+ useradd -m -u 1000 -s /bin/bash outbox
42
+
43
+ # copy bundle from build-env
44
+ COPY --from=build-env /usr/local/bundle/ /usr/local/bundle/
45
+
46
+ USER 1000
47
+ WORKDIR $APP_ROOT
48
+
49
+
50
+ CMD ['/bin/bash']
data/oci/Gemfile ADDED
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ # x-release-please-start-version
6
+ gem 'sequel-pgt_outbox', '= 0.2.2'
7
+ # x-release-please-end
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.0
4
+ version: 0.2.2
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.3
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: []