twitter-text 1.0.3 → 1.0.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.
Files changed (3) hide show
  1. data/Rakefile +3 -3
  2. data/lib/regex.rb +2 -2
  3. metadata +6 -3
data/Rakefile CHANGED
@@ -9,9 +9,9 @@ require 'digest'
9
9
 
10
10
  spec = Gem::Specification.new do |s|
11
11
  s.name = "twitter-text"
12
- s.version = "1.0.3"
13
- s.author = "Matt Sanford"
14
- s.email = "matt@twitter.com"
12
+ s.version = "1.0.4"
13
+ s.authors = ["Matt Sanford", "Patrick Ewing"]
14
+ s.email = ["matt@twitter.com", "patrick.henry.ewing@gmail.com"]
15
15
  s.homepage = "http://twitter.com"
16
16
  s.description = s.summary = "A gem that provides text handling for Twitter"
17
17
 
data/lib/regex.rb CHANGED
@@ -44,8 +44,8 @@ module Twitter
44
44
 
45
45
  # URL related hash regex collection
46
46
  REGEXEN[:valid_preceding_chars] = /(?:[^\/"':!=]|^|\:)/
47
- REGEXEN[:valid_domain] = /(?:[\.-]|[^[:punct:]\s])+\.[a-z]{2,}(?::[0-9]+)?/i
48
- REGEXEN[:valid_url_path_chars] = /[\.\,]?[a-z0-9!\*'\(\);:&=\+\$\/%#\[\]\-_,~@]/i
47
+ REGEXEN[:valid_domain] = /(?:[^[:punct:]\s][\.-][^[:punct:]\s]|[^[:punct:]\s])+\.[a-z]{2,}(?::[0-9]+)?/i
48
+ REGEXEN[:valid_url_path_chars] = /[\.\,]?[a-z0-9!\*'\(\);:=\+\$\/%#\[\]\-_,~@]/i
49
49
  # Valid end-of-path chracters (so /foo. does not gobble the period).
50
50
  # 1. Allow ) for Wikipedia URLs.
51
51
  # 2. Allow =&# for empty URL parameters and other URL-join artifacts
metadata CHANGED
@@ -1,15 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twitter-text
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Sanford
8
+ - Patrick Ewing
8
9
  autorequire: ""
9
10
  bindir: bin
10
11
  cert_chain: []
11
12
 
12
- date: 2010-03-05 00:00:00 -08:00
13
+ date: 2010-03-11 00:00:00 -08:00
13
14
  default_executable:
14
15
  dependencies:
15
16
  - !ruby/object:Gem::Dependency
@@ -23,7 +24,9 @@ dependencies:
23
24
  version: "0"
24
25
  version:
25
26
  description: A gem that provides text handling for Twitter
26
- email: matt@twitter.com
27
+ email:
28
+ - matt@twitter.com
29
+ - patrick.henry.ewing@gmail.com
27
30
  executables: []
28
31
 
29
32
  extensions: []