ritter 0.0.90 → 0.0.91
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/ritter-text/autolink.rb +11 -4
- data/ritter.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MmQ4YmU4ZDQ3ZTAzNzcyZWVlYjI3Y2MzYzJjYjVhYTkzZjU0ZDA0NA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NzEwNGQwMTI3YjZmODcyMjQwNGQ4OTI3ODNjNmVlMTgwNTMzNGU0Yg==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
Y2IxMWFjYjBmNDBmMGJlOTIyNTIyNDQwMjlhNWVjM2FlZmY2NmM5ZTRiMDBi
|
10
|
+
MzQ0MTdmZDgyYjM5MTA4MzQxNWVjZjk3MTcxZGY1OWU1ZjRlMTgzODkzYjk5
|
11
|
+
ZjdjM2I1NDkxNDM5ZGE3N2FiMzAwMTliNDgzNjcxNjg5ZmRkMDQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZDdjZDU2ZGI3NThhN2NmOTc4NDVmMDUxZGVkNzFmNjY4MGI1Nzc2M2I4ZDU2
|
14
|
+
ZGQwOTM0MWVlMmQyNmQ2ZTlkZDRlYmIyYzhhZGY3NWVmZTU1MGI3NjczMWE1
|
15
|
+
ODIyZWQ0NjUwZmFlYTZjOGVkZjE5MjI0NThlNWVjY2JkZjkwMGE=
|
data/lib/ritter-text/autolink.rb
CHANGED
@@ -323,6 +323,10 @@ module Twitter
|
|
323
323
|
end
|
324
324
|
end
|
325
325
|
|
326
|
+
def hashtag_url(hashtagName)
|
327
|
+
|
328
|
+
end
|
329
|
+
|
326
330
|
def link_to_hashtag(entity, chars, options = {})
|
327
331
|
hash = chars[entity[:indices].first]
|
328
332
|
hashtag = entity[:hashtag]
|
@@ -333,10 +337,13 @@ module Twitter
|
|
333
337
|
hashtag_class += ' rtl'
|
334
338
|
end
|
335
339
|
|
336
|
-
href =
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
+
href = hashtag_url(hashtag)
|
341
|
+
if href.nil?
|
342
|
+
href = if options[:hashtag_url_block]
|
343
|
+
options[:hashtag_url_block].call(hashtag)
|
344
|
+
else
|
345
|
+
"#{options[:hashtag_url_base]}#{hashtag}"
|
346
|
+
end
|
340
347
|
end
|
341
348
|
|
342
349
|
html_attrs = {
|
data/ritter.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "ritter"
|
5
|
-
s.version = "0.0.
|
5
|
+
s.version = "0.0.91"
|
6
6
|
s.authors = ["Fernando Paladini", "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 = ["fernando.paladini@techsempre.com","matt@twitter.com", "patrick.henry.ewing@gmail.com", "bcherry@gmail.com", "bs@brittspace.com",
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ritter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.91
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fernando Paladini
|
@@ -17,7 +17,7 @@ authors:
|
|
17
17
|
autorequire:
|
18
18
|
bindir: bin
|
19
19
|
cert_chain: []
|
20
|
-
date: 2013-05-
|
20
|
+
date: 2013-05-22 00:00:00.000000000 Z
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
23
23
|
name: multi_json
|