twitter-text 1.3.4 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/regex.rb +3 -3
  2. data/twitter-text.gemspec +3 -3
  3. metadata +8 -4
data/lib/regex.rb CHANGED
@@ -56,11 +56,11 @@ module Twitter
56
56
  # URL related hash regex collection
57
57
  REGEXEN[:valid_preceding_chars] = /(?:[^-\/"':!=A-Z0-9_@@]|^|\:)/i
58
58
 
59
- REGEXEN[:valid_subdomain] = /(?:[^[:punct:]\s](?:[_-]|[^[:punct:]\s])*)?[^[:punct:]\s]\./
60
- REGEXEN[:valid_domain_name] = /(?:[^[:punct:]\s](?:[-]|[^[:punct:]\s])*)?[^[:punct:]\s]/
59
+ REGEXEN[:valid_subdomain] = /([^[:punct:]\s]([_-]|[^[:punct:]\s])*)?[^[:punct:]\s]\./
60
+ REGEXEN[:valid_domain_name] = /([^[:punct:]\s]([-]|[^[:punct:]\s])*)?[^[:punct:]\s]/
61
61
  REGEXEN[:valid_domain] = /#{REGEXEN[:valid_subdomain]}*#{REGEXEN[:valid_domain_name]}\.[a-z]{2,}(?::[0-9]+)?/i
62
62
 
63
- REGEXEN[:valid_general_url_path_chars] = /[a-z0-9!\*';:=\+\,\$\/%#\[\]\-_~|\.]/i
63
+ REGEXEN[:valid_general_url_path_chars] = /[a-z0-9!\*';:=\+\,\$\/%#\[\]\-_~|]/i
64
64
  # Allow URL paths to contain balanced parens
65
65
  # 1. Used in Wikipedia URLs like /Primer_(film)
66
66
  # 2. Used in IIS sessions like /S(dfd346)/
data/twitter-text.gemspec CHANGED
@@ -1,8 +1,8 @@
1
1
  spec = Gem::Specification.new do |s|
2
2
  s.name = "twitter-text"
3
- s.version = "1.3.4"
4
- s.authors = ["Matt Sanford", "Patrick Ewing", "Ben Cherry", "Britt Selvitelle", "Raffi Krikorian"]
5
- s.email = ["matt@twitter.com", "patrick.henry.ewing@gmail.com", "bcherry@gmail.com", "bs@brittspace.com", "raffi@twitter.com"]
3
+ s.version = "1.4.1"
4
+ s.authors = ["Matt Sanford", "Patrick Ewing", "Ben Cherry", "Britt Selvitelle", "Raffi Krikorian", "J.P. Cummins", "Yoshimasa Niwa"]
5
+ s.email = ["matt@twitter.com", "patrick.henry.ewing@gmail.com", "bcherry@gmail.com", "bs@brittspace.com", "raffi@twitter.com", "jcummins@twitter.com", "niw@niw.at"]
6
6
  s.homepage = "http://twitter.com"
7
7
  s.description = s.summary = "A gem that provides text handling for Twitter"
8
8
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twitter-text
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 5
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
- - 3
9
8
  - 4
10
- version: 1.3.4
9
+ - 1
10
+ version: 1.4.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Matt Sanford
@@ -15,11 +15,13 @@ authors:
15
15
  - Ben Cherry
16
16
  - Britt Selvitelle
17
17
  - Raffi Krikorian
18
+ - J.P. Cummins
19
+ - Yoshimasa Niwa
18
20
  autorequire:
19
21
  bindir: bin
20
22
  cert_chain: []
21
23
 
22
- date: 2011-04-21 00:00:00 -07:00
24
+ date: 2011-04-19 00:00:00 -07:00
23
25
  default_executable:
24
26
  dependencies:
25
27
  - !ruby/object:Gem::Dependency
@@ -99,6 +101,8 @@ email:
99
101
  - bcherry@gmail.com
100
102
  - bs@brittspace.com
101
103
  - raffi@twitter.com
104
+ - jcummins@twitter.com
105
+ - niw@niw.at
102
106
  executables: []
103
107
 
104
108
  extensions: []