rggen-markdown 0.19.0 → 0.20.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: 74f441746a3221e735ff47c68e7534b4b511c392464aaaaf91d0da828c6b3d6c
4
- data.tar.gz: b27e26a57feb347c43a7f569ffed3a6cd455eca9b4382d3a133c702ff0b0cf39
3
+ metadata.gz: b0e5ece9dd3d244671164701253d739352b8a73a5d3536f4e2f96e9754cef2b1
4
+ data.tar.gz: 21527d0a2bcb0246ba75dbcc73e5011edbfd7db9918847252c30f36018cde9c9
5
5
  SHA512:
6
- metadata.gz: d355b73c415baf3d9903ec3770b696de7598b85be1231ed80e718f9f6c7b863541835057a9363f97e5e4b7966f76d2de27592188b86534f47a7997380259ef23
7
- data.tar.gz: 19131d462371e4b1f5590052afaf32fcc90ea7f029117553ead2e0198fbda5a55bf54d86836103cc4ccd19fc8103daf2f90cf2aa33bd242e6e41ccc1720a0840
6
+ metadata.gz: 5873b9da35b8827ac46945bd7220fb9a5a8fcddc9d93347ef65a8436d078a69eec35ca3ea64eefc8907472fc7729c8e3b9c6abebec7253ee0bfd36f55e43c0e1
7
+ data.tar.gz: 77b2792a66ea7636ae2b02144dfd4d9e213565972d9e794bf9cbf0728cf6f6359af08acb1d1b1b332a0dff3c24696107399c7d19b6fdd52b95b6b32014e3666f
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2019-2020 Taichi Ishitani
3
+ Copyright (c) 2019-2021 Taichi Ishitani
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -34,7 +34,7 @@ Feedbacks, bug reports, questions and etc. are wellcome! You can post them by us
34
34
 
35
35
  ## Copyright & License
36
36
 
37
- Copyright © 2019-2020 Taichi Ishitani. RgGen::Markdown is licensed under the [MIT License](https://opensource.org/licenses/MIT), see [LICENSE](LICENSE) for futher details.
37
+ Copyright © 2019-2021 Taichi Ishitani. RgGen::Markdown is licensed under the [MIT License](https://opensource.org/licenses/MIT), see [LICENSE](LICENSE) for futher details.
38
38
 
39
39
  ## Code of Conduct
40
40
 
@@ -10,31 +10,18 @@ require_relative 'markdown/factories'
10
10
 
11
11
  module RgGen
12
12
  module Markdown
13
- PLUGIN_NAME = :'rggen-markdown'
13
+ extend Core::Plugin
14
14
 
15
- FEATURES = [
16
- 'markdown/register/markdown',
17
- 'markdown/register_block/markdown'
18
- ].freeze
19
-
20
- def self.register_component(builder)
21
- builder.output_component_registry(:markdown) do
22
- register_component [
23
- :root, :register_block, :register_file, :register, :bit_field
24
- ] do |category|
25
- component Component, ComponentFactory
26
- feature Feature, FeatureFactory if category != :root
27
- end
15
+ setup_plugin :'rggen-markdown' do |plugin|
16
+ plugin.register_component :markdown do
17
+ component Component, ComponentFactory
18
+ feature Feature, FeatureFactory
28
19
  end
29
- end
30
-
31
- def self.load_features
32
- FEATURES.each { |feature| require_relative feature }
33
- end
34
20
 
35
- def self.default_setup(builder)
36
- register_component(builder)
37
- load_features
21
+ plugin.files [
22
+ 'markdown/register/markdown',
23
+ 'markdown/register_block/markdown'
24
+ ]
38
25
  end
39
26
  end
40
27
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  require 'rggen/markdown'
4
4
 
5
- RgGen.setup RgGen::Markdown do |builder|
5
+ RgGen.register_plugin RgGen::Markdown do |builder|
6
6
  builder.enable :register_block, [:markdown]
7
7
  builder.enable :register, [:markdown]
8
8
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RgGen
4
4
  module Markdown
5
- VERSION = '0.19.0'
5
+ VERSION = '0.20.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.19.0
4
+ version: 0.20.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: 2020-08-17 00:00:00.000000000 Z
11
+ date: 2021-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -71,8 +71,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  - !ruby/object:Gem::Version
72
72
  version: '0'
73
73
  requirements: []
74
- rubygems_version: 3.1.2
74
+ rubygems_version: 3.2.3
75
75
  signing_key:
76
76
  specification_version: 4
77
- summary: rggen-markdown-0.19.0
77
+ summary: rggen-markdown-0.20.0
78
78
  test_files: []