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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 484658da21b8d27f69de69be0f018d61f4da47240f3e82d0fc4116485153cecd
4
- data.tar.gz: eda564830a347519b50ccecdc6df07ffe7648cfe82e2764611804fd714d00446
3
+ metadata.gz: f924f84a7974b3b7ed76416272b02ed11aa05d5c5308ed321f6303ca62059bef
4
+ data.tar.gz: 23c6e0bd5f4d70f4bf350e8c2e885edb7fa6ca8b30b6f53170ce0dfeaadfde3c
5
5
  SHA512:
6
- metadata.gz: 3e3c5bb1a8a7986689e85a784b8d41258a589fa34eb3ff4503a23dd7e6d8592a6e957ebe6b0b08fa8a59080914ec88687017988f599b58eef156d698d70d95b1
7
- data.tar.gz: 6cb26362bba924d133eb33d735a4e1261ad2758e0b14707fd7db6788b5502b19a1569711f9256778d11b51432f76f526c11d174bf1ebb683bef9aa20619ac13d
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.3)
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.146.0)
13
- aws-sdk-core (3.48.2)
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)
@@ -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"
@@ -19,3 +19,4 @@ module FigaroSecrets
19
19
  end
20
20
 
21
21
  require "figaro_secrets/hook"
22
+ require "railtie" if defined?(Rails)
@@ -1,3 +1,3 @@
1
1
  module FigaroSecrets
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
data/lib/railtie.rb ADDED
@@ -0,0 +1,5 @@
1
+ class Railtie < Rails::Railtie
2
+ rake_tasks do
3
+ load "tasks/figaro_secrets.rake"
4
+ end
5
+ end
@@ -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.3
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-03-22 00:00:00.000000000 Z
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__)
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here