wikitext 4.7 → 4.8

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
  SHA256:
3
- metadata.gz: dd80b96f9467c70bbe9ec9708b9484b03e69900234003fc3287d807a61946062
4
- data.tar.gz: 525a0cdcc6ec5d5bdce0eb36361397c61db534411043fbf27b4b09bbed0023e7
3
+ metadata.gz: 0e8f6d2944215c85806ff343a6ff9eb39bd28011c56d83094881eae708e5e9f1
4
+ data.tar.gz: 582cde35c2d1f18a4048f9dc0f8a47b0d4b7f59e43a81f8913a14b5373ed026f
5
5
  SHA512:
6
- metadata.gz: 2360e34ad4e77159d152c8caec1eca2d1cb2b6225a427c74d1da59248d78c1b65de3b237da62f2254ffbb376f1cbc2228e52df86bbb22db4197388452521105d
7
- data.tar.gz: 33c00b12b8b2e25d9a36f8837ed28fa2b5cac9b914bde076592df2f8e038d0a22bd98e402c8b053b8123e6ad950d923de9dfb6abf06eb631eb5c6958b232d360
6
+ metadata.gz: 3988ec125535ee363500931c5a89196b0221f948e39894c905065d6472266a19e9472ff51a9fcee431f21ed9d94813add222db06aa6e4d73b42995f4f8da718d
7
+ data.tar.gz: a635de3289089b87b22b3917f2e8f91058fab3548712dc7b41a97d9a0bbb2a290ce3c2014cadadc1e9cd945f33511315363bb1eb54cb1939d965f29bb9b0b880
@@ -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')
@@ -22,5 +22,5 @@
22
22
  # POSSIBILITY OF SUCH DAMAGE.
23
23
 
24
24
  module Wikitext
25
- VERSION = '4.7'
25
+ VERSION = '4.8'
26
26
  end # module Wikitext
@@ -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 'should get the same answer as URI.escape' do
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.7'
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: 2020-12-22 00:00:00.000000000 Z
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.1.4
171
+ rubygems_version: 3.3.3
172
172
  signing_key:
173
173
  specification_version: 4
174
174
  summary: Wikitext-to-HTML translator