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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 004047233cdd67c483d6218767022e25d7e9baf779131706764e79cdaf90c984
4
- data.tar.gz: 6510a0c1996e73affe49839f323bac5f4935c471340ad83de827ceee6d5dc61c
3
+ metadata.gz: 771422666853e744e94e4153787966bd0428ede25654bb05ece545eae1cc29dd
4
+ data.tar.gz: 4c3f5a388a709ffe1271f1a8841d193b5c86f36e4253c0c880d394ce6cc260ec
5
5
  SHA512:
6
- metadata.gz: ad911c0960f017408e8c7a53cb43349c52c8829d337a870656fb0932fcdd93fc30d0a091803322f57931b98f815c177aed58c66ce6c6426e6c2eba49d3495868
7
- data.tar.gz: e464f4904a190c088620d3fa5672545c3cb633ead155e722d2d05cb507130edae6bd8df6c03c7eb113d32a3d37388006721e3b1353ad06e3ac6fda3de84287d4
6
+ metadata.gz: c9feb1e044ec746b2c81ae38fc743e2891fa80938e33afcf4464f816438193196b4b68646717ae17a881416e3cd07a9732ce65dd45367afc8fb247529e573371
7
+ data.tar.gz: 6b766deb8af610662b52fb60fc868285c7abc19803783267ad6c5084fabc73ed907ceba5c96a987090ea862e84206c63594f1f3c5dfe0e164d46c6c202f7a438
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+ require "erb"
2
3
  require_relative "activerecord_uml/version"
3
4
  require_relative "activerecord_uml/diagram_drawer"
4
5
 
@@ -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] }.join(", ")
51
- [m.to_s, method_parameters]
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActiverecordUml
4
- VERSION = "0.7.0"
4
+ VERSION = "0.8.0"
5
5
  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.7.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-16 00:00:00.000000000 Z
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.