{"id":15512604,"url":"https://github.com/owaiswiz/rss_watcher","last_synced_at":"2025-04-23T02:30:56.600Z","repository":{"id":56893021,"uuid":"234710509","full_name":"owaiswiz/rss_watcher","owner":"owaiswiz","description":":newspaper: A Ruby Gem For Watching RSS Feeds","archived":false,"fork":false,"pushed_at":"2020-02-29T19:06:59.000Z","size":16,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T11:07:44.869Z","etag":null,"topics":["rss","rss-feed","rss-listener","rss-notification-service","rss-parser"],"latest_commit_sha":null,"homepage":"","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/owaiswiz.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":"2020-01-18T09:24:00.000Z","updated_at":"2024-01-27T19:54:55.000Z","dependencies_parsed_at":"2022-08-20T16:10:41.060Z","dependency_job_id":null,"html_url":"https://github.com/owaiswiz/rss_watcher","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owaiswiz%2Frss_watcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owaiswiz%2Frss_watcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owaiswiz%2Frss_watcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owaiswiz%2Frss_watcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/owaiswiz","download_url":"https://codeload.github.com/owaiswiz/rss_watcher/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250357571,"owners_count":21417308,"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":["rss","rss-feed","rss-listener","rss-notification-service","rss-parser"],"created_at":"2024-10-02T09:53:44.704Z","updated_at":"2025-04-23T02:30:56.340Z","avatar_url":"https://github.com/owaiswiz.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"# RssWatcher\n[![Gem Version](https://badge.fury.io/rb/rss_watcher.svg)](https://badge.fury.io/rb/rss_watcher) [![Gem](https://img.shields.io/gem/dt/rss_watcher.svg?colorB=brightgreen\u0026maxAge=3600)](https://badge.fury.io/rb/rss_watcher)\n\nA Ruby Gem For Watching RSS Feeds\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'rss_watcher'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install rss_watcher\n\n## Usage Example\nWhenever a new item is detected on the RSS feed, the given block is called with the item that was detected.  ```item``` is an instance of a parsed RSS item using the [Ruby RSS library](https://github.com/ruby/rss). You should be able to access properties of the item using methods of the same name (e.g title, description, link, pubDate)\n```ruby\nrequire \"rss_watcher\"\nRssWatcher.watch(url: \"http://lorem-rss.herokuapp.com/feed\") do |item|\n    puts item.title\n    puts item.description\n    puts item.link\nend\n```\n### Options\n   * url : URL of the RSS Feed to be watched (*Required | String*)\n   * update_interval: Time (**in seconds**) to wait between checking the url for updates (*Optional | Default: 10 | Integer*)\n   * cache_file: Path to a file that this gem uses internally for remembering the last seen item (*Optional | Default: ```\"rss_watcher.cache\"``` | String*)\n \n```ruby\nRssWatcher.watch(url: \"http://lorem-rss.herokuapp.com/feed\", update_interval: 1, cache_file: \"~/.tmp/rss_watcher_cache\") do |item|\n    puts item.pubDate\n    puts item.link\nend\n```\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/owaiswiz/rss_watcher.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fowaiswiz%2Frss_watcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fowaiswiz%2Frss_watcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fowaiswiz%2Frss_watcher/lists"}