yuml 0.2.0 → 0.2.1
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/lib/yuml.rb +0 -30
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 811a4a2ebb7e0e8cdeee7e4883941b86abe70723
|
4
|
+
data.tar.gz: 33723232867eeef03a8b937fe52c45bde5cc0c78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f0d51e62b46f3db61c920cdf7bae85fa8d02f219644a3fac79f12e03e9214c2968015532b59565f0e881363d6dbc97f0fa7a7f6218c1da952ff56dde39375a4
|
7
|
+
data.tar.gz: 9590c314d085f2a58d988890bdae72ee79447ca7d5da4b7135b0992c68d082570699c9a4298e7b606e8cbcc88a2d427bca4e180333068068b1fba57b8796c0cb
|
data/lib/yuml.rb
CHANGED
@@ -37,7 +37,6 @@ module YUML
|
|
37
37
|
uml = classes.map(&:to_s).join(',')
|
38
38
|
relationships = classes.map(&:relationships).compact
|
39
39
|
uml << ',' << relationships.join(',') unless relationships.empty?
|
40
|
-
puts uml
|
41
40
|
URI.encode(uml, encodings)
|
42
41
|
end
|
43
42
|
|
@@ -51,32 +50,3 @@ module YUML
|
|
51
50
|
"#{ESCAPE_CHARACTERS.values.join}#{ESCAPE_COMMA}[](){}+->|,=;* "
|
52
51
|
end
|
53
52
|
end
|
54
|
-
|
55
|
-
YUML.generate(file: 'tmp.pdf') do |uml|
|
56
|
-
doc = uml.class do
|
57
|
-
name 'Document'
|
58
|
-
end
|
59
|
-
|
60
|
-
pic = uml.class do
|
61
|
-
name 'Picture'
|
62
|
-
public_methods :foo
|
63
|
-
end
|
64
|
-
|
65
|
-
doc.has_a(pic)
|
66
|
-
end
|
67
|
-
|
68
|
-
YUML.generate(file: 'tmp2.pdf') do |uml|
|
69
|
-
doc = uml.class do
|
70
|
-
name 'Document'
|
71
|
-
end
|
72
|
-
|
73
|
-
pic = uml.class do
|
74
|
-
name 'Picture'
|
75
|
-
public_variables :fizz
|
76
|
-
private_variables :buzz
|
77
|
-
public_methods(foo: [:bar])
|
78
|
-
private_methods(baz: ['arg = nil', 'param = {}', '*args'], lam: [:star])
|
79
|
-
end
|
80
|
-
|
81
|
-
doc.has_a(pic)
|
82
|
-
end
|