vispan 0.10.0 → 0.11.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
  SHA1:
3
- metadata.gz: 615ef31c6f8eb4444de90caa720c8c1b27432dca
4
- data.tar.gz: d77eb4953a0f42f92fe8bed42b4921ce43b95a93
3
+ metadata.gz: 4bd75156acd58ff431c78a992bbea38992a52c1b
4
+ data.tar.gz: 268499aac45b6365a01d5b04c04a503a1883b0bf
5
5
  SHA512:
6
- metadata.gz: e293abfb02baa04681194e4b9ffa33a370c72abb58c55c25d1c0afe34480f3813e55d322d3727f0736625b33014903e3fc45d04ccf021e4248ecbc3b3f41ffc4
7
- data.tar.gz: 7c6f52ce61a6dad2b460f2862cd2624934f07ba68bd0e29bf0af11ff8b3c793b73cd79878d1b443b00cef5d0d653ce3a5732a858a1ce6eba433fa5c904e354e0
6
+ metadata.gz: 3dfe31cd678a7da8359d305a97a99a40a44340e640781f7eaa67e6943c7104c9821e4c1db9dd4b2db88b96faee1ff84491959102418e818bdc144bfa6874bd12
7
+ data.tar.gz: 2c1fb2f5873abdcc0405be799a459554fcdcb45202a0f2783e8d8e6579badd5cf6a9ba2b8e2aee63059559d86401977710ba6940eea275240b4128d1b88631cf
data/bin/generate CHANGED
@@ -6,7 +6,6 @@ if ARGV.length == 2
6
6
  input_file = ARGV[0]
7
7
  output_file = ARGV[1]
8
8
  process = Vispan::WebPreview.new(input: input_file)
9
- process.display_text
10
9
  process.visualize(output_file)
11
10
  else
12
11
  puts 'wrong number of arguments!'
data/lib/vispan.rb CHANGED
@@ -55,11 +55,6 @@ module Vispan
55
55
  @relation_lines = []
56
56
  end
57
57
 
58
- def display_text
59
- text = OutputConsole.new(@szenarios)
60
- text.generate
61
- end
62
-
63
58
  def visualize(output_file)
64
59
  graphic = OutputGraphic.new(@szenarios, output_file)
65
60
  graphic.generate
data/lib/vispan/config.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  NODE_WIDTH = 3.3
2
2
  NODE_MARGIN = 0.2
3
3
 
4
- GENERAL_SETTINGS = {graph:{rankdir:"LR", labeljust:"l", splines:"ortho" },
4
+ GENERAL_SETTINGS = {graph:{rankdir:"LR", labeljust:"l", splines:"true" },
5
5
  node:{color:"none", shape:"rect", style:"rounded, filled", width:"#{NODE_WIDTH}", margin:"#{NODE_MARGIN}"},
6
6
  edge:{}}
7
7
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vispan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Witek
@@ -64,7 +64,6 @@ files:
64
64
  - lib/vispan/config.rb
65
65
  - lib/vispan/graphwriter.rb
66
66
  - lib/vispan/node.rb
67
- - lib/vispan/output_console.rb
68
67
  - lib/vispan/output_graphic.rb
69
68
  - lib/vispan/relation.rb
70
69
  - lib/vispan/szenario.rb
@@ -1,31 +0,0 @@
1
- class OutputConsole
2
-
3
- def initialize(szenarios)
4
- @text = ""
5
- @szenarios = szenarios
6
- end
7
-
8
- def generate
9
- build_text
10
- puts @text
11
- end
12
-
13
- def build_text
14
- @szenarios.each do |szenario|
15
- @text += "\nProzess Ablauf in '#{szenario.title}'\n"
16
- done = []
17
- szenario.relations.each do |rel|
18
-
19
- if !done.include? rel.start
20
- @text += "\n"
21
- @text += "'#{rel.start.label}' führt zu '#{rel.stop.label}'"
22
- done << rel.start
23
- else
24
- @text += " und zu '#{rel.stop.label}'"
25
- end
26
- end
27
-
28
- @text += "\n"
29
- end
30
- end
31
- end