{"id":18426178,"url":"https://github.com/wework/dotenv-rails-safe","last_synced_at":"2025-09-19T20:46:59.036Z","repository":{"id":52422151,"uuid":"72692381","full_name":"wework/dotenv-rails-safe","owner":"wework","description":"An extension of the dotenv-rails gem that ensures setting of required environment variables","archived":false,"fork":false,"pushed_at":"2023-03-30T20:07:47.000Z","size":24,"stargazers_count":2,"open_issues_count":6,"forks_count":3,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-04-07T16:41:33.961Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/wework.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":"2016-11-03T00:10:52.000Z","updated_at":"2023-03-30T20:07:50.000Z","dependencies_parsed_at":"2025-04-07T16:39:59.470Z","dependency_job_id":null,"html_url":"https://github.com/wework/dotenv-rails-safe","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/wework/dotenv-rails-safe","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wework%2Fdotenv-rails-safe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wework%2Fdotenv-rails-safe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wework%2Fdotenv-rails-safe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wework%2Fdotenv-rails-safe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wework","download_url":"https://codeload.github.com/wework/dotenv-rails-safe/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wework%2Fdotenv-rails-safe/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275998868,"owners_count":25567391,"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-09-19T02:00:09.700Z","response_time":108,"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":[],"created_at":"2024-11-06T05:07:08.728Z","updated_at":"2025-09-19T20:46:59.007Z","avatar_url":"https://github.com/wework.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"`dotenv-rails-safe`\n===================\n\n[![Build Status][travis-image]][travis-url]\n[![Coverage Status][coveralls-image]][coveralls-url]\n[![MIT License][license-image]][license-url]\n\nThis gem is an extension of the [`dotenv`](https://github.com/bkeepers/dotenv) gem that ensures that required environment variables are set before deploying to production or running code locally. Required variables are read from `.env.example` and should be commited to source code. This is heavily inspired by [dotenv-safe](https://github.com/rolodato/dotenv-safe).\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'dotenv-rails-safe'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install dotenv-rails-safe\n\n## Example `.env.example`\n\n```dosini\n# .env.example, commited to repo\nSECRET=\nTOKEN=\nMISSING_KEY=\nANOTHER_MISSING_KEY=\n# Commented out keys are not required but these are good for documentation purposes\n# KEY= \n```\n\n```dosini\n# .env\nSECRET=topsecret\nTOKEN=\n```\n\nSince the provided `.env` file does not contain all the variables defined in\n`.env.example`, an exception is thrown:\n\n```\nDotenv::MissingEnvVarError: Missing the following environment variables: MISSING_KEY and ANOTHER_MISSING_KEY\n```\n\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to Gemfury. It's private for now.\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/wework/dotenv-rails-safe. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n\n[travis-image]: https://img.shields.io/travis/wework/dotenv-rails-safe.svg?branch=master\n[travis-url]: https://travis-ci.org/wework/dotenv-rails-safe\n[coveralls-image]: https://coveralls.io/repos/github/wework/dotenv-rails-safe/badge.svg?branch=test-travis\n[coveralls-url]: https://img.shields.io/travis/wework/dotenv-rails-safe/master.svg\n[license-url]: LICENSE\n[license-image]: http://img.shields.io/badge/license-MIT-000000.svg?style=flat-square\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwework%2Fdotenv-rails-safe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwework%2Fdotenv-rails-safe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwework%2Fdotenv-rails-safe/lists"}