secret_garden 0.0.1 → 0.0.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
  SHA1:
3
- metadata.gz: 3ce8d3fe0db1ee091033726364760e4b63fc0c45
4
- data.tar.gz: 0c0d3395947f0ed502084b2941bf152ca5ac0664
3
+ metadata.gz: 58535c85003f25bec878fb5bf9608a9bd3417450
4
+ data.tar.gz: 085ce3fc9da6b7d43d92fa077bfe1af540613288
5
5
  SHA512:
6
- metadata.gz: 057a3570da5517e556252a3d973a44044d008f09f86ce481e3476bbee6373d51f813d605527b2455b21148bfa265f995a80de8ebc73202b9db6f75b0591e19dd
7
- data.tar.gz: fb9a1a045ab7c5e33837e49c98c21baeecba137f141b6b9c3f95335547de141e2e46aebaae420595e5ceaf88e93bc3f46e33dd4b1a6b9c87b4644f1c643ff4fd
6
+ metadata.gz: bf3e99050f887e486f5650d1faf40b348625cd970da2d85ab5fe4fb00b0243ec399578154a8181f681d87a0326205116410dd4a7742c90feb40147b9116d9518
7
+ data.tar.gz: bb554d0653573326a07d69c75cce17d8647eac03cfde6280e90041f6829ca5db6439f6f77e16cbeee92577f03b3781d8f4cacfb653c1eeee382a26ffef93f1fd
@@ -1,3 +1,3 @@
1
1
  module SecretGarden
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/lib/secret_garden.rb CHANGED
@@ -23,6 +23,15 @@ module SecretGarden
23
23
  end
24
24
  end
25
25
 
26
+ def self.fetch!(name)
27
+ value = fetch(name)
28
+ if value.nil?
29
+ raise(SecretNotDefined, "None of your backends have #{name}")
30
+ else
31
+ value
32
+ end
33
+ end
34
+
26
35
  def self.map
27
36
  @map ||= SecretGarden::Map.new root: secret_file_path, env: env
28
37
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: secret_garden
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Derek Kastner