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,498 of 188,853
Downloads: 26,380

Daily

Ranking: 111,003 of 188,837
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
29942,308,436rspec
44699,774,167rails
74570,446,722pry
99437,930,950simplecov
174269,514,347awesome_print
276171,206,298sqlite3

Owners

#GravatarHandle
1iconkhalilgharbaoui