sekreto 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +21 -0
- data/lib/sekreto/railtie.rb +0 -2
- data/lib/sekreto/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33773c6654dfdf9085a776c458cad342ba2340dae4dbd3ee668a7c25c4050ede
|
4
|
+
data.tar.gz: af2b7091cef29d632baf9ab23d849b37bd786c9095ffc2088910df3db12dcb89
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
data/lib/sekreto/railtie.rb
CHANGED
data/lib/sekreto/version.rb
CHANGED
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.
|
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-
|
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
|