webmention-verification 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
2
  SHA1:
3
- metadata.gz: 11b5a1f75c0730ed30ff111a03426ab50f695c51
4
- data.tar.gz: 11488a2681721ec61fdae2c8bbd6b39a3f75e0a1
3
+ metadata.gz: 4946031eb041bd33939fc6a1afc77808d37f1f02
4
+ data.tar.gz: 6e2a78020031a44a7b9bddd1ca0401ff77745240
5
5
  SHA512:
6
- metadata.gz: b5bf6d821e0c880c554d7e8b3bbcd7f58b662aba139174f507bfdd1d92ac39371001bcea1b5cd133c9931e69be795d2605b1eed9367eb7073f1d32989c750d24
7
- data.tar.gz: d534370598cdb1d17e91121300543a85f3524b839f32b3a961d0a5451a2bb806f09d6a792dfb3fe7f705a5c84d27fdb3532f7bde90d00eee9b89de40f860f4f7
6
+ metadata.gz: 4087a8a986968e4592f246b7278a6cc67359d3633e88bb559272013fcb087129790d6d8d45e70336add70f8e0a6317490c638d84aaa5454eaef50586f46099fc
7
+ data.tar.gz: 1b2907874f50eab998c9cffc9cf76006d21d072d0f07a8dc4651596bf62ef57bc40c81e05e85230792aa24e094c8cf7c14bf4b4bf4d2f174a7dce5ddfa6ab09e
@@ -1,6 +1,10 @@
1
1
  require:
2
2
  - rubocop-rspec
3
3
 
4
+ Layout/AlignHash:
5
+ EnforcedColonStyle: table
6
+ EnforcedLastArgumentHashStyle: ignore_implicit
7
+
4
8
  Metrics/BlockLength:
5
9
  Exclude:
6
10
  - spec/**/*.rb
@@ -0,0 +1,9 @@
1
+ # Changelog
2
+
3
+ ## 0.1.1 / 2018-11-11
4
+
5
+ - Liberalize gemspec dependency constraints ([063c7f1](https://github.com/jgarber623/webmention-verification-ruby/commit063c7f1)).
6
+
7
+ ## 0.1.0 / 2018-07-11
8
+
9
+ - Initial release!
data/README.md CHANGED
@@ -11,7 +11,7 @@
11
11
 
12
12
  ## Key Features
13
13
 
14
- - Compliant with [Section 3.2.2](https://www.w3.org/TR/webmention/#webmention-verification) of [the W3C's Webmention spcification](https://www.w3.org/TR/webmention/).
14
+ - Compliant with [Section 3.2.2](https://www.w3.org/TR/webmention/#webmention-verification) of [the W3C's Webmention Recommendation](https://www.w3.org/TR/webmention/).
15
15
  - Supports Ruby 2.4 and newer.
16
16
 
17
17
  ## Getting Started
@@ -75,7 +75,7 @@ puts client.target_uri # returns Addressable::URI
75
75
 
76
76
  puts client.response # returns HTTP::Response
77
77
 
78
- puts client.verified? # Returns Boolean
78
+ puts client.verified? # returns Boolean
79
79
  ```
80
80
 
81
81
  **By default, webmention-verification-ruby will strictly match URLs.** You may disable strict matching which allows webmention-verification-ruby to match both `http://` and `https://` URLs. This is useful for matching webmentions your website may have received before it was available exclusively via HTTPS.
@@ -90,14 +90,14 @@ target = 'https://target.example.com/post/100'
90
90
 
91
91
  client = Webmention::Verification::Client.new(source, target, strict: false)
92
92
 
93
- puts client.verified? # Returns Boolean
93
+ puts client.verified? # returns Boolean
94
94
  ```
95
95
 
96
96
  The above example will match either `https://source.example.com/post/100` _or_ `http://source.example.com/post/100` in the target URL.
97
97
 
98
98
  ### Verifiers
99
99
 
100
- webmention-verification-ruby verifies [HTML](https://www.w3.org/TR/html/), [JSON](https://json.org), and plaintext files in accordance with [Section 3.2.2](https://www.w3.org/TR/webmention/#webmention-verification) of [the W3C's Webmention specification](https://www.w3.org/TR/webmention/):
100
+ webmention-verification-ruby verifies [HTML](https://www.w3.org/TR/html/), [JSON](https://json.org), and plaintext files in accordance with [Section 3.2.2](https://www.w3.org/TR/webmention/#webmention-verification) of [the W3C's Webmention Recommendation](https://www.w3.org/TR/webmention/):
101
101
 
102
102
  > The receiver **should** use per-media-type rules to determine whether the source document mentions the target URL.
103
103
 
@@ -2,7 +2,7 @@ module Webmention
2
2
  module Verification
3
3
  class Client
4
4
  HTTP_HEADERS_OPTS = {
5
- accept: '*/*',
5
+ accept: '*/*',
6
6
  user_agent: 'Webmention Verification Client (https://rubygems.org/gems/webmention-verification)'
7
7
  }.freeze
8
8
 
@@ -1,5 +1,5 @@
1
1
  module Webmention
2
2
  module Verification
3
- VERSION = '0.1.0'.freeze
3
+ VERSION = '0.1.1'.freeze
4
4
  end
5
5
  end
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
  spec.authors = ['Jason Garber']
12
12
  spec.email = ['jason@sixtwothree.org']
13
13
 
14
- spec.summary = 'Verify a received Webmention.'
14
+ spec.summary = 'Verify a received webmention.'
15
15
  spec.description = spec.summary
16
16
  spec.homepage = 'https://github.com/jgarber623/webmention-verification-ruby'
17
17
  spec.license = 'MIT'
@@ -20,16 +20,16 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.require_paths = ['lib']
22
22
 
23
- spec.add_development_dependency 'bundler', '~> 1.16', '>= 1.16.2'
24
- spec.add_development_dependency 'rake', '~> 12.3', '>= 12.3.1'
25
- spec.add_development_dependency 'rspec', '~> 3.7'
26
- spec.add_development_dependency 'rubocop', '~> 0.58.0'
27
- spec.add_development_dependency 'rubocop-rspec', '~> 1.27'
23
+ spec.add_development_dependency 'bundler', '~> 1.17'
24
+ spec.add_development_dependency 'rake', '~> 12.3'
25
+ spec.add_development_dependency 'rspec', '~> 3.8'
26
+ spec.add_development_dependency 'rubocop', '~> 0.60.0'
27
+ spec.add_development_dependency 'rubocop-rspec', '~> 1.30'
28
28
  spec.add_development_dependency 'simplecov', '~> 0.16.1'
29
29
  spec.add_development_dependency 'simplecov-console', '~> 0.4.2'
30
- spec.add_development_dependency 'webmock', '~> 3.4', '>= 3.4.2'
30
+ spec.add_development_dependency 'webmock', '~> 3.4'
31
31
 
32
- spec.add_runtime_dependency 'addressable', '~> 2.5', '>= 2.5.2'
33
- spec.add_runtime_dependency 'http', '~> 3.3'
34
- spec.add_runtime_dependency 'nokogiri', '~> 1.8', '>= 1.8.4'
32
+ spec.add_runtime_dependency 'addressable', '~> 2.5'
33
+ spec.add_runtime_dependency 'http', '~> 4.0'
34
+ spec.add_runtime_dependency 'nokogiri', '~> 1.8'
35
35
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webmention-verification
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: bin
10
10
  cert_chain: []
11
- date: 2018-07-11 00:00:00.000000000 Z
11
+ date: 2018-11-11 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.2
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.2
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,51 +38,48 @@ 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
56
44
  requirements:
57
45
  - - "~>"
58
46
  - !ruby/object:Gem::Version
59
- version: '3.7'
47
+ version: '3.8'
60
48
  type: :development
61
49
  prerelease: false
62
50
  version_requirements: !ruby/object:Gem::Requirement
63
51
  requirements:
64
52
  - - "~>"
65
53
  - !ruby/object:Gem::Version
66
- version: '3.7'
54
+ version: '3.8'
67
55
  - !ruby/object:Gem::Dependency
68
56
  name: rubocop
69
57
  requirement: !ruby/object:Gem::Requirement
70
58
  requirements:
71
59
  - - "~>"
72
60
  - !ruby/object:Gem::Version
73
- version: 0.58.0
61
+ version: 0.60.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.0
68
+ version: 0.60.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.30'
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.30'
95
83
  - !ruby/object:Gem::Dependency
96
84
  name: simplecov
97
85
  requirement: !ruby/object:Gem::Requirement
@@ -127,9 +115,6 @@ dependencies:
127
115
  - - "~>"
128
116
  - !ruby/object:Gem::Version
129
117
  version: '3.4'
130
- - - ">="
131
- - !ruby/object:Gem::Version
132
- version: 3.4.2
133
118
  type: :development
134
119
  prerelease: false
135
120
  version_requirements: !ruby/object:Gem::Requirement
@@ -137,9 +122,6 @@ dependencies:
137
122
  - - "~>"
138
123
  - !ruby/object:Gem::Version
139
124
  version: '3.4'
140
- - - ">="
141
- - !ruby/object:Gem::Version
142
- version: 3.4.2
143
125
  - !ruby/object:Gem::Dependency
144
126
  name: addressable
145
127
  requirement: !ruby/object:Gem::Requirement
@@ -147,9 +129,6 @@ dependencies:
147
129
  - - "~>"
148
130
  - !ruby/object:Gem::Version
149
131
  version: '2.5'
150
- - - ">="
151
- - !ruby/object:Gem::Version
152
- version: 2.5.2
153
132
  type: :runtime
154
133
  prerelease: false
155
134
  version_requirements: !ruby/object:Gem::Requirement
@@ -157,23 +136,20 @@ dependencies:
157
136
  - - "~>"
158
137
  - !ruby/object:Gem::Version
159
138
  version: '2.5'
160
- - - ">="
161
- - !ruby/object:Gem::Version
162
- version: 2.5.2
163
139
  - !ruby/object:Gem::Dependency
164
140
  name: http
165
141
  requirement: !ruby/object:Gem::Requirement
166
142
  requirements:
167
143
  - - "~>"
168
144
  - !ruby/object:Gem::Version
169
- version: '3.3'
145
+ version: '4.0'
170
146
  type: :runtime
171
147
  prerelease: false
172
148
  version_requirements: !ruby/object:Gem::Requirement
173
149
  requirements:
174
150
  - - "~>"
175
151
  - !ruby/object:Gem::Version
176
- version: '3.3'
152
+ version: '4.0'
177
153
  - !ruby/object:Gem::Dependency
178
154
  name: nokogiri
179
155
  requirement: !ruby/object:Gem::Requirement
@@ -181,9 +157,6 @@ dependencies:
181
157
  - - "~>"
182
158
  - !ruby/object:Gem::Version
183
159
  version: '1.8'
184
- - - ">="
185
- - !ruby/object:Gem::Version
186
- version: 1.8.4
187
160
  type: :runtime
188
161
  prerelease: false
189
162
  version_requirements: !ruby/object:Gem::Requirement
@@ -191,10 +164,7 @@ dependencies:
191
164
  - - "~>"
192
165
  - !ruby/object:Gem::Version
193
166
  version: '1.8'
194
- - - ">="
195
- - !ruby/object:Gem::Version
196
- version: 1.8.4
197
- description: Verify a received Webmention.
167
+ description: Verify a received webmention.
198
168
  email:
199
169
  - jason@sixtwothree.org
200
170
  executables: []
@@ -209,6 +179,7 @@ files:
209
179
  - ".ruby-version"
210
180
  - ".simplecov"
211
181
  - ".travis.yml"
182
+ - CHANGELOG.md
212
183
  - CONTRIBUTING.md
213
184
  - Gemfile
214
185
  - LICENSE
@@ -249,5 +220,5 @@ rubyforge_project:
249
220
  rubygems_version: 2.6.14.1
250
221
  signing_key:
251
222
  specification_version: 4
252
- summary: Verify a received Webmention.
223
+ summary: Verify a received webmention.
253
224
  test_files: []