zine_brewer 1.6.1 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a26af0a7c83b0187a3040aaea6f0d618ade1b3fa92133d69d339cbc23eaece03
4
- data.tar.gz: 79ad61d9c4a35dd45f3596ff4f1119f3b5d89e9f6ca3b744278570757d78fbbf
3
+ metadata.gz: ee3ba68f6148bff1354914fd0f2b98c5e60b70341aae73cc113d4aed2b1aa5a4
4
+ data.tar.gz: 7d25319819a05e422cdb9504e173bdfa455b938c3015a3ea6c84c58b73bcf6c3
5
5
  SHA512:
6
- metadata.gz: 8da5bb7432a97a7c3fdf31334b49f85ac724e4eeaa4a1e0f67e02a2b233d1848632752ce95fd3b79651cb2ef2a9195f04bd7ce360002c2b33cfe8bf3d614fab5
7
- data.tar.gz: 27003db9a21246ca7771f8682c3c34a0f37282cd8bced352846824494b23535562217845faac1b6b2c4bdbe92589b8625a5e2a75b9312eb9f6df7f8f511bbdd2
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:100px;" title="{{title}}" /></a></figure>
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}}" style="height:135px;" />
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[:img_style] = make_img_style(h["width"], h["height"]) \
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 make_img_style(l_width, l_height)
56
+ def make_img_size(l_width, l_height)
58
57
  s = []
59
- s << "width:#{l_width};" unless l_width.nil?
60
- s << "height:#{l_height};" unless l_height.nil?
61
- unless s.all?{|v| v.nil? }
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, Fig_01
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}}" {{& img_style}}/></a>
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">{{#figcaption_sw}}{{& caption}}<br/>{{/figcaption_sw}}[画像クリックで拡大表示]</figcaption>
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, Fig_01
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
- {{#href}}<a href="{{href}}" target="_blank">{{/href}}<img src="{{fig_src}}" alt="{{alt}}" {{& img_style}}/>{{#href}}</a>{{/href}}
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
- {{#figcaption_sw}}<figcaption markdown="span">{{& caption}}</figcaption>{{/figcaption_sw}}
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, Fig_01
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}}" {{& img_style}}/>
21
+ <img src="{{fig_src}}" loading="lazy" alt="{{alt}}"{{#width}} width="{{width}}"{{/width}}{{#height}} height="{{height}}"{{/height}} />
23
22
  {{/imgs_list}}
24
- {{#figcaption_sw}}<figcaption markdown="span">{{caption}}{{& cited_from}}</figcaption>{{/figcaption_sw}}
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}}氏" {{& img_style}} />
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, Fig_01
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}}" {{& img_style}}/></a>
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">{{#figcaption_sw}}{{& caption}}<br/>{{/figcaption_sw}}[画像クリックで拡大表示]</figcaption>
22
+ <figcaption markdown="span">{{#caption}}{{& caption}}<br/>{{/caption}}[画像クリックで拡大表示]</figcaption>
24
23
  </figure>
25
24
  EOT
26
25
 
@@ -1,3 +1,3 @@
1
1
  module ZineBrewer
2
- VERSION = "1.6.1"
2
+ VERSION = "1.7.0"
3
3
  end
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.6.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-03-18 00:00:00.000000000 Z
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.2.14
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: []
@@ -1,15 +0,0 @@
1
- # coding: utf-8
2
-
3
- module Fig_01
4
-
5
- def open_which
6
- defined?(href)
7
- end
8
-
9
- def figcaption_sw
10
- defined?(cap)
11
- end
12
-
13
- end
14
-
15
-