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,256 of 187,804
Downloads: 26,074

Daily

Ranking: 47,659 of 187,765
Downloads: 2

Depended by

RankDownloadsName

Depends on

RankDownloadsName
28927,772,474rspec
43681,947,077rails
73558,487,967pry
99427,149,122simplecov
169266,124,978awesome_print
274166,402,097sqlite3

Owners

#GravatarHandle
1iconkhalilgharbaoui