onebox 1.8.66 → 1.8.67

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
  SHA256:
3
- metadata.gz: 3540aa0601e2e97d7837c59ea29849a2df8238954058d7392aac531451a2f5a4
4
- data.tar.gz: 7145bc998e97ae158b25dbfe8d1aefef7738f40b0c392f3c784cfc5eba9e557e
3
+ metadata.gz: 852821c1793b34f5239b51d65cba8c1afa15167f53efb2c9383e2873cfd92acb
4
+ data.tar.gz: 33e908e022f1df4d2653cf30d1f13f99f6fe215842e940b80b004a78ae2af81a
5
5
  SHA512:
6
- metadata.gz: 3e5c957d7db902ed14efc63d25c32ad61379818a0135872655b80929a2f613a278a27c7bc50b45edebc1aa0f6f8df52c74c30f4d3560c3b291a2525fd550858b
7
- data.tar.gz: 3e6c7c2b69e745a42fd8a916e9b9e7860f476d2eb1fc47c7fb541c3d13ca5d179122e6a46729f61a09fcc71eaf347c7e4db8b0db40bd0fd6629b1b51efaa2a77
6
+ metadata.gz: c04041b664eb183f2c822315ae1b95fb48a15865b55dea17857a80df4c87f1dedad6a77db39251e002e8adb4c65f567899f549b9af0f29e592d480dab369cb37
7
+ data.tar.gz: 7499c8994ffc0f28db827a19280251f968e8357259dd08efb82583abf9f5258205f17ced26cf5e4f226feaa0c4ef2672649d4f76dd733ee05201353ad7f2d289
@@ -30,14 +30,14 @@ module Onebox
30
30
  def album_html(og)
31
31
  escaped_url = ::Onebox::Helpers.normalize_url_for_output(url)
32
32
  escaped_src = ::Onebox::Helpers.normalize_url_for_output(get_secure_link(og[:image]))
33
- album_title = "[Album] #{Onebox::Helpers.truncate(og[:title].strip, 80)}"
33
+ album_title = Onebox::Helpers::blank?(og[:description]) ? og[:title].strip : "[#{og[:description].strip}] #{og[:title].strip}"
34
34
 
35
35
  <<-HTML
36
36
  <div class='onebox google-photos-album'>
37
37
  <a href='#{escaped_url}' target='_blank'>
38
38
  <span class='outer-box' style='width:#{og[:image_width]}px'>
39
39
  <span class='inner-box'>
40
- <span class='album-title'>#{album_title}</span>
40
+ <span class='album-title'>#{Onebox::Helpers.truncate(album_title, 80)}</span>
41
41
  </span>
42
42
  </span>
43
43
  <img src='#{escaped_src}' #{Helpers.title_attr(og)} height='#{og[:image_height]}' width='#{og[:image_width]}'>
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Onebox
4
- VERSION = "1.8.66"
4
+ VERSION = "1.8.67"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onebox
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.66
4
+ version: 1.8.67
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joanna Zeta