weel 1.99.125 → 1.99.127

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/weel.rb +9 -9
  3. data/weel.gemspec +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6838b35c90188d87942d5f17b1d7c37a833a6918cbd6b3701094b4c7c5197213
4
- data.tar.gz: '08e6930846e12ead9eb55fd3de58a6bce02aa6105f92b768a9b24421c1067b4f'
3
+ metadata.gz: f160d41131af38c3087b40f26a0ba6bd05525e1dd4fe7aadb41246bd8b0b3eb9
4
+ data.tar.gz: ff7f466bddefecaa975670d6977abacc1fbf2bde393c1a5cfd4f3a4abe38af88
5
5
  SHA512:
6
- metadata.gz: a3e4470dd2868f1f7a5ab2d2ded5339d42330c1cd2ec239a63c9be589d6c64faf284ddaf3d891abac67669c637702041ee600685e21f3461680a2c9fb3dbe554
7
- data.tar.gz: d7ee1c97b9e3169fb1acf19dc1ca84abdd5fc5de35f4ded4f9ccdfbb959c3747a9e6697ca9071c79000a3a6520a8d3df4f9bf1316735469751c59fbc62d9e915
6
+ metadata.gz: 96b9d6cdfc740ecea0210a57a72277c75d313c3a8318a4ca69e8a1d1500ce0ab213c276e90b97a696eb365647553b3cd7ca45cd6a45366c52f4f86a62e15b15a
7
+ data.tar.gz: 1f430d38d063a362be2f286ccbfe2e3201b08049143c04fabbdc78289c4456b6a6b1d59f5a10ce2796e6531ca82f3ae570aa86163ae1e897361b44d6a73c7488
data/lib/weel.rb CHANGED
@@ -527,11 +527,11 @@ class WEEL
527
527
  end # }}}
528
528
 
529
529
  # Defines a branch of a parallel-Construct
530
- def parallel_branch(*vars,&block)# {{{
530
+ def parallel_branch(data=@__weel_data,&block)# {{{
531
531
  return if self.__weel_state == :stopping || self.__weel_state == :finishing || self.__weel_state == :stopped || Thread.current[:nolongernecessary]
532
532
  branch_parent = Thread.current
533
533
 
534
- branch_parent[:branches] << Thread.new(*vars) do |*local|
534
+ branch_parent[:branches] << Thread.new(data) do |*local|
535
535
  Thread.current.abort_on_exception = true
536
536
  Thread.current[:branch_search] = @__weel_search_positions.any?
537
537
  Thread.current[:branch_parent] = branch_parent
@@ -732,7 +732,7 @@ class WEEL
732
732
  nil
733
733
  rescue => err
734
734
  self.__weel_state = :stopping
735
- @__weel_connectionwrapper::inform_syntax_error(@__weel_connectionwrapper_args,Exception.new(err.message),nil)
735
+ @__weel_connectionwrapper::inform_syntax_error(@__weel_connectionwrapper_args,err,nil)
736
736
  nil
737
737
  end
738
738
  end #}}}
@@ -744,11 +744,11 @@ class WEEL
744
744
  rescue NameError => err # don't look into it, or it will explode
745
745
  # if you access $! here, BOOOM
746
746
  self.__weel_state = :stopping
747
- @__weel_connectionwrapper::inform_syntax_error(@__weel_connectionwrapper_args,Exception.new("eval_condition: `#{err.name}` is not a thing that can be used. Maybe it is meant to be a string and you forgot quotes?"),nil)
747
+ @__weel_connectionwrapper::inform_syntax_error(@__weel_connectionwrapper_args,Exception.new("protect_yield: `#{err.name}` is not a thing that can be used. Maybe it is meant to be a string and you forgot quotes?"),nil)
748
748
  nil
749
749
  rescue => err
750
750
  self.__weel_state = :stopping
751
- @__weel_connectionwrapper::inform_syntax_error(@__weel_connectionwrapper_args,Exception.new(err.message),nil)
751
+ @__weel_connectionwrapper::inform_syntax_error(@__weel_connectionwrapper_args,err,nil)
752
752
  nil
753
753
  end
754
754
  end #}}}
@@ -829,7 +829,7 @@ class WEEL
829
829
  @__weel_connectionwrapper::inform_position_change @__weel_connectionwrapper_args, :after => [wp]
830
830
  end
831
831
  when :call
832
- again = catch Signal::Again do
832
+ again = catch Signal::Again do # Will be nil if we do not throw (using default connectionwrapper)
833
833
  connectionwrapper.mem_guard
834
834
  params = connectionwrapper.prepare(@__weel_lock,@__weel_data,@__weel_endpoints,@__weel_status,Thread.current[:local],connectionwrapper.additional,prepare,endpoint,parameters)
835
835
 
@@ -894,7 +894,7 @@ class WEEL
894
894
  wp.detail = :after
895
895
  @__weel_connectionwrapper::inform_position_change @__weel_connectionwrapper_args, :after => [wp]
896
896
  end
897
- end # there is a catch
897
+ end while again == Signal::Again # there is a catch
898
898
  end
899
899
  raise Signal::Proceed
900
900
  rescue Signal::SkipManipulate, Signal::Proceed
@@ -1089,13 +1089,13 @@ public
1089
1089
  end
1090
1090
  rescue SyntaxError => se
1091
1091
  @dslr.__weel_state = :stopping
1092
- @dslr.__weel_connectionwrapper::inform_syntax_error(@dslr.__weel_connectionwrapper_args,Exception.new(se.message),code)
1092
+ @dslr.__weel_connectionwrapper::inform_syntax_error(@dslr.__weel_connectionwrapper_args,se,code)
1093
1093
  rescue NameError => err # don't look into it, or it will explode
1094
1094
  @dslr.__weel_state = :stopping
1095
1095
  @dslr.__weel_connectionwrapper::inform_syntax_error(@dslr.__weel_connectionwrapper_args,Exception.new("main: `#{err.name}` is not a thing that can be used. Maybe it is meant to be a string and you forgot quotes?"),code)
1096
1096
  rescue => err
1097
1097
  @dslr.__weel_state = :stopping
1098
- @dslr.__weel_connectionwrapper::inform_syntax_error(@dslr.__weel_connectionwrapper_args,Exception.new(err.message),code)
1098
+ @dslr.__weel_connectionwrapper::inform_syntax_error(@dslr.__weel_connectionwrapper_args,err,code)
1099
1099
  end
1100
1100
  if @dslr.__weel_state == :running || @dslr.__weel_state == :finishing
1101
1101
  ipc = { :unmark => [] }
data/weel.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "weel"
3
- s.version = "1.99.125"
3
+ s.version = "1.99.127"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.license = "LGPL-3.0-or-later"
6
6
  s.summary = "Workflow Execution Engine Library (WEEL)"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: weel
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.99.125
4
+ version: 1.99.127
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juergen eTM Mangler
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-09-19 00:00:00.000000000 Z
12
+ date: 2024-09-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: test-unit