simple-hd-graph 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.editorconfig +2 -0
- data/.github/workflows/test.yml +31 -0
- data/.rubocop.yml +5 -0
- data/.standard.yml +3 -0
- data/CHANGELOG.md +7 -0
- data/Gemfile +13 -0
- data/Rakefile +3 -1
- data/exe/simple-hd-graph +2 -2
- data/lib/simple-hd-graph/command.rb +7 -8
- data/lib/simple-hd-graph/context.rb +4 -5
- data/lib/simple-hd-graph/node.rb +21 -22
- data/lib/simple-hd-graph/parser.rb +11 -13
- data/lib/simple-hd-graph/reader.rb +1 -2
- data/lib/simple-hd-graph/renderer/plantuml/context.rb +26 -17
- data/lib/simple-hd-graph/renderer/plantuml/resource.rb +5 -5
- data/lib/simple-hd-graph/renderer/plantuml.rb +1 -1
- data/lib/simple-hd-graph/resource.rb +5 -5
- data/lib/simple-hd-graph/version.rb +1 -1
- data/lib/simple-hd-graph.rb +2 -2
- data/simple-hd-graph.gemspec +11 -18
- metadata +12 -93
- data/.travis.yml +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 327a5fb9abcd99a5eec214e4245c5974697c6b0af9ee95669392d8a50e3e55a0
|
4
|
+
data.tar.gz: 161c035ebfb3e1ef41235cebc64ecbfb670f4e2695313e1ba50a928517bb0d49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1820d9f70699005727cd57ee996281845b64e447338606985a79dfe3bcafd095c82d3e79fa4cf52041dba487a919ade3cc4bfd024366340646a6badffa37e349
|
7
|
+
data.tar.gz: 818175be429154357dd08830d7da6a0cca06daddbc44afe14b7b8cb7c01c8b39b0d3e80a7eb2c4222978c1f50a5820fe1b203b0932a5767e3019c9275c25e8a6
|
data/.editorconfig
CHANGED
@@ -0,0 +1,31 @@
|
|
1
|
+
name: test
|
2
|
+
|
3
|
+
on:
|
4
|
+
workflow_dispatch:
|
5
|
+
schedule:
|
6
|
+
- cron: '3 0 2 * *'
|
7
|
+
push:
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
test:
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
name: Ruby ${{ matrix.ruby }}
|
13
|
+
strategy:
|
14
|
+
matrix:
|
15
|
+
ruby:
|
16
|
+
- '2.7'
|
17
|
+
- '3.0'
|
18
|
+
- '3.1'
|
19
|
+
- '3.2'
|
20
|
+
- '3.3'
|
21
|
+
steps:
|
22
|
+
- uses: actions/checkout@v4
|
23
|
+
- name: Set up RUby
|
24
|
+
uses: ruby/setup-ruby@v1
|
25
|
+
with:
|
26
|
+
ruby-version: ${{ matrix.ruby }}
|
27
|
+
bundler-cache: true
|
28
|
+
- name: lint
|
29
|
+
run: bundle exec rake standard
|
30
|
+
- name: test
|
31
|
+
run: bundle exec rake spec
|
data/.rubocop.yml
ADDED
data/.standard.yml
ADDED
data/CHANGELOG.md
ADDED
data/Gemfile
CHANGED
@@ -2,3 +2,16 @@ source "https://rubygems.org"
|
|
2
2
|
|
3
3
|
# Specify your gem's dependencies in graph.gemspec
|
4
4
|
gemspec
|
5
|
+
|
6
|
+
gem "bundler", "~> 2.0"
|
7
|
+
gem "rake", "~> 13.0"
|
8
|
+
|
9
|
+
gem "standard", "~> 1.37"
|
10
|
+
gem "rubocop", "~> 1.62"
|
11
|
+
gem "yard"
|
12
|
+
|
13
|
+
group :test do
|
14
|
+
gem "minitest", "~> 5.0"
|
15
|
+
gem "minitest-reporters", "~> 1"
|
16
|
+
gem "minitest-power_assert"
|
17
|
+
end
|
data/Rakefile
CHANGED
@@ -8,9 +8,11 @@ Rake::TestTask.new(:spec) do |t|
|
|
8
8
|
t.test_files = FileList["spec/**/*_spec.rb"]
|
9
9
|
end
|
10
10
|
|
11
|
+
require "standard/rake"
|
12
|
+
|
11
13
|
YARD::Rake::YardocTask.new do |t|
|
12
14
|
t.files = ["lib/**/*.rb"]
|
13
15
|
t.options = ["--any", "--extra", "--opts"]
|
14
16
|
end
|
15
17
|
|
16
|
-
task :
|
18
|
+
task default: :spec
|
data/exe/simple-hd-graph
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
#! /usr/bin/env ruby
|
2
2
|
|
3
|
-
$LOAD_PATH.unshift File.absolute_path(File.join(__dir__,
|
3
|
+
$LOAD_PATH.unshift File.absolute_path(File.join(__dir__, "../lib"))
|
4
4
|
|
5
|
-
require
|
5
|
+
require "simple-hd-graph"
|
6
6
|
|
7
7
|
Version = SimpleHdGraph::VERSION
|
8
8
|
cmd = SimpleHdGraph::Command.new
|
@@ -1,9 +1,8 @@
|
|
1
|
-
require
|
1
|
+
require "optparse"
|
2
2
|
|
3
3
|
module SimpleHdGraph
|
4
|
-
class Error < StandardError; end
|
5
4
|
class FileNotExist < Error; end
|
6
|
-
class DirectoryNotExist < Error; end
|
5
|
+
class DirectoryNotExist < Error; end # rubocop:disable Layout/EmptyLineBetweenDefs
|
7
6
|
|
8
7
|
class Command
|
9
8
|
#
|
@@ -39,7 +38,7 @@ module SimpleHdGraph
|
|
39
38
|
# @return [String]
|
40
39
|
#
|
41
40
|
def stream
|
42
|
-
if
|
41
|
+
if @dir
|
43
42
|
reader.read_dir(@dir)
|
44
43
|
else
|
45
44
|
reader.read_file(@file)
|
@@ -58,25 +57,25 @@ module SimpleHdGraph
|
|
58
57
|
# :reek:NestedIterators, :reek:DuplicateMethodCall
|
59
58
|
def opts
|
60
59
|
OptionParser.new do |opt|
|
61
|
-
opt.on(
|
60
|
+
opt.on("-d DIR", "--dir", "dirname") { |value|
|
62
61
|
if File.exist?(value) && File.directory?(value)
|
63
62
|
@dir = value
|
64
63
|
else
|
65
64
|
raise DirectoryNotExist, value
|
66
65
|
end
|
67
66
|
}
|
68
|
-
opt.on(
|
67
|
+
opt.on("-f FILE", "--file", "filename") { |value|
|
69
68
|
if File.exist?(value) && File.file?(value)
|
70
69
|
@file = value
|
71
70
|
else
|
72
71
|
raise FileNotExist, value
|
73
72
|
end
|
74
73
|
}
|
75
|
-
opt.on(
|
74
|
+
opt.on("-r RENDERER", "--renderer", "renderer") { |value|
|
76
75
|
begin
|
77
76
|
@renderer = SimpleHdGraph::Renderer.method(value)
|
78
77
|
rescue NameError
|
79
|
-
|
78
|
+
warn "[Warining] renderer `#{value}` not found. falling back to :plantuml"
|
80
79
|
end
|
81
80
|
}
|
82
81
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require
|
1
|
+
require "simple-hd-graph/node"
|
2
2
|
|
3
3
|
module SimpleHdGraph
|
4
4
|
class ContextNode < Node
|
@@ -39,15 +39,14 @@ module SimpleHdGraph
|
|
39
39
|
@depends = depends
|
40
40
|
end
|
41
41
|
|
42
|
-
# :reek:NestedIterators, :reek:TooManyStatements
|
43
42
|
def refill_relation
|
44
|
-
@resource
|
43
|
+
@resource ||= []
|
45
44
|
@relations ||= []
|
46
45
|
@resources.each { |resource|
|
47
46
|
dependencies = resource.has
|
48
|
-
if dependencies
|
47
|
+
if dependencies.respond_to? :each
|
49
48
|
dependencies.each { |dependency|
|
50
|
-
@relations << {
|
49
|
+
@relations << {resource.id => @resource_dict[dependency]}
|
51
50
|
}
|
52
51
|
end
|
53
52
|
}
|
data/lib/simple-hd-graph/node.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
require
|
1
|
+
require "dry/inflector"
|
2
2
|
|
3
3
|
module SimpleHdGraph
|
4
4
|
class Node
|
5
|
-
class RequiredFieldNotFilled <
|
5
|
+
class RequiredFieldNotFilled < Error; end
|
6
6
|
|
7
7
|
class << self
|
8
8
|
#
|
@@ -13,7 +13,7 @@ module SimpleHdGraph
|
|
13
13
|
end
|
14
14
|
end
|
15
15
|
|
16
|
-
CAMELIZE_SEPARATOR =
|
16
|
+
CAMELIZE_SEPARATOR = /[ ,.、。]/
|
17
17
|
|
18
18
|
def initialize
|
19
19
|
@inflector = Dry::Inflector.new
|
@@ -22,27 +22,26 @@ module SimpleHdGraph
|
|
22
22
|
#
|
23
23
|
# @param struct [Hash]
|
24
24
|
#
|
25
|
-
# :reek:TooManyStatements
|
26
25
|
def load(struct)
|
27
26
|
klass = self.class
|
28
27
|
|
29
|
-
required_fields =
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
28
|
+
required_fields =
|
29
|
+
if klass.instance_variables.grep(/@required_fields/).size > 0
|
30
|
+
klass.instance_variable_get(:@required_fields)
|
31
|
+
end
|
32
|
+
|
33
|
+
filled =
|
34
|
+
if required_fields.is_a? Array
|
35
|
+
required_fields.all? { |field|
|
36
|
+
if struct.has_key? field
|
37
|
+
true
|
38
|
+
else
|
39
|
+
raise RequiredFieldNotFilled, field
|
40
|
+
end
|
41
|
+
}
|
42
|
+
else
|
43
|
+
true
|
44
|
+
end
|
46
45
|
|
47
46
|
@content = struct if filled
|
48
47
|
end
|
@@ -52,7 +51,7 @@ module SimpleHdGraph
|
|
52
51
|
# @return [String]
|
53
52
|
#
|
54
53
|
def camelize(str)
|
55
|
-
@inflector.camelize(@inflector.underscore(str.gsub(
|
54
|
+
@inflector.camelize(@inflector.underscore(str.gsub(CAMELIZE_SEPARATOR, "_")))
|
56
55
|
end
|
57
56
|
end
|
58
57
|
end
|
@@ -1,34 +1,32 @@
|
|
1
|
-
require
|
1
|
+
require "yaml"
|
2
2
|
|
3
3
|
module SimpleHdGraph
|
4
4
|
#
|
5
5
|
# parse for YAML string
|
6
6
|
#
|
7
|
-
# :reek:InstanceVaariableAssumption
|
8
7
|
class Parser
|
9
|
-
KEYWORD_ID
|
10
|
-
KEYWORD_RESOURCES
|
11
|
-
KEYWORD_DEPENDS
|
8
|
+
KEYWORD_ID = "id".freeze
|
9
|
+
KEYWORD_RESOURCES = "resources".freeze
|
10
|
+
KEYWORD_DEPENDS = "depends".freeze
|
12
11
|
|
13
12
|
#
|
14
13
|
# @param document [String]
|
15
14
|
#
|
16
|
-
# :reek:TooManyStatements
|
17
15
|
def parse(document)
|
18
16
|
contexts = []
|
19
17
|
|
20
18
|
YAML.load_stream(document) do |node|
|
21
19
|
next unless node
|
22
20
|
|
23
|
-
context
|
21
|
+
context = nil
|
24
22
|
resources = nil
|
25
|
-
depends
|
23
|
+
depends = nil
|
26
24
|
|
27
25
|
node.each_pair { |key, value|
|
28
26
|
case key
|
29
27
|
when KEYWORD_ID
|
30
28
|
context = ContextNode.new
|
31
|
-
context.load({
|
29
|
+
context.load({id: value})
|
32
30
|
when KEYWORD_DEPENDS
|
33
31
|
depends = value
|
34
32
|
when KEYWORD_RESOURCES
|
@@ -62,7 +60,7 @@ module SimpleHdGraph
|
|
62
60
|
def pack_resources_into_context(resources, context)
|
63
61
|
resources.each { |key, resource|
|
64
62
|
rn = ResourceNode.new
|
65
|
-
rn.load_with_context({
|
63
|
+
rn.load_with_context({id: context.id}, {key => resource})
|
66
64
|
context << rn
|
67
65
|
}
|
68
66
|
end
|
@@ -71,7 +69,7 @@ module SimpleHdGraph
|
|
71
69
|
# @param contexts [Array]
|
72
70
|
#
|
73
71
|
def refill_relation(contexts)
|
74
|
-
contexts.each {|context|
|
72
|
+
contexts.each { |context|
|
75
73
|
context.refill_relation
|
76
74
|
}
|
77
75
|
end
|
@@ -83,9 +81,9 @@ module SimpleHdGraph
|
|
83
81
|
contexts.map { |context|
|
84
82
|
if context.depends
|
85
83
|
regularized = context.depends.map { |dependee|
|
86
|
-
d = contexts.
|
84
|
+
d = contexts.find { |c|
|
87
85
|
c.alias == dependee
|
88
|
-
}
|
86
|
+
}
|
89
87
|
|
90
88
|
{
|
91
89
|
context.id => d ? d.id : dependee
|
@@ -4,7 +4,6 @@ module SimpleHdGraph
|
|
4
4
|
# @param file [String]
|
5
5
|
# @return [String]
|
6
6
|
#
|
7
|
-
# :reek:UtilityFunction
|
8
7
|
def read_file(file)
|
9
8
|
File.read(file)
|
10
9
|
end
|
@@ -14,7 +13,7 @@ module SimpleHdGraph
|
|
14
13
|
# @return [String]
|
15
14
|
#
|
16
15
|
def read_dir(dir)
|
17
|
-
Dir.glob("#{dir}/**/*.{yml,yaml}").map {|file|
|
16
|
+
Dir.glob("#{dir}/**/*.{yml,yaml}").map { |file|
|
18
17
|
read_file(file)
|
19
18
|
}.join("---\n")
|
20
19
|
end
|
@@ -9,24 +9,33 @@ module SimpleHdGraph
|
|
9
9
|
#
|
10
10
|
# @param node [ContextNode]
|
11
11
|
#
|
12
|
-
# :reek:FeatureEnvy, :reek:DuplicateMethodCall
|
13
12
|
def render(node)
|
14
|
-
resources =
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
13
|
+
resources =
|
14
|
+
if node.resources.size > 0
|
15
|
+
node.resources.map { |resource|
|
16
|
+
indent_resource(resource)
|
17
|
+
}.join
|
18
|
+
end
|
19
|
+
relations =
|
20
|
+
if node.relations.size > 0
|
21
|
+
node.relations.map { |relation|
|
22
|
+
render_relation(relation)
|
23
|
+
}.join("\n")
|
24
|
+
end
|
25
|
+
depends =
|
26
|
+
if node.depends.size > 0
|
27
|
+
node.depends.map { |depending|
|
28
|
+
render_depends(depending)
|
29
|
+
}.join("\n")
|
30
|
+
end
|
31
|
+
|
32
|
+
<<~EOD.gsub(/^$\n/, "")
|
33
|
+
rectangle "#{node.alias}" as #{node.id} {
|
34
|
+
#{resources}
|
35
|
+
#{relations}
|
36
|
+
}
|
37
|
+
#{depends}
|
38
|
+
EOD
|
30
39
|
end
|
31
40
|
|
32
41
|
#
|
@@ -10,11 +10,11 @@ module SimpleHdGraph
|
|
10
10
|
content = node.content.map { |key, value|
|
11
11
|
" #{key}: #{value}"
|
12
12
|
}.join("\n")
|
13
|
-
|
14
|
-
object
|
15
|
-
#{content}
|
16
|
-
}
|
17
|
-
EOD
|
13
|
+
<<~EOD
|
14
|
+
object "#{node.alias}" as #{node.id} {
|
15
|
+
#{content}
|
16
|
+
}
|
17
|
+
EOD
|
18
18
|
end
|
19
19
|
end
|
20
20
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require
|
1
|
+
require "simple-hd-graph/node"
|
2
2
|
|
3
3
|
module SimpleHdGraph
|
4
4
|
class ResourceNode < Node
|
@@ -24,7 +24,7 @@ module SimpleHdGraph
|
|
24
24
|
def id
|
25
25
|
id = camelize(context)
|
26
26
|
id[0] = id[0].downcase
|
27
|
-
[id, camelize(self.alias)].join(
|
27
|
+
[id, camelize(self.alias)].join("").freeze
|
28
28
|
end
|
29
29
|
|
30
30
|
#
|
@@ -38,8 +38,8 @@ module SimpleHdGraph
|
|
38
38
|
# @return [Hash]
|
39
39
|
#
|
40
40
|
def content
|
41
|
-
@content.values.first.select { |key, value|
|
42
|
-
key !=
|
41
|
+
@content.values.first.select { |key, value| # rubocop:disable Style/HashExcept
|
42
|
+
key != "has"
|
43
43
|
}
|
44
44
|
end
|
45
45
|
|
@@ -47,7 +47,7 @@ module SimpleHdGraph
|
|
47
47
|
# @return [Array]
|
48
48
|
#
|
49
49
|
def has
|
50
|
-
@content.values.first[
|
50
|
+
@content.values.first["has"]
|
51
51
|
end
|
52
52
|
end
|
53
53
|
end
|
data/lib/simple-hd-graph.rb
CHANGED
data/simple-hd-graph.gemspec
CHANGED
@@ -3,36 +3,29 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
3
3
|
require "simple-hd-graph/version"
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
|
-
spec.name
|
7
|
-
spec.version
|
8
|
-
spec.authors
|
9
|
-
spec.email
|
6
|
+
spec.name = "simple-hd-graph"
|
7
|
+
spec.version = SimpleHdGraph::VERSION
|
8
|
+
spec.authors = ["wtnabe"]
|
9
|
+
spec.email = ["18510+wtnabe@users.noreply.github.com"]
|
10
10
|
|
11
|
-
spec.summary
|
12
|
-
spec.description
|
13
|
-
spec.homepage
|
11
|
+
spec.summary = "single-tier hierary and simplex direction graph DSL"
|
12
|
+
spec.description = "parse single-tier hierarchy and simplex direction graph from YAML, and generate PlantUML with rectangle and object"
|
13
|
+
spec.homepage = "https://github.com/wtnabe/simple-hd-graph"
|
14
14
|
|
15
15
|
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
16
16
|
|
17
17
|
spec.metadata["homepage_uri"] = spec.homepage
|
18
18
|
spec.metadata["source_code_uri"] = spec.homepage
|
19
|
-
spec.metadata["changelog_uri"] = spec.metadata["source_code_uri"] + "/blob/
|
19
|
+
spec.metadata["changelog_uri"] = spec.metadata["source_code_uri"] + "/blob/main/CHANGELOG.md"
|
20
20
|
|
21
21
|
# Specify which files should be added to the gem when it is released.
|
22
22
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
23
|
-
spec.files
|
23
|
+
spec.files = Dir.chdir(File.expand_path("..", __FILE__)) do
|
24
24
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
25
25
|
end
|
26
|
-
spec.bindir
|
27
|
-
spec.executables
|
26
|
+
spec.bindir = "exe"
|
27
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
28
28
|
spec.require_paths = ["lib"]
|
29
29
|
|
30
30
|
spec.add_runtime_dependency "dry-inflector", "~> 0"
|
31
|
-
|
32
|
-
spec.add_development_dependency "bundler", "~> 2.0"
|
33
|
-
spec.add_development_dependency "rake", "~> 13.0"
|
34
|
-
spec.add_development_dependency "minitest", "~> 5.0"
|
35
|
-
spec.add_development_dependency "minitest-reporters", "~> 1"
|
36
|
-
spec.add_development_dependency "minitest-power_assert"
|
37
|
-
spec.add_development_dependency "yard"
|
38
31
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple-hd-graph
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- wtnabe
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-08-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-inflector
|
@@ -24,102 +24,21 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: bundler
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '2.0'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '2.0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: rake
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '13.0'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '13.0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: minitest
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '5.0'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '5.0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: minitest-reporters
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - "~>"
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '1'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - "~>"
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '1'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: minitest-power_assert
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: yard
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - ">="
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '0'
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - ">="
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '0'
|
111
27
|
description: parse single-tier hierarchy and simplex direction graph from YAML, and
|
112
28
|
generate PlantUML with rectangle and object
|
113
29
|
email:
|
114
|
-
- wtnabe@
|
30
|
+
- 18510+wtnabe@users.noreply.github.com
|
115
31
|
executables:
|
116
32
|
- simple-hd-graph
|
117
33
|
extensions: []
|
118
34
|
extra_rdoc_files: []
|
119
35
|
files:
|
120
36
|
- ".editorconfig"
|
37
|
+
- ".github/workflows/test.yml"
|
121
38
|
- ".gitignore"
|
122
|
-
- ".
|
39
|
+
- ".rubocop.yml"
|
40
|
+
- ".standard.yml"
|
41
|
+
- CHANGELOG.md
|
123
42
|
- Gemfile
|
124
43
|
- LICENSE
|
125
44
|
- README.md
|
@@ -146,8 +65,8 @@ metadata:
|
|
146
65
|
allowed_push_host: https://rubygems.org
|
147
66
|
homepage_uri: https://github.com/wtnabe/simple-hd-graph
|
148
67
|
source_code_uri: https://github.com/wtnabe/simple-hd-graph
|
149
|
-
changelog_uri: https://github.com/wtnabe/simple-hd-graph/blob/
|
150
|
-
post_install_message:
|
68
|
+
changelog_uri: https://github.com/wtnabe/simple-hd-graph/blob/main/CHANGELOG.md
|
69
|
+
post_install_message:
|
151
70
|
rdoc_options: []
|
152
71
|
require_paths:
|
153
72
|
- lib
|
@@ -162,8 +81,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
162
81
|
- !ruby/object:Gem::Version
|
163
82
|
version: '0'
|
164
83
|
requirements: []
|
165
|
-
rubygems_version: 3.
|
166
|
-
signing_key:
|
84
|
+
rubygems_version: 3.5.9
|
85
|
+
signing_key:
|
167
86
|
specification_version: 4
|
168
87
|
summary: single-tier hierary and simplex direction graph DSL
|
169
88
|
test_files: []
|