media_embed 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +0 -6
- data/lib/media_embed/handler.rb +20 -20
- data/lib/media_embed/podcast.rb +1 -1
- data/lib/media_embed/version.rb +1 -1
- data/lib/media_embed/video.rb +3 -3
- data/test/media_embed/handler_test.rb +27 -27
- data/test/media_embed/podcast_test.rb +14 -0
- data/test/media_embed/video_test.rb +25 -0
- data/test/test_helper.rb +3 -16
- metadata +9 -171
- data/test/dummy/README.rdoc +0 -28
- data/test/dummy/Rakefile +0 -6
- data/test/dummy/app/assets/javascripts/application.js +0 -13
- data/test/dummy/app/assets/javascripts/home.js +0 -2
- data/test/dummy/app/assets/stylesheets/application.css +0 -15
- data/test/dummy/app/assets/stylesheets/home.css +0 -4
- data/test/dummy/app/controllers/application_controller.rb +0 -5
- data/test/dummy/app/controllers/home_controller.rb +0 -4
- data/test/dummy/app/helpers/application_helper.rb +0 -2
- data/test/dummy/app/helpers/home_helper.rb +0 -2
- data/test/dummy/app/views/home/index.html.erb +0 -68
- data/test/dummy/app/views/layouts/application.html.erb +0 -14
- data/test/dummy/bin/bundle +0 -3
- data/test/dummy/bin/rails +0 -4
- data/test/dummy/bin/rake +0 -4
- data/test/dummy/bin/setup +0 -29
- data/test/dummy/config.ru +0 -4
- data/test/dummy/config/application.rb +0 -26
- data/test/dummy/config/boot.rb +0 -5
- data/test/dummy/config/database.yml +0 -25
- data/test/dummy/config/environment.rb +0 -5
- data/test/dummy/config/environments/development.rb +0 -41
- data/test/dummy/config/environments/production.rb +0 -79
- data/test/dummy/config/environments/test.rb +0 -42
- data/test/dummy/config/initializers/assets.rb +0 -11
- data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/test/dummy/config/initializers/cookies_serializer.rb +0 -3
- data/test/dummy/config/initializers/filter_parameter_logging.rb +0 -4
- data/test/dummy/config/initializers/inflections.rb +0 -16
- data/test/dummy/config/initializers/mime_types.rb +0 -4
- data/test/dummy/config/initializers/session_store.rb +0 -3
- data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/test/dummy/config/locales/en.yml +0 -23
- data/test/dummy/config/routes.rb +0 -4
- data/test/dummy/config/secrets.yml +0 -22
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +0 -642
- data/test/dummy/log/test.log +0 -230
- data/test/dummy/public/404.html +0 -67
- data/test/dummy/public/422.html +0 -67
- data/test/dummy/public/500.html +0 -66
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/test/controllers/home_controller_test.rb +0 -7
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/5L/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache +0 -2
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/5Q/5QKO5_wh9WWzBY7U_HkwBrMsmoT4GN1TwF3j4i3wKDk.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/78/78j08qqtmv-JUdkCWJDsNYi7yzDbzQCU2S7L6AOLuvs.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/DM/DMAJ3KDpacWbGmN1Cnq4PksEZZJwApG5ssuM3xsHqD8.cache +0 -2
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/DS/DSOLSc6A5RVSmvM415eEWAWG_AgOvZcLZOXQjsXyWQA.cache +0 -2
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Lq/Lq2C_BTRZxc5UhovyGcuDniBSLgXJ6iXzNPTHz218N4.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/OI/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache +0 -2
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Oe/OeCtrqtSGPVeMDxJIKfaJbuLZPzBZV4lfPKUuEgH2II.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Q8/Q84NQ59ORq5u4K-Nyw6uPayOn-VCdceVXQ7aGt3ygoM.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Q8/q8M9NJXXFO0wJXrSI72sLXloRAfZqV2__5k_fRRBvDc.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Qj/Qj0ia-J1N9Y-J_dwZPjd4fK3EOx4yj25ZUzLIAPZ1Y0.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Tr/Tr6FQPpaiJ0m5Uy-742ZKxfqwdLoaivs0u709PWrJnI.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Zx/Zx_pY8rr1nkaxuaXAyawN22ouXmPuf7ju8gMSZAuLME.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/_9/_9A2uJkTbXCY-byELZxtnz9J7DlP9cDTf3iDC49xuXY.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/b1/b1c9KFtx0FgHD9sk4rnwytFaubTXmq3wOsq4IEt_kZk.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/eD/eDjrmZq57MKXV15QCoYh0AryvyBrzVI6uloOivalMGA.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/eH/eH-T_w27bGgX2U1WQX1SoPaBw8NJ_jtOwHtfyeK-8OE.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/gZ/gZp3uXMHuYQC4hzCr7bQfetKNdJAtbQmg3so2KpW1Dw.cache +0 -2
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/hG/hG-rDmyd73DilpsuEZej17NJrk0lfcD4HO493ENl1nw.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/hQ/hQ-Q1U-4i58pSG74SoUGKzNKc1Uck9AnOiw8smXC8Ic.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/hZ/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache +0 -2
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/iz/izUTL63DNdovMkVITSoAZ5LvYaBVDW7AzIccJ6qsUvQ.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/jo/jor-MCwFJHsYxGBjtsXux9i-qClvAH0JiC8JsV0QsXQ.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/pE/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache +0 -2
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/pn/pnW3u_1AN48ig6ngefI89y96xoSlvnJurx-e3J-leoE.cache +0 -3
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/rH/rH0XF9hlEBaHEN2-fmB9i_eJyZQL7pYTDLCfJ4hooy4.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/rX/rXh9_pElA8n-GpShfVjGuwEr4BLbuARTyndl5rEz9Nc.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/ss/ssS2x0Wl67rwXHaVHsh6CO7ayn9fQ5saIwATKN6O-nI.cache +0 -3
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/xt/xtXpwJn_zdX4IYipCeokPBOCp4guNpM9V_ybPdFSDFA.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/yi/yilpDoLbllD_EjIKIfMFuMgcFT-ypWu98nAxyNQ5xKc.cache +0 -1
- data/test/dummy/tmp/pids/server.pid +0 -1
- data/test/media_embed_test.rb +0 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 271bd0b19f56cf30b54ac2bef3507bb358caf4ad
|
4
|
+
data.tar.gz: a5a1ead1fe236e53e069f56a471848fb05d55beb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d56273b015b3b3c35eafcb1b0d8b7226e7feca49f98b18ce230c4ded1e349515b835263b69772817e3acab487ff063d8a93c1d5e2eca18f294a03d80c691493
|
7
|
+
data.tar.gz: 8607ec0867624b583b30c32730a0951dae572184b6cd2ccbd556440a1c73026fb4c16ca87fc3ccb9271b143c6a545a82196de81b15c6de630e788708c9992cad
|
data/Rakefile
CHANGED
@@ -14,11 +14,6 @@ RDoc::Task.new(:rdoc) do |rdoc|
|
|
14
14
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
15
15
|
end
|
16
16
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
17
|
Bundler::GemHelper.install_tasks
|
23
18
|
|
24
19
|
require 'rake/testtask'
|
@@ -30,5 +25,4 @@ Rake::TestTask.new(:test) do |t|
|
|
30
25
|
t.verbose = false
|
31
26
|
end
|
32
27
|
|
33
|
-
|
34
28
|
task default: :test
|
data/lib/media_embed/handler.rb
CHANGED
@@ -3,24 +3,9 @@ module MediaEmbed
|
|
3
3
|
CODE = -1
|
4
4
|
|
5
5
|
def embed(url, options = {})
|
6
|
-
|
6
|
+
template_for(url, options)
|
7
7
|
end
|
8
8
|
|
9
|
-
def template_for(url, options = {})
|
10
|
-
template = if match = youtube?(url)
|
11
|
-
Video.youtube_template(match[CODE])
|
12
|
-
elsif match = vimeo?(url)
|
13
|
-
Video.vimeo_template(match[CODE])
|
14
|
-
elsif match = soundcloud?(url)
|
15
|
-
Podcast.soundcloud_template(match[CODE])
|
16
|
-
else
|
17
|
-
''
|
18
|
-
end
|
19
|
-
|
20
|
-
return template
|
21
|
-
end
|
22
|
-
|
23
|
-
|
24
9
|
def youtube?(url)
|
25
10
|
url.match youtube_regex
|
26
11
|
end
|
@@ -33,17 +18,32 @@ module MediaEmbed
|
|
33
18
|
url.match soundcloud_regex
|
34
19
|
end
|
35
20
|
|
21
|
+
protected
|
22
|
+
|
23
|
+
def template_for(url, options = {})
|
24
|
+
template = if match = youtube?(url)
|
25
|
+
Video.youtube_template(match[CODE], options)
|
26
|
+
elsif match = vimeo?(url)
|
27
|
+
Video.vimeo_template(match[CODE], options)
|
28
|
+
elsif match = soundcloud?(url)
|
29
|
+
Podcast.soundcloud_template(match[CODE], options)
|
30
|
+
else
|
31
|
+
''
|
32
|
+
end
|
33
|
+
|
34
|
+
return template
|
35
|
+
end
|
36
|
+
|
36
37
|
def youtube_regex
|
37
|
-
|
38
|
+
%r{youtu(\.be|be\.com)/(watch\?v=|embed/|)([^?\s]*)}
|
38
39
|
end
|
39
40
|
|
40
41
|
def vimeo_regex
|
41
|
-
|
42
|
+
%r{vimeo\.com/(channels/\D*|groups/\D*|album/\d*/video/|video/|)([^?\s]*)}
|
42
43
|
end
|
43
44
|
|
44
45
|
def soundcloud_regex
|
45
|
-
|
46
|
+
%r{soundcloud.com/(.*/[a-zA-Z0-9\-\_]*)}
|
46
47
|
end
|
47
48
|
end
|
48
49
|
end
|
49
|
-
|
data/lib/media_embed/podcast.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
module MediaEmbed
|
2
2
|
class Podcast
|
3
|
-
def self.soundcloud_template(code)
|
3
|
+
def self.soundcloud_template(code, options = {})
|
4
4
|
%Q(<iframe width="100%" height="450" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//soundcloud.com/#{code}&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&visual=true"></iframe>)
|
5
5
|
end
|
6
6
|
end
|
data/lib/media_embed/version.rb
CHANGED
data/lib/media_embed/video.rb
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
module MediaEmbed
|
2
2
|
class Video
|
3
3
|
def self.youtube_template(code, options = {})
|
4
|
-
|
4
|
+
iframe("//www.youtube.com/embed/#{code}/enablejsapi=1", options)
|
5
5
|
end
|
6
6
|
|
7
7
|
def self.vimeo_template(code, options = {})
|
8
|
-
|
8
|
+
iframe("//player.vimeo.com/video/#{code}", options)
|
9
9
|
end
|
10
10
|
|
11
11
|
private
|
12
12
|
|
13
13
|
def self.iframe(source, options = {})
|
14
|
-
|
14
|
+
%(<iframe src='#{source}' #{options.map { |key, value| "#{key}='#{value}'" }.join(' ')}></iframe>)
|
15
15
|
end
|
16
16
|
end
|
17
17
|
end
|
@@ -1,43 +1,43 @@
|
|
1
|
-
require
|
2
|
-
|
3
|
-
class HandlerTest < ActiveSupport::TestCase
|
4
|
-
include MediaEmbed::Handler
|
1
|
+
require 'test_helper'
|
2
|
+
require 'media_embed/handler'
|
5
3
|
|
4
|
+
class HandlerTest < Minitest::Test
|
6
5
|
CODE = MediaEmbed::Handler::CODE
|
7
6
|
|
8
|
-
YOUTUBE_URLS =
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
7
|
+
YOUTUBE_URLS = %w(youtube.com/watch?v=CODE
|
8
|
+
youtu.be/CODE
|
9
|
+
youtu.be/CODE?some=param
|
10
|
+
youtube.com/embed/CODE).freeze
|
11
|
+
|
12
|
+
VIMEO_URLS = %w(vimeo.com/8888
|
13
|
+
vimeo.com/8888?some=param
|
14
|
+
player.vimeo.com/video/8888
|
15
|
+
vimeo.com/channels/channel-name/8888
|
16
|
+
vimeo.com/groups/groups-name/8888
|
17
|
+
vimeo.com/album/2222/video/8888).freeze
|
13
18
|
|
14
|
-
|
15
|
-
vimeo.com/8888?some=param
|
16
|
-
player.vimeo.com/video/8888
|
17
|
-
vimeo.com/channels/channel-name/8888
|
18
|
-
vimeo.com/groups/groups-name/8888
|
19
|
-
vimeo.com/album/2222/video/8888
|
20
|
-
)
|
19
|
+
SOUNDCLOUD_URL = %w(soundcloud.com/username/code-for-podcast).freeze
|
21
20
|
|
22
|
-
|
21
|
+
def setup
|
22
|
+
@klass = Class.new { include MediaEmbed::Handler }.new
|
23
|
+
end
|
23
24
|
|
24
|
-
test
|
25
|
+
test 'it should extract codes from all youtube structures' do
|
25
26
|
YOUTUBE_URLS.map { |url| "irrelevantinfo#{url}" }.each do |url|
|
26
|
-
match = youtube?(url)[CODE]
|
27
|
-
|
27
|
+
match = @klass.youtube?(url)[CODE]
|
28
|
+
assert_equal match, 'CODE'
|
28
29
|
end
|
29
30
|
end
|
30
31
|
|
31
|
-
test
|
32
|
+
test 'it should extract code from all vimeo structures' do
|
32
33
|
VIMEO_URLS.map { |url| "irrelevantinfo#{url}" }.each do |url|
|
33
|
-
match = vimeo?(url)[CODE]
|
34
|
-
|
34
|
+
match = @klass.vimeo?(url)[CODE]
|
35
|
+
assert_equal match, '8888'
|
35
36
|
end
|
36
37
|
end
|
37
38
|
|
38
|
-
test
|
39
|
-
match = soundcloud?("irrelevantinfo#{SOUNDCLOUD_URL}")[CODE]
|
40
|
-
|
39
|
+
test 'it should extract code for soundcloud structure' do
|
40
|
+
match = @klass.soundcloud?("irrelevantinfo#{SOUNDCLOUD_URL}")[CODE]
|
41
|
+
assert_equal match, 'username/code-for-podcast'
|
41
42
|
end
|
42
43
|
end
|
43
|
-
|
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
require 'media_embed/podcast'
|
3
|
+
|
4
|
+
class PodcastTest < Minitest::Test
|
5
|
+
|
6
|
+
test 'should wrap a given code in the soundcloud embed iframe' do
|
7
|
+
code = '1234'
|
8
|
+
|
9
|
+
iframe = %Q(<iframe width="100%" height="450" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//soundcloud.com/#{code}&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&visual=true"></iframe>)
|
10
|
+
|
11
|
+
assert_equal iframe, MediaEmbed::Podcast.soundcloud_template(code)
|
12
|
+
end
|
13
|
+
|
14
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
require 'media_embed/video'
|
3
|
+
|
4
|
+
class VideoTest < Minitest::Test
|
5
|
+
|
6
|
+
test 'it should wrap a youtube code without options in an iframe tag' do
|
7
|
+
source = '//www.youtube.com/embed/1234/enablejsapi=1'
|
8
|
+
|
9
|
+
assert_equal %(<iframe src='#{source}' ></iframe>), MediaEmbed::Video.youtube_template('1234')
|
10
|
+
end
|
11
|
+
|
12
|
+
test 'it should wrap a vimeo code without options in an iframe tag' do
|
13
|
+
source = '//player.vimeo.com/video/1234'
|
14
|
+
|
15
|
+
assert_equal %(<iframe src='#{source}' ></iframe>), MediaEmbed::Video.vimeo_template('1234')
|
16
|
+
end
|
17
|
+
|
18
|
+
test 'it should wrap a source with options' do
|
19
|
+
source = '//www.youtube.com/embed/1234/enablejsapi=1'
|
20
|
+
iframe_with_options = %(<iframe src='#{source}' width='50px' height='50px'></iframe>)
|
21
|
+
|
22
|
+
assert_equal iframe_with_options, MediaEmbed::Video.youtube_template('1234', width: '50px', height: '50px')
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
data/test/test_helper.rb
CHANGED
@@ -1,20 +1,7 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
require File.expand_path("../../test/dummy/config/environment.rb", __FILE__)
|
5
|
-
ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../test/dummy/db/migrate", __FILE__)]
|
6
|
-
require "rails/test_help"
|
1
|
+
require 'bundler'
|
2
|
+
Bundler.require :default, :test
|
3
|
+
require 'minitest/autorun'
|
7
4
|
|
8
5
|
# Filter out Minitest backtrace while allowing backtrace from other libraries
|
9
6
|
# to be shown.
|
10
7
|
Minitest.backtrace_filter = Minitest::BacktraceFilter.new
|
11
|
-
|
12
|
-
# Load support files
|
13
|
-
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
14
|
-
|
15
|
-
# Load fixtures from the engine
|
16
|
-
if ActiveSupport::TestCase.respond_to?(:fixture_path=)
|
17
|
-
ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
|
18
|
-
ActionDispatch::IntegrationTest.fixture_path = ActiveSupport::TestCase.fixture_path
|
19
|
-
ActiveSupport::TestCase.fixtures :all
|
20
|
-
end
|
metadata
CHANGED
@@ -1,31 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: media_embed
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- WendyBeth
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '4'
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ">="
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '4'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: sqlite3
|
14
|
+
name: pry
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|
30
16
|
requirements:
|
31
17
|
- - ">="
|
@@ -39,7 +25,7 @@ dependencies:
|
|
39
25
|
- !ruby/object:Gem::Version
|
40
26
|
version: '0'
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
|
-
name: pry
|
28
|
+
name: pry-nav
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
44
30
|
requirements:
|
45
31
|
- - ">="
|
@@ -53,7 +39,7 @@ dependencies:
|
|
53
39
|
- !ruby/object:Gem::Version
|
54
40
|
version: '0'
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
42
|
+
name: rake
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
58
44
|
requirements:
|
59
45
|
- - ">="
|
@@ -83,83 +69,9 @@ files:
|
|
83
69
|
- lib/media_embed/version.rb
|
84
70
|
- lib/media_embed/video.rb
|
85
71
|
- lib/tasks/media_embed_tasks.rake
|
86
|
-
- test/dummy/README.rdoc
|
87
|
-
- test/dummy/Rakefile
|
88
|
-
- test/dummy/app/assets/javascripts/application.js
|
89
|
-
- test/dummy/app/assets/javascripts/home.js
|
90
|
-
- test/dummy/app/assets/stylesheets/application.css
|
91
|
-
- test/dummy/app/assets/stylesheets/home.css
|
92
|
-
- test/dummy/app/controllers/application_controller.rb
|
93
|
-
- test/dummy/app/controllers/home_controller.rb
|
94
|
-
- test/dummy/app/helpers/application_helper.rb
|
95
|
-
- test/dummy/app/helpers/home_helper.rb
|
96
|
-
- test/dummy/app/views/home/index.html.erb
|
97
|
-
- test/dummy/app/views/layouts/application.html.erb
|
98
|
-
- test/dummy/bin/bundle
|
99
|
-
- test/dummy/bin/rails
|
100
|
-
- test/dummy/bin/rake
|
101
|
-
- test/dummy/bin/setup
|
102
|
-
- test/dummy/config.ru
|
103
|
-
- test/dummy/config/application.rb
|
104
|
-
- test/dummy/config/boot.rb
|
105
|
-
- test/dummy/config/database.yml
|
106
|
-
- test/dummy/config/environment.rb
|
107
|
-
- test/dummy/config/environments/development.rb
|
108
|
-
- test/dummy/config/environments/production.rb
|
109
|
-
- test/dummy/config/environments/test.rb
|
110
|
-
- test/dummy/config/initializers/assets.rb
|
111
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
112
|
-
- test/dummy/config/initializers/cookies_serializer.rb
|
113
|
-
- test/dummy/config/initializers/filter_parameter_logging.rb
|
114
|
-
- test/dummy/config/initializers/inflections.rb
|
115
|
-
- test/dummy/config/initializers/mime_types.rb
|
116
|
-
- test/dummy/config/initializers/session_store.rb
|
117
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
118
|
-
- test/dummy/config/locales/en.yml
|
119
|
-
- test/dummy/config/routes.rb
|
120
|
-
- test/dummy/config/secrets.yml
|
121
|
-
- test/dummy/db/development.sqlite3
|
122
|
-
- test/dummy/db/test.sqlite3
|
123
|
-
- test/dummy/log/development.log
|
124
|
-
- test/dummy/log/test.log
|
125
|
-
- test/dummy/public/404.html
|
126
|
-
- test/dummy/public/422.html
|
127
|
-
- test/dummy/public/500.html
|
128
|
-
- test/dummy/public/favicon.ico
|
129
|
-
- test/dummy/test/controllers/home_controller_test.rb
|
130
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/5L/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache
|
131
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/5Q/5QKO5_wh9WWzBY7U_HkwBrMsmoT4GN1TwF3j4i3wKDk.cache
|
132
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/78/78j08qqtmv-JUdkCWJDsNYi7yzDbzQCU2S7L6AOLuvs.cache
|
133
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/DM/DMAJ3KDpacWbGmN1Cnq4PksEZZJwApG5ssuM3xsHqD8.cache
|
134
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/DS/DSOLSc6A5RVSmvM415eEWAWG_AgOvZcLZOXQjsXyWQA.cache
|
135
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/Lq/Lq2C_BTRZxc5UhovyGcuDniBSLgXJ6iXzNPTHz218N4.cache
|
136
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/OI/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache
|
137
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/Oe/OeCtrqtSGPVeMDxJIKfaJbuLZPzBZV4lfPKUuEgH2II.cache
|
138
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/Q8/Q84NQ59ORq5u4K-Nyw6uPayOn-VCdceVXQ7aGt3ygoM.cache
|
139
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/Q8/q8M9NJXXFO0wJXrSI72sLXloRAfZqV2__5k_fRRBvDc.cache
|
140
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/Qj/Qj0ia-J1N9Y-J_dwZPjd4fK3EOx4yj25ZUzLIAPZ1Y0.cache
|
141
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/Tr/Tr6FQPpaiJ0m5Uy-742ZKxfqwdLoaivs0u709PWrJnI.cache
|
142
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/Zx/Zx_pY8rr1nkaxuaXAyawN22ouXmPuf7ju8gMSZAuLME.cache
|
143
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/_9/_9A2uJkTbXCY-byELZxtnz9J7DlP9cDTf3iDC49xuXY.cache
|
144
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/b1/b1c9KFtx0FgHD9sk4rnwytFaubTXmq3wOsq4IEt_kZk.cache
|
145
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/eD/eDjrmZq57MKXV15QCoYh0AryvyBrzVI6uloOivalMGA.cache
|
146
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/eH/eH-T_w27bGgX2U1WQX1SoPaBw8NJ_jtOwHtfyeK-8OE.cache
|
147
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/gZ/gZp3uXMHuYQC4hzCr7bQfetKNdJAtbQmg3so2KpW1Dw.cache
|
148
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/hG/hG-rDmyd73DilpsuEZej17NJrk0lfcD4HO493ENl1nw.cache
|
149
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/hQ/hQ-Q1U-4i58pSG74SoUGKzNKc1Uck9AnOiw8smXC8Ic.cache
|
150
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/hZ/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache
|
151
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/iz/izUTL63DNdovMkVITSoAZ5LvYaBVDW7AzIccJ6qsUvQ.cache
|
152
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/jo/jor-MCwFJHsYxGBjtsXux9i-qClvAH0JiC8JsV0QsXQ.cache
|
153
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/pE/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache
|
154
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/pn/pnW3u_1AN48ig6ngefI89y96xoSlvnJurx-e3J-leoE.cache
|
155
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/rH/rH0XF9hlEBaHEN2-fmB9i_eJyZQL7pYTDLCfJ4hooy4.cache
|
156
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/rX/rXh9_pElA8n-GpShfVjGuwEr4BLbuARTyndl5rEz9Nc.cache
|
157
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/ss/ssS2x0Wl67rwXHaVHsh6CO7ayn9fQ5saIwATKN6O-nI.cache
|
158
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/xt/xtXpwJn_zdX4IYipCeokPBOCp4guNpM9V_ybPdFSDFA.cache
|
159
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/yi/yilpDoLbllD_EjIKIfMFuMgcFT-ypWu98nAxyNQ5xKc.cache
|
160
|
-
- test/dummy/tmp/pids/server.pid
|
161
72
|
- test/media_embed/handler_test.rb
|
162
|
-
- test/
|
73
|
+
- test/media_embed/podcast_test.rb
|
74
|
+
- test/media_embed/video_test.rb
|
163
75
|
- test/test_helper.rb
|
164
76
|
homepage: ''
|
165
77
|
licenses:
|
@@ -186,81 +98,7 @@ signing_key:
|
|
186
98
|
specification_version: 4
|
187
99
|
summary: Easy media embedding
|
188
100
|
test_files:
|
189
|
-
- test/dummy/app/assets/javascripts/application.js
|
190
|
-
- test/dummy/app/assets/javascripts/home.js
|
191
|
-
- test/dummy/app/assets/stylesheets/application.css
|
192
|
-
- test/dummy/app/assets/stylesheets/home.css
|
193
|
-
- test/dummy/app/controllers/application_controller.rb
|
194
|
-
- test/dummy/app/controllers/home_controller.rb
|
195
|
-
- test/dummy/app/helpers/application_helper.rb
|
196
|
-
- test/dummy/app/helpers/home_helper.rb
|
197
|
-
- test/dummy/app/views/home/index.html.erb
|
198
|
-
- test/dummy/app/views/layouts/application.html.erb
|
199
|
-
- test/dummy/bin/bundle
|
200
|
-
- test/dummy/bin/rails
|
201
|
-
- test/dummy/bin/rake
|
202
|
-
- test/dummy/bin/setup
|
203
|
-
- test/dummy/config/application.rb
|
204
|
-
- test/dummy/config/boot.rb
|
205
|
-
- test/dummy/config/database.yml
|
206
|
-
- test/dummy/config/environment.rb
|
207
|
-
- test/dummy/config/environments/development.rb
|
208
|
-
- test/dummy/config/environments/production.rb
|
209
|
-
- test/dummy/config/environments/test.rb
|
210
|
-
- test/dummy/config/initializers/assets.rb
|
211
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
212
|
-
- test/dummy/config/initializers/cookies_serializer.rb
|
213
|
-
- test/dummy/config/initializers/filter_parameter_logging.rb
|
214
|
-
- test/dummy/config/initializers/inflections.rb
|
215
|
-
- test/dummy/config/initializers/mime_types.rb
|
216
|
-
- test/dummy/config/initializers/session_store.rb
|
217
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
218
|
-
- test/dummy/config/locales/en.yml
|
219
|
-
- test/dummy/config/routes.rb
|
220
|
-
- test/dummy/config/secrets.yml
|
221
|
-
- test/dummy/config.ru
|
222
|
-
- test/dummy/db/development.sqlite3
|
223
|
-
- test/dummy/db/test.sqlite3
|
224
|
-
- test/dummy/log/development.log
|
225
|
-
- test/dummy/log/test.log
|
226
|
-
- test/dummy/public/404.html
|
227
|
-
- test/dummy/public/422.html
|
228
|
-
- test/dummy/public/500.html
|
229
|
-
- test/dummy/public/favicon.ico
|
230
|
-
- test/dummy/Rakefile
|
231
|
-
- test/dummy/README.rdoc
|
232
|
-
- test/dummy/test/controllers/home_controller_test.rb
|
233
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/5L/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache
|
234
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/5Q/5QKO5_wh9WWzBY7U_HkwBrMsmoT4GN1TwF3j4i3wKDk.cache
|
235
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/78/78j08qqtmv-JUdkCWJDsNYi7yzDbzQCU2S7L6AOLuvs.cache
|
236
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/_9/_9A2uJkTbXCY-byELZxtnz9J7DlP9cDTf3iDC49xuXY.cache
|
237
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/b1/b1c9KFtx0FgHD9sk4rnwytFaubTXmq3wOsq4IEt_kZk.cache
|
238
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/DM/DMAJ3KDpacWbGmN1Cnq4PksEZZJwApG5ssuM3xsHqD8.cache
|
239
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/DS/DSOLSc6A5RVSmvM415eEWAWG_AgOvZcLZOXQjsXyWQA.cache
|
240
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/eD/eDjrmZq57MKXV15QCoYh0AryvyBrzVI6uloOivalMGA.cache
|
241
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/eH/eH-T_w27bGgX2U1WQX1SoPaBw8NJ_jtOwHtfyeK-8OE.cache
|
242
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/gZ/gZp3uXMHuYQC4hzCr7bQfetKNdJAtbQmg3so2KpW1Dw.cache
|
243
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/hG/hG-rDmyd73DilpsuEZej17NJrk0lfcD4HO493ENl1nw.cache
|
244
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/hQ/hQ-Q1U-4i58pSG74SoUGKzNKc1Uck9AnOiw8smXC8Ic.cache
|
245
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/hZ/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache
|
246
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/iz/izUTL63DNdovMkVITSoAZ5LvYaBVDW7AzIccJ6qsUvQ.cache
|
247
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/jo/jor-MCwFJHsYxGBjtsXux9i-qClvAH0JiC8JsV0QsXQ.cache
|
248
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/Lq/Lq2C_BTRZxc5UhovyGcuDniBSLgXJ6iXzNPTHz218N4.cache
|
249
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/Oe/OeCtrqtSGPVeMDxJIKfaJbuLZPzBZV4lfPKUuEgH2II.cache
|
250
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/OI/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache
|
251
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/pE/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache
|
252
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/pn/pnW3u_1AN48ig6ngefI89y96xoSlvnJurx-e3J-leoE.cache
|
253
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/Q8/Q84NQ59ORq5u4K-Nyw6uPayOn-VCdceVXQ7aGt3ygoM.cache
|
254
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/Q8/q8M9NJXXFO0wJXrSI72sLXloRAfZqV2__5k_fRRBvDc.cache
|
255
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/Qj/Qj0ia-J1N9Y-J_dwZPjd4fK3EOx4yj25ZUzLIAPZ1Y0.cache
|
256
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/rH/rH0XF9hlEBaHEN2-fmB9i_eJyZQL7pYTDLCfJ4hooy4.cache
|
257
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/rX/rXh9_pElA8n-GpShfVjGuwEr4BLbuARTyndl5rEz9Nc.cache
|
258
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/ss/ssS2x0Wl67rwXHaVHsh6CO7ayn9fQ5saIwATKN6O-nI.cache
|
259
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/Tr/Tr6FQPpaiJ0m5Uy-742ZKxfqwdLoaivs0u709PWrJnI.cache
|
260
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/xt/xtXpwJn_zdX4IYipCeokPBOCp4guNpM9V_ybPdFSDFA.cache
|
261
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/yi/yilpDoLbllD_EjIKIfMFuMgcFT-ypWu98nAxyNQ5xKc.cache
|
262
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/Zx/Zx_pY8rr1nkaxuaXAyawN22ouXmPuf7ju8gMSZAuLME.cache
|
263
|
-
- test/dummy/tmp/pids/server.pid
|
264
101
|
- test/media_embed/handler_test.rb
|
265
|
-
- test/
|
102
|
+
- test/media_embed/podcast_test.rb
|
103
|
+
- test/media_embed/video_test.rb
|
266
104
|
- test/test_helper.rb
|