parity-RedCloth 4.2.10 → 4.2.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ef1578fa6868dbd35ac211b9cb5718d01fe15447
4
- data.tar.gz: d74897427f26c75fb00e19e4896df1e5a3370fc6
3
+ metadata.gz: 77ab2e0c8f4f9771b803c5ad141f47f3119c0739
4
+ data.tar.gz: 528b437fbc9d3df7a02453e2f2e0abb276946c0d
5
5
  SHA512:
6
- metadata.gz: a449dc63242b9a90c6591707eb3b2062d4b5cda71a529e3cfcec95c384ff2ce4d1d14c378268769905e6d4a378a4ced3cf7bec3e7cb369280e2229d5650c966a
7
- data.tar.gz: 45354e473af4a49959d251d34226fc7381ba81c4bb8e8162785113e91d3726685b838f7e8d09a4c269e44bc976943205066c7ae749402df793b83ee0a8ab2d86
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
 
@@ -2,7 +2,7 @@ module RedCloth
2
2
  module VERSION
3
3
  MAJOR = 4
4
4
  MINOR = 2
5
- TINY = 10
5
+ TINY = 11
6
6
  RELEASE_CANDIDATE = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, RELEASE_CANDIDATE].compact.join('.')
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.10
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.10
206
+ summary: RedCloth-4.2.11
207
207
  test_files:
208
208
  - spec/benchmark_spec.rb
209
209
  - spec/custom_tags_spec.rb