jekyll-twitch 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CONTRIBUTING.md +32 -0
- data/Gemfile.lock +17 -17
- data/README.md +37 -7
- data/docs/Gemfile +2 -0
- data/docs/Gemfile.lock +28 -26
- data/docs/_posts/2022-10-17-Version-1.0.1-Released.md +9 -0
- data/docs/index.markdown +4 -0
- data/jekyll-twitch.gemspec +1 -1
- data/lib/jekyll-twitch/version.rb +1 -1
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a55749b9d60817241db98a15db62ca1c715c81cc00430253123244fc4280795f
|
4
|
+
data.tar.gz: 1ed87896070266cb77c96ac8da604e1c80445f87c8a93d5e7e47875c90db8387
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05c153844c2a5295362172f491d33b5d1d0e1b2c1f267b4fd6d6f56d1e63c3f6c3d5d5813d7066b582e2f8e68378b1a956008f2b8d2af2eda488cd3c11114131
|
7
|
+
data.tar.gz: 2924ab54374abccfda4f49fc06b44309e213b7b505b36d67451a6b52e7a16cf047d1bd0ef4ec0696e8bbd42526bb155e8d21fdfc769c1a13611dedbc3bced8a1
|
data/CONTRIBUTING.md
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
# Contributing
|
2
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/ChaelCodes/jekyll-twitch. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/ChaelCodes/jekyll-twitch/blob/main/CODE_OF_CONDUCT.md).
|
3
|
+
|
4
|
+
## Gem Development
|
5
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
6
|
+
|
7
|
+
To install this gem onto your local machine, run `bundle exec rake install`.
|
8
|
+
|
9
|
+
## Demo Site Development
|
10
|
+
Jekyll-Twitch has a demo site for testing and demonstrating its capabilities. It is located in [docs](/docs) and deployed via [GitHub Actions](.github/workflows/deploy-demo.yml) to GitHub Pages. It uses the copy of jekyll-twitch available on main, but can be customized to look at a specific branch in the [Gemfile](docs/Gemfile).
|
11
|
+
|
12
|
+
### Run it locally
|
13
|
+
|
14
|
+
1. navigate to the docs directory `cd docs`
|
15
|
+
1. `bundle install` Installs all gems and dependencies according to Gemfile.lock
|
16
|
+
1. `bundle update jekyll-twitch` Updates Jekyll-twitch to the newest version from main
|
17
|
+
1. `bundle exec jekyll serve --host localhost --port 4000` Run the server - we need the port and host for Twitch's embeds
|
18
|
+
|
19
|
+
Website should be up and running at [http://localhost:4000/jekyll-twitch/](http://localhost:4000/jekyll-twitch/)
|
20
|
+
|
21
|
+
You will need to rerun steps 3 and 4 whenever there are changes on main or pushed to your branch that you want to test on the site.
|
22
|
+
|
23
|
+
## Release a new Version
|
24
|
+
- Ensure all desired changes are merged to the `main` branch
|
25
|
+
- checkout a branch with the version number eg. `git checkout -b 1.0.1`
|
26
|
+
- Update the version number in [version.rb](lib/jekyll-twitch/version.rb)
|
27
|
+
- We use [semantic versioning](https://semver.org/)
|
28
|
+
- Add a new post to the demo site describing the changes, and linking to the PRs that changed them
|
29
|
+
- `bundle update jekyll-twitch` on the docs site to get the newest changes from `main`
|
30
|
+
- Test `main` on the demo site
|
31
|
+
- Run `bundle exec rake release`
|
32
|
+
- This will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
data/Gemfile.lock
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
jekyll-twitch (1.0.
|
4
|
+
jekyll-twitch (1.0.1)
|
5
5
|
jekyll
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
addressable (2.
|
11
|
-
public_suffix (>= 2.0.2, <
|
10
|
+
addressable (2.8.1)
|
11
|
+
public_suffix (>= 2.0.2, < 6.0)
|
12
12
|
ast (2.4.2)
|
13
13
|
coderay (1.1.3)
|
14
14
|
colorator (1.1.0)
|
15
|
-
concurrent-ruby (1.1.
|
15
|
+
concurrent-ruby (1.1.10)
|
16
16
|
diff-lcs (1.4.4)
|
17
|
-
em-websocket (0.5.
|
17
|
+
em-websocket (0.5.3)
|
18
18
|
eventmachine (>= 0.12.9)
|
19
|
-
http_parser.rb (~> 0
|
19
|
+
http_parser.rb (~> 0)
|
20
20
|
eventmachine (1.2.7)
|
21
|
-
ffi (1.15.
|
21
|
+
ffi (1.15.5)
|
22
22
|
forwardable-extended (2.6.0)
|
23
|
-
http_parser.rb (0.
|
24
|
-
i18n (1.
|
23
|
+
http_parser.rb (0.8.0)
|
24
|
+
i18n (1.12.0)
|
25
25
|
concurrent-ruby (~> 1.0)
|
26
|
-
jekyll (4.2.
|
26
|
+
jekyll (4.2.2)
|
27
27
|
addressable (~> 2.4)
|
28
28
|
colorator (~> 1.0)
|
29
29
|
em-websocket (~> 0.5)
|
@@ -38,16 +38,16 @@ GEM
|
|
38
38
|
rouge (~> 3.0)
|
39
39
|
safe_yaml (~> 1.0)
|
40
40
|
terminal-table (~> 2.0)
|
41
|
-
jekyll-sass-converter (2.
|
41
|
+
jekyll-sass-converter (2.2.0)
|
42
42
|
sassc (> 2.0.1, < 3.0)
|
43
43
|
jekyll-watch (2.2.1)
|
44
44
|
listen (~> 3.0)
|
45
|
-
kramdown (2.
|
45
|
+
kramdown (2.4.0)
|
46
46
|
rexml
|
47
47
|
kramdown-parser-gfm (1.1.0)
|
48
48
|
kramdown (~> 2.0)
|
49
49
|
liquid (4.0.3)
|
50
|
-
listen (3.
|
50
|
+
listen (3.7.1)
|
51
51
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
52
52
|
rb-inotify (~> 0.9, >= 0.9.10)
|
53
53
|
mercenary (0.4.0)
|
@@ -60,15 +60,15 @@ GEM
|
|
60
60
|
pry (0.14.0)
|
61
61
|
coderay (~> 1.1)
|
62
62
|
method_source (~> 1.0)
|
63
|
-
public_suffix (
|
63
|
+
public_suffix (5.0.0)
|
64
64
|
rainbow (3.0.0)
|
65
65
|
rake (12.3.3)
|
66
|
-
rb-fsevent (0.
|
66
|
+
rb-fsevent (0.11.2)
|
67
67
|
rb-inotify (0.10.1)
|
68
68
|
ffi (~> 1.0)
|
69
69
|
regexp_parser (2.1.1)
|
70
|
-
rexml (3.2.
|
71
|
-
rouge (3.
|
70
|
+
rexml (3.2.5)
|
71
|
+
rouge (3.30.0)
|
72
72
|
rspec (3.10.0)
|
73
73
|
rspec-core (~> 3.10.0)
|
74
74
|
rspec-expectations (~> 3.10.0)
|
data/README.md
CHANGED
@@ -1,9 +1,12 @@
|
|
1
1
|
# Jekyll::Twitch
|
2
2
|
|
3
|
-
This gem allows you to embed twitch clips in your Jekyll websites. It adds and registers a new twitch liquid tag that accepts a twitch clip url.
|
3
|
+
This gem allows you to embed twitch channels, clips, collections, and videos in your Jekyll websites. It adds and registers a new twitch liquid tag that accepts a twitch clip, channel, broadcast, or highlight url. It's based on the [Twitch video embeds](https://dev.twitch.tv/docs/embed/video-and-clips).
|
4
4
|
|
5
5
|
`{% twitch https://www.twitch.tv/chaelcodes/clip/SpoopySlipperyGrasshopperPogChamp %}`
|
6
6
|
|
7
|
+
## [See the DEMO site](https://www.chael.codes/jekyll-twitch/)
|
8
|
+
Check out the [demo site](https://www.chael.codes/jekyll-twitch/) for install instructions and to review different embed examples.
|
9
|
+
|
7
10
|
## Installation
|
8
11
|
|
9
12
|
Add this line to your application's Gemfile:
|
@@ -28,22 +31,49 @@ plugins:
|
|
28
31
|
|
29
32
|
## Usage
|
30
33
|
|
34
|
+
This is a Jekyll liquid tag, so just put `{% twitch https://www.twitch.tv/chaelcodes/clip/SpoopySlipperyGrasshopperPogChamp %}` to embed your clip, channel, or broadcast.
|
35
|
+
|
31
36
|
When building your site, Jekyll no longer substitutes `site.url` for localhost, which means Twitch embeds will not render. You need to supply host and localhost to view clips in development. `jekyll serve --host localhost --port 4000`
|
32
37
|
|
33
|
-
|
38
|
+
All of the below examples are on the demo site with actual embeds. I strongly recommend using that.
|
39
|
+
|
40
|
+
### Channel
|
41
|
+
This channel embed will show the broadcast while the streamer is live, and the channel offline art when they are not.
|
34
42
|
|
35
|
-
|
43
|
+
```
|
44
|
+
<div style="width:720px;height:480px">
|
45
|
+
{% twitch https://twitch.tv/ChaelCodes %}
|
46
|
+
</div>
|
47
|
+
```
|
48
|
+
### Collection
|
49
|
+
This embed is used to add a collection of videos to your page or post.
|
36
50
|
|
37
|
-
|
51
|
+
```
|
52
|
+
<div style="width:720px;height:480px">
|
53
|
+
{% twitch https://www.twitch.tv/collections/x5bG2TGTeBYIRg %}
|
54
|
+
</div>
|
55
|
+
```
|
56
|
+
### Clips
|
57
|
+
This embed is used to add one Twitch clip to your page or post.
|
38
58
|
|
39
|
-
|
59
|
+
```
|
60
|
+
<div style="width:720px;height:480px">
|
61
|
+
{% twitch https://www.twitch.tv/chaelcodes/clip/DeterminedSweetRedpandaDoritosChip-pQiRlDz6rQ9uvuuq %}
|
62
|
+
</div>
|
63
|
+
```
|
64
|
+
### Videos
|
65
|
+
Whether you call them videos, vods, or higlights, this will embed them in your page or psot.
|
40
66
|
|
41
|
-
|
67
|
+
```
|
68
|
+
<div style="width:720px;height:480px">
|
69
|
+
{% twitch https://www.twitch.tv/videos/716698136 %}
|
70
|
+
</div>
|
71
|
+
```
|
42
72
|
|
43
73
|
## Contributing
|
44
|
-
|
45
74
|
Bug reports and pull requests are welcome on GitHub at https://github.com/ChaelCodes/jekyll-twitch. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/ChaelCodes/jekyll-twitch/blob/main/CODE_OF_CONDUCT.md).
|
46
75
|
|
76
|
+
For more details on setting up the local environment, demo site, and releasing a new version, see our [CONTRIBUTING.md](/CONTRIBUTING.md).
|
47
77
|
|
48
78
|
## License
|
49
79
|
|
data/docs/Gemfile
CHANGED
@@ -11,6 +11,8 @@ source 'https://rubygems.org'
|
|
11
11
|
# Happy Jekylling!
|
12
12
|
gem 'jekyll', '~> 4.2.0'
|
13
13
|
|
14
|
+
gem 'webrick' # See https://github.com/jekyll/jekyll/issues/8523 this is a Ruby 3/Jekyll thing
|
15
|
+
|
14
16
|
# there were issues with rubygems - remove these later
|
15
17
|
gem 'i18n', github: 'ruby-i18n/i18n'
|
16
18
|
gem 'rexml', github: 'ruby/rexml'
|
data/docs/Gemfile.lock
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
GIT
|
2
2
|
remote: https://github.com/ChaelCodes/jekyll-twitch.git
|
3
|
-
revision:
|
3
|
+
revision: d9233863077a04bc105710d4f1b2767ddbf3473e
|
4
4
|
branch: main
|
5
5
|
specs:
|
6
6
|
jekyll-twitch (1.0.0)
|
@@ -8,22 +8,22 @@ GIT
|
|
8
8
|
|
9
9
|
GIT
|
10
10
|
remote: https://github.com/guard/listen.git
|
11
|
-
revision:
|
11
|
+
revision: ded2016a72d05f20d254c8ff25dd272a36c14d08
|
12
12
|
specs:
|
13
|
-
listen (3.
|
13
|
+
listen (3.7.1)
|
14
14
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
15
15
|
rb-inotify (~> 0.9, >= 0.9.10)
|
16
16
|
|
17
17
|
GIT
|
18
18
|
remote: https://github.com/jekyll/jekyll-feed.git
|
19
|
-
revision:
|
19
|
+
revision: a58064c68f49e63b0741d368cd95bb35ac2c7c5d
|
20
20
|
specs:
|
21
|
-
jekyll-feed (0.
|
21
|
+
jekyll-feed (0.17.0)
|
22
22
|
jekyll (>= 3.7, < 5.0)
|
23
23
|
|
24
24
|
GIT
|
25
25
|
remote: https://github.com/jekyll/minima.git
|
26
|
-
revision:
|
26
|
+
revision: 41b97699af658128fa9983e5312ca5516641f335
|
27
27
|
specs:
|
28
28
|
minima (2.5.1)
|
29
29
|
jekyll (>= 3.5, < 5.0)
|
@@ -32,32 +32,32 @@ GIT
|
|
32
32
|
|
33
33
|
GIT
|
34
34
|
remote: https://github.com/ruby-i18n/i18n.git
|
35
|
-
revision:
|
35
|
+
revision: c5ccd28f8413f44baf6e32aeeb80854471650533
|
36
36
|
specs:
|
37
|
-
i18n (1.
|
37
|
+
i18n (1.12.0)
|
38
38
|
concurrent-ruby (~> 1.0)
|
39
39
|
|
40
40
|
GIT
|
41
41
|
remote: https://github.com/ruby/rexml.git
|
42
|
-
revision:
|
42
|
+
revision: afafbacd8a8c1947b63eb0b46d698da76c831d98
|
43
43
|
specs:
|
44
44
|
rexml (3.2.6)
|
45
45
|
|
46
46
|
GEM
|
47
47
|
remote: https://rubygems.org/
|
48
48
|
specs:
|
49
|
-
addressable (2.
|
50
|
-
public_suffix (>= 2.0.2, <
|
49
|
+
addressable (2.8.1)
|
50
|
+
public_suffix (>= 2.0.2, < 6.0)
|
51
51
|
colorator (1.1.0)
|
52
|
-
concurrent-ruby (1.1.
|
53
|
-
em-websocket (0.5.
|
52
|
+
concurrent-ruby (1.1.10)
|
53
|
+
em-websocket (0.5.3)
|
54
54
|
eventmachine (>= 0.12.9)
|
55
|
-
http_parser.rb (~> 0
|
55
|
+
http_parser.rb (~> 0)
|
56
56
|
eventmachine (1.2.7)
|
57
|
-
ffi (1.15.
|
57
|
+
ffi (1.15.5)
|
58
58
|
forwardable-extended (2.6.0)
|
59
|
-
http_parser.rb (0.
|
60
|
-
jekyll (4.2.
|
59
|
+
http_parser.rb (0.8.0)
|
60
|
+
jekyll (4.2.2)
|
61
61
|
addressable (~> 2.4)
|
62
62
|
colorator (~> 1.0)
|
63
63
|
em-websocket (~> 0.5)
|
@@ -72,13 +72,13 @@ GEM
|
|
72
72
|
rouge (~> 3.0)
|
73
73
|
safe_yaml (~> 1.0)
|
74
74
|
terminal-table (~> 2.0)
|
75
|
-
jekyll-sass-converter (2.
|
75
|
+
jekyll-sass-converter (2.2.0)
|
76
76
|
sassc (> 2.0.1, < 3.0)
|
77
|
-
jekyll-seo-tag (2.
|
77
|
+
jekyll-seo-tag (2.8.0)
|
78
78
|
jekyll (>= 3.8, < 5.0)
|
79
79
|
jekyll-watch (2.2.1)
|
80
80
|
listen (~> 3.0)
|
81
|
-
kramdown (2.
|
81
|
+
kramdown (2.4.0)
|
82
82
|
rexml
|
83
83
|
kramdown-parser-gfm (1.1.0)
|
84
84
|
kramdown (~> 2.0)
|
@@ -86,20 +86,21 @@ GEM
|
|
86
86
|
mercenary (0.4.0)
|
87
87
|
pathutil (0.16.2)
|
88
88
|
forwardable-extended (~> 2.6)
|
89
|
-
public_suffix (
|
90
|
-
rb-fsevent (0.
|
89
|
+
public_suffix (5.0.0)
|
90
|
+
rb-fsevent (0.11.2)
|
91
91
|
rb-inotify (0.10.1)
|
92
92
|
ffi (~> 1.0)
|
93
|
-
rouge (3.
|
93
|
+
rouge (3.30.0)
|
94
94
|
safe_yaml (1.0.5)
|
95
95
|
sassc (2.4.0)
|
96
96
|
ffi (~> 1.9)
|
97
97
|
terminal-table (2.0.0)
|
98
98
|
unicode-display_width (~> 1.1, >= 1.1.1)
|
99
|
-
unicode-display_width (1.
|
99
|
+
unicode-display_width (1.8.0)
|
100
|
+
webrick (1.7.0)
|
100
101
|
|
101
102
|
PLATFORMS
|
102
|
-
|
103
|
+
x86_64-linux
|
103
104
|
|
104
105
|
DEPENDENCIES
|
105
106
|
i18n!
|
@@ -112,6 +113,7 @@ DEPENDENCIES
|
|
112
113
|
tzinfo (~> 1.2)
|
113
114
|
tzinfo-data
|
114
115
|
wdm (~> 0.1.1)
|
116
|
+
webrick
|
115
117
|
|
116
118
|
BUNDLED WITH
|
117
|
-
2.
|
119
|
+
2.3.23
|
@@ -0,0 +1,9 @@
|
|
1
|
+
---
|
2
|
+
layout: post
|
3
|
+
date: 2021-04-23
|
4
|
+
---
|
5
|
+
It's been a while since the last release. Jekyll-Twitch is feature complete in my eyes, unless folks start asking for the interactive embeds or custom sizes in the embed. This release just includes security fixes from the last year.
|
6
|
+
|
7
|
+
# Changes
|
8
|
+
- [#16](https://github.com/ChaelCodes/jekyll-twitch/pull/16) Bump rexml from 3.2.4 to 3.2.5
|
9
|
+
- [#17](https://github.com/ChaelCodes/jekyll-twitch/pull/17) Bump addressable from 2.7.0 to 2.8.1
|
data/docs/index.markdown
CHANGED
@@ -29,3 +29,7 @@ plugins:
|
|
29
29
|
### Testing in Development
|
30
30
|
|
31
31
|
When building your site in development, Jekyll no longer substitutes `site.url` for localhost, which means Twitch embeds will not render. You need to supply host and localhost to view clips in development. `jekyll serve --host localhost --port 4000` This is not an issue in production.
|
32
|
+
|
33
|
+
### Deploying using GitHub Pages
|
34
|
+
|
35
|
+
If you have custom gems and you're using GitHub pages for your deploys, they will prevent your gems from executing. You need to modify your deploy to use GitHub actions. (This is also the only way to deploy Jekyll 4). You're welcome to use our [deploy setup](.github/workflows/deploy-demo.yml) as an example.
|
data/jekyll-twitch.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
|
20
20
|
spec.metadata['homepage_uri'] = spec.homepage
|
21
21
|
spec.metadata['source_code_uri'] = 'https://github.com/ChaelCodes/jekyll-twitch'
|
22
|
-
|
22
|
+
spec.metadata["changelog_uri"] = "https://www.chael.codes/jekyll-twitch/"
|
23
23
|
|
24
24
|
# Specify which files should be added to the gem when it is released.
|
25
25
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-twitch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rachael Wright-Munn
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -42,6 +42,7 @@ files:
|
|
42
42
|
- ".rspec"
|
43
43
|
- ".rubocop.yml"
|
44
44
|
- CODE_OF_CONDUCT.md
|
45
|
+
- CONTRIBUTING.md
|
45
46
|
- Gemfile
|
46
47
|
- Gemfile.lock
|
47
48
|
- LICENSE.txt
|
@@ -55,6 +56,7 @@ files:
|
|
55
56
|
- docs/Gemfile.lock
|
56
57
|
- docs/_config.yml
|
57
58
|
- docs/_posts/2021-04-23-Version-1-Released.md
|
59
|
+
- docs/_posts/2022-10-17-Version-1.0.1-Released.md
|
58
60
|
- docs/channel.md
|
59
61
|
- docs/clips.md
|
60
62
|
- docs/collection.md
|
@@ -70,6 +72,7 @@ licenses:
|
|
70
72
|
metadata:
|
71
73
|
homepage_uri: https://github.com/ChaelCodes/jekyll-twitch
|
72
74
|
source_code_uri: https://github.com/ChaelCodes/jekyll-twitch
|
75
|
+
changelog_uri: https://www.chael.codes/jekyll-twitch/
|
73
76
|
post_install_message:
|
74
77
|
rdoc_options: []
|
75
78
|
require_paths:
|
@@ -85,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
85
88
|
- !ruby/object:Gem::Version
|
86
89
|
version: '0'
|
87
90
|
requirements: []
|
88
|
-
rubygems_version: 3.
|
91
|
+
rubygems_version: 3.3.7
|
89
92
|
signing_key:
|
90
93
|
specification_version: 4
|
91
94
|
summary: Embed Twitch clips, VODs, and broadcasts in your Jekyll sites.
|