sekreto 0.1.1 → 0.1.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
  SHA256:
3
- metadata.gz: cff3247881cd262117cb9d52dabb89a1c8d9e1cf0a43163fae65a475bf263d58
4
- data.tar.gz: 5d812493f43185897381d8777a74f4c969709336a3f4d23aa9b1047e4804cbce
3
+ metadata.gz: 33773c6654dfdf9085a776c458cad342ba2340dae4dbd3ee668a7c25c4050ede
4
+ data.tar.gz: af2b7091cef29d632baf9ab23d849b37bd786c9095ffc2088910df3db12dcb89
5
5
  SHA512:
6
- metadata.gz: ccf53bf1bc6fbcff3f5710229ac040156609448ffb7895a36e1ddbf5347efd5933e3b53c43a8d16904f085e004f54630c5956ca9fc0be4953af05f338fb34e3e
7
- data.tar.gz: c5fbbd40bcdacfb763ac8cb6d642a83111a0ad0c49a66f66f6c3c6699af6822c0588fa5fdcd97738eea42cb5bedf10df1a71cbb6b1cb6a1cfc955a739da5d3e8
6
+ metadata.gz: 4c310757e2f6b32777065fd595101064c64779003b3ebc165a44f567d33abe4f947a42c959ac88d1058a1ff5f0455a197752364bfaa3eb821f3d8ab1ee55cdcd
7
+ data.tar.gz: 0732c82d0b8b45947dd997be91ad6c732f418ab1686c6875cd9c3d9bef2c3fd3c0d292be5117b9730f12d1f398865e49cacfb58ba4027c9c797651cf5d3ad542
data/README.md CHANGED
@@ -59,6 +59,27 @@ Sekreto.setup do |setup|
59
59
  end
60
60
  ```
61
61
 
62
+ ### Retrieving Secrets
63
+
64
+ Getting plain text secrets:
65
+
66
+ ```ruby
67
+ # Will query for "#{prefix}/my-secret"
68
+ secret = Sekreto.get_value('my-secret')
69
+ puts secret
70
+ # Output: asdf124asdf134asdf1243asdf
71
+ ```
72
+
73
+ Getting JSON secrets will return the parsed value
74
+
75
+ ```ruby
76
+ # Will query for "#{prefix}/my-secret-config"
77
+ secret = Sekreto.get_json_value('my-secret-config')
78
+ puts secret
79
+ # Output: { some: 'json', data: 'here' }
80
+ ```
81
+
82
+
62
83
  ## Development
63
84
 
64
85
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -1,5 +1,3 @@
1
- require 'rails'
2
-
3
1
  module Sekreto
4
2
  # Rails Railtie to set up the Sekreto configuration
5
3
  class Railtie < ::Rails::Railtie
@@ -1,3 +1,3 @@
1
1
  module Sekreto
2
- VERSION = '0.1.1'.freeze
2
+ VERSION = '0.1.2'.freeze
3
3
  end
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.1.1
4
+ version: 0.1.2
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-04-27 00:00:00.000000000 Z
11
+ date: 2018-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-secretsmanager