jektify 1.0.2 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/FUNDING.yml +12 -0
- data/.github/workflows/ruby.yml +40 -0
- data/.gitignore +3 -0
- data/.travis.yml +4 -10
- data/CHANGELOG.md +17 -1
- data/CODE_OF_CONDUCT.md +0 -0
- data/Gemfile +2 -7
- data/{LICENSE.txt → LICENSE} +1 -1
- data/README.md +13 -4
- data/Rakefile +0 -0
- data/_config.yml +21 -0
- data/assets/vendor/jektify/imgs/spotify_logo.png +0 -0
- data/assets/vendor/jektify/sass/_jektify.scss +7 -2
- data/bin/tests +85 -0
- data/gulpfile.js +28 -0
- data/jektify.gemspec +6 -6
- data/lib/jektify.rb +0 -0
- data/lib/jektify/engine.rb +3 -11
- data/lib/jektify/main.rb +8 -2
- data/lib/jektify/render.rb +10 -1
- data/lib/jektify/version.rb +1 -1
- data/src/js/jektify.js +12 -0
- data/src/scss/_jektify_sass_structure.scss +52 -0
- metadata +31 -26
- data/bin/travis +0 -59
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: e427c70129721d0ee23091e5d501820f525e506f770a0839679a4d5c22d24822
|
4
|
+
data.tar.gz: 60fcf344b96433d2d4ae10fd053b032fbe517f55260dcd0dd239d7737d63888b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 462b92aa20b607af28e5c6119ad151ed1b0d94a6d7ada54a74e27fb1a978ee8ec52f355f4ff99cead5d8b5409b15bcb72074a875b518e2e6866854fb0e839cd6
|
7
|
+
data.tar.gz: 6d0805bb8ae299946d32421686280ce027eda01a9db8f3e5732bb80a20c079269c4a124247716d810e003ad23b31c69924a6d94007c04c03785f331da8329f18
|
data/.github/FUNDING.yml
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
# These are supported funding model platforms
|
2
|
+
|
3
|
+
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
|
4
|
+
patreon: williamcanin # Replace with a single Patreon username
|
5
|
+
open_collective: # Replace with a single Open Collective username
|
6
|
+
ko_fi: # Replace with a single Ko-fi username
|
7
|
+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
|
8
|
+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
9
|
+
liberapay: # Replace with a single Liberapay username
|
10
|
+
issuehunt: # Replace with a single IssueHunt username
|
11
|
+
otechie: # Replace with a single Otechie username
|
12
|
+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# This workflow uses actions that are not certified by GitHub.
|
2
|
+
# They are provided by a third-party and are governed by
|
3
|
+
# separate terms of service, privacy policy, and support
|
4
|
+
# documentation.
|
5
|
+
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
|
6
|
+
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
|
7
|
+
|
8
|
+
name: Ruby
|
9
|
+
|
10
|
+
on:
|
11
|
+
push:
|
12
|
+
branches: [ main ]
|
13
|
+
pull_request:
|
14
|
+
branches: [ main ]
|
15
|
+
|
16
|
+
jobs:
|
17
|
+
test:
|
18
|
+
|
19
|
+
runs-on: ubuntu-latest
|
20
|
+
strategy:
|
21
|
+
matrix:
|
22
|
+
ruby-version: ['3.0']
|
23
|
+
|
24
|
+
steps:
|
25
|
+
- uses: actions/checkout@v2
|
26
|
+
- name: Set up Ruby
|
27
|
+
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
|
28
|
+
# change this to (see https://github.com/ruby/setup-ruby#versioning):
|
29
|
+
# uses: ruby/setup-ruby@v1
|
30
|
+
uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e
|
31
|
+
with:
|
32
|
+
ruby-version: ${{ matrix.ruby-version }}
|
33
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
34
|
+
- name: Run tests
|
35
|
+
run: |
|
36
|
+
gem update --system
|
37
|
+
gem install bundler -v 2.2.17
|
38
|
+
bundle install
|
39
|
+
bin/setup
|
40
|
+
bin/tests
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -1,18 +1,12 @@
|
|
1
|
-
|
2
|
-
dist: precise
|
1
|
+
---
|
3
2
|
language: ruby
|
4
3
|
rvm:
|
5
|
-
-
|
4
|
+
- 3.0.0
|
6
5
|
before_install:
|
7
6
|
- gem update --system
|
8
|
-
- gem install bundler
|
7
|
+
- gem install bundler -v 2.2.17
|
9
8
|
install:
|
10
9
|
- bundle install
|
11
10
|
script:
|
12
11
|
- bin/setup
|
13
|
-
- bin/
|
14
|
-
branches:
|
15
|
-
only:
|
16
|
-
- master
|
17
|
-
notifications:
|
18
|
-
email: false
|
12
|
+
- bin/tests
|
data/CHANGELOG.md
CHANGED
@@ -14,6 +14,22 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
14
14
|
### Change
|
15
15
|
- Error correction on link homepage in gemspec
|
16
16
|
|
17
|
-
## [1.0.2] -
|
17
|
+
## [1.0.2] -
|
18
18
|
### Change
|
19
19
|
- Fixing error in the last method "error_different_true_false" in the file "main.rb", from "using" to "enable".
|
20
|
+
|
21
|
+
## [1.0.3] -
|
22
|
+
### Change
|
23
|
+
- Compatibility with new dependency versions: Jekyll and Sass.
|
24
|
+
|
25
|
+
## [1.0.4] -
|
26
|
+
### Change
|
27
|
+
- Nothing interesting, just updating dependencies and maintaining compatibility.
|
28
|
+
|
29
|
+
## [1.0.5] -
|
30
|
+
### Change
|
31
|
+
- Nothing interesting, just updating dependencies and maintaining compatibility.
|
32
|
+
|
33
|
+
## [1.0.6] -
|
34
|
+
### Change
|
35
|
+
- Nothing interesting, just updating dependencies and maintaining compatibility Jekyll >= v4.2.0
|
data/CODE_OF_CONDUCT.md
CHANGED
File without changes
|
data/Gemfile
CHANGED
@@ -1,12 +1,7 @@
|
|
1
1
|
source "https://rubygems.org"
|
2
2
|
|
3
|
-
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
|
4
|
-
|
5
3
|
# Specify your gem's dependencies in jektify.gemspec
|
6
4
|
gemspec
|
7
5
|
|
8
|
-
gem "pry", "~> 0.
|
9
|
-
gem "
|
10
|
-
gem "json", "~> 2.1", "~> 2.1.0"
|
11
|
-
gem "sass", "~> 3.5", "~> 3.5.5"
|
12
|
-
gem "jekyll", "~> 3.7", "~> 3.7.2"
|
6
|
+
gem "pry", "~> 0.14"
|
7
|
+
gem "rspec", "~> 3.10"
|
data/{LICENSE.txt → LICENSE}
RENAMED
data/README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
# Jektify
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/jektify.svg)](https://badge.fury.io/rb/jektify)
|
4
|
+
[![Ruby](https://github.com/jektify/jektify/actions/workflows/ruby.yml/badge.svg)](https://github.com/jektify/jektify/actions/workflows/ruby.yml)
|
4
5
|
[![Build Status](https://travis-ci.org/jektify/jektify.svg?branch=master)](https://travis-ci.org/jektify/jektify)
|
5
|
-
[![Dependency Status](https://beta.gemnasium.com/badges/github.com/jektify/jektify.svg)](https://beta.gemnasium.com/projects/github.com/jektify/jektify)
|
6
6
|
[![security](https://hakiri.io/github/jektify/jektify/master.svg)](https://hakiri.io/github/jektify/jektify/master)
|
7
7
|
|
8
8
|
[Jektify](https://github.com/jektify/jektify) is beautiful and Customizable, much more appealing than a simple "iframe"!
|
@@ -52,8 +52,7 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
|
|
52
52
|
The [Jektify](https://github.com/jektify/jektify) code is stored in the folder "`lib`". Every time you change the version, it has to be changed in the file "`lib/jektify/version.rb`" respecting the version hierarchy. Files where the version should be changed:
|
53
53
|
|
54
54
|
* lib/jektify/version.rb
|
55
|
-
* bin/
|
56
|
-
* src/dev/page/Gemfile
|
55
|
+
* bin/tests
|
57
56
|
* package.json
|
58
57
|
* gulpfile.babel.js
|
59
58
|
* cdn/v[VERSION]
|
@@ -66,7 +65,7 @@ The [Jektify](https://github.com/jektify/jektify) code is stored in the folder "
|
|
66
65
|
$ gulp
|
67
66
|
```
|
68
67
|
|
69
|
-
The `cdn` folder should contain the original and mined jektify javascript file. It will have a folder structure with the name of each version of [Jektify](https://github.com/jektify/jektify). The service that makes CDN available is [
|
68
|
+
The `cdn` folder should contain the original and mined jektify javascript file. It will have a folder structure with the name of each version of [Jektify](https://github.com/jektify/jektify). The service that makes CDN available is [Jsdelivr](https://www.jsdelivr.com/).
|
70
69
|
|
71
70
|
*Sass*
|
72
71
|
|
@@ -105,6 +104,16 @@ The "`bin/travis`" file will be the file that [Travis](travis-ci.org) will use t
|
|
105
104
|
|
106
105
|
Bug reports and pull requests are welcome on GitHub at https://github.com/jektify/jektify. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
107
106
|
|
107
|
+
## Donation
|
108
|
+
|
109
|
+
Click on the image below to be redirected the donation forms:
|
110
|
+
|
111
|
+
<div class="donate">
|
112
|
+
<a href="https://github.com/williamcanin/donations/blob/master/README.md">
|
113
|
+
<img width="160" height="100" src="https://raw.githubusercontent.com/williamcanin/donations/master/svg/donate/donate-hand.svg" alt="Donations"
|
114
|
+
</a>
|
115
|
+
</div>
|
116
|
+
|
108
117
|
## License
|
109
118
|
|
110
119
|
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/Rakefile
CHANGED
File without changes
|
data/_config.yml
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
|
2
|
+
jektify:
|
3
|
+
enable: true
|
4
|
+
open: true
|
5
|
+
toggle:
|
6
|
+
enable: true
|
7
|
+
spotify:
|
8
|
+
user: # "you_user_spotify"
|
9
|
+
text: "See me no Spotify"
|
10
|
+
sass:
|
11
|
+
jekyll: true
|
12
|
+
other:
|
13
|
+
dir: "way/to/your/SASS"
|
14
|
+
title:
|
15
|
+
enable: false
|
16
|
+
text: "Music name"
|
17
|
+
description:
|
18
|
+
enable: false
|
19
|
+
text: |
|
20
|
+
Jekyll plugin to generate html snippets for embedding Spotify Musics.
|
21
|
+
To listen to the full song, open your Spotify and start these musics.
|
File without changes
|
@@ -48,8 +48,10 @@
|
|
48
48
|
&--dark{
|
49
49
|
background-color: $jektify__background-color--dark;
|
50
50
|
border: 1px solid #131313;
|
51
|
+
text-decoration: none !important;
|
51
52
|
&:hover{
|
52
53
|
opacity: 0.99;
|
54
|
+
text-decoration: none !important;
|
53
55
|
}
|
54
56
|
}
|
55
57
|
|
@@ -57,6 +59,7 @@
|
|
57
59
|
&--white{
|
58
60
|
background-color: $jektify__background-color--white;
|
59
61
|
border: 1px solid #adadad;
|
62
|
+
text-decoration: none !important;
|
60
63
|
}
|
61
64
|
|
62
65
|
|
@@ -78,11 +81,13 @@
|
|
78
81
|
/* .jektify__header--dark */
|
79
82
|
&--dark{
|
80
83
|
background-color: $jektify__background-color--dark;
|
84
|
+
text-decoration: none !important;
|
81
85
|
}
|
82
86
|
|
83
87
|
/* .jektify__header--white */
|
84
88
|
&--white{
|
85
89
|
background-color: $jektify__background-color--white;
|
90
|
+
text-decoration: none !important;
|
86
91
|
}
|
87
92
|
|
88
93
|
}
|
@@ -90,7 +95,7 @@
|
|
90
95
|
|
91
96
|
/* .jektify__brand */
|
92
97
|
&__brand{
|
93
|
-
text-decoration: none;
|
98
|
+
text-decoration: none !important;
|
94
99
|
margin-right: 17px;
|
95
100
|
padding-bottom: 4px;
|
96
101
|
cursor: pointer;
|
@@ -102,7 +107,7 @@
|
|
102
107
|
transition: all .45s;
|
103
108
|
|
104
109
|
&:hover{
|
105
|
-
text-decoration: none;
|
110
|
+
text-decoration: none !important;
|
106
111
|
opacity: 0.87;
|
107
112
|
}
|
108
113
|
|
data/bin/tests
ADDED
@@ -0,0 +1,85 @@
|
|
1
|
+
#!/usr/bin/env bash
|
2
|
+
|
3
|
+
GEM__ROOT=$PWD
|
4
|
+
JEKYL__PROJECT="project"
|
5
|
+
APP__NAME="jektify"
|
6
|
+
APP__VERSION="1.0.6"
|
7
|
+
|
8
|
+
function _clean(){
|
9
|
+
cd $GEM__ROOT
|
10
|
+
rm -rf "tests/vm/$JEKYL__PROJECT"
|
11
|
+
}
|
12
|
+
|
13
|
+
# Generated Jektify gem
|
14
|
+
bundle exec rake build
|
15
|
+
echo "Jektify gem created!"
|
16
|
+
|
17
|
+
# Generated Jektify gem
|
18
|
+
bundle exec rake install
|
19
|
+
echo "${APP__NAME^^} gem installed!"
|
20
|
+
|
21
|
+
# Clean cache before created
|
22
|
+
_clean
|
23
|
+
|
24
|
+
# Created project Jekyll
|
25
|
+
mkdir -p tests/vm
|
26
|
+
bundle exec jekyll new tests/vm/$JEKYL__PROJECT; cd $_
|
27
|
+
|
28
|
+
# Add dependency in Gemfile for Jekyll project
|
29
|
+
cat << EOF >> Gemfile
|
30
|
+
gem "bigdecimal", "~> 3.0.2"
|
31
|
+
gem "webrick", "~> 1.7.0"
|
32
|
+
gem "json", "~> 2.5.1"
|
33
|
+
EOF
|
34
|
+
|
35
|
+
# Add Jektify in file Gemfile
|
36
|
+
sed -i "/ gem \"jekyll-feed\", \"~> 0.15.1\"/a \ \gem \"$APP__NAME\", \"~> $APP__VERSION\"" Gemfile
|
37
|
+
|
38
|
+
# Add plugin of Jektify in file _config.yml
|
39
|
+
sed -i "/- jekyll-feed/a\ \ - $APP__NAME" _config.yml
|
40
|
+
|
41
|
+
# Add config Jektify in file _config.yml
|
42
|
+
cat << EOF >> _config.yml
|
43
|
+
|
44
|
+
$APP__NAME:
|
45
|
+
enable: true
|
46
|
+
open: true
|
47
|
+
toggle:
|
48
|
+
enable: true
|
49
|
+
spotify:
|
50
|
+
user: # "you_user_spotify"
|
51
|
+
text: "See me no Spotify"
|
52
|
+
sass:
|
53
|
+
jekyll: true
|
54
|
+
other:
|
55
|
+
dir: "way/to/your/SASS"
|
56
|
+
title:
|
57
|
+
enable: false
|
58
|
+
text: "Music name"
|
59
|
+
description:
|
60
|
+
enable: false
|
61
|
+
text: |
|
62
|
+
Jekyll plugin to generate html snippets for embedding Spotify Musics.
|
63
|
+
To listen to the full song, open your Spotify and start these musics.
|
64
|
+
EOF
|
65
|
+
|
66
|
+
# Add liquid in markdown of Jektify
|
67
|
+
echo "{% $APP__NAME spotify/track/62qsgMnY4wg8nE5qjyOdWO/dark %}" >> _posts/*-welcome-to-jekyll.markdown
|
68
|
+
|
69
|
+
# Bundler configuration folder
|
70
|
+
mkdir -p .bundle
|
71
|
+
cat << EOF > .bundle/config
|
72
|
+
---
|
73
|
+
BUNDLE_PATH: "vendor/bundle"
|
74
|
+
BUNDLE_DISABLE_SHARED_GEMS: "true"
|
75
|
+
EOF
|
76
|
+
|
77
|
+
# Re-Update Gemfile.lock for project Jekyll
|
78
|
+
bundle install
|
79
|
+
|
80
|
+
# Compiled project Jekyll with liquid of gem Jektify
|
81
|
+
bundle exec jekyll b
|
82
|
+
echo "${APP__NAME^^} $JEKYL__PROJECT compiled!"
|
83
|
+
|
84
|
+
# Clean cache
|
85
|
+
# _clean
|
data/gulpfile.js
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
// Script: gulpfile.js
|
2
|
+
// by: William C. Canin
|
3
|
+
|
4
|
+
let gulp = require('gulp');
|
5
|
+
let babel = require('gulp-babel');
|
6
|
+
let uglify = require('gulp-uglify');
|
7
|
+
let rename = require('gulp-rename');
|
8
|
+
|
9
|
+
// function javascripts
|
10
|
+
function javascripts() {
|
11
|
+
return gulp
|
12
|
+
.src('src/js/jektify.js')
|
13
|
+
.pipe(rename({ suffix: ".min" }))
|
14
|
+
.pipe(babel({
|
15
|
+
presets: ['@babel/env']
|
16
|
+
}))
|
17
|
+
.pipe(uglify())
|
18
|
+
.pipe(gulp.dest('assets/vendor/jektify/js'))
|
19
|
+
}
|
20
|
+
|
21
|
+
|
22
|
+
// task build
|
23
|
+
const build = gulp.series(gulp.parallel(javascripts));
|
24
|
+
|
25
|
+
// export tasks
|
26
|
+
exports.js = javascripts;
|
27
|
+
exports.build = build;
|
28
|
+
exports.default = build;
|
data/jektify.gemspec
CHANGED
@@ -18,13 +18,13 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.required_ruby_version = '>=
|
21
|
+
spec.required_ruby_version = '>= 3.0.0'
|
22
22
|
|
23
|
-
spec.add_dependency "jekyll", "~>
|
24
|
-
spec.add_dependency "
|
23
|
+
spec.add_dependency "jekyll", "~> 4.2", "~> 4.2.0"
|
24
|
+
spec.add_dependency "sassc", "~> 2.4", "~> 2.4.0"
|
25
25
|
|
26
|
-
spec.add_development_dependency "bundler", "~>
|
27
|
-
spec.add_development_dependency "rake", "~>
|
28
|
-
spec.add_development_dependency "minitest", "~> 5.
|
26
|
+
spec.add_development_dependency "bundler", "~> 2.2.17"
|
27
|
+
spec.add_development_dependency "rake", "~> 13.0.3"
|
28
|
+
spec.add_development_dependency "minitest", "~> 5.14.3"
|
29
29
|
|
30
30
|
end
|
data/lib/jektify.rb
CHANGED
File without changes
|
data/lib/jektify/engine.rb
CHANGED
@@ -40,22 +40,14 @@ module Jektify
|
|
40
40
|
end
|
41
41
|
end
|
42
42
|
|
43
|
-
# DEPRECATED
|
44
|
-
# def parameter_user(input_split)
|
45
|
-
# input_split[0].strip
|
46
|
-
# end
|
47
|
-
|
48
43
|
def split_params(params)
|
49
44
|
params.split("/")
|
50
45
|
end
|
51
46
|
|
52
47
|
def configure_sass(utils)
|
53
|
-
require "
|
54
|
-
|
55
|
-
|
56
|
-
# Inspired by bootstrap-sass
|
57
|
-
::Sass.load_paths << utils.stylesheets_sass_path
|
58
|
-
::Sass::Script::Number.precision = [8, ::Sass::Script::Number.precision].max
|
48
|
+
require "sassc"
|
49
|
+
::SassC.load_paths << utils.stylesheets_sass_path
|
50
|
+
::SassC::Script::Value::Number.precision = [8, ::SassC::Script::Value::Number.precision].max
|
59
51
|
end
|
60
52
|
|
61
53
|
end # class Engine
|
data/lib/jektify/main.rb
CHANGED
@@ -96,8 +96,14 @@ module Jektify
|
|
96
96
|
|
97
97
|
# Customizing Url Spotify
|
98
98
|
# E.g: { % spotify [user]/[type]/[id]/[theme] % }
|
99
|
-
spotify_embed_url = "https://embed.spotify.com/?uri=spotify:#{spotify_embed_category}:#{spotify_id}&theme=#{spotify_embed_theme}"
|
100
|
-
spotify_embed_url = "https://embed.spotify.com/?uri=spotify:user:#{spotify_user}:#{spotify_embed_category}:#{spotify_id}&theme=#{spotify_embed_theme}" unless spotify_embed_category != "playlist"
|
99
|
+
# spotify_embed_url = "https://embed.spotify.com/?uri=spotify:#{spotify_embed_category}:#{spotify_id}&theme=#{spotify_embed_theme}"
|
100
|
+
# spotify_embed_url = "https://embed.spotify.com/?uri=spotify:user:#{spotify_user}:#{spotify_embed_category}:#{spotify_id}&theme=#{spotify_embed_theme}" unless spotify_embed_category != "playlist"
|
101
|
+
|
102
|
+
# Player color based on box theme.
|
103
|
+
spotify_embed_theme == "dark" ? player_color = "0" : player_color = "1"
|
104
|
+
|
105
|
+
# Spotify Open URL Base (Web Player)
|
106
|
+
spotify_embed_url = "https://open.spotify.com/embed/#{spotify_embed_category}/#{spotify_id}?theme=#{player_color}"
|
101
107
|
|
102
108
|
|
103
109
|
# Checks a series of error values in the settings of Jektify in _config.yml
|
data/lib/jektify/render.rb
CHANGED
@@ -63,7 +63,16 @@ module Jektify
|
|
63
63
|
<p class="jektify__description jektify__description--#{spotify_embed_theme} jektify__description--custom" style="display: #{jektify__description};">#{app_root_config["description"]["text"]}</p>
|
64
64
|
|
65
65
|
<div class="jektify__tracklist jektify__tracklist--#{spotify_embed_theme} jektify__tracklist--custom">
|
66
|
-
<iframe id="jektify__track"
|
66
|
+
<iframe id="jektify__track"
|
67
|
+
class="jektify__track jektify__track--#{spotify_embed_theme}
|
68
|
+
jektify__track--custom"
|
69
|
+
src="#{spotify_embed_url}"
|
70
|
+
width="100%"
|
71
|
+
height="#{box_height}"
|
72
|
+
frameborder="0"
|
73
|
+
allowtransparency="true"
|
74
|
+
allow="encrypted-media">
|
75
|
+
</iframe>
|
67
76
|
</div>
|
68
77
|
</dd>
|
69
78
|
</dl>)
|
data/lib/jektify/version.rb
CHANGED
data/src/js/jektify.js
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
/*!
|
2
|
+
* Jektify v1.0.5 (https://williamcanin.me/jektify/)
|
3
|
+
* Copyright 2020
|
4
|
+
* Licensed under MIT (https://github.com/williamcanin/jektify/blob/master/LICENSE)
|
5
|
+
*/
|
6
|
+
$(document).ready( () =>{
|
7
|
+
$(".jektify__button").click(function(){
|
8
|
+
$(this).parent().next().slideToggle();
|
9
|
+
$(this).removeClass('jektify__button--closed');
|
10
|
+
$(this).toggleClass("jektify__button--open");
|
11
|
+
});
|
12
|
+
});
|
@@ -0,0 +1,52 @@
|
|
1
|
+
.jektify{
|
2
|
+
&--custom{ }
|
3
|
+
|
4
|
+
&__header{
|
5
|
+
&--custom{}
|
6
|
+
}
|
7
|
+
|
8
|
+
&__brand{
|
9
|
+
&--custom{}
|
10
|
+
}
|
11
|
+
|
12
|
+
&__year{
|
13
|
+
&--custom{}
|
14
|
+
}
|
15
|
+
|
16
|
+
&__button{
|
17
|
+
&--custom{}
|
18
|
+
}
|
19
|
+
|
20
|
+
&__user{
|
21
|
+
&--custom{}
|
22
|
+
|
23
|
+
&-link{
|
24
|
+
&--custom{}
|
25
|
+
}
|
26
|
+
|
27
|
+
&-text{
|
28
|
+
&--custom{}
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
&__body{
|
33
|
+
&--custom{}
|
34
|
+
}
|
35
|
+
|
36
|
+
&__title{
|
37
|
+
&--custom{}
|
38
|
+
}
|
39
|
+
|
40
|
+
&__description{
|
41
|
+
&--custom{}
|
42
|
+
}
|
43
|
+
|
44
|
+
&__tracklist{
|
45
|
+
&--custom{}
|
46
|
+
}
|
47
|
+
|
48
|
+
&__track{
|
49
|
+
&--custom{}
|
50
|
+
}
|
51
|
+
|
52
|
+
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jektify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- William C. Canin
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -16,114 +16,120 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '4.2'
|
20
20
|
- - "~>"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version:
|
22
|
+
version: 4.2.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - "~>"
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '
|
29
|
+
version: '4.2'
|
30
30
|
- - "~>"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
32
|
+
version: 4.2.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
|
-
name:
|
34
|
+
name: sassc
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '
|
39
|
+
version: '2.4'
|
40
40
|
- - "~>"
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version:
|
42
|
+
version: 2.4.0
|
43
43
|
type: :runtime
|
44
44
|
prerelease: false
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
47
|
- - "~>"
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: '
|
49
|
+
version: '2.4'
|
50
50
|
- - "~>"
|
51
51
|
- !ruby/object:Gem::Version
|
52
|
-
version:
|
52
|
+
version: 2.4.0
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
54
|
name: bundler
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|
56
56
|
requirements:
|
57
57
|
- - "~>"
|
58
58
|
- !ruby/object:Gem::Version
|
59
|
-
version:
|
59
|
+
version: 2.2.17
|
60
60
|
type: :development
|
61
61
|
prerelease: false
|
62
62
|
version_requirements: !ruby/object:Gem::Requirement
|
63
63
|
requirements:
|
64
64
|
- - "~>"
|
65
65
|
- !ruby/object:Gem::Version
|
66
|
-
version:
|
66
|
+
version: 2.2.17
|
67
67
|
- !ruby/object:Gem::Dependency
|
68
68
|
name: rake
|
69
69
|
requirement: !ruby/object:Gem::Requirement
|
70
70
|
requirements:
|
71
71
|
- - "~>"
|
72
72
|
- !ruby/object:Gem::Version
|
73
|
-
version:
|
73
|
+
version: 13.0.3
|
74
74
|
type: :development
|
75
75
|
prerelease: false
|
76
76
|
version_requirements: !ruby/object:Gem::Requirement
|
77
77
|
requirements:
|
78
78
|
- - "~>"
|
79
79
|
- !ruby/object:Gem::Version
|
80
|
-
version:
|
80
|
+
version: 13.0.3
|
81
81
|
- !ruby/object:Gem::Dependency
|
82
82
|
name: minitest
|
83
83
|
requirement: !ruby/object:Gem::Requirement
|
84
84
|
requirements:
|
85
85
|
- - "~>"
|
86
86
|
- !ruby/object:Gem::Version
|
87
|
-
version:
|
87
|
+
version: 5.14.3
|
88
88
|
type: :development
|
89
89
|
prerelease: false
|
90
90
|
version_requirements: !ruby/object:Gem::Requirement
|
91
91
|
requirements:
|
92
92
|
- - "~>"
|
93
93
|
- !ruby/object:Gem::Version
|
94
|
-
version:
|
95
|
-
description:
|
94
|
+
version: 5.14.3
|
95
|
+
description:
|
96
96
|
email:
|
97
97
|
- william.costa.canin@gmail.com
|
98
98
|
executables: []
|
99
99
|
extensions: []
|
100
100
|
extra_rdoc_files: []
|
101
101
|
files:
|
102
|
+
- ".github/FUNDING.yml"
|
103
|
+
- ".github/workflows/ruby.yml"
|
102
104
|
- ".gitignore"
|
103
105
|
- ".travis.yml"
|
104
106
|
- CHANGELOG.md
|
105
107
|
- CODE_OF_CONDUCT.md
|
106
108
|
- Gemfile
|
107
|
-
- LICENSE
|
109
|
+
- LICENSE
|
108
110
|
- README.md
|
109
111
|
- Rakefile
|
112
|
+
- _config.yml
|
110
113
|
- assets/vendor/jektify/imgs/spotify_logo.png
|
111
114
|
- assets/vendor/jektify/js/jektify.min.js
|
112
115
|
- assets/vendor/jektify/sass/_jektify.scss
|
113
116
|
- bin/console
|
114
117
|
- bin/setup
|
115
|
-
- bin/
|
118
|
+
- bin/tests
|
119
|
+
- gulpfile.js
|
116
120
|
- jektify.gemspec
|
117
121
|
- lib/jektify.rb
|
118
122
|
- lib/jektify/engine.rb
|
119
123
|
- lib/jektify/main.rb
|
120
124
|
- lib/jektify/render.rb
|
121
125
|
- lib/jektify/version.rb
|
126
|
+
- src/js/jektify.js
|
127
|
+
- src/scss/_jektify_sass_structure.scss
|
122
128
|
homepage: https://github.com/jektify/jektify
|
123
129
|
licenses:
|
124
130
|
- MIT
|
125
131
|
metadata: {}
|
126
|
-
post_install_message:
|
132
|
+
post_install_message:
|
127
133
|
rdoc_options: []
|
128
134
|
require_paths:
|
129
135
|
- lib
|
@@ -131,16 +137,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
131
137
|
requirements:
|
132
138
|
- - ">="
|
133
139
|
- !ruby/object:Gem::Version
|
134
|
-
version:
|
140
|
+
version: 3.0.0
|
135
141
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
136
142
|
requirements:
|
137
143
|
- - ">="
|
138
144
|
- !ruby/object:Gem::Version
|
139
145
|
version: '0'
|
140
146
|
requirements: []
|
141
|
-
|
142
|
-
|
143
|
-
signing_key:
|
147
|
+
rubygems_version: 3.2.18
|
148
|
+
signing_key:
|
144
149
|
specification_version: 4
|
145
150
|
summary: Jekyll plugin to generate HTML code fragments to incorporate music from Spotify
|
146
151
|
test_files: []
|
data/bin/travis
DELETED
@@ -1,59 +0,0 @@
|
|
1
|
-
#!/usr/bin/env bash
|
2
|
-
|
3
|
-
GEM__ROOT=$PWD
|
4
|
-
JEKYL__PROJECT="project"
|
5
|
-
APP__NAME="jektify"
|
6
|
-
APP__VERSION="1.0.1"
|
7
|
-
|
8
|
-
function _clean(){
|
9
|
-
cd $GEM__ROOT
|
10
|
-
rm -rf "test/travis/$JEKYL__PROJECT"
|
11
|
-
}
|
12
|
-
|
13
|
-
# Generated Jektify gem
|
14
|
-
bundle exec rake build
|
15
|
-
echo "Jektify gem created!"
|
16
|
-
|
17
|
-
# Generated Jektify gem
|
18
|
-
bundle exec rake install
|
19
|
-
echo "${APP__NAME^^} gem installed!"
|
20
|
-
|
21
|
-
# Clean cache before created
|
22
|
-
_clean
|
23
|
-
|
24
|
-
# Created project Jekyll
|
25
|
-
mkdir -p test/travis
|
26
|
-
bundle exec jekyll new test/travis/$JEKYL__PROJECT; cd $_
|
27
|
-
|
28
|
-
# Add dependency in Gemfile for Jekyll project
|
29
|
-
cat << EOF >> Gemfile
|
30
|
-
|
31
|
-
gem "bigdecimal","~> 1.3"
|
32
|
-
gem "json","~> 2.1"
|
33
|
-
EOF
|
34
|
-
|
35
|
-
# Add Jektify in file Gemfile
|
36
|
-
sed -i "/ gem \"jekyll-feed\", \"~> 0.6\"/a \ \gem \"$APP__NAME\", \"~> $APP__VERSION\"" Gemfile
|
37
|
-
|
38
|
-
# Add plugin of Jektify in file _config.yml
|
39
|
-
sed -i "/- jekyll-feed/a\ \ - $APP__NAME" _config.yml
|
40
|
-
|
41
|
-
# Add config Jektify in file _config.yml
|
42
|
-
cat << EOF >> _config.yml
|
43
|
-
|
44
|
-
$APP__NAME:
|
45
|
-
enable: true
|
46
|
-
EOF
|
47
|
-
|
48
|
-
# Add liquid in markdown of Jektify
|
49
|
-
echo "{ % $APP__NAME spotify/track/62qsgMnY4wg8nE5qjyOdWO/dark % }" >> _posts/*-welcome-to-jekyll.markdown
|
50
|
-
|
51
|
-
# Re-Update Gemfile.lock for project Jekyll
|
52
|
-
bundle install
|
53
|
-
|
54
|
-
# Compiled project Jekyll with liquid of gem Jektify
|
55
|
-
bundle exec jekyll b
|
56
|
-
echo "${APP__NAME^^} $JEKYL__PROJECT compiled!"
|
57
|
-
|
58
|
-
# Clean cache
|
59
|
-
# _clean
|