wikitext 4.6 → 4.7

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: 9723497ddb8ba495ba79b5041fb4999204b84e3cf34a2552b40da07b2aac1bb2
4
- data.tar.gz: 818604b15e908c8da0b89f6ac4e4f4f3c7c05d50297a2ba36b04810692e49266
3
+ metadata.gz: dd80b96f9467c70bbe9ec9708b9484b03e69900234003fc3287d807a61946062
4
+ data.tar.gz: 525a0cdcc6ec5d5bdce0eb36361397c61db534411043fbf27b4b09bbed0023e7
5
5
  SHA512:
6
- metadata.gz: 9e74de95e79e8fb9f1a9ad1bca288383c65b438bde042d94a93ab2ba859a43921d92bba41a41cc69ebad8755542b9abf836878c7b59554dc2a63e830910666f6
7
- data.tar.gz: 396b410915be9afa146cf86d4340cac201ae7fbb1d26847f8fa10584a267e5a55e3c544d21cebdb2ce905bc9572e2d9dbfc96acab0ab985529640f29f8378721
6
+ metadata.gz: 2360e34ad4e77159d152c8caec1eca2d1cb2b6225a427c74d1da59248d78c1b65de3b237da62f2254ffbb376f1cbc2228e52df86bbb22db4197388452521105d
7
+ data.tar.gz: 33c00b12b8b2e25d9a36f8837ed28fa2b5cac9b914bde076592df2f8e038d0a22bd98e402c8b053b8123e6ad950d923de9dfb6abf06eb631eb5c6958b232d360
@@ -28,7 +28,8 @@ def missing item
28
28
  exit 1
29
29
  end
30
30
 
31
- if RUBY_VERSION !~ /\A2\.[0-6](\.|$)/
31
+ if RUBY_VERSION !~ /\A2\.[0-7](\.|$)/ and
32
+ RUBY_VERSION !~ /\A3\.[0](\.|$)/
32
33
  raise "unsupported Ruby version: #{RUBY_VERSION}"
33
34
  end
34
35
 
@@ -22,5 +22,5 @@
22
22
  # POSSIBILITY OF SUCH DAMAGE.
23
23
 
24
24
  module Wikitext
25
- VERSION = '4.6'
25
+ VERSION = '4.7'
26
26
  end # module Wikitext
@@ -86,9 +86,8 @@ describe Wikitext, 'encoding a link target' do
86
86
  end
87
87
 
88
88
  it 'should get the same answer as URI.escape' do
89
- reserved = Regexp.new("[^#{URI::PATTERN::UNRESERVED}]")
90
- ['foo bar', 'http://www.google.com/search?q=hello&foo=bar', ''].each do |string|
91
- Wikitext::Parser.encode_link_target(string).should == URI.escape(string, reserved).downcase
92
- end
89
+ 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
+ Wikitext::Parser.encode_link_target('€').should == '%e2%82%ac'
93
92
  end
94
93
  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.6'
4
+ version: '4.7'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Greg Hurrell
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-25 00:00:00.000000000 Z
11
+ date: 2020-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 0.9.12
61
+ version: '0.9'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 0.9.12
68
+ version: '0.9'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: wopen3
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -148,11 +148,11 @@ files:
148
148
  - spec/version_spec.rb
149
149
  - spec/vim_formatter.rb
150
150
  - spec/wikitext_spec.rb
151
- homepage: https://wincent.com/products/wikitext
151
+ homepage: https://github.com/wincent/wikitext
152
152
  licenses:
153
153
  - BSD-2-Clause
154
154
  metadata: {}
155
- post_install_message:
155
+ post_install_message:
156
156
  rdoc_options: []
157
157
  require_paths:
158
158
  - ext
@@ -168,8 +168,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
168
168
  - !ruby/object:Gem::Version
169
169
  version: '0'
170
170
  requirements: []
171
- rubygems_version: 3.0.1
172
- signing_key:
171
+ rubygems_version: 3.1.4
172
+ signing_key:
173
173
  specification_version: 4
174
174
  summary: Wikitext-to-HTML translator
175
175
  test_files: []