python_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: 94b38ecf2e01cf7564127df3fcdcf53c30983d56265464c891943587773fe8a6
4
- data.tar.gz: 1d9eb97b1c61f55ed66eb145f47961530c098e53d44406a3551a06ccd0524861
3
+ metadata.gz: 57d9b2f9c5e9a33f0ddad879342573239dfd191c4f157db560cc65288478c6ad
4
+ data.tar.gz: 16108c011929af51026809c24ff5d75647109869b43aa1d5cac02b1a1008cf55
5
5
  SHA512:
6
- metadata.gz: 7ab2ed48e092b4326d36f5fefd46b59114f9dd9473edd10271493cb5593af3737969c06e27bbb21a0b5affe937d90624ceed5be8e8a0cd3d5b401feda7367f55
7
- data.tar.gz: 5e2d6938cbe8555cedd8eff6063ed6c4c4c943327a64118db6f8f9c1f1bc899493cbd458dcf59345fc3669a061ab5e67af4f0c1156a6c19d6e1d904ae1a55300
6
+ metadata.gz: ae1adf4ebc0faefebd3a64a81b259453a4c6ba2adca2ced788371cc901416c5f90703653f7c6479cb82ee30684c0a969e5862b82b3db8f3fa3a69468ea6cd2a9
7
+ data.tar.gz: 4b8ccf75957dae5936bf478b915cfa45e6b7b9deccadfbec7c97613b4d70091d3016030b47c0876544ba09213b56e79c793a81d084225bc55521991d4431b631
data/README.md CHANGED
@@ -1,2 +1,42 @@
1
1
  # PythonUmlClass
2
2
  Create a python class diagram
3
+
4
+ ## Setup
5
+ for ubuntu
6
+ $ sudo apt install plantuml
7
+ $ apt install -y pip
8
+ $ pip install astor
9
+
10
+ install google-chrome
11
+ $ echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list
12
+ $ wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
13
+ $ apt update
14
+ $ apt -y install google-chrome-stable
15
+
16
+ ## Installation
17
+
18
+ Install the gem and add to the application's Gemfile by executing:
19
+
20
+ $ bundle add python_uml_class
21
+
22
+ If bundler is not being used to manage dependencies, install the gem by executing:
23
+
24
+ $ gem install python_uml_class
25
+
26
+ ## Usage
27
+
28
+ $ start_python_uml_class.rb
29
+
30
+ ![class](img/class.png)
31
+
32
+ ## Development
33
+
34
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [pythongems.org](https://pythongems.org).
35
+
36
+ ## Contributing
37
+
38
+ Bug reports and pull requests are welcome on GitHub at https://github.com/kuwayama1971/PythonUmlClass.
39
+
40
+ ## License
41
+
42
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -7,7 +7,7 @@ require "json"
7
7
 
8
8
  # tmpdirディレクトリにコピー
9
9
  dir = File.dirname(File.expand_path(__FILE__ + "/../"))
10
- home_dir = ENV["HOME"] + "/" + dir.split("/")[-1].gsub(/-[0-9\.-]+/,"")
10
+ home_dir = ENV["HOME"] + "/" + dir.split("/")[-1].gsub(/-[0-9\.-]+/, "")
11
11
  puts "home_dir=#{home_dir}"
12
12
  Dir.mktmpdir { |tmpdir|
13
13
  outdir = tmpdir + "/" + dir.split("/")[-1]
@@ -17,7 +17,7 @@ Dir.mktmpdir { |tmpdir|
17
17
  Dir.glob("#{dir}/lib/*") do |f|
18
18
  if f =~ /config$/
19
19
  # configはhomeにコピー
20
- if !File.exists? "#{home_dir}/config"
20
+ if !File.exist? "#{home_dir}/config"
21
21
  puts "#{f} => #{home_dir}/"
22
22
  FileUtils.cp_r f, "#{home_dir}/"
23
23
  end
@@ -27,8 +27,8 @@ Dir.mktmpdir { |tmpdir|
27
27
  end
28
28
  end
29
29
  begin
30
- json = JSON.parse(File.read("#{home_dir}/config/setting.json"))
31
- old_version = json["version"]
30
+ json = JSON.parse(File.read("#{home_dir}/config/setting.json"))
31
+ old_version = json["version"]
32
32
  rescue
33
33
  old_version = ""
34
34
  end
@@ -7,7 +7,7 @@ require "json"
7
7
 
8
8
  # tmpdirディレクトリにコピー
9
9
  dir = File.dirname(File.expand_path(__FILE__ + "/../"))
10
- home_dir = ENV["HOME"] + "/" + dir.split("/")[-1].gsub(/-[0-9\.-]+/,"")
10
+ home_dir = ENV["HOME"] + "/" + dir.split("/")[-1].gsub(/-[0-9\.-]+/, "")
11
11
  puts "home_dir=#{home_dir}"
12
12
  Dir.mktmpdir { |tmpdir|
13
13
  outdir = tmpdir + "/" + dir.split("/")[-1]
@@ -17,7 +17,7 @@ Dir.mktmpdir { |tmpdir|
17
17
  Dir.glob("#{dir}/lib/*") do |f|
18
18
  if f =~ /config$/
19
19
  # configはhomeにコピー
20
- if !File.exists? "#{home_dir}/config"
20
+ if !File.exist? "#{home_dir}/config"
21
21
  puts "#{f} => #{home_dir}/"
22
22
  FileUtils.cp_r f, "#{home_dir}/"
23
23
  end
@@ -27,8 +27,8 @@ Dir.mktmpdir { |tmpdir|
27
27
  end
28
28
  end
29
29
  begin
30
- json = JSON.parse(File.read("#{home_dir}/config/setting.json"))
31
- old_version = json["version"]
30
+ json = JSON.parse(File.read("#{home_dir}/config/setting.json"))
31
+ old_version = json["version"]
32
32
  rescue
33
33
  old_version = ""
34
34
  end
data/img/class.png ADDED
Binary file
data/lib/config.ru CHANGED
@@ -102,6 +102,6 @@ configure do
102
102
 
103
103
  end
104
104
 
105
- #\ --port 43883
105
+ #\ --port 37583
106
106
 
107
107
  run Sinatra::Application
data/lib/js/main.js CHANGED
@@ -384,10 +384,10 @@ function openFile(file) {
384
384
  $(document).ready(function () {
385
385
 
386
386
  // サーバに接続
387
- server_connect("ws://localhost:43883/wsserver")
387
+ server_connect("ws://localhost:45709/wsserver")
388
388
  window.onload = function (e) {
389
389
  // サーバに接続
390
- //server_connect("ws://localhost:43883/wsserver")
390
+ //server_connect("ws://localhost:45709/wsserver")
391
391
  }
392
392
 
393
393
  // menu
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PythonUmlClassVer
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: python_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
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-23 00:00:00.000000000 Z
11
+ date: 2025-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: browser_app_base
@@ -54,6 +54,7 @@ files:
54
54
  - Rakefile
55
55
  - bin/start_python_uml_class.rb
56
56
  - bin/start_python_uml_class.rbw
57
+ - img/class.png
57
58
  - lib/app_load.rb
58
59
  - lib/config.ru
59
60
  - lib/config/browser.json
@@ -80,7 +81,7 @@ metadata:
80
81
  homepage_uri: https://github.com/kuwayama1971/PythonUmlClass
81
82
  source_code_uri: https://github.com/kuwayama1971/PythonUmlClass
82
83
  changelog_uri: https://github.com/kuwayama1971/PythonUmlClass
83
- post_install_message:
84
+ post_install_message:
84
85
  rdoc_options: []
85
86
  require_paths:
86
87
  - lib
@@ -95,8 +96,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
95
96
  - !ruby/object:Gem::Version
96
97
  version: '0'
97
98
  requirements: []
98
- rubygems_version: 3.3.5
99
- signing_key:
99
+ rubygems_version: 3.4.20
100
+ signing_key:
100
101
  specification_version: 4
101
102
  summary: Create a Python UML class diagram.
102
103
  test_files: []