rinku 2.0.5 → 2.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ext/rinku/utf8.c +3 -1
- data/lib/rinku.rb +1 -1
- data/rinku.gemspec +1 -1
- data/test/autolink_test.rb +5 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f7f8c8339abdc0a121db5d557f431d4532fc7f17ac8ae0ceede5b36a8a79235
|
4
|
+
data.tar.gz: b58a5fd614fafbcd87e7402e7cb54646af697ef6e908ed3c533683e8d1128e1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e52f7b000fa28489a04aac17189cc401c863c0c2620f5170c4700b855c233fb6fa8bb8f81ab0c096919311e5aac593b05385ce49d279ed03679cb3c3a405112
|
7
|
+
data.tar.gz: 8b8453c5ff30e0a0b81c54bd8374a84b2ec847b28fd08929f559f97388ddf69cd62e4ced564a834328526df0d41cc21ea3998b1dc453a74d0170eab85647f389
|
data/ext/rinku/utf8.c
CHANGED
@@ -104,7 +104,9 @@ size_t utf8proc_find_space(const uint8_t *str, size_t pos, size_t size)
|
|
104
104
|
while (pos < size) {
|
105
105
|
const size_t last = pos;
|
106
106
|
int32_t uc = utf8proc_next(str, &pos);
|
107
|
-
if (
|
107
|
+
if (uc == 0xFFFD)
|
108
|
+
return size;
|
109
|
+
else if (utf8proc_is_space(uc))
|
108
110
|
return last;
|
109
111
|
}
|
110
112
|
return size;
|
data/lib/rinku.rb
CHANGED
data/rinku.gemspec
CHANGED
data/test/autolink_test.rb
CHANGED
@@ -27,7 +27,7 @@ class RinkuAutoLinkTest < Minitest::Test
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def test_global_skip_tags
|
30
|
-
|
30
|
+
assert_nil Rinku.skip_tags
|
31
31
|
Rinku.skip_tags = ['pre']
|
32
32
|
assert_equal Rinku.skip_tags, ['pre']
|
33
33
|
|
@@ -438,4 +438,8 @@ This is just a test. <a href="http://www.pokemon.com">http://www.pokemon.com</a>
|
|
438
438
|
def test_underscore_in_subdomain
|
439
439
|
assert_linked "<a href=\"http://foo_bar.xyz.com\">http://foo_bar.xyz.com</a>", "http://foo_bar.xyz.com"
|
440
440
|
end
|
441
|
+
|
442
|
+
def test_regression_84
|
443
|
+
assert_linked "<a href=\"https://www.keepright.atの情報をもとにエラー修正\">https://www.keepright.atの情報をもとにエラー修正</a>", "https://www.keepright.atの情報をもとにエラー修正"
|
444
|
+
end
|
441
445
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rinku
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vicent Marti
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|