{"id":17003812,"url":"https://github.com/cldwalker/ripl-play","last_synced_at":"2025-10-25T04:47:19.374Z","repository":{"id":1215678,"uuid":"1132218","full_name":"cldwalker/ripl-play","owner":"cldwalker","description":"A ripl plugin to playback and record inputs in ripl","archived":false,"fork":false,"pushed_at":"2011-01-03T14:59:43.000Z","size":89,"stargazers_count":14,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T13:32:10.035Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/cldwalker.png","metadata":{"files":{"readme":"README.rdoc","changelog":"CHANGELOG.rdoc","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-12-02T15:11:37.000Z","updated_at":"2020-03-10T16:28:30.000Z","dependencies_parsed_at":"2022-08-16T12:35:24.904Z","dependency_job_id":null,"html_url":"https://github.com/cldwalker/ripl-play","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/cldwalker%2Fripl-play","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cldwalker%2Fripl-play/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cldwalker%2Fripl-play/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cldwalker%2Fripl-play/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cldwalker","download_url":"https://codeload.github.com/cldwalker/ripl-play/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244986293,"owners_count":20542990,"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-14T04:32:44.818Z","updated_at":"2025-10-25T04:47:14.357Z","avatar_url":"https://github.com/cldwalker.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"== Description\nA ripl plugin to playback ruby code in ripl coming from files, urls or stdin. Also records a ripl\nsession for playback later.\n\n== Install\nInstall the gem with:\n\n    sudo gem install ripl-play\n\nTo be able to playback multi-line code:\n\n    sudo gem install ripl-multi_line\n\n    # Add to ~/.riplrc\n    require 'ripl/multi_line'\n\n== Usage\n\n\u003ctt\u003eripl play\u003c/tt\u003e plays its input, line by line, as if each line were input by a user.\n\nTo play a url:\n\n    $ ripl play https://gist.github.com/725338\n    \u003e\u003e a = 10 ** 2\n    =\u003e 100\n    \u003e\u003e a + 10\n    =\u003e 110\n    \u003e\u003e\n\nTo playback a url quietly (i.e. you just want to load the url into ripl):\n\n    $ ripl play https://gist.github.com/725338 -q\n    \u003e\u003e a = 10 ** 2\n    \u003e\u003e a + 10\n    \u003e\u003e\n\nTo playback a url with relevant gems automatically installed (you may want to create an rvm\ngemset before doing this)\n\n    $ ripl play https://gist.github.com/622668 -i\n    Can I install the following gems: tilt, erubis ? ([y]/n)\n    ....\n\nUrls should point to raw text except for gists and any github file url\n({like this}[https://github.com/cldwalker/irbfiles/blob/master/boson/commands/core/string.rb])\nwhich are autoconverted.\n\n\u003ctt\u003eripl play\u003c/tt\u003e can also playback files or from stdin:\n\n    # Plays script.rb line by line\n    $ ripl play script.rb\n    \u003e\u003e ...\n\n    # Plays back last 10 lines of irb history\n    $ tail -10 ~/.irb_history | ripl play\n    \u003e\u003e ...\n\nIf you want to share a ripl session for playback later, start ripl with record:\n\n    # By default record saves to ripl_tape. Pass an argument to explicitly name the file\n    $ ripl record\n    \u003e\u003e :do_something\n    =\u003e :do_something\n    \u003e\u003e ...\n    =\u003e ...\n    \u003cControl-D\u003e\n\nAfter exiting, the file ripl_tape will contain all of your inputs from that session.\nNow anyone can playback that session with \u003ctt\u003eripl play\u003c/tt\u003e:\n\n    # play defaults to ripl_tape\n    # Assuming you're in the same directory as ripl_tape\n    $ ripl play\n    \u003e\u003e :do_something\n    =\u003e :do_something\n    \u003e\u003e ...\n    =\u003e ...\n    \u003e\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcldwalker%2Fripl-play","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcldwalker%2Fripl-play","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcldwalker%2Fripl-play/lists"}