omg_image 0.0.2 → 0.0.3

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: 60a7c204a82246355dd5348a95def14b6db716b4fb7aceb5455079a774ec3895
4
- data.tar.gz: 8b8ac8d027d5ff2b98f33776f4baea437a99336bfec3bbe0e0b2e140be39da15
3
+ metadata.gz: e039abdce55ba5038ced0e0915cc6569ada2b8b94a5a5c118f90c607b960a8bd
4
+ data.tar.gz: b8ce28a058a94a2a746ffd7d9d9644bf52cf8dc6fd7550910a628e8091f48ef5
5
5
  SHA512:
6
- metadata.gz: 61c4464c4448d6b24e2237a860eef0b39f42597fe81a9b7de6c4decf25394d34d0e78157fb33bb2ce8632ed168ad6029f4ecfa84a45dda087dc7722cc068da2c
7
- data.tar.gz: 969806bc36fc8d8cd126f43154f9af3ebe5d6f747c4005a247fb26db3648f80f76153bfc2fd35d8c778deee8d2418d41c636ee0bb0d72f346b4a79c4c66487b7
6
+ metadata.gz: 62bdcbd5f8ba976757eb1f0a806aba21d7ac801a955a371fd59f71c5063d1e43ebac4122ae0538bc45bcde57851744dd89dfc14e959fc6dab471306fb3e30a56
7
+ data.tar.gz: 1bbd2a413f3b912d409522eb5147bd5266f807209d9352d0737e0f09c53be6ef94f2d8b9a1e96a39cec350cc13389d9adc49ee1ca0bb4ba4a9094f3d595ca635
@@ -53,10 +53,6 @@
53
53
  height: 4vh;
54
54
  align-items: center;
55
55
  }
56
- .preview-description img {
57
- display: inline-block;
58
- width: 3vw;
59
- }
60
56
  .preview-description span {
61
57
  font-size: 2.0vw;
62
58
  padding-top: 1vh;
@@ -81,12 +77,13 @@
81
77
  <% font_size = 15 - (((title.size**0.89)+85)/16) %>
82
78
  <h1 style="font-size:<%= font_size %>vw;"><%= raw title %><h1>
83
79
 
84
- <div class="preview-description">
85
- <%= image_tag 'logo.svg' %>
86
- <span><%= description %></span>
87
- </div>
80
+ <% if local_assigns.has_key?(:description) %>
81
+ <div class="preview-description">
82
+ <span><%= description %></span>
83
+ </div>
84
+ <% end %>
88
85
 
89
- <% if tags.any? %>
86
+ <% if local_assigns.has_key?(:tags) && tags.any? %>
90
87
  <div class="preview-tags">
91
88
  <% shift = rand(10) %>
92
89
  <% tags.each_with_index do |tag, index| %>
@@ -97,6 +94,5 @@
97
94
  <% end %>
98
95
  </div>
99
96
  <% end %>
100
-
101
97
  </div>
102
98
  </div>
@@ -1,3 +1,3 @@
1
1
  module OmgImage
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omg_image
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Kasyanchuk