jektify 1.0.7 → 1.0.8
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 +4 -4
- data/.bundle/config +3 -0
- data/.github/workflows/ruby.yml +10 -21
- data/.gitignore +10 -28
- data/CHANGELOG.md +10 -1
- data/Gemfile.lock +198 -0
- data/LICENSE +1 -1
- data/README.md +2 -32
- data/_config.yml +315 -0
- data/assets/vendor/jektify/js/jektify.min.js +1 -1
- data/assets/vendor/jektify/sass/_jektify.scss +5 -19
- data/bin/setup +3 -0
- data/bin/tests +9 -79
- data/example/.bundle/config +3 -0
- data/example/.gitignore +5 -0
- data/example/Gemfile +11 -0
- data/example/Gemfile.lock +181 -0
- data/example/_config.yml +43 -0
- data/example/_includes/head.html +6 -0
- data/example/_layouts/default.html +22 -0
- data/example/_layouts/home.html +36 -0
- data/example/_layouts/post.html +27 -0
- data/example/_posts/2025-09-19-welcome-to-jektify.markdown +12 -0
- data/example/_sass/_reset.scss +24 -0
- data/example/_sass/main.scss +2 -0
- data/example/assets/jquery.min.js +2 -0
- data/example/assets/style.scss +4 -0
- data/example/index.markdown +3 -0
- data/gulpfile.js +11 -17
- data/jektify.gemspec +6 -6
- data/lib/jektify/engine.rb +24 -26
- data/lib/jektify/main.rb +61 -86
- data/lib/jektify/render.rb +50 -76
- data/lib/jektify/version.rb +1 -1
- data/package-lock.json +2057 -0
- data/src/js/jektify.js +30 -6
- metadata +37 -36
- data/.travis.yml +0 -12
data/src/js/jektify.js
CHANGED
|
@@ -1,12 +1,36 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Jektify v1.0.
|
|
3
|
-
* Copyright
|
|
2
|
+
* Jektify v1.0.8 (https://williamcanin.me/jektify/)
|
|
3
|
+
* Copyright 2025
|
|
4
4
|
* Licensed under MIT (https://github.com/williamcanin/jektify/blob/master/LICENSE)
|
|
5
5
|
*/
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
|
|
7
|
+
// Javascript: Bug
|
|
8
|
+
// document.addEventListener("DOMContentLoaded", () => {
|
|
9
|
+
// document.querySelectorAll(".jektify__button").forEach(button => {
|
|
10
|
+
// button.addEventListener("click", () => {
|
|
11
|
+
// const nextElem = button.parentElement.nextElementSibling;
|
|
12
|
+
// if (nextElem) {
|
|
13
|
+
// // toggle efeito tipo slide (simplificado)
|
|
14
|
+
// if (nextElem.style.maxHeight) {
|
|
15
|
+
// nextElem.style.maxHeight = null;
|
|
16
|
+
// } else {
|
|
17
|
+
// nextElem.style.maxHeight = nextElem.scrollHeight + "px";
|
|
18
|
+
// }
|
|
19
|
+
// }
|
|
20
|
+
|
|
21
|
+
// button.classList.remove("jektify__button--closed");
|
|
22
|
+
// button.classList.toggle("jektify__button--open");
|
|
23
|
+
// });
|
|
24
|
+
// });
|
|
25
|
+
// });
|
|
26
|
+
|
|
27
|
+
// JQUERY
|
|
28
|
+
jQuery(function($) {
|
|
29
|
+
$(".jektify__button").on("click", function() {
|
|
8
30
|
$(this).parent().next().slideToggle();
|
|
9
|
-
$(this).removeClass(
|
|
10
|
-
|
|
31
|
+
$(this).removeClass("jektify__button--closed")
|
|
32
|
+
.toggleClass("jektify__button--open");
|
|
11
33
|
});
|
|
12
34
|
});
|
|
35
|
+
|
|
36
|
+
|
metadata
CHANGED
|
@@ -1,111 +1,98 @@
|
|
|
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.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- William C. Canin
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: jekyll
|
|
15
14
|
requirement: !ruby/object:Gem::Requirement
|
|
16
15
|
requirements:
|
|
17
|
-
- - "
|
|
16
|
+
- - ">="
|
|
18
17
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '4.
|
|
20
|
-
- - "~>"
|
|
21
|
-
- !ruby/object:Gem::Version
|
|
22
|
-
version: 4.2.0
|
|
18
|
+
version: '4.4'
|
|
23
19
|
type: :runtime
|
|
24
20
|
prerelease: false
|
|
25
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
26
22
|
requirements:
|
|
27
|
-
- - "
|
|
28
|
-
- !ruby/object:Gem::Version
|
|
29
|
-
version: '4.2'
|
|
30
|
-
- - "~>"
|
|
23
|
+
- - ">="
|
|
31
24
|
- !ruby/object:Gem::Version
|
|
32
|
-
version: 4.
|
|
25
|
+
version: '4.4'
|
|
33
26
|
- !ruby/object:Gem::Dependency
|
|
34
|
-
name:
|
|
27
|
+
name: sass
|
|
35
28
|
requirement: !ruby/object:Gem::Requirement
|
|
36
29
|
requirements:
|
|
37
|
-
- - "
|
|
30
|
+
- - ">="
|
|
38
31
|
- !ruby/object:Gem::Version
|
|
39
|
-
version:
|
|
40
|
-
- - "~>"
|
|
41
|
-
- !ruby/object:Gem::Version
|
|
42
|
-
version: 2.4.0
|
|
32
|
+
version: 3.7.4
|
|
43
33
|
type: :runtime
|
|
44
34
|
prerelease: false
|
|
45
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
46
36
|
requirements:
|
|
47
|
-
- - "
|
|
48
|
-
- !ruby/object:Gem::Version
|
|
49
|
-
version: '2.4'
|
|
50
|
-
- - "~>"
|
|
37
|
+
- - ">="
|
|
51
38
|
- !ruby/object:Gem::Version
|
|
52
|
-
version:
|
|
39
|
+
version: 3.7.4
|
|
53
40
|
- !ruby/object:Gem::Dependency
|
|
54
41
|
name: bundler
|
|
55
42
|
requirement: !ruby/object:Gem::Requirement
|
|
56
43
|
requirements:
|
|
57
|
-
- - "
|
|
44
|
+
- - ">="
|
|
58
45
|
- !ruby/object:Gem::Version
|
|
59
46
|
version: 2.2.17
|
|
60
47
|
type: :development
|
|
61
48
|
prerelease: false
|
|
62
49
|
version_requirements: !ruby/object:Gem::Requirement
|
|
63
50
|
requirements:
|
|
64
|
-
- - "
|
|
51
|
+
- - ">="
|
|
65
52
|
- !ruby/object:Gem::Version
|
|
66
53
|
version: 2.2.17
|
|
67
54
|
- !ruby/object:Gem::Dependency
|
|
68
55
|
name: rake
|
|
69
56
|
requirement: !ruby/object:Gem::Requirement
|
|
70
57
|
requirements:
|
|
71
|
-
- - "
|
|
58
|
+
- - ">="
|
|
72
59
|
- !ruby/object:Gem::Version
|
|
73
60
|
version: 13.0.3
|
|
74
61
|
type: :development
|
|
75
62
|
prerelease: false
|
|
76
63
|
version_requirements: !ruby/object:Gem::Requirement
|
|
77
64
|
requirements:
|
|
78
|
-
- - "
|
|
65
|
+
- - ">="
|
|
79
66
|
- !ruby/object:Gem::Version
|
|
80
67
|
version: 13.0.3
|
|
81
68
|
- !ruby/object:Gem::Dependency
|
|
82
69
|
name: minitest
|
|
83
70
|
requirement: !ruby/object:Gem::Requirement
|
|
84
71
|
requirements:
|
|
85
|
-
- - "
|
|
72
|
+
- - ">="
|
|
86
73
|
- !ruby/object:Gem::Version
|
|
87
74
|
version: 5.14.3
|
|
88
75
|
type: :development
|
|
89
76
|
prerelease: false
|
|
90
77
|
version_requirements: !ruby/object:Gem::Requirement
|
|
91
78
|
requirements:
|
|
92
|
-
- - "
|
|
79
|
+
- - ">="
|
|
93
80
|
- !ruby/object:Gem::Version
|
|
94
81
|
version: 5.14.3
|
|
95
|
-
description:
|
|
96
82
|
email:
|
|
97
83
|
- william.costa.canin@gmail.com
|
|
98
84
|
executables: []
|
|
99
85
|
extensions: []
|
|
100
86
|
extra_rdoc_files: []
|
|
101
87
|
files:
|
|
88
|
+
- ".bundle/config"
|
|
102
89
|
- ".github/FUNDING.yml"
|
|
103
90
|
- ".github/workflows/ruby.yml"
|
|
104
91
|
- ".gitignore"
|
|
105
|
-
- ".travis.yml"
|
|
106
92
|
- CHANGELOG.md
|
|
107
93
|
- CODE_OF_CONDUCT.md
|
|
108
94
|
- Gemfile
|
|
95
|
+
- Gemfile.lock
|
|
109
96
|
- LICENSE
|
|
110
97
|
- README.md
|
|
111
98
|
- Rakefile
|
|
@@ -116,6 +103,21 @@ files:
|
|
|
116
103
|
- bin/console
|
|
117
104
|
- bin/setup
|
|
118
105
|
- bin/tests
|
|
106
|
+
- example/.bundle/config
|
|
107
|
+
- example/.gitignore
|
|
108
|
+
- example/Gemfile
|
|
109
|
+
- example/Gemfile.lock
|
|
110
|
+
- example/_config.yml
|
|
111
|
+
- example/_includes/head.html
|
|
112
|
+
- example/_layouts/default.html
|
|
113
|
+
- example/_layouts/home.html
|
|
114
|
+
- example/_layouts/post.html
|
|
115
|
+
- example/_posts/2025-09-19-welcome-to-jektify.markdown
|
|
116
|
+
- example/_sass/_reset.scss
|
|
117
|
+
- example/_sass/main.scss
|
|
118
|
+
- example/assets/jquery.min.js
|
|
119
|
+
- example/assets/style.scss
|
|
120
|
+
- example/index.markdown
|
|
119
121
|
- gulpfile.js
|
|
120
122
|
- jektify.gemspec
|
|
121
123
|
- lib/jektify.rb
|
|
@@ -123,13 +125,13 @@ files:
|
|
|
123
125
|
- lib/jektify/main.rb
|
|
124
126
|
- lib/jektify/render.rb
|
|
125
127
|
- lib/jektify/version.rb
|
|
128
|
+
- package-lock.json
|
|
126
129
|
- src/js/jektify.js
|
|
127
130
|
- src/scss/_jektify_sass_structure.scss
|
|
128
131
|
homepage: https://github.com/jektify/jektify
|
|
129
132
|
licenses:
|
|
130
133
|
- MIT
|
|
131
134
|
metadata: {}
|
|
132
|
-
post_install_message:
|
|
133
135
|
rdoc_options: []
|
|
134
136
|
require_paths:
|
|
135
137
|
- lib
|
|
@@ -137,15 +139,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
137
139
|
requirements:
|
|
138
140
|
- - ">="
|
|
139
141
|
- !ruby/object:Gem::Version
|
|
140
|
-
version: 3.
|
|
142
|
+
version: 3.3.0
|
|
141
143
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
142
144
|
requirements:
|
|
143
145
|
- - ">="
|
|
144
146
|
- !ruby/object:Gem::Version
|
|
145
147
|
version: '0'
|
|
146
148
|
requirements: []
|
|
147
|
-
rubygems_version: 3.
|
|
148
|
-
signing_key:
|
|
149
|
+
rubygems_version: 3.6.9
|
|
149
150
|
specification_version: 4
|
|
150
151
|
summary: Jekyll plugin to generate HTML code fragments to incorporate music from Spotify
|
|
151
152
|
test_files: []
|