From 32bd719424a822723f9b854af8e99a9083bb404c Mon Sep 17 00:00:00 2001 From: Jason Garber Date: Sun, 23 Aug 2020 22:02:26 -0400 Subject: [PATCH] Update webmention and indieweb-endpoints gems and update spec --- lib/webmention/cli/commands/endpoint.rb | 2 +- spec/lib/webmention/cli/commands/endpoint_run_spec.rb | 2 +- webmention-cli.gemspec | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/webmention/cli/commands/endpoint.rb b/lib/webmention/cli/commands/endpoint.rb index 4ecc98f..9cb3647 100644 --- a/lib/webmention/cli/commands/endpoint.rb +++ b/lib/webmention/cli/commands/endpoint.rb @@ -7,7 +7,7 @@ def initialize(url) end def run - IndieWeb::Endpoints.get(@url).webmention + IndieWeb::Endpoints.get(@url)[:webmention] rescue IndieWeb::Endpoints::ArgumentError, IndieWeb::Endpoints::InvalidURIError => exception raise ArgumentError, exception diff --git a/spec/lib/webmention/cli/commands/endpoint_run_spec.rb b/spec/lib/webmention/cli/commands/endpoint_run_spec.rb index 0f1772e..a08a6e6 100644 --- a/spec/lib/webmention/cli/commands/endpoint_run_spec.rb +++ b/spec/lib/webmention/cli/commands/endpoint_run_spec.rb @@ -7,7 +7,7 @@ let(:url) { 'foo' } it 'raises an ArgumentError' do - expect { command.run }.to raise_error(Webmention::CLI::ArgumentError, 'url must be an absolute URL (e.g. https://example.com)') + expect { command.run }.to raise_error(Webmention::CLI::ArgumentError, 'url (foo) must be an absolute URL (e.g. https://example.com)') end end diff --git a/webmention-cli.gemspec b/webmention-cli.gemspec index 262c771..5c5a6ab 100644 --- a/webmention-cli.gemspec +++ b/webmention-cli.gemspec @@ -24,8 +24,8 @@ Gem::Specification.new do |spec| spec.metadata['bug_tracker_uri'] = "#{spec.homepage}/issues" spec.metadata['changelog_uri'] = "#{spec.homepage}/blob/v#{spec.version}/CHANGELOG.md" - spec.add_runtime_dependency 'indieweb-endpoints', '~> 3.0' + spec.add_runtime_dependency 'indieweb-endpoints', '~> 4.0' spec.add_runtime_dependency 'thor', '~> 1.0' - spec.add_runtime_dependency 'webmention', '~> 3.0' + spec.add_runtime_dependency 'webmention', '~> 4.0' spec.add_runtime_dependency 'webmention-verification', '~> 3.0' end