Note
From v8.0.0, changes are documented using GitHub Releases. For a given release, metadata on RubyGems.org will link to that version's Release page.
- Refactor HTML and JSON parser classes (ec58206 and 6818c05)
- Update indieweb-endpoints dependency constraint (4cd742f)
- Relax nokogiri dependency constraint (e86f3bc)
- Breaking change: Update development Ruby to 2.7.6 and minimum Ruby to 2.7 (5bee7dd)
- Top-level module methods:
Webmention.send_webmention(source, target)
Webmention.send_webmentions(source, *targets)
Webmention.mentioned_urls(url)
Webmention.verify_webmention(source, target)
- New JSON and plaintext parsers
- Vouch URL support (9829269)
- Webmention verification support (5fe5f58 and 100644)
- Fewer exceptions! HTTP response handling updated to return similar objects (
Webmention::Response
andWebmention::ErrorResponse
). - Fewer runtime dependencies!
Webmention.send_mention
renamed toWebmention.send_webmention
Webmention.client
method removedWebmention::Client#send_all_mentions
removed in favor ofWebmention.mentioned_urls
andWebmention.send_webmentions
- Response objects from
Webmention.send_webmention
andWebmention.send_webmentions
have changed from instances ofHTTP::Response
to instances ofWebmention::Response
orWebmention::ErrorResponse
- Remove Absolutely and Addressable dependencies
- Add support for Ruby 3 (a31aae6)
- Update minimum supported Ruby version to 2.6 (e4fed8e)
- Remove Reek development dependency (806bbc7)
- Update development Ruby version to 2.6.10 (7e52ec9)
- Migrate test suite to RSpec (79ac684)
- Migrate to GitHub Actions (f5a3d7a)
- Update absolutely and indieweb-endpoints gems to v5.0 (89f4ea8)
- Breaking change: Update minimum supported Ruby version to 2.5 (b2bc62f)
- Update indieweb-endpoints to 4.0 (e61588f)
- Update project Ruby version to 2.5.8 (2a626a6)
- Reject "internal" URLs when sending webmentions (#24) (ccc82c8)
- Select only HTTP/HTTPS URLs when sending webmentions (#22) (39e5852)
- Update absolutely and indieweb-endpoints gems (350d2ed)
- Add pry-byebug and
bin/console
script (d2c5e03) - Move development dependencies to Gemfile per current Bundler conventions (3a2fc21)
- Update development Ruby version to 2.4.10 (4c7d1f7)
- Refactor
BaseParser
class and removeRegisterable
module (b706229) - Refactor
HttpRequest
andNodeParser
classes into Service Objects (f29c073 and 7456bf1)
- Add Ruby 2.7 to list of supported Ruby versions (c67ed14)
- Update absolutely, addressable, http, and indieweb-endpoints version constaints (986d326 and 6ba054f)
- Update development dependencies (74ac982)
- Update project Ruby version to 2.4.9 and update documentation (fd61ddf)
- Update Addressable and WebMock gems (0b98981)
- Update project development Ruby to 2.4.7 and update documentation (882d4d3)
- Update indieweb-endpoints (cfe6287) and rubocop (c2b7047)
For an instance of the Webmention::Client
class:
- The
send_mention
no longer accepts thefull_response
argument. When a Webmention endpoint is found, the method returns anHTTP::Response
object. Otherwise, the method returnsnil
. - The
send_mentions
method is renamed tosend_all_mentions
and now returns a Hash whose keys are URLs and values areHTTP::Response
objects (ornil
when no Webmention endpoint is found at the given URL). - The
mentioned_url
method returns an Array of URLs mentioned within given URL's first.h-entry
(if one exists). Otherwise, it returns a list of all URLs within the given URL's<body>
.