liberic 0.1.2 → 0.1.3
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 +4 -4
- data/lib/liberic/process.rb +4 -3
- data/lib/liberic/sdk/api.rb +1 -2
- data/lib/liberic/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3806ba991f49cabfee1a737dd8abb31ae6c75309
|
4
|
+
data.tar.gz: ed6023e6ae68899f9651c2656e88266dc04d20f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f040473e14123084926ceb01fb4f9981e4b3d20a5bcff841aaaa40ffe83e64319debe9ebaefeabc73ec3e55405c1dcb3511d40387cffb2f7db40cac26c34939f
|
7
|
+
data.tar.gz: 142ecf2bcc3ada592b32e4ef7015a1e48e5a0b511eedb0348b652d682434d7dc1c680fafcf394c0a2be2201a70bf53d5ea4c92da690de17ce0a275dc0890b8eb
|
data/lib/liberic/process.rb
CHANGED
@@ -64,9 +64,9 @@ module Liberic
|
|
64
64
|
result = Helpers::Invocation.with_result_buffer(false) do |local_buffer|
|
65
65
|
SDK::API.bearbeite_vorgang(@xml, @type,
|
66
66
|
eric_action,
|
67
|
-
print_params,
|
67
|
+
(action == :submit ? nil : print_params),
|
68
68
|
options[:encryption],
|
69
|
-
nil, # transferHandle
|
69
|
+
(action == :submit ? FFI::MemoryPointer.new(:uint32, 1) : nil), # transferHandle
|
70
70
|
local_buffer,
|
71
71
|
server_buffer)
|
72
72
|
end
|
@@ -84,7 +84,8 @@ module Liberic
|
|
84
84
|
ACTIONS = {
|
85
85
|
validate: :validiere,
|
86
86
|
print: :drucke,
|
87
|
-
print_and_submit: :sende
|
87
|
+
print_and_submit: :sende,
|
88
|
+
submit: :sende
|
88
89
|
}
|
89
90
|
|
90
91
|
def create_print_params(options)
|
data/lib/liberic/sdk/api.rb
CHANGED
@@ -103,10 +103,9 @@ module Liberic
|
|
103
103
|
# uint32_t keyType);
|
104
104
|
attach_eric_function :get_pin_status, [:uint, :pointer, :uint], :int
|
105
105
|
|
106
|
-
# TODO
|
107
106
|
# ERICAPI_DECL int STDCALL EricGetPublicKey(const eric_verschluesselungs_parameter_t* cryptoParameter,
|
108
107
|
# EricRueckgabepufferHandle rueckgabePuffer);
|
109
|
-
|
108
|
+
attach_eric_function :get_public_key, [:pointer, :pointer], :int
|
110
109
|
|
111
110
|
# ERICAPI_DECL int STDCALL EricHoleFehlerText(int fehlerkode,
|
112
111
|
# EricRueckgabepufferHandle rueckgabePuffer);
|
data/lib/liberic/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: liberic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Malte Münchert
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|