dotenv_secrets 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/README.adoc +4 -2
- data/lib/dotenv_secrets.rb +1 -1
- data/lib/dotenv_secrets/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5164409f1839033727476a99a32de7557033130a3f94c14ce8239ef15c7d395
|
4
|
+
data.tar.gz: c97c42026f250aa511ed67c5ef9ce01205b4e7b116dd3de66791c4743a420e52
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3adf2a7a77c11ada1b590a710a074022cc8a2263adaeda49b6f34ab9ade54516173f7daf34b416401353c6f8972e8f91535fafa91641416bb09d40d51f42f302
|
7
|
+
data.tar.gz: 49dc93e0920b1f929abc043e84e42583e41a04108dea8d1910d7c40b7eb7da5a1197106db1ddf9c34459784359c73559587c7e2c0c7b36f0ae6b05b214ebbbd2
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.adoc
CHANGED
@@ -32,11 +32,13 @@ $ gem install dotenv_secrets
|
|
32
32
|
It's really simple:
|
33
33
|
|
34
34
|
```ruby
|
35
|
-
secrets = DotenvSecrets.new(path: "/tmp/secrets.env") # many cloud providers /tmp dir is a ramdisk,
|
35
|
+
secrets = DotenvSecrets.new(path: "/tmp/secrets.env") # many cloud providers /tmp dir is a ramdisk,
|
36
|
+
# so your secrets never get to written to
|
37
|
+
# disk if they're provisioned in /tmp/
|
36
38
|
|
37
39
|
secrets["SOME_SERVICE_API_KEY"] # => whatever value was stored directly after SOME_SERVICE_API_KEY=
|
38
40
|
|
39
|
-
secrets["NOT_IN_THE_FILE"] # =>
|
41
|
+
secrets["NOT_IN_THE_FILE"] # => raises an EOFError
|
40
42
|
```
|
41
43
|
|
42
44
|
That's it!
|
data/lib/dotenv_secrets.rb
CHANGED