{"id":22989134,"url":"https://github.com/cookpad/denv","last_synced_at":"2025-08-13T20:33:48.317Z","repository":{"id":62557009,"uuid":"49212728","full_name":"cookpad/denv","owner":"cookpad","description":"Loads environment variables to `ENV` from `.env` file","archived":false,"fork":false,"pushed_at":"2018-06-30T00:30:16.000Z","size":29,"stargazers_count":19,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-16T02:42:43.942Z","etag":null,"topics":["dotenv","envfile","rails"],"latest_commit_sha":null,"homepage":"","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/cookpad.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-07T15:29:39.000Z","updated_at":"2023-08-30T05:19:47.000Z","dependencies_parsed_at":"2022-11-03T06:01:08.819Z","dependency_job_id":null,"html_url":"https://github.com/cookpad/denv","commit_stats":null,"previous_names":["taiki45/denv"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cookpad%2Fdenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cookpad%2Fdenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cookpad%2Fdenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cookpad%2Fdenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cookpad","download_url":"https://codeload.github.com/cookpad/denv/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229688692,"owners_count":18107966,"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","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":["dotenv","envfile","rails"],"created_at":"2024-12-15T04:16:30.804Z","updated_at":"2024-12-15T04:16:31.230Z","avatar_url":"https://github.com/cookpad.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# denv\n[![Build Status](https://travis-ci.org/cookpad/denv.svg?branch=master)](https://travis-ci.org/cookpad/denv) [![Gem Version](https://badge.fury.io/rb/denv.svg)](https://badge.fury.io/rb/denv)\n\ndenv = dotenv + Docker envfile format\n\nLoads environment variables to `ENV` from `.env` file.\n\n- No special treatments about shell meta characters (e.g. `$`).\n- Behaves as over-write.\n- Env vars are removed on loading when they are removed from `.env` file. This is useful when use unicorn's graceful reloading.\n\n## Usage\nAdd this line to your application's Gemfile:\n\n```ruby\nsource 'https://rubygems.org'\n\n# Place this line at very top of your Gemfile\ngem 'denv'\n```\n\nAnd then execute:\n\n```\n$ bundle\n```\n\nWrite your envfile at `.env`:\n\n```sh\nAWESOME_SERVICE_CREDENTIAL=xxxxxx\nANOTHER_CREDENTIAL=xxxxxx\n```\n\nThen call `Denv.load` in your application initialization. Now you can refer env vars via `ENV`.\n\n```ruby\nputs ENV['AWESOME_SERVICE_CREDENTIAL'] #=\u003e \"xxxxxx\"\n```\n\n### Rails integration\ndenv automatically sets initializer for your Rails application, so you only have to write gem dependency to your Gemfile.\n\n### Command line tool\n```\ndenv --help\necho 'XXX=1' \u003e .env\ndenv -- env | grep XXX #=\u003e XXX=1\n```\n\n## Development\nAfter checking out the repo, run `bin/setup` to install dependencies. 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 [rubygems.org](https://rubygems.org).\n\n## Contributing\nBug reports and pull requests are welcome on GitHub at https://github.com/taiki45/denv.\n\n\n## License\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcookpad%2Fdenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcookpad%2Fdenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcookpad%2Fdenv/lists"}