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,438 of 188,645
Downloads: 26,262

Daily

Ranking: 76,767 of 188,635
Downloads: 3

Depended by

RankDownloadsName

Depends on

RankDownloadsName
29937,687,145rspec
44693,625,624rails
74566,557,090pry
99434,284,425simplecov
171268,479,013awesome_print
274169,784,300sqlite3

Owners

#GravatarHandle
1iconkhalilgharbaoui