{"id":14955974,"url":"https://github.com/khalilgharbaoui/cre","last_synced_at":"2025-10-08T18:02:05.181Z","repository":{"id":33082117,"uuid":"150855777","full_name":"khalilgharbaoui/cre","owner":"khalilgharbaoui","description":null,"archived":false,"fork":false,"pushed_at":"2025-08-14T23:50:43.000Z","size":273,"stargazers_count":4,"open_issues_count":11,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-08T22:45:52.193Z","etag":null,"topics":["awesome","cre","credentials","gem","pry","rails","rails-gem","rails5","rspec","ruby","ruby-on-rails"],"latest_commit_sha":null,"homepage":"","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/khalilgharbaoui.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-29T11:01:56.000Z","updated_at":"2024-12-20T16:00:47.000Z","dependencies_parsed_at":"2024-09-22T00:01:49.892Z","dependency_job_id":"b3264123-a138-4ca9-afdb-c3eec459d9ec","html_url":"https://github.com/khalilgharbaoui/cre","commit_stats":{"total_commits":46,"total_committers":3,"mean_commits":"15.333333333333334","dds":"0.26086956521739135","last_synced_commit":"523d51f22570845cc3e4d0b9c9b611b96ad6d1d2"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/khalilgharbaoui/cre","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khalilgharbaoui%2Fcre","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khalilgharbaoui%2Fcre/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khalilgharbaoui%2Fcre/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khalilgharbaoui%2Fcre/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/khalilgharbaoui","download_url":"https://codeload.github.com/khalilgharbaoui/cre/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khalilgharbaoui%2Fcre/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278794396,"owners_count":26046968,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["awesome","cre","credentials","gem","pry","rails","rails-gem","rails5","rspec","ruby","ruby-on-rails"],"created_at":"2024-09-24T13:12:06.554Z","updated_at":"2025-10-08T18:02:05.124Z","avatar_url":"https://github.com/khalilgharbaoui.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/khalilgharbaoui/cre.svg?branch=master)](https://travis-ci.org/khalilgharbaoui/cre) [![Gem Version](https://badge.fury.io/rb/cre.svg)](https://badge.fury.io/rb/cre)\n# Cre\nThis gem basically lets you dig out the rails encrypted credentials by simply doing:\n\n`Cre.dig(:password)` ✅\n\nInstead of going the long way:\n\n`Rails.application.credentials.dig(Rails.env.to_sym, :password)` ❌\n\n## Usage\nBy default it uses the currently active rails environment.\nSpecify the environment specifically by adding it as the first argument.\nBut do remember that it only considers `defined environments` in `config/environments`\n\n`Cre.dig(:production, :password)`\n\n⚠️ This assumes your credentials are setup like:\n```\nproduction:\n  aws_key: 'somekeyproduction'\n  password: 'fakepass'\ndevelopment:\n  aws_key: 'somekeydevelopment'\n  password: 'fakepass'\ntest:\n  aws_key: 'somekeytest'\n  password: 'fakepass'\n```  \nIt also supports deeper nested credentials for example:\n```\nCre.dig(:production, :aws, :client, secret, :key)\n```\nOr:  \n```\nCre.dig(:something, :nested, :multiple, :layers, :deep)\n```\n## Installation\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'cre', '~\u003e 2.1.1'\n```\n\nAnd then execute:\n```bash\n$ bundle\n```\n\nOr install it yourself as:\n```bash\n$ gem install cre\n```\n\n##Todo:\n- Exeption handeling\n\n## Contributing\nContribution directions go here.\n\n## License\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhalilgharbaoui%2Fcre","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkhalilgharbaoui%2Fcre","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhalilgharbaoui%2Fcre/lists"}