activerecord_uml 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/activerecord_uml.rb +1 -0
- data/lib/activerecord_uml/diagram_drawer.rb +7 -2
- data/lib/activerecord_uml/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: 771422666853e744e94e4153787966bd0428ede25654bb05ece545eae1cc29dd
|
4
|
+
data.tar.gz: 4c3f5a388a709ffe1271f1a8841d193b5c86f36e4253c0c880d394ce6cc260ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9feb1e044ec746b2c81ae38fc743e2891fa80938e33afcf4464f816438193196b4b68646717ae17a881416e3cd07a9732ce65dd45367afc8fb247529e573371
|
7
|
+
data.tar.gz: 6b766deb8af610662b52fb60fc868285c7abc19803783267ad6c5084fabc73ed907ceba5c96a987090ea862e84206c63594f1f3c5dfe0e164d46c6c202f7a438
|
data/lib/activerecord_uml.rb
CHANGED
@@ -47,8 +47,13 @@ EOF
|
|
47
47
|
method_parameters = @class_name.new.method(m)
|
48
48
|
.parameters
|
49
49
|
.filter { |a| a[0] == :req }
|
50
|
-
.map { |a| a[1] }
|
51
|
-
|
50
|
+
.map { |a| a[1] }
|
51
|
+
|
52
|
+
if method_parameters.length > 3
|
53
|
+
method_parameters = method_parameters.slice(0, 3).append("...")
|
54
|
+
end
|
55
|
+
|
56
|
+
[m.to_s, method_parameters.join(", ")]
|
52
57
|
end
|
53
58
|
end
|
54
59
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord_uml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- shigeru.nakajima
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-06-
|
11
|
+
date: 2021-06-21 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Generate UML class diagram for Mermaid.js from ActiveRecord instances
|
14
14
|
by Rails runner.
|