weel 1.2.5 → 1.2.6

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 498fe6c4aea9417706e1fae8604ebd83487badb7
4
+ data.tar.gz: a04cc4c473ab811e5dad4c2cf25190f0cd2d8410
5
+ SHA512:
6
+ metadata.gz: 51923871cbb6ddfeacf71dc30e819d1a3229148e91a1840fa30378c6ac3e02725ce5472c30f13b6999aa40cbd59e3653bd25c6641fad9511fb3c7f608a39b4ce
7
+ data.tar.gz: a1749f5b4d98d23d23967c152c0834ad9c88762a9c12069665a0ebd1853808ac80e26c6df4a08c8a7d109dfbc34bba23f8555a324991530dbaaf389b97e16ac3
@@ -854,7 +854,7 @@ public
854
854
 
855
855
  def sim # {{{
856
856
  stat = @dslr.__weel_state
857
- return nil if stat != :ready && stat != :stopped
857
+ return nil unless stat == :ready || stat == :stopped
858
858
  @dslr.__weel_main = Thread.new do
859
859
  __weel_control_flow :simulating, stat
860
860
  end
@@ -77,8 +77,6 @@ class Trace #{{{
77
77
  next unless options[:otherwise]
78
78
  options[:otherwise] = false
79
79
  tmp = recursive_generate_list(ele,options)
80
- p tmp
81
- p '---'
82
80
  add_traces(traces,tmp)
83
81
  options[:otherwise] = true
84
82
  end
@@ -89,7 +87,6 @@ class Trace #{{{
89
87
  def add_traces(before,newones)
90
88
  before.each do |trc|
91
89
  newones.each do |no|
92
- p trc
93
90
  trc += no
94
91
  end
95
92
  end
@@ -32,8 +32,7 @@ class TestParallel < Test::Unit::TestCase
32
32
  @wf.description do
33
33
  parallel :wait do
34
34
  parallel_branch do
35
- activity :a_1, :call, :endpoint1
36
- Thread.pass
35
+ activity :a_1, :call, :endpoint1, :call => Proc.new{ sleep 0.2 }
37
36
  end
38
37
  parallel_branch do
39
38
  activity :a_2, :call, :endpoint1, :call => Proc.new{ sleep 0.5 }
@@ -1,10 +1,10 @@
1
1
  require 'test/unit'
2
2
  require File.expand_path(::File.dirname(__FILE__) + '/../TestWorkflow')
3
3
 
4
- class TestWFPLocalSynchronizingMerge < Test::Unit::TestCase
4
+ class TestWFPGeneralSynchronizingMerge < Test::Unit::TestCase
5
5
  include TestMixin
6
6
 
7
- def test_localsyncmerge
7
+ def test_generalsyncmerge
8
8
  @wf.data[:cont] = true
9
9
  @wf.description do
10
10
  parallel do
@@ -16,7 +16,7 @@ class TestWFPLocalSynchronizingMerge < Test::Unit::TestCase
16
16
  end
17
17
  choose do
18
18
  alternative(true) do
19
- loop post_test{puts data.break; data.break} do
19
+ loop post_test{data.break} do
20
20
  parallel_branch do
21
21
  activity :a2_1, :call, :endpoint1
22
22
  end
@@ -33,7 +33,7 @@ class TestWFPLocalSynchronizingMerge < Test::Unit::TestCase
33
33
  activity :a3, :call, :endpoint1
34
34
  end
35
35
  @wf.start.join
36
- wf_sassert('|running|Ca2_decideDa2_decide')
36
+ wf_sassert('|running|Ca2_decideMa2_decideDa2_decide')
37
37
  wf_assert('CALL a1_1:')
38
38
  wf_assert('CALL a1_2:')
39
39
  wf_assert('CALL a2_1:')
@@ -28,11 +28,12 @@ class TestWFPMultiChoice < Test::Unit::TestCase
28
28
  parallel_branch do
29
29
  alternative(data.x == 1) do
30
30
  activity :a1_1, :call, :endpoint1
31
+ Thread.pass
31
32
  end
32
33
  end
33
34
  parallel_branch do
34
35
  alternative(data.x > 0) do
35
- activity :a1_2, :call, :endpoint1, :call => Proc.new{sleep 0.1}
36
+ activity :a1_2, :call, :endpoint1, :call => Proc.new{sleep 0.5}
36
37
  end
37
38
  end
38
39
  end
@@ -42,6 +43,6 @@ class TestWFPMultiChoice < Test::Unit::TestCase
42
43
  @wf.start.join
43
44
  wf_assert('CALL a1_1')
44
45
  wf_assert('CALL a1_2')
45
- wf_sassert('Da1_1Da1_2Ca2Da2|finished|')
46
+ wf_sassert('Da1_2Ca2Da2|finished|')
46
47
  end
47
48
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "weel"
3
- s.version = "1.2.5"
3
+ s.version = "1.2.6"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.license = "LGPL-3"
6
6
  s.summary = "Preliminary release of the Workflow Execution Engine Library (WEEL)"
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: weel
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.5
5
- prerelease:
4
+ version: 1.2.6
6
5
  platform: ruby
7
6
  authors:
8
7
  - Juergen eTM Mangler
@@ -10,7 +9,7 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2013-06-27 00:00:00.000000000 Z
12
+ date: 2013-06-30 00:00:00.000000000 Z
14
13
  dependencies: []
15
14
  description: see http://cpee.org
16
15
  email: juergen.mangler@gmail.com
@@ -65,27 +64,26 @@ files:
65
64
  homepage: http://cpee.org/
66
65
  licenses:
67
66
  - LGPL-3
67
+ metadata: {}
68
68
  post_install_message:
69
69
  rdoc_options: []
70
70
  require_paths:
71
71
  - lib
72
72
  required_ruby_version: !ruby/object:Gem::Requirement
73
- none: false
74
73
  requirements:
75
- - - ! '>='
74
+ - - '>='
76
75
  - !ruby/object:Gem::Version
77
76
  version: 1.9.3
78
77
  required_rubygems_version: !ruby/object:Gem::Requirement
79
- none: false
80
78
  requirements:
81
- - - ! '>='
79
+ - - '>='
82
80
  - !ruby/object:Gem::Version
83
81
  version: '0'
84
82
  requirements: []
85
83
  rubyforge_project:
86
- rubygems_version: 1.8.23
84
+ rubygems_version: 2.0.2
87
85
  signing_key:
88
- specification_version: 3
86
+ specification_version: 4
89
87
  summary: Preliminary release of the Workflow Execution Engine Library (WEEL)
90
88
  test_files:
91
89
  - test/SimHandlerWrapper.rb