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,626 of 189,679
Downloads: 26,453

Daily

Ranking: 68,139 of 189,654
Downloads: 1

Depended by

RankDownloadsName

Depends on

RankDownloadsName
29951,539,742rspec
44711,059,616rails
74578,504,040pry
99445,148,645simplecov
177271,787,767awesome_print
277173,462,538sqlite3

Owners

#GravatarHandle
1iconkhalilgharbaoui