{"id":15405121,"url":"https://github.com/fnando/application_env","last_synced_at":"2026-01-19T07:33:23.897Z","repository":{"id":65383768,"uuid":"572247399","full_name":"fnando/application_env","owner":"fnando","description":"Detect application environments.","archived":false,"fork":false,"pushed_at":"2023-09-05T07:50:19.000Z","size":18,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-07T12:17:44.998Z","etag":null,"topics":["ruby","rubygems"],"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/fnando.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["fnando"],"custom":["https://paypal.me/nandovieira/🍕"]}},"created_at":"2022-11-29T21:31:34.000Z","updated_at":"2022-11-30T14:18:03.000Z","dependencies_parsed_at":"2024-10-19T11:28:59.263Z","dependency_job_id":null,"html_url":"https://github.com/fnando/application_env","commit_stats":{"total_commits":4,"total_committers":2,"mean_commits":2.0,"dds":0.5,"last_synced_commit":"6c2d0329389a3e86101bad26a190fdbfef4a3caa"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/fnando/application_env","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnando%2Fapplication_env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnando%2Fapplication_env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnando%2Fapplication_env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnando%2Fapplication_env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fnando","download_url":"https://codeload.github.com/fnando/application_env/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnando%2Fapplication_env/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28562994,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T03:31:16.861Z","status":"ssl_error","status_checked_at":"2026-01-19T03:31:15.069Z","response_time":67,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["ruby","rubygems"],"created_at":"2024-10-01T16:15:06.042Z","updated_at":"2026-01-19T07:33:23.880Z","avatar_url":"https://github.com/fnando.png","language":"Ruby","funding_links":["https://github.com/sponsors/fnando","https://paypal.me/nandovieira/🍕"],"categories":[],"sub_categories":[],"readme":"# application_env\n\n[![Tests](https://github.com/fnando/application_env/workflows/ruby-tests/badge.svg)](https://github.com/fnando/application_env)\n[![Gem](https://img.shields.io/gem/v/application_env.svg)](https://rubygems.org/gems/application_env)\n[![Gem](https://img.shields.io/gem/dt/application_env.svg)](https://rubygems.org/gems/application_env)\n[![MIT License](https://img.shields.io/:License-MIT-blue.svg)](https://tldrlegal.com/license/mit-license)\n\nDetect application environments.\n\n## Installation\n\n```bash\ngem install application_env\n```\n\nOr add the following line to your project's Gemfile:\n\n```ruby\ngem \"application_env\"\n```\n\n## Usage\n\nThe environment is inferred out of `ENV[\"APP_ENV\"]`, `ENV[\"RACK_ENV\"]`,\n`ENV[\"RAILS_ENV\"]`, defaulting to `development` in case no environment is set.\n\n```ruby\nrequire \"application_env\"\n\napp_env = AppEnv.new\n\napp_env.development?\napp_env.test?\napp_env.production?\n\n# runs block on production.\napp_env.on(:production, \u0026block)\n\n# runs block on any environment.\napp_env.on(:any, \u0026block)\n\n# pass in custom env vars\napp_env = AppEnv.new({\"APP_ENV\" =\u003e \"development\"})\n\n# sets up custom accessors\napp_env = AppEnv.new(ENV, accessors: %i[development test staging production])\napp_env.staging?\n```\n\n## Maintainer\n\n- [Nando Vieira](https://github.com/fnando)\n\n## Contributors\n\n- https://github.com/fnando/application_env/contributors\n\n## Contributing\n\nFor more details about how to contribute, please read\nhttps://github.com/fnando/application_env/blob/main/CONTRIBUTING.md.\n\n## License\n\nThe gem is available as open source under the terms of the\n[MIT License](https://opensource.org/licenses/MIT). A copy of the license can be\nfound at https://github.com/fnando/application_env/blob/main/LICENSE.md.\n\n## Code of Conduct\n\nEveryone interacting in the application_env project's codebases, issue trackers,\nchat rooms and mailing lists is expected to follow the\n[code of conduct](https://github.com/fnando/application_env/blob/main/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffnando%2Fapplication_env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffnando%2Fapplication_env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffnando%2Fapplication_env/lists"}