aws_secrets_loader 0.1.2 → 0.2.0
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/.github/workflows/gem-push.yml +12 -0
- data/.github/workflows/ruby.yml +35 -0
- data/.rubocop.yml +14 -0
- data/.tool-versions +1 -0
- data/Gemfile +3 -6
- data/Gemfile.lock +37 -17
- data/README.md +3 -0
- data/Rakefile +5 -3
- data/aws_secrets_loader.gemspec +18 -12
- data/bin/console +6 -4
- data/lib/aws_secrets_loader.rb +5 -3
- data/lib/aws_secrets_loader/version.rb +3 -1
- metadata +52 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 05fc0f1a99abf891d65d4a7e3bcbd0aed12729a51b4f07e250f02d212a5e0fcd
|
|
4
|
+
data.tar.gz: 7b97ac175a1ca4b8ddd72f931085c3557de104d7f45a3cf921dbb7c1e7cc7b9a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 54911ae68b6305b9896dfc0feb70da62af4d4c362ba42245e7fe8f4e2cf4a780260b182f53f3c0a2be2644cb3bfb77e7ccd9c42ed78a0b55527851dba6353218
|
|
7
|
+
data.tar.gz: 213ffaa1fb5746b8a30afcdeaf01797bb993aaf538ea3c110a50d34bf89c4d66834c7de291e8d785489ea15179a1c7c780c018c2b51debd1554e6df4acb286dd
|
|
@@ -18,6 +18,18 @@ jobs:
|
|
|
18
18
|
with:
|
|
19
19
|
ruby-version: 2.6.x
|
|
20
20
|
|
|
21
|
+
- name: Publish to GPR
|
|
22
|
+
run: |
|
|
23
|
+
mkdir -p $HOME/.gem
|
|
24
|
+
touch $HOME/.gem/credentials
|
|
25
|
+
chmod 0600 $HOME/.gem/credentials
|
|
26
|
+
printf -- "---\n:github: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
|
27
|
+
gem build *.gemspec
|
|
28
|
+
gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} *.gem
|
|
29
|
+
env:
|
|
30
|
+
GEM_HOST_API_KEY: "Bearer ${{secrets.GITHUB_TOKEN}}"
|
|
31
|
+
OWNER: ${{ github.repository_owner }}
|
|
32
|
+
|
|
21
33
|
- name: Publish to RubyGems
|
|
22
34
|
run: |
|
|
23
35
|
mkdir -p $HOME/.gem
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# This workflow uses actions that are not certified by GitHub.
|
|
2
|
+
# They are provided by a third-party and are governed by
|
|
3
|
+
# separate terms of service, privacy policy, and support
|
|
4
|
+
# documentation.
|
|
5
|
+
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
|
|
6
|
+
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
|
|
7
|
+
|
|
8
|
+
name: Ruby Specs
|
|
9
|
+
|
|
10
|
+
on:
|
|
11
|
+
push:
|
|
12
|
+
branches: [ main ]
|
|
13
|
+
pull_request:
|
|
14
|
+
branches: [ main ]
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
17
|
+
test:
|
|
18
|
+
|
|
19
|
+
runs-on: ubuntu-latest
|
|
20
|
+
|
|
21
|
+
steps:
|
|
22
|
+
- uses: actions/checkout@v2
|
|
23
|
+
- name: Set up Ruby
|
|
24
|
+
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
|
|
25
|
+
# change this to (see https://github.com/ruby/setup-ruby#versioning):
|
|
26
|
+
# uses: ruby/setup-ruby@v1
|
|
27
|
+
uses: ruby/setup-ruby@21351ecc0a7c196081abca5dc55b08f085efe09a
|
|
28
|
+
with:
|
|
29
|
+
ruby-version: 2.6
|
|
30
|
+
- name: Install dependencies
|
|
31
|
+
run: bundle install
|
|
32
|
+
- name: Run Lint
|
|
33
|
+
run: bundle exec rubocop --parallel
|
|
34
|
+
- name: Run tests
|
|
35
|
+
run: bundle exec rake
|
data/.rubocop.yml
ADDED
data/.tool-versions
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ruby 2.4.1
|
data/Gemfile
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
source 'https://rubygems.org'
|
|
2
4
|
|
|
3
5
|
# Specify your gem's dependencies in aws_secrets_loader.gemspec
|
|
4
6
|
gemspec
|
|
5
|
-
|
|
6
|
-
gem "rake", "~> 12.0"
|
|
7
|
-
gem "rspec", "~> 3.0"
|
|
8
|
-
|
|
9
|
-
gem "aws-sdk-secretsmanager", "~> 1.43"
|
data/Gemfile.lock
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
aws_secrets_loader (0.
|
|
5
|
-
aws-sdk-secretsmanager
|
|
4
|
+
aws_secrets_loader (0.2.0)
|
|
5
|
+
aws-sdk-secretsmanager (~> 1.43)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
8
8
|
remote: https://rubygems.org/
|
|
9
9
|
specs:
|
|
10
|
+
ast (2.4.1)
|
|
10
11
|
aws-eventstream (1.1.0)
|
|
11
12
|
aws-partitions (1.402.0)
|
|
12
|
-
aws-sdk-core (3.
|
|
13
|
+
aws-sdk-core (3.110.0)
|
|
13
14
|
aws-eventstream (~> 1, >= 1.0.2)
|
|
14
15
|
aws-partitions (~> 1, >= 1.239.0)
|
|
15
16
|
aws-sigv4 (~> 1.1)
|
|
@@ -21,29 +22,48 @@ GEM
|
|
|
21
22
|
aws-eventstream (~> 1, >= 1.0.2)
|
|
22
23
|
diff-lcs (1.4.4)
|
|
23
24
|
jmespath (1.4.0)
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
rspec
|
|
25
|
+
parallel (1.20.1)
|
|
26
|
+
parser (2.7.2.0)
|
|
27
|
+
ast (~> 2.4.1)
|
|
28
|
+
rainbow (3.0.0)
|
|
29
|
+
rake (13.0.1)
|
|
30
|
+
regexp_parser (2.0.0)
|
|
31
|
+
rexml (3.2.4)
|
|
32
|
+
rspec (3.10.0)
|
|
33
|
+
rspec-core (~> 3.10.0)
|
|
34
|
+
rspec-expectations (~> 3.10.0)
|
|
35
|
+
rspec-mocks (~> 3.10.0)
|
|
36
|
+
rspec-core (3.10.0)
|
|
37
|
+
rspec-support (~> 3.10.0)
|
|
38
|
+
rspec-expectations (3.10.0)
|
|
32
39
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
33
|
-
rspec-support (~> 3.
|
|
34
|
-
rspec-mocks (3.
|
|
40
|
+
rspec-support (~> 3.10.0)
|
|
41
|
+
rspec-mocks (3.10.0)
|
|
35
42
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
36
|
-
rspec-support (~> 3.
|
|
37
|
-
rspec-support (3.
|
|
43
|
+
rspec-support (~> 3.10.0)
|
|
44
|
+
rspec-support (3.10.0)
|
|
45
|
+
rubocop (1.5.2)
|
|
46
|
+
parallel (~> 1.10)
|
|
47
|
+
parser (>= 2.7.1.5)
|
|
48
|
+
rainbow (>= 2.2.2, < 4.0)
|
|
49
|
+
regexp_parser (>= 1.8, < 3.0)
|
|
50
|
+
rexml
|
|
51
|
+
rubocop-ast (>= 1.2.0, < 2.0)
|
|
52
|
+
ruby-progressbar (~> 1.7)
|
|
53
|
+
unicode-display_width (>= 1.4.0, < 2.0)
|
|
54
|
+
rubocop-ast (1.3.0)
|
|
55
|
+
parser (>= 2.7.1.5)
|
|
56
|
+
ruby-progressbar (1.10.1)
|
|
57
|
+
unicode-display_width (1.7.0)
|
|
38
58
|
|
|
39
59
|
PLATFORMS
|
|
40
60
|
ruby
|
|
41
61
|
|
|
42
62
|
DEPENDENCIES
|
|
43
|
-
aws-sdk-secretsmanager (~> 1.43)
|
|
44
63
|
aws_secrets_loader!
|
|
45
|
-
rake (~>
|
|
64
|
+
rake (~> 13.0)
|
|
46
65
|
rspec (~> 3.0)
|
|
66
|
+
rubocop (~> 1.1)
|
|
47
67
|
|
|
48
68
|
BUNDLED WITH
|
|
49
69
|
2.1.4
|
data/README.md
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+

|
|
2
|
+

|
|
3
|
+
|
|
1
4
|
# AwsSecretsLoader
|
|
2
5
|
|
|
3
6
|
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/aws_secrets_loader`. To experiment with that code, run `bin/console` for an interactive prompt.
|
data/Rakefile
CHANGED
data/aws_secrets_loader.gemspec
CHANGED
|
@@ -1,25 +1,31 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
require_relative 'lib/aws_secrets_loader/version'
|
|
2
4
|
|
|
3
5
|
Gem::Specification.new do |spec|
|
|
4
|
-
spec.name =
|
|
6
|
+
spec.name = 'aws_secrets_loader'
|
|
5
7
|
spec.version = AwsSecretsLoader::VERSION
|
|
6
|
-
spec.authors = [
|
|
7
|
-
spec.email = [
|
|
8
|
+
spec.authors = ['Iago']
|
|
9
|
+
spec.email = ['iagopimenta.s@gmail.com']
|
|
8
10
|
|
|
9
|
-
spec.summary =
|
|
10
|
-
spec.description =
|
|
11
|
-
spec.homepage =
|
|
12
|
-
spec.license =
|
|
13
|
-
spec.required_ruby_version = Gem::Requirement.new(
|
|
11
|
+
spec.summary = 'AWS Secret Manager Loader on Rails'
|
|
12
|
+
spec.description = 'AWS Secret Manager Loader on Rails'
|
|
13
|
+
spec.homepage = 'https://github.com/iagopiimenta/aws_secrets_loader'
|
|
14
|
+
spec.license = 'MIT'
|
|
15
|
+
spec.required_ruby_version = Gem::Requirement.new('>= 2.4.0')
|
|
14
16
|
|
|
15
17
|
# Specify which files should be added to the gem when it is released.
|
|
16
18
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
|
17
|
-
spec.files
|
|
19
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
|
18
20
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
19
21
|
end
|
|
20
|
-
spec.bindir =
|
|
22
|
+
spec.bindir = 'exe'
|
|
21
23
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
22
|
-
spec.require_paths = [
|
|
24
|
+
spec.require_paths = ['lib']
|
|
25
|
+
|
|
26
|
+
spec.add_runtime_dependency 'aws-sdk-secretsmanager', '~> 1.43'
|
|
23
27
|
|
|
24
|
-
spec.
|
|
28
|
+
spec.add_development_dependency 'rake', '~> 13.0'
|
|
29
|
+
spec.add_development_dependency 'rspec', '~> 3.0'
|
|
30
|
+
spec.add_development_dependency 'rubocop', '~> 1.1'
|
|
25
31
|
end
|
data/bin/console
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env ruby
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
# frozen_string_literal: true
|
|
4
|
+
|
|
5
|
+
require 'bundler/setup'
|
|
6
|
+
require 'aws_secrets_loader'
|
|
5
7
|
|
|
6
8
|
# You can add fixtures and/or initialization code here to make experimenting
|
|
7
9
|
# with your gem easier. You can also use a different console, if you like.
|
|
8
10
|
|
|
9
11
|
# (If you use this, don't forget to add pry to your Gemfile!)
|
|
10
|
-
# require
|
|
12
|
+
# require 'pry'
|
|
11
13
|
# Pry.start
|
|
12
14
|
|
|
13
|
-
require
|
|
15
|
+
require 'irb'
|
|
14
16
|
IRB.start(__FILE__)
|
data/lib/aws_secrets_loader.rb
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
require
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'aws_secrets_loader/version'
|
|
4
|
+
require 'aws_secrets_loader/aws_fetcher'
|
|
5
|
+
require 'aws_secrets_loader/railtie' if defined?(Rails::Railtie)
|
|
4
6
|
|
|
5
7
|
module AwsSecretsLoader
|
|
6
8
|
end
|
metadata
CHANGED
|
@@ -1,29 +1,71 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: aws_secrets_loader
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Iago
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-12-
|
|
11
|
+
date: 2020-12-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: aws-sdk-secretsmanager
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- - "
|
|
17
|
+
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '
|
|
19
|
+
version: '1.43'
|
|
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: '
|
|
26
|
+
version: '1.43'
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: rake
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - "~>"
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '13.0'
|
|
34
|
+
type: :development
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - "~>"
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '13.0'
|
|
41
|
+
- !ruby/object:Gem::Dependency
|
|
42
|
+
name: rspec
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - "~>"
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: '3.0'
|
|
48
|
+
type: :development
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - "~>"
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '3.0'
|
|
55
|
+
- !ruby/object:Gem::Dependency
|
|
56
|
+
name: rubocop
|
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
|
58
|
+
requirements:
|
|
59
|
+
- - "~>"
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: '1.1'
|
|
62
|
+
type: :development
|
|
63
|
+
prerelease: false
|
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
+
requirements:
|
|
66
|
+
- - "~>"
|
|
67
|
+
- !ruby/object:Gem::Version
|
|
68
|
+
version: '1.1'
|
|
27
69
|
description: AWS Secret Manager Loader on Rails
|
|
28
70
|
email:
|
|
29
71
|
- iagopimenta.s@gmail.com
|
|
@@ -32,8 +74,11 @@ extensions: []
|
|
|
32
74
|
extra_rdoc_files: []
|
|
33
75
|
files:
|
|
34
76
|
- ".github/workflows/gem-push.yml"
|
|
77
|
+
- ".github/workflows/ruby.yml"
|
|
35
78
|
- ".gitignore"
|
|
36
79
|
- ".rspec"
|
|
80
|
+
- ".rubocop.yml"
|
|
81
|
+
- ".tool-versions"
|
|
37
82
|
- ".travis.yml"
|
|
38
83
|
- CODE_OF_CONDUCT.md
|
|
39
84
|
- Gemfile
|
|
@@ -60,7 +105,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
60
105
|
requirements:
|
|
61
106
|
- - ">="
|
|
62
107
|
- !ruby/object:Gem::Version
|
|
63
|
-
version: 2.
|
|
108
|
+
version: 2.4.0
|
|
64
109
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
65
110
|
requirements:
|
|
66
111
|
- - ">="
|