video-js-rails 3.2.3

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.
@@ -0,0 +1,10 @@
1
+ module VideoJsHelper
2
+ def video_player *args
3
+ options = { width: 640, height: 360, class: 'video-js vjs-default-skin' }.merge args.extract_options!
4
+ src = options.delete(:src) || {}
5
+
6
+ content_tag :video, options do
7
+ raw src.map { |type, url| raw tag(:source, src: url, type: "video/#{type}") }.join('')
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ require 'video-js-rails/version'
2
+
3
+ module Video
4
+ module Js
5
+ module Rails
6
+ class Engine < ::Rails::Engine
7
+ end
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,7 @@
1
+ module Video
2
+ module Js
3
+ module Rails
4
+ VERSION = "3.2.3" # version should track the version of VideoJS library
5
+ end
6
+ end
7
+ end
metadata ADDED
@@ -0,0 +1,71 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: video-js-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 3.2.3
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Alexey Yurchenko
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-01-14 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: railties
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: '3.1'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '3.1'
30
+ description: Video.js is a JavaScript and CSS library that makes it easier to work
31
+ with and build on HTML5 video
32
+ email:
33
+ - alexes.dev@gmail.com
34
+ executables: []
35
+ extensions: []
36
+ extra_rdoc_files: []
37
+ files:
38
+ - lib/video-js-rails.rb
39
+ - lib/video-js-rails/version.rb
40
+ - app/assets/images/video-js.png
41
+ - app/assets/flashes/video-js.swf
42
+ - app/assets/stylesheets/video-js.css.erb
43
+ - app/assets/fonts
44
+ - app/assets/javascripts/video-js.js
45
+ - app/helpers/video_js_helper.rb
46
+ - README.md
47
+ homepage: https://github.com/alexesDev/video-js-rails
48
+ licenses: []
49
+ post_install_message:
50
+ rdoc_options: []
51
+ require_paths:
52
+ - lib
53
+ required_ruby_version: !ruby/object:Gem::Requirement
54
+ none: false
55
+ requirements:
56
+ - - ! '>='
57
+ - !ruby/object:Gem::Version
58
+ version: '0'
59
+ required_rubygems_version: !ruby/object:Gem::Requirement
60
+ none: false
61
+ requirements:
62
+ - - ! '>='
63
+ - !ruby/object:Gem::Version
64
+ version: '0'
65
+ requirements: []
66
+ rubyforge_project:
67
+ rubygems_version: 1.8.24
68
+ signing_key:
69
+ specification_version: 3
70
+ summary: Video.js for Rails
71
+ test_files: []