zine_brewer 1.6.1 → 1.7.0
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/lib/zine_brewer/templates/bookranking.rb +1 -1
- data/lib/zine_brewer/templates/casts.rb +1 -1
- data/lib/zine_brewer/templates/fig/module_fig_base.rb +5 -8
- data/lib/zine_brewer/templates/fig_a.rb +3 -4
- data/lib/zine_brewer/templates/fig_h.rb +3 -4
- data/lib/zine_brewer/templates/fig_n.rb +3 -4
- data/lib/zine_brewer/templates/fig_p.rb +1 -1
- data/lib/zine_brewer/templates/fig_z.rb +3 -4
- data/lib/zine_brewer/version.rb +1 -1
- metadata +7 -8
- data/lib/zine_brewer/templates/fig/module_fig_plus.rb +0 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee3ba68f6148bff1354914fd0f2b98c5e60b70341aae73cc113d4aed2b1aa5a4
|
4
|
+
data.tar.gz: 7d25319819a05e422cdb9504e173bdfa455b938c3015a3ea6c84c58b73bcf6c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26a77c54ce06edc09849fbca363d08eff80b428e811d9ec3e95b0866dd192453be50e9aca6a16d7a0a8ca27dcf48b8917482a2d50ad723d71404fab472848b27
|
7
|
+
data.tar.gz: 2c7f9293f59f9caa63243f042b9803d5518c1886de8ef043cf3f22b427712b812619ce31e44018d179b00441be1b2bf8c910ce83719cb59b761f6a03ea951845
|
@@ -13,7 +13,7 @@ class BookRanking < Mustache
|
|
13
13
|
@template = <<EOT
|
14
14
|
<div class="imgLRBlock cf">
|
15
15
|
<figure class="imgR">
|
16
|
-
<a href="{{url}}" target="_blank"><img alt="{{title}}" src="{{cover}}" style="border:1px solid #808080; width
|
16
|
+
<a href="{{url}}" target="_blank"><img alt="{{title}}" loading="lazy" src="{{cover}}" style="border:1px solid #808080;" width="100" title="{{title}}" /></a></figure>
|
17
17
|
<p markdown="1"> {{& description}}</p>
|
18
18
|
</div>
|
19
19
|
EOT
|
@@ -21,7 +21,7 @@ class Casts < Mustache
|
|
21
21
|
{{#title_sw}}<h4>{{title}}</h4>{{/title_sw}}
|
22
22
|
<div class="imgLRBlock cf">
|
23
23
|
<figure class="imgL">
|
24
|
-
<img src="{{fig_src}}" alt="{{name}}"
|
24
|
+
<img src="{{fig_src}}" loading="lazy" alt="{{name}}" height="135" width="110" />
|
25
25
|
</figure>
|
26
26
|
<p class="ovh" markdown="span" style="font-size:14px; line-height:1.7; margin-bottom:10px;"><strong style="font-size:15px;">{{name}}({{huri}})氏</strong><br />{{& caption}}</p>
|
27
27
|
</div>
|
@@ -10,8 +10,7 @@ module Fig_00
|
|
10
10
|
a_img[:fig_src] = make_src(h["src"])
|
11
11
|
a_img[:href] = h["href"]
|
12
12
|
a_img[:alt] = make_alt(h["alt"])
|
13
|
-
a_img[:
|
14
|
-
unless h["width"].nil? && h["height"].nil?
|
13
|
+
a_img[:img_size] = make_img_size(h["width"], h["height"])
|
15
14
|
result << a_img
|
16
15
|
end
|
17
16
|
result
|
@@ -54,13 +53,11 @@ module Fig_00
|
|
54
53
|
end
|
55
54
|
end
|
56
55
|
|
57
|
-
def
|
56
|
+
def make_img_size(l_width, l_height)
|
58
57
|
s = []
|
59
|
-
s << "
|
60
|
-
s << "
|
61
|
-
|
62
|
-
%Q{style="#{s.join(' ').strip}" }
|
63
|
-
end
|
58
|
+
s << %Q{width="#{l_width}"} unless l_width.nil?
|
59
|
+
s << %Q{height="#{l_height}"} unless l_height.nil?
|
60
|
+
s.join(' ').strip
|
64
61
|
end
|
65
62
|
|
66
63
|
end
|
@@ -3,11 +3,10 @@
|
|
3
3
|
require 'mustache'
|
4
4
|
|
5
5
|
require_relative 'fig/module_fig_base'
|
6
|
-
require_relative 'fig/module_fig_plus'
|
7
6
|
|
8
7
|
class Fig_A < Mustache
|
9
8
|
|
10
|
-
include Fig_00
|
9
|
+
include Fig_00
|
11
10
|
|
12
11
|
# <<Fig_A>>
|
13
12
|
# src: 画像ファイル名
|
@@ -18,9 +17,9 @@ class Fig_A < Mustache
|
|
18
17
|
@template = <<EOT
|
19
18
|
<figure>
|
20
19
|
{{#imgs_list}}
|
21
|
-
<a href="{{fig_src}}" target="_blank"><img src="{{fig_src}}" alt="{{alt}}" {{
|
20
|
+
<a href="{{fig_src}}" target="_blank"><img src="{{fig_src}}" loading="lazy" alt="{{alt}}"{{#width}} width="{{width}}"{{/width}}{{#height}} height="{{height}}"{{/height}} /></a>
|
22
21
|
{{/imgs_list}}
|
23
|
-
<figcaption markdown="span">{{#
|
22
|
+
<figcaption markdown="span">{{#caption}}{{& caption}}<br/>{{/caption}}[画像クリックで拡大表示]</figcaption>
|
24
23
|
</figure>
|
25
24
|
EOT
|
26
25
|
|
@@ -3,11 +3,10 @@
|
|
3
3
|
require 'mustache'
|
4
4
|
|
5
5
|
require_relative 'fig/module_fig_base'
|
6
|
-
require_relative 'fig/module_fig_plus'
|
7
6
|
|
8
7
|
class Fig_H < Mustache
|
9
8
|
|
10
|
-
include Fig_00
|
9
|
+
include Fig_00
|
11
10
|
|
12
11
|
# <<Fig_H>>
|
13
12
|
# src: 画像ファイル名
|
@@ -19,9 +18,9 @@ class Fig_H < Mustache
|
|
19
18
|
@template = <<EOT
|
20
19
|
<figure>
|
21
20
|
{{#imgs_list}}
|
22
|
-
|
21
|
+
<a href="{{href}}" target="_blank"><img src="{{fig_src}}" loading="lazy" alt="{{alt}}"{{#width}} width="{{width}}"{{/width}}{{#height}} height="{{height}}"{{/height}} /></a>
|
23
22
|
{{/imgs_list}}
|
24
|
-
{{#
|
23
|
+
{{#caption}}<figcaption markdown="span">{{& caption}}</figcaption>{{/caption}}
|
25
24
|
</figure>
|
26
25
|
EOT
|
27
26
|
|
@@ -3,11 +3,10 @@
|
|
3
3
|
require 'mustache'
|
4
4
|
|
5
5
|
require_relative 'fig/module_fig_base'
|
6
|
-
require_relative 'fig/module_fig_plus'
|
7
6
|
|
8
7
|
class Fig_N < Mustache
|
9
8
|
|
10
|
-
include Fig_00
|
9
|
+
include Fig_00
|
11
10
|
|
12
11
|
# <<Fig_N>>
|
13
12
|
# src: 画像ファイル名
|
@@ -19,9 +18,9 @@ class Fig_N < Mustache
|
|
19
18
|
@template = <<EOT
|
20
19
|
<figure>
|
21
20
|
{{#imgs_list}}
|
22
|
-
<img src="{{fig_src}}" alt="{{alt}}" {{
|
21
|
+
<img src="{{fig_src}}" loading="lazy" alt="{{alt}}"{{#width}} width="{{width}}"{{/width}}{{#height}} height="{{height}}"{{/height}} />
|
23
22
|
{{/imgs_list}}
|
24
|
-
{{#
|
23
|
+
{{#caption}}<figcaption markdown="span">{{caption}}</figcaption>{{/caption}}
|
25
24
|
</figure>
|
26
25
|
EOT
|
27
26
|
|
@@ -20,7 +20,7 @@ class Fig_P < Mustache
|
|
20
20
|
@template = <<EOT
|
21
21
|
<figure>
|
22
22
|
{{#imgs_list}}
|
23
|
-
<img src="{{fig_src}}" alt="{{name}}氏" {{
|
23
|
+
<img src="{{fig_src}}" loading="lazy" alt="{{name}}氏"{{#width}} width="{{width}}"{{/width}}{{#height}} height="{{height}}"{{/height}} />
|
24
24
|
{{/imgs_list}}
|
25
25
|
<div style="text-align:left; padding:0px 35px;">
|
26
26
|
<figcaption><strong>{{name}}({{huri}})氏</strong></figcaption>
|
@@ -3,11 +3,10 @@
|
|
3
3
|
require 'mustache'
|
4
4
|
|
5
5
|
require_relative 'fig/module_fig_base'
|
6
|
-
require_relative 'fig/module_fig_plus'
|
7
6
|
|
8
7
|
class Fig_Z < Mustache
|
9
8
|
|
10
|
-
include Fig_00
|
9
|
+
include Fig_00
|
11
10
|
|
12
11
|
# <<Fig_Z>>
|
13
12
|
# src: 画像ファイル名
|
@@ -18,9 +17,9 @@ class Fig_Z < Mustache
|
|
18
17
|
@template = <<EOT
|
19
18
|
<figure>
|
20
19
|
{{#imgs_list}}
|
21
|
-
<a href="{{fig_src}}" rel="lightbox" target="_blank"><img src="{{fig_src}}" alt="{{alt}}" {{
|
20
|
+
<a href="{{fig_src}}" rel="lightbox" target="_blank"><img src="{{fig_src}}" loading="lazy" alt="{{alt}}"{{#width}} width="{{width}}"{{/width}}{{#height}} height="{{height}}"{{/height}} /></a>
|
22
21
|
{{/imgs_list}}
|
23
|
-
<figcaption markdown="span">{{#
|
22
|
+
<figcaption markdown="span">{{#caption}}{{& caption}}<br/>{{/caption}}[画像クリックで拡大表示]</figcaption>
|
24
23
|
</figure>
|
25
24
|
EOT
|
26
25
|
|
data/lib/zine_brewer/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zine_brewer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Akinori Ichigo
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mustache
|
@@ -38,7 +38,7 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
-
description:
|
41
|
+
description:
|
42
42
|
email:
|
43
43
|
- akinori.ichigo@gmail.com
|
44
44
|
executables:
|
@@ -63,7 +63,6 @@ files:
|
|
63
63
|
- lib/zine_brewer/templates/bookranking.rb
|
64
64
|
- lib/zine_brewer/templates/casts.rb
|
65
65
|
- lib/zine_brewer/templates/fig/module_fig_base.rb
|
66
|
-
- lib/zine_brewer/templates/fig/module_fig_plus.rb
|
67
66
|
- lib/zine_brewer/templates/fig_a.rb
|
68
67
|
- lib/zine_brewer/templates/fig_h.rb
|
69
68
|
- lib/zine_brewer/templates/fig_n.rb
|
@@ -78,7 +77,7 @@ metadata:
|
|
78
77
|
homepage_uri: https://github.com/akinori-ichigo/zine_brewer
|
79
78
|
source_code_uri: https://github.com/akinori-ichigo/zine_brewer
|
80
79
|
changelog_uri: https://github.com/akinori-ichigo/zine_brewer
|
81
|
-
post_install_message:
|
80
|
+
post_install_message:
|
82
81
|
rdoc_options: []
|
83
82
|
require_paths:
|
84
83
|
- lib
|
@@ -93,8 +92,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
93
92
|
- !ruby/object:Gem::Version
|
94
93
|
version: '0'
|
95
94
|
requirements: []
|
96
|
-
rubygems_version: 3.
|
97
|
-
signing_key:
|
95
|
+
rubygems_version: 3.1.6
|
96
|
+
signing_key:
|
98
97
|
specification_version: 4
|
99
98
|
summary: Kramdown to HTML converter for Shoeisha Web Media
|
100
99
|
test_files: []
|