{"id":16957045,"url":"https://github.com/tongueroo/text_injector","last_synced_at":"2025-03-21T13:21:03.937Z","repository":{"id":16723912,"uuid":"19480958","full_name":"tongueroo/text_injector","owner":"tongueroo","description":"Text Injector: injects text to a file","archived":false,"fork":false,"pushed_at":"2014-06-08T06:26:54.000Z","size":204,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-29T20:53:40.656Z","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":"delannoyk/AudioPlayer","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tongueroo.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2014-05-06T04:24:58.000Z","updated_at":"2014-06-08T06:26:54.000Z","dependencies_parsed_at":"2022-07-19T06:02:04.429Z","dependency_job_id":null,"html_url":"https://github.com/tongueroo/text_injector","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/tongueroo%2Ftext_injector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tongueroo%2Ftext_injector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tongueroo%2Ftext_injector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tongueroo%2Ftext_injector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tongueroo","download_url":"https://codeload.github.com/tongueroo/text_injector/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244803364,"owners_count":20512897,"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-13T22:16:43.508Z","updated_at":"2025-03-21T13:21:03.901Z","avatar_url":"https://github.com/tongueroo.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Text Injector\n\n[![Build Status](https://travis-ci.org/tongueroo/text_injector.svg?branch=master)](https://travis-ci.org/tongueroo/text_injector)\n\nInjects text to a file with markers around the text so it can update it again.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'text_injector'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install text_injector\n\n## Usage\n\n\u003cpre\u003e\nrequire 'text_injector'\ninjector = TextInjector.new(\n  :identifier =\u003e \"custom-id\",\n  :file =\u003e \"/tmp/test.txt\",\n  :content =\u003e \"added content\"\n)\ninjector.run # first run\ninjector.content = \"updated content\"\ninjector.run # second run\n\u003c/pre\u003e\n\nStarting /tmp/test.txt file:\n\n\u003cpre\u003e\ntest file\n\u003c/pre\u003e\n\nAfter first run:\n\n\u003cpre\u003e\ntest file\n\n# Begin TextInjector marker for custom-id\nadded content\n# End TextInjector marker for custom-id\n\u003c/pre\u003e\n\nAfter second run:\n\n\u003cpre\u003e\ntest file\n\n# Begin TextInjector marker for custom-id\nupdated content\n# End TextInjector marker for custom-id\n\u003c/pre\u003e\n\n\n## Contributing\n\n1. Fork it ( http://github.com/tongueroo/text_injector/fork )\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftongueroo%2Ftext_injector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftongueroo%2Ftext_injector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftongueroo%2Ftext_injector/lists"}