pg-aws_rds_iam 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 504dce7b278a49626dffa330766585848c2a1960b511ef208f0d35bcf0ee98ec
4
- data.tar.gz: f7e2efd00f9b0a5e21377706fb526b3ab7d7401717eff0666b046fbfb496f1d1
3
+ metadata.gz: 7d53df3b169ccf67632243b2988b27c9877926d2dc8633d03b8a86c1bd8fd0a2
4
+ data.tar.gz: 26a706ea26b9980d71d9f9dd3bad216b6b7b0900d7b3fb6ce5ac808b63291e0b
5
5
  SHA512:
6
- metadata.gz: 744ff6d2e6a5b0c510a89ffd023b8b350b144351947ce2b578ecebe59e9dee684b1096acd4fe452a4ea40306dff66e1f5cdd3ac5d46f697cfd7710b92aa4b4f3
7
- data.tar.gz: 22ed74002fd2e1060667ed4608191594ab1dd1c96797e80b7fd77fdd4ce0c6f8f66db688e8632fc5475a172b073e57c08c90e75e9c280247dc3d06ddb29712b9
6
+ metadata.gz: 52580d0b4cde8bb0137b3c9d8f8a051407b012c84cb2eb23c808d1a87b5e1403e829a13a21e8b0023d7cccc4bc8251ed1d8641f4806a92d10543cb38757f6fe3
7
+ data.tar.gz: f017a695a8a3e2afa79dfe0eace2cb93f071beb4dfa92b29d8fc731b75e861b2036062990f4948d08c11b61ca2429a1f23f546f5cbeaaeae290814b3ae797602
@@ -4,6 +4,29 @@ on:
4
4
  - pull_request
5
5
 
6
6
  jobs:
7
+ check-gemfile-lock:
8
+ name: Check Gemfile.lock
9
+
10
+ runs-on: ubuntu-latest
11
+
12
+ container:
13
+ image: ruby:alpine
14
+
15
+ steps:
16
+ - name: Install dependencies
17
+ run: apk add git
18
+
19
+ - name: Check out source code
20
+ uses: actions/checkout@v2
21
+
22
+ - name: Install Bundler
23
+ run: bin/install-bundler
24
+
25
+ - name: Check Gemfile.lock
26
+ run: bin/bundle lock
27
+ env:
28
+ BUNDLE_FROZEN: true
29
+
7
30
  version-matrix:
8
31
  name: Generate version matrix
9
32
 
@@ -13,6 +36,9 @@ jobs:
13
36
  matrix: ${{ steps.version-matrix.outputs.matrix }}
14
37
 
15
38
  steps:
39
+ - name: Check if secrets are available
40
+ run: test -n "${{ secrets.AVAILABLE }}"
41
+
16
42
  - name: Check out source code
17
43
  uses: actions/checkout@v2
18
44
 
@@ -40,7 +66,7 @@ jobs:
40
66
 
41
67
  steps:
42
68
  - name: Install dependencies
43
- run: apk add build-base git postgresql-dev
69
+ run: apk add build-base git postgresql-dev tar
44
70
 
45
71
  - name: Check out source code
46
72
  uses: actions/checkout@v2
@@ -89,3 +115,15 @@ jobs:
89
115
  AWS_REGION: ${{ secrets.AWS_REGION }}
90
116
  DATABASE_URL: ${{ secrets.DATABASE_URL }}
91
117
  SECURITY_GROUP_ID: ${{ secrets.SECURITY_GROUP_ID }}
118
+
119
+ test-results:
120
+ if: always()
121
+
122
+ needs:
123
+ - test
124
+
125
+ runs-on: ubuntu-latest
126
+
127
+ steps:
128
+ - name: Check test results
129
+ run: test "${{ needs.test.result }}" = "success"
data/.rubocop.yml CHANGED
@@ -3,7 +3,7 @@ require:
3
3
  - rubocop-rake
4
4
 
5
5
  AllCops:
6
- TargetRubyVersion: 2.5
6
+ TargetRubyVersion: 2.6
7
7
  NewCops: enable
8
8
  Exclude:
9
9
  - bin/bundle
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-3.0.0
1
+ ruby-3.0.2
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.3.0] - 2021-11-10
12
+
13
+ ### Changed
14
+ * Require Ruby ≥ 2.6 ([#216](https://github.com/haines/pg-aws_rds_iam/pull/216))
15
+
16
+ ### Fixed
17
+ * Typos in README ([#272](https://github.com/haines/pg-aws_rds_iam/pull/272))
18
+
11
19
  ## [0.2.0] - 2021-01-29
12
20
 
13
21
  ### Changed
@@ -25,7 +33,8 @@ No notable changes.
25
33
  * 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))
26
34
  * ActiveRecord support. ([#3](https://github.com/haines/pg-aws_rds_iam/pull/3))
27
35
 
28
- [Unreleased]: https://github.com/haines/pg-aws_rds_iam/compare/v0.2.0...HEAD
36
+ [Unreleased]: https://github.com/haines/pg-aws_rds_iam/compare/v0.3.0...HEAD
37
+ [0.3.0]: https://github.com/haines/pg-aws_rds_iam/compare/v0.2.0...v0.3.0
29
38
  [0.2.0]: https://github.com/haines/pg-aws_rds_iam/compare/v0.1.1...v0.2.0
30
39
  [0.1.1]: https://github.com/haines/pg-aws_rds_iam/compare/v0.1.0...v0.1.1
31
40
  [0.1.0]: https://github.com/haines/pg-aws_rds_iam/compare/64168051a8ef5f32a13632d8ef0b7da00d0056bc...v0.1.0
data/Gemfile.lock CHANGED
@@ -1,19 +1,19 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pg-aws_rds_iam (0.2.0)
4
+ pg-aws_rds_iam (0.3.0)
5
5
  aws-sdk-rds (~> 1.0)
6
6
  pg (>= 0.18, < 2.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activemodel (6.1.1)
12
- activesupport (= 6.1.1)
13
- activerecord (6.1.1)
14
- activemodel (= 6.1.1)
15
- activesupport (= 6.1.1)
16
- activesupport (6.1.1)
11
+ activemodel (6.1.3)
12
+ activesupport (= 6.1.3)
13
+ activerecord (6.1.3)
14
+ activemodel (= 6.1.3)
15
+ activesupport (= 6.1.3)
16
+ activesupport (6.1.3)
17
17
  concurrent-ruby (~> 1.0, >= 1.0.2)
18
18
  i18n (>= 1.6, < 2)
19
19
  minitest (>= 5.1)
@@ -21,65 +21,65 @@ GEM
21
21
  zeitwerk (~> 2.3)
22
22
  ansi (1.5.0)
23
23
  ast (2.4.2)
24
- aws-eventstream (1.1.0)
25
- aws-partitions (1.421.0)
26
- aws-sdk-core (3.111.2)
24
+ aws-eventstream (1.2.0)
25
+ aws-partitions (1.525.0)
26
+ aws-sdk-core (3.122.0)
27
27
  aws-eventstream (~> 1, >= 1.0.2)
28
- aws-partitions (~> 1, >= 1.239.0)
28
+ aws-partitions (~> 1, >= 1.525.0)
29
29
  aws-sigv4 (~> 1.1)
30
30
  jmespath (~> 1.0)
31
- aws-sdk-ec2 (1.221.0)
32
- aws-sdk-core (~> 3, >= 3.109.0)
31
+ aws-sdk-ec2 (1.277.0)
32
+ aws-sdk-core (~> 3, >= 3.122.0)
33
33
  aws-sigv4 (~> 1.1)
34
- aws-sdk-rds (1.111.0)
35
- aws-sdk-core (~> 3, >= 3.109.0)
34
+ aws-sdk-rds (1.130.0)
35
+ aws-sdk-core (~> 3, >= 3.122.0)
36
36
  aws-sigv4 (~> 1.1)
37
- aws-sigv4 (1.2.2)
37
+ aws-sigv4 (1.4.0)
38
38
  aws-eventstream (~> 1, >= 1.0.2)
39
39
  builder (3.2.4)
40
40
  coderay (1.1.3)
41
41
  concurrent-ruby (1.1.8)
42
- i18n (1.8.7)
42
+ i18n (1.8.9)
43
43
  concurrent-ruby (~> 1.0)
44
44
  jmespath (1.4.0)
45
45
  method_source (1.0.0)
46
- minitest (5.14.3)
46
+ minitest (5.14.4)
47
47
  minitest-reporters (1.4.3)
48
48
  ansi
49
49
  builder
50
50
  minitest (>= 5.0)
51
51
  ruby-progressbar
52
- parallel (1.20.1)
53
- parser (3.0.0.0)
52
+ parallel (1.21.0)
53
+ parser (3.0.2.0)
54
54
  ast (~> 2.4.1)
55
55
  pg (1.2.3)
56
- pry (0.13.1)
56
+ pry (0.14.1)
57
57
  coderay (~> 1.1)
58
58
  method_source (~> 1.0)
59
59
  rainbow (3.0.0)
60
- rake (13.0.3)
61
- regexp_parser (2.0.3)
62
- rexml (3.2.4)
63
- rubocop (1.9.0)
60
+ rake (13.0.6)
61
+ regexp_parser (2.1.1)
62
+ rexml (3.2.5)
63
+ rubocop (1.22.3)
64
64
  parallel (~> 1.10)
65
65
  parser (>= 3.0.0.0)
66
66
  rainbow (>= 2.2.2, < 4.0)
67
67
  regexp_parser (>= 1.8, < 3.0)
68
68
  rexml
69
- rubocop-ast (>= 1.2.0, < 2.0)
69
+ rubocop-ast (>= 1.12.0, < 2.0)
70
70
  ruby-progressbar (~> 1.7)
71
71
  unicode-display_width (>= 1.4.0, < 3.0)
72
- rubocop-ast (1.4.1)
73
- parser (>= 2.7.1.5)
74
- rubocop-minitest (0.10.3)
75
- rubocop (>= 0.87, < 2.0)
76
- rubocop-rake (0.5.1)
77
- rubocop
72
+ rubocop-ast (1.12.0)
73
+ parser (>= 3.0.1.1)
74
+ rubocop-minitest (0.15.2)
75
+ rubocop (>= 0.90, < 2.0)
76
+ rubocop-rake (0.6.0)
77
+ rubocop (~> 1.0)
78
78
  ruby-progressbar (1.11.0)
79
- timecop (0.9.2)
79
+ timecop (0.9.4)
80
80
  tzinfo (2.0.4)
81
81
  concurrent-ruby (~> 1.0)
82
- unicode-display_width (2.0.0)
82
+ unicode-display_width (2.1.0)
83
83
  yard (0.9.26)
84
84
  zeitwerk (2.4.2)
85
85
 
@@ -103,4 +103,4 @@ DEPENDENCIES
103
103
  yard
104
104
 
105
105
  BUNDLED WITH
106
- 2.2.7
106
+ 2.2.21
data/README.md CHANGED
@@ -102,14 +102,14 @@ You can set this parameter in
102
102
  If the default authentication token generator doesn't meet your needs, you can register an alternative with
103
103
 
104
104
  ```ruby
105
- PG::AWS_IAM_RDS.auth_token_generators.add :custom do
106
- PG::AWS_IAM_RDS::AuthTokenGenerator.new(credentials: ..., region: ...)
105
+ PG::AWS_RDS_IAM.auth_token_generators.add :custom do
106
+ PG::AWS_RDS_IAM::AuthTokenGenerator.new(credentials: ..., region: ...)
107
107
  end
108
108
  ```
109
109
 
110
110
  To use this alternative authentication token generator, set the `aws_rds_iam_auth_token_generator` connection parameter to the name you registered it with (`custom`, in this example).
111
111
 
112
- The block you give to `add` must construct and return the authentication token generator, which can either be an instance of `PG::AWS_IAM_RDS::AuthTokenGenerator` or another object that returns a string token in response to `call(host:, port:, user:)`.
112
+ The block you give to `add` must construct and return the authentication token generator, which can either be an instance of `PG::AWS_RDS_IAM::AuthTokenGenerator` or another object that returns a string token in response to `call(host:, port:, user:)`.
113
113
  The block will be called once, when the first token is generated, and the returned authentication token generator will be re-used to generate all future tokens.
114
114
 
115
115
  ## Development
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env bash
2
+ set -o errexit
3
+ set -o nounset
4
+ set -o pipefail
5
+
6
+ cd test/acceptance/infrastructure
7
+
8
+ rm -f .terraform.lock.hcl
9
+
10
+ terraform init --upgrade
11
+
12
+ terraform providers lock \
13
+ --platform=darwin_amd64 \
14
+ --platform=linux_amd64
data/bin/version-matrix CHANGED
@@ -9,7 +9,6 @@ def minor_versions(name, requirement)
9
9
  end
10
10
 
11
11
  ruby_activerecord_requirements = {
12
- "2.5" => ">= 5.2",
13
12
  "2.6" => ">= 5.2",
14
13
  "2.7" => ">= 5.2",
15
14
  "3.0" => ">= 6.0"
@@ -3,6 +3,6 @@
3
3
  module PG
4
4
  module AWS_RDS_IAM
5
5
  # The current version of the gem.
6
- VERSION = "0.2.0"
6
+ VERSION = "0.3.0"
7
7
  end
8
8
  end
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
25
25
 
26
26
  spec.require_paths = ["lib"]
27
27
 
28
- spec.required_ruby_version = ">= 2.5"
28
+ spec.required_ruby_version = ">= 2.6"
29
29
 
30
30
  spec.add_dependency "aws-sdk-rds", "~> 1.0"
31
31
  spec.add_dependency "pg", ">= 0.18", "< 2.0"
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.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Haines
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-29 00:00:00.000000000 Z
11
+ date: 2021-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-rds
@@ -70,6 +70,7 @@ files:
70
70
  - bin/install-bundler
71
71
  - bin/rake
72
72
  - bin/setup
73
+ - bin/upgrade-terraform-providers
73
74
  - bin/version-matrix
74
75
  - bin/yard
75
76
  - lib/pg/aws_rds_iam.rb
@@ -89,7 +90,7 @@ licenses:
89
90
  metadata:
90
91
  bug_tracker_uri: https://github.com/haines/pg-aws_rds_iam/issues
91
92
  changelog_uri: https://github.com/haines/pg-aws_rds_iam/blob/main/CHANGELOG.md
92
- documentation_uri: https://rubydoc.info/gems/pg-aws_rds_iam/0.2.0
93
+ documentation_uri: https://rubydoc.info/gems/pg-aws_rds_iam/0.3.0
93
94
  homepage_uri: https://github.com/haines/pg-aws_rds_iam
94
95
  source_code_uri: https://github.com/haines/pg-aws_rds_iam
95
96
  post_install_message:
@@ -100,14 +101,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
100
101
  requirements:
101
102
  - - ">="
102
103
  - !ruby/object:Gem::Version
103
- version: '2.5'
104
+ version: '2.6'
104
105
  required_rubygems_version: !ruby/object:Gem::Requirement
105
106
  requirements:
106
107
  - - ">="
107
108
  - !ruby/object:Gem::Version
108
109
  version: '0'
109
110
  requirements: []
110
- rubygems_version: 3.2.7
111
+ rubygems_version: 3.2.31
111
112
  signing_key:
112
113
  specification_version: 4
113
114
  summary: IAM authentication for PostgreSQL on Amazon RDS