opcua 0.2 → 0.4

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: 62ec58f6b8343aa965a41ffd74f8a98b3cf45deebbc3a54c665ffaa04d842223
4
- data.tar.gz: 4b5ff4c5bb4c502ff461c288662d1f949ef5bd86a72c1bf52473985be0f3864e
3
+ metadata.gz: 463ec505c576b9edfc74c7d8e7651bc826f9c9feb3be75525286a2c87bb31e8d
4
+ data.tar.gz: 5f0aa0fb2fa8dd63fad3a9d61c8d5720bb93ba3325b4a5a87d68d27d6c66f90c
5
5
  SHA512:
6
- metadata.gz: 26fefae8bc64c2e805d135f197b8f73c0023981a4e89212704583ebc826e2e0645ec33353767c4a7ec2768d4568fe9cd6523450b9f6ea39e2af94e4b47ca7cb1
7
- data.tar.gz: b5ee6866c2b2c96e5b60cb6d93b7f9c471b6d7d38f5d72dad44e8750f5df9c1d8df3294cc654da28a5547b9698af8e3eedd81fb8aede1fc95db82ec1508d62cf
6
+ metadata.gz: bc7186f633586d8f7a03b50737089f1ffefc2f0afbb2893b608c53d30dabd1e878182530dcded718440f10243adc752408ee7b170fe1e9b8213fc2d6bd3cb272
7
+ data.tar.gz: 7fed3d184cf5b476d1390b429507d9e635a67d9df2c39d12eded27f44b3192d7805b9b98fff5de1175684bb1e925b5925f1220f8483433d982e17c9af710d0e9
data/Rakefile CHANGED
@@ -17,12 +17,13 @@ Rake.application.clear
17
17
 
18
18
  task :default => [:gem]
19
19
 
20
- Gem::PackageTask.new(spec) do |pkg|
20
+ pkg = Gem::PackageTask.new(spec) { |pkg|
21
21
  pkg.need_zip = true
22
22
  pkg.need_tar = true
23
+ `mkdir pkg`
23
24
  `rm pkg/* -rf`
24
- `ln -sf #{pkg.name}.gem #{pkg.package_dir}/#{spec.name}.gem`
25
- end
25
+ `ln -sf #{pkg.name}.gem pkg/#{spec.name}.gem`
26
+ }
26
27
 
27
28
  task :push => :gem do |r|
28
29
  `gem push pkg/opcua.gem`
@@ -1,17 +1,17 @@
1
1
  #!/usr/bin/ruby
2
2
  require_relative '../lib/opcua/client'
3
3
 
4
- ### username & pass in url
4
+ ### username & pass in url (e.g. siemens)
5
5
  # client = OPCUA::Client.new("opc.tcp://OpcUaClient:SUNRISE@localhost:4840")
6
6
 
7
7
  client = OPCUA::Client.new("opc.tcp://localhost:4840")
8
+ client.subscription_interval = 100 # default 500
8
9
 
9
- node = client.get 2, 874565491
10
+ node = client.get 2, 874565491 # get node from nodeid
10
11
  node.on_change do |value,timestamp|
11
12
  p value
12
13
  end
13
14
 
14
- client.publishing_interval = 100
15
15
  while true
16
16
  client.check_subscription
17
17
  sleep client.publishing_interval / 1000
Binary file
Binary file
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "opcua"
3
- s.version = "0.2"
3
+ s.version = "0.4"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.license = "LGPL-3.0"
6
6
  s.summary = "Preliminary release of opcua (open62541) ruby bindings. C performance, Ruby elegance, simplicity, and productivity."
@@ -9,7 +9,6 @@ Gem::Specification.new do |s|
9
9
 
10
10
  s.files = Dir['{example/**/*,tools/**/*,lib/**/*,contrib/logo*}'] + %w(COPYING Rakefile opcua.gemspec README.md)
11
11
  s.extensions = Dir["ext/**/extconf.rb"]
12
- p s.extensions
13
12
  s.require_path = 'lib'
14
13
  s.extra_rdoc_files = ['README.md']
15
14
  s.bindir = 'tools'
@@ -21,6 +20,7 @@ Gem::Specification.new do |s|
21
20
  s.email = 'juergen.mangler@gmail.com'
22
21
  s.homepage = 'https://github.com/etm/opcua-smart'
23
22
 
24
- s.add_runtime_dependency 'riddl', '~> 0.99'
23
+ s.add_runtime_dependency 'daemonite', '~> 0'
24
+ s.add_development_dependency 'rake', '~> 12'
25
25
  s.add_development_dependency 'rake-compiler', '~> 1.0'
26
26
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opcua
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.2'
4
+ version: '0.4'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juergen eTM Mangler
@@ -9,22 +9,36 @@ authors:
9
9
  autorequire:
10
10
  bindir: tools
11
11
  cert_chain: []
12
- date: 2019-04-23 00:00:00.000000000 Z
12
+ date: 2019-04-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: riddl
15
+ name: daemonite
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: '0.99'
20
+ version: '0'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: '0.99'
27
+ version: '0'
28
+ - !ruby/object:Gem::Dependency
29
+ name: rake
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - "~>"
33
+ - !ruby/object:Gem::Version
34
+ version: '12'
35
+ type: :development
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - "~>"
40
+ - !ruby/object:Gem::Version
41
+ version: '12'
28
42
  - !ruby/object:Gem::Dependency
29
43
  name: rake-compiler
30
44
  requirement: !ruby/object:Gem::Requirement