sekreto 0.4.0 → 0.5.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: 4ef433a73a4b38041a6eda3ff98ac6b0cd696a8b081706a52ef2989f8914c113
4
- data.tar.gz: f40316dd6e2c01a62858c3de990dd7a6b1b8f40eb6040601b10197187309d562
3
+ metadata.gz: 69b4f15a52a583144261e8caedc8b7c777cbac50d60fa4e82114853643e90fea
4
+ data.tar.gz: a7c090f7207e1891f99e94ba02d3a697b3fe8d14bb370cdd9b8d55274d3bd75a
5
5
  SHA512:
6
- metadata.gz: fbc396f208a6689cc06be6d1d42f0f23309d794cb1542d979bff25962bff160003a089c9634160f6b9a2afa8bc5d97e400be102b9112834a7788432fc096a7e3
7
- data.tar.gz: cc600feac613119f06ccdeb8c9502c55411bd610c6a69a6309308506490e2f7785aaf2080a26b14315d264c1fc1b4fea17aa3b4071de0580db4da5234005a55c
6
+ metadata.gz: fbf68b03a6c59e32678fadab5601d1a9a8a88e352d76cd03341ff5b6cd7ccef9f8c701766d911d335f4efae20886c86542c1d751285f76dec2c1ef1ee46657f8
7
+ data.tar.gz: e1ec6ffc2d9042d9d28347af0d96b51a9ffc2bce71b6cdee1c595f14a3fc3e153c3682050c346c13eb08f59d33956343fb041b4a6223f28d73c7bf7a41773fff
@@ -37,6 +37,7 @@ module Sekreto
37
37
  # When a false is passed then no prefix is used. (Not recommended)
38
38
  def prefix_name(prefix_path = nil)
39
39
  return nil if prefix_path == false
40
+
40
41
  prefix_path || prefix
41
42
  end
42
43
  end
@@ -5,7 +5,7 @@ module Sekreto
5
5
  # Defaults the prefix to Rails app name and Rails.env e.g. foo-staging
6
6
  # Defaults allowed envs to check Rails.env is production or staging
7
7
  class Railtie < ::Rails::Railtie
8
- config.before_initialize do
8
+ config.before_configuration do
9
9
  app_name = ::Rails.application.class.to_s.split('::').first.downcase
10
10
 
11
11
  Sekreto.setup do |setup|
@@ -1,3 +1,3 @@
1
1
  module Sekreto
2
- VERSION = '0.4.0'.freeze
2
+ VERSION = '0.5.0'.freeze
3
3
  end
data/lib/sekreto.rb CHANGED
@@ -33,6 +33,7 @@ module Sekreto
33
33
  # @return [String] - The value of the stored secret
34
34
  def get_value(secret_id, prefix = nil)
35
35
  fail 'Not allowed env' unless config.is_allowed_env.call
36
+
36
37
  secrets_manager.get_secret_value(
37
38
  secret_id: secret_name(secret_id, prefix)
38
39
  ).secret_string
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sekreto
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Autolist Engineering
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-09-05 00:00:00.000000000 Z
11
+ date: 2018-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-secretsmanager
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.11.3
75
+ version: 0.12.0
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 0.11.3
82
+ version: 0.12.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rake
85
85
  requirement: !ruby/object:Gem::Requirement