pretty_face 0.9 → 0.9.1

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: 0416c6439549ce94e753d287ff97b3fac83ab74a
4
- data.tar.gz: ab763d25e47d948dbcc78da465603650ff3752df
3
+ metadata.gz: 8599d11aa5210715e0d83098d5ccdfeda8a9c589
4
+ data.tar.gz: 57a9f4bdee6894072e053fb8a5ef7c4d080be178
5
5
  SHA512:
6
- metadata.gz: 8894c1b533efb55a481ed57772a6958607280d7fc8b7cf9bd0d02d94a38d2b277c1a23debaed0d82dc8071fe6fc14752ec6bfdaece28888e25c686fee69d4fd0
7
- data.tar.gz: 1dedbfaf4ba5c38573ec882c0a06bebcc799272aacf018c3346dbb3660f287f03221ecb359a0f993c0e34854f8b1deb9b83b0303a4be6b3d0648994c4e44741a
6
+ metadata.gz: 40857375e9907b2ab7a25b4d0c2078947e606892c292cdc1875a0bccece22bec5d7c1306ba70a4f2d5d90f83a4f4fc4d52351c126e04d33d7f51b23d481660bb
7
+ data.tar.gz: 667ec016584c89f97f3e2ea9b02fb2311af9f88ca99d527501ced02bb0bda051eec446c2e931a582790e81242b521ace9f6e956a130f4e7ee76390e139518b9b
data/ChangeLog CHANGED
@@ -1,3 +1,6 @@
1
+ === Release 0.9.1 / 2013-9-9
2
+ * Updated CSS for embbeded image resizing
3
+
1
4
  === Release 0.9 / 2013-9-4
2
5
  * Support for utf-8 (Thanks Eugene Batogov)
3
6
  * Fixed error when multiple nested directories
@@ -111,13 +111,16 @@
111
111
  </tr>
112
112
  <% end %>
113
113
  </table>
114
- <% if scenario.has_image? %>
115
- <a href='' onclick="img=document.getElementById('<%= scenario.image_id %>'); img.style.display = (img.style.display == 'none' ? 'block' : 'none');return false"><%= "#{scenario.image_label}" %></a><br />
116
- <img id='<%= scenario.image_id %>' style='display: none' src='<%= feature.directory_prefix_for(feature.file) %>images/<%= scenario.image %>'/>
114
+
115
+ <div class="img_container">
116
+ <% if scenario.has_image? %>
117
+ <a href='' onclick="img=document.getElementById('<%= scenario.image_id %>'); img.style.display = (img.style.display == 'none' ? 'block' : 'none');return false"><%= "#{scenario.image_label}" %></a><br />
118
+ <img id='<%= scenario.image_id %>' style='display: none' src='<%= feature.directory_prefix_for(feature.file) %>images/<%= scenario.image %>'/>
119
+ <% end %>
120
+ <br /><br />
117
121
  <% end %>
118
- <br /><br />
119
- <% end %>
120
- </div>
122
+ </div>
123
+ </div>
121
124
  </div>
122
125
 
123
126
  </div>
@@ -205,6 +205,10 @@ td.image_tag {
205
205
  font-family: inherit
206
206
  }
207
207
 
208
+ .img_container img {
209
+ max-width: 100%;
210
+ max-height: 100%;
211
+ }
208
212
 
209
213
  .failures tr:nth-child(odd) {
210
214
  background-color:#F9F9F9;
@@ -1,3 +1,3 @@
1
1
  module PrettyFace
2
- VERSION = "0.9"
2
+ VERSION = "0.9.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pretty_face
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.9'
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeffrey S. Morgan
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2013-09-04 00:00:00.000000000 Z
15
+ date: 2013-09-09 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: actionpack