parity-RedCloth 4.2.10 → 4.2.11
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/redcloth/formatters/html.rb +1 -1
- data/lib/redcloth/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 77ab2e0c8f4f9771b803c5ad141f47f3119c0739
|
|
4
|
+
data.tar.gz: 528b437fbc9d3df7a02453e2f2e0abb276946c0d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8b195fcb0500154c7f9b1dd8d3061e2f1f2ad917686a7bfa4ef38ef64de38925c5b1b36e82159b739602661e4e18faca835c7402a882ff91842569d137ded1bf
|
|
7
|
+
data.tar.gz: 6688609fafabe71165e1fc5562ca0cd4154c15a3551da5f584829d83286da76267cba1afbaa483284a76552348642869fdefc2c5b8262e59f1fac6f5a80dab5a
|
|
@@ -119,7 +119,7 @@ module RedCloth::Formatters::HTML
|
|
|
119
119
|
href_with_proto = opts[:href]
|
|
120
120
|
href_with_proto = 'http://' + href_with_proto unless href_with_proto.index('http') == 0
|
|
121
121
|
text = opts[:href]
|
|
122
|
-
text = text[0, text.length - 6] + text[-5,3].replace("...") + text[-2..-1]
|
|
122
|
+
text = text[0, [text.length - 6, 47].max] + text[-5,3].replace("...") + text[-2..-1]
|
|
123
123
|
"<a href=\"#{escape_attribute href_with_proto}\">#{escape_attribute text}</a>"
|
|
124
124
|
end
|
|
125
125
|
|
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.11
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jason Garber
|
|
@@ -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.11
|
|
207
207
|
test_files:
|
|
208
208
|
- spec/benchmark_spec.rb
|
|
209
209
|
- spec/custom_tags_spec.rb
|