{"id":22981046,"url":"https://github.com/rubyworks/autoreload","last_synced_at":"2025-08-13T17:33:47.902Z","repository":{"id":62553782,"uuid":"647482","full_name":"rubyworks/autoreload","owner":"rubyworks","description":"Automatic Library Reloading","archived":false,"fork":false,"pushed_at":"2015-05-07T15:35:46.000Z","size":485,"stargazers_count":17,"open_issues_count":1,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-25T23:21:58.959Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://rubyworks.github.com/autoreload","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rubyworks.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-05-04T23:03:09.000Z","updated_at":"2019-01-17T09:28:15.000Z","dependencies_parsed_at":"2022-11-03T04:45:29.240Z","dependency_job_id":null,"html_url":"https://github.com/rubyworks/autoreload","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubyworks%2Fautoreload","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubyworks%2Fautoreload/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubyworks%2Fautoreload/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubyworks%2Fautoreload/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rubyworks","download_url":"https://codeload.github.com/rubyworks/autoreload/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229773540,"owners_count":18122031,"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-12-15T01:46:50.797Z","updated_at":"2024-12-15T01:46:51.391Z","avatar_url":"https://github.com/rubyworks.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AutoReload\n\n[Homepage](http://rubyworks.github.com/autoreload) |\n[Development](http://github.com/rubyworks/autoreload) |\n[Mailing List](http://groups.google.com/group/rubyworks-mailinglist)\n\n[![Build Status](https://secure.travis-ci.org/rubyworks/autoreload.png)](http://travis-ci.org/rubyworks/autoreload)\n\n\n## Description\n\nAutoreload automatically reloads library files after they\nhave been updated. It is especially useful when testing\nstateless services such as web applications.\n\nIMPORTANT! Version 1.0+ has a new API. It also works best\nunder Ruby 1.9 or above. Under Ruby 1.8 or older files are \nreloaded regardless of whether they actually have changed\nsince the last load. Whereas in Ruby 1.9+, they only reload\nif the mtime on the file is newer than the previous time.\n\n\n## Synopsis\n\nSay we have a library \u003ctt\u003efoo.rb\u003c/tt\u003e in our load path:\n\n    def foo\n      1\n    end\n\n\nWe can then run the following script, \u003ctt\u003eexample.rb\u003c/tt\u003e:\n\n    require 'autoreload'\n\n    autoreload(:interval=\u003e2, :verbose=\u003etrue) do\n      require 'foo.rb'\n    end\n\n    loop {\n      puts foo\n      sleep 2\n    }\n\nWhile that's running we can change `foo.rb` and the change will\ntake effect in `example.rb` within two seconds of being made.\n\nNote that autoreload only works with _required_ files. It cannot\nmonitor files that are brought in with `#load`. This is because\n`$LOADED_FEATURES` is used to track which files are monitored.\n\n\n## Acknowledgements\n\nThe current version of Autoreload is a derviative of Kouichirou Eto's original\nwork which can still be found at http://autoreload.rubyforge.org.\n\n\n## License \u0026 Copyrights\n\nAutoreload is released as free software under the BSD-2-Clause license.\n\n* Copyright 2010 Rubyworks\n* Copyright 2003 Kouichirou Eto\n\nSee LICENSE.md for details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubyworks%2Fautoreload","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frubyworks%2Fautoreload","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubyworks%2Fautoreload/lists"}