ruby_uml_class 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +6 -2
- data/lib/create_uml_class.rb +2 -2
- data/lib/ruby_uml_class/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cbb2258a4f230b1d76894dd6507c1dd07d3df5fff834108715f7864b8c0ff9a3
|
4
|
+
data.tar.gz: 39892397797367876a4159b152c346ae7878a88075973564a451b8ba9de4997b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6f84a2e2e3f26dcb53d62d2fd841420c1d1162f066dac3d5b5946c4ca82cd749c3b9182ba08374a6cbe668fa346ec12d402d022a032f9689d0d20fc9bd3a23c
|
7
|
+
data.tar.gz: cae6b70c56567d1e6234439a5ab76852b60c4c15fc8a2974fe7de6329cd1bbef51c06636cd60e93dc1ca51540f0d1beb17c3f0a64aaa52bf901e84daacc187d8
|
data/README.md
CHANGED
@@ -1,8 +1,12 @@
|
|
1
1
|
# RubyUmlClass
|
2
2
|
|
3
|
-
|
3
|
+
RubyUmlClass creates a Ruby class diagram.
|
4
|
+
PlantUML and rufo commands are used to create class diagrams.
|
5
|
+
The created class diagram is displayed on the browser screen.
|
4
6
|
|
5
|
-
|
7
|
+
## Setup
|
8
|
+
for ubuntu
|
9
|
+
$ sudo apt install plantuml
|
6
10
|
|
7
11
|
## Installation
|
8
12
|
|
data/lib/create_uml_class.rb
CHANGED
@@ -138,7 +138,7 @@ def create_uml_class(in_dir, out_file)
|
|
138
138
|
class_name = ""
|
139
139
|
# ソースを解析
|
140
140
|
buf.each_line do |line|
|
141
|
-
next if line =~
|
141
|
+
next if line =~ /^[\r\n]*$/ # 空行は対象外
|
142
142
|
|
143
143
|
# ブロックの開始/終了
|
144
144
|
indent_num = line.match(/^[ ]+/).to_s.size / 2
|
@@ -167,7 +167,7 @@ def create_uml_class(in_dir, out_file)
|
|
167
167
|
out_list.push CStruct.new(:class_start, class_name, block_count, [], [], [], [])
|
168
168
|
cstruct_list.push CStruct.new(:class_end, class_name, block_count, [], [], [], [])
|
169
169
|
end
|
170
|
-
pp line if class_name == ""
|
170
|
+
#pp line if class_name == ""
|
171
171
|
if base_name != ""
|
172
172
|
#base_name.gsub!(/::/, ".")
|
173
173
|
cstruct_list[-1].inherit_list.push base_name
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_uml_class
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Masataka kuwayama
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-01-
|
11
|
+
date: 2023-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: browser_app_base
|