weel 1.99.158 → 1.99.159

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
  SHA256:
3
- metadata.gz: 3f9698d078dac139a60abb0af1f58b2ef86488cf816c7115c35984142dae1fa9
4
- data.tar.gz: 23e5b8577ddf3c2ee3bcff4599067a15fe7cc5529cc259e611e923d059034fb2
3
+ metadata.gz: fafdbf4bc9a94b4a5fce5eed31a8fbf89669f3da12851afc42df9e77a305ce52
4
+ data.tar.gz: 93104709ba1854a7c367e064a8f406bfd4772d6156a86751758089b5bbcecb21
5
5
  SHA512:
6
- metadata.gz: 07ed16e24b8a64def6d836f66b620ab0ee8ca47c8bb3c5e40da052188696f39683f55bfad447fb05556f5aeb8efc715c4ebf669d20e5bfc7591352efd32a5e07
7
- data.tar.gz: 516b34543d5a99f9208b4e4a6dd75a589e7842d191a64a1a7d7082074a694cf22312ae29baaf5c19ae9eec9021b3c79fd754beae15c70f6aa3f399de1cb319cb
6
+ metadata.gz: f39dd292ce02c906f629a6940071af46c4798fe3ad26b0f6d9e0b720b912203ecbcfcf6fc271ecefbc414fe402e4879d4038681dbfd548f578bdf0de9bafbff5
7
+ data.tar.gz: c9b0e23d365fba38ab66c5524d050b7aef3c11e23eb56024669f252ddd5430ad5c90bb670b8d96e35f5fcbaf20381bbe517a569022fac4319f0a057a6d8225da
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  All code in this package is provided under the LGPL-3 license.
2
- Please read the file COPYING.
2
+ Please read the file LICENSE.
3
3
 
4
4
  Tested for MRI 2.6, 2.7
5
5
 
@@ -1,15 +1,15 @@
1
1
  # This file is part of WEEL.
2
2
  #
3
3
  # WEEL is free software: you can redistribute it and/or modify it under the terms
4
- # of the GNU General Public License as published by the Free Software Foundation,
4
+ # of the GNU Lesser General Public License as published by the Free Software Foundation,
5
5
  # either version 3 of the License, or (at your option) any later version.
6
6
  #
7
7
  # WEEL is distributed in the hope that it will be useful, but WITHOUT ANY
8
8
  # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
9
- # PARTICULAR PURPOSE. See the GNU General Public License for more details.
9
+ # PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
10
10
  #
11
- # You should have received a copy of the GNU General Public License along with
12
- # WEEL (file COPYING in the main directory). If not, see
11
+ # You should have received a copy of the GNU Lesser General Public License along with
12
+ # WEEL (file LICENSE in the main directory). If not, see
13
13
  # <http://www.gnu.org/licenses/>.
14
14
 
15
15
  require "pp"
@@ -1,15 +1,15 @@
1
1
  # This file is part of WEEL.
2
2
  #
3
3
  # WEEL is free software: you can redistribute it and/or modify it under the terms
4
- # of the GNU General Public License as published by the Free Software Foundation,
4
+ # of the GNU Lesser General Public License as published by the Free Software Foundation,
5
5
  # either version 3 of the License, or (at your option) any later version.
6
6
  #
7
7
  # WEEL is distributed in the hope that it will be useful, but WITHOUT ANY
8
8
  # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
9
- # PARTICULAR PURPOSE. See the GNU General Public License for more details.
9
+ # PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
10
10
  #
11
- # You should have received a copy of the GNU General Public License along with
12
- # WEEL (file COPYING in the main directory). If not, see
11
+ # You should have received a copy of the GNU Lesser General Public License along with
12
+ # WEEL (file LICENSE in the main directory). If not, see
13
13
  # <http://www.gnu.org/licenses/>.
14
14
 
15
15
  require ::File.dirname(__FILE__) + '/../lib/weel'
data/example/runme.rb CHANGED
@@ -2,15 +2,15 @@
2
2
  # This file is part of WEEL.
3
3
  #
4
4
  # WEEL is free software: you can redistribute it and/or modify it under the terms
5
- # of the GNU General Public License as published by the Free Software Foundation,
5
+ # of the GNU Lesser General Public License as published by the Free Software Foundation,
6
6
  # either version 3 of the License, or (at your option) any later version.
7
7
  #
8
8
  # WEEL is distributed in the hope that it will be useful, but WITHOUT ANY
9
9
  # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
10
- # PARTICULAR PURPOSE. See the GNU General Public License for more details.
10
+ # PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
11
11
  #
12
- # You should have received a copy of the GNU General Public License along with
13
- # WEEL (file COPYING in the main directory). If not, see
12
+ # You should have received a copy of the GNU Lesser General Public License along with
13
+ # WEEL (file LICENSE in the main directory). If not, see
14
14
  # <http://www.gnu.org/licenses/>.
15
15
 
16
16
  require ::File.dirname(__FILE__) + '/SimpleWorkflow'
data/lib/weel.rb CHANGED
@@ -3,15 +3,15 @@
3
3
  # This file is part of WEEL.
4
4
  #
5
5
  # WEEL is free software: you can redistribute it and/or modify it under the terms
6
- # of the GNU General Public License as published by the Free Software Foundation,
6
+ # of the GNU Lesser General Public License as published by the Free Software Foundation,
7
7
  # either version 3 of the License, or (at your option) any later version.
8
8
  #
9
9
  # WEEL is distributed in the hope that it will be useful, but WITHOUT ANY
10
10
  # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11
- # PARTICULAR PURPOSE. See the GNU General Public License for more details.
11
+ # PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
12
12
  #
13
- # You should have received a copy of the GNU General Public License along with
14
- # WEEL (file COPYING in the main directory). If not, see
13
+ # You should have received a copy of the GNU Lesser General Public License along with
14
+ # WEEL (file LICENSE in the main directory). If not, see
15
15
  # <http://www.gnu.org/licenses/>.
16
16
 
17
17
  require 'thread'
@@ -354,7 +354,7 @@ class WEEL
354
354
  def mem_guard; end
355
355
 
356
356
  def prepare(lock,dataelements,endpoints,status,local,additional,code,exec_endpoints,exec_parameters); end
357
- def test_condition(eid,dataelements,endpoints,local,additional,code,args={}); ReadStructure.new(dataelements,endpoints,local,additional).instance_eval(code); end
357
+ def test_condition(eid,dataelements,endpoints,local,additional,code,args={},props={}); ReadStructure.new(dataelements,endpoints,local,additional).instance_eval(code); end
358
358
  def manipulate(readonly,lock,dataelements,endpoints,status,local,additional,code,where,result=nil,options=nil)
359
359
  lock.synchronize do
360
360
  if readonly
@@ -646,7 +646,7 @@ class WEEL
646
646
  Thread.current[:mutex].synchronize do
647
647
  return if Thread.current[:alternative_mode][-1] == :exclusive && Thread.current[:alternative_executed][-1] == true
648
648
  if condition.is_a?(String)
649
- condition = __weel_eval_condition(eid, condition, args)
649
+ condition = __weel_eval_condition(eid, condition, args, {:type => 'alternative', :count => nil})
650
650
  end
651
651
  Thread.current[:alternative_executed][-1] = true if condition
652
652
  end
@@ -729,7 +729,7 @@ class WEEL
729
729
  catch :escape do
730
730
  case condition[1]
731
731
  when :pre_test
732
- while __weel_eval_condition(eid, condition[0],args) && self.__weel_state != :stopping && self.__weel_state != :stopped && self.__weel_state != :finishing && !Thread.current[:nolongernecessary]
732
+ while __weel_eval_condition(eid, condition[0],args,{:type => 'loop', :variant => 'head', :count => loop_guard}) && self.__weel_state != :stopping && self.__weel_state != :stopped && self.__weel_state != :finishing && !Thread.current[:nolongernecessary]
733
733
  loop_guard += 1
734
734
  __weel_protect_yield(&block)
735
735
  sleep 1 if @__weel_connectionwrapper::loop_guard(@__weel_connectionwrapper_args,loop_id,loop_guard)
@@ -739,7 +739,7 @@ class WEEL
739
739
  loop_guard += 1
740
740
  __weel_protect_yield(&block)
741
741
  sleep 1 if @__weel_connectionwrapper::loop_guard(@__weel_connectionwrapper_args,loop_id,loop_guard)
742
- end while __weel_eval_condition(eid, condition[0],args) && self.__weel_state != :stopping && self.__weel_state != :stopped && self.__weel_state != :finishing && !Thread.current[:nolongernecessary]
742
+ end while __weel_eval_condition(eid, condition[0],args,{:type => 'loop', :variant => 'tail', :count => loop_guard}) && self.__weel_state != :stopping && self.__weel_state != :stopped && self.__weel_state != :finishing && !Thread.current[:nolongernecessary]
743
743
  end
744
744
  end
745
745
  end # }}}
@@ -800,10 +800,10 @@ class WEEL
800
800
  end
801
801
  end #}}}
802
802
 
803
- def __weel_eval_condition(eid,condition,args={}) #{{{
803
+ def __weel_eval_condition(eid,condition,args={},props={}) #{{{
804
804
  begin
805
805
  connectionwrapper = @__weel_connectionwrapper.new @__weel_connectionwrapper_args
806
- connectionwrapper.test_condition(eid,@__weel_data,@__weel_endpoints,Thread.current[:local],connectionwrapper.additional,condition,args)
806
+ connectionwrapper.test_condition(eid,@__weel_data,@__weel_endpoints,Thread.current[:local],connectionwrapper.additional,condition,args,props)
807
807
  rescue NameError => err # don't look into it, or it will explode
808
808
  self.__weel_state = :stopping
809
809
  @__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)
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.158"
3
+ s.version = "1.99.159"
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)"
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
9
9
 
10
10
  s.required_ruby_version = '>=2.5.0'
11
11
 
12
- s.files = Dir['{example/**/*,lib/weel.rb}'] + %w(COPYING Changelog FEATURES INSTALL Rakefile weel.gemspec README.md AUTHORS)
12
+ s.files = Dir['{example/**/*,lib/weel.rb}'] + %w(LICENSE Changelog FEATURES INSTALL Rakefile weel.gemspec README.md AUTHORS)
13
13
  s.require_path = 'lib'
14
14
  s.extra_rdoc_files = ['README.md']
15
15
  s.test_files = Dir['{test/*,test/*/tc_*.rb}']
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.158
4
+ version: 1.99.159
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juergen eTM Mangler
@@ -60,10 +60,10 @@ extra_rdoc_files:
60
60
  - README.md
61
61
  files:
62
62
  - AUTHORS
63
- - COPYING
64
63
  - Changelog
65
64
  - FEATURES
66
65
  - INSTALL
66
+ - LICENSE
67
67
  - README.md
68
68
  - Rakefile
69
69
  - example/SimpleHandlerWrapper.rb
File without changes