jekyll-mahjong 1.0.0 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jekyll-mahjong-generator.rb +7 -6
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ccbcdca26ed66d3b79deaf5f47849c036927dba4b1a31e8ffa4e425dbaff0be
|
4
|
+
data.tar.gz: fbe2b5bbeed15cfc73d766772993a203e719b1274b35e98721cd0ab384dc9089
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7aa867f94216c609dac21b80f6b0be3969aa0300a98ce24688929c3020418d4032cf67a4dad300f4703b4e5ad66fe42d0b55dee6b13955581ac482c0ec9ff99c
|
7
|
+
data.tar.gz: 563bb08957584e6194b7510adc198e6bfcd18e37de4151fe305138604b026d0a2d298b62dfc7b5f95b01acaa9dcb364bf4b945d214f68e42c1a833653d6b33c4
|
@@ -17,14 +17,15 @@ module JekyllMahjong
|
|
17
17
|
svg_files.each do |svg_file|
|
18
18
|
file_basename = File.basename(svg_file)
|
19
19
|
file_source_path = File.join(target_source_directory, file_basename)
|
20
|
-
|
20
|
+
|
21
|
+
# only copy and mark for including if the files don't exist yet.
|
22
|
+
if !File.exist?(file_source_path)
|
21
23
|
FileUtils.cp(svg_file, file_source_path)
|
24
|
+
# IMPORTANT: mark to be included in the built _site
|
25
|
+
# lifesaver: https://stackoverflow.com/a/19890768/21452015
|
26
|
+
# documentation: https://www.rubydoc.info/gems/jekyll/Jekyll%2FStaticFile:initialize
|
27
|
+
site.static_files << Jekyll::StaticFile.new(site, site.source, relative_path, file_basename)
|
22
28
|
end
|
23
|
-
|
24
|
-
# ... and mark them to be included in the built _site
|
25
|
-
# lifesaver: https://stackoverflow.com/a/19890768/21452015
|
26
|
-
# documentation: https://www.rubydoc.info/gems/jekyll/Jekyll%2FStaticFile:initialize
|
27
|
-
site.static_files << Jekyll::StaticFile.new(site, site.source, relative_path, file_basename)
|
28
29
|
end
|
29
30
|
end
|
30
31
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-mahjong
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Gao
|
@@ -12,7 +12,7 @@ date: 2023-08-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
13
13
|
description: '"jekyll-mahjong" is a Jekyll plugin that offers a "mahjong" tag that
|
14
14
|
will translate the text notation like "123p444s" into vector graphics of mahjong
|
15
|
-
tiles.'
|
15
|
+
tiles. For detailed documentation, please see here: https://peterish.com/riichi-docs/jekyll-mahjong-plugin/.'
|
16
16
|
email: peter1357908@hotmail.com
|
17
17
|
executables: []
|
18
18
|
extensions: []
|
@@ -94,7 +94,7 @@ files:
|
|
94
94
|
- assets/tiles/c9s.svg
|
95
95
|
- lib/jekyll-mahjong-generator.rb
|
96
96
|
- lib/jekyll-mahjong.rb
|
97
|
-
homepage: https://peterish.com/
|
97
|
+
homepage: https://peterish.com/riichi-docs/jekyll-mahjong-plugin/
|
98
98
|
licenses:
|
99
99
|
- MIT
|
100
100
|
metadata:
|