micropub-endpoint 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -0
- data/CHANGELOG.md +5 -0
- data/lib/micropub/endpoint/discover.rb +2 -2
- data/lib/micropub/endpoint/version.rb +1 -1
- data/micropub-endpoint.gemspec +9 -9
- metadata +12 -42
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c3bca15ccd04621c1052f98a17a604b3a2fbedd9
|
4
|
+
data.tar.gz: a5bd509e68f663085ddcadf4191cbe2a979043ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 014f769390acdabfbeb0475b6f0878086ad4c14a35ad7522bd6bcfe553ac2ce44e4896b8ee6df648322161a26f226ba4188526b2ea8b4fa474f12cf59fff2026
|
7
|
+
data.tar.gz: 8228cabee9ee08f9d13981f718f1b133b3c9bdf0ea4038b154701d34634774f1a56456c820085b61c6b006a65b10b6ba7bcc53a1cd96fbeb27390047eb932699
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 1.0.2 / 2018-11-11
|
4
|
+
|
5
|
+
- Freeze mutable objects assigned to constants ([843e875](https://github.com/jgarber623/micropub-endpoint-ruby/commit/843e875)).
|
6
|
+
- Liberalize gemspec dependency constraints ([c71e29f](https://github.com/jgarber623/micropub-endpoint-ruby/commit/c71e29f)).
|
7
|
+
|
3
8
|
## 1.0.1 / 2018-07-29
|
4
9
|
|
5
10
|
- Raise an `ArgumentError` when `Client` instantiated with non-absolute URI ([d598f1b](https://github.com/jgarber623/micropub-endpoint-ruby/commit/d598f1b)).
|
@@ -7,11 +7,11 @@ module Micropub
|
|
7
7
|
|
8
8
|
# Liberal pattern matching a string of text between angle brackets
|
9
9
|
# https://tools.ietf.org/html/rfc5988#section-5.1
|
10
|
-
REGEXP_TARGET_URI_PATTERN = /^<(.*)
|
10
|
+
REGEXP_TARGET_URI_PATTERN = /^<(.*)>;/.freeze
|
11
11
|
|
12
12
|
# Ultra-orthodox pattern matching HTTP Link header `rel` parameter including a `micropub` value
|
13
13
|
# https://www.w3.org/TR/micropub/#endpoint-discovery
|
14
|
-
REGEXP_MICROPUB_REL_PATTERN = /(?:;|\s)rel="?(?:#{REGEXP_REG_REL_TYPE_PATTERN}+\s)?micropub(?:\s#{REGEXP_REG_REL_TYPE_PATTERN})?"
|
14
|
+
REGEXP_MICROPUB_REL_PATTERN = /(?:;|\s)rel="?(?:#{REGEXP_REG_REL_TYPE_PATTERN}+\s)?micropub(?:\s#{REGEXP_REG_REL_TYPE_PATTERN})?"?/.freeze
|
15
15
|
|
16
16
|
def initialize(response)
|
17
17
|
raise ArgumentError, "response must be an HTTP::Response (given #{response.class.name})" unless response.is_a?(HTTP::Response)
|
data/micropub-endpoint.gemspec
CHANGED
@@ -20,17 +20,17 @@ Gem::Specification.new do |spec|
|
|
20
20
|
|
21
21
|
spec.require_paths = ['lib']
|
22
22
|
|
23
|
-
spec.add_development_dependency 'bundler', '~> 1.
|
24
|
-
spec.add_development_dependency 'rake', '~> 12.3'
|
25
|
-
spec.add_development_dependency 'rspec', '~> 3.
|
26
|
-
spec.add_development_dependency 'rubocop', '~> 0.
|
27
|
-
spec.add_development_dependency 'rubocop-rspec', '~> 1.
|
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'
|
30
|
+
spec.add_development_dependency 'webmock', '~> 3.4'
|
31
31
|
|
32
32
|
spec.add_runtime_dependency 'absolutely', '~> 1.1'
|
33
|
-
spec.add_runtime_dependency 'addressable', '~> 2.5'
|
34
|
-
spec.add_runtime_dependency 'http', '~>
|
35
|
-
spec.add_runtime_dependency 'nokogiri', '~> 1.8'
|
33
|
+
spec.add_runtime_dependency 'addressable', '~> 2.5'
|
34
|
+
spec.add_runtime_dependency 'http', '~> 4.0'
|
35
|
+
spec.add_runtime_dependency 'nokogiri', '~> 1.8'
|
36
36
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: micropub-endpoint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
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-
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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: absolutely
|
145
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -161,9 +143,6 @@ dependencies:
|
|
161
143
|
- - "~>"
|
162
144
|
- !ruby/object:Gem::Version
|
163
145
|
version: '2.5'
|
164
|
-
- - ">="
|
165
|
-
- !ruby/object:Gem::Version
|
166
|
-
version: 2.5.2
|
167
146
|
type: :runtime
|
168
147
|
prerelease: false
|
169
148
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -171,23 +150,20 @@ dependencies:
|
|
171
150
|
- - "~>"
|
172
151
|
- !ruby/object:Gem::Version
|
173
152
|
version: '2.5'
|
174
|
-
- - ">="
|
175
|
-
- !ruby/object:Gem::Version
|
176
|
-
version: 2.5.2
|
177
153
|
- !ruby/object:Gem::Dependency
|
178
154
|
name: http
|
179
155
|
requirement: !ruby/object:Gem::Requirement
|
180
156
|
requirements:
|
181
157
|
- - "~>"
|
182
158
|
- !ruby/object:Gem::Version
|
183
|
-
version: '
|
159
|
+
version: '4.0'
|
184
160
|
type: :runtime
|
185
161
|
prerelease: false
|
186
162
|
version_requirements: !ruby/object:Gem::Requirement
|
187
163
|
requirements:
|
188
164
|
- - "~>"
|
189
165
|
- !ruby/object:Gem::Version
|
190
|
-
version: '
|
166
|
+
version: '4.0'
|
191
167
|
- !ruby/object:Gem::Dependency
|
192
168
|
name: nokogiri
|
193
169
|
requirement: !ruby/object:Gem::Requirement
|
@@ -195,9 +171,6 @@ dependencies:
|
|
195
171
|
- - "~>"
|
196
172
|
- !ruby/object:Gem::Version
|
197
173
|
version: '1.8'
|
198
|
-
- - ">="
|
199
|
-
- !ruby/object:Gem::Version
|
200
|
-
version: 1.8.4
|
201
174
|
type: :runtime
|
202
175
|
prerelease: false
|
203
176
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -205,9 +178,6 @@ dependencies:
|
|
205
178
|
- - "~>"
|
206
179
|
- !ruby/object:Gem::Version
|
207
180
|
version: '1.8'
|
208
|
-
- - ">="
|
209
|
-
- !ruby/object:Gem::Version
|
210
|
-
version: 1.8.4
|
211
181
|
description: Discover a URL’s Micropub endpoint.
|
212
182
|
email:
|
213
183
|
- jason@sixtwothree.org
|