rinku 1.2.0 → 1.2.1
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.
- data/README.markdown +1 -1
- data/ext/rinku/rinku.c +1 -1
- data/lib/rails_rinku.rb +1 -1
- data/lib/rinku.rb +1 -1
- data/rinku.gemspec +1 -1
- metadata +4 -4
data/README.markdown
CHANGED
@@ -43,7 +43,7 @@ specifier but starting with `www.` will also be autolinked, defaulting to
|
|
43
43
|
the `http://` protocol.
|
44
44
|
|
45
45
|
- `text` is a string in plain text or HTML markup. If the string is formatted in
|
46
|
-
HTML, Rinku is smart enough to skip the links that are already enclosed in
|
46
|
+
HTML, Rinku is smart enough to skip the links that are already enclosed in `<a>`
|
47
47
|
tags.
|
48
48
|
|
49
49
|
- `mode` is a symbol, either :all, :urls or :email_addresses, which specifies which
|
data/ext/rinku/rinku.c
CHANGED
@@ -193,7 +193,7 @@ rinku_autolink(
|
|
193
193
|
size_t rewind, link_end;
|
194
194
|
char action;
|
195
195
|
|
196
|
-
while (end < text->size && (action = active_chars[
|
196
|
+
while (end < text->size && (action = active_chars[text->data[end] & 0xFF]) == 0)
|
197
197
|
end++;
|
198
198
|
|
199
199
|
if (end == text->size) {
|
data/lib/rails_rinku.rb
CHANGED
data/lib/rinku.rb
CHANGED
data/rinku.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rinku
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 29
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 1.2.
|
9
|
+
- 1
|
10
|
+
version: 1.2.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- "Vicent Mart\xC3\xAD"
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-06-
|
18
|
+
date: 2011-06-17 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|