{"id":18103293,"url":"https://github.com/thinkswan/app-yml-rails","last_synced_at":"2026-04-29T17:08:37.540Z","repository":{"id":3128079,"uuid":"4155948","full_name":"thinkswan/app-yml-rails","owner":"thinkswan","description":"A gem that provides environment-specific settings for Rails apps.","archived":false,"fork":false,"pushed_at":"2012-05-01T18:13:01.000Z","size":172,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-16T23:21:58.423Z","etag":null,"topics":["gem","ruby","ruby-on-rails"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/app-yml-rails","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/thinkswan.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"MIT-LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-04-27T07:08:11.000Z","updated_at":"2019-06-28T18:03:17.000Z","dependencies_parsed_at":"2022-08-26T06:42:23.108Z","dependency_job_id":null,"html_url":"https://github.com/thinkswan/app-yml-rails","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thinkswan/app-yml-rails","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkswan%2Fapp-yml-rails","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkswan%2Fapp-yml-rails/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkswan%2Fapp-yml-rails/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkswan%2Fapp-yml-rails/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thinkswan","download_url":"https://codeload.github.com/thinkswan/app-yml-rails/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkswan%2Fapp-yml-rails/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32435225,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T13:34:34.882Z","status":"ssl_error","status_checked_at":"2026-04-29T13:34:29.830Z","response_time":110,"last_error":"SSL_read: 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":["gem","ruby","ruby-on-rails"],"created_at":"2024-10-31T22:11:38.709Z","updated_at":"2026-04-29T17:08:37.504Z","avatar_url":"https://github.com/thinkswan.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# app-yml-rails\n\nThis gem provides a Rails application with project-wide settings via an **app.yml** file. Settings can be accessed anywhere: controllers, helpers, views, models, tests, in the console, etc.\n\n## Features\n\n- Provides project-wide settings via **config/app.yml**.\n- Supports `App.settings.nested_settings` syntax.\n- Supports **all/production/staging/development/test** environments (specific environment settings over settings from the 'all' environment).\n- Auto-refreshes **app.yml** changes without requiring an application restart.\n\n## Installation\n\nAdd the following line to your project's **Gemfile**:\n\n    gem 'app-yml-rails'\n\nInstall the gem using **Bundler**:\n\n    $ bundle\n\nInstall the config and initializer files:\n\n    $ rails generate app_yml:install\n\n## Usage\n\n1. Edit your project settings in **config/app.yml**.\n2. Access settings anywhere in your application via `App.settings.nested_setting` syntax.\n\n## Examples\n\nIf your **config/app.yml** file appears as follows:\n\n    all:\n      emails:\n        admin: admin@example.com\n        team:\n          ceo: ceo@example.com\n      max_search_results: 20\n      app_name: My Amazing Application\n\n    development:\n      emails:\n        team:\n          ceo: ceo@localhost\n      app_name: My Amazing Application (development)\n\n    production:\n      app_name: My Amazing Application (production)\n\nSettings in the **development** environment:\n\n    App.emails.admin       =\u003e 'admin@example.com'\n    App.emails.team.ceo    =\u003e 'ceo@localhost'\n    App.max_search_results =\u003e 20\n    App.app_name           =\u003e 'My Amazing Application (development)'\n\nSettings in the **production** environment:\n\n    App.emails.admin       =\u003e 'admin@example.com'\n    App.emails.team.ceo    =\u003e 'ceo@example.com'\n    App.max_search_results =\u003e 20\n    App.app_name           =\u003e 'My Amazing Application (production)'\n\n## License\n\n[MIT License](https://github.com/thinkswan/app-yml-rails/blob/master/MIT-LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinkswan%2Fapp-yml-rails","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthinkswan%2Fapp-yml-rails","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinkswan%2Fapp-yml-rails/lists"}