webmention 3.0.0 → 4.0.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 +4 -4
- data/.ruby-version +1 -1
- data/.travis.yml +0 -1
- data/CHANGELOG.md +6 -0
- data/CONTRIBUTING.md +2 -2
- data/Gemfile +3 -3
- data/README.md +2 -2
- data/lib/webmention/client.rb +1 -1
- data/lib/webmention/version.rb +1 -1
- data/webmention.gemspec +2 -2
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe7be9c5256690feeefb414862b49e7ede87e1aabd63c0f7cb54004fdc9a3412
|
4
|
+
data.tar.gz: '078f32d632920db98684c12f3e4fb48048b32801846174848b878c04678a588d'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9e717f3b4ba98a7cc8e022731fba654dece6c3d55584f0f23a84968e13de0c2df17f642e75852d8ef5d831348d9df954c0d9107b47e9280db73812a642ffaf5
|
7
|
+
data.tar.gz: 1af3ed848cfe7e78d7b493da12a3e2e2c9e8269b48d79cfb43c8c73483c45569c6689e6484c4c1d789fc14b6f40194b4a1a4bbe39c6a19eecdbe12e180613e88
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.5.8
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## v4.0.0 / 2020-08-23
|
4
|
+
|
5
|
+
- **Breaking change:** Update minimum supported Ruby version to 2.5 (b2bc62f)
|
6
|
+
- Update indieweb-endpoints to 4.0 (e61588f)
|
7
|
+
- Update project Ruby version to 2.5.8 (2a626a6)
|
8
|
+
|
3
9
|
## v3.0.0 / 2020-05-19
|
4
10
|
|
5
11
|
- Reject "internal" URLs when sending webmentions (#24) (ccc82c8)
|
data/CONTRIBUTING.md
CHANGED
@@ -8,9 +8,9 @@ There are a couple ways you can help improve webmention-client-ruby:
|
|
8
8
|
|
9
9
|
## Getting Started
|
10
10
|
|
11
|
-
webmention-client-ruby is developed using Ruby 2.
|
11
|
+
webmention-client-ruby is developed using Ruby 2.5.8 and is additionally tested against Ruby 2.6 and 2.7 using [Travis CI](https://travis-ci.org/indieweb/webmention-client-ruby).
|
12
12
|
|
13
|
-
Before making changes to webmention-client-ruby, you'll want to install Ruby 2.
|
13
|
+
Before making changes to webmention-client-ruby, you'll want to install Ruby 2.5.8. 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.5.8 using your method of choice, install the project's gems by running:
|
14
14
|
|
15
15
|
```sh
|
16
16
|
bundle install
|
data/Gemfile
CHANGED
@@ -8,8 +8,8 @@ gem 'minitest-reporters', '~> 1.4'
|
|
8
8
|
gem 'pry-byebug', '~> 3.9'
|
9
9
|
gem 'rake', '~> 13.0'
|
10
10
|
gem 'reek', '~> 6.0'
|
11
|
-
gem 'rubocop', '~> 0.
|
12
|
-
gem 'rubocop-performance', '~> 1.
|
13
|
-
gem 'simplecov', '~> 0.
|
11
|
+
gem 'rubocop', '~> 0.89.1'
|
12
|
+
gem 'rubocop-performance', '~> 1.7'
|
13
|
+
gem 'simplecov', '~> 0.19.0'
|
14
14
|
gem 'simplecov-console', '~> 0.7.2'
|
15
15
|
gem 'webmock', '~> 3.8'
|
data/README.md
CHANGED
@@ -16,9 +16,9 @@
|
|
16
16
|
|
17
17
|
## Getting Started
|
18
18
|
|
19
|
-
Before installing and using webmention-client-ruby, you'll want to have [Ruby](https://www.ruby-lang.org) 2.
|
19
|
+
Before installing and using webmention-client-ruby, you'll want to have [Ruby](https://www.ruby-lang.org) 2.5 (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
20
|
|
21
|
-
webmention-client-ruby is developed using Ruby 2.
|
21
|
+
webmention-client-ruby is developed using Ruby 2.5.8 and is additionally tested against Ruby 2.6 and 2.7 using [Travis CI](https://travis-ci.org/indieweb/webmention-client-ruby).
|
22
22
|
|
23
23
|
## Installation
|
24
24
|
|
data/lib/webmention/client.rb
CHANGED
@@ -36,7 +36,7 @@ module Webmention
|
|
36
36
|
# @return [HTTP::Response, nil]
|
37
37
|
# @raise [Webmention::ArgumentError, Webmention::ConnectionError, Webmention::InvalidURIError, Webmention::TimeoutError, Webmention::TooManyRedirectsError]
|
38
38
|
def send_mention(target)
|
39
|
-
endpoint = IndieWeb::Endpoints.get(target)
|
39
|
+
endpoint = IndieWeb::Endpoints.get(target)[:webmention]
|
40
40
|
|
41
41
|
return unless endpoint
|
42
42
|
|
data/lib/webmention/version.rb
CHANGED
data/webmention.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require_relative 'lib/webmention/version'
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
|
-
spec.required_ruby_version = Gem::Requirement.new('>= 2.
|
4
|
+
spec.required_ruby_version = Gem::Requirement.new('>= 2.5', '< 2.8')
|
5
5
|
|
6
6
|
spec.name = 'webmention'
|
7
7
|
spec.version = Webmention::VERSION
|
@@ -25,6 +25,6 @@ Gem::Specification.new do |spec|
|
|
25
25
|
spec.add_runtime_dependency 'absolutely', '~> 4.0'
|
26
26
|
spec.add_runtime_dependency 'addressable', '~> 2.7'
|
27
27
|
spec.add_runtime_dependency 'http', '~> 4.4'
|
28
|
-
spec.add_runtime_dependency 'indieweb-endpoints', '~>
|
28
|
+
spec.add_runtime_dependency 'indieweb-endpoints', '~> 4.0'
|
29
29
|
spec.add_runtime_dependency 'nokogiri', '~> 1.10'
|
30
30
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: webmention
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Parecki
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2020-
|
12
|
+
date: 2020-08-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: absolutely
|
@@ -59,14 +59,14 @@ dependencies:
|
|
59
59
|
requirements:
|
60
60
|
- - "~>"
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version: '
|
62
|
+
version: '4.0'
|
63
63
|
type: :runtime
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
67
|
- - "~>"
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: '
|
69
|
+
version: '4.0'
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
name: nokogiri
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
@@ -116,7 +116,7 @@ licenses:
|
|
116
116
|
- Apache-2.0
|
117
117
|
metadata:
|
118
118
|
bug_tracker_uri: https://github.com/indieweb/webmention-client-ruby/issues
|
119
|
-
changelog_uri: https://github.com/indieweb/webmention-client-ruby/blob/
|
119
|
+
changelog_uri: https://github.com/indieweb/webmention-client-ruby/blob/v4.0.0/CHANGELOG.md
|
120
120
|
post_install_message:
|
121
121
|
rdoc_options: []
|
122
122
|
require_paths:
|
@@ -125,7 +125,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
125
125
|
requirements:
|
126
126
|
- - ">="
|
127
127
|
- !ruby/object:Gem::Version
|
128
|
-
version: '2.
|
128
|
+
version: '2.5'
|
129
129
|
- - "<"
|
130
130
|
- !ruby/object:Gem::Version
|
131
131
|
version: '2.8'
|
@@ -135,7 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
135
135
|
- !ruby/object:Gem::Version
|
136
136
|
version: '0'
|
137
137
|
requirements: []
|
138
|
-
rubygems_version: 3.1.
|
138
|
+
rubygems_version: 3.1.2
|
139
139
|
signing_key:
|
140
140
|
specification_version: 4
|
141
141
|
summary: Webmention notification client
|