pg-aws_rds_iam 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/{pull-request.yml → ci.yml} +21 -55
- data/.ruby-version +1 -1
- data/CHANGELOG.md +11 -2
- data/Gemfile.lock +25 -25
- data/bin/version-matrix +19 -3
- data/lib/pg/aws_rds_iam/connection_info/uri.rb +3 -1
- data/lib/pg/aws_rds_iam/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e30706e0bd824304eea8f942c41a9a4b7d9ef3d1de045bb5e584c0dd59c0e820
|
4
|
+
data.tar.gz: fa2c711695830b43c1a1e58722f69f7e27fb57c9514d572ff300e68c0e9000cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b6e875a21ec9d67ca170ba07236ed9482679f61ffd79cd2df888814b5a463bb72ce9f908d0e44c425ca3dbd5fe258415af9598e265c28cbbdbf6358b33a6d23
|
7
|
+
data.tar.gz: 674a9f7bfa03cfb3b6b8200ee60de00b0cdaa79dae92827f38242ba33042ee6323c3597863b9ca4ce7834d14e6f6daab339696029a1de3284c648b66cf87157a
|
@@ -1,31 +1,24 @@
|
|
1
|
-
name:
|
1
|
+
name: CI
|
2
2
|
|
3
|
-
on:
|
4
|
-
- pull_request
|
3
|
+
on: pull_request
|
5
4
|
|
6
5
|
jobs:
|
7
|
-
|
8
|
-
name:
|
6
|
+
lint:
|
7
|
+
name: Lint
|
9
8
|
|
10
9
|
runs-on: ubuntu-latest
|
11
10
|
|
12
|
-
container:
|
13
|
-
image: ruby:alpine
|
14
|
-
|
15
11
|
steps:
|
16
|
-
- name: Install dependencies
|
17
|
-
run: apk add git
|
18
|
-
|
19
12
|
- name: Check out source code
|
20
13
|
uses: actions/checkout@v3
|
21
14
|
|
22
|
-
- name: Install
|
23
|
-
|
15
|
+
- name: Install Ruby and gems
|
16
|
+
uses: ruby/setup-ruby@v1
|
17
|
+
with:
|
18
|
+
bundler-cache: true
|
24
19
|
|
25
|
-
- name:
|
26
|
-
run: bin/
|
27
|
-
env:
|
28
|
-
BUNDLE_FROZEN: true
|
20
|
+
- name: Run RuboCop
|
21
|
+
run: bin/rake rubocop
|
29
22
|
|
30
23
|
version-matrix:
|
31
24
|
name: Generate version matrix
|
@@ -36,9 +29,6 @@ jobs:
|
|
36
29
|
matrix: ${{ steps.version-matrix.outputs.matrix }}
|
37
30
|
|
38
31
|
steps:
|
39
|
-
- name: Check if secrets are available
|
40
|
-
run: test -n "${{ secrets.AVAILABLE }}"
|
41
|
-
|
42
32
|
- name: Check out source code
|
43
33
|
uses: actions/checkout@v3
|
44
34
|
|
@@ -56,55 +46,28 @@ jobs:
|
|
56
46
|
|
57
47
|
runs-on: ubuntu-latest
|
58
48
|
|
59
|
-
container:
|
60
|
-
image: ruby:${{ matrix.ruby }}-alpine
|
61
|
-
|
62
49
|
env:
|
63
50
|
BUNDLE_PATH: ${{ github.workspace }}/vendor/bundle
|
64
51
|
ACTIVERECORD_VERSION: ${{ matrix.activerecord }}
|
65
52
|
PG_VERSION: ${{ matrix.pg }}
|
66
53
|
|
67
54
|
steps:
|
68
|
-
- name: Install dependencies
|
69
|
-
run: apk add build-base git postgresql-client postgresql-dev tar
|
70
|
-
|
71
55
|
- name: Check out source code
|
72
56
|
uses: actions/checkout@v3
|
73
57
|
|
74
|
-
- name: Install
|
75
|
-
|
58
|
+
- name: Install Ruby
|
59
|
+
uses: ruby/setup-ruby@v1
|
60
|
+
with:
|
61
|
+
ruby-version: ${{ matrix.ruby }}
|
76
62
|
|
77
63
|
- name: Update Gemfile.lock
|
78
64
|
run: bin/bundle lock --update activerecord pg
|
79
65
|
|
80
|
-
- name: Compute cache key
|
81
|
-
id: cache-key
|
82
|
-
run: |
|
83
|
-
source /etc/os-release
|
84
|
-
postgresql_version=$(apk info --installed postgresql-dev --verbose)
|
85
|
-
printf \
|
86
|
-
"::set-output name=cache-key::alpine-%s-ruby-%s-%s\n" \
|
87
|
-
"${VERSION_ID}" \
|
88
|
-
"${RUBY_VERSION}" \
|
89
|
-
"${postgresql_version}"
|
90
|
-
|
91
|
-
- name: Cache gems
|
92
|
-
uses: actions/cache@v3
|
93
|
-
with:
|
94
|
-
key: ${{ steps.cache-key.outputs.cache-key }}-gems-${{ hashFiles('Gemfile.lock') }}
|
95
|
-
path: vendor/bundle
|
96
|
-
restore-keys: |
|
97
|
-
${{ steps.cache-key.outputs.cache-key }}-gems-
|
98
|
-
|
99
66
|
- name: Install gems
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
BUNDLE_RETRY: 3
|
105
|
-
|
106
|
-
- name: Run RuboCop
|
107
|
-
run: bin/rake rubocop
|
67
|
+
uses: ruby/setup-ruby@v1
|
68
|
+
with:
|
69
|
+
ruby-version: ${{ matrix.ruby }}
|
70
|
+
bundler-cache: true
|
108
71
|
|
109
72
|
- name: Run unit tests
|
110
73
|
run: bin/rake test:unit
|
@@ -119,9 +82,12 @@ jobs:
|
|
119
82
|
SECURITY_GROUP_ID: ${{ secrets.SECURITY_GROUP_ID }}
|
120
83
|
|
121
84
|
test-results:
|
85
|
+
name: Check test results
|
86
|
+
|
122
87
|
if: always()
|
123
88
|
|
124
89
|
needs:
|
90
|
+
- version-matrix
|
125
91
|
- test
|
126
92
|
|
127
93
|
runs-on: ubuntu-latest
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby-3.
|
1
|
+
ruby-3.2.0
|
data/CHANGELOG.md
CHANGED
@@ -8,6 +8,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
8
8
|
|
9
9
|
No notable changes.
|
10
10
|
|
11
|
+
## [0.4.2] - 2023-01-10
|
12
|
+
|
13
|
+
### Changed
|
14
|
+
* Test against Ruby 3.2 ([#442](https://github.com/haines/pg-aws_rds_iam/pull/442))
|
15
|
+
|
16
|
+
### Fixed
|
17
|
+
* Handle empty host in connection URIs ([#442](https://github.com/haines/pg-aws_rds_iam/pull/442))
|
18
|
+
|
11
19
|
## [0.4.1] - 2022-07-20
|
12
20
|
|
13
21
|
### Fixed
|
@@ -17,7 +25,7 @@ No notable changes.
|
|
17
25
|
|
18
26
|
### Changed
|
19
27
|
* Test against Ruby 3.1 ([#305](https://github.com/haines/pg-aws_rds_iam/pull/305))
|
20
|
-
* Require Ruby ≥ 2.
|
28
|
+
* Require Ruby ≥ 2.7 and Active Record ≥ 6.0 ([#360](https://github.com/haines/pg-aws_rds_iam/pull/360))
|
21
29
|
|
22
30
|
### Fixed
|
23
31
|
* Compatibility with `pg` ≥ 1.4 ([#356](https://github.com/haines/pg-aws_rds_iam/pull/356))
|
@@ -57,7 +65,8 @@ No notable changes.
|
|
57
65
|
* A plugin for the [`pg` gem](https://rubygems.org/gems/pg) that adds support for [IAM authentication](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html) when connecting to PostgreSQL databases hosted in Amazon RDS. ([#1](https://github.com/haines/pg-aws_rds_iam/pull/1))
|
58
66
|
* ActiveRecord support. ([#3](https://github.com/haines/pg-aws_rds_iam/pull/3))
|
59
67
|
|
60
|
-
[Unreleased]: https://github.com/haines/pg-aws_rds_iam/compare/v0.4.
|
68
|
+
[Unreleased]: https://github.com/haines/pg-aws_rds_iam/compare/v0.4.2...HEAD
|
69
|
+
[0.4.2]: https://github.com/haines/pg-aws_rds_iam/compare/v0.4.1...v0.4.2
|
61
70
|
[0.4.1]: https://github.com/haines/pg-aws_rds_iam/compare/v0.4.0...v0.4.1
|
62
71
|
[0.4.0]: https://github.com/haines/pg-aws_rds_iam/compare/v0.3.2...v0.4.0
|
63
72
|
[0.3.2]: https://github.com/haines/pg-aws_rds_iam/compare/v0.3.1...v0.3.2
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
pg-aws_rds_iam (0.4.
|
4
|
+
pg-aws_rds_iam (0.4.2)
|
5
5
|
aws-sdk-rds (~> 1.0)
|
6
6
|
pg (>= 0.18, < 2.0)
|
7
7
|
|
@@ -21,67 +21,67 @@ GEM
|
|
21
21
|
ansi (1.5.0)
|
22
22
|
ast (2.4.2)
|
23
23
|
aws-eventstream (1.2.0)
|
24
|
-
aws-partitions (1.
|
25
|
-
aws-sdk-core (3.
|
24
|
+
aws-partitions (1.689.0)
|
25
|
+
aws-sdk-core (3.168.4)
|
26
26
|
aws-eventstream (~> 1, >= 1.0.2)
|
27
|
-
aws-partitions (~> 1, >= 1.
|
28
|
-
aws-sigv4 (~> 1.
|
27
|
+
aws-partitions (~> 1, >= 1.651.0)
|
28
|
+
aws-sigv4 (~> 1.5)
|
29
29
|
jmespath (~> 1, >= 1.6.1)
|
30
|
-
aws-sdk-ec2 (1.
|
31
|
-
aws-sdk-core (~> 3, >= 3.
|
30
|
+
aws-sdk-ec2 (1.356.0)
|
31
|
+
aws-sdk-core (~> 3, >= 3.165.0)
|
32
32
|
aws-sigv4 (~> 1.1)
|
33
|
-
aws-sdk-rds (1.
|
34
|
-
aws-sdk-core (~> 3, >= 3.
|
33
|
+
aws-sdk-rds (1.169.0)
|
34
|
+
aws-sdk-core (~> 3, >= 3.165.0)
|
35
35
|
aws-sigv4 (~> 1.1)
|
36
|
-
aws-sigv4 (1.5.
|
36
|
+
aws-sigv4 (1.5.2)
|
37
37
|
aws-eventstream (~> 1, >= 1.0.2)
|
38
38
|
builder (3.2.4)
|
39
39
|
coderay (1.1.3)
|
40
|
-
commonmarker (0.23.
|
40
|
+
commonmarker (0.23.6)
|
41
41
|
concurrent-ruby (1.1.10)
|
42
42
|
i18n (1.11.0)
|
43
43
|
concurrent-ruby (~> 1.0)
|
44
|
-
jmespath (1.6.
|
45
|
-
json (2.6.
|
44
|
+
jmespath (1.6.2)
|
45
|
+
json (2.6.3)
|
46
46
|
method_source (1.0.0)
|
47
|
-
minitest (5.
|
47
|
+
minitest (5.17.0)
|
48
48
|
minitest-reporters (1.5.0)
|
49
49
|
ansi
|
50
50
|
builder
|
51
51
|
minitest (>= 5.0)
|
52
52
|
ruby-progressbar
|
53
53
|
parallel (1.22.1)
|
54
|
-
parser (3.1.
|
54
|
+
parser (3.1.3.0)
|
55
55
|
ast (~> 2.4.1)
|
56
|
-
pg (1.4.
|
56
|
+
pg (1.4.5)
|
57
57
|
pry (0.14.1)
|
58
58
|
coderay (~> 1.1)
|
59
59
|
method_source (~> 1.0)
|
60
60
|
rainbow (3.1.1)
|
61
61
|
rake (13.0.6)
|
62
|
-
regexp_parser (2.
|
62
|
+
regexp_parser (2.6.1)
|
63
63
|
rexml (3.2.5)
|
64
|
-
rubocop (1.
|
64
|
+
rubocop (1.42.0)
|
65
65
|
json (~> 2.3)
|
66
66
|
parallel (~> 1.10)
|
67
|
-
parser (>= 3.1.
|
67
|
+
parser (>= 3.1.2.1)
|
68
68
|
rainbow (>= 2.2.2, < 4.0)
|
69
69
|
regexp_parser (>= 1.8, < 3.0)
|
70
70
|
rexml (>= 3.2.5, < 4.0)
|
71
|
-
rubocop-ast (>= 1.
|
71
|
+
rubocop-ast (>= 1.24.1, < 2.0)
|
72
72
|
ruby-progressbar (~> 1.7)
|
73
73
|
unicode-display_width (>= 1.4.0, < 3.0)
|
74
|
-
rubocop-ast (1.
|
74
|
+
rubocop-ast (1.24.1)
|
75
75
|
parser (>= 3.1.1.0)
|
76
|
-
rubocop-minitest (0.
|
76
|
+
rubocop-minitest (0.25.1)
|
77
77
|
rubocop (>= 0.90, < 2.0)
|
78
78
|
rubocop-rake (0.6.0)
|
79
79
|
rubocop (~> 1.0)
|
80
80
|
ruby-progressbar (1.11.0)
|
81
|
-
timecop (0.9.
|
81
|
+
timecop (0.9.6)
|
82
82
|
tzinfo (2.0.4)
|
83
83
|
concurrent-ruby (~> 1.0)
|
84
|
-
unicode-display_width (2.
|
84
|
+
unicode-display_width (2.3.0)
|
85
85
|
webrick (1.7.0)
|
86
86
|
yard (0.9.28)
|
87
87
|
webrick (~> 1.7.0)
|
@@ -107,4 +107,4 @@ DEPENDENCIES
|
|
107
107
|
yard
|
108
108
|
|
109
109
|
BUNDLED WITH
|
110
|
-
2.3
|
110
|
+
2.4.3
|
data/bin/version-matrix
CHANGED
@@ -11,7 +11,15 @@ end
|
|
11
11
|
ruby_activerecord_requirements = {
|
12
12
|
"2.7" => ">= 6.0",
|
13
13
|
"3.0" => ">= 6.0",
|
14
|
-
"3.1" => ">= 6.0"
|
14
|
+
"3.1" => ">= 6.0",
|
15
|
+
"3.2" => ">= 6.0"
|
16
|
+
}
|
17
|
+
|
18
|
+
ruby_pg_requirements = {
|
19
|
+
"2.7" => "> 0",
|
20
|
+
"3.0" => "> 0",
|
21
|
+
"3.1" => "> 0",
|
22
|
+
"3.2" => ">= 1.3"
|
15
23
|
}
|
16
24
|
|
17
25
|
activerecord_pg_requirements = {
|
@@ -22,7 +30,12 @@ activerecord_pg_requirements = {
|
|
22
30
|
|
23
31
|
versions = ruby_activerecord_requirements.flat_map do |ruby_version, activerecord_requirement|
|
24
32
|
minor_versions("activerecord", activerecord_requirement).flat_map do |activerecord_version|
|
25
|
-
|
33
|
+
pg_requirement = [
|
34
|
+
ruby_pg_requirements.fetch(ruby_version),
|
35
|
+
activerecord_pg_requirements.fetch(activerecord_version)
|
36
|
+
].flatten
|
37
|
+
|
38
|
+
minor_versions("pg", pg_requirement).map do |pg_version|
|
26
39
|
{
|
27
40
|
ruby: ruby_version,
|
28
41
|
activerecord: activerecord_version,
|
@@ -34,4 +47,7 @@ end
|
|
34
47
|
|
35
48
|
matrix = { include: versions }
|
36
49
|
|
37
|
-
puts
|
50
|
+
puts JSON.pretty_generate(matrix)
|
51
|
+
|
52
|
+
output_file = ENV.fetch("GITHUB_OUTPUT", false)
|
53
|
+
File.write output_file, "matrix=#{matrix.to_json}" if output_file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pg-aws_rds_iam
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Haines
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-rds
|
@@ -53,7 +53,7 @@ extensions: []
|
|
53
53
|
extra_rdoc_files: []
|
54
54
|
files:
|
55
55
|
- ".github/dependabot.yml"
|
56
|
-
- ".github/workflows/
|
56
|
+
- ".github/workflows/ci.yml"
|
57
57
|
- ".gitignore"
|
58
58
|
- ".rubocop.yml"
|
59
59
|
- ".ruby-version"
|
@@ -94,7 +94,7 @@ licenses:
|
|
94
94
|
metadata:
|
95
95
|
bug_tracker_uri: https://github.com/haines/pg-aws_rds_iam/issues
|
96
96
|
changelog_uri: https://github.com/haines/pg-aws_rds_iam/blob/main/CHANGELOG.md
|
97
|
-
documentation_uri: https://rubydoc.info/gems/pg-aws_rds_iam/0.4.
|
97
|
+
documentation_uri: https://rubydoc.info/gems/pg-aws_rds_iam/0.4.2
|
98
98
|
homepage_uri: https://github.com/haines/pg-aws_rds_iam
|
99
99
|
source_code_uri: https://github.com/haines/pg-aws_rds_iam
|
100
100
|
rubygems_mfa_required: 'true'
|
@@ -113,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
113
113
|
- !ruby/object:Gem::Version
|
114
114
|
version: '0'
|
115
115
|
requirements: []
|
116
|
-
rubygems_version: 3.3
|
116
|
+
rubygems_version: 3.4.3
|
117
117
|
signing_key:
|
118
118
|
specification_version: 4
|
119
119
|
summary: IAM authentication for PostgreSQL on Amazon RDS
|