jekyll-html5-youtube 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -2
- data/examples/default/_config.yml +0 -1
- data/examples/default/index.md +15 -1
- data/lib/jekyll-html5-youtube.rb +1 -1
- data/lib/jekyll-html5-youtube/version.rb +1 -1
- metadata +2 -5
- data/examples/custom/Gemfile +0 -31
- data/examples/default/.bundle/config +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02a735937404b97f4b2dc31a94419c93e88c68d8
|
4
|
+
data.tar.gz: c98bc0ec47528cd999ad907e7f18ea6ffcb7dd16
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: feee62459860f85903bed0a77faf49ba108134d66f5c5f8a2dad71f74fb14acb4e08d987ecebc0babd77011741f5fc9641084459ed07ba4771cff102f07c3159
|
7
|
+
data.tar.gz: 7e3391e4f24db0496fd58b4b0e0fc857e3c3d40bd60fbff3a4b8d78a5c8d93c6069f3889bf01de5f6167312b37971219ad09eecda81182227a32d4cc3e55f3e8
|
data/README.md
CHANGED
@@ -41,7 +41,13 @@ add this to your CSS file
|
|
41
41
|
You can also use
|
42
42
|
|
43
43
|
```ruby
|
44
|
+
# Playlists
|
45
|
+
{% youtube "https://www.youtube.com/embed/abcd5678?list=abcd5678" %}
|
46
|
+
|
47
|
+
# Share/embeds
|
44
48
|
{% youtube "https://www.youtube.com/embed/abcd5678" %}
|
49
|
+
|
50
|
+
# Short URLs
|
45
51
|
{% youtube "https://youtu.be/abcd5678" %}
|
46
52
|
```
|
47
53
|
|
@@ -74,8 +80,8 @@ For troubleshooting, or just a quick start using ``jekyll-html5-youtube``, you c
|
|
74
80
|
## TODO
|
75
81
|
|
76
82
|
- [x] Add examples.
|
77
|
-
- [
|
78
|
-
- [
|
83
|
+
- [x] Support for timecode feature.
|
84
|
+
- [x] Support for playlists.
|
79
85
|
- [ ] Support for channel information display.
|
80
86
|
- [ ] Bug hunt.
|
81
87
|
|
data/examples/default/index.md
CHANGED
@@ -10,4 +10,18 @@ layout: home
|
|
10
10
|
.embed-container object{position:absolute;top:0;left:0;width:100%;height:100%}
|
11
11
|
</style>
|
12
12
|
|
13
|
-
|
13
|
+
## Normal URL
|
14
|
+
|
15
|
+
{% youtube "https://www.youtube.com/watch?v=NM2wtte1JRE" %}
|
16
|
+
|
17
|
+
## Short URL
|
18
|
+
|
19
|
+
{% youtube "https://youtu.be/NM2wtte1JRE" %}
|
20
|
+
|
21
|
+
## Share/embed URL
|
22
|
+
|
23
|
+
{% youtube "https://www.youtube.com/embed/NM2wtte1JRE" %}
|
24
|
+
|
25
|
+
## Playlist URL
|
26
|
+
|
27
|
+
{% youtube "https://www.youtube.com/watch?v=uzSiDzREF-A&list=PLJ_00oNJnOQOlxLK0ZPMVyatogu2SncNW" %}
|
data/lib/jekyll-html5-youtube.rb
CHANGED
@@ -13,7 +13,7 @@ class YouTubeEmbed < Liquid::Tag
|
|
13
13
|
if youtube_url[/youtu\.be\/([^*]*)/]
|
14
14
|
@youtube_id = $1
|
15
15
|
else
|
16
|
-
youtube_url[/^.*((v\/)|(embed\/)|(watch\?))\??v?=?([
|
16
|
+
youtube_url[/^.*((v\/)|(embed\/)|(watch\?))\??v?=?([^\*]*).*/]
|
17
17
|
@youtube_id = $5
|
18
18
|
end
|
19
19
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-html5-youtube
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lorenzo Sapora
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -64,11 +64,8 @@ files:
|
|
64
64
|
- LICENSE.md
|
65
65
|
- README.md
|
66
66
|
- Rakefile
|
67
|
-
- examples/custom/Gemfile
|
68
|
-
- examples/default/.bundle/config
|
69
67
|
- examples/default/.gitignore
|
70
68
|
- examples/default/Gemfile
|
71
|
-
- examples/default/Gemfile.lock
|
72
69
|
- examples/default/_config.yml
|
73
70
|
- examples/default/_posts/2017-02-12-welcome-to-jekyll.markdown
|
74
71
|
- examples/default/about.md
|
data/examples/custom/Gemfile
DELETED
@@ -1,31 +0,0 @@
|
|
1
|
-
source "https://rubygems.org"
|
2
|
-
ruby RUBY_VERSION
|
3
|
-
|
4
|
-
# Hello! This is where you manage which Jekyll version is used to run.
|
5
|
-
# When you want to use a different version, change it below, save the
|
6
|
-
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
|
7
|
-
#
|
8
|
-
# bundle exec jekyll serve
|
9
|
-
#
|
10
|
-
# This will help ensure the proper Jekyll version is running.
|
11
|
-
# Happy Jekylling!
|
12
|
-
gem "jekyll", "3.4.0"
|
13
|
-
|
14
|
-
# This is the default theme for new Jekyll sites. You may change this to anything you like.
|
15
|
-
gem "minima", "~> 2.0"
|
16
|
-
|
17
|
-
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
|
18
|
-
# uncomment the line below. To upgrade, run `bundle update github-pages`.
|
19
|
-
# gem "github-pages", group: :jekyll_plugins
|
20
|
-
|
21
|
-
gem "jekyll-html5-youtube", "~> 0.3"
|
22
|
-
|
23
|
-
# If you have any plugins, put them here!
|
24
|
-
group :jekyll_plugins do
|
25
|
-
gem "jekyll-feed", "~> 0.6"
|
26
|
-
# gem "jekyll-html5-youtube", "~> 0.3"
|
27
|
-
end
|
28
|
-
|
29
|
-
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
|
30
|
-
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
|
31
|
-
|