mediaelement_rails 0.2
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.
- data/.gitignore +8 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +97 -0
- data/MIT-LICENSE +20 -0
- data/README.md +29 -0
- data/Rakefile +39 -0
- data/app/assets/flash/mediaelement_rails/flashmediaelement.swf +0 -0
- data/app/assets/images/mediaelement_rails/background.png +0 -0
- data/app/assets/images/mediaelement_rails/bigplay.png +0 -0
- data/app/assets/images/mediaelement_rails/controls-ted.png +0 -0
- data/app/assets/images/mediaelement_rails/controls-wmp-bg.png +0 -0
- data/app/assets/images/mediaelement_rails/controls-wmp.png +0 -0
- data/app/assets/images/mediaelement_rails/controls.png +0 -0
- data/app/assets/images/mediaelement_rails/loading.gif +0 -0
- data/app/assets/javascripts/mediaelement_rails/index.js +3 -0
- data/app/assets/javascripts/mediaelement_rails/mediaelement.js +943 -0
- data/app/assets/javascripts/mediaelement_rails/mediaelementplayer.js +1703 -0
- data/app/assets/javascripts/mediaelement_rails/rails.js.erb +5 -0
- data/app/assets/silverlight/mediaelement_rails/silverlightmediaelement.xap +0 -0
- data/app/assets/stylesheets/mediaelement_rails/index.css +1 -0
- data/app/assets/stylesheets/mediaelement_rails/mediaelementplayer.css.erb +571 -0
- data/app/assets/stylesheets/mediaelement_rails/mejs-skins.css.erb +283 -0
- data/app/controllers/mediaelement_rails/application_controller.rb +4 -0
- data/app/helpers/mediaelement_rails/application_helper.rb +4 -0
- data/app/views/layouts/application.html.erb +14 -0
- data/app/views/layouts/mediaelement_rails/application.html.erb +14 -0
- data/config/routes.rb +2 -0
- data/lib/generators/mediaelement_update/USAGE +7 -0
- data/lib/generators/mediaelement_update/mediaelement_update_generator.rb +46 -0
- data/lib/mediaelement_rails/engine.rb +5 -0
- data/lib/mediaelement_rails/version.rb +3 -0
- data/lib/mediaelement_rails.rb +4 -0
- data/lib/tasks/mediaelement_rails_tasks.rake +4 -0
- data/mediaelement_rails.gemspec +20 -0
- data/script/rails +6 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +9 -0
- data/test/dummy/app/assets/stylesheets/application.css +7 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/mailers/.gitkeep +0 -0
- data/test/dummy/app/models/.gitkeep +0 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/config/application.rb +45 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +24 -0
- data/test/dummy/config/environments/production.rb +51 -0
- data/test/dummy/config/environments/test.rb +34 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +10 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +12 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +4 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/lib/assets/.gitkeep +0 -0
- data/test/dummy/log/.gitkeep +0 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +26 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/integration/navigation_test.rb +10 -0
- data/test/mediaelement_rails_test.rb +7 -0
- data/test/test_helper.rb +10 -0
- metadata +170 -0
@@ -0,0 +1,34 @@
|
|
1
|
+
Dummy::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb
|
3
|
+
|
4
|
+
# The test environment is used exclusively to run your application's
|
5
|
+
# test suite. You never need to work with it otherwise. Remember that
|
6
|
+
# your test database is "scratch space" for the test suite and is wiped
|
7
|
+
# and recreated between test runs. Don't rely on the data there!
|
8
|
+
config.cache_classes = true
|
9
|
+
|
10
|
+
# Configure static asset server for tests with Cache-Control for performance
|
11
|
+
config.serve_static_assets = true
|
12
|
+
config.static_cache_control = "public, max-age=3600"
|
13
|
+
|
14
|
+
# Log error messages when you accidentally call methods on nil
|
15
|
+
config.whiny_nils = true
|
16
|
+
|
17
|
+
# Show full error reports and disable caching
|
18
|
+
config.consider_all_requests_local = true
|
19
|
+
config.action_controller.perform_caching = false
|
20
|
+
|
21
|
+
# Raise exceptions instead of rendering exception templates
|
22
|
+
config.action_dispatch.show_exceptions = false
|
23
|
+
|
24
|
+
# Disable request forgery protection in test environment
|
25
|
+
config.action_controller.allow_forgery_protection = false
|
26
|
+
|
27
|
+
# Use SQL instead of Active Record's schema dumper when creating the test database.
|
28
|
+
# This is necessary if your schema can't be completely dumped by the schema dumper,
|
29
|
+
# like if you have constraints or database-specific column types
|
30
|
+
# config.active_record.schema_format = :sql
|
31
|
+
|
32
|
+
# Print deprecation notices to the stderr
|
33
|
+
config.active_support.deprecation = :stderr
|
34
|
+
end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
4
|
+
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
|
5
|
+
|
6
|
+
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
|
7
|
+
# Rails.backtrace_cleaner.remove_silencers!
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Add new inflection rules using the following format
|
4
|
+
# (all these examples are active by default):
|
5
|
+
# ActiveSupport::Inflector.inflections do |inflect|
|
6
|
+
# inflect.plural /^(ox)$/i, '\1en'
|
7
|
+
# inflect.singular /^(ox)en/i, '\1'
|
8
|
+
# inflect.irregular 'person', 'people'
|
9
|
+
# inflect.uncountable %w( fish sheep )
|
10
|
+
# end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Your secret key for verifying the integrity of signed cookies.
|
4
|
+
# If you change this key, all old signed cookies will become invalid!
|
5
|
+
# Make sure the secret is at least 30 characters and all random,
|
6
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
7
|
+
Dummy::Application.config.secret_token = 'f906571bcc07e3c38909d12bffa600c3cb5b4d486fe965aa80058190ae9e356cfb13cd1652ab0fe32f4e638e64b497ceb1ed180bf1756b00f910f87e52a3cdbb'
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
|
4
|
+
|
5
|
+
# Use the database for sessions instead of the cookie-based default,
|
6
|
+
# which shouldn't be used to store highly confidential information
|
7
|
+
# (create the session table with "rails generate session_migration")
|
8
|
+
# Dummy::Application.config.session_store :active_record_store
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
#
|
3
|
+
# This file contains settings for ActionController::ParamsWrapper which
|
4
|
+
# is enabled by default.
|
5
|
+
|
6
|
+
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
7
|
+
ActionController::Base.wrap_parameters format: [:json]
|
8
|
+
|
9
|
+
# Disable root element in JSON by default.
|
10
|
+
if defined?(ActiveRecord)
|
11
|
+
ActiveRecord::Base.include_root_in_json = false
|
12
|
+
end
|
File without changes
|
File without changes
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/404.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
23
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/422.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The change you wanted was rejected.</h1>
|
23
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/500.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>We're sorry, but something went wrong.</h1>
|
23
|
+
<p>We've been notified about this issue and we'll take a look at it shortly.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
File without changes
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
+
|
4
|
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
+
require File.expand_path('../../config/boot', __FILE__)
|
6
|
+
require 'rails/commands'
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
# Configure Rails Environment
|
2
|
+
ENV["RAILS_ENV"] = "test"
|
3
|
+
|
4
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
5
|
+
require "rails/test_help"
|
6
|
+
|
7
|
+
Rails.backtrace_cleaner.remove_silencers!
|
8
|
+
|
9
|
+
# Load support files
|
10
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
metadata
ADDED
@@ -0,0 +1,170 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: mediaelement_rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: '0.2'
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Tobias Schlottke
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2011-08-23 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rails
|
16
|
+
requirement: &70128529952940 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 3.1.rc.5
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *70128529952940
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: jquery-rails
|
27
|
+
requirement: &70128529952520 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
type: :development
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *70128529952520
|
36
|
+
description: a MediaElement gem(engine) for rails. Makes embedding HTML5 video easy
|
37
|
+
email:
|
38
|
+
- tobias.schlottke@gmail.com
|
39
|
+
executables: []
|
40
|
+
extensions: []
|
41
|
+
extra_rdoc_files: []
|
42
|
+
files:
|
43
|
+
- .gitignore
|
44
|
+
- Gemfile
|
45
|
+
- Gemfile.lock
|
46
|
+
- MIT-LICENSE
|
47
|
+
- README.md
|
48
|
+
- Rakefile
|
49
|
+
- app/assets/flash/mediaelement_rails/flashmediaelement.swf
|
50
|
+
- app/assets/images/mediaelement_rails/background.png
|
51
|
+
- app/assets/images/mediaelement_rails/bigplay.png
|
52
|
+
- app/assets/images/mediaelement_rails/controls-ted.png
|
53
|
+
- app/assets/images/mediaelement_rails/controls-wmp-bg.png
|
54
|
+
- app/assets/images/mediaelement_rails/controls-wmp.png
|
55
|
+
- app/assets/images/mediaelement_rails/controls.png
|
56
|
+
- app/assets/images/mediaelement_rails/loading.gif
|
57
|
+
- app/assets/javascripts/mediaelement_rails/index.js
|
58
|
+
- app/assets/javascripts/mediaelement_rails/mediaelement.js
|
59
|
+
- app/assets/javascripts/mediaelement_rails/mediaelementplayer.js
|
60
|
+
- app/assets/javascripts/mediaelement_rails/rails.js.erb
|
61
|
+
- app/assets/silverlight/mediaelement_rails/silverlightmediaelement.xap
|
62
|
+
- app/assets/stylesheets/mediaelement_rails/index.css
|
63
|
+
- app/assets/stylesheets/mediaelement_rails/mediaelementplayer.css.erb
|
64
|
+
- app/assets/stylesheets/mediaelement_rails/mejs-skins.css.erb
|
65
|
+
- app/controllers/mediaelement_rails/application_controller.rb
|
66
|
+
- app/helpers/mediaelement_rails/application_helper.rb
|
67
|
+
- app/views/layouts/application.html.erb
|
68
|
+
- app/views/layouts/mediaelement_rails/application.html.erb
|
69
|
+
- config/routes.rb
|
70
|
+
- lib/generators/mediaelement_update/USAGE
|
71
|
+
- lib/generators/mediaelement_update/mediaelement_update_generator.rb
|
72
|
+
- lib/mediaelement_rails.rb
|
73
|
+
- lib/mediaelement_rails/engine.rb
|
74
|
+
- lib/mediaelement_rails/version.rb
|
75
|
+
- lib/tasks/mediaelement_rails_tasks.rake
|
76
|
+
- mediaelement_rails.gemspec
|
77
|
+
- script/rails
|
78
|
+
- test/dummy/Rakefile
|
79
|
+
- test/dummy/app/assets/javascripts/application.js
|
80
|
+
- test/dummy/app/assets/stylesheets/application.css
|
81
|
+
- test/dummy/app/controllers/application_controller.rb
|
82
|
+
- test/dummy/app/helpers/application_helper.rb
|
83
|
+
- test/dummy/app/mailers/.gitkeep
|
84
|
+
- test/dummy/app/models/.gitkeep
|
85
|
+
- test/dummy/app/views/layouts/application.html.erb
|
86
|
+
- test/dummy/config.ru
|
87
|
+
- test/dummy/config/application.rb
|
88
|
+
- test/dummy/config/boot.rb
|
89
|
+
- test/dummy/config/database.yml
|
90
|
+
- test/dummy/config/environment.rb
|
91
|
+
- test/dummy/config/environments/development.rb
|
92
|
+
- test/dummy/config/environments/production.rb
|
93
|
+
- test/dummy/config/environments/test.rb
|
94
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
95
|
+
- test/dummy/config/initializers/inflections.rb
|
96
|
+
- test/dummy/config/initializers/mime_types.rb
|
97
|
+
- test/dummy/config/initializers/secret_token.rb
|
98
|
+
- test/dummy/config/initializers/session_store.rb
|
99
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
100
|
+
- test/dummy/config/locales/en.yml
|
101
|
+
- test/dummy/config/routes.rb
|
102
|
+
- test/dummy/lib/assets/.gitkeep
|
103
|
+
- test/dummy/log/.gitkeep
|
104
|
+
- test/dummy/public/404.html
|
105
|
+
- test/dummy/public/422.html
|
106
|
+
- test/dummy/public/500.html
|
107
|
+
- test/dummy/public/favicon.ico
|
108
|
+
- test/dummy/script/rails
|
109
|
+
- test/integration/navigation_test.rb
|
110
|
+
- test/mediaelement_rails_test.rb
|
111
|
+
- test/test_helper.rb
|
112
|
+
homepage: ''
|
113
|
+
licenses: []
|
114
|
+
post_install_message:
|
115
|
+
rdoc_options: []
|
116
|
+
require_paths:
|
117
|
+
- lib
|
118
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
119
|
+
none: false
|
120
|
+
requirements:
|
121
|
+
- - ! '>='
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '0'
|
124
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
125
|
+
none: false
|
126
|
+
requirements:
|
127
|
+
- - ! '>='
|
128
|
+
- !ruby/object:Gem::Version
|
129
|
+
version: '0'
|
130
|
+
requirements: []
|
131
|
+
rubyforge_project:
|
132
|
+
rubygems_version: 1.8.6
|
133
|
+
signing_key:
|
134
|
+
specification_version: 3
|
135
|
+
summary: MediaElement.js for rails
|
136
|
+
test_files:
|
137
|
+
- test/dummy/Rakefile
|
138
|
+
- test/dummy/app/assets/javascripts/application.js
|
139
|
+
- test/dummy/app/assets/stylesheets/application.css
|
140
|
+
- test/dummy/app/controllers/application_controller.rb
|
141
|
+
- test/dummy/app/helpers/application_helper.rb
|
142
|
+
- test/dummy/app/mailers/.gitkeep
|
143
|
+
- test/dummy/app/models/.gitkeep
|
144
|
+
- test/dummy/app/views/layouts/application.html.erb
|
145
|
+
- test/dummy/config.ru
|
146
|
+
- test/dummy/config/application.rb
|
147
|
+
- test/dummy/config/boot.rb
|
148
|
+
- test/dummy/config/database.yml
|
149
|
+
- test/dummy/config/environment.rb
|
150
|
+
- test/dummy/config/environments/development.rb
|
151
|
+
- test/dummy/config/environments/production.rb
|
152
|
+
- test/dummy/config/environments/test.rb
|
153
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
154
|
+
- test/dummy/config/initializers/inflections.rb
|
155
|
+
- test/dummy/config/initializers/mime_types.rb
|
156
|
+
- test/dummy/config/initializers/secret_token.rb
|
157
|
+
- test/dummy/config/initializers/session_store.rb
|
158
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
159
|
+
- test/dummy/config/locales/en.yml
|
160
|
+
- test/dummy/config/routes.rb
|
161
|
+
- test/dummy/lib/assets/.gitkeep
|
162
|
+
- test/dummy/log/.gitkeep
|
163
|
+
- test/dummy/public/404.html
|
164
|
+
- test/dummy/public/422.html
|
165
|
+
- test/dummy/public/500.html
|
166
|
+
- test/dummy/public/favicon.ico
|
167
|
+
- test/dummy/script/rails
|
168
|
+
- test/integration/navigation_test.rb
|
169
|
+
- test/mediaelement_rails_test.rb
|
170
|
+
- test/test_helper.rb
|