wikitext 4.7 → 4.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/wikitext/extconf.rb +0 -5
- data/lib/wikitext/version.rb +1 -1
- data/spec/link_encoding_spec.rb +7 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e8f6d2944215c85806ff343a6ff9eb39bd28011c56d83094881eae708e5e9f1
|
4
|
+
data.tar.gz: 582cde35c2d1f18a4048f9dc0f8a47b0d4b7f59e43a81f8913a14b5373ed026f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3988ec125535ee363500931c5a89196b0221f948e39894c905065d6472266a19e9472ff51a9fcee431f21ed9d94813add222db06aa6e4d73b42995f4f8da718d
|
7
|
+
data.tar.gz: a635de3289089b87b22b3917f2e8f91058fab3548712dc7b41a97d9a0bbb2a290ce3c2014cadadc1e9cd945f33511315363bb1eb54cb1939d965f29bb9b0b880
|
data/ext/wikitext/extconf.rb
CHANGED
@@ -28,10 +28,5 @@ def missing item
|
|
28
28
|
exit 1
|
29
29
|
end
|
30
30
|
|
31
|
-
if RUBY_VERSION !~ /\A2\.[0-7](\.|$)/ and
|
32
|
-
RUBY_VERSION !~ /\A3\.[0](\.|$)/
|
33
|
-
raise "unsupported Ruby version: #{RUBY_VERSION}"
|
34
|
-
end
|
35
|
-
|
36
31
|
have_header('ruby.h') or missing 'ruby.h'
|
37
32
|
create_makefile('wikitext')
|
data/lib/wikitext/version.rb
CHANGED
data/spec/link_encoding_spec.rb
CHANGED
@@ -85,9 +85,14 @@ describe Wikitext, 'encoding a link target' do
|
|
85
85
|
Wikitext::Parser.encode_link_target('foo, "bar" & baz €').should == 'foo%2c%20%22bar%22%20%26%20baz%20%e2%82%ac'
|
86
86
|
end
|
87
87
|
|
88
|
-
it '
|
88
|
+
it 'gets the same answer as URI.escape' do
|
89
|
+
# Or at least, the same answer as it used to get before being deprecated and
|
90
|
+
# eventually removed...
|
91
|
+
# See: https://docs.knapsackpro.com/2020/uri-escape-is-obsolete-percent-encoding-your-query-string
|
89
92
|
Wikitext::Parser.encode_link_target('foo bar').should == 'foo%20bar'
|
90
|
-
Wikitext::Parser.encode_link_target('http://www.google.com/search?q=hello&foo=bar').should == 'http%3a%2f%2fwww.google.com%2fsearch%3fq%3dhello%26foo%3dbar'
|
91
93
|
Wikitext::Parser.encode_link_target('€').should == '%e2%82%ac'
|
94
|
+
Wikitext::Parser.encode_link_target(
|
95
|
+
'http://www.google.com/search?q=hello&foo=bar'
|
96
|
+
).should == 'http%3a%2f%2fwww.google.com%2fsearch%3fq%3dhello%26foo%3dbar'
|
92
97
|
end
|
93
98
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wikitext
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '4.
|
4
|
+
version: '4.8'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Greg Hurrell
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-12-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -168,7 +168,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
168
168
|
- !ruby/object:Gem::Version
|
169
169
|
version: '0'
|
170
170
|
requirements: []
|
171
|
-
rubygems_version: 3.
|
171
|
+
rubygems_version: 3.3.3
|
172
172
|
signing_key:
|
173
173
|
specification_version: 4
|
174
174
|
summary: Wikitext-to-HTML translator
|