webmention-cli 0.1.0 → 0.1.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
- SHA1:
3
- metadata.gz: 579a8cdb3a27bca2d6ac537727b201553bf3b988
4
- data.tar.gz: 0750e3192cb6ea780fe561019e4e9d0aabf1bb95
2
+ SHA256:
3
+ metadata.gz: ef7a8cf20ce14f00d56edad9b81e6f26c99999a97d8e7ec1fe006d3394549721
4
+ data.tar.gz: 037ff27c5b1679fb19e0eedece8c7f2796a4e95795a46e021daf34f29d8b92a7
5
5
  SHA512:
6
- metadata.gz: f532a2365a4f0de51cd5edcf4147f1ca30d87a26e6a1b1a0a55a28ae47826a2c02059ecff44429a4375e461fa97c30f38a4b8d315a389de5bc184975c8b7a6e8
7
- data.tar.gz: c6f645716ab07555841f777b2086efe0fd9138e119dd2dbf6fc6f5de5e4a5c7a7a221f0e8f14b9b76df21214c57c9feef016e30c8c844dc968bcf0090f20bf20
6
+ metadata.gz: 2b6c83cb9805ceb0603f785382107f8b9d6921fb2956903ef236016fbc391898d3657ea3dd6e2facdae45d72ba3adda9a002b89919321bed79756f6ad86a664a
7
+ data.tar.gz: 67d71a2ee620e59494351c6fbd5569fba362a8a2374122c92c27550720dac317952bf12356aec67bff8c8dbca8c3322b1910d088779c29be6890d568bfd902f0
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.4.4
1
+ 2.4.5
data/.travis.yml CHANGED
@@ -1,11 +1,12 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.4.4
4
- - 2.5.1
5
- cache: bundler
3
+ - 2.4.5
4
+ - 2.5.3
5
+ - 2.6.0
6
+ cache:
7
+ - bundler
6
8
  before_install:
7
- - gem update --system
8
- - gem install bundler
9
+ - gem install bundler -v '~> 1.17'
9
10
  before_script:
10
11
  - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
11
12
  - chmod +x ./cc-test-reporter
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.1 / 2019-01-03
4
+
5
+ - Expand supported Ruby versions to include 2.6 ([8930501](https://github.com/jgarber623/webmention-cli/commit/8930501)).
6
+
3
7
  ## 0.1.0 / 2018-08-14
4
8
 
5
9
  - Initial release!
data/CONTRIBUTING.md CHANGED
@@ -8,9 +8,9 @@ There are a couple ways you can help improve webmention-cli:
8
8
 
9
9
  ## Getting Started
10
10
 
11
- webmention-cli is developed using Ruby 2.4.4 and is additionally tested against Ruby 2.5.1 using [Travis CI](https://travis-ci.com/jgarber623/webmention-cli).
11
+ webmention-cli is developed using Ruby 2.4.5 and is additionally tested against Ruby 2.5.3 and 2.6.0 using [Travis CI](https://travis-ci.com/jgarber623/webmention-cli).
12
12
 
13
- Before making changes to webmention-cli, you'll want to install Ruby 2.4.4. 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.4.4 using your method of choice, install the project's gems by running:
13
+ Before making changes to webmention-cli, you'll want to install Ruby 2.4.5. 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.4.5 using your method of choice, install the project's gems by running:
14
14
 
15
15
  ```sh
16
16
  bundle install
data/README.md CHANGED
@@ -13,7 +13,7 @@
13
13
 
14
14
  Before installing and using webmention-cli, you'll want to have [Ruby](https://www.ruby-lang.org) 2.4 (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).
15
15
 
16
- webmention-cli is developed using Ruby 2.4.4 and is additionally tested against Ruby 2.5.1 using [Travis CI](https://travis-ci.com/jgarber623/webmention-cli).
16
+ webmention-cli is developed using Ruby 2.4.5 and is additionally tested against Ruby 2.5.3 and 2.6.0 using [Travis CI](https://travis-ci.com/jgarber623/webmention-cli).
17
17
 
18
18
  ## Installation
19
19
 
@@ -43,6 +43,13 @@ $ webmention verify https://kartikprabhu.com/notes/re-launching-franciscms https
43
43
  SUCCESS: https://kartikprabhu.com/notes/re-launching-franciscms links to https://sixtwothree.org/posts/launching-franciscms-onto-the-indieweb
44
44
  ```
45
45
 
46
+ By default, the `verify` command will strictly match URLs. For a bit more flexibility, use the `--no-strict` flag:
47
+
48
+ ```sh
49
+ $ webmention verify https://aaronparecki.com/2014/12/17/5/webmention-indieweb https://sixtwothree.org/posts/open-sourcing-my-webmention-service --no-strict
50
+ SUCCESS: https://aaronparecki.com/2014/12/17/5/webmention-indieweb links to https://sixtwothree.org/posts/open-sourcing-my-webmention-service
51
+ ```
52
+
46
53
  ## Contributing
47
54
 
48
55
  Interested in helping improve webmention-cli? Awesome! Your help is greatly appreciated. See [CONTRIBUTING.md](https://github.com/jgarber623/webmention-cli/blob/master/CONTRIBUTING.md) for details.
@@ -1,3 +1,3 @@
1
1
  module WebmentionCLI
2
- VERSION = '0.1.0'.freeze
2
+ VERSION = '0.1.1'.freeze
3
3
  end
@@ -22,8 +22,9 @@ module WebmentionCLI
22
22
  # end
23
23
 
24
24
  desc 'verify <source> <target>', 'Verify <source> URL links to <target> URL'
25
+ option :strict, type: :boolean, desc: 'Enable or disable strict URL matching', default: true
25
26
  def verify(source, target)
26
- result = ::Webmention::Verification.verified?(source, target)
27
+ result = ::Webmention::Verification::Client.new(source, target, strict: options[:strict]).verified?
27
28
 
28
29
  if result
29
30
  puts "SUCCESS: #{source} links to #{target}"
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require 'webmention_cli/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
- spec.required_ruby_version = ['>= 2.4', '< 2.6']
7
+ spec.required_ruby_version = ['>= 2.4', '< 2.7']
8
8
 
9
9
  spec.name = 'webmention-cli'
10
10
  spec.version = WebmentionCLI::VERSION
@@ -22,15 +22,15 @@ Gem::Specification.new do |spec|
22
22
  spec.executables = ['webmention']
23
23
  spec.require_paths = ['lib']
24
24
 
25
- spec.add_development_dependency 'bundler', '~> 1.16', '>= 1.16.3'
26
- spec.add_development_dependency 'rake', '~> 12.3', '>= 12.3.1'
25
+ spec.add_development_dependency 'bundler', '~> 1.17'
26
+ spec.add_development_dependency 'rake', '~> 12.3'
27
27
  spec.add_development_dependency 'rspec', '~> 3.8'
28
- spec.add_development_dependency 'rubocop', '~> 0.58.2'
29
- spec.add_development_dependency 'rubocop-rspec', '~> 1.27'
28
+ spec.add_development_dependency 'rubocop', '~> 0.62.0'
29
+ spec.add_development_dependency 'rubocop-rspec', '~> 1.31'
30
30
  spec.add_development_dependency 'simplecov', '~> 0.16.1'
31
31
  spec.add_development_dependency 'simplecov-console', '~> 0.4.2'
32
32
 
33
- spec.add_runtime_dependency 'thor', '~> 0.20.0'
34
- spec.add_runtime_dependency 'webmention-endpoint', '~> 1.0', '>= 1.0.1'
35
- spec.add_runtime_dependency 'webmention-verification', '~> 0.1.0'
33
+ spec.add_runtime_dependency 'thor', '~> 0.20.3'
34
+ spec.add_runtime_dependency 'webmention-endpoint', '~> 2.0'
35
+ spec.add_runtime_dependency 'webmention-verification', '~> 0.1.2'
36
36
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webmention-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Garber
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-08-15 00:00:00.000000000 Z
11
+ date: 2019-01-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,20 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.16'
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: 1.16.3
19
+ version: '1.17'
23
20
  type: :development
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
24
  - - "~>"
28
25
  - !ruby/object:Gem::Version
29
- version: '1.16'
30
- - - ">="
31
- - !ruby/object:Gem::Version
32
- version: 1.16.3
26
+ version: '1.17'
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: rake
35
29
  requirement: !ruby/object:Gem::Requirement
@@ -37,9 +31,6 @@ dependencies:
37
31
  - - "~>"
38
32
  - !ruby/object:Gem::Version
39
33
  version: '12.3'
40
- - - ">="
41
- - !ruby/object:Gem::Version
42
- version: 12.3.1
43
34
  type: :development
44
35
  prerelease: false
45
36
  version_requirements: !ruby/object:Gem::Requirement
@@ -47,9 +38,6 @@ dependencies:
47
38
  - - "~>"
48
39
  - !ruby/object:Gem::Version
49
40
  version: '12.3'
50
- - - ">="
51
- - !ruby/object:Gem::Version
52
- version: 12.3.1
53
41
  - !ruby/object:Gem::Dependency
54
42
  name: rspec
55
43
  requirement: !ruby/object:Gem::Requirement
@@ -70,28 +58,28 @@ dependencies:
70
58
  requirements:
71
59
  - - "~>"
72
60
  - !ruby/object:Gem::Version
73
- version: 0.58.2
61
+ version: 0.62.0
74
62
  type: :development
75
63
  prerelease: false
76
64
  version_requirements: !ruby/object:Gem::Requirement
77
65
  requirements:
78
66
  - - "~>"
79
67
  - !ruby/object:Gem::Version
80
- version: 0.58.2
68
+ version: 0.62.0
81
69
  - !ruby/object:Gem::Dependency
82
70
  name: rubocop-rspec
83
71
  requirement: !ruby/object:Gem::Requirement
84
72
  requirements:
85
73
  - - "~>"
86
74
  - !ruby/object:Gem::Version
87
- version: '1.27'
75
+ version: '1.31'
88
76
  type: :development
89
77
  prerelease: false
90
78
  version_requirements: !ruby/object:Gem::Requirement
91
79
  requirements:
92
80
  - - "~>"
93
81
  - !ruby/object:Gem::Version
94
- version: '1.27'
82
+ version: '1.31'
95
83
  - !ruby/object:Gem::Dependency
96
84
  name: simplecov
97
85
  requirement: !ruby/object:Gem::Requirement
@@ -126,48 +114,42 @@ dependencies:
126
114
  requirements:
127
115
  - - "~>"
128
116
  - !ruby/object:Gem::Version
129
- version: 0.20.0
117
+ version: 0.20.3
130
118
  type: :runtime
131
119
  prerelease: false
132
120
  version_requirements: !ruby/object:Gem::Requirement
133
121
  requirements:
134
122
  - - "~>"
135
123
  - !ruby/object:Gem::Version
136
- version: 0.20.0
124
+ version: 0.20.3
137
125
  - !ruby/object:Gem::Dependency
138
126
  name: webmention-endpoint
139
127
  requirement: !ruby/object:Gem::Requirement
140
128
  requirements:
141
129
  - - "~>"
142
130
  - !ruby/object:Gem::Version
143
- version: '1.0'
144
- - - ">="
145
- - !ruby/object:Gem::Version
146
- version: 1.0.1
131
+ version: '2.0'
147
132
  type: :runtime
148
133
  prerelease: false
149
134
  version_requirements: !ruby/object:Gem::Requirement
150
135
  requirements:
151
136
  - - "~>"
152
137
  - !ruby/object:Gem::Version
153
- version: '1.0'
154
- - - ">="
155
- - !ruby/object:Gem::Version
156
- version: 1.0.1
138
+ version: '2.0'
157
139
  - !ruby/object:Gem::Dependency
158
140
  name: webmention-verification
159
141
  requirement: !ruby/object:Gem::Requirement
160
142
  requirements:
161
143
  - - "~>"
162
144
  - !ruby/object:Gem::Version
163
- version: 0.1.0
145
+ version: 0.1.2
164
146
  type: :runtime
165
147
  prerelease: false
166
148
  version_requirements: !ruby/object:Gem::Requirement
167
149
  requirements:
168
150
  - - "~>"
169
151
  - !ruby/object:Gem::Version
170
- version: 0.1.0
152
+ version: 0.1.2
171
153
  description: A command-line interface for Webmention.
172
154
  email:
173
155
  - jason@sixtwothree.org
@@ -210,15 +192,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
210
192
  version: '2.4'
211
193
  - - "<"
212
194
  - !ruby/object:Gem::Version
213
- version: '2.6'
195
+ version: '2.7'
214
196
  required_rubygems_version: !ruby/object:Gem::Requirement
215
197
  requirements:
216
198
  - - ">="
217
199
  - !ruby/object:Gem::Version
218
200
  version: '0'
219
201
  requirements: []
220
- rubyforge_project:
221
- rubygems_version: 2.6.14.1
202
+ rubygems_version: 3.0.2
222
203
  signing_key:
223
204
  specification_version: 4
224
205
  summary: A command-line interface for Webmention.