{"id":15405158,"url":"https://github.com/fnando/check_files","last_synced_at":"2025-04-16T22:50:15.654Z","repository":{"id":59152019,"uuid":"59161804","full_name":"fnando/check_files","owner":"fnando","description":"Check non-reloadable files changes on Rails apps.","archived":false,"fork":false,"pushed_at":"2019-11-28T19:21:28.000Z","size":16,"stargazers_count":15,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-11T12:05:56.771Z","etag":null,"topics":[],"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":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}},"created_at":"2016-05-19T00:50:14.000Z","updated_at":"2020-04-11T12:25:06.000Z","dependencies_parsed_at":"2022-09-18T11:51:01.771Z","dependency_job_id":null,"html_url":"https://github.com/fnando/check_files","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnando%2Fcheck_files","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnando%2Fcheck_files/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnando%2Fcheck_files/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnando%2Fcheck_files/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fnando","download_url":"https://codeload.github.com/fnando/check_files/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249284436,"owners_count":21243960,"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":[],"created_at":"2024-10-01T16:15:17.025Z","updated_at":"2025-04-16T22:50:15.637Z","avatar_url":"https://github.com/fnando.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CheckFiles\n\n[![Travis-CI](https://travis-ci.org/fnando/check_files.svg)](https://travis-ci.org/fnando/check_files)\n[![Code Climate](https://codeclimate.com/github/fnando/check_files/badges/gpa.svg)](https://codeclimate.com/github/fnando/check_files)\n[![Test Coverage](https://codeclimate.com/github/fnando/check_files/badges/coverage.svg)](https://codeclimate.com/github/fnando/check_files/coverage)\n[![Gem](https://img.shields.io/gem/v/check_files.svg)](https://rubygems.org/gems/check_files)\n[![Gem](https://img.shields.io/gem/dt/check_files.svg)](https://rubygems.org/gems/check_files)\n\nEver forgot to restart the development web server when you change things like `Gemfile` or `config/environments/development.rb`? You're not alone. There are a lot of cases to keep in mind:\n\n- You upgrade and/or remove/add gems to `Gemfile`.\n- You change environment values (e.g. `config/environments/development.rb`).\n- You change initializer values.\n- You add/remove directories to/from `app`.\n- You add/remove files to/from `config/locales`.\n- You change configuration files living at `config/*.yml` .\n\nWith this gem you don't have to think about it. Every time you change files that require a restart, an exception will be raised and you'll know what you have to do.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem \"check_files\", group: :development\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install check_files\n\n## Usage\n\nYou don't have to configure anything but there are some configurable values if you want. The following values are the defaults:\n\n```ruby\n# The list of files/directories that must be checked.\n# Patterns ended with /* will just check the entries list (not the content).\nconfig.check_files.paths = [\n  \"Gemfile.lock\",\n  \"config/initializers/**/*.rb\",\n  \"config/{application,boot,config,environment}.rb\",\n  \"config/*.yml\",\n  \"config/environments/**/*.rb\",\n  \"app/*\",\n  \"config/locales/**/*\"\n]\n\n# The notifier that will be used. By default it raises an exception on Rails \u003c 5 or restarts the web server (Rails 5+).\n# You can use CheckFiles::Notifiers::Exception, CheckFiles::Notifiers::Logging or CheckFiles::Notifiers::Restart (Rails 5+).\nconfig.check_files.notifier = CheckFiles::Notifiers::Exception\n```\n\nTo overwrite any of these values, just create the initializer `config/initializers/check_files.rb` like the following:\n\n```ruby\nRails.configuration.check_files.notifier = CheckFiles::Notifiers::Logging\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` 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 [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/fnando/check_files. 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## License\n\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%2Ffnando%2Fcheck_files","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffnando%2Fcheck_files","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffnando%2Fcheck_files/lists"}