optic14n 2.0.1 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/dependabot.yml +10 -0
- data/.github/pull_request_template.md +1 -0
- data/.github/workflows/autorelease.yml +10 -0
- data/.github/workflows/ci.yml +45 -0
- data/.govuk_dependabot_merger.yml +7 -0
- data/.rubocop.yml +3 -0
- data/.ruby-version +1 -2
- data/CHANGELOG.md +17 -0
- data/Gemfile +1 -5
- data/README.md +4 -0
- data/Rakefile +8 -15
- data/lib/optic14n/canonicalized_urls.rb +6 -4
- data/lib/optic14n/version.rb +1 -1
- data/lib/optic14n.rb +8 -8
- data/lib/tasks/measure_reduction.rake +3 -3
- data/lib/uri/bluri.rb +41 -31
- data/lib/uri/query_hash.rb +7 -7
- data/optic14n.gemspec +18 -15
- data/spec/bluri_spec.rb +48 -48
- data/spec/c14n_spec.rb +126 -114
- data/spec/canonicalized_urls_spec.rb +29 -20
- data/spec/query_hash_spec.rb +22 -8
- data/spec/spec_helper.rb +1 -1
- data/spec/uri/query_hash_spec.rb +18 -7
- metadata +36 -17
- data/jenkins.sh +0 -10
- /data/{LICENSE.txt → LICENCE} +0 -0
data/spec/c14n_spec.rb
CHANGED
@@ -1,195 +1,207 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
require 'spec_helper'
|
1
|
+
require "spec_helper"
|
4
2
|
|
5
3
|
describe "Paul's tests, translated from Perl" do
|
6
|
-
it
|
7
|
-
BLURI(
|
4
|
+
it "lowercases URLs" do
|
5
|
+
expect(BLURI("http://www.EXAMPLE.COM/Foo/Bar/BAZ").canonicalize!.to_s).to eq("http://www.example.com/foo/bar/baz")
|
8
6
|
end
|
9
7
|
|
10
|
-
describe
|
11
|
-
it
|
12
|
-
BLURI(
|
8
|
+
describe "protocol" do
|
9
|
+
it "translates protocol to http", reason: "Reduces our input space, everything public anyway" do
|
10
|
+
expect(BLURI("https://www.example.com").canonicalize!.to_s).to eq("http://www.example.com")
|
13
11
|
end
|
14
12
|
end
|
15
13
|
|
16
|
-
describe
|
17
|
-
it
|
18
|
-
BLURI(
|
14
|
+
describe "slashes" do
|
15
|
+
it "drops single trailing slashes" do
|
16
|
+
expect(BLURI("http://www.example.com/").canonicalize!.to_s).to eq("http://www.example.com")
|
19
17
|
end
|
20
18
|
|
21
|
-
it
|
22
|
-
BLURI(
|
19
|
+
it "drops multiple trailing slashes" do
|
20
|
+
expect(BLURI("http://www.example.com////").canonicalize!.to_s).to eq("http://www.example.com")
|
23
21
|
end
|
24
22
|
|
25
|
-
it
|
26
|
-
BLURI(
|
23
|
+
it "drops multiple trailing slashes on the path" do
|
24
|
+
expect(BLURI("http://www.example.com/foo///").canonicalize!.to_s).to eq("http://www.example.com/foo")
|
27
25
|
end
|
28
26
|
end
|
29
27
|
|
30
|
-
describe
|
31
|
-
it
|
32
|
-
BLURI(
|
28
|
+
describe "fragments" do
|
29
|
+
it "drops fragment identifier", reason: "They won't be mapped, so are redundant" do
|
30
|
+
expect(BLURI("http://www.example.com#foo").canonicalize!.to_s).to eq("http://www.example.com")
|
33
31
|
end
|
34
|
-
it
|
35
|
-
BLURI(
|
32
|
+
it "drops fragment identifier and slashes" do
|
33
|
+
expect(BLURI("http://www.example.com/#foo").canonicalize!.to_s).to eq("http://www.example.com")
|
36
34
|
end
|
37
35
|
end
|
38
36
|
|
39
|
-
describe
|
40
|
-
it
|
41
|
-
BLURI(
|
37
|
+
describe "Things to keep verbatim or encode", reason: "http://tools.ietf.org/html/rfc3986" do
|
38
|
+
it "retains colons" do
|
39
|
+
expect(BLURI("http://www.example.com/:colon:").canonicalize!.to_s).to eq("http://www.example.com/:colon:")
|
42
40
|
end
|
43
|
-
it
|
44
|
-
BLURI(
|
41
|
+
it "retains tilde" do
|
42
|
+
expect(BLURI("http://www.example.com/~tilde").canonicalize!.to_s).to eq("http://www.example.com/~tilde")
|
45
43
|
end
|
46
|
-
it
|
47
|
-
BLURI(
|
44
|
+
it "retains underscores" do
|
45
|
+
expect(BLURI("http://www.example.com/_underscore_").canonicalize!.to_s).to eq("http://www.example.com/_underscore_")
|
48
46
|
end
|
49
|
-
it
|
50
|
-
BLURI(
|
47
|
+
it "retains asterisks" do
|
48
|
+
expect(BLURI("http://www.example.com/*asterisk*").canonicalize!.to_s).to eq("http://www.example.com/*asterisk*")
|
51
49
|
end
|
52
|
-
it
|
53
|
-
BLURI(
|
50
|
+
it "retains parens" do
|
51
|
+
expect(BLURI("http://www.example.com/(parens)").canonicalize!.to_s).to eq("http://www.example.com/(parens)")
|
54
52
|
end
|
55
|
-
it
|
56
|
-
BLURI(
|
53
|
+
it "escapes square brackets" do
|
54
|
+
expect(BLURI("http://www.example.com/[square-brackets]").canonicalize!.to_s).to eq("http://www.example.com/%5bsquare-brackets%5d")
|
57
55
|
end
|
58
|
-
it
|
59
|
-
BLURI("http://www.example.com/commas,and-\"quotes\"-make-CSV-harder-to-'awk'").canonicalize!.to_s.
|
60
|
-
|
56
|
+
it "encodes commas and quotes", reason: "They make csv harder to awk" do
|
57
|
+
expect(BLURI("http://www.example.com/commas,and-\"quotes\"-make-CSV-harder-to-'awk'").canonicalize!.to_s).to eq(
|
58
|
+
"http://www.example.com/commas%2cand-%22quotes%22-make-csv-harder-to-%27awk%27",
|
59
|
+
)
|
61
60
|
end
|
62
|
-
it
|
63
|
-
BLURI(
|
64
|
-
|
61
|
+
it "encodes square brackets and pipes", reason: "It's problematic in curl and regexes" do
|
62
|
+
expect(BLURI("http://www.example.com/problematic-in-curl[]||[and-regexes]").canonicalize!.to_s).to eq(
|
63
|
+
"http://www.example.com/problematic-in-curl%5b%5d%7c%7c%5band-regexes%5d",
|
64
|
+
)
|
65
65
|
end
|
66
|
-
it
|
66
|
+
it "decodes non-reserved characters (! and ~)" do
|
67
67
|
# My god, it's full of stars
|
68
|
-
BLURI(
|
69
|
-
canonicalize!.to_s.
|
68
|
+
expect(BLURI("http://www.example.com/%7eyes%20I%20have%20now%20read%20%5brfc%203986%5d%2C%20%26%20I%27m%20a%20%3Dlot%3D%20more%20reassured%21%21")
|
69
|
+
.canonicalize!.to_s).to eq("http://www.example.com/~yes%20i%20have%20now%20read%20%5brfc%203986%5d%2c%20%26%20i%27m%20a%20%3dlot%3d%20more%20reassured!!")
|
70
70
|
end
|
71
|
-
it
|
72
|
-
BLURI(
|
71
|
+
it "encodes pound signs" do
|
72
|
+
expect(BLURI("https://www.example.com/pound-sign-£").canonicalize!.to_s).to eq("http://www.example.com/pound-sign-%c2%a3")
|
73
73
|
end
|
74
74
|
end
|
75
75
|
|
76
|
-
describe
|
77
|
-
it
|
78
|
-
BLURI(
|
76
|
+
describe "query strings" do
|
77
|
+
it "disallows all query string params by default" do
|
78
|
+
expect(BLURI("http://www.example.com?q=foo").canonicalize!.to_s).to eq("http://www.example.com")
|
79
79
|
end
|
80
|
-
it
|
81
|
-
BLURI(
|
80
|
+
it "disallows all params when there's a slash" do
|
81
|
+
expect(BLURI("http://www.example.com/?q=foo").canonicalize!.to_s).to eq("http://www.example.com")
|
82
82
|
end
|
83
|
-
it
|
84
|
-
BLURI(
|
83
|
+
it "disallows all params after a slash with fragid" do
|
84
|
+
expect(BLURI("http://www.example.com/?q=foo#bar").canonicalize!.to_s).to eq("http://www.example.com")
|
85
85
|
end
|
86
86
|
|
87
|
-
describe
|
88
|
-
it
|
89
|
-
BLURI(
|
90
|
-
|
87
|
+
describe "allowing some or all query string values" do
|
88
|
+
it "allows named query_string parameters" do
|
89
|
+
expect(BLURI("http://www.example.com/?q=foo&r=bar").canonicalize!(allow_query: "q").to_s).to eq(
|
90
|
+
"http://www.example.com?q=foo",
|
91
|
+
)
|
91
92
|
end
|
92
|
-
it
|
93
|
-
BLURI(
|
94
|
-
canonicalize!(allow_query: [
|
93
|
+
it "sorts query string values" do
|
94
|
+
expect(BLURI("http://www.example.com?c=23&d=1&b=909&e=33&a=1")
|
95
|
+
.canonicalize!(allow_query: %i[b e c d a]).to_s).to eq("http://www.example.com?a=1&b=909&c=23&d=1&e=33")
|
95
96
|
end
|
96
|
-
it
|
97
|
-
BLURI("http://www.example.com?a=you're_dangerous").canonicalize!(allow_query: :all).to_s.
|
98
|
-
|
97
|
+
it "encodes querystring values" do
|
98
|
+
expect(BLURI("http://www.example.com?a=you're_dangerous").canonicalize!(allow_query: :all).to_s).to eq(
|
99
|
+
"http://www.example.com?a=you%27re_dangerous",
|
100
|
+
)
|
99
101
|
end
|
100
|
-
it
|
101
|
-
BLURI(
|
102
|
-
|
102
|
+
it "whitelists and sorts query strings" do
|
103
|
+
expect(BLURI("http://www.example.com?a=1&c=3&b=2").canonicalize!(allow_query: :all).to_s).to eq(
|
104
|
+
"http://www.example.com?a=1&b=2&c=3",
|
105
|
+
)
|
103
106
|
end
|
104
|
-
it
|
105
|
-
BLURI(
|
106
|
-
canonicalize!(allow_query: [
|
107
|
+
it "converts matrix URI to query_string" do
|
108
|
+
expect(BLURI("http://www.example.com?c=23;d=1;b=909;e=33;a=1")
|
109
|
+
.canonicalize!(allow_query: %i[b e c d a]).to_s).to eq("http://www.example.com?a=1&b=909&c=23&d=1&e=33")
|
107
110
|
end
|
108
|
-
it
|
109
|
-
BLURI(
|
110
|
-
canonicalize!(allow_query: [
|
111
|
+
it "sorts cherry-picked query string arguments" do
|
112
|
+
expect(BLURI("http://www.example.com?a=2322sdfsf&topic=334499&q=909&item=23444")
|
113
|
+
.canonicalize!(allow_query: %i[topic item]).to_s).to eq("http://www.example.com?item=23444&topic=334499")
|
111
114
|
end
|
112
|
-
it
|
113
|
-
BLURI(
|
114
|
-
canonicalize!(allow_query: %w
|
115
|
+
it "ignores empty querystring values" do
|
116
|
+
expect(BLURI("http://www.example.com?a=2322sdfsf&topic=334499&q=909&item=23444")
|
117
|
+
.canonicalize!(allow_query: %w[foo bar baz]).to_s).to eq("http://www.example.com")
|
115
118
|
end
|
116
119
|
|
117
|
-
describe
|
120
|
+
describe "querystrings that are not an HTML-encoded thing" do
|
118
121
|
before do
|
119
|
-
@bluri = BLURI(
|
122
|
+
@bluri = BLURI("http://some.com/a/path?foo&bar").canonicalize!(allow_query: :all)
|
120
123
|
end
|
121
124
|
|
122
|
-
it
|
123
|
-
@bluri.query.
|
125
|
+
it "retains the query string" do
|
126
|
+
expect(@bluri.query).to eq("bar&foo")
|
124
127
|
end
|
125
128
|
|
126
|
-
it
|
127
|
-
@bluri.query_hash[
|
128
|
-
@bluri.query_hash[
|
129
|
+
it "has a query hash with empty elements" do
|
130
|
+
expect(@bluri.query_hash["foo"]).to eq(nil)
|
131
|
+
expect(@bluri.query_hash["bar"]).to eq(nil)
|
129
132
|
end
|
130
133
|
|
131
|
-
it
|
132
|
-
@bluri.query_hash.to_s.
|
134
|
+
it "renders the string properly" do
|
135
|
+
expect(@bluri.query_hash.to_s).to eq("bar&foo")
|
133
136
|
end
|
134
137
|
end
|
135
138
|
|
136
|
-
describe
|
137
|
-
context
|
138
|
-
it
|
139
|
-
BLURI(
|
140
|
-
|
139
|
+
describe "casing of allowed query params" do
|
140
|
+
context "when the query param contains upper-case letters" do
|
141
|
+
it "does not preserve the query string, even when it appeared identically in the URL" do
|
142
|
+
expect(BLURI("http://www.example.com/?Foo=bar").canonicalize!(allow_query: "Foo").to_s).to eq(
|
143
|
+
"http://www.example.com",
|
144
|
+
)
|
141
145
|
end
|
142
146
|
end
|
143
147
|
|
144
|
-
context
|
145
|
-
it
|
146
|
-
BLURI(
|
147
|
-
|
148
|
+
context "when the query param is lower-cased" do
|
149
|
+
it "preserves the query string and lower-cases it" do
|
150
|
+
expect(BLURI("http://www.example.com/?Foo=bar").canonicalize!(allow_query: "foo").to_s).to eq(
|
151
|
+
"http://www.example.com?foo=bar",
|
152
|
+
)
|
148
153
|
end
|
149
154
|
end
|
150
155
|
end
|
151
156
|
|
152
|
-
describe
|
153
|
-
context
|
154
|
-
it
|
155
|
-
url =
|
157
|
+
describe "indifferent specfication of allowed query params" do
|
158
|
+
context "specifying the allowed query param using either a symbol or a string" do
|
159
|
+
it "should behave the same" do
|
160
|
+
url = "http://example.com/some?significant=1&query_params=2"
|
156
161
|
|
157
162
|
using_symbol = BLURI(url).canonicalize!(allow_query: :significant)
|
158
|
-
using_string = BLURI(url).canonicalize!(allow_query:
|
163
|
+
using_string = BLURI(url).canonicalize!(allow_query: "significant")
|
159
164
|
|
160
|
-
using_symbol.
|
165
|
+
expect(using_symbol).to eq(using_string)
|
161
166
|
end
|
162
167
|
end
|
163
168
|
end
|
164
169
|
end
|
165
170
|
|
166
|
-
describe
|
167
|
-
describe
|
168
|
-
|
169
|
-
it
|
170
|
-
BLURI(
|
171
|
-
canonicalize!(allow_query: :all)
|
172
|
-
to_s.
|
171
|
+
describe "degenerate cases" do
|
172
|
+
describe "the treatment of query strings when there are query string octets that unescape to "\
|
173
|
+
"invalid UTF-8 sequences (we no longer treat these as failures)" do
|
174
|
+
it "no longer raises exceptions when there are bad things in query values" do
|
175
|
+
expect(BLURI("http://example.com/path?view=%ED")
|
176
|
+
.canonicalize!(allow_query: :all)
|
177
|
+
.to_s).to eql("http://example.com/path?view=%ED")
|
173
178
|
end
|
174
179
|
|
175
|
-
it
|
176
|
-
BLURI(
|
177
|
-
canonicalize!(allow_query: :all)
|
178
|
-
to_s.
|
180
|
+
it "re-encodes correctly when there are bad things in query keys" do
|
181
|
+
expect(BLURI("http://example.com/path?%ED=view")
|
182
|
+
.canonicalize!(allow_query: :all)
|
183
|
+
.to_s).to eql("http://example.com/path?%ED=view")
|
179
184
|
end
|
180
185
|
|
181
|
-
it
|
182
|
-
expect { BLURI(
|
186
|
+
it "does not error when there are bad things in query keys when allow_query isn't :all" do
|
187
|
+
expect { BLURI("http://some.com/a/path?%E2").canonicalize! }.not_to raise_error
|
183
188
|
end
|
184
189
|
end
|
185
190
|
|
186
|
-
describe
|
191
|
+
describe "failure to canonicalize paths correctly" do
|
187
192
|
# see https://www.pivotaltracker.com/s/projects/860575/stories/54502932
|
188
193
|
|
189
|
-
subject { BLURI(
|
194
|
+
subject { BLURI("http://www.voa.gov.uk/stuff/?query=thing").canonicalize!(allow_query: :all) }
|
195
|
+
|
196
|
+
describe "#path" do
|
197
|
+
subject { super().path }
|
198
|
+
it { is_expected.to eql("/stuff") }
|
199
|
+
end
|
190
200
|
|
191
|
-
|
192
|
-
|
201
|
+
describe "#query" do
|
202
|
+
subject { super().query }
|
203
|
+
it { is_expected.to eql("query=thing") }
|
204
|
+
end
|
193
205
|
end
|
194
206
|
end
|
195
207
|
end
|
@@ -1,57 +1,66 @@
|
|
1
|
-
require
|
1
|
+
require "spec_helper"
|
2
2
|
|
3
3
|
describe Optic14n::CanonicalizedUrls do
|
4
|
-
describe
|
4
|
+
describe "c14nize" do
|
5
5
|
let(:test_urls) do
|
6
|
-
%w
|
6
|
+
%w[
|
7
7
|
http://www.qhm.mod.uk/portsmouth/leisure/fuel
|
8
8
|
http://www.qhm.mod.uk/portsmouth/leisure/lntm?
|
9
9
|
http://www.qhm.mod.uk/portsmouth/leisure/lntm?action=view
|
10
10
|
http://www.qhm.mod.uk/portsmouth/leisure/lntm?action=view&id=199
|
11
11
|
http://unistats.direct.gov.uk/searchResults.do?pname=institutesearchresults&level3Subjects=L3.90%AC10007761%ACFIRSTDEGREE%ACFulltime%AC430%ACNo%AC60%ACYes%AC83%ACNo%ACYes
|
12
12
|
1234://123
|
13
|
-
|
13
|
+
]
|
14
14
|
end
|
15
15
|
|
16
|
-
context
|
16
|
+
context "options[:allow_query] is false" do
|
17
17
|
subject(:c14nizer) { Optic14n::CanonicalizedUrls.from_urls(test_urls, allow_query: false) }
|
18
18
|
|
19
|
-
it {
|
19
|
+
it { is_expected.to be_a(Optic14n::CanonicalizedUrls) }
|
20
20
|
|
21
|
-
|
21
|
+
describe "#seen" do
|
22
|
+
subject { super().seen }
|
23
|
+
it { is_expected.to eql(6) }
|
24
|
+
end
|
22
25
|
|
23
|
-
describe
|
26
|
+
describe "the output set" do
|
24
27
|
subject(:output_set) { c14nizer.output_set }
|
25
28
|
|
26
|
-
|
29
|
+
describe "#size" do
|
30
|
+
subject { super().size }
|
31
|
+
it { is_expected.to eql(3) }
|
32
|
+
end
|
27
33
|
|
28
|
-
describe
|
34
|
+
describe "the items" do
|
29
35
|
subject { output_set.map(&:to_s) }
|
30
36
|
|
31
|
-
it {
|
32
|
-
it {
|
33
|
-
it {
|
37
|
+
it { is_expected.to include("http://www.qhm.mod.uk/portsmouth/leisure/fuel") }
|
38
|
+
it { is_expected.to include("http://www.qhm.mod.uk/portsmouth/leisure/lntm") }
|
39
|
+
it { is_expected.to include("http://unistats.direct.gov.uk/searchresults.do") }
|
34
40
|
end
|
35
41
|
end
|
36
42
|
end
|
37
43
|
|
38
|
-
context
|
44
|
+
context "options[:allow_query] is :all" do
|
39
45
|
subject(:c14nizer) { Optic14n::CanonicalizedUrls.from_urls(test_urls, allow_query: :all) }
|
40
46
|
|
41
|
-
describe
|
47
|
+
describe "the output set" do
|
42
48
|
subject(:output_set) { c14nizer.output_set }
|
43
49
|
|
44
|
-
|
50
|
+
describe "#size" do
|
51
|
+
subject { super().size }
|
52
|
+
it { is_expected.to eql(5) }
|
53
|
+
end
|
45
54
|
end
|
46
55
|
|
47
|
-
describe
|
56
|
+
describe "failures" do
|
48
57
|
subject(:failures) { c14nizer.failures }
|
49
58
|
|
50
|
-
it {
|
59
|
+
it { is_expected.to be_a(Hash) }
|
51
60
|
|
52
|
-
it
|
61
|
+
it "has our last URL and an error" do
|
53
62
|
e = failures[test_urls.last]
|
54
|
-
e.
|
63
|
+
expect(e).to be_an(Addressable::URI::InvalidURIError)
|
55
64
|
end
|
56
65
|
end
|
57
66
|
end
|
data/spec/query_hash_spec.rb
CHANGED
@@ -1,15 +1,29 @@
|
|
1
|
-
require
|
1
|
+
require "spec_helper"
|
2
2
|
|
3
3
|
describe URI::QueryHash do
|
4
4
|
subject(:hash) { {}.extend URI::QueryHash }
|
5
5
|
|
6
|
-
|
6
|
+
describe "#to_s" do
|
7
|
+
subject { super().to_s }
|
8
|
+
it { is_expected.to eql("") }
|
9
|
+
end
|
10
|
+
|
11
|
+
describe "setting a value by symbol" do
|
12
|
+
before { hash["x"] = "1" }
|
13
|
+
|
14
|
+
describe "[:x]" do
|
15
|
+
subject { super()[:x] }
|
16
|
+
it { is_expected.to eql("1") }
|
17
|
+
end
|
7
18
|
|
8
|
-
|
9
|
-
|
19
|
+
describe "['x']" do
|
20
|
+
subject { super()["x"] }
|
21
|
+
it { is_expected.to eql("1") }
|
22
|
+
end
|
10
23
|
|
11
|
-
|
12
|
-
|
13
|
-
|
24
|
+
describe "#to_s" do
|
25
|
+
subject { super().to_s }
|
26
|
+
it { is_expected.to eql("x=1") }
|
27
|
+
end
|
14
28
|
end
|
15
|
-
end
|
29
|
+
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
require
|
1
|
+
require "optic14n"
|
data/spec/uri/query_hash_spec.rb
CHANGED
@@ -1,11 +1,22 @@
|
|
1
|
-
require
|
1
|
+
require "spec_helper"
|
2
2
|
|
3
3
|
describe URI::QueryHash do
|
4
|
-
describe
|
5
|
-
subject { {
|
4
|
+
describe "non-HTML encoded query strings" do
|
5
|
+
subject { { "foo" => nil, "bar" => nil }.extend URI::QueryHash }
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
|
7
|
+
describe "['foo']" do
|
8
|
+
subject { super()["foo"] }
|
9
|
+
it { is_expected.to be_nil }
|
10
|
+
end
|
11
|
+
|
12
|
+
describe "['bar']" do
|
13
|
+
subject { super()["bar"] }
|
14
|
+
it { is_expected.to be_nil }
|
15
|
+
end
|
16
|
+
|
17
|
+
describe "#to_s" do
|
18
|
+
subject { super().to_s }
|
19
|
+
it { is_expected.to eql("foo&bar") }
|
20
|
+
end
|
10
21
|
end
|
11
|
-
end
|
22
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: optic14n
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- GOV.UK Dev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '2.
|
19
|
+
version: '2.7'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '2.
|
26
|
+
version: '2.7'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -39,33 +39,53 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rubocop-govuk
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 5.0.2
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '='
|
53
67
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
68
|
+
version: 5.0.2
|
55
69
|
description: Canonicalises URLs.
|
56
70
|
email:
|
57
|
-
-
|
71
|
+
- govuk-dev@digital.cabinet-office.gov.uk
|
58
72
|
executables: []
|
59
73
|
extensions: []
|
60
74
|
extra_rdoc_files: []
|
61
75
|
files:
|
76
|
+
- ".github/dependabot.yml"
|
77
|
+
- ".github/pull_request_template.md"
|
78
|
+
- ".github/workflows/autorelease.yml"
|
79
|
+
- ".github/workflows/ci.yml"
|
62
80
|
- ".gitignore"
|
81
|
+
- ".govuk_dependabot_merger.yml"
|
82
|
+
- ".rubocop.yml"
|
63
83
|
- ".ruby-version"
|
84
|
+
- CHANGELOG.md
|
64
85
|
- Gemfile
|
65
|
-
-
|
86
|
+
- LICENCE
|
66
87
|
- README.md
|
67
88
|
- Rakefile
|
68
|
-
- jenkins.sh
|
69
89
|
- lib/optic14n.rb
|
70
90
|
- lib/optic14n/canonicalized_urls.rb
|
71
91
|
- lib/optic14n/version.rb
|
@@ -80,7 +100,7 @@ files:
|
|
80
100
|
- spec/query_hash_spec.rb
|
81
101
|
- spec/spec_helper.rb
|
82
102
|
- spec/uri/query_hash_spec.rb
|
83
|
-
homepage:
|
103
|
+
homepage: https://github.com/alphagov/optic14n
|
84
104
|
licenses:
|
85
105
|
- MIT
|
86
106
|
metadata: {}
|
@@ -92,15 +112,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
92
112
|
requirements:
|
93
113
|
- - ">="
|
94
114
|
- !ruby/object:Gem::Version
|
95
|
-
version:
|
115
|
+
version: 3.1.4
|
96
116
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
97
117
|
requirements:
|
98
118
|
- - ">="
|
99
119
|
- !ruby/object:Gem::Version
|
100
120
|
version: '0'
|
101
121
|
requirements: []
|
102
|
-
|
103
|
-
rubygems_version: 2.5.1
|
122
|
+
rubygems_version: 3.5.21
|
104
123
|
signing_key:
|
105
124
|
specification_version: 4
|
106
125
|
summary: Specifically, HTTP URLs, for a limited purpose
|
data/jenkins.sh
DELETED
/data/{LICENSE.txt → LICENCE}
RENAMED
File without changes
|