twitter-text 1.14.6 → 1.14.7
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.
- checksums.yaml +4 -4
- data/lib/assets/tld_lib.yml +6 -0
- data/lib/twitter-text/regex.rb +1 -1
- data/twitter-text.gemspec +2 -1
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1dd5437a51b3767c45499c3d5d4b438bd1b7ba1
|
4
|
+
data.tar.gz: 0c7bcee79f7fc1e955cad42ddba8c9318c885ae5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a9ad3b3b822e358070f6722e4d88a362c05016584739d290beafe2e8763aaf202e9198a16855b140acefd2b87f9b1d29990254422750353a786437198f5f8c8
|
7
|
+
data.tar.gz: 4d1ea6e3fd1a158bfcaaad04454723145bdb66c991a51e499015aaaa135fb9792120391032a7ee269cf1d37a71d4cddd9c03511a78026c66830c007c286372f7
|
data/lib/assets/tld_lib.yml
CHANGED
@@ -393,6 +393,7 @@ generic:
|
|
393
393
|
- "بازار"
|
394
394
|
- "العليان"
|
395
395
|
- "ارامكو"
|
396
|
+
- "اتصالات"
|
396
397
|
- "ابوظبي"
|
397
398
|
- "קום"
|
398
399
|
- "сайт"
|
@@ -646,6 +647,7 @@ generic:
|
|
646
647
|
- security
|
647
648
|
- secure
|
648
649
|
- seat
|
650
|
+
- search
|
649
651
|
- scot
|
650
652
|
- scor
|
651
653
|
- scjohnson
|
@@ -771,6 +773,7 @@ generic:
|
|
771
773
|
- photo
|
772
774
|
- phone
|
773
775
|
- philips
|
776
|
+
- phd
|
774
777
|
- pharmacy
|
775
778
|
- pfizer
|
776
779
|
- pet
|
@@ -890,6 +893,7 @@ generic:
|
|
890
893
|
- microsoft
|
891
894
|
- miami
|
892
895
|
- metlife
|
896
|
+
- merckmsd
|
893
897
|
- meo
|
894
898
|
- menu
|
895
899
|
- men
|
@@ -910,6 +914,7 @@ generic:
|
|
910
914
|
- markets
|
911
915
|
- marketing
|
912
916
|
- market
|
917
|
+
- map
|
913
918
|
- mango
|
914
919
|
- management
|
915
920
|
- man
|
@@ -1103,6 +1108,7 @@ generic:
|
|
1103
1108
|
- gucci
|
1104
1109
|
- guardian
|
1105
1110
|
- group
|
1111
|
+
- grocery
|
1106
1112
|
- gripe
|
1107
1113
|
- green
|
1108
1114
|
- gratis
|
data/lib/twitter-text/regex.rb
CHANGED
@@ -142,7 +142,7 @@ module Twitter
|
|
142
142
|
HASHTAG_LETTERS_NUMERALS_SET = "[#{HASHTAG_LETTERS_NUMERALS}]"
|
143
143
|
HASHTAG_LETTERS_SET = "[#{HASHTAG_LETTERS_AND_MARKS}]"
|
144
144
|
|
145
|
-
HASHTAG = /(\A|[^&#{HASHTAG_LETTERS_NUMERALS}])(#|#)(?!\ufe0f|\u20e3)(#{HASHTAG_LETTERS_NUMERALS_SET}*#{HASHTAG_LETTERS_SET}#{HASHTAG_LETTERS_NUMERALS_SET}*)/io
|
145
|
+
HASHTAG = /(\A|\ufe0e|\ufe0f|[^&#{HASHTAG_LETTERS_NUMERALS}])(#|#)(?!\ufe0f|\u20e3)(#{HASHTAG_LETTERS_NUMERALS_SET}*#{HASHTAG_LETTERS_SET}#{HASHTAG_LETTERS_NUMERALS_SET}*)/io
|
146
146
|
|
147
147
|
REGEXEN[:valid_hashtag] = /#{HASHTAG}/io
|
148
148
|
# Used in Extractor for final filtering
|
data/twitter-text.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "twitter-text"
|
5
|
-
s.version = "1.14.
|
5
|
+
s.version = "1.14.7"
|
6
6
|
s.authors = ["Matt Sanford", "Patrick Ewing", "Ben Cherry", "Britt Selvitelle",
|
7
7
|
"Raffi Krikorian", "J.P. Cummins", "Yoshimasa Niwa", "Keita Fujii", "James Koval"]
|
8
8
|
s.email = ["matt@twitter.com", "patrick.henry.ewing@gmail.com", "bcherry@gmail.com", "bs@brittspace.com",
|
@@ -15,6 +15,7 @@ Gem::Specification.new do |s|
|
|
15
15
|
s.has_rdoc = true
|
16
16
|
s.summary = "Twitter text handling library"
|
17
17
|
|
18
|
+
s.add_development_dependency "test-unit"
|
18
19
|
s.add_development_dependency "multi_json", "~> 1.3"
|
19
20
|
s.add_development_dependency "nokogiri", "~> 1.5.10"
|
20
21
|
s.add_development_dependency "rake", "~> 11.1" # 12 removes method named `last_comment`
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twitter-text
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.14.
|
4
|
+
version: 1.14.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Sanford
|
@@ -16,8 +16,22 @@ authors:
|
|
16
16
|
autorequire:
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
|
-
date: 2017-
|
19
|
+
date: 2017-07-03 00:00:00.000000000 Z
|
20
20
|
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
name: test-unit
|
23
|
+
requirement: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - ">="
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: '0'
|
28
|
+
type: :development
|
29
|
+
prerelease: false
|
30
|
+
version_requirements: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - ">="
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '0'
|
21
35
|
- !ruby/object:Gem::Dependency
|
22
36
|
name: multi_json
|
23
37
|
requirement: !ruby/object:Gem::Requirement
|
@@ -184,7 +198,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
184
198
|
version: '0'
|
185
199
|
requirements: []
|
186
200
|
rubyforge_project:
|
187
|
-
rubygems_version: 2.4.5
|
201
|
+
rubygems_version: 2.4.5.1
|
188
202
|
signing_key:
|
189
203
|
specification_version: 4
|
190
204
|
summary: Twitter text handling library
|