rinku 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
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 <a>
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[(int)text->data[end]]) == 0)
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
@@ -2,7 +2,7 @@ require 'rinku'
2
2
 
3
3
  module RailsRinku
4
4
  def auto_link(text, *args, &block)
5
- return ''.html_safe if text.blank?
5
+ return '' if text.blank?
6
6
 
7
7
  options = args.size == 2 ? {} : args.extract_options!
8
8
  unless args.empty?
data/lib/rinku.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Rinku
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  extend self
4
4
  end
5
5
 
data/rinku.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'rinku'
3
- s.version = '1.2.0'
3
+ s.version = '1.2.1'
4
4
  s.summary = "Mostly autolinking"
5
5
  s.description = <<-EOF
6
6
  A fast and very smart autolinking library that
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: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
- - 0
10
- version: 1.2.0
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-11 00:00:00 +02:00
18
+ date: 2011-06-17 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies: []
21
21