parity-RedCloth 4.2.9 → 4.2.10

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 39a57ffefdc12dae2d96fddca2271b5d31a05304
4
- data.tar.gz: 2d5864312d0ff36e76bf74a9248183d7e71c95c9
3
+ metadata.gz: ef1578fa6868dbd35ac211b9cb5718d01fe15447
4
+ data.tar.gz: d74897427f26c75fb00e19e4896df1e5a3370fc6
5
5
  SHA512:
6
- metadata.gz: 290d2a07332e818e7277c3e1e481b65767576bfdab35c83b156f9578df525d4dc2e5014f56ac7b215d741078996ec793909f74f3fd749078a3c2449c8538cb61
7
- data.tar.gz: b6bbf72bbd53ab30bc1f5380fb3cb357e80d275fa834978d1480d6c0ac9b8702e42d9498f2bee2cee63b800845dc8844ed4e3582e6efc027897e721027440e9c
6
+ metadata.gz: a449dc63242b9a90c6591707eb3b2062d4b5cda71a529e3cfcec95c384ff2ce4d1d14c378268769905e6d4a378a4ced3cf7bec3e7cb369280e2229d5650c966a
7
+ data.tar.gz: 45354e473af4a49959d251d34226fc7381ba81c4bb8e8162785113e91d3726685b838f7e8d09a4c269e44bc976943205066c7ae749402df793b83ee0a8ab2d86
@@ -118,7 +118,9 @@ module RedCloth::Formatters::HTML
118
118
  return opts[:href] unless auto_link_urls
119
119
  href_with_proto = opts[:href]
120
120
  href_with_proto = 'http://' + href_with_proto unless href_with_proto.index('http') == 0
121
- "<a href=\"#{escape_attribute href_with_proto}\">#{escape_attribute opts[:href]}</a>"
121
+ text = opts[:href]
122
+ text = text[0, text.length - 6] + text[-5,3].replace("...") + text[-2..-1]
123
+ "<a href=\"#{escape_attribute href_with_proto}\">#{escape_attribute text}</a>"
122
124
  end
123
125
 
124
126
  def image(opts)
@@ -2,7 +2,7 @@ module RedCloth
2
2
  module VERSION
3
3
  MAJOR = 4
4
4
  MINOR = 2
5
- TINY = 9
5
+ TINY = 10
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.9
4
+ version: 4.2.10
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-03-28 00:00:00.000000000 Z
14
+ date: 2015-03-30 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.9
206
+ summary: RedCloth-4.2.10
207
207
  test_files:
208
208
  - spec/benchmark_spec.rb
209
209
  - spec/custom_tags_spec.rb