jektify 1.0.4 → 1.0.5

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ecfd4460c21ab62d71bdefe0f66bd1421cf71f13f7d9fcc0dc0770b9050ca08f
4
- data.tar.gz: 209393222a195d66b0a192bed326daa22ae49f75ecc5ee2f0194523c375b9b70
3
+ metadata.gz: ffd5e351a15014a533e6fc55a391596458e93dfa4d75e48250c6c660d0881939
4
+ data.tar.gz: 3cb7d0bc28f2d9ebef67673717c8b717d7781c7d1304580a845f279d51d2d591
5
5
  SHA512:
6
- metadata.gz: b51a9e0d4294c1f7a5df99eec5c90d949edfeae998ee1961de3e20cbf41cc866121dc6051bc91f2c19bbb10b7038e36069c3d3e297ba3a753650f7210c781972
7
- data.tar.gz: 576effc0a83454f9979a3b9835645f739270642fd9dbf71339f4ed2ede8695c106c993deae4b0cbfcd37d76dee8218e0287ede33be6f3d9be6b71d0d91113aa7
6
+ metadata.gz: 3ba7b04310f57b332d13e7e75785e39f4e7ebaf2a41a4d6d0a0dc1e228c9d116f7a789296b513f36bfdbd21f6dfb62c9540f89ada97fc29ad463ea1194b7efe2
7
+ data.tar.gz: 3f06c2a6b6231674be2673c6e12ff3802fcf93bd9508276037af65e06c12c946c9967ce431559562a2d0eed8e70725428d9d345016161071a417a4f8600dc0a3
data/Gemfile CHANGED
@@ -1,12 +1,8 @@
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.12", "~> 0.12.2"
9
- gem "bigdecimal", "~> 1.4", "~> 1.4.3"
10
- gem "json", "~> 2.2", "~> 2.2.0"
11
- gem "sassc", "~> 2.2", "~> 2.2.1"
12
- gem "jekyll", "~> 4.0", "~> 4.0.0"
6
+ gem "pry", "~> 0.12"
7
+ # gem "sassc", "~> 2.2"
8
+ # gem "jekyll", "~> 4.0"
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2018 William C. Canin
3
+ Copyright (c) 2019 William C. Canin
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -104,6 +104,12 @@ The "`bin/travis`" file will be the file that [Travis](travis-ci.org) will use t
104
104
 
105
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.
106
106
 
107
+ ## Donation
108
+
109
+ If you liked my work, buy me a coffee <3
110
+
111
+ [![paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YBK2HEEYG8V5W&source)
112
+
107
113
  ## License
108
114
 
109
115
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -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.
data/bin/travis CHANGED
@@ -3,7 +3,7 @@
3
3
  GEM__ROOT=$PWD
4
4
  JEKYL__PROJECT="project"
5
5
  APP__NAME="jektify"
6
- APP__VERSION="1.0.4"
6
+ APP__VERSION="1.0.5"
7
7
 
8
8
  function _clean(){
9
9
  cd $GEM__ROOT
@@ -27,9 +27,8 @@ bundle exec jekyll new test/travis/$JEKYL__PROJECT; cd $_
27
27
 
28
28
  # Add dependency in Gemfile for Jekyll project
29
29
  cat << EOF >> Gemfile
30
-
31
- gem "bigdecimal","~> 1.4"
32
- gem "json","~> 2.2"
30
+ gem "bigdecimal", "~> 2.0"
31
+ gem "json", "~> 2.3"
33
32
  EOF
34
33
 
35
34
  # Add Jektify in file Gemfile
@@ -43,10 +42,36 @@ cat << EOF >> _config.yml
43
42
 
44
43
  $APP__NAME:
45
44
  enable: true
45
+ open: true
46
+ toggle:
47
+ enable: true
48
+ spotify:
49
+ user: # "you_user_spotify"
50
+ text: "See me no Spotify"
51
+ sass:
52
+ jekyll: true
53
+ other:
54
+ dir: "way/to/your/SASS"
55
+ title:
56
+ enable: false
57
+ text: "Music name"
58
+ description:
59
+ enable: false
60
+ text: |
61
+ Jekyll plugin to generate html snippets for embedding Spotify Musics.
62
+ To listen to the full song, open your Spotify and start these musics.
46
63
  EOF
47
64
 
48
65
  # Add liquid in markdown of Jektify
49
- echo "{ % $APP__NAME spotify/track/62qsgMnY4wg8nE5qjyOdWO/dark % }" >> _posts/*-welcome-to-jekyll.markdown
66
+ echo "{% $APP__NAME spotify/track/62qsgMnY4wg8nE5qjyOdWO/dark %}" >> _posts/*-welcome-to-jekyll.markdown
67
+
68
+ # Bundler configuration folder
69
+ mkdir -p .bundle
70
+ cat << EOF > .bundle/config
71
+ ---
72
+ BUNDLE_PATH: "vendor/bundle"
73
+ BUNDLE_DISABLE_SHARED_GEMS: "true"
74
+ EOF
50
75
 
51
76
  # Re-Update Gemfile.lock for project Jekyll
52
77
  bundle install
@@ -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;
@@ -23,8 +23,8 @@ Gem::Specification.new do |spec|
23
23
  spec.add_dependency "jekyll", "~> 4.0", "~> 4.0.0"
24
24
  spec.add_dependency "sassc", "~> 2.2", "~> 2.2.1"
25
25
 
26
- spec.add_development_dependency "bundler", "~> 2.0"
26
+ spec.add_development_dependency "bundler", "~> 2.1"
27
27
  spec.add_development_dependency "rake", "~> 13.0"
28
- spec.add_development_dependency "minitest", "~> 5.12"
28
+ spec.add_development_dependency "minitest", "~> 5.14"
29
29
 
30
30
  end
@@ -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" class="jektify__track jektify__track--#{spotify_embed_theme} jektify__track--custom" src="#{spotify_embed_url}" width="100%" height="#{box_height}" frameborder="0" allowtransparency="true"></iframe>
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>)
@@ -8,7 +8,7 @@ module Jektify
8
8
 
9
9
  MAJOR = 1
10
10
  MINOR = 0
11
- PATCH = 4
11
+ PATCH = 5
12
12
  VERSION = "#{MAJOR}.#{MINOR}.#{PATCH}"
13
13
 
14
14
  end
@@ -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
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - William C. Canin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-10-07 00:00:00.000000000 Z
11
+ date: 2020-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -56,14 +56,14 @@ dependencies:
56
56
  requirements:
57
57
  - - "~>"
58
58
  - !ruby/object:Gem::Version
59
- version: '2.0'
59
+ version: '2.1'
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: '2.0'
66
+ version: '2.1'
67
67
  - !ruby/object:Gem::Dependency
68
68
  name: rake
69
69
  requirement: !ruby/object:Gem::Requirement
@@ -84,14 +84,14 @@ dependencies:
84
84
  requirements:
85
85
  - - "~>"
86
86
  - !ruby/object:Gem::Version
87
- version: '5.12'
87
+ version: '5.14'
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: '5.12'
94
+ version: '5.14'
95
95
  description:
96
96
  email:
97
97
  - william.costa.canin@gmail.com
@@ -104,21 +104,25 @@ files:
104
104
  - CHANGELOG.md
105
105
  - CODE_OF_CONDUCT.md
106
106
  - Gemfile
107
- - LICENSE.txt
107
+ - LICENSE
108
108
  - README.md
109
109
  - Rakefile
110
+ - _config.yml
110
111
  - assets/vendor/jektify/imgs/spotify_logo.png
111
112
  - assets/vendor/jektify/js/jektify.min.js
112
113
  - assets/vendor/jektify/sass/_jektify.scss
113
114
  - bin/console
114
115
  - bin/setup
115
116
  - bin/travis
117
+ - gulpfile.js
116
118
  - jektify.gemspec
117
119
  - lib/jektify.rb
118
120
  - lib/jektify/engine.rb
119
121
  - lib/jektify/main.rb
120
122
  - lib/jektify/render.rb
121
123
  - lib/jektify/version.rb
124
+ - src/js/jektify.js
125
+ - src/scss/_jektify_sass_structure.scss
122
126
  homepage: https://github.com/jektify/jektify
123
127
  licenses:
124
128
  - MIT
@@ -138,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
138
142
  - !ruby/object:Gem::Version
139
143
  version: '0'
140
144
  requirements: []
141
- rubygems_version: 3.0.6
145
+ rubygems_version: 3.1.2
142
146
  signing_key:
143
147
  specification_version: 4
144
148
  summary: Jekyll plugin to generate HTML code fragments to incorporate music from Spotify