rails_autolink 1.1.3 → 1.1.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0eb027e35c46aaa9fbb8cdea840c2781b32e8954
4
- data.tar.gz: 75d8046d1919f2460dc9be6672d98d2c86480d62
3
+ metadata.gz: d0d13b2069f253b2462d1ea876055e7d43897d5a
4
+ data.tar.gz: add8c39f50d8e3632376e6eefca0d523fc528d83
5
5
  SHA512:
6
- metadata.gz: 2cae5a7c7e52b92a11f023a7327870980861e4374ff927c9e184e21d151ec4f25901e9fea4e6d374d9d60722e2a76f6103ca5589851695df38a48c2b9911cb5d
7
- data.tar.gz: 3e8fbd1fa381a369612b23ae9667d4ab8c77da5bacbd704c35eabd07c98b3d617cb16092793183fbd2dc88b26f2db307b2b5c8d55f325b61213c377fa4d2f926
6
+ metadata.gz: 919984fd569f0d131b296be468a718672947efeb8a1aee0887d7e0a9c5c32c5b4241db8d16585a41b945a15024e5edde050f89c5659742c5a10b207e53da1ca3
7
+ data.tar.gz: 51ab4ad52e33448124dcf683472240d4c1ea0373ec03cd5d2ccee2c21014c3fd184897532547815f033ad831bb76e8adceb57679f684dd4ea606cf02f3f447df
@@ -72,7 +72,7 @@ module RailsAutolink
72
72
 
73
73
  AUTO_LINK_RE = %r{
74
74
  (?: ((?:ed2k|ftp|http|https|irc|mailto|news|gopher|nntp|telnet|webcal|xmpp|callto|feed|svn|urn|aim|rsync|tag|ssh|sftp|rtsp|afs|file):)// | www\. )
75
- [^\s<]+
75
+ [^\s<\u00A0]+
76
76
  }x
77
77
 
78
78
  # regexps for determining context, used high-volume
@@ -1,3 +1,3 @@
1
1
  module RailsAutolink
2
- VERSION = '1.1.3'
2
+ VERSION = '1.1.4'
3
3
  end
@@ -11,6 +11,7 @@ Gem::Specification.new do |s|
11
11
  s.description = 'This is an extraction of the `auto_link` method from rails. The `auto_link` method was removed from Rails in version Rails 3.1. This gem is meant to bridge the gap for people migrating.'
12
12
 
13
13
  s.add_dependency 'rails', '> 3.1'
14
+ s.license = 'MIT'
14
15
 
15
16
  s.files = Dir.glob("{test,lib/**/*}") + `git ls-files -z`.split("\0")
16
17
  end
@@ -274,6 +274,10 @@ class TestRailsAutolink < MiniTest::Unit::TestCase
274
274
  with_kcode 'u' do
275
275
  assert_equal %(浅草.rbの公式サイトはこちら#{link11_result}), auto_link("浅草.rbの公式サイトはこちら#{link11_raw}")
276
276
  end
277
+
278
+ link12_raw = 'http://tools.ietf.org/html/rfc3986'
279
+ link12_result = generate_result(link12_raw)
280
+ assert_equal %(<p>#{link12_result} text-after-nonbreaking-space</p>), auto_link("<p>#{link12_raw} text-after-nonbreaking-space</p>")
277
281
  end
278
282
 
279
283
  def test_auto_link_parsing
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_autolink
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Patterson
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-09-12 00:00:00.000000000 Z
13
+ date: 2013-09-21 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -46,7 +46,8 @@ files:
46
46
  - rails_autolink.gemspec
47
47
  - test/test_rails_autolink.rb
48
48
  homepage: https://github.com/tenderlove/rails_autolink
49
- licenses: []
49
+ licenses:
50
+ - MIT
50
51
  metadata: {}
51
52
  post_install_message:
52
53
  rdoc_options: []