Categories: None [Edit]

cre

https://rubygems.org/gems/cre
https://github.com/khalilgharbaoui/cre
Cre reduces the amount of code you have to write when fetching rails credentials. If your encrypted credentials look like this: production: password: 'foobar' development: password: 'foobar' test: password: 'foobar' Usually you have to get it like this: `Rails.application.credentials.dig(Rails.env, :password)` with Cre you can just do: `Cre.dig(:password)`. By default it grabs the current Rails environment. To overwrite this behavior add the enviroment as the first argument: `Cre.dig(:production, :password)`

Total

Ranking: 44,901 of 191,735
Downloads: 26,588

Daily

Ranking: 61,973 of 191,703
Downloads: 3

Depended by

RankDownloadsName

Depends on

RankDownloadsName
29967,221,831rspec
44729,610,053rails
73591,696,771pry
99457,229,019simplecov
179275,290,314awesome_print
278178,267,253sqlite3

Owners

#GravatarHandle
1iconkhalilgharbaoui