cpee-handlerwrapper-opcua 0.1 → 0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e9486fd693ad758f8606465a4e1ab91b76630c8c86058b429c0c163b694ef4f0
4
- data.tar.gz: d5dddcb07d26ed7e3f119f7aae9b9ead68b9f89d367e37d69f66d54f86599be4
3
+ metadata.gz: 5097543e5a1b74cc025835261dc297194cb4ac7446187ca44a8d694ac86ce032
4
+ data.tar.gz: 5aefcf1dc9ffe6d088993a7b64d6ce4a976a552870faad76b0cf9e7a7d37ace6
5
5
  SHA512:
6
- metadata.gz: bc9a13724855dd7043bfbe5f2c929f89b043a676e8a3745f385dee8384f2340ebc77621131fdcd963ebe54501aeaefb4eb82945026ff9901ac466480c7dd991a
7
- data.tar.gz: 761142229b1e07199d1eaa40f4cbe50d741523847a3be334fdcc5c5c3bbad51f94488769d42cc2c36933575747c274ed30a12b8d090ccf5fde6a1d4c82bbe42d
6
+ metadata.gz: 7932110d1fb1fde2e2f7fed5f5d958b7b6f9047942e3dd2ab6b01392b51fa292e1395e17ed73e444b32f18b90b280939943a94736781e241264f271e6d9cbc1a
7
+ data.tar.gz: 607f6b0b17991b6b0226c7b8b4ba1a188f0a95b458a64e2d8dbd271773fa9448ce6ae3030bf62c1e64a4e4d817d39ad510a06126c3e8d409638a9e9504727556
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "cpee-handlerwrapper-opcua"
3
- s.version = "0.1"
3
+ s.version = "0.2"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.license = "LGPL-3.0"
6
6
  s.summary = "OPCUA for CPEE HandlerWrapper. Use opc.tcp-read|write|exececute:// links."
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
18
18
  s.email = 'juergen.mangler@gmail.com'
19
19
  s.homepage = 'https://cpee.org//cpee-handlerwrapper-opcua'
20
20
 
21
- s.add_runtime_dependency 'cpee', '~>1.5', '>= 1.5.0'
21
+ s.add_runtime_dependency 'cpee', '~>1.5', '>= 1.5.3'
22
22
  s.add_runtime_dependency 'opcua', '~>0', '>= 0.13'
23
23
  s.add_development_dependency 'rake', '~> 12'
24
24
  s.add_development_dependency 'rake-compiler', '~> 1.0'
@@ -14,7 +14,7 @@
14
14
 
15
15
  require 'opcua/client'
16
16
 
17
- class OPCUAHandlerWrapper < WEEL::HandlerWrapperBase
17
+ class DefaultHandlerWrapper < WEEL::HandlerWrapperBase
18
18
  def self::inform_state_change(arguments,newstate) # {{{
19
19
  controller = arguments[0]
20
20
  controller.serialize_state!
@@ -49,7 +49,7 @@ class OPCUAHandlerWrapper < WEEL::HandlerWrapperBase
49
49
 
50
50
  def prepare(readonly, endpoints, parameters)
51
51
  @handler_endpoint = endpoints.is_a?(Array) ? endpoints.map{ |ep| readonly.endpoints[ep] }.compact : readonly.endpoints[endpoints]
52
- parameters[:arguments].each do |ele|
52
+ parameters[:arguments]&.each do |ele|
53
53
  if ele.value.is_a?(Proc)
54
54
  ele.value = readonly.instance_exec &ele.value
55
55
  end
metadata CHANGED
@@ -1,35 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cpee-handlerwrapper-opcua
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.1'
4
+ version: '0.2'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juergen eTM Mangler
8
8
  autorequire:
9
9
  bindir: tools
10
10
  cert_chain: []
11
- date: 2019-10-07 00:00:00.000000000 Z
11
+ date: 2019-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cpee
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: 1.5.0
20
17
  - - "~>"
21
18
  - !ruby/object:Gem::Version
22
19
  version: '1.5'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 1.5.3
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- version: 1.5.0
30
27
  - - "~>"
31
28
  - !ruby/object:Gem::Version
32
29
  version: '1.5'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 1.5.3
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: opcua
35
35
  requirement: !ruby/object:Gem::Requirement