cre 0.1.2 → 0.1.3
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 +2 -2
- data/lib/cre/version.rb +1 -1
- metadata +9 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 93b74a28930e320c89007dbd79b5d085bd8bcb577bcba60e28a4d500505e95da
|
4
|
+
data.tar.gz: 13be234c8bb38b25a8d630c10f5bf0a3781b647dd727e74bc171178aec5b97eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8cf28c23b5d14718e2552774c0046d1b255367a69c28f5e6508802f5208839ca5c516b9e012afa8a5ffec7779c0c1f1a83f301de6a5d3047ec8d9bfaf5289315
|
7
|
+
data.tar.gz: 981df0ba3552482150b9bfd7bffe68d4dbb9b17b776467b08946fc81a995e724f5ab7187242e585686ce56eff7b2bf4cf15085a60e3bd0386c475859ceb6983b
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
[](https://travis-ci.org/khalilgharbaoui/cre)
|
1
|
+
[](https://travis-ci.org/khalilgharbaoui/cre) [](https://badge.fury.io/rb/cre)
|
2
2
|
# Cre
|
3
3
|
This gem basically lets you dig out the rails encrypted credentials by simply doing:
|
4
4
|
|
@@ -30,7 +30,7 @@ test:
|
|
30
30
|
Add this line to your application's Gemfile:
|
31
31
|
|
32
32
|
```ruby
|
33
|
-
gem 'cre'
|
33
|
+
gem 'cre', '~> 0.1.2'
|
34
34
|
```
|
35
35
|
|
36
36
|
And then execute:
|
data/lib/cre/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cre
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Khalil Gharbaoui
|
@@ -102,15 +102,14 @@ dependencies:
|
|
102
102
|
version: 1.3.13
|
103
103
|
description: "Cre reduces the amount of code you have to write when fetching
|
104
104
|
rails credentials. If your encrypted credentials look like
|
105
|
-
this:\n
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
\
|
111
|
-
|
112
|
-
|
113
|
-
\ `Cre.dig(:production, :password)`\n "
|
105
|
+
this:\n\n production:\n password: 'foobar'\n
|
106
|
+
\ development:\n password: 'foobar'\n
|
107
|
+
\ test:\n password: 'foobar'\n\n Usually
|
108
|
+
you have to get it like this:\n `Rails.application.credentials.dig(Rails.env,
|
109
|
+
:password)`\n with Cre you can just do: `Cre.dig(:password)`.\n
|
110
|
+
\ By default it grabs the current Rails environment.\n To
|
111
|
+
overwrite this behavior add the enviroment as the\n first argument:
|
112
|
+
`Cre.dig(:production, :password)`\n "
|
114
113
|
email:
|
115
114
|
- khalilgharbaoui@hotmail.com
|
116
115
|
executables: []
|