rggen-markdown 0.20.0 → 0.21.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: b0e5ece9dd3d244671164701253d739352b8a73a5d3536f4e2f96e9754cef2b1
4
- data.tar.gz: 21527d0a2bcb0246ba75dbcc73e5011edbfd7db9918847252c30f36018cde9c9
3
+ metadata.gz: 0e347a1415bad51303960a8097d5797a5e0f2ff5c05b88624d4dd633e16eeedf
4
+ data.tar.gz: fdb87961c636225cb342f2f5fbd1d7ca55e39d0ff3cff28e1aabf75dec4b05fc
5
5
  SHA512:
6
- metadata.gz: 5873b9da35b8827ac46945bd7220fb9a5a8fcddc9d93347ef65a8436d078a69eec35ca3ea64eefc8907472fc7729c8e3b9c6abebec7253ee0bfd36f55e43c0e1
7
- data.tar.gz: 77b2792a66ea7636ae2b02144dfd4d9e213565972d9e794bf9cbf0728cf6f6359af08acb1d1b1b332a0dff3c24696107399c7d19b6fdd52b95b6b32014e3666f
6
+ metadata.gz: 5bc02eae4f5bfe7d6aec45a9329444ddf3c75e60c0ae993346186679e3a326a4c8d902373d8cc2368fbec8d0acaf80dbe6254ad49c0a11398dd5c90fe2e78be8
7
+ data.tar.gz: e42872b5e274015b2311ee35efa7cb73bfe1d26b4491b7dc81a9949310890be5666c7d1d3ac8cbe021bff0dad443f8d79a48901250549b01462e570c3f8a525a
@@ -2,7 +2,7 @@
2
2
 
3
3
  module RgGen
4
4
  module Markdown
5
- class ComponentFactory < Core::OutputBase::ComponentFactory
5
+ class ComponentFactory < Core::OutputBase::DocumentComponentFactory
6
6
  end
7
7
 
8
8
  class FeatureFactory < Core::OutputBase::FeatureFactory
@@ -16,9 +16,7 @@ RgGen.define_simple_feature(:register, :markdown) do
16
16
  end
17
17
 
18
18
  def register_printables
19
- register.printables
20
- .reject { |key, _| [:name, :layer_name].include?(key) }
21
- .compact
19
+ register.printables.except(:name, :layer_name).compact
22
20
  end
23
21
 
24
22
  def bit_field_table
@@ -21,9 +21,7 @@ RgGen.define_simple_feature(:register_block, :markdown) do
21
21
  end
22
22
 
23
23
  def register_block_printables
24
- register_block.printables
25
- .reject { |key, _| key == :name }
26
- .compact
24
+ register_block.printables.except(:name).compact
27
25
  end
28
26
 
29
27
  def register_table
@@ -18,11 +18,9 @@ module RgGen
18
18
  private
19
19
 
20
20
  def build_md_lines(labels, table)
21
- lines = []
22
- build_md_line(lines, labels)
23
- build_md_line(lines, alignment_marks(labels.size))
24
- table.each { |row| build_md_line(lines, row) }
25
- lines
21
+ [
22
+ labels, alignment_marks(labels.size), *table
23
+ ].each_with_object([]) { |row, lines| build_md_line(lines, row) }
26
24
  end
27
25
 
28
26
  def build_md_line(lines, row)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RgGen
4
4
  module Markdown
5
- VERSION = '0.20.0'
5
+ VERSION = '0.21.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rggen-markdown
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.0
4
+ version: 0.21.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taichi Ishitani
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-20 00:00:00.000000000 Z
11
+ date: 2021-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -64,7 +64,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
64
64
  requirements:
65
65
  - - ">="
66
66
  - !ruby/object:Gem::Version
67
- version: '2.4'
67
+ version: '2.5'
68
68
  required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  requirements:
70
70
  - - ">="
@@ -74,5 +74,5 @@ requirements: []
74
74
  rubygems_version: 3.2.3
75
75
  signing_key:
76
76
  specification_version: 4
77
- summary: rggen-markdown-0.20.0
77
+ summary: rggen-markdown-0.21.0
78
78
  test_files: []