webmention-endpoint 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 4666da2892037b8191954b2454929a8094c24c3f
4
+ data.tar.gz: b800c17e27f8b9069a3b6204aadf3fe79d333a1c
5
+ SHA512:
6
+ metadata.gz: 10a81ebbad3379a0b8e7245bd9a8603c29b135ff8bf528ab2eba4105edbcc054ef160ecd5b0dc201d5e3c68c8838124d42e3f9d6a0dddf969a8c8385f0b6dd24
7
+ data.tar.gz: c2154f9d69135002509c847d16dbd02791d3d75c6236d2f9952ee72fda12882eebf41ef1be79a9a00fe44b7f33aa56540a37dbeb9e3d938c93c4778528cd1f6c
data/.editorconfig ADDED
@@ -0,0 +1,14 @@
1
+ # EditorConfig is awesome: http://EditorConfig.org
2
+ root = true
3
+
4
+ [*]
5
+ charset = utf-8
6
+ end_of_line = lf
7
+ insert_final_newline = true
8
+ indent_size = 2
9
+ indent_style = space
10
+ trim_trailing_whitespace = true
11
+
12
+ [*.md]
13
+ indent_size = 4
14
+ indent_style = tab
data/.gitignore ADDED
@@ -0,0 +1,34 @@
1
+ *.gem
2
+ *.rbc
3
+ /.config
4
+ /coverage/
5
+ /InstalledFiles
6
+ /pkg/
7
+ /spec/reports/
8
+ /spec/examples.txt
9
+ /test/tmp/
10
+ /test/version_tmp/
11
+ /tmp/
12
+
13
+ # Used by dotenv library to load environment variables.
14
+ # .env
15
+
16
+ # Documentation cache and generated files:
17
+ /.yardoc/
18
+ /_yardoc/
19
+ /doc/
20
+ /rdoc/
21
+
22
+ # Environment normalization:
23
+ /.bundle/
24
+ /vendor/bundle
25
+ /lib/bundler/man/
26
+
27
+ # for a library or gem, you might want to ignore these files since the code is
28
+ # intended to run in multiple environments; otherwise, check them in:
29
+ Gemfile.lock
30
+ # .ruby-version
31
+ # .ruby-gemset
32
+
33
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
34
+ .rvmrc
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --order random
2
+ --require spec_helper
data/.rubocop ADDED
@@ -0,0 +1,3 @@
1
+ --display-style-guide
2
+ --extra-details
3
+ --parallel
data/.rubocop.yml ADDED
@@ -0,0 +1,15 @@
1
+ require:
2
+ - rubocop-rspec
3
+
4
+ Metrics/BlockLength:
5
+ Exclude:
6
+ - spec/**/*.rb
7
+
8
+ Metrics/LineLength:
9
+ Enabled: false
10
+
11
+ Style/Documentation:
12
+ Enabled: false
13
+
14
+ Style/FrozenStringLiteralComment:
15
+ Enabled: false
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.4.4
data/.simplecov ADDED
@@ -0,0 +1,11 @@
1
+ require 'simplecov-console'
2
+
3
+ formatters = [SimpleCov::Formatter::HTMLFormatter]
4
+
5
+ if RSpec.configuration.files_to_run.length > 1
6
+ formatters << SimpleCov::Formatter::Console
7
+ end
8
+
9
+ SimpleCov.start do
10
+ formatter SimpleCov::Formatter::MultiFormatter.new(formatters)
11
+ end
data/.travis.yml ADDED
@@ -0,0 +1,19 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.4.4
4
+ - 2.5.1
5
+ cache: bundler
6
+ before_script:
7
+ - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
8
+ - chmod +x ./cc-test-reporter
9
+ - ./cc-test-reporter before-build
10
+ script:
11
+ - bundle exec rubocop
12
+ - bundle exec rake
13
+ after_script:
14
+ - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
15
+ notifications:
16
+ email: false
17
+ slack:
18
+ rooms:
19
+ secure: R4rqjFLqc4Au6GdzjpzqklpZXKqZlklNeNgLmpkCFeAluaNxh3hD6BV10pYGzQEJDBt6bFGYcA9SY2CxZb2Gh9WuhXgXpOFYwNmldt4fZGS73VKS81UAOyzEVB/xEbJbkSFPWzTv5iVXCcZ2RbpxVIotDr219hlqrjeko45nD3oZcWz1cGcyD4UpqQ2KpAGtoRK7uPpqDU6VQ6CN/cCRarpdKU2wftk2ervb1ytK9uQARypTH4x5o7Ky/EfujzZB/8IsFFh54KCRa1Q6KJhN/U0PlgTodonoqcaTNgFXvmzFzI/cwx9SUf28bhmq2V+Y/fNRwQLcuEaZXhVtd+A4ITbesYFKBbmiYNQjJzEQ3zAuBBVaqOomRDMVnFmsei7e2PYpiPQBFZSQD0GqYiVn0hGvU8JZexHjdP0Vxfx+IHb6iAcghi1p9NuZfY2knK5w5FFO/4uZp5l61WPopGzw9xNF8hNpHLdCPtqcs12FMzrvqIK1ScwQYKelZWI70PlSdyyn0hZ3gnaVH00wK5QhXJ9/KW/fntJIViTNQ9NYSysatxRlu8X5U7JU8wojNeWdk+cBI0tKiQ3VTcG74gKtvBcidlBuT72iRwoXCSCcAFFrfXCr67Z/q86/wug+zG9C8rhCjcdKls5LfCoefip872fkDcYcDV/So26TLWhgv7E=
data/CONTRIBUTING.md ADDED
@@ -0,0 +1,37 @@
1
+ # Contributing to webmention-endpoint-ruby
2
+
3
+ There are a couple ways you can help improve webmention-endpoint-ruby:
4
+
5
+ 1. Fix an existing [issue][issues] and submit a [pull request][pulls].
6
+ 1. Review open [pull requests][pulls].
7
+ 1. Report a new [issue][issues]. _Only do this after you've made sure the behavior or problem you're observing isn't already documented in an open issue._
8
+
9
+ ## Getting Started
10
+
11
+ webmention-endpoint-ruby is developed using Ruby 2.4.4 and is additionally tested against Ruby 2.5.1 using [Travis CI](https://travis-ci.com/jgarber623/webmention-endpoint-ruby).
12
+
13
+ Before making changes to webmention-endpoint-ruby, you'll want to install Ruby 2.4.4. It's recommended that you use a Ruby version managment tool like [rbenv](https://github.com/rbenv/rbenv), [chruby](https://github.com/postmodern/chruby), or [rvm](https://github.com/rvm/rvm). Once you've installed Ruby 2.4.4 using your method of choice, install the project's gems by running:
14
+
15
+ ```sh
16
+ bundle install
17
+ ```
18
+
19
+ ## Making Changes
20
+
21
+ 1. Fork and clone the project's repo.
22
+ 1. Install development dependencies as outlined above.
23
+ 1. Create a feature branch for the code changes you're looking to make: `git checkout -b my-new-feature`.
24
+ 1. _Write some code!_
25
+ 1. If your changes would benefit from testing, add the necessary tests and verify everything passes by running `bundle exec rspec`.
26
+ 1. Commit your changes: `git commit -am 'Add some new feature or fix some issue'`. _(See [this excellent article](https://chris.beams.io/posts/git-commit/) for tips on writing useful Git commit messages.)_
27
+ 1. Push the branch to your fork: `git push -u origin my-new-feature`.
28
+ 1. Create a new [pull request][pulls] and we'll review your changes.
29
+
30
+ ## Code Style
31
+
32
+ Code formatting conventions are defined in the `.editorconfig` file which uses the [EditorConfig](http://editorconfig.org) syntax. There are [plugins for a variety of editors](http://editorconfig.org/#download) that utilize the settings in the `.editorconfig` file. We recommended you install the EditorConfig plugin for your editor of choice.
33
+
34
+ Your bug fix or feature addition won't be rejected if it runs afoul of any (or all) of these guidelines, but following the guidelines will definitely make everyone's lives a little easier.
35
+
36
+ [issues]: https://github.com/indieweb/webmention-endpoint-ruby/issues
37
+ [pulls]: https://github.com/indieweb/webmention-endpoint-ruby/pulls
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in webmention-endpoint.gemspec
4
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2018 Jason Garber
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,107 @@
1
+ # webmention-endpoint-ruby
2
+
3
+ **A Ruby gem for discovering a URL's [Webmention](https://indieweb.org/Webmention) endpoint.**
4
+
5
+ [![Gem](https://img.shields.io/gem/v/webmention-endpoint.svg?style=for-the-badge)](https://rubygems.org/gems/webmention-endpoint)
6
+ [![Downloads](https://img.shields.io/gem/dt/webmention-endpoint.svg?style=for-the-badge)](https://rubygems.org/gems/webmention-endpoint)
7
+ [![Build](https://img.shields.io/travis/com/jgarber623/webmention-endpoint-ruby/master.svg?style=for-the-badge)](https://travis-ci.com/jgarber623/webmention-endpoint-ruby)
8
+ [![Maintainability](https://img.shields.io/codeclimate/maintainability/jgarber623/webmention-endpoint-ruby.svg?style=for-the-badge)](https://codeclimate.com/github/jgarber623/webmention-endpoint-ruby)
9
+ [![Coverage](https://img.shields.io/codeclimate/c/jgarber623/webmention-endpoint-ruby.svg?style=for-the-badge)](https://codeclimate.com/github/jgarber623/webmention-endpoint-ruby/code)
10
+
11
+ ## Key Features
12
+
13
+ - Compliant with [Section 3.1.2](https://www.w3.org/TR/webmention/#sender-discovers-receiver-webmention-endpoint) of [the W3C's Webmention specification](https://www.w3.org/TR/webmention/).
14
+ - Passes all Endpoint Discovery tests on [webmention.rocks](https://webmention.rocks).
15
+ - Supports Ruby 2.4 and newer.
16
+
17
+ ## Getting Started
18
+
19
+ Before installing and using webmention-endpoint-ruby, you'll want to have [Ruby](https://www.ruby-lang.org) 2.4 (or newer) installed. It's recommended that you use a Ruby version managment tool like [rbenv](https://github.com/rbenv/rbenv), [chruby](https://github.com/postmodern/chruby), or [rvm](https://github.com/rvm/rvm).
20
+
21
+ webmention-endpoint-ruby is developed using Ruby 2.4.4 and is additionally tested against Ruby 2.5.1 using [Travis CI](https://travis-ci.org/indieweb/webmention-endpoint-ruby).
22
+
23
+ ## Installation
24
+
25
+ If you're using [Bundler](https://bundler.io), add webmention-endpoint-ruby to your project's `Gemfile`:
26
+
27
+ ```ruby
28
+ source 'https://rubygems.org'
29
+
30
+ gem 'webmention-endpoint'
31
+ ```
32
+
33
+ …and hop over to your command prompt and run…
34
+
35
+ ```sh
36
+ $ bundle install
37
+ ```
38
+
39
+ ## Usage
40
+
41
+ ### Basic Usage
42
+
43
+ With webmention-endpoint-ruby added to your project's `Gemfile` and installed, you may discover a URL's Webmention endpoint by doing:
44
+
45
+ ```ruby
46
+ require 'webmention/endpoint'
47
+
48
+ endpoint = Webmention::Endpoint.discover('https://webmention.rocks/test/1')
49
+
50
+ puts endpoint # returns String: 'https://webmention.rocks/test/1/webmention'
51
+ ```
52
+
53
+ This example will search `https://webmention.rocks/test/1` for a valid Webmention endpoint in accordance with the rules described in [the W3C's Webmention specification](https://www.w3.org/TR/webmention/#sender-discovers-receiver-webmention-endpoint). In this case, the program returns a string: `https://webmention.rocks/test/1/webmention`.
54
+
55
+ If no endpoint is discovered at the provided URL, the program will return `nil`:
56
+
57
+ ```ruby
58
+ require 'webmention/endpoint'
59
+
60
+ endpoint = Webmention::Endpoint.discover('https://example.com')
61
+
62
+ puts endpoint.nil? # returns Boolean: true
63
+ ```
64
+
65
+ ### Advanced Usage
66
+
67
+ Should the need arise, you may work directly with the `Webmention::Endpoint::Discover` class:
68
+
69
+ ```ruby
70
+ require 'webmention/endpoint'
71
+
72
+ discoverer = Webmention::Endpoint::Discover.new('https://webmention.rocks/test/1')
73
+
74
+ puts discoverer.url # returns String: 'https://webmention.rocks/test/1'
75
+ puts discoverer.endpoint # returns String: 'https://webmention.rocks/test/1/webmention'
76
+
77
+ puts discoverer.uri # returns Addressable::URI
78
+ puts discoverer.response # returns HTTP::Response
79
+ ```
80
+
81
+ ### Exception Handling
82
+
83
+ There are several exceptions that may be raised by webmention-endpoint-ruby's underlying dependencies:
84
+
85
+ - `Addressable::URI::InvalidURIError`
86
+ - `HTTP::ConnectionError`
87
+ - `HTTP::TimeoutError`
88
+ - `HTTP::Redirector::TooManyRedirectsError`
89
+
90
+ You'll want to make sure your code gracefully handles these exceptions. For more on each of these exceptions, see:
91
+
92
+ - [sporkmonger/addressable](https://github.com/sporkmonger/addressable) – Source code for the Addressable Ruby gem
93
+ - [httprb/http](https://github.com/httprb/http) – Source code for the HTTP Ruby gem
94
+
95
+ ## Contributing
96
+
97
+ Interested in helping improve webmention-endpoint-ruby? Awesome! Your help is greatly appreciated. See [CONTRIBUTING.md](https://github.com/jgarber623/blob/master/CONTRIBUTING.md) for details.
98
+
99
+ ## Acknowledgments
100
+
101
+ webmention-endpoint-ruby wouldn't exist without Webmention and the hard work put in by everyone involved in the [IndieWeb](https://indieweb.org) movement. Additionally, the comprehensive Endpoint Discovery test suite at [webmention.rocks](https://webmention.rocks) was invaluable in the development of this Ruby gem.
102
+
103
+ webmention-endpoint-ruby is written and maintained by [Jason Garber](https://sixtwothree.org).
104
+
105
+ ## License
106
+
107
+ webmention-endpoint-ruby is freely available under the [MIT License](https://opensource.org/licenses/MIT). Use it, learn from it, fork it, improve it, change it, tailor it to your needs.
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require 'bundler/gem_tasks'
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new
5
+
6
+ task default: :spec
@@ -0,0 +1,14 @@
1
+ require 'addressable/uri'
2
+ require 'http'
3
+ require 'nokogiri'
4
+
5
+ require 'webmention/endpoint/version'
6
+ require 'webmention/endpoint/discover'
7
+
8
+ module Webmention
9
+ module Endpoint
10
+ def self.discover(url)
11
+ Discover.new(url).endpoint
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,84 @@
1
+ module Webmention
2
+ module Endpoint
3
+ class Discover
4
+ HTTP_HEADERS_OPTS = {
5
+ accept: '*/*',
6
+ user_agent: 'Webmention Endpoint Discovery (https://rubygems.org/gems/webmention-endpoint)'
7
+ }.freeze
8
+
9
+ # Liberal pattern matching a string of text between angle brackets
10
+ # https://tools.ietf.org/html/rfc5988#section-5.1
11
+ REGEXP_TARGET_URI_PATTERN = /^<(.*)>;/
12
+
13
+ # Ultra-orthodox pattern matching allowed values in Link header `rel` parameter
14
+ # https://tools.ietf.org/html/rfc8288#section-3.3
15
+ REGEXP_REG_REL_TYPE_PATTERN = '[a-z\d][a-z\d\-\.]*'.freeze
16
+
17
+ # Ultra-orthodox pattern matching Link header `rel` parameter including a `webmention` value
18
+ # https://www.w3.org/TR/webmention/#sender-discovers-receiver-webmention-endpoint-p-1
19
+ REGEXP_WEBMENTION_REL_PATTERN = /(?:;|\s)rel="?(?:#{REGEXP_REG_REL_TYPE_PATTERN}+\s)?webmention(?:\s#{REGEXP_REG_REL_TYPE_PATTERN})?"?/
20
+
21
+ attr_reader :uri, :url
22
+
23
+ def initialize(url)
24
+ raise ArgumentError, "url must be a String (given #{url.class.name})" unless url.is_a?(String)
25
+
26
+ @url = url
27
+ @uri = Addressable::URI.parse(url)
28
+ end
29
+
30
+ def endpoint
31
+ @endpoint ||= absolutize(base: url, relative: (endpoint_from_headers || endpoint_from_body)) || nil
32
+ end
33
+
34
+ def response
35
+ @response ||= HTTP.follow.headers(HTTP_HEADERS_OPTS).timeout(
36
+ connect: 10,
37
+ read: 10
38
+ ).get(uri)
39
+ end
40
+
41
+ private
42
+
43
+ def absolutize(base:, relative:)
44
+ return unless relative
45
+
46
+ base_uri = Addressable::URI.parse(base)
47
+ relative_uri = Addressable::URI.parse(relative)
48
+
49
+ return relative if relative_uri.absolute?
50
+
51
+ (base_uri + relative_uri).to_s
52
+ end
53
+
54
+ def endpoint_from_body
55
+ return unless response.mime_type == 'text/html'
56
+
57
+ doc = Nokogiri::HTML(response.body.to_s)
58
+
59
+ # Search response body for first `a` or `link` element with valid `rel` and `href` attributes
60
+ link_element = doc.css('[rel~="webmention"][href]').select { |element| %w[a link].include?(element.name) }.shift
61
+
62
+ return link_element['href'] if link_element
63
+ end
64
+
65
+ def endpoint_from_headers
66
+ link_headers = response.headers.get('link')
67
+
68
+ return unless link_headers
69
+
70
+ # Split Link headers with multiple values, flatten the resulting array, and strip whitespace
71
+ # https://webmention.rocks/test/19
72
+ link_headers = link_headers.map { |header| header.split(',') }.flatten.map(&:strip)
73
+
74
+ webmention_header = link_headers.find { |header| header.match?(REGEXP_WEBMENTION_REL_PATTERN) }
75
+
76
+ return unless webmention_header
77
+
78
+ endpoint_match_data = webmention_header.match(REGEXP_TARGET_URI_PATTERN)
79
+
80
+ return endpoint_match_data[1] if endpoint_match_data
81
+ end
82
+ end
83
+ end
84
+ end
@@ -0,0 +1,5 @@
1
+ module Webmention
2
+ module Endpoint
3
+ VERSION = '0.1.0'.freeze
4
+ end
5
+ end
@@ -0,0 +1,34 @@
1
+ lib = File.expand_path('lib', __dir__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+
4
+ require 'webmention/endpoint/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.required_ruby_version = ['>= 2.4', '< 2.6']
8
+
9
+ spec.name = 'webmention-endpoint'
10
+ spec.version = Webmention::Endpoint::VERSION
11
+ spec.authors = ['Jason Garber']
12
+ spec.email = ['jason@sixtwothree.org']
13
+
14
+ spec.summary = 'Discover a URL’s Webmention endpoint.'
15
+ spec.description = spec.summary
16
+ spec.homepage = 'https://github.com/jgarber623/webmention-endpoint-ruby'
17
+ spec.license = 'MIT'
18
+
19
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(bin|spec)/}) }
20
+
21
+ spec.require_paths = ['lib']
22
+
23
+ spec.add_development_dependency 'bundler', '~> 1.16', '>= 1.16.2'
24
+ spec.add_development_dependency 'rake', '~> 12.3', '>= 12.3.1'
25
+ spec.add_development_dependency 'rspec', '~> 3.7'
26
+ spec.add_development_dependency 'rubocop', '~> 0.57.2'
27
+ spec.add_development_dependency 'rubocop-rspec', '~> 1.27'
28
+ spec.add_development_dependency 'simplecov', '~> 0.16.1'
29
+ spec.add_development_dependency 'simplecov-console', '~> 0.4.2'
30
+
31
+ spec.add_runtime_dependency 'addressable', '~> 2.5', '>= 2.5.2'
32
+ spec.add_runtime_dependency 'http', '~> 3.3'
33
+ spec.add_runtime_dependency 'nokogiri', '~> 1.8', '>= 1.8.3'
34
+ end
metadata ADDED
@@ -0,0 +1,228 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: webmention-endpoint
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Jason Garber
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-06-24 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.16'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 1.16.2
23
+ type: :development
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '1.16'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 1.16.2
33
+ - !ruby/object:Gem::Dependency
34
+ name: rake
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '12.3'
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: 12.3.1
43
+ type: :development
44
+ prerelease: false
45
+ version_requirements: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - "~>"
48
+ - !ruby/object:Gem::Version
49
+ version: '12.3'
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: 12.3.1
53
+ - !ruby/object:Gem::Dependency
54
+ name: rspec
55
+ requirement: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - "~>"
58
+ - !ruby/object:Gem::Version
59
+ version: '3.7'
60
+ type: :development
61
+ prerelease: false
62
+ version_requirements: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - "~>"
65
+ - !ruby/object:Gem::Version
66
+ version: '3.7'
67
+ - !ruby/object:Gem::Dependency
68
+ name: rubocop
69
+ requirement: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - "~>"
72
+ - !ruby/object:Gem::Version
73
+ version: 0.57.2
74
+ type: :development
75
+ prerelease: false
76
+ version_requirements: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - "~>"
79
+ - !ruby/object:Gem::Version
80
+ version: 0.57.2
81
+ - !ruby/object:Gem::Dependency
82
+ name: rubocop-rspec
83
+ requirement: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - "~>"
86
+ - !ruby/object:Gem::Version
87
+ version: '1.27'
88
+ type: :development
89
+ prerelease: false
90
+ version_requirements: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - "~>"
93
+ - !ruby/object:Gem::Version
94
+ version: '1.27'
95
+ - !ruby/object:Gem::Dependency
96
+ name: simplecov
97
+ requirement: !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - "~>"
100
+ - !ruby/object:Gem::Version
101
+ version: 0.16.1
102
+ type: :development
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ requirements:
106
+ - - "~>"
107
+ - !ruby/object:Gem::Version
108
+ version: 0.16.1
109
+ - !ruby/object:Gem::Dependency
110
+ name: simplecov-console
111
+ requirement: !ruby/object:Gem::Requirement
112
+ requirements:
113
+ - - "~>"
114
+ - !ruby/object:Gem::Version
115
+ version: 0.4.2
116
+ type: :development
117
+ prerelease: false
118
+ version_requirements: !ruby/object:Gem::Requirement
119
+ requirements:
120
+ - - "~>"
121
+ - !ruby/object:Gem::Version
122
+ version: 0.4.2
123
+ - !ruby/object:Gem::Dependency
124
+ name: addressable
125
+ requirement: !ruby/object:Gem::Requirement
126
+ requirements:
127
+ - - "~>"
128
+ - !ruby/object:Gem::Version
129
+ version: '2.5'
130
+ - - ">="
131
+ - !ruby/object:Gem::Version
132
+ version: 2.5.2
133
+ type: :runtime
134
+ prerelease: false
135
+ version_requirements: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - "~>"
138
+ - !ruby/object:Gem::Version
139
+ version: '2.5'
140
+ - - ">="
141
+ - !ruby/object:Gem::Version
142
+ version: 2.5.2
143
+ - !ruby/object:Gem::Dependency
144
+ name: http
145
+ requirement: !ruby/object:Gem::Requirement
146
+ requirements:
147
+ - - "~>"
148
+ - !ruby/object:Gem::Version
149
+ version: '3.3'
150
+ type: :runtime
151
+ prerelease: false
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ requirements:
154
+ - - "~>"
155
+ - !ruby/object:Gem::Version
156
+ version: '3.3'
157
+ - !ruby/object:Gem::Dependency
158
+ name: nokogiri
159
+ requirement: !ruby/object:Gem::Requirement
160
+ requirements:
161
+ - - "~>"
162
+ - !ruby/object:Gem::Version
163
+ version: '1.8'
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: 1.8.3
167
+ type: :runtime
168
+ prerelease: false
169
+ version_requirements: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - "~>"
172
+ - !ruby/object:Gem::Version
173
+ version: '1.8'
174
+ - - ">="
175
+ - !ruby/object:Gem::Version
176
+ version: 1.8.3
177
+ description: Discover a URL’s Webmention endpoint.
178
+ email:
179
+ - jason@sixtwothree.org
180
+ executables: []
181
+ extensions: []
182
+ extra_rdoc_files: []
183
+ files:
184
+ - ".editorconfig"
185
+ - ".gitignore"
186
+ - ".rspec"
187
+ - ".rubocop"
188
+ - ".rubocop.yml"
189
+ - ".ruby-version"
190
+ - ".simplecov"
191
+ - ".travis.yml"
192
+ - CONTRIBUTING.md
193
+ - Gemfile
194
+ - LICENSE
195
+ - README.md
196
+ - Rakefile
197
+ - lib/webmention/endpoint.rb
198
+ - lib/webmention/endpoint/discover.rb
199
+ - lib/webmention/endpoint/version.rb
200
+ - webmention-endpoint.gemspec
201
+ homepage: https://github.com/jgarber623/webmention-endpoint-ruby
202
+ licenses:
203
+ - MIT
204
+ metadata: {}
205
+ post_install_message:
206
+ rdoc_options: []
207
+ require_paths:
208
+ - lib
209
+ required_ruby_version: !ruby/object:Gem::Requirement
210
+ requirements:
211
+ - - ">="
212
+ - !ruby/object:Gem::Version
213
+ version: '2.4'
214
+ - - "<"
215
+ - !ruby/object:Gem::Version
216
+ version: '2.6'
217
+ required_rubygems_version: !ruby/object:Gem::Requirement
218
+ requirements:
219
+ - - ">="
220
+ - !ruby/object:Gem::Version
221
+ version: '0'
222
+ requirements: []
223
+ rubyforge_project:
224
+ rubygems_version: 2.6.14.1
225
+ signing_key:
226
+ specification_version: 4
227
+ summary: Discover a URL’s Webmention endpoint.
228
+ test_files: []