jekyll_block_tag_plugin_template 0.1.0 → 0.1.1
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/.rspec +2 -1
- data/.rubocop.yml +4 -1
- data/.vscode/launch.json +10 -0
- data/Gemfile.lock +27 -3
- data/PLUGIN_README.md +108 -0
- data/README.md +18 -102
- data/jekyll_block_tag_plugin_template.gemspec +5 -0
- data/lib/jekyll_block_tag_plugin_template/version.rb +1 -1
- data/lib/jekyll_block_tag_plugin_template.rb +29 -20
- metadata +73 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e8c3464e4fc8f3e6b0004d525d310eede0e2613dfdd5ab90e573a02fdee34993
|
|
4
|
+
data.tar.gz: 5a731752a3d13dd5de7e5b2a8db4bf316a3ecf4f6d1c07bd97b02b207393eed1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a1c86d170b12a3c997da2254385070c1ad2ab90d4c05a90078342120e220bdba94db8e39c9ea9ffed4ca426f1b5995136460d2c27821c0288baed1fc92efcd1a
|
|
7
|
+
data.tar.gz: 1ac5a17ced6e8a6bcfdb4ccb14d313b3ca3630ceb22e5fd2155b093a4954573c6dd0c903ba508407c0eaba8afafc7f6958433ef28026e3e9ab64f56cacefa6f4
|
data/.rspec
CHANGED
data/.rubocop.yml
CHANGED
data/.vscode/launch.json
CHANGED
|
@@ -4,6 +4,14 @@
|
|
|
4
4
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
5
5
|
"version": "0.2.0",
|
|
6
6
|
"configurations": [
|
|
7
|
+
{
|
|
8
|
+
"args": ["/tmp/jekyll_block_tag_plugin_template"],
|
|
9
|
+
"console": "externalTerminal",
|
|
10
|
+
"name": "Debug run_this_first",
|
|
11
|
+
"program": "${workspaceRoot}/bin/run_this_first",
|
|
12
|
+
"type": "Ruby",
|
|
13
|
+
"request": "launch",
|
|
14
|
+
},
|
|
7
15
|
{
|
|
8
16
|
"cwd": "${workspaceRoot}",
|
|
9
17
|
"name": "Attach rdebug-ide",
|
|
@@ -22,6 +30,7 @@
|
|
|
22
30
|
"${workspaceRoot}"
|
|
23
31
|
],
|
|
24
32
|
"cwd": "${workspaceRoot}",
|
|
33
|
+
"see": "https://relishapp.com/rspec/rspec-core/docs/command-line",
|
|
25
34
|
"name": "RSpec - all",
|
|
26
35
|
"program": "${env:HOME}/.gems/bin/rspec",
|
|
27
36
|
"request": "launch",
|
|
@@ -39,6 +48,7 @@
|
|
|
39
48
|
"name": "RSpec - active spec file only",
|
|
40
49
|
"program": "${env:HOME}/.gems/bin/rspec",
|
|
41
50
|
"request": "launch",
|
|
51
|
+
"see": "https://relishapp.com/rspec/rspec-core/docs/command-line",
|
|
42
52
|
"showDebuggerOutput": false,
|
|
43
53
|
"type": "Ruby",
|
|
44
54
|
"useBundler": true,
|
data/Gemfile.lock
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
jekyll_block_tag_plugin_template (0.1.
|
|
4
|
+
jekyll_block_tag_plugin_template (0.1.1)
|
|
5
|
+
git
|
|
5
6
|
jekyll (>= 3.5.0)
|
|
6
7
|
jekyll_plugin_logger
|
|
8
|
+
key-value-parser
|
|
9
|
+
os
|
|
10
|
+
shellwords
|
|
11
|
+
tty-prompt
|
|
7
12
|
|
|
8
13
|
GEM
|
|
9
14
|
remote: https://rubygems.org/
|
|
@@ -12,7 +17,7 @@ GEM
|
|
|
12
17
|
public_suffix (>= 2.0.2, < 5.0)
|
|
13
18
|
ast (2.4.2)
|
|
14
19
|
colorator (1.1.0)
|
|
15
|
-
concurrent-ruby (1.1.
|
|
20
|
+
concurrent-ruby (1.1.10)
|
|
16
21
|
debase (0.2.4.1)
|
|
17
22
|
debase-ruby_core_source (>= 0.10.2)
|
|
18
23
|
debase-ruby_core_source (0.10.14)
|
|
@@ -23,6 +28,8 @@ GEM
|
|
|
23
28
|
eventmachine (1.2.7)
|
|
24
29
|
ffi (1.15.5)
|
|
25
30
|
forwardable-extended (2.6.0)
|
|
31
|
+
git (1.10.2)
|
|
32
|
+
rchardet (~> 1.8)
|
|
26
33
|
http_parser.rb (0.8.0)
|
|
27
34
|
i18n (1.10.0)
|
|
28
35
|
concurrent-ruby (~> 1.0)
|
|
@@ -47,7 +54,8 @@ GEM
|
|
|
47
54
|
listen (~> 3.0)
|
|
48
55
|
jekyll_plugin_logger (2.0.0)
|
|
49
56
|
jekyll (>= 3.5.0)
|
|
50
|
-
|
|
57
|
+
key-value-parser (0.0.2)
|
|
58
|
+
kramdown (2.3.2)
|
|
51
59
|
rexml
|
|
52
60
|
kramdown-parser-gfm (1.1.0)
|
|
53
61
|
kramdown (~> 2.0)
|
|
@@ -56,9 +64,12 @@ GEM
|
|
|
56
64
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
|
57
65
|
rb-inotify (~> 0.9, >= 0.9.10)
|
|
58
66
|
mercenary (0.4.0)
|
|
67
|
+
os (1.1.4)
|
|
59
68
|
parallel (1.21.0)
|
|
60
69
|
parser (3.1.1.0)
|
|
61
70
|
ast (~> 2.4.1)
|
|
71
|
+
pastel (0.8.0)
|
|
72
|
+
tty-color (~> 0.5)
|
|
62
73
|
pathutil (0.16.2)
|
|
63
74
|
forwardable-extended (~> 2.6)
|
|
64
75
|
public_suffix (4.0.6)
|
|
@@ -67,6 +78,7 @@ GEM
|
|
|
67
78
|
rb-fsevent (0.11.1)
|
|
68
79
|
rb-inotify (0.10.1)
|
|
69
80
|
ffi (~> 1.0)
|
|
81
|
+
rchardet (1.8.0)
|
|
70
82
|
regexp_parser (2.2.1)
|
|
71
83
|
rexml (3.2.5)
|
|
72
84
|
rouge (3.28.0)
|
|
@@ -100,9 +112,21 @@ GEM
|
|
|
100
112
|
safe_yaml (1.0.5)
|
|
101
113
|
sassc (2.4.0)
|
|
102
114
|
ffi (~> 1.9)
|
|
115
|
+
shellwords (0.1.0)
|
|
103
116
|
terminal-table (2.0.0)
|
|
104
117
|
unicode-display_width (~> 1.1, >= 1.1.1)
|
|
118
|
+
tty-color (0.6.0)
|
|
119
|
+
tty-cursor (0.7.1)
|
|
120
|
+
tty-prompt (0.23.1)
|
|
121
|
+
pastel (~> 0.8)
|
|
122
|
+
tty-reader (~> 0.8)
|
|
123
|
+
tty-reader (0.9.0)
|
|
124
|
+
tty-cursor (~> 0.7)
|
|
125
|
+
tty-screen (~> 0.8)
|
|
126
|
+
wisper (~> 2.0)
|
|
127
|
+
tty-screen (0.8.1)
|
|
105
128
|
unicode-display_width (1.8.0)
|
|
129
|
+
wisper (2.0.1)
|
|
106
130
|
|
|
107
131
|
PLATFORMS
|
|
108
132
|
x86_64-linux
|
data/PLUGIN_README.md
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
`jekyll_block_tag_plugin_template`
|
|
2
|
+
[](https://badge.fury.io/rb/jekyll_block_tag_plugin_template)
|
|
3
|
+
===========
|
|
4
|
+
|
|
5
|
+
`jekyll_block_tag_plugin_template` is a Jekyll plugin that provides a new Liquid tag called `new_tag_name` and a new tag block called `new_tag_block_name`.
|
|
6
|
+
The plugin is packaged as a Ruby gem.
|
|
7
|
+
|
|
8
|
+
* A `new_tag_block_name` block tag that can do magic with its eyes closed.
|
|
9
|
+
```
|
|
10
|
+
{% new_tag_name [arguments] %}
|
|
11
|
+
Contents of new_tag_block_name
|
|
12
|
+
{% endnew_tag_name %}
|
|
13
|
+
```
|
|
14
|
+
* A `new_tag_name` tag that can turn on a dime and leave 15 cents change.
|
|
15
|
+
```
|
|
16
|
+
{% new_tag_name Contents of new_tag_name tag%}
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
## Additional Information
|
|
21
|
+
More information is available on Mike Slinn's web site about
|
|
22
|
+
[Jekyll plugins](https://www.mslinn.com/blog/index.html#Jekyll).
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## Installation
|
|
26
|
+
|
|
27
|
+
Add this line to your application's Gemfile:
|
|
28
|
+
|
|
29
|
+
```ruby
|
|
30
|
+
group :jekyll_plugins do
|
|
31
|
+
gem 'jekyll_block_tag_plugin_template'
|
|
32
|
+
end
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
And then execute:
|
|
36
|
+
|
|
37
|
+
$ bundle install
|
|
38
|
+
|
|
39
|
+
Or install it yourself as:
|
|
40
|
+
|
|
41
|
+
$ gem install jekyll_block_tag_plugin_template
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
## Usage
|
|
45
|
+
|
|
46
|
+
TODO: Write usage instructions here
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
## Development
|
|
50
|
+
|
|
51
|
+
After checking out the repo, run `bin/setup` to install dependencies.
|
|
52
|
+
|
|
53
|
+
You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
### Build and Install Locally
|
|
57
|
+
To build and install this gem onto your local machine, run:
|
|
58
|
+
```shell
|
|
59
|
+
$ rake install:local
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
The following also does the same thing:
|
|
63
|
+
```shell
|
|
64
|
+
$ bundle exec rake install
|
|
65
|
+
jekyll_block_tag_plugin_template 0.1.0 built to pkg/jekyll_block_tag_plugin_template-0.1.0.gem.
|
|
66
|
+
jekyll_block_tag_plugin_template (0.1.0) installed.
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Examine the newly built gem:
|
|
70
|
+
```shell
|
|
71
|
+
$ gem info jekyll_block_tag_plugin_template
|
|
72
|
+
|
|
73
|
+
*** LOCAL GEMS ***
|
|
74
|
+
|
|
75
|
+
jekyll_block_tag_plugin_template (0.1.0)
|
|
76
|
+
Author: Firstname Lastname
|
|
77
|
+
Homepage:
|
|
78
|
+
https://github.com/username/jekyll_block_tag_plugin_template
|
|
79
|
+
License: MIT
|
|
80
|
+
Installed at: /home/mslinn/.gems
|
|
81
|
+
|
|
82
|
+
Write a short summary, because RubyGems requires one.
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
### Build and Push to RubyGems
|
|
87
|
+
To release a new version,
|
|
88
|
+
1. Update the version number in `version.rb`.
|
|
89
|
+
2. Commit all changes to git; if you don't the next step might fail with an unexplainable error message.
|
|
90
|
+
3. Run the following:
|
|
91
|
+
```shell
|
|
92
|
+
$ bundle exec rake release
|
|
93
|
+
```
|
|
94
|
+
The above creates a git tag for the version, commits the created tag,
|
|
95
|
+
and pushes the new `.gem` file to [RubyGems.org](https://rubygems.org).
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
## Contributing
|
|
99
|
+
|
|
100
|
+
1. Fork the project
|
|
101
|
+
2. Create a descriptively named feature branch
|
|
102
|
+
3. Add your feature
|
|
103
|
+
4. Submit a pull request
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
## License
|
|
107
|
+
|
|
108
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/README.md
CHANGED
|
@@ -1,110 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
[](https://badge.fury.io/rb/jekyll_block_tag_plugin_template)
|
|
3
|
-
===========
|
|
1
|
+
# Jekyll Plugin Gem Customization
|
|
4
2
|
|
|
5
|
-
|
|
3
|
+
The [`bin/run_this_first`](bin/run_this_first) script customizes your new Jekyll plugin gem.
|
|
4
|
+
It does the following:
|
|
5
|
+
1) Renames the Jekyll template, including directories, files and contents.
|
|
6
|
+
2) Deletes itself, its tests and its test data.
|
|
7
|
+
3) Does not delete tests for the Jekyll plugin.
|
|
8
|
+
4) Deletes this README.md and renames [`PLUGIN_README.md`](PLUGIN_README.md) to `README.md`.
|
|
9
|
+
5) Initializes a new local git repository and optionally creates a public or private project on GitHub.
|
|
10
|
+
6) Provides scripts for building and testing your new Jekyll plugin gem locally.
|
|
11
|
+
7) Provides settings for Visual Studio Code, Rake, Rubocop and RSpec.
|
|
6
12
|
|
|
7
|
-
|
|
8
|
-
The plugin is packaged as a Ruby gem.
|
|
9
|
-
|
|
10
|
-
* A `new_tag_block_name` block tag that can do magic with its eyes closed.
|
|
11
|
-
```
|
|
12
|
-
{% new_tag_name [arguments] %}
|
|
13
|
-
Contents of new_tag_block_name
|
|
14
|
-
{% endnew_tag_name %}
|
|
15
|
-
```
|
|
16
|
-
* A `new_tag_name` tag that can turn on a dime and leave 15 cents change.
|
|
17
|
-
```
|
|
18
|
-
{% new_tag_name Contents of new_tag_name tag%}
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
## Additional Information
|
|
23
|
-
More information is available on Mike Slinn's web site about
|
|
24
|
-
[Jekyll plugins](https://www.mslinn.com/blog/index.html#Jekyll).
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
## Installation
|
|
28
|
-
|
|
29
|
-
Add this line to your application's Gemfile:
|
|
30
|
-
|
|
31
|
-
```ruby
|
|
32
|
-
group :jekyll_plugins do
|
|
33
|
-
gem 'jekyll_block_tag_plugin_template'
|
|
34
|
-
end
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
And then execute:
|
|
38
|
-
|
|
39
|
-
$ bundle install
|
|
40
|
-
|
|
41
|
-
Or install it yourself as:
|
|
42
|
-
|
|
43
|
-
$ gem install jekyll_block_tag_plugin_template
|
|
13
|
+
The customized gem is ready to be pushed to RubyGems.org, or any other Ruby gem repository, whenever your feel ready.
|
|
44
14
|
|
|
45
15
|
|
|
46
16
|
## Usage
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
## Development
|
|
52
|
-
|
|
53
|
-
After checking out the repo, run `bin/setup` to install dependencies.
|
|
54
|
-
|
|
55
|
-
You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
### Build and Install Locally
|
|
59
|
-
To build and install this gem onto your local machine, run:
|
|
60
|
-
```shell
|
|
61
|
-
$ rake install:local
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
The following also does the same thing:
|
|
65
|
-
```shell
|
|
66
|
-
$ bundle exec rake install
|
|
67
|
-
jekyll_block_tag_plugin_template 0.1.0 built to pkg/jekyll_block_tag_plugin_template-0.1.0.gem.
|
|
68
|
-
jekyll_block_tag_plugin_template (0.1.0) installed.
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
Examine the newly built gem:
|
|
72
|
-
```shell
|
|
73
|
-
$ gem info jekyll_block_tag_plugin_template
|
|
74
|
-
|
|
75
|
-
*** LOCAL GEMS ***
|
|
76
|
-
|
|
77
|
-
jekyll_block_tag_plugin_template (0.1.0)
|
|
78
|
-
Author: Firstname Lastname
|
|
79
|
-
Homepage:
|
|
80
|
-
https://github.com/username/jekyll_block_tag_plugin_template
|
|
81
|
-
License: MIT
|
|
82
|
-
Installed at: /home/mslinn/.gems
|
|
83
|
-
|
|
84
|
-
Write a short summary, because RubyGems requires one.
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
### Build and Push to RubyGems
|
|
89
|
-
To release a new version,
|
|
90
|
-
1. Update the version number in `version.rb`.
|
|
91
|
-
2. Commit all changes to git; if you don't the next step might fail with an unexplainable error message.
|
|
92
|
-
3. Run the following:
|
|
17
|
+
1) Clone this repo.
|
|
18
|
+
2) Run the `bin/run_this_first` script and answer the prompts.
|
|
19
|
+
3) Open the project in Visual Studio Code and explore the project:
|
|
93
20
|
```shell
|
|
94
|
-
$
|
|
21
|
+
$ code .
|
|
95
22
|
```
|
|
96
|
-
|
|
97
|
-
and pushes the new `.gem` file to [RubyGems.org](https://rubygems.org).
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
## Contributing
|
|
101
|
-
|
|
102
|
-
1. Fork the project
|
|
103
|
-
2. Create a descriptively named feature branch
|
|
104
|
-
3. Add your feature
|
|
105
|
-
4. Submit a pull request
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
## License
|
|
23
|
+
4) You can immediately use your new Jekyll plugin in a Jekyll website.
|
|
109
24
|
|
|
110
|
-
|
|
25
|
+
## For More Information
|
|
26
|
+
Please see the blog post about this {% href https://mslinn.com/blog/2022/03/28/jekyll-plugin-template-collection.html Jekyll plugin gem template %}.
|
|
@@ -38,6 +38,11 @@ Gem::Specification.new do |spec|
|
|
|
38
38
|
|
|
39
39
|
spec.add_dependency "jekyll", ">= 3.5.0"
|
|
40
40
|
spec.add_dependency "jekyll_plugin_logger"
|
|
41
|
+
spec.add_dependency "key-value-parser"
|
|
42
|
+
spec.add_dependency "git"
|
|
43
|
+
spec.add_dependency "os"
|
|
44
|
+
spec.add_dependency "shellwords"
|
|
45
|
+
spec.add_dependency "tty-prompt"
|
|
41
46
|
|
|
42
47
|
spec.add_development_dependency "debase"
|
|
43
48
|
# spec.add_development_dependency "rubocop-jekyll"
|
|
@@ -1,46 +1,55 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
require "jekyll_plugin_logger"
|
|
4
|
+
require "key_value_parser"
|
|
5
|
+
require "shellwords"
|
|
4
6
|
require_relative "jekyll_block_tag_plugin_template/version"
|
|
5
7
|
|
|
6
8
|
module JekyllPluginBlockTagTemplate
|
|
7
|
-
PLUGIN_NAME = "
|
|
9
|
+
PLUGIN_NAME = "block_tag_template"
|
|
8
10
|
end
|
|
9
11
|
|
|
10
12
|
# This is the module-level description.
|
|
11
13
|
#
|
|
12
14
|
# @example Heading for this example
|
|
13
15
|
# Describe what this example does
|
|
14
|
-
# {%
|
|
16
|
+
# {% block_tag_template "parameter" %}
|
|
15
17
|
# Hello, world!
|
|
16
|
-
# {%
|
|
18
|
+
# {% endblock_tag_template %}
|
|
17
19
|
#
|
|
18
20
|
# The Jekyll log level defaults to :info, which means all the Jekyll.logger statements below will not generate output.
|
|
19
21
|
# You can control the log level when you start Jekyll.
|
|
20
|
-
# To set the log level to :debug,
|
|
21
|
-
#
|
|
22
|
-
#
|
|
23
|
-
# To set the log level to :error, pass the --quiet option, like this:
|
|
24
|
-
# bundle exec jekyll build --quiet
|
|
25
|
-
# JEKYLL_ENV=development bundle exec jekyll serve --quiet
|
|
22
|
+
# To set the log level to :debug, write an entery into _config.yml, like this:
|
|
23
|
+
# plugin_loggers:
|
|
24
|
+
# MyBlock: debug
|
|
26
25
|
|
|
27
26
|
module Jekyll
|
|
28
27
|
# This class implements the Jekyll tag functionality
|
|
29
28
|
class MyBlock < Liquid::Block
|
|
30
|
-
# Constructor.
|
|
31
29
|
# @param tag_name [String] the name of the tag, which we already know.
|
|
32
|
-
# @param
|
|
33
|
-
# @param
|
|
30
|
+
# @param argument_string [String] the arguments from the tag, as a single string.
|
|
31
|
+
# @param _parse_context [Liquid::ParseContext] Liquid variables name/value pairs accessible in the calling page
|
|
32
|
+
# See https://www.rubydoc.info/gems/liquid/Liquid/ParseContext
|
|
34
33
|
# @return [void]
|
|
35
|
-
def initialize(tag_name,
|
|
34
|
+
def initialize(tag_name, argument_string, _parse_context)
|
|
36
35
|
super
|
|
37
36
|
@logger = PluginMetaLogger.instance.new_logger(self)
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
@
|
|
43
|
-
|
|
37
|
+
|
|
38
|
+
argv = Shellwords.split argument_string # Scans name/value arguments
|
|
39
|
+
params = KeyValueParser.new.parse(argv) # Extracts key/value pairs, default value for non-existant keys is nil
|
|
40
|
+
@param1 = params[:param1] # Example of obtaining the value of parameter param1
|
|
41
|
+
@param_x = params[:not_present] # The value of parameters that are present is nil, but displays as the empty string
|
|
42
|
+
|
|
43
|
+
@logger.debug do
|
|
44
|
+
<<~HEREDOC
|
|
45
|
+
tag_name = '#{tag_name}'
|
|
46
|
+
argument_string = '#{argument_string}'
|
|
47
|
+
@param1 = '#{@param1}'
|
|
48
|
+
@param_x = '#{@param_x}'
|
|
49
|
+
params =
|
|
50
|
+
#{params.map { |k, v| "#{k} = #{v}" }.join("\n ")}
|
|
51
|
+
HEREDOC
|
|
52
|
+
end
|
|
44
53
|
end
|
|
45
54
|
|
|
46
55
|
# Method prescribed by the Jekyll plugin lifecycle.
|
|
@@ -62,7 +71,7 @@ module Jekyll
|
|
|
62
71
|
# Compute the return value of this Jekyll tag
|
|
63
72
|
<<~HEREDOC
|
|
64
73
|
<p style="color: green; background-color: yellow; padding: 1em; border: solid thin grey;">
|
|
65
|
-
#{content}
|
|
74
|
+
#{content} #{@param1}
|
|
66
75
|
</p>
|
|
67
76
|
HEREDOC
|
|
68
77
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jekyll_block_tag_plugin_template
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Firstname Lastname
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-03-
|
|
11
|
+
date: 2022-03-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jekyll
|
|
@@ -38,6 +38,76 @@ dependencies:
|
|
|
38
38
|
- - ">="
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
40
|
version: '0'
|
|
41
|
+
- !ruby/object:Gem::Dependency
|
|
42
|
+
name: key-value-parser
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - ">="
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: '0'
|
|
48
|
+
type: :runtime
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - ">="
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '0'
|
|
55
|
+
- !ruby/object:Gem::Dependency
|
|
56
|
+
name: git
|
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
|
58
|
+
requirements:
|
|
59
|
+
- - ">="
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: '0'
|
|
62
|
+
type: :runtime
|
|
63
|
+
prerelease: false
|
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
+
requirements:
|
|
66
|
+
- - ">="
|
|
67
|
+
- !ruby/object:Gem::Version
|
|
68
|
+
version: '0'
|
|
69
|
+
- !ruby/object:Gem::Dependency
|
|
70
|
+
name: os
|
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
|
72
|
+
requirements:
|
|
73
|
+
- - ">="
|
|
74
|
+
- !ruby/object:Gem::Version
|
|
75
|
+
version: '0'
|
|
76
|
+
type: :runtime
|
|
77
|
+
prerelease: false
|
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
+
requirements:
|
|
80
|
+
- - ">="
|
|
81
|
+
- !ruby/object:Gem::Version
|
|
82
|
+
version: '0'
|
|
83
|
+
- !ruby/object:Gem::Dependency
|
|
84
|
+
name: shellwords
|
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
|
86
|
+
requirements:
|
|
87
|
+
- - ">="
|
|
88
|
+
- !ruby/object:Gem::Version
|
|
89
|
+
version: '0'
|
|
90
|
+
type: :runtime
|
|
91
|
+
prerelease: false
|
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
93
|
+
requirements:
|
|
94
|
+
- - ">="
|
|
95
|
+
- !ruby/object:Gem::Version
|
|
96
|
+
version: '0'
|
|
97
|
+
- !ruby/object:Gem::Dependency
|
|
98
|
+
name: tty-prompt
|
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
|
100
|
+
requirements:
|
|
101
|
+
- - ">="
|
|
102
|
+
- !ruby/object:Gem::Version
|
|
103
|
+
version: '0'
|
|
104
|
+
type: :runtime
|
|
105
|
+
prerelease: false
|
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
107
|
+
requirements:
|
|
108
|
+
- - ">="
|
|
109
|
+
- !ruby/object:Gem::Version
|
|
110
|
+
version: '0'
|
|
41
111
|
- !ruby/object:Gem::Dependency
|
|
42
112
|
name: debase
|
|
43
113
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -83,6 +153,7 @@ files:
|
|
|
83
153
|
- Gemfile
|
|
84
154
|
- Gemfile.lock
|
|
85
155
|
- LICENSE.txt
|
|
156
|
+
- PLUGIN_README.md
|
|
86
157
|
- README.md
|
|
87
158
|
- Rakefile
|
|
88
159
|
- jekyll_block_tag_plugin_template.gemspec
|