rocketwheel-command 1.0.4 → 1.0.5

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.
@@ -33,6 +33,11 @@ module Rocketwheel::Command::CLI
33
33
  def playlist
34
34
  manifest.playlist
35
35
  end
36
+
37
+ def meta
38
+ manifest.meta
39
+ end
40
+
36
41
  end
37
42
 
38
43
  private
@@ -30,6 +30,10 @@ module Rocketwheel
30
30
  @player_options ||= self.fetch('player', Hash.new)
31
31
  end
32
32
 
33
+ def player_options
34
+ @meta ||= self.fetch('meta', Hash.new)
35
+ end
36
+
33
37
  def transloadit
34
38
  @transloadit ||= begin
35
39
  config = self.fetch('transloadit', Hash.new)
@@ -1,5 +1,5 @@
1
1
  module Rocketwheel
2
2
  module Command
3
- VERSION = '1.0.4'
3
+ VERSION = '1.0.5'
4
4
  end
5
5
  end
@@ -7,15 +7,22 @@ version: <%= version %>
7
7
  # path: path/to/s3/folder
8
8
 
9
9
  # playlist:
10
- # - image: 'images/video1.png'
10
+ # - image: 'images/com-project-poster-thumb.jpg'
11
11
  # title: 'Title'
12
12
  # description: 'Description'
13
+ # duration: 60
13
14
  # levels:
14
- # - file: 'videos/mp4/video1.mp4'
15
- # - file: 'videos/webm/video1.webm'
15
+ # - file: 'videos/video1.mp4'
16
16
 
17
17
  # player:
18
18
  # autostart: false
19
+ # width: 1280
20
+ # height: 720
21
+
22
+ # meta:
23
+ # company: 'com'
24
+ # project: 'pro'
25
+ # description: 'description'
19
26
 
20
27
  # transloadit:
21
28
  # key: transloadit key
@@ -0,0 +1,59 @@
1
+ <!DOCTYPE HTML>
2
+ <html>
3
+ <head>
4
+ <title>Title</title>
5
+ <meta property="og:title" content="Title" />
6
+ <meta property="og:type" content="Sharing Widgets" />
7
+ <meta property="og:url" content="http://www." />
8
+ <meta property="og:image" content="" />
9
+ <meta property="og:description" content="Description" />
10
+ <meta property="og:site_name" content="" />
11
+ <link rel="stylesheet" href="demoplayer/stylesheets/player-1280x720.css" type="text/css" media="screen">
12
+ <script src="demoplayer/javascripts/player.js" type="text/javascript"></script>
13
+ <script type="text/javascript">
14
+ var _gaq = _gaq || [];
15
+ _gaq.push(['_setAccount', 'UA-xxxxxxx-x']);
16
+ _gaq.push(['_trackPageview']);
17
+ (function() {
18
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
19
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
20
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
21
+ })();
22
+ </script>
23
+ <meta name="viewport" content="width=1290" />
24
+ <script type="text/javascript">
25
+ $(function() {
26
+ Player.setup({
27
+ playlist: <%= JSON.pretty_generate(playlist) %>,
28
+ jwplayer_options: <%= JSON.pretty_generate(player_options) %>
29
+ })
30
+ })
31
+ </script>
32
+ </head>
33
+ <body>
34
+ <div id="demoplayer-position">
35
+ <script type="text/x-handlebars">
36
+ {{#view Player.View styles="inline"}}
37
+ {{view Player.PlayerView}}
38
+ {{view Player.PlaylistView}}
39
+ <img src="images/" style="padding-top: 10px; padding-left: 5px; padding-bottom: 5px;" />
40
+ <div class="share">
41
+ <span class='st_linkedin_large' ></span>
42
+ <span class='st_twitter_large' ></span>
43
+ <span class='st_facebook_large' ></span>
44
+ <span class='st_email_large' ></span>
45
+ <span class='st_sharethis_large' ></span>
46
+ </div>
47
+ {{/view}}
48
+ </script>
49
+ </div>
50
+ <script type="text/javascript">var switchTo5x=true;</script>
51
+ <script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
52
+ <script type="text/javascript">
53
+ stLight.options({
54
+ publisher:'b9f8cca1-6dd1-42d9-b354-0ae0088e96cc',
55
+ onhover:false
56
+ });
57
+ </script>
58
+ </body>
59
+ </html>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rocketwheel-command
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -168,8 +168,15 @@ files:
168
168
  - lib/rocketwheel/command/version.rb
169
169
  - rocketwheel-command.gemspec
170
170
  - templates/project/2.1/Rocketfile.yml.tt
171
+ - templates/project/2.1/source/.DS_Store
172
+ - templates/project/2.1/source/images/.DS_Store
171
173
  - templates/project/2.1/source/images/.empty_directory
172
- - templates/project/2.1/source/index.html.tt.ignore
174
+ - templates/project/2.1/source/images/com-logo.png
175
+ - templates/project/2.1/source/images/com-project-cta-480.jpg
176
+ - templates/project/2.1/source/images/com-project-cta-720.jpg
177
+ - templates/project/2.1/source/images/com-project-poster-thumb.jpg
178
+ - templates/project/2.1/source/index-480.html.tt.ignore
179
+ - templates/project/2.1/source/index-720.html.tt.ignore
173
180
  - templates/project/2.1/source/videos/.empty_directory
174
181
  - templates/project/3.0/Rocketfile.yml.tt
175
182
  - templates/project/3.0/source/images/.empty_directory