pg-aws_rds_iam 0.1.1 → 0.3.2

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: 67262dd445e222ab6919666619c45fd9973db0f25ea97e37d3d27951018e3ab4
4
- data.tar.gz: 6d14148ede6699311593efff97b3e7a62a8a3f0834f1036fdd7282f639b7e78c
3
+ metadata.gz: 0ca0b85c869fa1f5ccac0bada663bd2f532e5566359aea7d42a1f3c922e7dec4
4
+ data.tar.gz: ed10f2e843a9b2fee3c09588be471e8936b1ce59059065e6648a62549b6dc6b4
5
5
  SHA512:
6
- metadata.gz: 13978947174210351b19d4910c79151bd005cba69b3b7906853d266af2e6dac0c430e6df53c19a4f273523cbfc7ef2fa8e74dcfeb627a027aa2ba9fa4dd0b89b
7
- data.tar.gz: 7c5ad9d4fb023a8ff190a5b625ac748cd144afd1cb2a82af17ea5112ae5b4b7c4eab4610f167f8e8848d2759b0b293e91609ec10ef622c362372c77c322d532e
6
+ metadata.gz: 4e8373d5955858e81ca374910698e089992f50259cb3ed8b504b51c8e78a7548fd30928b181e7dc435505d24f3cce6a38577f43fee1de7809f5a256cde570bc4
7
+ data.tar.gz: e93b304b942f78d74f63e3e122e53d9a464148e0d033f03903e3f39f35da06b64a56bd159f782859911c7b3b5be3c3e5ecd2311cc98f16a77009b639d04cc0bc
@@ -0,0 +1,16 @@
1
+ version: 2
2
+
3
+ updates:
4
+ - package-ecosystem: bundler
5
+ directory: /
6
+ schedule:
7
+ interval: weekly
8
+ reviewers:
9
+ - haines
10
+
11
+ - package-ecosystem: github-actions
12
+ directory: /
13
+ schedule:
14
+ interval: weekly
15
+ reviewers:
16
+ - haines
@@ -1,29 +1,56 @@
1
- name: pull-request
1
+ name: Pull request
2
2
 
3
3
  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
+
30
+ version-matrix:
31
+ name: Generate version matrix
32
+
33
+ runs-on: ubuntu-latest
34
+
35
+ outputs:
36
+ matrix: ${{ steps.version-matrix.outputs.matrix }}
37
+
38
+ steps:
39
+ - name: Check if secrets are available
40
+ run: test -n "${{ secrets.AVAILABLE }}"
41
+
42
+ - name: Check out source code
43
+ uses: actions/checkout@v2
44
+
45
+ - name: Generate version matrix
46
+ id: version-matrix
47
+ run: bin/version-matrix
48
+
7
49
  test:
50
+ needs: version-matrix
51
+
8
52
  strategy:
9
- matrix:
10
- ruby:
11
- - "2.5"
12
- - "2.6"
13
- - "2.7"
14
-
15
- pg:
16
- - "0.18"
17
- - "0.19"
18
- - "0.20"
19
- - "0.21"
20
- - "1.0"
21
- - "1.1"
22
- - "1.2"
23
-
24
- activerecord:
25
- - "5.2"
26
- - "6.0"
53
+ matrix: ${{ fromJSON(needs.version-matrix.outputs.matrix) }}
27
54
 
28
55
  name: Ruby ${{ matrix.ruby }} | PG ${{ matrix.pg }} | ActiveRecord ${{ matrix.activerecord }}
29
56
 
@@ -39,7 +66,7 @@ jobs:
39
66
 
40
67
  steps:
41
68
  - name: Install dependencies
42
- run: apk add build-base git postgresql-dev
69
+ run: apk add build-base git postgresql-dev tar
43
70
 
44
71
  - name: Check out source code
45
72
  uses: actions/checkout@v2
@@ -62,7 +89,7 @@ jobs:
62
89
  "${postgresql_version}"
63
90
 
64
91
  - name: Cache gems
65
- uses: actions/cache@v1
92
+ uses: actions/cache@v2
66
93
  with:
67
94
  key: ${{ steps.cache-key.outputs.cache-key }}-gems-${{ hashFiles('Gemfile.lock') }}
68
95
  path: vendor/bundle
@@ -88,3 +115,15 @@ jobs:
88
115
  AWS_REGION: ${{ secrets.AWS_REGION }}
89
116
  DATABASE_URL: ${{ secrets.DATABASE_URL }}
90
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
@@ -1,5 +1,10 @@
1
+ require:
2
+ - rubocop-minitest
3
+ - rubocop-rake
4
+
1
5
  AllCops:
2
- TargetRubyVersion: 2.4
6
+ TargetRubyVersion: 2.6
7
+ NewCops: enable
3
8
  Exclude:
4
9
  - bin/bundle
5
10
  - bin/rake
@@ -15,6 +20,9 @@ Metrics/AbcSize:
15
20
  Metrics/MethodLength:
16
21
  Enabled: false
17
22
 
23
+ Minitest/MultipleAssertions:
24
+ Enabled: false
25
+
18
26
  Naming/ClassAndModuleCamelCase:
19
27
  Enabled: false
20
28
 
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-2.7.0
1
+ ruby-3.0.2
data/.yardopts CHANGED
@@ -1,2 +1,5 @@
1
1
  --markup markdown
2
+ --markup-provider commonmarker
2
3
  --no-private
4
+ -
5
+ *.md
data/CHANGELOG.md CHANGED
@@ -6,6 +6,32 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ No notable changes.
10
+
11
+ ## [0.3.2] - 2021-11-15
12
+
13
+ ### Changed
14
+ * Require MFA to publish gem ([#278](https://github.com/haines/pg-aws_rds_iam/pull/278))
15
+
16
+ ## [0.3.1] - 2021-11-10
17
+
18
+ ### Fixed
19
+ * Make code snippets in README valid Ruby to fix syntax highlighting ([#274](https://github.com/haines/pg-aws_rds_iam/pull/274))
20
+
21
+ ## [0.3.0] - 2021-11-10
22
+
23
+ ### Changed
24
+ * Require Ruby ≥ 2.6 ([#216](https://github.com/haines/pg-aws_rds_iam/pull/216))
25
+
26
+ ### Fixed
27
+ * Typos in README ([#272](https://github.com/haines/pg-aws_rds_iam/pull/272))
28
+
29
+ ## [0.2.0] - 2021-01-29
30
+
31
+ ### Changed
32
+ * Require Ruby ≥ 2.5 ([#177](https://github.com/haines/pg-aws_rds_iam/pull/177))
33
+ * Test against Ruby 3.0 and ActiveRecord 6.1 ([#180](https://github.com/haines/pg-aws_rds_iam/pull/180))
34
+
9
35
  ## [0.1.1] - 2020-02-05
10
36
 
11
37
  ### Added
@@ -17,6 +43,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
17
43
  * 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))
18
44
  * ActiveRecord support. ([#3](https://github.com/haines/pg-aws_rds_iam/pull/3))
19
45
 
20
- [Unreleased]: https://github.com/haines/pg-aws_rds_iam/compare/v0.1.1...HEAD
46
+ [Unreleased]: https://github.com/haines/pg-aws_rds_iam/compare/v0.3.2...HEAD
47
+ [0.3.2]: https://github.com/haines/pg-aws_rds_iam/compare/v0.3.1...v0.3.2
48
+ [0.3.1]: https://github.com/haines/pg-aws_rds_iam/compare/v0.3.0...v0.3.1
49
+ [0.3.0]: https://github.com/haines/pg-aws_rds_iam/compare/v0.2.0...v0.3.0
50
+ [0.2.0]: https://github.com/haines/pg-aws_rds_iam/compare/v0.1.1...v0.2.0
21
51
  [0.1.1]: https://github.com/haines/pg-aws_rds_iam/compare/v0.1.0...v0.1.1
22
52
  [0.1.0]: https://github.com/haines/pg-aws_rds_iam/compare/64168051a8ef5f32a13632d8ef0b7da00d0056bc...v0.1.0
data/Gemfile CHANGED
@@ -3,7 +3,19 @@
3
3
  source "https://rubygems.org"
4
4
  gemspec
5
5
 
6
+ gem "aws-sdk-ec2"
7
+ gem "bundler"
8
+ gem "commonmarker"
9
+ gem "minitest"
10
+ gem "minitest-reporters"
11
+ gem "pry"
12
+ gem "rake"
13
+ gem "rubocop"
14
+ gem "rubocop-minitest"
15
+ gem "rubocop-rake"
16
+ gem "timecop"
17
+ gem "yard", github: "lsegal/yard"
18
+
6
19
  ["activerecord", "pg"].each do |gem_name|
7
- gem_version = ENV["#{gem_name.upcase}_VERSION"]
8
- gem gem_name, "~> #{gem_version}.0" if gem_version
20
+ gem gem_name, *ENV["#{gem_name.upcase}_VERSION"]&.yield_self { |gem_version| "~> #{gem_version}.0" }
9
21
  end
data/Gemfile.lock CHANGED
@@ -1,95 +1,115 @@
1
+ GIT
2
+ remote: https://github.com/lsegal/yard.git
3
+ revision: 9865620413d3519b561d87479e44f1b4fe782904
4
+ specs:
5
+ yard (0.9.26)
6
+ webrick (~> 1.7.0)
7
+
1
8
  PATH
2
9
  remote: .
3
10
  specs:
4
- pg-aws_rds_iam (0.1.1)
11
+ pg-aws_rds_iam (0.3.2)
5
12
  aws-sdk-rds (~> 1.0)
6
13
  pg (>= 0.18, < 2.0)
7
14
 
8
15
  GEM
9
16
  remote: https://rubygems.org/
10
17
  specs:
11
- activemodel (6.0.2.1)
12
- activesupport (= 6.0.2.1)
13
- activerecord (6.0.2.1)
14
- activemodel (= 6.0.2.1)
15
- activesupport (= 6.0.2.1)
16
- activesupport (6.0.2.1)
18
+ activemodel (6.1.3)
19
+ activesupport (= 6.1.3)
20
+ activerecord (6.1.3)
21
+ activemodel (= 6.1.3)
22
+ activesupport (= 6.1.3)
23
+ activesupport (6.1.3)
17
24
  concurrent-ruby (~> 1.0, >= 1.0.2)
18
- i18n (>= 0.7, < 2)
19
- minitest (~> 5.1)
20
- tzinfo (~> 1.1)
21
- zeitwerk (~> 2.2)
25
+ i18n (>= 1.6, < 2)
26
+ minitest (>= 5.1)
27
+ tzinfo (~> 2.0)
28
+ zeitwerk (~> 2.3)
22
29
  ansi (1.5.0)
23
- ast (2.4.0)
24
- aws-eventstream (1.0.3)
25
- aws-partitions (1.270.0)
26
- aws-sdk-core (3.89.1)
27
- aws-eventstream (~> 1.0, >= 1.0.2)
28
- aws-partitions (~> 1, >= 1.239.0)
30
+ ast (2.4.2)
31
+ aws-eventstream (1.2.0)
32
+ aws-partitions (1.530.0)
33
+ aws-sdk-core (3.122.1)
34
+ aws-eventstream (~> 1, >= 1.0.2)
35
+ aws-partitions (~> 1, >= 1.525.0)
29
36
  aws-sigv4 (~> 1.1)
30
37
  jmespath (~> 1.0)
31
- aws-sdk-ec2 (1.138.0)
32
- aws-sdk-core (~> 3, >= 3.71.0)
38
+ aws-sdk-ec2 (1.281.0)
39
+ aws-sdk-core (~> 3, >= 3.122.0)
33
40
  aws-sigv4 (~> 1.1)
34
- aws-sdk-rds (1.76.0)
35
- aws-sdk-core (~> 3, >= 3.71.0)
41
+ aws-sdk-rds (1.130.0)
42
+ aws-sdk-core (~> 3, >= 3.122.0)
36
43
  aws-sigv4 (~> 1.1)
37
- aws-sigv4 (1.1.0)
38
- aws-eventstream (~> 1.0, >= 1.0.2)
44
+ aws-sigv4 (1.4.0)
45
+ aws-eventstream (~> 1, >= 1.0.2)
39
46
  builder (3.2.4)
40
- coderay (1.1.2)
41
- concurrent-ruby (1.1.5)
42
- i18n (1.8.2)
47
+ coderay (1.1.3)
48
+ commonmarker (0.23.2)
49
+ concurrent-ruby (1.1.8)
50
+ i18n (1.8.9)
43
51
  concurrent-ruby (~> 1.0)
44
- jaro_winkler (1.5.4)
45
52
  jmespath (1.4.0)
46
- method_source (0.9.2)
47
- minitest (5.14.0)
48
- minitest-reporters (1.4.2)
53
+ method_source (1.0.0)
54
+ minitest (5.14.4)
55
+ minitest-reporters (1.4.3)
49
56
  ansi
50
57
  builder
51
58
  minitest (>= 5.0)
52
59
  ruby-progressbar
53
- parallel (1.19.1)
54
- parser (2.7.0.2)
55
- ast (~> 2.4.0)
56
- pg (1.2.2)
57
- pry (0.12.2)
58
- coderay (~> 1.1.0)
59
- method_source (~> 0.9.0)
60
+ parallel (1.21.0)
61
+ parser (3.0.2.0)
62
+ ast (~> 2.4.1)
63
+ pg (1.2.3)
64
+ pry (0.14.1)
65
+ coderay (~> 1.1)
66
+ method_source (~> 1.0)
60
67
  rainbow (3.0.0)
61
- rake (13.0.1)
62
- rubocop (0.79.0)
63
- jaro_winkler (~> 1.5.1)
68
+ rake (13.0.6)
69
+ regexp_parser (2.1.1)
70
+ rexml (3.2.5)
71
+ rubocop (1.23.0)
64
72
  parallel (~> 1.10)
65
- parser (>= 2.7.0.1)
73
+ parser (>= 3.0.0.0)
66
74
  rainbow (>= 2.2.2, < 4.0)
75
+ regexp_parser (>= 1.8, < 3.0)
76
+ rexml
77
+ rubocop-ast (>= 1.12.0, < 2.0)
67
78
  ruby-progressbar (~> 1.7)
68
- unicode-display_width (>= 1.4.0, < 1.7)
69
- ruby-progressbar (1.10.1)
70
- thread_safe (0.3.6)
71
- timecop (0.9.1)
72
- tzinfo (1.2.6)
73
- thread_safe (~> 0.1)
74
- unicode-display_width (1.6.1)
75
- yard (0.9.24)
76
- zeitwerk (2.2.2)
79
+ unicode-display_width (>= 1.4.0, < 3.0)
80
+ rubocop-ast (1.13.0)
81
+ parser (>= 3.0.1.1)
82
+ rubocop-minitest (0.16.0)
83
+ rubocop (>= 0.90, < 2.0)
84
+ rubocop-rake (0.6.0)
85
+ rubocop (~> 1.0)
86
+ ruby-progressbar (1.11.0)
87
+ timecop (0.9.4)
88
+ tzinfo (2.0.4)
89
+ concurrent-ruby (~> 1.0)
90
+ unicode-display_width (2.1.0)
91
+ webrick (1.7.0)
92
+ zeitwerk (2.4.2)
77
93
 
78
94
  PLATFORMS
79
95
  ruby
80
96
 
81
97
  DEPENDENCIES
82
- activerecord (>= 5.2, < 7.0)
83
- aws-sdk-ec2 (~> 1.137)
84
- bundler (~> 2.0)
85
- minitest (~> 5.14)
86
- minitest-reporters (~> 1.4)
98
+ activerecord
99
+ aws-sdk-ec2
100
+ bundler
101
+ commonmarker
102
+ minitest
103
+ minitest-reporters
104
+ pg
87
105
  pg-aws_rds_iam!
88
- pry (~> 0.12)
89
- rake (~> 13.0)
90
- rubocop (~> 0.79)
91
- timecop (~> 0.9)
92
- yard (~> 0.9)
106
+ pry
107
+ rake
108
+ rubocop
109
+ rubocop-minitest
110
+ rubocop-rake
111
+ timecop
112
+ yard!
93
113
 
94
114
  BUNDLED WITH
95
- 2.1.4
115
+ 2.2.21
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [![Gem](https://img.shields.io/gem/v/pg-aws_rds_iam?style=flat-square)](https://rubygems.org/gems/pg-aws_rds_iam)
4
4
  &ensp;
5
- [![Docs](https://img.shields.io/badge/yard-docs-blue?style=flat-square)](https://rubydoc.info/gems/pg-aws_rds_iam)
5
+ [![Docs](https://img.shields.io/badge/yard-docs-blue?style=flat-square)](https://haines.github.io/pg-aws_rds_iam/)
6
6
 
7
7
  `PG::AWS_RDS_IAM` is 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.
8
8
 
@@ -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
@@ -124,7 +124,7 @@ To release a new version, update the version number in `version.rb`, and then ru
124
124
  ## Contributing
125
125
 
126
126
  Bug reports and pull requests are welcome [on GitHub](https://github.com/haines/pg-aws_rds_iam).
127
- This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/haines/pg-aws_rds_iam/blob/master/CODE_OF_CONDUCT.md).
127
+ This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/haines/pg-aws_rds_iam/blob/main/CODE_OF_CONDUCT.md).
128
128
 
129
129
  ## License
130
130
 
data/bin/install-bundler CHANGED
@@ -1,6 +1,4 @@
1
- #!/bin/sh
2
- set -o errexit
3
- set -o nounset
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
4
3
 
5
- bundler_version=$(ruby -e 'puts /\n\nBUNDLED WITH\n\s{2,}(?<version>#{Gem::Version::VERSION_PATTERN})\n/.match(File.read("Gemfile.lock"))[:version]')
6
- gem install bundler --version "${bundler_version}"
4
+ Gem.install "bundler", Gem::BundlerVersionFinder.bundler_version
@@ -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
@@ -0,0 +1,37 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "json"
5
+
6
+ def minor_versions(name, requirement)
7
+ tuples, _errors = Gem::SpecFetcher.fetcher.search_for_dependency(Gem::Dependency.new(name, requirement))
8
+ tuples.map { |tuple, _source| tuple.version.segments.first(2).join(".") }.uniq
9
+ end
10
+
11
+ ruby_activerecord_requirements = {
12
+ "2.6" => ">= 5.2",
13
+ "2.7" => ">= 5.2",
14
+ "3.0" => ">= 6.0"
15
+ }
16
+
17
+ activerecord_pg_requirements = {
18
+ "5.2" => [">= 0.18", "< 2.0"],
19
+ "6.0" => [">= 0.18", "< 2.0"],
20
+ "6.1" => "~> 1.1"
21
+ }
22
+
23
+ versions = ruby_activerecord_requirements.flat_map do |ruby_version, activerecord_requirement|
24
+ minor_versions("activerecord", activerecord_requirement).flat_map do |activerecord_version|
25
+ minor_versions("pg", activerecord_pg_requirements.fetch(activerecord_version)).map do |pg_version|
26
+ {
27
+ ruby: ruby_version,
28
+ activerecord: activerecord_version,
29
+ pg: pg_version
30
+ }
31
+ end
32
+ end
33
+ end
34
+
35
+ matrix = { include: versions }
36
+
37
+ puts "::set-output name=matrix::#{matrix.to_json}"
@@ -56,9 +56,9 @@ module PG
56
56
  end
57
57
 
58
58
  def call
59
- return @auth_token_generator if defined?(@auth_token_generator)
59
+ return @call if defined?(@call)
60
60
 
61
- @auth_token_generator = @block.call
61
+ @call = @block.call
62
62
  end
63
63
  end
64
64
 
@@ -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.1.1"
6
+ VERSION = "0.3.2"
7
7
  end
8
8
  end
@@ -16,26 +16,19 @@ Gem::Specification.new do |spec|
16
16
  spec.license = "MIT"
17
17
 
18
18
  spec.metadata["bug_tracker_uri"] = "#{spec.homepage}/issues"
19
- spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/master/CHANGELOG.md"
19
+ spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/main/CHANGELOG.md"
20
20
  spec.metadata["documentation_uri"] = "https://rubydoc.info/gems/pg-aws_rds_iam/#{PG::AWS_RDS_IAM::VERSION}"
21
21
  spec.metadata["homepage_uri"] = spec.homepage
22
22
  spec.metadata["source_code_uri"] = spec.homepage
23
23
 
24
+ spec.metadata["rubygems_mfa_required"] = "true"
25
+
24
26
  spec.files = Dir.chdir(__dir__) { `git ls-files -z`.split("\x0").reject { |path| path.start_with?("test/") } }
25
27
 
26
28
  spec.require_paths = ["lib"]
27
29
 
30
+ spec.required_ruby_version = ">= 2.6"
31
+
28
32
  spec.add_dependency "aws-sdk-rds", "~> 1.0"
29
33
  spec.add_dependency "pg", ">= 0.18", "< 2.0"
30
-
31
- spec.add_development_dependency "activerecord", ">= 5.2", "< 7.0"
32
- spec.add_development_dependency "aws-sdk-ec2", "~> 1.137"
33
- spec.add_development_dependency "bundler", "~> 2.0"
34
- spec.add_development_dependency "minitest", "~> 5.14"
35
- spec.add_development_dependency "minitest-reporters", "~> 1.4"
36
- spec.add_development_dependency "pry", "~> 0.12"
37
- spec.add_development_dependency "rake", "~> 13.0"
38
- spec.add_development_dependency "rubocop", "~> 0.79"
39
- spec.add_development_dependency "timecop", "~> 0.9"
40
- spec.add_development_dependency "yard", "~> 0.9"
41
34
  end
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.1.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Haines
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-05 00:00:00.000000000 Z
11
+ date: 2021-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-rds
@@ -44,152 +44,6 @@ dependencies:
44
44
  - - "<"
45
45
  - !ruby/object:Gem::Version
46
46
  version: '2.0'
47
- - !ruby/object:Gem::Dependency
48
- name: activerecord
49
- requirement: !ruby/object:Gem::Requirement
50
- requirements:
51
- - - ">="
52
- - !ruby/object:Gem::Version
53
- version: '5.2'
54
- - - "<"
55
- - !ruby/object:Gem::Version
56
- version: '7.0'
57
- type: :development
58
- prerelease: false
59
- version_requirements: !ruby/object:Gem::Requirement
60
- requirements:
61
- - - ">="
62
- - !ruby/object:Gem::Version
63
- version: '5.2'
64
- - - "<"
65
- - !ruby/object:Gem::Version
66
- version: '7.0'
67
- - !ruby/object:Gem::Dependency
68
- name: aws-sdk-ec2
69
- requirement: !ruby/object:Gem::Requirement
70
- requirements:
71
- - - "~>"
72
- - !ruby/object:Gem::Version
73
- version: '1.137'
74
- type: :development
75
- prerelease: false
76
- version_requirements: !ruby/object:Gem::Requirement
77
- requirements:
78
- - - "~>"
79
- - !ruby/object:Gem::Version
80
- version: '1.137'
81
- - !ruby/object:Gem::Dependency
82
- name: bundler
83
- requirement: !ruby/object:Gem::Requirement
84
- requirements:
85
- - - "~>"
86
- - !ruby/object:Gem::Version
87
- version: '2.0'
88
- type: :development
89
- prerelease: false
90
- version_requirements: !ruby/object:Gem::Requirement
91
- requirements:
92
- - - "~>"
93
- - !ruby/object:Gem::Version
94
- version: '2.0'
95
- - !ruby/object:Gem::Dependency
96
- name: minitest
97
- requirement: !ruby/object:Gem::Requirement
98
- requirements:
99
- - - "~>"
100
- - !ruby/object:Gem::Version
101
- version: '5.14'
102
- type: :development
103
- prerelease: false
104
- version_requirements: !ruby/object:Gem::Requirement
105
- requirements:
106
- - - "~>"
107
- - !ruby/object:Gem::Version
108
- version: '5.14'
109
- - !ruby/object:Gem::Dependency
110
- name: minitest-reporters
111
- requirement: !ruby/object:Gem::Requirement
112
- requirements:
113
- - - "~>"
114
- - !ruby/object:Gem::Version
115
- version: '1.4'
116
- type: :development
117
- prerelease: false
118
- version_requirements: !ruby/object:Gem::Requirement
119
- requirements:
120
- - - "~>"
121
- - !ruby/object:Gem::Version
122
- version: '1.4'
123
- - !ruby/object:Gem::Dependency
124
- name: pry
125
- requirement: !ruby/object:Gem::Requirement
126
- requirements:
127
- - - "~>"
128
- - !ruby/object:Gem::Version
129
- version: '0.12'
130
- type: :development
131
- prerelease: false
132
- version_requirements: !ruby/object:Gem::Requirement
133
- requirements:
134
- - - "~>"
135
- - !ruby/object:Gem::Version
136
- version: '0.12'
137
- - !ruby/object:Gem::Dependency
138
- name: rake
139
- requirement: !ruby/object:Gem::Requirement
140
- requirements:
141
- - - "~>"
142
- - !ruby/object:Gem::Version
143
- version: '13.0'
144
- type: :development
145
- prerelease: false
146
- version_requirements: !ruby/object:Gem::Requirement
147
- requirements:
148
- - - "~>"
149
- - !ruby/object:Gem::Version
150
- version: '13.0'
151
- - !ruby/object:Gem::Dependency
152
- name: rubocop
153
- requirement: !ruby/object:Gem::Requirement
154
- requirements:
155
- - - "~>"
156
- - !ruby/object:Gem::Version
157
- version: '0.79'
158
- type: :development
159
- prerelease: false
160
- version_requirements: !ruby/object:Gem::Requirement
161
- requirements:
162
- - - "~>"
163
- - !ruby/object:Gem::Version
164
- version: '0.79'
165
- - !ruby/object:Gem::Dependency
166
- name: timecop
167
- requirement: !ruby/object:Gem::Requirement
168
- requirements:
169
- - - "~>"
170
- - !ruby/object:Gem::Version
171
- version: '0.9'
172
- type: :development
173
- prerelease: false
174
- version_requirements: !ruby/object:Gem::Requirement
175
- requirements:
176
- - - "~>"
177
- - !ruby/object:Gem::Version
178
- version: '0.9'
179
- - !ruby/object:Gem::Dependency
180
- name: yard
181
- requirement: !ruby/object:Gem::Requirement
182
- requirements:
183
- - - "~>"
184
- - !ruby/object:Gem::Version
185
- version: '0.9'
186
- type: :development
187
- prerelease: false
188
- version_requirements: !ruby/object:Gem::Requirement
189
- requirements:
190
- - - "~>"
191
- - !ruby/object:Gem::Version
192
- version: '0.9'
193
47
  description: PG::AWS_RDS_IAM is a plugin for the pg gem that adds support for IAM
194
48
  authentication when connecting to PostgreSQL databases hosted in Amazon RDS.
195
49
  email:
@@ -198,6 +52,7 @@ executables: []
198
52
  extensions: []
199
53
  extra_rdoc_files: []
200
54
  files:
55
+ - ".github/dependabot.yml"
201
56
  - ".github/workflows/pull-request.yml"
202
57
  - ".gitignore"
203
58
  - ".rubocop.yml"
@@ -215,6 +70,8 @@ files:
215
70
  - bin/install-bundler
216
71
  - bin/rake
217
72
  - bin/setup
73
+ - bin/upgrade-terraform-providers
74
+ - bin/version-matrix
218
75
  - bin/yard
219
76
  - lib/pg/aws_rds_iam.rb
220
77
  - lib/pg/aws_rds_iam/auth_token_generator.rb
@@ -232,11 +89,12 @@ licenses:
232
89
  - MIT
233
90
  metadata:
234
91
  bug_tracker_uri: https://github.com/haines/pg-aws_rds_iam/issues
235
- changelog_uri: https://github.com/haines/pg-aws_rds_iam/blob/master/CHANGELOG.md
236
- documentation_uri: https://rubydoc.info/gems/pg-aws_rds_iam/0.1.1
92
+ changelog_uri: https://github.com/haines/pg-aws_rds_iam/blob/main/CHANGELOG.md
93
+ documentation_uri: https://rubydoc.info/gems/pg-aws_rds_iam/0.3.2
237
94
  homepage_uri: https://github.com/haines/pg-aws_rds_iam
238
95
  source_code_uri: https://github.com/haines/pg-aws_rds_iam
239
- post_install_message:
96
+ rubygems_mfa_required: 'true'
97
+ post_install_message:
240
98
  rdoc_options: []
241
99
  require_paths:
242
100
  - lib
@@ -244,15 +102,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
244
102
  requirements:
245
103
  - - ">="
246
104
  - !ruby/object:Gem::Version
247
- version: '0'
105
+ version: '2.6'
248
106
  required_rubygems_version: !ruby/object:Gem::Requirement
249
107
  requirements:
250
108
  - - ">="
251
109
  - !ruby/object:Gem::Version
252
110
  version: '0'
253
111
  requirements: []
254
- rubygems_version: 3.1.2
255
- signing_key:
112
+ rubygems_version: 3.2.31
113
+ signing_key:
256
114
  specification_version: 4
257
115
  summary: IAM authentication for PostgreSQL on Amazon RDS
258
116
  test_files: []