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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f0f104afa4985520fd742deb2f3a508aa5228fdece50f05e781967a11610b0e3
4
- data.tar.gz: 00ea2753585296fb38663736e7001a7c985cac7bf6c690134ccba0826f8c5eff
3
+ metadata.gz: 327a5fb9abcd99a5eec214e4245c5974697c6b0af9ee95669392d8a50e3e55a0
4
+ data.tar.gz: 161c035ebfb3e1ef41235cebc64ecbfb670f4e2695313e1ba50a928517bb0d49
5
5
  SHA512:
6
- metadata.gz: bddb9cf8a77b9c75978e45d72829883480dc937bcdc1f9d581167ac2e204332a39951c9d386889fa380fba51fca967a6a13a425bf0657edec6d580cdf610642d
7
- data.tar.gz: d35882bc09d6b3ba53ea8aef0823e5ee593caa6a4e031e4b39186b81404f47d3ac599dc130db9db1a9d7797ac891650832bfd9046f04720060d2959315aa1c34
6
+ metadata.gz: 1820d9f70699005727cd57ee996281845b64e447338606985a79dfe3bcafd095c82d3e79fa4cf52041dba487a919ade3cc4bfd024366340646a6badffa37e349
7
+ data.tar.gz: 818175be429154357dd08830d7da6a0cca06daddbc44afe14b7b8cb7c01c8b39b0d3e80a7eb2c4222978c1f50a5820fe1b203b0932a5767e3019c9275c25e8a6
data/.editorconfig CHANGED
@@ -1,3 +1,5 @@
1
1
  [*]
2
2
  indent_size = 2
3
3
  indent_style = space
4
+ trim_trailing_whitespace = true
5
+ insert_final_newline = true
@@ -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
@@ -0,0 +1,5 @@
1
+ require:
2
+ - standard
3
+
4
+ inherit_gem:
5
+ standard: config/base.yml
data/.standard.yml ADDED
@@ -0,0 +1,3 @@
1
+ # For available configuration options, see:
2
+ # https://github.com/testdouble/standard
3
+ ruby_version: 2.7
data/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ ## [0.3.5] 2024-08-16
2
+
3
+ - standardrb compliant
4
+
5
+ ## [0.1.0] 2021-04-16
6
+
7
+ - initial release
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 :default => :spec
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__, '../lib'))
3
+ $LOAD_PATH.unshift File.absolute_path(File.join(__dir__, "../lib"))
4
4
 
5
- require 'simple-hd-graph'
5
+ require "simple-hd-graph"
6
6
 
7
7
  Version = SimpleHdGraph::VERSION
8
8
  cmd = SimpleHdGraph::Command.new
@@ -1,9 +1,8 @@
1
- require 'optparse'
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 (@dir)
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('-d DIR', '--dir', 'dirname') { |value|
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('-f FILE', '--file', 'filename') { |value|
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('-r RENDERER', '--renderer', 'renderer') { |value|
74
+ opt.on("-r RENDERER", "--renderer", "renderer") { |value|
76
75
  begin
77
76
  @renderer = SimpleHdGraph::Renderer.method(value)
78
77
  rescue NameError
79
- STDERR.puts "[Warining] renderer `#{value}` not found. falling back to :plantuml"
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 'simple-hd-graph/node'
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 << { resource.id => @resource_dict[dependency] }
49
+ @relations << {resource.id => @resource_dict[dependency]}
51
50
  }
52
51
  end
53
52
  }
@@ -1,8 +1,8 @@
1
- require 'dry/inflector'
1
+ require "dry/inflector"
2
2
 
3
3
  module SimpleHdGraph
4
4
  class Node
5
- class RequiredFieldNotFilled < StandardError; end
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 = if klass.instance_variables.grep(/@required_fields/).size > 0
30
- klass.instance_variable_get('@required_fields')
31
- else
32
- nil
33
- end
34
-
35
- if required_fields.is_a? Array
36
- filled = required_fields.all? {|field|
37
- if struct.has_key? field
38
- true
39
- else
40
- raise RequiredFieldNotFilled, field
41
- end
42
- }
43
- else
44
- filled = true
45
- end
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(/[#{CAMELIZE_SEPARATOR}]/, '_')))
54
+ @inflector.camelize(@inflector.underscore(str.gsub(CAMELIZE_SEPARATOR, "_")))
56
55
  end
57
56
  end
58
57
  end
@@ -1,34 +1,32 @@
1
- require 'yaml'
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 ||= 'id'.freeze
10
- KEYWORD_RESOURCES ||= 'resources'.freeze
11
- KEYWORD_DEPENDS ||= 'depends'.freeze
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 = nil
21
+ context = nil
24
22
  resources = nil
25
- depends = nil
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({ id: value })
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({ id: context.id }, { key => resource })
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.select { |c|
84
+ d = contexts.find { |c|
87
85
  c.alias == dependee
88
- }.first
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 = node.resources.map { |resource|
15
- indent_resource(resource)
16
- }.join if node.resources.size > 0
17
- relations = node.relations.map { |relation|
18
- render_relation(relation)
19
- }.join("\n") if node.relations.size > 0
20
- depends = node.depends.map { |depending|
21
- render_depends(depending)
22
- }.join("\n") if node.depends.size > 0
23
- (<<-EOD).gsub(/^$\n/, '')
24
- rectangle \"#{node.alias}\" as #{node.id} {
25
- #{resources}
26
- #{relations}
27
- }
28
- #{depends}
29
- EOD
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
- <<EOD
14
- object \"#{node.alias}\" as #{node.id} {
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
- Dir.glob(File.join(__dir__, '**/*.rb')).each { |f| require f }
1
+ Dir.glob(File.join(__dir__, "plantuml/*.rb")).sort.each { |f| require f }
2
2
 
3
3
  module SimpleHdGraph
4
4
  module Renderer
@@ -1,4 +1,4 @@
1
- require 'simple-hd-graph/node'
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('').freeze
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 != 'has'
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['has']
50
+ @content.values.first["has"]
51
51
  end
52
52
  end
53
53
  end
@@ -1,3 +1,3 @@
1
1
  module SimpleHdGraph
2
- VERSION = "0.3.4"
2
+ VERSION = "0.3.5"
3
3
  end
@@ -3,6 +3,6 @@ module SimpleHdGraph
3
3
  # Your code goes here...
4
4
  end
5
5
 
6
- Dir.glob(__dir__ + '/simple-hd-graph/**/*.rb').each { |f|
7
- require f.sub(/\.rb\z/, '')
6
+ Dir.glob(__dir__ + "/simple-hd-graph/**/*.rb").each { |f|
7
+ require f.sub(/\.rb\z/, "")
8
8
  }
@@ -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 = "simple-hd-graph"
7
- spec.version = SimpleHdGraph::VERSION
8
- spec.authors = ["wtnabe"]
9
- spec.email = ["wtnabe@gmail.com"]
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 = %q{single-tier hierary and simplex direction graph DSL}
12
- spec.description = %q{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"
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/master/CHANGELOG.md"
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 = Dir.chdir(File.expand_path('..', __FILE__)) do
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 = "exe"
27
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
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
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: 2021-04-20 00:00:00.000000000 Z
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@gmail.com
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
- - ".travis.yml"
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/master/CHANGELOG.md
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.0.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: []
data/.travis.yml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- sudo: false
3
- language: ruby
4
- cache: bundler
5
- rvm:
6
- - 2.6.5
7
- before_install: gem install bundler -v 2.0.2