mediserv 0.2.0 → 0.3.1

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: 529faf107e29e2686474b898eb718653813eeb245cff890bc75ffec0811ffe6c
4
- data.tar.gz: 979232e22b4ef66970278019f2d0e0153c4d20d8cf97b8ac07f8696c01ea052d
3
+ metadata.gz: a8dda364d3fa7113b92c011b8fe3d320229171714955c0d56ab26b991b34b8f4
4
+ data.tar.gz: b2a0a07490f9eca8b3322595069601cf7d2a48dee7aa858b6317caf3e18e3491
5
5
  SHA512:
6
- metadata.gz: 50725b2b996a7664feabbe3b19c329a954fec115818a26f67078802ac0df1ccada048afdf66a0406ca305305d58311ef675cbd9665b19bcf22b96fcc904c68bf
7
- data.tar.gz: a8aae0eb8a48ba98a2a192ebe9d430efa8b4ae58af34e41413f84bbb800a67b73f57c47215f77b4d3e37bb75ccf1900311ff5a50859c3769f3047200b70ce5d4
6
+ metadata.gz: e244cf2adbee6ca62c9c02ba8a6b0b3cd41cbb7d2ef7456ecca9609971268523250873ead3c8a0f543896d6ccdf6df6b6aa8b48f5552054e5166f21e60bd06cc
7
+ data.tar.gz: 7fce3eff34a05fdc83762a5fb62df48a017d1a883aafa6bc41212b438680a7677f60fa612efd8f601286bd5996f1f9091f82491d96eca27f54bcb1ec30f14079
@@ -9,8 +9,8 @@ module MediServ::API
9
9
  @storage = storage
10
10
  @encoder = MediServ::API::Encoder.new
11
11
  @default_header = {
12
- programm: 'MediServ gem',
13
- programm_version: '0.2.0', # TODO: Load from gemspec
12
+ programm: 'Denteo MediServ Client',
13
+ programm_version: '0.3.0', # TODO: Load from gemspec
14
14
  version: 'v2',
15
15
  kundennummer: clientId,
16
16
  stapelnummer: 0,
@@ -48,9 +48,7 @@ module MediServ::API
48
48
  when Float
49
49
  io << fmt_amount(v)
50
50
  when String
51
- io << '"'
52
51
  io << v.tr("\n", '')
53
- io << '"'
54
52
  else
55
53
  io << v
56
54
  end
@@ -63,4 +61,4 @@ module MediServ::API
63
61
  io.string.encode('windows-1252')
64
62
  end
65
63
  end
66
- end
64
+ end
@@ -220,25 +220,25 @@ module MediServ::API
220
220
  rech_text.scan(/.{1,180}/).each.with_index(1) do |s, i|
221
221
  # A line will go up to 180 characters, but could be shorter in case of a
222
222
  # new line or simply a short line.
223
- h["RechText[#{i}]"] = s
223
+ h["RechText#{i}"] = s
224
224
  end unless rech_text.nil?
225
225
  leistungen.each.with_index(1) do |l, i|
226
226
  # Total der Punkt von Ansatz
227
- # h["TotalPkt[#{i}]"] = l.punkte || 0.0
227
+ # h["TotalPkt#{i}"] = l.punkte || 0.0
228
228
  # Ansatz für Punkte
229
- # h["TotalAnsatz[#{i}]"] = l.ansatz || 0.0
229
+ # h["TotalAnsatz#{i}"] = l.ansatz || 0.0
230
230
 
231
- h["LeisDatum[#{i}]"] = fmt_date(l.datum)
232
- h["LeisAnz[#{i}]"] = fmt_amount(l.anzahl)
233
- h["LeisZahnNr[#{i}]"] = l.zahnnummer
234
- h["LeisArt[#{i}]"] = l.art
235
- h["LeisPosNr[#{i}]"] = l.nummer
236
- h["LeisBez[#{i}]"] = l.bezeichnung
237
- h["LeisAnsatz[#{i}]"] = l.ansatz
238
- h["LeisPkt[#{i}]"] = l.punkte
239
- h["LeisRabatt[#{i}]"] = l.rabatt ? 1 : 0
240
- h["LeisBetrag[#{i}]"] = l.betrag
241
- h["LeisTotal[#{i}]"] = l.total
231
+ h["LeisDatum#{i}"] = fmt_date(l.datum)
232
+ h["LeisAnz#{i}"] = fmt_amount(l.anzahl)
233
+ h["LeisZahnNr#{i}"] = l.zahnnummer
234
+ h["LeisArt#{i}"] = l.art
235
+ h["LeisPosNr#{i}"] = l.nummer
236
+ h["LeisBez#{i}"] = l.bezeichnung
237
+ h["LeisAnsatz#{i}"] = l.ansatz
238
+ h["LeisPkt#{i}"] = l.punkte
239
+ h["LeisRabatt#{i}"] = l.rabatt ? 1 : 0
240
+ h["LeisBetrag#{i}"] = l.betrag
241
+ h["LeisTotal#{i}"] = l.total
242
242
  end
243
243
  h
244
244
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mediserv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Denteo AG
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-09 00:00:00.000000000 Z
11
+ date: 2023-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-types
@@ -71,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  - !ruby/object:Gem::Version
72
72
  version: '0'
73
73
  requirements: []
74
- rubygems_version: 3.2.7
74
+ rubygems_version: 3.1.2
75
75
  signing_key:
76
76
  specification_version: 4
77
77
  summary: Ruby client interacting with MediServ