Skip to content

Commit

Permalink
Update webmention and indieweb-endpoints gems and update spec
Browse files Browse the repository at this point in the history
  • Loading branch information
jgarber623 committed Aug 24, 2020
1 parent 084a118 commit 32bd719
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/webmention/cli/commands/endpoint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion spec/lib/webmention/cli/commands/endpoint_run_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions webmention-cli.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 32bd719

Please sign in to comment.