rinku 2.0.5 → 2.0.6

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: 20e9884a2e337d4058ce73eaa6be94c3c7ab49d464d4d5121de480f3ce08297a
4
- data.tar.gz: a42374d316c4138d29391f0bb1ce928d9db9cc2b213ed3801bd8a22b199f95fc
3
+ metadata.gz: 8f7f8c8339abdc0a121db5d557f431d4532fc7f17ac8ae0ceede5b36a8a79235
4
+ data.tar.gz: b58a5fd614fafbcd87e7402e7cb54646af697ef6e908ed3c533683e8d1128e1e
5
5
  SHA512:
6
- metadata.gz: 016fdc90a1ce59adae6158424b1d762f6f3d49be0bb55472651417091727cd6a10ef8f7fc8b79a90bea3457d656205bc65c748df752b00e4517b01c810400969
7
- data.tar.gz: 4b30082da4e29825b5eae3ad07ce88f7a2f5c98fff1f1a1569a70affbdac954a35fdcc90be50154aacaf2a4b8cf2264647783c6d70a04356ce702389f11983fb
6
+ metadata.gz: 8e52f7b000fa28489a04aac17189cc401c863c0c2620f5170c4700b855c233fb6fa8bb8f81ab0c096919311e5aac593b05385ce49d279ed03679cb3c3a405112
7
+ data.tar.gz: 8b8453c5ff30e0a0b81c54bd8374a84b2ec847b28fd08929f559f97388ddf69cd62e4ced564a834328526df0d41cc21ea3998b1dc453a74d0170eab85647f389
@@ -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 (utf8proc_is_space(uc))
107
+ if (uc == 0xFFFD)
108
+ return size;
109
+ else if (utf8proc_is_space(uc))
108
110
  return last;
109
111
  }
110
112
  return size;
@@ -1,5 +1,5 @@
1
1
  module Rinku
2
- VERSION = "2.0.5"
2
+ VERSION = "2.0.6"
3
3
 
4
4
  class << self
5
5
  attr_accessor :skip_tags
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'rinku'
3
- s.version = '2.0.5'
3
+ s.version = '2.0.6'
4
4
  s.summary = "Mostly autolinking"
5
5
  s.description = <<-EOF
6
6
  A fast and very smart autolinking library that
@@ -27,7 +27,7 @@ class RinkuAutoLinkTest < Minitest::Test
27
27
  end
28
28
 
29
29
  def test_global_skip_tags
30
- assert_equal Rinku.skip_tags, nil
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.5
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-02-11 00:00:00.000000000 Z
11
+ date: 2019-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake