figaro_secrets 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/figaro_secrets.gemspec +4 -3
- data/lib/figaro_secrets.rb +1 -0
- data/lib/figaro_secrets/version.rb +1 -1
- data/lib/railtie.rb +5 -0
- data/lib/tasks/figaro_secrets.rake +16 -0
- metadata +4 -4
- data/bin/console +0 -14
- data/bin/setup +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f924f84a7974b3b7ed76416272b02ed11aa05d5c5308ed321f6303ca62059bef
|
4
|
+
data.tar.gz: 23c6e0bd5f4d70f4bf350e8c2e885edb7fa6ca8b30b6f53170ce0dfeaadfde3c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d88b7299937274f943e7cb17ccb500edaf02cc3a482cfa449389d9c1a077eecdb5ad0fad689db1812bc993a9192e0d1ec40e961e62c0a4deb0264b3e83cd497
|
7
|
+
data.tar.gz: 6e685071593bb55f9964a721351a820a1b395f0ed892db5ed9b409a3438036b4f3726980970cdd1d4fe063d83936633b929b60edc7d02e61ca69f7f777f2dc83
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
figaro_secrets (0.1.
|
4
|
+
figaro_secrets (0.1.4)
|
5
5
|
aws-sdk-secretsmanager
|
6
6
|
figaro
|
7
7
|
|
@@ -9,8 +9,8 @@ GEM
|
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
11
|
aws-eventstream (1.0.2)
|
12
|
-
aws-partitions (1.
|
13
|
-
aws-sdk-core (3.48.
|
12
|
+
aws-partitions (1.151.0)
|
13
|
+
aws-sdk-core (3.48.4)
|
14
14
|
aws-eventstream (~> 1.0, >= 1.0.2)
|
15
15
|
aws-partitions (~> 1.0)
|
16
16
|
aws-sigv4 (~> 1.1)
|
data/figaro_secrets.gemspec
CHANGED
@@ -6,14 +6,15 @@ require "figaro_secrets/version"
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.authors = ["Cory Kaufman-Schofield"]
|
8
8
|
spec.email = ["cory@corykaufman.com"]
|
9
|
+
spec.name = "figaro_secrets"
|
10
|
+
spec.version = FigaroSecrets::VERSION
|
11
|
+
|
9
12
|
spec.homepage = "https://github.com/allspiritseve/figaro_secrets"
|
10
13
|
spec.license = "MIT"
|
11
|
-
spec.name = "figaro_secrets"
|
12
14
|
spec.summary = "Secrets for Figaro"
|
13
|
-
spec.version = FigaroSecrets::VERSION
|
14
15
|
|
15
|
-
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
16
16
|
spec.files = `git ls-files -z`.split("\x0")
|
17
|
+
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
17
18
|
spec.require_paths = ["lib"]
|
18
19
|
|
19
20
|
spec.add_dependency "figaro"
|
data/lib/figaro_secrets.rb
CHANGED
data/lib/railtie.rb
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
namespace :figaro_secrets do
|
2
|
+
task :list, [:environment] do |t, args|
|
3
|
+
require "figaro"
|
4
|
+
environment = args[:environment] || ENV["RAILS_ENV"] || "development"
|
5
|
+
puts "\n"
|
6
|
+
puts "Retrieving #{environment} configuration"
|
7
|
+
puts "\n"
|
8
|
+
config = Figaro.adapter.new(environment: environment).configuration
|
9
|
+
output = []
|
10
|
+
config.keys.sort.each do |key|
|
11
|
+
output << "#{key} #{config[key].inspect}"
|
12
|
+
end
|
13
|
+
system("echo \"#{output.join("\n")}\" | column -t")
|
14
|
+
puts "\n"
|
15
|
+
end
|
16
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: figaro_secrets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cory Kaufman-Schofield
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: figaro
|
@@ -93,14 +93,14 @@ files:
|
|
93
93
|
- LICENSE.txt
|
94
94
|
- README.md
|
95
95
|
- Rakefile
|
96
|
-
- bin/console
|
97
|
-
- bin/setup
|
98
96
|
- figaro_secrets.gemspec
|
99
97
|
- lib/figaro_secrets.rb
|
100
98
|
- lib/figaro_secrets/hook.rb
|
101
99
|
- lib/figaro_secrets/parser.rb
|
102
100
|
- lib/figaro_secrets/secrets_manager.rb
|
103
101
|
- lib/figaro_secrets/version.rb
|
102
|
+
- lib/railtie.rb
|
103
|
+
- lib/tasks/figaro_secrets.rake
|
104
104
|
- test/figaro_secrets/parser_test.rb
|
105
105
|
- test/figaro_secrets_test.rb
|
106
106
|
- test/test_helper.rb
|
data/bin/console
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require "bundler/setup"
|
4
|
-
require "figaro_secrets"
|
5
|
-
|
6
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
-
# with your gem easier. You can also use a different console, if you like.
|
8
|
-
|
9
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
-
# require "pry"
|
11
|
-
# Pry.start
|
12
|
-
|
13
|
-
require "irb"
|
14
|
-
IRB.start(__FILE__)
|