{"id":16805511,"url":"https://github.com/dewski/html-pipeline-bitly","last_synced_at":"2025-03-17T07:43:47.932Z","repository":{"id":5567309,"uuid":"6772753","full_name":"dewski/html-pipeline-bitly","owner":"dewski","description":"A HTML Pipeline filter for extracting URLs and making them bit.ly links.","archived":false,"fork":false,"pushed_at":"2012-11-21T00:48:42.000Z","size":136,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-23T16:54:01.973Z","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/dewski.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":"2012-11-20T05:43:04.000Z","updated_at":"2014-01-24T05:26:51.000Z","dependencies_parsed_at":"2022-08-27T00:12:01.560Z","dependency_job_id":null,"html_url":"https://github.com/dewski/html-pipeline-bitly","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dewski%2Fhtml-pipeline-bitly","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dewski%2Fhtml-pipeline-bitly/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dewski%2Fhtml-pipeline-bitly/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dewski%2Fhtml-pipeline-bitly/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dewski","download_url":"https://codeload.github.com/dewski/html-pipeline-bitly/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243996901,"owners_count":20380979,"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-13T09:48:29.286Z","updated_at":"2025-03-17T07:43:47.911Z","avatar_url":"https://github.com/dewski.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HTML::Pipeline::BitlyLinkFilter\n\nA HTML Pipeline filter for extracting URLs and making them bit.ly links.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'html-pipeline-bitly'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install html-pipeline-bitly\n\n## Usage\n\nTo configure this filter to exclude certain hostnames you can set which hosts you want to be excluded from the Bitly shortener:\n\n```ruby\nHTML::Pipeline::BitlyLinkFilter.allowed_hostnames = ['github.com', 'bit.ly']\n```\n\nThis pipeline filter also requires Redis as a backend storage, so with that you can just pass in your global instance of your Redis connection like below or instantiate your own:\n\n```ruby\nHTML::Pipeline::BitlyLinkFilter.redis = $redis\n```\n\nBy default all links will be prefixed in redis with the `bitly` namespace, if you'd like to change this you can just set it like below:\n\n```ruby\nHTML::Pipeline::BitlyLinkFilter.redis_namespace = 'hire'\n```\n\nHappy Pipelining!\n\n## Contributing\n\n1. Fork it\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%2Fdewski%2Fhtml-pipeline-bitly","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdewski%2Fhtml-pipeline-bitly","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdewski%2Fhtml-pipeline-bitly/lists"}