rinku 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/ext/rinku/rinku.c +4 -3
- data/rinku.gemspec +1 -1
- metadata +23 -39
data/ext/rinku/rinku.c
CHANGED
@@ -26,6 +26,7 @@
|
|
26
26
|
|
27
27
|
#include "autolink.h"
|
28
28
|
#include "buffer.h"
|
29
|
+
#include "houdini.h"
|
29
30
|
|
30
31
|
#include <string.h>
|
31
32
|
#include <stdlib.h>
|
@@ -170,7 +171,7 @@ rinku_autolink(
|
|
170
171
|
int link_count = 0;
|
171
172
|
|
172
173
|
if (!text || size == 0)
|
173
|
-
return;
|
174
|
+
return 0;
|
174
175
|
|
175
176
|
memset(active_chars, 0x0, sizeof(active_chars));
|
176
177
|
|
@@ -199,7 +200,7 @@ rinku_autolink(
|
|
199
200
|
|
200
201
|
while (i < size) {
|
201
202
|
size_t rewind, link_end;
|
202
|
-
char action;
|
203
|
+
char action = 0;
|
203
204
|
|
204
205
|
while (end < size && (action = active_chars[text[end]]) == 0)
|
205
206
|
end++;
|
@@ -344,7 +345,7 @@ rb_rinku_autolink(int argc, VALUE *argv, VALUE self)
|
|
344
345
|
}
|
345
346
|
|
346
347
|
if (!NIL_P(rb_skip)) {
|
347
|
-
|
348
|
+
size_t i;
|
348
349
|
|
349
350
|
Check_Type(rb_skip, T_ARRAY);
|
350
351
|
|
data/rinku.gemspec
CHANGED
metadata
CHANGED
@@ -1,32 +1,25 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: rinku
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.3.1
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 3
|
9
|
-
- 0
|
10
|
-
version: 1.3.0
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
13
|
-
-
|
7
|
+
authors:
|
8
|
+
- Vicent Martí
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
date: 2011-11-08 00:00:00 Z
|
12
|
+
date: 2011-11-08 00:00:00.000000000 Z
|
19
13
|
dependencies: []
|
20
|
-
|
21
|
-
|
14
|
+
description: ! " A fast and very smart autolinking library that\n acts as a
|
15
|
+
drop-in replacement for Rails `auto_link`\n"
|
22
16
|
email: vicent@github.com
|
23
17
|
executables: []
|
24
|
-
|
25
|
-
extensions:
|
18
|
+
extensions:
|
26
19
|
- ext/rinku/extconf.rb
|
27
|
-
extra_rdoc_files:
|
20
|
+
extra_rdoc_files:
|
28
21
|
- COPYING
|
29
|
-
files:
|
22
|
+
files:
|
30
23
|
- COPYING
|
31
24
|
- README.markdown
|
32
25
|
- Rakefile
|
@@ -45,36 +38,27 @@ files:
|
|
45
38
|
- test/autolink_test.rb
|
46
39
|
homepage: http://github.com/tanoku/rinku
|
47
40
|
licenses: []
|
48
|
-
|
49
41
|
post_install_message:
|
50
42
|
rdoc_options: []
|
51
|
-
|
52
|
-
require_paths:
|
43
|
+
require_paths:
|
53
44
|
- lib
|
54
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
45
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
55
46
|
none: false
|
56
|
-
requirements:
|
57
|
-
- -
|
58
|
-
- !ruby/object:Gem::Version
|
59
|
-
|
60
|
-
|
61
|
-
- 0
|
62
|
-
version: "0"
|
63
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
47
|
+
requirements:
|
48
|
+
- - ! '>='
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: '0'
|
51
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
64
52
|
none: false
|
65
|
-
requirements:
|
66
|
-
- -
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
|
69
|
-
segments:
|
70
|
-
- 0
|
71
|
-
version: "0"
|
53
|
+
requirements:
|
54
|
+
- - ! '>='
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '0'
|
72
57
|
requirements: []
|
73
|
-
|
74
58
|
rubyforge_project:
|
75
59
|
rubygems_version: 1.8.6
|
76
60
|
signing_key:
|
77
61
|
specification_version: 3
|
78
62
|
summary: Mostly autolinking
|
79
|
-
test_files:
|
63
|
+
test_files:
|
80
64
|
- test/autolink_test.rb
|