{"id":18513967,"url":"https://github.com/daddye/loop","last_synced_at":"2025-05-14T12:35:40.451Z","repository":{"id":2037435,"uuid":"2974313","full_name":"DAddYE/loop","owner":"DAddYE","description":"A tiny Ruby program used to periodically execute a command.","archived":false,"fork":false,"pushed_at":"2011-12-13T18:51:37.000Z","size":96,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-25T21:32:55.976Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DAddYE.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-12-13T18:28:08.000Z","updated_at":"2013-09-30T10:08:33.000Z","dependencies_parsed_at":"2022-09-15T10:11:13.410Z","dependency_job_id":null,"html_url":"https://github.com/DAddYE/loop","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DAddYE%2Floop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DAddYE%2Floop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DAddYE%2Floop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DAddYE%2Floop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DAddYE","download_url":"https://codeload.github.com/DAddYE/loop/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239231109,"owners_count":19603988,"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-11-06T15:41:33.295Z","updated_at":"2025-02-17T03:35:11.236Z","avatar_url":"https://github.com/DAddYE.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Loop\n\nA tiny Ruby program used to periodically execute a command.\n\n## Usage\n\n```\nUsage: loop [options] \u003ccmd\u003e\n\nOptions:\n\n  -i, --interval=val   Interval in seconds default to 0.5\n  -v, --version        Display the version number\n  -h, --help           Show this help message\n```\n\n## Installation\n\n```\n$ (sudo) gem install loop\n```\n\n## About\n\n  This project is a port of [watch(2)](https://github.com/visionmedia/watch) implemented by VisionMedia.\n\n## Milliseconds resolution\n\n We support millisecond resolution i.e.:\n\n```\n$ loop -i 0.3 echo hey\n```\n\n## Examples\n\nHere a simple script that compile `stylus` and `coffee` in `public` folder:\n\nCreate a folder in your `sinatra`/`padrino` app:\n\n```sh\nmkdir -p app/assets/js\nmkdir -p app/assets/css\n```\n\nIn js put your `coffee` script files and under css `stylus` stylesheets.\n\nBe sure to install both:\n\n```sh\nnpm -g install stylus coffee-script\n```\n\nIn the root of your project create a `Makefile` with this content:\n\n```make\nCOFFEE=$(shell find app/assets/js -name '*.coffee' -type f)\nJS=$(patsubst app/assets/js/%.coffee, public/javascripts/%.js, $(COFFEE))\nSTYLUS=$(shell find app/assets/css -name '*.styl' -type f)\n\nall: $(JS) public/stylesheets/app.css\n\t@echo -n\n\npublic/javascripts/%.js: app/assets/js/%.coffee\n\tcoffee -b -o public/javascripts -c $\u003c\n\npublic/stylesheets/app.css: $(STYLUS)\n\tstylus -o public/stylesheets -c $\u003c\n```\n\nCreate some `*.styl` files and  `*.coffee` files under `app/assets`\n\nTest it:\n\n```sh\nmake\n```\n\nNow run loop:\n\n```sh\nloop make\n```\n\nMore details are available here: https://github.com/visionmedia/watch/blob/master/Readme.md\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaddye%2Floop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaddye%2Floop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaddye%2Floop/lists"}