semian-postgres 0.1.1 → 0.1.3
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/LICENSE.txt +1 -1
- data/README.md +3 -0
- data/lib/semian/pg/version.rb +1 -1
- data/lib/semian/pg.rb +2 -2
- metadata +14 -26
- data/.dockerignore +0 -6
- data/.gitattributes +0 -3
- data/.github/.dependabot.yml +0 -14
- data/.github/workflows/ci.yml +0 -91
- data/.github/workflows/release.yml +0 -54
- data/.gitignore +0 -31
- data/.pre-commit-config.yaml +0 -16
- data/.rspec +0 -3
- data/.rubocop.yml +0 -26
- data/.ruby-version +0 -1
- data/.yamllint +0 -6
- data/CHANGELOG.md +0 -15
- data/Dockerfile +0 -20
- data/Gemfile +0 -21
- data/Rakefile +0 -10
- data/bin/console +0 -16
- data/bin/setup +0 -8
- data/docker-compose.yml +0 -31
- data/semian-postgres.gemspec +0 -28
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 73cf137c03d806d9aff6b4970a36696fc4c4e5a59adef59b4dc3bf59047e7be5
|
|
4
|
+
data.tar.gz: f894ad4f3eef28d25809fd216c7092378970553ff29d3f555603abb7113e1576
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4f1e0d14332077e7da7572b26592b7d3eeb181c79c2f7f1beadb10b339190d7892d862eb736b3d1fbcc3d18e86dc8647c29d18894f91269ddf7dc2845e528da1
|
|
7
|
+
data.tar.gz: 170989c401d813e9f084f99c4a9b89e55988b1f6dcf5ce84ec0ac6f7e95d55066c5fdefdfb7df321f428a30464eddcac7f4013df283bbb5023746cfe86fe1977
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# semian-postgres
|
|
2
2
|
|
|
3
|
+

|
|
4
|
+
[](https://badge.fury.io/rb/semian-postgres)
|
|
5
|
+
|
|
3
6
|
This library provides a Postgres adapter for [Semian](https://github.com/Shopify/semian) by wrapping the [pg gem](https://rubygems.org/gems/pg)
|
|
4
7
|
Semian is a resiliency toolkit for Ruby applications that provides a way to protect your application from external failures by limiting the number of resources that can be used at a time.
|
|
5
8
|
You can read more about Semian [here](https://github.com/Shopify/semian)).
|
data/lib/semian/pg/version.rb
CHANGED
data/lib/semian/pg.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: semian-postgres
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Manuel Schönlaub
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2023-09-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: pg
|
|
@@ -16,28 +16,34 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 1.
|
|
19
|
+
version: 1.5.0
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: 1.
|
|
26
|
+
version: 1.5.0
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: semian
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
|
-
- - "
|
|
31
|
+
- - ">="
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
33
|
version: 0.16.0
|
|
34
|
+
- - "<"
|
|
35
|
+
- !ruby/object:Gem::Version
|
|
36
|
+
version: 0.18.0
|
|
34
37
|
type: :runtime
|
|
35
38
|
prerelease: false
|
|
36
39
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
40
|
requirements:
|
|
38
|
-
- - "
|
|
41
|
+
- - ">="
|
|
39
42
|
- !ruby/object:Gem::Version
|
|
40
43
|
version: 0.16.0
|
|
44
|
+
- - "<"
|
|
45
|
+
- !ruby/object:Gem::Version
|
|
46
|
+
version: 0.18.0
|
|
41
47
|
description:
|
|
42
48
|
email:
|
|
43
49
|
- manuel.schonlaub@prodigygame.com
|
|
@@ -45,29 +51,10 @@ executables: []
|
|
|
45
51
|
extensions: []
|
|
46
52
|
extra_rdoc_files: []
|
|
47
53
|
files:
|
|
48
|
-
- ".dockerignore"
|
|
49
|
-
- ".gitattributes"
|
|
50
|
-
- ".github/.dependabot.yml"
|
|
51
|
-
- ".github/workflows/ci.yml"
|
|
52
|
-
- ".github/workflows/release.yml"
|
|
53
|
-
- ".gitignore"
|
|
54
|
-
- ".pre-commit-config.yaml"
|
|
55
|
-
- ".rspec"
|
|
56
|
-
- ".rubocop.yml"
|
|
57
|
-
- ".ruby-version"
|
|
58
|
-
- ".yamllint"
|
|
59
|
-
- CHANGELOG.md
|
|
60
|
-
- Dockerfile
|
|
61
|
-
- Gemfile
|
|
62
54
|
- LICENSE.txt
|
|
63
55
|
- README.md
|
|
64
|
-
- Rakefile
|
|
65
|
-
- bin/console
|
|
66
|
-
- bin/setup
|
|
67
|
-
- docker-compose.yml
|
|
68
56
|
- lib/semian/pg.rb
|
|
69
57
|
- lib/semian/pg/version.rb
|
|
70
|
-
- semian-postgres.gemspec
|
|
71
58
|
homepage: https://github.com/mschoenlaub/semian-postgres
|
|
72
59
|
licenses:
|
|
73
60
|
- MIT
|
|
@@ -75,6 +62,7 @@ metadata:
|
|
|
75
62
|
homepage_uri: https://github.com/mschoenlaub/semian-postgres
|
|
76
63
|
source_code_uri: https://github.com/mschoenlaub/semian-postgres
|
|
77
64
|
changelog_uri: https://github.com/mschoenlaub/semian-postgres/main/CHANGELOG.md
|
|
65
|
+
github_repo: ssh://github.com/mschoenlaub/semian-postgres
|
|
78
66
|
rubygems_mfa_required: 'true'
|
|
79
67
|
post_install_message:
|
|
80
68
|
rdoc_options: []
|
|
@@ -91,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
91
79
|
- !ruby/object:Gem::Version
|
|
92
80
|
version: '0'
|
|
93
81
|
requirements: []
|
|
94
|
-
rubygems_version: 3.3.
|
|
82
|
+
rubygems_version: 3.3.26
|
|
95
83
|
signing_key:
|
|
96
84
|
specification_version: 4
|
|
97
85
|
summary: Semian adapter for Postgres
|
data/.dockerignore
DELETED
data/.gitattributes
DELETED
data/.github/.dependabot.yml
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
version: 2
|
|
3
|
-
updates:
|
|
4
|
-
- package-ecosystem: github-actions
|
|
5
|
-
directory: /
|
|
6
|
-
schedule:
|
|
7
|
-
interval: daily
|
|
8
|
-
- package-ecosystem: bundler
|
|
9
|
-
directory: /
|
|
10
|
-
open-pull-requests-limit: 10
|
|
11
|
-
insecure-external-code-execution: allow
|
|
12
|
-
registries: "*"
|
|
13
|
-
schedule:
|
|
14
|
-
interval: dails
|
data/.github/workflows/ci.yml
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: Continuous Integration
|
|
3
|
-
|
|
4
|
-
on:
|
|
5
|
-
push:
|
|
6
|
-
branches: main
|
|
7
|
-
pull_request:
|
|
8
|
-
|
|
9
|
-
concurrency:
|
|
10
|
-
group: ${{ github.ref }}-bundle
|
|
11
|
-
cancel-in-progress: true
|
|
12
|
-
|
|
13
|
-
jobs:
|
|
14
|
-
rubocop:
|
|
15
|
-
name: Rubocop
|
|
16
|
-
runs-on: ubuntu-latest
|
|
17
|
-
steps:
|
|
18
|
-
- name: Checkout
|
|
19
|
-
uses: actions/checkout@v3
|
|
20
|
-
|
|
21
|
-
- uses: ruby/setup-ruby@v1
|
|
22
|
-
with:
|
|
23
|
-
ruby-version: ${{ inputs.ruby }}
|
|
24
|
-
bundler-cache: true
|
|
25
|
-
|
|
26
|
-
- name: Run rubocop
|
|
27
|
-
run: |
|
|
28
|
-
bundle exec rubocop
|
|
29
|
-
|
|
30
|
-
yamllint:
|
|
31
|
-
name: 'Yamllint'
|
|
32
|
-
runs-on: ubuntu-latest
|
|
33
|
-
steps:
|
|
34
|
-
- name: Checkout
|
|
35
|
-
uses: actions/checkout@v3
|
|
36
|
-
|
|
37
|
-
- name: Yamllint
|
|
38
|
-
uses: karancode/yamllint-github-action@dd59165b84d90d37fc919c3c7dd84c7e37cd6bfb
|
|
39
|
-
with:
|
|
40
|
-
yamllint_comment: true
|
|
41
|
-
env:
|
|
42
|
-
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
43
|
-
test:
|
|
44
|
-
name: Run specs
|
|
45
|
-
strategy:
|
|
46
|
-
fail-fast: false
|
|
47
|
-
matrix:
|
|
48
|
-
ruby: ["2.7", "3.0", "3.1"]
|
|
49
|
-
postgres: ["9.6", "10", "11", "12", "13"]
|
|
50
|
-
runs-on: ubuntu-latest
|
|
51
|
-
container:
|
|
52
|
-
image: ruby:${{ matrix.ruby }}
|
|
53
|
-
services:
|
|
54
|
-
postgres:
|
|
55
|
-
image: postgres:${{ matrix.postgres }}
|
|
56
|
-
env:
|
|
57
|
-
POSTGRES_PASSWORD: password
|
|
58
|
-
options: >-
|
|
59
|
-
--health-cmd="pg_isready"
|
|
60
|
-
--health-interval=10s
|
|
61
|
-
--health-timeout=5s
|
|
62
|
-
--health-retries=5
|
|
63
|
-
toxiproxy:
|
|
64
|
-
image: ghcr.io/shopify/toxiproxy:2.5.0
|
|
65
|
-
env:
|
|
66
|
-
CI: "1"
|
|
67
|
-
PGHOST: "postgres"
|
|
68
|
-
PGUSER: "postgres"
|
|
69
|
-
PGPASSWORD: "password"
|
|
70
|
-
TOXIPROXY_HOST: "toxiproxy"
|
|
71
|
-
ImageOS: "ubuntu20"
|
|
72
|
-
steps:
|
|
73
|
-
- name: Checkout
|
|
74
|
-
uses: actions/checkout@v3
|
|
75
|
-
|
|
76
|
-
- name: Cache
|
|
77
|
-
uses: actions/cache@v3
|
|
78
|
-
with:
|
|
79
|
-
path: vendor/bundle
|
|
80
|
-
key: ${{ runner.os }}-ruby-${{ matrix.ruby }}-gems-${{ hashFiles( format('{0}.lock', env.BUNDLE_GEMFILE) ) }}
|
|
81
|
-
restore-keys: |
|
|
82
|
-
${{ runner.os }}-ruby-${{ matrix.ruby }}-gems-
|
|
83
|
-
|
|
84
|
-
- name: Bundle
|
|
85
|
-
run: |
|
|
86
|
-
bundle config path vendor/bundle
|
|
87
|
-
bundle install
|
|
88
|
-
|
|
89
|
-
- name: Run tests
|
|
90
|
-
run: |
|
|
91
|
-
bundle exec rspec
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
|
|
3
|
-
name: release-please
|
|
4
|
-
|
|
5
|
-
on:
|
|
6
|
-
push:
|
|
7
|
-
branches: main
|
|
8
|
-
|
|
9
|
-
env:
|
|
10
|
-
GEM_NAME: "semian-postgres"
|
|
11
|
-
|
|
12
|
-
jobs:
|
|
13
|
-
release-please:
|
|
14
|
-
runs-on: ubuntu-latest
|
|
15
|
-
steps:
|
|
16
|
-
- name: Checkout
|
|
17
|
-
uses: actions/checkout@v3
|
|
18
|
-
|
|
19
|
-
- uses: google-github-actions/release-please-action@v3
|
|
20
|
-
id: release
|
|
21
|
-
with:
|
|
22
|
-
token: ${{ secrets.GITHUB_TOKEN }}
|
|
23
|
-
release-type: ruby
|
|
24
|
-
bump-minor-pre-major: true
|
|
25
|
-
bump-patch-for-minor-pre-major: true
|
|
26
|
-
prerelease: true
|
|
27
|
-
package-name: ${{ env.GEM_NAME }}
|
|
28
|
-
version-file: "lib/semian/pg/version.rb"
|
|
29
|
-
command: "github-release"
|
|
30
|
-
|
|
31
|
-
- uses: ruby/setup-ruby@v1
|
|
32
|
-
with:
|
|
33
|
-
bundler-cache: true
|
|
34
|
-
if: ${{ steps.release.outputs.release_created }}
|
|
35
|
-
|
|
36
|
-
- name: Build gem
|
|
37
|
-
run: |
|
|
38
|
-
gem build ${{ env.GEM_NAME }}.gemspec -o ${{ env.GEM_NAME }}.gem
|
|
39
|
-
if: ${{ steps.release.outputs.release_created }}
|
|
40
|
-
|
|
41
|
-
release-pr:
|
|
42
|
-
runs-on: ubuntu-latest
|
|
43
|
-
needs:
|
|
44
|
-
- release-please
|
|
45
|
-
steps:
|
|
46
|
-
- uses: google-github-actions/release-please-action@v3
|
|
47
|
-
with:
|
|
48
|
-
token: ${{ secrets.GITHUB_TOKEN }}
|
|
49
|
-
release-type: ruby
|
|
50
|
-
bump-minor-pre-major: true
|
|
51
|
-
bump-patch-for-minor-pre-major: true
|
|
52
|
-
package-name: ${{ env.GEM_NAME }}
|
|
53
|
-
version-file: "lib/semian/pg/version.rb"
|
|
54
|
-
command: "release-pr"
|
data/.gitignore
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
*.gem
|
|
2
|
-
*.rbc
|
|
3
|
-
/.config
|
|
4
|
-
/coverage/
|
|
5
|
-
/InstalledFiles
|
|
6
|
-
/pkg/
|
|
7
|
-
/spec/reports/
|
|
8
|
-
/spec/examples.txt
|
|
9
|
-
/tmp/
|
|
10
|
-
|
|
11
|
-
Used by dotenv library to load environment variables.
|
|
12
|
-
.env
|
|
13
|
-
.idea
|
|
14
|
-
|
|
15
|
-
## Documentation cache and generated files:
|
|
16
|
-
/.yardoc/
|
|
17
|
-
/_yardoc/
|
|
18
|
-
/doc/
|
|
19
|
-
/rdoc/
|
|
20
|
-
|
|
21
|
-
## Environment normalization:
|
|
22
|
-
/.bundle/
|
|
23
|
-
/vendor/bundle
|
|
24
|
-
/lib/bundler/man/
|
|
25
|
-
|
|
26
|
-
# Gem packaging
|
|
27
|
-
Gemfile.lock
|
|
28
|
-
.ruby-gemset
|
|
29
|
-
.rvmrc
|
|
30
|
-
.DS_Store
|
|
31
|
-
.rspec_status
|
data/.pre-commit-config.yaml
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
repos:
|
|
3
|
-
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
4
|
-
rev: v4.3.0
|
|
5
|
-
hooks:
|
|
6
|
-
- id: trailing-whitespace
|
|
7
|
-
- id: end-of-file-fixer
|
|
8
|
-
- id: check-yaml
|
|
9
|
-
- repo: https://github.com/mattlqx/pre-commit-ruby
|
|
10
|
-
rev: v1.3.5
|
|
11
|
-
hooks:
|
|
12
|
-
- id: rubocop
|
|
13
|
-
- repo: https://github.com/adrienverge/yamllint.git
|
|
14
|
-
rev: v1.17.0
|
|
15
|
-
hooks:
|
|
16
|
-
- id: yamllint
|
data/.rspec
DELETED
data/.rubocop.yml
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
require:
|
|
3
|
-
- rubocop-rspec
|
|
4
|
-
- rubocop-rake
|
|
5
|
-
|
|
6
|
-
AllCops:
|
|
7
|
-
NewCops: enable
|
|
8
|
-
TargetRubyVersion: 2.7
|
|
9
|
-
|
|
10
|
-
Metrics/MethodLength:
|
|
11
|
-
Enabled: 50
|
|
12
|
-
|
|
13
|
-
RSpec/MultipleExpectations:
|
|
14
|
-
Enabled: false
|
|
15
|
-
|
|
16
|
-
RSpec/ExampleLength:
|
|
17
|
-
Enabled: 25
|
|
18
|
-
|
|
19
|
-
RSpec/MultipleMemoizedHelpers:
|
|
20
|
-
Enabled: 10
|
|
21
|
-
|
|
22
|
-
Layout/LineLength:
|
|
23
|
-
Enabled: 160
|
|
24
|
-
|
|
25
|
-
RSpec/Capybara/FeatureMethods:
|
|
26
|
-
Enabled: false
|
data/.ruby-version
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
3.1.2
|
data/.yamllint
DELETED
data/CHANGELOG.md
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
## [0.1.1](https://github.com/mschoenlaub/semian-postgres/compare/v0.1.0...v0.1.1) (2022-10-31)
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
### Bug Fixes
|
|
7
|
-
|
|
8
|
-
* Fix repo URL in gemspec ([8b3e9b0](https://github.com/mschoenlaub/semian-postgres/commit/8b3e9b0aee2ef259ee2f1b0572ff5d561cf993fe))
|
|
9
|
-
|
|
10
|
-
## 0.1.0 (2022-10-31)
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
### Features
|
|
14
|
-
|
|
15
|
-
* initial release ([74885ee](https://github.com/mschoenlaub/semian-postgres/commit/74885ee9b96a1cb42c7dbcb63730b8a68628dd5f))
|
data/Dockerfile
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
ARG RUBY_VERSION=3.1.2
|
|
2
|
-
FROM ruby:${RUBY_VERSION} as base
|
|
3
|
-
|
|
4
|
-
# Avoid warnings by switching to noninteractive
|
|
5
|
-
ENV DEBIAN_FRONTEND=noninteractive
|
|
6
|
-
|
|
7
|
-
RUN apt-get update && apt-get install --no-install-recommends -y \
|
|
8
|
-
build-essential \
|
|
9
|
-
libssl-dev \
|
|
10
|
-
postgresql-client \
|
|
11
|
-
libpq-dev \
|
|
12
|
-
netcat \
|
|
13
|
-
&& rm -rf /var/lib/apt/lists/* \
|
|
14
|
-
&& gem install bundler
|
|
15
|
-
|
|
16
|
-
WORKDIR /app
|
|
17
|
-
COPY . .
|
|
18
|
-
RUN chmod +x scripts/*.sh
|
|
19
|
-
RUN bundle install
|
|
20
|
-
CMD ["/bin/bash"]
|
data/Gemfile
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
source 'https://rubygems.org'
|
|
4
|
-
|
|
5
|
-
# Specify your gem's dependencies in semian-pg.gemspec
|
|
6
|
-
gemspec
|
|
7
|
-
|
|
8
|
-
gem 'rake', '~> 12.0'
|
|
9
|
-
|
|
10
|
-
group :test do
|
|
11
|
-
gem 'rspec', '~> 3.0'
|
|
12
|
-
gem 'ruby-debug-ide', '~> 0.7.3'
|
|
13
|
-
gem 'timecop', '~> 0.9.1'
|
|
14
|
-
gem 'toxiproxy', '~> 2.0 '
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
group :lint do
|
|
18
|
-
gem 'rubocop', require: false
|
|
19
|
-
gem 'rubocop-rake', require: false
|
|
20
|
-
gem 'rubocop-rspec', require: false
|
|
21
|
-
end
|
data/Rakefile
DELETED
data/bin/console
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ruby
|
|
2
|
-
|
|
3
|
-
# frozen_string_literal: true
|
|
4
|
-
|
|
5
|
-
require 'bundler/setup'
|
|
6
|
-
require 'semian/pg'
|
|
7
|
-
|
|
8
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
|
9
|
-
# with your gem easier. You can also use a different console, if you like.
|
|
10
|
-
|
|
11
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
|
12
|
-
# require "pry"
|
|
13
|
-
# Pry.start
|
|
14
|
-
|
|
15
|
-
require 'irb'
|
|
16
|
-
IRB.start(__FILE__)
|
data/bin/setup
DELETED
data/docker-compose.yml
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
version: "3.7"
|
|
3
|
-
services:
|
|
4
|
-
dev:
|
|
5
|
-
environment:
|
|
6
|
-
DEBUG: "1"
|
|
7
|
-
PGHOST: "postgres"
|
|
8
|
-
PGUSER: "postgres"
|
|
9
|
-
PGPASSWORD: "password"
|
|
10
|
-
TOXIPROXY_HOST: "toxiproxy"
|
|
11
|
-
build:
|
|
12
|
-
context: ./
|
|
13
|
-
dockerfile: Dockerfile
|
|
14
|
-
container_name: semian-dev
|
|
15
|
-
volumes:
|
|
16
|
-
- .:/app
|
|
17
|
-
command:
|
|
18
|
-
- /bin/bash
|
|
19
|
-
- -c
|
|
20
|
-
- |
|
|
21
|
-
bundle install
|
|
22
|
-
sleep infinity
|
|
23
|
-
toxiproxy:
|
|
24
|
-
image: ghcr.io/shopify/toxiproxy:2.5.0
|
|
25
|
-
container_name: toxiproxy
|
|
26
|
-
depends_on:
|
|
27
|
-
- postgres
|
|
28
|
-
postgres:
|
|
29
|
-
image: postgres
|
|
30
|
-
environment:
|
|
31
|
-
POSTGRES_PASSWORD: password
|
data/semian-postgres.gemspec
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
require_relative 'lib/semian/pg/version'
|
|
4
|
-
|
|
5
|
-
Gem::Specification.new do |spec|
|
|
6
|
-
spec.name = 'semian-postgres'
|
|
7
|
-
spec.version = Semian::PG::VERSION
|
|
8
|
-
spec.homepage = 'https://github.com/mschoenlaub/semian-postgres'
|
|
9
|
-
spec.authors = ['Manuel Schönlaub']
|
|
10
|
-
spec.email = ['manuel.schonlaub@prodigygame.com']
|
|
11
|
-
|
|
12
|
-
spec.summary = 'Semian adapter for Postgres'
|
|
13
|
-
spec.license = 'MIT'
|
|
14
|
-
spec.required_ruby_version = Gem::Requirement.new('>=2.7.0')
|
|
15
|
-
|
|
16
|
-
spec.add_runtime_dependency 'pg', '~> 1.4.0'
|
|
17
|
-
spec.add_runtime_dependency 'semian', '~> 0.16.0'
|
|
18
|
-
|
|
19
|
-
spec.metadata['homepage_uri'] = spec.homepage
|
|
20
|
-
spec.metadata['source_code_uri'] = spec.homepage
|
|
21
|
-
spec.metadata['changelog_uri'] = "#{spec.homepage}/main/CHANGELOG.md"
|
|
22
|
-
|
|
23
|
-
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
|
24
|
-
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
25
|
-
end
|
|
26
|
-
spec.require_paths = ['lib']
|
|
27
|
-
spec.metadata['rubygems_mfa_required'] = 'true'
|
|
28
|
-
end
|