rinku 1.2.1 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/ext/rinku/autolink.c CHANGED
@@ -137,7 +137,7 @@ check_domain(char *data, size_t size)
137
137
 
138
138
  for (i = 1; i < size - 1; ++i) {
139
139
  if (data[i] == '.') np++;
140
- else if (!isalnum(data[i])) break;
140
+ else if (!isalnum(data[i]) && data[i] != '-') break;
141
141
  }
142
142
 
143
143
  if (!isalnum(data[i - 1]) || np == 0)
data/lib/rinku.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Rinku
2
- VERSION = "1.2.1"
2
+ VERSION = "1.2.2"
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.1'
3
+ s.version = '1.2.2'
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: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
- - 1
10
- version: 1.2.1
9
+ - 2
10
+ version: 1.2.2
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-17 00:00:00 +02:00
18
+ date: 2011-06-19 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies: []
21
21