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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f7154a7fb0d323532924a60fce17dbcdd2d464d9
4
- data.tar.gz: 76ecf60803cb70557713e856e496c19f155676fc
3
+ metadata.gz: 3806ba991f49cabfee1a737dd8abb31ae6c75309
4
+ data.tar.gz: ed6023e6ae68899f9651c2656e88266dc04d20f8
5
5
  SHA512:
6
- metadata.gz: 5686564a1497bf3484fabbf5cb2bebb5ab8b517957ab3fd7c2f74cbbaae9ee5c235c2e43b641761f2b16f3dff4136f842b712714a4c98eb90c451a5e3eef9bb5
7
- data.tar.gz: f28ea51cadc9b35add75f834c2e0f57448b8e09fa1e902f8f135d397144927548b3cbd8c120d6bdbf145d807f9cf6f3aad96996dd724b3fce180273a45da3890
6
+ metadata.gz: f040473e14123084926ceb01fb4f9981e4b3d20a5bcff841aaaa40ffe83e64319debe9ebaefeabc73ec3e55405c1dcb3511d40387cffb2f7db40cac26c34939f
7
+ data.tar.gz: 142ecf2bcc3ada592b32e4ef7015a1e48e5a0b511eedb0348b652d682434d7dc1c680fafcf394c0a2be2201a70bf53d5ea4c92da690de17ce0a275dc0890b8eb
@@ -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)
@@ -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
- # attach_eric_function :get_public_key, [:string, :pointer], :int
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);
@@ -1,3 +1,3 @@
1
1
  module Liberic
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
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.2
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-06-02 00:00:00.000000000 Z
11
+ date: 2016-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi