twitter-text-relative 1.6.2.pre.3 → 1.6.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +1 -12
- data/lib/{twitter-text-relative → twitter-text}/autolink.rb +1 -1
- data/lib/{twitter-text-relative → twitter-text}/deprecation.rb +0 -0
- data/lib/{twitter-text-relative → twitter-text}/extractor.rb +0 -0
- data/lib/{twitter-text-relative → twitter-text}/hash_helper.rb +0 -0
- data/lib/{twitter-text-relative → twitter-text}/hit_highlighter.rb +0 -0
- data/lib/{twitter-text-relative → twitter-text}/regex.rb +0 -0
- data/lib/{twitter-text-relative → twitter-text}/rewriter.rb +0 -0
- data/lib/{twitter-text-relative → twitter-text}/unicode.rb +0 -0
- data/lib/{twitter-text-relative → twitter-text}/validation.rb +0 -0
- data/lib/{twitter-text-relative.rb → twitter-text.rb} +1 -1
- data/spec/spec_helper.rb +1 -1
- data/spec/twitter_text_spec.rb +1 -1
- data/test/conformance_test.rb +2 -2
- data/twitter-text-relative.gemspec +1 -1
- metadata +122 -117
- checksums.yaml +0 -15
data/README.rdoc
CHANGED
@@ -1,15 +1,4 @@
|
|
1
|
-
|
2
|
-
PERSONAL PLAYGROUND - PLEASE USE THE ORIGINAL FROM https://github.com/twitter/twitter-text-rb
|
3
|
-
PERSONAL PLAYGROUND - PLEASE USE THE ORIGINAL FROM https://github.com/twitter/twitter-text-rb
|
4
|
-
PERSONAL PLAYGROUND - PLEASE USE THE ORIGINAL FROM https://github.com/twitter/twitter-text-rb
|
5
|
-
PERSONAL PLAYGROUND - PLEASE USE THE ORIGINAL FROM https://github.com/twitter/twitter-text-rb
|
6
|
-
PERSONAL PLAYGROUND - PLEASE USE THE ORIGINAL FROM https://github.com/twitter/twitter-text-rb
|
7
|
-
PERSONAL PLAYGROUND - PLEASE USE THE ORIGINAL FROM https://github.com/twitter/twitter-text-rb
|
8
|
-
PERSONAL PLAYGROUND - PLEASE USE THE ORIGINAL FROM https://github.com/twitter/twitter-text-rb
|
9
|
-
PERSONAL PLAYGROUND - PLEASE USE THE ORIGINAL FROM https://github.com/twitter/twitter-text-rb
|
10
|
-
PERSONAL PLAYGROUND - PLEASE USE THE ORIGINAL FROM https://github.com/twitter/twitter-text-rb
|
11
|
-
|
12
|
-
== twitter-text-relative
|
1
|
+
== twitter-text {<img src="https://secure.travis-ci.org/twitter/twitter-text-rb.png" />}[http://travis-ci.org/twitter/twitter-text-rb] {<img src="https://codeclimate.com/badge.png" />}[https://codeclimate.com/github/twitter/twitter-text-rb]
|
13
2
|
|
14
3
|
A gem that provides text processing routines for Twitter Tweets. The major
|
15
4
|
reason for this is to unify the various auto-linking and extraction of
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/spec/spec_helper.rb
CHANGED
@@ -14,7 +14,7 @@ SimpleCov.start do
|
|
14
14
|
add_group 'Libraries', 'lib'
|
15
15
|
end
|
16
16
|
|
17
|
-
require File.expand_path('../../lib/twitter-text
|
17
|
+
require File.expand_path('../../lib/twitter-text', __FILE__)
|
18
18
|
require File.expand_path('../test_urls', __FILE__)
|
19
19
|
|
20
20
|
RSpec.configure do |config|
|
data/spec/twitter_text_spec.rb
CHANGED
data/test/conformance_test.rb
CHANGED
@@ -9,7 +9,7 @@ if major.to_i == 1 && minor.to_i < 9
|
|
9
9
|
$KCODE='u'
|
10
10
|
end
|
11
11
|
|
12
|
-
require File.expand_path('../../lib/twitter-text
|
12
|
+
require File.expand_path('../../lib/twitter-text', __FILE__)
|
13
13
|
|
14
14
|
class ConformanceTest < Test::Unit::TestCase
|
15
15
|
include Twitter::Extractor
|
@@ -47,7 +47,7 @@ class ConformanceTest < Test::Unit::TestCase
|
|
47
47
|
element.attribute_nodes.map{|attr| [attr.name, attr.value]}.sort
|
48
48
|
end
|
49
49
|
|
50
|
-
CONFORMANCE_DIR = ENV['CONFORMANCE_DIR'] || File.expand_path("../twitter-text-
|
50
|
+
CONFORMANCE_DIR = ENV['CONFORMANCE_DIR'] || File.expand_path("../twitter-text-conformance", __FILE__)
|
51
51
|
|
52
52
|
def self.def_conformance_test(file, test_type, &block)
|
53
53
|
yaml = YAML.load_file(File.join(CONFORMANCE_DIR, file))
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "twitter-text-relative"
|
5
|
-
s.version = "1.6.2
|
5
|
+
s.version = "1.6.2.1"
|
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",
|
metadata
CHANGED
@@ -1,9 +1,15 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: twitter-text-relative
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 1
|
7
|
+
- 6
|
8
|
+
- 2
|
9
|
+
- 1
|
10
|
+
version: 1.6.2.1
|
5
11
|
platform: ruby
|
6
|
-
authors:
|
12
|
+
authors:
|
7
13
|
- Matt Sanford
|
8
14
|
- Patrick Ewing
|
9
15
|
- Ben Cherry
|
@@ -16,109 +22,99 @@ authors:
|
|
16
22
|
autorequire:
|
17
23
|
bindir: bin
|
18
24
|
cert_chain: []
|
19
|
-
|
20
|
-
|
21
|
-
|
25
|
+
|
26
|
+
date: 2013-10-14 00:00:00 +02:00
|
27
|
+
default_executable:
|
28
|
+
dependencies:
|
29
|
+
- !ruby/object:Gem::Dependency
|
22
30
|
name: multi_json
|
23
|
-
requirement: !ruby/object:Gem::Requirement
|
24
|
-
requirements:
|
25
|
-
- - ~>
|
26
|
-
- !ruby/object:Gem::Version
|
27
|
-
version: '1.3'
|
28
|
-
type: :development
|
29
31
|
prerelease: false
|
30
|
-
|
31
|
-
requirements:
|
32
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
33
|
+
requirements:
|
32
34
|
- - ~>
|
33
|
-
- !ruby/object:Gem::Version
|
34
|
-
|
35
|
-
-
|
36
|
-
|
37
|
-
|
38
|
-
requirements:
|
39
|
-
- - ! '>='
|
40
|
-
- !ruby/object:Gem::Version
|
41
|
-
version: '0'
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
segments:
|
37
|
+
- 1
|
38
|
+
- 3
|
39
|
+
version: "1.3"
|
42
40
|
type: :development
|
41
|
+
version_requirements: *id001
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: nokogiri
|
43
44
|
prerelease: false
|
44
|
-
|
45
|
-
requirements:
|
46
|
-
- -
|
47
|
-
- !ruby/object:Gem::Version
|
48
|
-
|
49
|
-
-
|
50
|
-
|
51
|
-
requirement: !ruby/object:Gem::Requirement
|
52
|
-
requirements:
|
53
|
-
- - ! '>='
|
54
|
-
- !ruby/object:Gem::Version
|
55
|
-
version: '0'
|
45
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - ">="
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
segments:
|
50
|
+
- 0
|
51
|
+
version: "0"
|
56
52
|
type: :development
|
53
|
+
version_requirements: *id002
|
54
|
+
- !ruby/object:Gem::Dependency
|
55
|
+
name: rake
|
57
56
|
prerelease: false
|
58
|
-
|
59
|
-
requirements:
|
60
|
-
- -
|
61
|
-
- !ruby/object:Gem::Version
|
62
|
-
|
63
|
-
-
|
64
|
-
|
65
|
-
requirement: !ruby/object:Gem::Requirement
|
66
|
-
requirements:
|
67
|
-
- - ! '>='
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: '0'
|
57
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
segments:
|
62
|
+
- 0
|
63
|
+
version: "0"
|
70
64
|
type: :development
|
65
|
+
version_requirements: *id003
|
66
|
+
- !ruby/object:Gem::Dependency
|
67
|
+
name: rdoc
|
71
68
|
prerelease: false
|
72
|
-
|
73
|
-
requirements:
|
74
|
-
- -
|
75
|
-
- !ruby/object:Gem::Version
|
76
|
-
|
77
|
-
-
|
78
|
-
|
79
|
-
requirement: !ruby/object:Gem::Requirement
|
80
|
-
requirements:
|
81
|
-
- - ! '>='
|
82
|
-
- !ruby/object:Gem::Version
|
83
|
-
version: '0'
|
69
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
70
|
+
requirements:
|
71
|
+
- - ">="
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
segments:
|
74
|
+
- 0
|
75
|
+
version: "0"
|
84
76
|
type: :development
|
77
|
+
version_requirements: *id004
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: rspec
|
85
80
|
prerelease: false
|
86
|
-
|
87
|
-
requirements:
|
88
|
-
- -
|
89
|
-
- !ruby/object:Gem::Version
|
90
|
-
|
91
|
-
-
|
92
|
-
|
93
|
-
requirement: !ruby/object:Gem::Requirement
|
94
|
-
requirements:
|
95
|
-
- - ! '>='
|
96
|
-
- !ruby/object:Gem::Version
|
97
|
-
version: '0'
|
81
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
82
|
+
requirements:
|
83
|
+
- - ">="
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
segments:
|
86
|
+
- 0
|
87
|
+
version: "0"
|
98
88
|
type: :development
|
89
|
+
version_requirements: *id005
|
90
|
+
- !ruby/object:Gem::Dependency
|
91
|
+
name: simplecov
|
99
92
|
prerelease: false
|
100
|
-
|
101
|
-
requirements:
|
102
|
-
- -
|
103
|
-
- !ruby/object:Gem::Version
|
104
|
-
|
105
|
-
-
|
93
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - ">="
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
segments:
|
98
|
+
- 0
|
99
|
+
version: "0"
|
100
|
+
type: :development
|
101
|
+
version_requirements: *id006
|
102
|
+
- !ruby/object:Gem::Dependency
|
106
103
|
name: unf
|
107
|
-
requirement: !ruby/object:Gem::Requirement
|
108
|
-
requirements:
|
109
|
-
- - ~>
|
110
|
-
- !ruby/object:Gem::Version
|
111
|
-
version: 0.1.0
|
112
|
-
type: :runtime
|
113
104
|
prerelease: false
|
114
|
-
|
115
|
-
requirements:
|
105
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
116
107
|
- - ~>
|
117
|
-
- !ruby/object:Gem::Version
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
segments:
|
110
|
+
- 0
|
111
|
+
- 1
|
112
|
+
- 0
|
118
113
|
version: 0.1.0
|
119
|
-
|
120
|
-
|
121
|
-
|
114
|
+
type: :runtime
|
115
|
+
version_requirements: *id007
|
116
|
+
description: A gem that provides text handling for Twitter, with relative URLs instead of http://twitter.com/...
|
117
|
+
email:
|
122
118
|
- matt@twitter.com
|
123
119
|
- patrick.henry.ewing@gmail.com
|
124
120
|
- bcherry@gmail.com
|
@@ -129,9 +125,12 @@ email:
|
|
129
125
|
- keita@twitter.com
|
130
126
|
- jkoval@twitter.com
|
131
127
|
executables: []
|
128
|
+
|
132
129
|
extensions: []
|
130
|
+
|
133
131
|
extra_rdoc_files: []
|
134
|
-
|
132
|
+
|
133
|
+
files:
|
135
134
|
- .gemtest
|
136
135
|
- .gitignore
|
137
136
|
- .gitmodules
|
@@ -141,16 +140,16 @@ files:
|
|
141
140
|
- LICENSE
|
142
141
|
- README.rdoc
|
143
142
|
- Rakefile
|
144
|
-
- lib/twitter-text
|
145
|
-
- lib/twitter-text
|
146
|
-
- lib/twitter-text
|
147
|
-
- lib/twitter-text
|
148
|
-
- lib/twitter-text
|
149
|
-
- lib/twitter-text
|
150
|
-
- lib/twitter-text
|
151
|
-
- lib/twitter-text
|
152
|
-
- lib/twitter-text
|
153
|
-
- lib/twitter-text
|
143
|
+
- lib/twitter-text.rb
|
144
|
+
- lib/twitter-text/autolink.rb
|
145
|
+
- lib/twitter-text/deprecation.rb
|
146
|
+
- lib/twitter-text/extractor.rb
|
147
|
+
- lib/twitter-text/hash_helper.rb
|
148
|
+
- lib/twitter-text/hit_highlighter.rb
|
149
|
+
- lib/twitter-text/regex.rb
|
150
|
+
- lib/twitter-text/rewriter.rb
|
151
|
+
- lib/twitter-text/unicode.rb
|
152
|
+
- lib/twitter-text/validation.rb
|
154
153
|
- script/destroy
|
155
154
|
- script/generate
|
156
155
|
- spec/autolinking_spec.rb
|
@@ -165,31 +164,37 @@ files:
|
|
165
164
|
- spec/validation_spec.rb
|
166
165
|
- test/conformance_test.rb
|
167
166
|
- twitter-text-relative.gemspec
|
167
|
+
has_rdoc: true
|
168
168
|
homepage: https://github.com/sts/twitter-text-relative
|
169
|
-
licenses:
|
169
|
+
licenses:
|
170
170
|
- Apache 2.0
|
171
|
-
metadata: {}
|
172
171
|
post_install_message:
|
173
172
|
rdoc_options: []
|
174
|
-
|
173
|
+
|
174
|
+
require_paths:
|
175
175
|
- lib
|
176
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
177
|
-
requirements:
|
178
|
-
- -
|
179
|
-
- !ruby/object:Gem::Version
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
176
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
segments:
|
181
|
+
- 0
|
182
|
+
version: "0"
|
183
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ">="
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
segments:
|
188
|
+
- 0
|
189
|
+
version: "0"
|
186
190
|
requirements: []
|
191
|
+
|
187
192
|
rubyforge_project:
|
188
|
-
rubygems_version:
|
193
|
+
rubygems_version: 1.3.6
|
189
194
|
signing_key:
|
190
|
-
specification_version:
|
195
|
+
specification_version: 3
|
191
196
|
summary: Twitter text handling library
|
192
|
-
test_files:
|
197
|
+
test_files:
|
193
198
|
- spec/autolinking_spec.rb
|
194
199
|
- spec/extractor_spec.rb
|
195
200
|
- spec/hithighlighter_spec.rb
|
checksums.yaml
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
---
|
2
|
-
!binary "U0hBMQ==":
|
3
|
-
metadata.gz: !binary |-
|
4
|
-
MzcyYjlkY2I1YzRiZmM5NjdkMDg3MDM3NDJkYjc2NTJhYmM2YjczOQ==
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
MmQ3ZmRjN2FiN2NmOWFjMTdkOGMzZmMyNGZmZTU5ODQ5ZjhkYTE2OQ==
|
7
|
-
SHA512:
|
8
|
-
metadata.gz: !binary |-
|
9
|
-
ZWViZDIzYWExM2NiMDE5NjcwODQzODAxMzZjYmViYjU0M2E5NTA4ZTEyN2Yx
|
10
|
-
MTU2ZGE2Njc5ZmQ5YjQxOGI4NTA0NmQwNWMyNGRhMTM0MzA1N2QwZTQ0Njhm
|
11
|
-
N2VhZjljNDZmNGMzNjRiZDU0OTg5MjY0MzQ2N2Y1ZjNkYjE4YTg=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
NWZjZjQyNWI1ODE2ZjE1Y2I0NGMyM2YyN2EzMDg3YmQ5NjlkMjM0YjNjMDc4
|
14
|
-
YzRmNjIxZjhmZWRiOTA0YjM5ODdjOWU1MzM1MGE3ZTc3NWExZDBhM2MwMTUz
|
15
|
-
NzFlMGM4NWFkZjM4MjllOWMxYTU5YWI4ZGMzMDZkOGEwYzQwZWY=
|