twitter-text-simpleidn 3.0.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gemtest +0 -0
- data/.gitignore +40 -0
- data/.gitmodules +3 -0
- data/.rspec +2 -0
- data/CHANGELOG.md +35 -0
- data/Gemfile +4 -0
- data/LICENSE +188 -0
- data/README.md +193 -0
- data/Rakefile +52 -0
- data/config/README.md +142 -0
- data/config/v1.json +8 -0
- data/config/v2.json +29 -0
- data/config/v3.json +30 -0
- data/lib/assets/tld_lib.yml +1571 -0
- data/lib/twitter-text.rb +29 -0
- data/lib/twitter-text/autolink.rb +453 -0
- data/lib/twitter-text/configuration.rb +68 -0
- data/lib/twitter-text/deprecation.rb +21 -0
- data/lib/twitter-text/emoji_regex.rb +27 -0
- data/lib/twitter-text/extractor.rb +388 -0
- data/lib/twitter-text/hash_helper.rb +27 -0
- data/lib/twitter-text/hit_highlighter.rb +92 -0
- data/lib/twitter-text/regex.rb +381 -0
- data/lib/twitter-text/rewriter.rb +69 -0
- data/lib/twitter-text/unicode.rb +31 -0
- data/lib/twitter-text/validation.rb +251 -0
- data/lib/twitter-text/weighted_range.rb +24 -0
- data/script/destroy +14 -0
- data/script/generate +14 -0
- data/spec/autolinking_spec.rb +848 -0
- data/spec/configuration_spec.rb +136 -0
- data/spec/extractor_spec.rb +392 -0
- data/spec/hithighlighter_spec.rb +96 -0
- data/spec/regex_spec.rb +76 -0
- data/spec/rewriter_spec.rb +553 -0
- data/spec/spec_helper.rb +139 -0
- data/spec/test_urls.rb +90 -0
- data/spec/twitter_text_spec.rb +25 -0
- data/spec/unicode_spec.rb +35 -0
- data/spec/validation_spec.rb +87 -0
- data/test/conformance_test.rb +242 -0
- data/twitter-text.gemspec +35 -0
- metadata +229 -0
@@ -0,0 +1,35 @@
|
|
1
|
+
# Copyright 2018 Twitter, Inc.
|
2
|
+
# Licensed under the Apache License, Version 2.0
|
3
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
4
|
+
|
5
|
+
# encoding: utf-8
|
6
|
+
|
7
|
+
Gem::Specification.new do |s|
|
8
|
+
s.name = "twitter-text-simpleidn"
|
9
|
+
s.version = "3.0.0.0"
|
10
|
+
s.authors = ["David LaMacchia", "Sudheer Guntupalli", "Kaushik Lakshmikanth", "Jose Antonio Marquez Russo", "Lee Adams",
|
11
|
+
"Yoshimasa Niwa", "Kazuki Ishihara"]
|
12
|
+
s.email = ["shibafu528@gmail.com"]
|
13
|
+
s.homepage = "https://github.com/shibafu528/twitter-text-simpleidn"
|
14
|
+
s.description = s.summary = "A gem that provides text handling for Twitter"
|
15
|
+
s.license = "Apache 2.0"
|
16
|
+
|
17
|
+
s.platform = Gem::Platform::RUBY
|
18
|
+
s.has_rdoc = true
|
19
|
+
s.summary = "Twitter text handling library"
|
20
|
+
|
21
|
+
s.add_development_dependency "test-unit"
|
22
|
+
s.add_development_dependency "multi_json", "~> 1.3"
|
23
|
+
s.add_development_dependency "nokogiri", "~> 1.8.0"
|
24
|
+
s.add_development_dependency "rake"
|
25
|
+
s.add_development_dependency "rdoc"
|
26
|
+
s.add_development_dependency "rspec", "~> 3.0"
|
27
|
+
s.add_development_dependency "simplecov"
|
28
|
+
s.add_runtime_dependency "unf", "~> 0.1.0"
|
29
|
+
s.add_runtime_dependency "simpleidn"
|
30
|
+
|
31
|
+
s.files = `git ls-files`.split("\n") + ['lib/assets/tld_lib.yml'] + Dir['config/*']
|
32
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
33
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
34
|
+
s.require_paths = ["lib"]
|
35
|
+
end
|
metadata
ADDED
@@ -0,0 +1,229 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: twitter-text-simpleidn
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 3.0.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- David LaMacchia
|
8
|
+
- Sudheer Guntupalli
|
9
|
+
- Kaushik Lakshmikanth
|
10
|
+
- Jose Antonio Marquez Russo
|
11
|
+
- Lee Adams
|
12
|
+
- Yoshimasa Niwa
|
13
|
+
- Kazuki Ishihara
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
date: 2019-08-18 00:00:00.000000000 Z
|
18
|
+
dependencies:
|
19
|
+
- !ruby/object:Gem::Dependency
|
20
|
+
name: test-unit
|
21
|
+
requirement: !ruby/object:Gem::Requirement
|
22
|
+
requirements:
|
23
|
+
- - ">="
|
24
|
+
- !ruby/object:Gem::Version
|
25
|
+
version: '0'
|
26
|
+
type: :development
|
27
|
+
prerelease: false
|
28
|
+
version_requirements: !ruby/object:Gem::Requirement
|
29
|
+
requirements:
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: multi_json
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - "~>"
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '1.3'
|
40
|
+
type: :development
|
41
|
+
prerelease: false
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - "~>"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '1.3'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: nokogiri
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - "~>"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 1.8.0
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - "~>"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: 1.8.0
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: rake
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '0'
|
68
|
+
type: :development
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '0'
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: rdoc
|
77
|
+
requirement: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - ">="
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '0'
|
82
|
+
type: :development
|
83
|
+
prerelease: false
|
84
|
+
version_requirements: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - ">="
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
89
|
+
- !ruby/object:Gem::Dependency
|
90
|
+
name: rspec
|
91
|
+
requirement: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - "~>"
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '3.0'
|
96
|
+
type: :development
|
97
|
+
prerelease: false
|
98
|
+
version_requirements: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - "~>"
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '3.0'
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: simplecov
|
105
|
+
requirement: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - ">="
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
type: :development
|
111
|
+
prerelease: false
|
112
|
+
version_requirements: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - ">="
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '0'
|
117
|
+
- !ruby/object:Gem::Dependency
|
118
|
+
name: unf
|
119
|
+
requirement: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - "~>"
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: 0.1.0
|
124
|
+
type: :runtime
|
125
|
+
prerelease: false
|
126
|
+
version_requirements: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - "~>"
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: 0.1.0
|
131
|
+
- !ruby/object:Gem::Dependency
|
132
|
+
name: simpleidn
|
133
|
+
requirement: !ruby/object:Gem::Requirement
|
134
|
+
requirements:
|
135
|
+
- - ">="
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: '0'
|
138
|
+
type: :runtime
|
139
|
+
prerelease: false
|
140
|
+
version_requirements: !ruby/object:Gem::Requirement
|
141
|
+
requirements:
|
142
|
+
- - ">="
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: '0'
|
145
|
+
description: A gem that provides text handling for Twitter
|
146
|
+
email:
|
147
|
+
- shibafu528@gmail.com
|
148
|
+
executables: []
|
149
|
+
extensions: []
|
150
|
+
extra_rdoc_files: []
|
151
|
+
files:
|
152
|
+
- ".gemtest"
|
153
|
+
- ".gitignore"
|
154
|
+
- ".gitmodules"
|
155
|
+
- ".rspec"
|
156
|
+
- CHANGELOG.md
|
157
|
+
- Gemfile
|
158
|
+
- LICENSE
|
159
|
+
- README.md
|
160
|
+
- Rakefile
|
161
|
+
- config/README.md
|
162
|
+
- config/v1.json
|
163
|
+
- config/v2.json
|
164
|
+
- config/v3.json
|
165
|
+
- lib/assets/tld_lib.yml
|
166
|
+
- lib/twitter-text.rb
|
167
|
+
- lib/twitter-text/autolink.rb
|
168
|
+
- lib/twitter-text/configuration.rb
|
169
|
+
- lib/twitter-text/deprecation.rb
|
170
|
+
- lib/twitter-text/emoji_regex.rb
|
171
|
+
- lib/twitter-text/extractor.rb
|
172
|
+
- lib/twitter-text/hash_helper.rb
|
173
|
+
- lib/twitter-text/hit_highlighter.rb
|
174
|
+
- lib/twitter-text/regex.rb
|
175
|
+
- lib/twitter-text/rewriter.rb
|
176
|
+
- lib/twitter-text/unicode.rb
|
177
|
+
- lib/twitter-text/validation.rb
|
178
|
+
- lib/twitter-text/weighted_range.rb
|
179
|
+
- script/destroy
|
180
|
+
- script/generate
|
181
|
+
- spec/autolinking_spec.rb
|
182
|
+
- spec/configuration_spec.rb
|
183
|
+
- spec/extractor_spec.rb
|
184
|
+
- spec/hithighlighter_spec.rb
|
185
|
+
- spec/regex_spec.rb
|
186
|
+
- spec/rewriter_spec.rb
|
187
|
+
- spec/spec_helper.rb
|
188
|
+
- spec/test_urls.rb
|
189
|
+
- spec/twitter_text_spec.rb
|
190
|
+
- spec/unicode_spec.rb
|
191
|
+
- spec/validation_spec.rb
|
192
|
+
- test/conformance_test.rb
|
193
|
+
- twitter-text.gemspec
|
194
|
+
homepage: https://github.com/shibafu528/twitter-text-simpleidn
|
195
|
+
licenses:
|
196
|
+
- Apache 2.0
|
197
|
+
metadata: {}
|
198
|
+
post_install_message:
|
199
|
+
rdoc_options: []
|
200
|
+
require_paths:
|
201
|
+
- lib
|
202
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
203
|
+
requirements:
|
204
|
+
- - ">="
|
205
|
+
- !ruby/object:Gem::Version
|
206
|
+
version: '0'
|
207
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
208
|
+
requirements:
|
209
|
+
- - ">="
|
210
|
+
- !ruby/object:Gem::Version
|
211
|
+
version: '0'
|
212
|
+
requirements: []
|
213
|
+
rubygems_version: 3.0.4
|
214
|
+
signing_key:
|
215
|
+
specification_version: 4
|
216
|
+
summary: Twitter text handling library
|
217
|
+
test_files:
|
218
|
+
- spec/autolinking_spec.rb
|
219
|
+
- spec/configuration_spec.rb
|
220
|
+
- spec/extractor_spec.rb
|
221
|
+
- spec/hithighlighter_spec.rb
|
222
|
+
- spec/regex_spec.rb
|
223
|
+
- spec/rewriter_spec.rb
|
224
|
+
- spec/spec_helper.rb
|
225
|
+
- spec/test_urls.rb
|
226
|
+
- spec/twitter_text_spec.rb
|
227
|
+
- spec/unicode_spec.rb
|
228
|
+
- spec/validation_spec.rb
|
229
|
+
- test/conformance_test.rb
|