twitter-text 1.4.6 → 1.4.7

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -93,6 +93,7 @@ Thanks to everybody who has filed issues, provided feedback or contributed patch
93
93
 
94
94
  * Patches from the community …
95
95
  * Jean-Philippe Bougie - http://github.com/jpbougie
96
+ * Erik Michaels-Ober - https://github.com/sferik
96
97
 
97
98
  * Anyone who has filed an issue. It helps. Really.
98
99
 
data/lib/regex.rb CHANGED
@@ -60,7 +60,7 @@ module Twitter
60
60
 
61
61
  CJ_HASHTAG_CHARACTERS = [
62
62
  (0x30A1..0x30FA).to_a, # Katakana (full-width)
63
- (0xFF66..0xFF9D).to_a, # Katakana (half-width)
63
+ (0xFF66..0xFF9E).to_a, # Katakana (half-width)
64
64
  (0xFF10..0xFF19).to_a, (0xFF21..0xFF3A).to_a, (0xFF41..0xFF5A).to_a, # Latin (full-width)
65
65
  (0x3041..0x3096).to_a, # Hiragana
66
66
  (0x3400..0x4DBF).to_a, # Kanji (CJK Extension A)
@@ -71,7 +71,7 @@ module Twitter
71
71
  (0x2F800..0x2FA1F).to_a # Kanji (CJK supplement)
72
72
  ].flatten.pack('U*').freeze
73
73
 
74
- HASHTAG_BOUNDARY = /(?:\A|\z|#{REGEXEN[:spaces]}|「|」|。|\.|!)/
74
+ HASHTAG_BOUNDARY = /(?:\A|\z|#{REGEXEN[:spaces]}|「|」|。|、|\.|!)/
75
75
 
76
76
  # A hashtag must contain latin characters, numbers and underscores, but not all numbers.
77
77
  HASHTAG_ALPHA = /[a-z_#{LATIN_ACCENTS}#{NON_LATIN_HASHTAG_CHARS}#{CJ_HASHTAG_CHARACTERS}]/io
data/twitter-text.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  spec = Gem::Specification.new do |s|
2
2
  s.name = "twitter-text"
3
- s.version = "1.4.6"
3
+ s.version = "1.4.7"
4
4
  s.authors = ["Matt Sanford", "Patrick Ewing", "Ben Cherry", "Britt Selvitelle", "Raffi Krikorian", "J.P. Cummins", "Yoshimasa Niwa"]
5
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"
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: 11
4
+ hash: 9
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 4
9
- - 6
10
- version: 1.4.6
9
+ - 7
10
+ version: 1.4.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Matt Sanford
@@ -21,7 +21,7 @@ autorequire:
21
21
  bindir: bin
22
22
  cert_chain: []
23
23
 
24
- date: 2011-06-22 00:00:00 -07:00
24
+ date: 2011-07-08 00:00:00 -07:00
25
25
  default_executable:
26
26
  dependencies:
27
27
  - !ruby/object:Gem::Dependency