opcua 0.15 → 0.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -0
- data/cert/cert.h +52 -52
- data/cert/cert_key.h +99 -99
- data/example/client_method.rb +3 -3
- data/ext/opcua/client/client.c +17 -7
- data/ext/opcua/server/server.c +18 -1
- data/opcua.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eacc56e17f6089d460714d4f7a5d62860ef4ab5949a6567fa239f981b66c6a54
|
4
|
+
data.tar.gz: ff613e4dc01c4298d97ee35a63f31650f549ad8a7c3d14b791a5795e9563e4eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2989056d754063f6be7a5d0a75700cb5186c87749e794c683ed4cf233629f37c97178e825e49fc55d54ad04e885698faa78a3b24e470a0805dfd4863c2a2de9
|
7
|
+
data.tar.gz: 333b4e4c447d3ae0651496d960110212135c37e49a765a1b2c74d71991a56c440789af4e9079a8b06583ccd3f201038f3b1ff160054e6ac601df0ba6221a69af
|
data/README.md
CHANGED
@@ -30,6 +30,14 @@ Copyright (C) 2019-* Jürgen "eTM" Mangler <juergen.mangler@gmail.com>. opcua-sm
|
|
30
30
|
|
31
31
|
## Installation
|
32
32
|
|
33
|
+
|
34
|
+
```sh
|
35
|
+
# Debian/Ubuntu
|
36
|
+
apt install build-essential cmake-curses-gui libmbedtls-dev libxml2-dev libxslt-dev libz-dev libssl-dev libicu-dev
|
37
|
+
# Fedora/Redhat
|
38
|
+
dnf install @buildsys-build @development-tools cmake libxml2-devel libxslt-devel zlib-devel libicu-devel mbedtls-devel
|
39
|
+
```
|
40
|
+
|
33
41
|
Dependency: https://github.com/open62541/open62541 > 0.4 (master branch as of 2019-04-26)
|
34
42
|
|
35
43
|
```sh
|
data/cert/cert.h
CHANGED
@@ -1,70 +1,70 @@
|
|
1
1
|
unsigned char cert_der[] = {
|
2
2
|
0x30, 0x82, 0x03, 0x18, 0x30, 0x82, 0x02, 0x00, 0xa0, 0x03, 0x02, 0x01,
|
3
|
-
0x02, 0x02, 0x14,
|
4
|
-
|
3
|
+
0x02, 0x02, 0x14, 0x0c, 0x57, 0xd8, 0x38, 0xb3, 0xbc, 0xaf, 0xad, 0xbf,
|
4
|
+
0xcd, 0x64, 0x91, 0xbf, 0x41, 0xf8, 0x55, 0x1c, 0x74, 0x1f, 0x07, 0x30,
|
5
5
|
0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x0b,
|
6
6
|
0x05, 0x00, 0x30, 0x15, 0x31, 0x13, 0x30, 0x11, 0x06, 0x03, 0x55, 0x04,
|
7
7
|
0x03, 0x0c, 0x0a, 0x72, 0x75, 0x62, 0x79, 0x2d, 0x6f, 0x70, 0x63, 0x75,
|
8
|
-
0x61, 0x30, 0x1e, 0x17, 0x0d, 0x31, 0x39, 0x30,
|
9
|
-
|
10
|
-
|
8
|
+
0x61, 0x30, 0x1e, 0x17, 0x0d, 0x31, 0x39, 0x31, 0x30, 0x30, 0x32, 0x31,
|
9
|
+
0x30, 0x34, 0x35, 0x31, 0x31, 0x5a, 0x17, 0x0d, 0x32, 0x30, 0x30, 0x39,
|
10
|
+
0x32, 0x31, 0x31, 0x30, 0x34, 0x35, 0x31, 0x31, 0x5a, 0x30, 0x15, 0x31,
|
11
11
|
0x13, 0x30, 0x11, 0x06, 0x03, 0x55, 0x04, 0x03, 0x0c, 0x0a, 0x72, 0x75,
|
12
12
|
0x62, 0x79, 0x2d, 0x6f, 0x70, 0x63, 0x75, 0x61, 0x30, 0x82, 0x01, 0x22,
|
13
13
|
0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01,
|
14
14
|
0x01, 0x05, 0x00, 0x03, 0x82,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0x0c, 0x22, 0xf3, 0xff, 0x03, 0xa3,
|
26
|
+
0x91, 0x52, 0x1b, 0xa5, 0x80, 0x72, 0xf4, 0x95, 0x81, 0xfa, 0x25, 0xcc,
|
27
|
+
0x52, 0xcc, 0x92, 0xf2, 0xcb, 0xa0, 0x9a, 0x86, 0xf4, 0x78, 0x48, 0x0a,
|
28
|
+
0x01, 0x0f, 0x63, 0x0d, 0x44, 0xc9, 0xa7, 0x68, 0x41, 0xd9, 0x7a, 0xca,
|
29
|
+
0x0a, 0x21, 0xfd, 0x74, 0x6f, 0x14, 0x9d, 0x6a, 0x01, 0xfa, 0x98, 0x06,
|
30
|
+
0xba, 0xd3, 0x16, 0x62, 0xb6, 0x53, 0x1d, 0xe0, 0x9c, 0x6f, 0x4a, 0xea,
|
31
|
+
0x88, 0x9d, 0x12, 0x60, 0x06, 0x72, 0xb2, 0x36, 0xa1, 0xf3, 0xae, 0x60,
|
32
|
+
0x9a, 0xf8, 0x33, 0xc3, 0xbc, 0xee, 0xce, 0xf9, 0xa5, 0x7e, 0xea, 0xbd,
|
33
|
+
0x3c, 0xdd, 0xe6, 0x09, 0xa3, 0x68, 0xf8, 0xbf, 0xe8, 0x08, 0x3e, 0x94,
|
34
|
+
0xca, 0xcf, 0x84, 0xbb, 0x11, 0x40, 0x45, 0x46, 0x7d, 0xd1, 0x77, 0x33,
|
35
|
+
0x71, 0x14, 0x02, 0x4f, 0xa6, 0xaf, 0x4d, 0x73, 0xf2, 0xf5, 0x98, 0xeb,
|
36
|
+
0x5f, 0xeb, 0xf3, 0xb4, 0xb6, 0x62, 0x92, 0x15, 0x55, 0x02, 0x03, 0x01,
|
37
37
|
0x00, 0x01, 0xa3, 0x60, 0x30, 0x5e, 0x30, 0x1d, 0x06, 0x03, 0x55, 0x1d,
|
38
|
-
0x0e, 0x04, 0x16, 0x04, 0x14,
|
39
|
-
|
40
|
-
|
38
|
+
0x0e, 0x04, 0x16, 0x04, 0x14, 0x35, 0x61, 0xa6, 0xff, 0xf7, 0x22, 0xda,
|
39
|
+
0x39, 0xf1, 0x85, 0x87, 0xdd, 0x4a, 0x43, 0xcc, 0xd3, 0x35, 0xd0, 0x5d,
|
40
|
+
0xb3, 0x30, 0x0f, 0x06, 0x03, 0x55, 0x1d, 0x13, 0x01, 0x01, 0xff, 0x04,
|
41
41
|
0x05, 0x30, 0x03, 0x01, 0x01, 0xff, 0x30, 0x1c, 0x06, 0x03, 0x55, 0x1d,
|
42
42
|
0x11, 0x04, 0x15, 0x30, 0x13, 0x86, 0x11, 0x72, 0x75, 0x62, 0x79, 0x2d,
|
43
43
|
0x6f, 0x70, 0x63, 0x75, 0x61, 0x3a, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74,
|
44
44
|
0x30, 0x0e, 0x06, 0x03, 0x55, 0x1d, 0x0f, 0x01, 0x01, 0xff, 0x04, 0x04,
|
45
45
|
0x03, 0x02, 0x05, 0xa0, 0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86,
|
46
46
|
0xf7, 0x0d, 0x01, 0x01, 0x0b, 0x05, 0x00, 0x03, 0x82, 0x01, 0x01, 0x00,
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
47
|
+
0x87, 0xb2, 0xfb, 0xa2, 0xaa, 0x95, 0x5c, 0xc8, 0x79, 0x4f, 0x65, 0x95,
|
48
|
+
0xc7, 0x75, 0xbb, 0x9f, 0x8f, 0x08, 0x20, 0x42, 0x1a, 0xb0, 0x28, 0x58,
|
49
|
+
0xe3, 0xbf, 0x1f, 0x9f, 0xbb, 0x37, 0xb8, 0x1d, 0x45, 0x82, 0x02, 0x8c,
|
50
|
+
0xbe, 0x34, 0x15, 0xb8, 0x8d, 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0x1d, 0xba, 0xf6, 0xb2, 0x59, 0xce, 0x1e, 0x5e, 0xc4, 0xfb, 0x47,
|
65
|
+
0x3a, 0xcb, 0xad, 0x1e, 0x07, 0xd8, 0x65, 0xf6, 0x1c, 0x58, 0x6b, 0x96,
|
66
|
+
0xaf, 0xd4, 0x87, 0x92, 0x45, 0xd2, 0xc6, 0x0d, 0x9b, 0xb6, 0x07, 0x03,
|
67
|
+
0xf0, 0x6f, 0x52, 0xb4, 0x98, 0x68, 0x1c, 0x63, 0x09, 0xc6, 0x9d, 0xf1,
|
68
|
+
0xe9, 0x70, 0xf4, 0x79
|
69
69
|
};
|
70
70
|
unsigned int cert_der_len = 796;
|
data/cert/cert_key.h
CHANGED
@@ -1,103 +1,103 @@
|
|
1
1
|
unsigned char cert_key_der[] = {
|
2
2
|
0x30, 0x82, 0x04, 0xa5, 0x02, 0x01, 0x00, 0x02, 0x82, 0x01, 0x01, 0x00,
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-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, 0x34, 0xa0, 0xf7, 0x6e, 0x20, 0xa1, 0x06, 0x10, 0x11, 0xb9, 0x04,
|
42
|
+
0x5b, 0xe3, 0xde, 0x89, 0xb5, 0xae, 0x63, 0x27, 0x71, 0xf3, 0x4b, 0xe8,
|
43
|
+
0xb1, 0xca, 0xf6, 0x77, 0x31, 0xd2, 0xc9, 0xf3, 0x49, 0x5f, 0x60, 0xeb,
|
44
|
+
0xd3, 0x06, 0x33, 0x41, 0xab, 0x21, 0x88, 0x35, 0x92, 0x44, 0x9b, 0x66,
|
45
|
+
0x2e, 0x49, 0xe6, 0xe3, 0x7b, 0xea, 0xaf, 0x30, 0x7f, 0x5f, 0xec, 0x52,
|
46
|
+
0xdf, 0x91, 0xb7, 0xc7, 0x28, 0x69, 0x02, 0x81, 0x81, 0x00, 0xee, 0x41,
|
47
|
+
0x86, 0xc3, 0xeb, 0x5b, 0x81, 0x9b, 0x32, 0xe3, 0xbc, 0xf3, 0x68, 0x8d,
|
48
|
+
0x46, 0xa1, 0xcb, 0x3f, 0x49, 0x3e, 0xef, 0x42, 0x94, 0x72, 0xd2, 0x95,
|
49
|
+
0x22, 0x77, 0xeb, 0x32, 0xfa, 0xd8, 0x25, 0x49, 0xb1, 0xc4, 0xf1, 0x65,
|
50
|
+
0xf6, 0xe8, 0x83, 0xe9, 0xba, 0x07, 0xe0, 0x38, 0xc1, 0x9e, 0x03, 0x1e,
|
51
|
+
0xab, 0x8b, 0xdb, 0x14, 0x5d, 0x52, 0x7f, 0x52, 0xf0, 0x43, 0x95, 0x63,
|
52
|
+
0xac, 0x56, 0x43, 0xc8, 0x94, 0xf1, 0x16, 0x29, 0x54, 0x20, 0x29, 0x14,
|
53
|
+
0x0a, 0x47, 0x09, 0xfa, 0x54, 0x3d, 0x14, 0xb2, 0xfa, 0x69, 0x2d, 0xe5,
|
54
|
+
0xf6, 0x87, 0x78, 0x69, 0xb4, 0x90, 0xf6, 0xd3, 0xbb, 0x79, 0x8e, 0x67,
|
55
|
+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 0xc2, 0xde, 0x19, 0x43, 0xd1,
|
83
|
+
0xd1, 0x93, 0x80, 0x05, 0x8e, 0xed, 0x00, 0x27, 0x99, 0x27, 0x7d, 0x6b,
|
84
|
+
0xf0, 0x70, 0xa2, 0x26, 0x1b, 0x82, 0x0f, 0x24, 0x07, 0x28, 0x47, 0x62,
|
85
|
+
0x5f, 0x8d, 0x56, 0x1d, 0x87, 0x60, 0x0a, 0x3f, 0x21, 0xdc, 0xba, 0xac,
|
86
|
+
0x47, 0xf6, 0x44, 0x36, 0x82, 0x4d, 0x9d, 0xe6, 0x91, 0x20, 0xf4, 0xd1,
|
87
|
+
0x99, 0x89, 0xfd, 0xec, 0xf8, 0xaf, 0xf2, 0x60, 0xb2, 0xa4, 0xae, 0x73,
|
88
|
+
0x65, 0xcf, 0xa0, 0xd6, 0xd8, 0xb2, 0x2a, 0x2a, 0x92, 0x02, 0x51, 0x1e,
|
89
|
+
0xe1, 0x57, 0x0b, 0x8f, 0x69, 0x7c, 0xd3, 0x80, 0xa4, 0x5f, 0x9f, 0x0f,
|
90
|
+
0xbc, 0x12, 0x26, 0x43, 0x7f, 0x02, 0x81, 0x81, 0x00, 0x9e, 0xd1, 0x72,
|
91
|
+
0x49, 0x64, 0x87, 0x19, 0x86, 0x03, 0xca, 0xbe, 0xf1, 0x4d, 0x38, 0xec,
|
92
|
+
0xb1, 0x80, 0x5b, 0xd3, 0x3b, 0x46, 0xc8, 0xbc, 0xd0, 0x29, 0x2c, 0x00,
|
93
|
+
0xb8, 0xf2, 0x65, 0x15, 0x6a, 0x83, 0x46, 0x53, 0x33, 0xb9, 0xc9, 0x38,
|
94
|
+
0x36, 0x1c, 0x9f, 0x9f, 0x9d, 0xbe, 0x7d, 0x40, 0xa1, 0xdc, 0x01, 0x31,
|
95
|
+
0x48, 0x1f, 0x29, 0x31, 0x21, 0x86, 0x40, 0xaf, 0x30, 0x25, 0x9b, 0x29,
|
96
|
+
0x04, 0x70, 0x27, 0x5c, 0x9c, 0x72, 0x1d, 0x00, 0x6a, 0xbb, 0xf0, 0xf7,
|
97
|
+
0x64, 0x26, 0xfe, 0x27, 0x1a, 0x29, 0x49, 0xe7, 0x60, 0x97, 0x96, 0xf3,
|
98
|
+
0x66, 0x01, 0x33, 0xd5, 0x6f, 0x80, 0x83, 0xf3, 0xaf, 0xd4, 0xb3, 0xd6,
|
99
|
+
0x33, 0xd2, 0xd0, 0xfe, 0xae, 0x78, 0xc3, 0xa7, 0x5f, 0xf6, 0x20, 0xa6,
|
100
|
+
0xc7, 0xcf, 0xf2, 0xcb, 0x03, 0x3d, 0x13, 0x7f, 0x2c, 0xb6, 0x64, 0x73,
|
101
|
+
0x2b, 0xa1, 0x19, 0x27, 0xe5
|
102
102
|
};
|
103
103
|
unsigned int cert_key_der_len = 1193;
|
data/example/client_method.rb
CHANGED
data/ext/opcua/client/client.c
CHANGED
@@ -502,7 +502,11 @@ static VALUE node_call(int argc, VALUE* argv, VALUE self) { //{{{
|
|
502
502
|
Data_Get_Struct(self, node_struct, ns);
|
503
503
|
|
504
504
|
UA_NodeId parent;
|
505
|
-
client_node_get_reference_by_type(ns->master->master, ns->id, UA_NODEID_NUMERIC(0,UA_NS0ID_HASCOMPONENT), &parent, true)
|
505
|
+
if (!client_node_get_reference_by_type(ns->master->master, ns->id, UA_NODEID_NUMERIC(0,UA_NS0ID_HASCOMPONENT), &parent, true)) {
|
506
|
+
if (!client_node_get_reference_by_type(ns->master->master, ns->id, UA_NODEID_NUMERIC(0,UA_NS0ID_HASORDEREDCOMPONENT), &parent, true)) {
|
507
|
+
rb_raise(rb_eRuntimeError, "Cant find parent node, neither hascomponent nor hasorderedcomponent is there!");
|
508
|
+
}
|
509
|
+
}
|
506
510
|
|
507
511
|
UA_NodeId ia;
|
508
512
|
client_node_get_reference_by_name(ns->master->master, ns->id, UA_QUALIFIEDNAME(0,"InputArguments"), &ia, false);
|
@@ -525,21 +529,27 @@ static VALUE node_call(int argc, VALUE* argv, VALUE self) { //{{{
|
|
525
529
|
value_to_variant(RARRAY_AREF(splat, i),&inputArguments[i],proposal[i]);
|
526
530
|
}
|
527
531
|
|
532
|
+
size_t outputSize;
|
533
|
+
UA_Variant *output;
|
534
|
+
|
528
535
|
retval = UA_Client_call(
|
529
536
|
ns->master->master,
|
530
537
|
parent,
|
531
538
|
ns->id,
|
532
539
|
RARRAY_LEN(splat),
|
533
540
|
(UA_Variant *)&inputArguments,
|
534
|
-
|
535
|
-
|
541
|
+
&outputSize,
|
542
|
+
&output
|
536
543
|
);
|
537
544
|
|
538
|
-
|
539
|
-
|
540
|
-
|
545
|
+
if (retval == UA_STATUSCODE_GOOD && outputSize > 0) {
|
546
|
+
VALUE ret = rb_ary_new2(outputSize);
|
547
|
+
for (int i=0; i<outputSize; i++) {
|
548
|
+
rb_ary_store(ret,i,rb_ary_entry(extract_value(output[i]),0));
|
549
|
+
}
|
550
|
+
return rb_ary_entry(ret,0);
|
541
551
|
} else {
|
542
|
-
return
|
552
|
+
return Qnil;
|
543
553
|
}
|
544
554
|
} //}}}
|
545
555
|
|
data/ext/opcua/server/server.c
CHANGED
@@ -861,7 +861,7 @@ static VALUE server_add_namespace(VALUE self, VALUE name) { //{{{
|
|
861
861
|
char *nstr = (char *)StringValuePtr(str);
|
862
862
|
|
863
863
|
pss->default_ns = UA_Server_addNamespace(pss->master, nstr);
|
864
|
-
return
|
864
|
+
return INT2NUM(pss->default_ns);
|
865
865
|
} //}}}
|
866
866
|
static VALUE server_types(VALUE self) { //{{{
|
867
867
|
server_struct *pss;
|
@@ -914,6 +914,21 @@ static VALUE server_namespaces(VALUE self) { //{{{
|
|
914
914
|
RB_OBJ_FREEZE(ret);
|
915
915
|
return rb_ary_entry(ret,0);
|
916
916
|
} //}}}
|
917
|
+
static VALUE server_active_namespace(VALUE self) { //{{{
|
918
|
+
server_struct *pss;
|
919
|
+
Data_Get_Struct(self, server_struct, pss);
|
920
|
+
return UINT2NUM(pss->default_ns);
|
921
|
+
} //}}}
|
922
|
+
static VALUE server_active_namespace_set(VALUE self, VALUE val) { //{{{
|
923
|
+
server_struct *pss;
|
924
|
+
Data_Get_Struct(self, server_struct, pss);
|
925
|
+
|
926
|
+
if (NIL_P(val) || TYPE(val) != T_FIXNUM)
|
927
|
+
rb_raise(rb_eTypeError, "namespace is not an integer");
|
928
|
+
|
929
|
+
pss->default_ns = NUM2UINT(val);
|
930
|
+
return self;
|
931
|
+
} //}}}
|
917
932
|
|
918
933
|
void Init_server(void) {
|
919
934
|
mOPCUA = rb_define_module("OPCUA");
|
@@ -941,6 +956,8 @@ void Init_server(void) {
|
|
941
956
|
rb_define_method(cServer, "initialize", server_init, 0);
|
942
957
|
rb_define_method(cServer, "run", server_run, 0);
|
943
958
|
rb_define_method(cServer, "add_namespace", server_add_namespace, 1);
|
959
|
+
rb_define_method(cServer, "active_namespace", server_active_namespace, 0);
|
960
|
+
rb_define_method(cServer, "active_namespace=", server_active_namespace_set, 1);
|
944
961
|
rb_define_method(cServer, "types", server_types, 0);
|
945
962
|
rb_define_method(cServer, "references", server_references, 0);
|
946
963
|
rb_define_method(cServer, "objects", server_objects, 0);
|
data/opcua.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "opcua"
|
3
|
-
s.version = "0.
|
3
|
+
s.version = "0.16"
|
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."
|
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.
|
4
|
+
version: '0.16'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juergen eTM Mangler
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: tools
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-
|
12
|
+
date: 2019-10-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: daemonite
|