showcase 0.2.0.rc.2 → 0.2.0.rc.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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 07623d8209466223ba0fe77ed697c570d44297b6
|
4
|
+
data.tar.gz: fe4e0c8596aa7224abbd3263ebee03b403b60bbd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9306cd9390ec58281aba58230281d898f2cbdda548a1b17272cdb3d0de904b07c2ab13e3533bcae904eabd850b8776597b8c04970e9521c83e9921a2ffa708d
|
7
|
+
data.tar.gz: 9c2859b89fa7f649d7957ef8394d23b0171a53c0383f2b8404eea83c72117b76e9f58a26acfb7f5783074779d1cb815cde9ffb41f7ead0ee42a3af6606fa75f0
|
@@ -41,7 +41,9 @@ module Showcase
|
|
41
41
|
|
42
42
|
def video_size(size, options = {})
|
43
43
|
seo_meta_tags('twitter:player:width', size.first) <<
|
44
|
-
seo_meta_tags('twitter:player:height', size.last)
|
44
|
+
seo_meta_tags('twitter:player:height', size.last) <<
|
45
|
+
seo_meta_tags('og:video:width', size.first) <<
|
46
|
+
seo_meta_tags('og:video:height', size.last)
|
45
47
|
end
|
46
48
|
|
47
49
|
def site_name(name, options = {})
|
data/lib/showcase/version.rb
CHANGED
@@ -140,6 +140,12 @@ module Showcase::Helpers
|
|
140
140
|
expect(result).to have_tag(:meta, with: { name: 'twitter:player:width', content: '10' })
|
141
141
|
expect(result).to have_tag(:meta, with: { name: 'twitter:player:height', content: '20' })
|
142
142
|
end
|
143
|
+
|
144
|
+
it 'produces og:video meta tags' do
|
145
|
+
result = subject.video_size([10, 20])
|
146
|
+
expect(result).to have_tag(:meta, with: { property: 'og:video:width', content: '10' })
|
147
|
+
expect(result).to have_tag(:meta, with: { property: 'og:video:height', content: '20' })
|
148
|
+
end
|
143
149
|
end
|
144
150
|
end
|
145
151
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: showcase
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.0.rc.
|
4
|
+
version: 0.2.0.rc.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefano Verna
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-11-
|
11
|
+
date: 2013-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|