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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0d245a49f0a3fe53fdee075040a00815e6165d6c
4
- data.tar.gz: '09cde84455b4cc0652c4f02f7f76ba2c1e50092f'
3
+ metadata.gz: 2a0d9fe079ebac42183737b07e6acfb57da0de38
4
+ data.tar.gz: cec22f15a30267aa4a8307e7a7cc991f26583fef
5
5
  SHA512:
6
- metadata.gz: 91b061d760180be8fda3aa7ce5a879309d63ce1c71131ac7f4affc88b2b9956d6f8f9d3f73e857d97f5182a30f84ce179fa878eb84a3187c07e94f911b6b7610
7
- data.tar.gz: ed7b10de7d833d3178e6d9e4b08e65b5b40dd3f7195e87e0a046b627ae1d94b1c5a96924906938e9169a24a12e7f50eb87a9bd2dfe1358f6944862ee7a7431df
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
@@ -1,5 +1,5 @@
1
1
  module Webmention
2
2
  module Endpoint
3
- VERSION = '1.0.0'.freeze
3
+ VERSION = '1.0.1'.freeze
4
4
  end
5
5
  end
@@ -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.0'
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.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-17 00:00:00.000000000 Z
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.0
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.0
80
+ version: 0.58.1
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: rubocop-rspec
83
83
  requirement: !ruby/object:Gem::Requirement