webmention-endpoint 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/webmention/endpoint/client.rb +2 -0
- data/lib/webmention/endpoint/version.rb +1 -1
- data/webmention-endpoint.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a0d9fe079ebac42183737b07e6acfb57da0de38
|
4
|
+
data.tar.gz: cec22f15a30267aa4a8307e7a7cc991f26583fef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80ddae4dc30607dbe1e7e8395888292cedb119fa3cb69280828ece69026e7fe6845c96eb0faf4d7539cb0b8343205a4d3ad8c88ed5c878ca1111711efaaef694
|
7
|
+
data.tar.gz: 6d18ff662c5d850d52fc2e03799d2ae52ccdffef8ef1eb031bd99390e5a55c233b322c48ac33bc674ae8ece51651003859f15dd984e4ebb2f94d4226b722cc71
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 1.0.1 / 2018-07-29
|
4
|
+
|
5
|
+
- Raise an `ArgumentError` when `Client` instantiated with non-absolute URI ([64f161e](https://github.com/jgarber623/webmention-endpoint-ruby/commit/64f161e)).
|
6
|
+
|
3
7
|
## 1.0.0 / 2018-07-17
|
4
8
|
|
5
9
|
- Adds new `Webmention::Endpoint::Client` and `Webmention::Endpoint::Response` classes and refactors `Webmention::Endpoint::Discover` API ([a05d041](https://github.com/jgarber623/webmention-endpoint-ruby/commit/a05d041)).
|
@@ -5,6 +5,8 @@ module Webmention
|
|
5
5
|
raise ArgumentError, "url must be a String (given #{url.class.name})" unless url.is_a?(String)
|
6
6
|
|
7
7
|
@uri = Addressable::URI.parse(url)
|
8
|
+
|
9
|
+
raise ArgumentError, 'url must be an absolute URI (e.g. https://example.com)' unless @uri.absolute?
|
8
10
|
rescue Addressable::URI::InvalidURIError => error
|
9
11
|
raise InvalidURIError, error
|
10
12
|
end
|
data/webmention-endpoint.gemspec
CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.add_development_dependency 'bundler', '~> 1.16', '>= 1.16.2'
|
24
24
|
spec.add_development_dependency 'rake', '~> 12.3', '>= 12.3.1'
|
25
25
|
spec.add_development_dependency 'rspec', '~> 3.7'
|
26
|
-
spec.add_development_dependency 'rubocop', '~> 0.58.
|
26
|
+
spec.add_development_dependency 'rubocop', '~> 0.58.1'
|
27
27
|
spec.add_development_dependency 'rubocop-rspec', '~> 1.27'
|
28
28
|
spec.add_development_dependency 'simplecov', '~> 0.16.1'
|
29
29
|
spec.add_development_dependency 'simplecov-console', '~> 0.4.2'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: webmention-endpoint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Garber
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-07-
|
11
|
+
date: 2018-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -70,14 +70,14 @@ dependencies:
|
|
70
70
|
requirements:
|
71
71
|
- - "~>"
|
72
72
|
- !ruby/object:Gem::Version
|
73
|
-
version: 0.58.
|
73
|
+
version: 0.58.1
|
74
74
|
type: :development
|
75
75
|
prerelease: false
|
76
76
|
version_requirements: !ruby/object:Gem::Requirement
|
77
77
|
requirements:
|
78
78
|
- - "~>"
|
79
79
|
- !ruby/object:Gem::Version
|
80
|
-
version: 0.58.
|
80
|
+
version: 0.58.1
|
81
81
|
- !ruby/object:Gem::Dependency
|
82
82
|
name: rubocop-rspec
|
83
83
|
requirement: !ruby/object:Gem::Requirement
|