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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 01a503898518f63f3cc9cab6fbb4177c118e2ff176a76e3da921f517f3636556
4
- data.tar.gz: fdbc7f0f98f3bb33de052f3e319d3cfe7064a1aaaa84c2e069741ad2c2574580
3
+ metadata.gz: cbb2258a4f230b1d76894dd6507c1dd07d3df5fff834108715f7864b8c0ff9a3
4
+ data.tar.gz: 39892397797367876a4159b152c346ae7878a88075973564a451b8ba9de4997b
5
5
  SHA512:
6
- metadata.gz: 31dbdaed7e24dd2361028eeea88d573632bfe348226017e87626f022b9b58d733a386d11534ca25b9233804150d85ba5b94ec296fea6b736220778740dd44907
7
- data.tar.gz: 45d2b54b171ceb27444f7da01c612772fbd622d398953307198721a6521740ef4e689b6f8e40830932dc030370913c2dec3ad0b3e38709543f7475b7a6c5a5c9
6
+ metadata.gz: c6f84a2e2e3f26dcb53d62d2fd841420c1d1162f066dac3d5b5946c4ca82cd749c3b9182ba08374a6cbe668fa346ec12d402d022a032f9689d0d20fc9bd3a23c
7
+ data.tar.gz: cae6b70c56567d1e6234439a5ab76852b60c4c15fc8a2974fe7de6329cd1bbef51c06636cd60e93dc1ca51540f0d1beb17c3f0a64aaa52bf901e84daacc187d8
data/README.md CHANGED
@@ -1,8 +1,12 @@
1
1
  # RubyUmlClass
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/ruby_uml_class`. To experiment with that code, run `bin/console` for an interactive prompt.
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
- TODO: Delete this and the text above, and describe your gem
7
+ ## Setup
8
+ for ubuntu
9
+ $ sudo apt install plantuml
6
10
 
7
11
  ## Installation
8
12
 
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubyUmlClassVer
4
- VERSION = "0.1.0"
4
+ VERSION = "0.2.0"
5
5
  end
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.1.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-10 00:00:00.000000000 Z
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