parity-RedCloth 4.2.12 → 4.2.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/redcloth/formatters/html.rb +1 -0
- data/lib/redcloth/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d866aa40190f88d83804ef44aa6d1276e56cb84d
|
4
|
+
data.tar.gz: 05c443bb6adc20670d6a133683ee433d89dadd29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea500993f051ed729e6378130e1d26d5c5cd4c6d523bfdf5ee35aaba4a9fa99049a95e6b3d723426670f78d4619acfc79d9eb307480ed459883a02e67a0b4cea
|
7
|
+
data.tar.gz: 46117df542976bb0414cb703303948bfbfe2a4cb41d6ecbd73461224b8c155cab959396e72b4bbbc9052a4d39642cdd9f639559ef9f43f269ccd70775b95ef62
|
@@ -123,6 +123,7 @@ module RedCloth::Formatters::HTML
|
|
123
123
|
def auto_link(opts)
|
124
124
|
return opts[:href] unless auto_link_urls
|
125
125
|
href_with_proto = opts[:href]
|
126
|
+
return if !href_with_proto
|
126
127
|
href_with_proto = 'http://' + href_with_proto unless href_with_proto.index('http') == 0
|
127
128
|
text = opts[:href]
|
128
129
|
text = truncate(text[0, text.length - 6] + text[-5,3].replace("...") + text[-2..-1], 50)
|
data/lib/redcloth/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: parity-RedCloth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.2.
|
4
|
+
version: 4.2.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Garber
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2015-
|
14
|
+
date: 2015-05-11 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: bundler
|
@@ -203,7 +203,7 @@ rubyforge_project: redcloth
|
|
203
203
|
rubygems_version: 2.2.1
|
204
204
|
signing_key:
|
205
205
|
specification_version: 4
|
206
|
-
summary: RedCloth-4.2.
|
206
|
+
summary: RedCloth-4.2.13
|
207
207
|
test_files:
|
208
208
|
- spec/benchmark_spec.rb
|
209
209
|
- spec/custom_tags_spec.rb
|