oddb2xml 2.6.9 → 2.7.0

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
- SHA1:
3
- metadata.gz: 57997dab6b06c6ad0aa8bff72b8fb5050f025255
4
- data.tar.gz: 57b14760b0448b1cc5a24b4fd7f5f313f3257a19
2
+ SHA256:
3
+ metadata.gz: f09c85343784bea903af64ee40b29749dfdfc2af55000673244129510276c88a
4
+ data.tar.gz: 7a8cbd05765da37ec1d582c13bb71758c05a0ddd73773aea5084fa211ebf98d2
5
5
  SHA512:
6
- metadata.gz: 4b2e2bd8a4ffa584e74422da0c77cf9755c48908bc3c82210a71848109704a59a918bda7092ba3c056dc9e1423317b8ceb94b715639d08e19ecd8b9e95db4e7c
7
- data.tar.gz: c277c5c81259a52031f97ce7b346c80e124385efc128f549c97ed4e7f26ab739316ab7dae1b1315842c310c4028dae2db0d1a372a44ea429e3e70382c0acdd4f
6
+ metadata.gz: 5be02fa2ec4dff0aa6f8c4a4dbfba9cc0f272831fd0b10b6a1af1a18fd3cff3956ad0884de9e81c19c31d60984cc5d234586372aa7a0d34acdab9015cf7252d8
7
+ data.tar.gz: ea9317a80ad372959d59f0a13614a9a5a8a1f5da3befa9202f5dadbcb23a41523580184c9a769fb512ba7256f5d36b97dffc214424d4d70df499cb35b6c9371e
@@ -431,9 +431,6 @@
431
431
  </xs:documentation>
432
432
  </xs:annotation>
433
433
  </xs:element>
434
- <xs:element name="Chapter70_HACK"
435
- type="xs:string" minOccurs="0" maxOccurs="1">
436
- </xs:element>
437
434
  </xs:sequence>
438
435
 
439
436
 
@@ -1,3 +1,7 @@
1
+ === 2.7.0 / 05.11.2020
2
+ * Chapter70 hack nur als Kommentar
3
+ * Avoid double hyphen in comment
4
+
1
5
  === 2.6.9 / 29.06.2020
2
6
 
3
7
  * Fix problem when running bin/oddb2xml -a -f dat. Thanks to Lukas Furre for reporting the problem
@@ -1628,10 +1628,9 @@ module Oddb2xml
1628
1628
  end
1629
1629
  @csv_file << [ ean13, description, '', '', pexf, ppub, '', '', '', '', '', '' ]
1630
1630
  if chap70
1631
- xml.comment "Chapter70 hack"
1631
+ xml.comment "Chapter70 hack #{ean13.to_s.rjust(13, '0')} #{description.encode(:xml => :text).gsub('--','-')}"
1632
1632
  xml.SL_ENTRY 'true'
1633
1633
  xml.PRODNO obj[:pharmacode]
1634
- xml.Chapter70_HACK 'true'
1635
1634
  end
1636
1635
  end
1637
1636
  end
@@ -1733,7 +1732,7 @@ module Oddb2xml
1733
1732
  used_limitations << lim_code unless used_limitations.index(lim_code)
1734
1733
  xml.LIMNAMEBAG lim_code
1735
1734
  elsif obj[:chapter70]
1736
- xml.comment "Chapter70 hack"
1735
+ xml.comment "Chapter70 hack prodno #{prodno} #{obj[:description].encode(:xml => :text).gsub('--','-')}"
1737
1736
  xml.SALECD('A') # these products are always active!
1738
1737
  xml.DSCR obj[:description]
1739
1738
  xml.DSCRF ''
@@ -1766,7 +1765,7 @@ module Oddb2xml
1766
1765
  end
1767
1766
  emitted_lim_code << lim[:code]
1768
1767
  xml.LIMITATION do
1769
- xml.comment "Chapter70 hack" if lim[:chap70]
1768
+ xml.comment "Chapter70 2 hack" if lim[:chap70]
1770
1769
  xml.LIMNAMEBAG lim[:code] # original LIMCD
1771
1770
  xml.DSCR Oddb2xml.html_decode(lim[:desc_de])
1772
1771
  xml.DSCRF Oddb2xml.html_decode(lim[:desc_fr])
@@ -88,6 +88,7 @@ module Oddb2xml
88
88
  puts "Validatied #{@_files[:artikelstamm]}"
89
89
  else
90
90
  puts "Validating failed using #{cmd}"
91
+ raise "Validating failed using #{cmd}"
91
92
  exit(2)
92
93
  end
93
94
  end
@@ -1,3 +1,3 @@
1
1
  module Oddb2xml
2
- VERSION = "2.6.9"
2
+ VERSION = "2.7.0"
3
3
  end
@@ -24,7 +24,7 @@ describe Oddb2xml::Builder do
24
24
  unless @inhalt.index(expected_value)
25
25
  puts expected_value
26
26
  end
27
- # binding.pry unless @inhalt.index(expected_value)
27
+ binding.pry unless @inhalt.index(expected_value)
28
28
  expect(@inhalt.index(expected_value)).not_to be nil
29
29
  end
30
30
  def common_run_init(options = {})
@@ -467,9 +467,9 @@ describe Oddb2xml::Builder do
467
467
  </ITEM),
468
468
  'Chapter 70 product' => %(<PRODUCT>
469
469
  <PRODNO>2069639</PRODNO>
470
- <!--Chapter70 hack-->
470
+ <!--Chapter70 hack prodno 2069639 Ceres Urtinkturen gemäss L2 mit - im Kommentar-->
471
471
  <SALECD>A</SALECD>
472
- <DSCR>Ceres Urtinkturen gemäss L2</DSCR>
472
+ <DSCR>Ceres Urtinkturen gemäss L2 mit -- im Kommentar</DSCR>
473
473
  <DSCRF/>
474
474
  </PRODUCT>),
475
475
  'Chapter 70 item' => %(<ITEM PHARMATYPE="P">
@@ -480,10 +480,9 @@ describe Oddb2xml::Builder do
480
480
  <DSCRF>--missing--</DSCRF>
481
481
  <PEXF>23.44</PEXF>
482
482
  <PPUB>31.30</PPUB>
483
- <!--Chapter70 hack-->
483
+ <!--Chapter70 hack 2500000588532 EINF ARZNEI Ceres Urtinktur spez 20ml-->
484
484
  <SL_ENTRY>true</SL_ENTRY>
485
485
  <PRODNO>2069639</PRODNO>
486
- <Chapter70_HACK>true</Chapter70_HACK>
487
486
  </ITEM>),
488
487
  'HTML-encoded limitation' => %(<DSCR>Zur Erhaltungstherapie (Monotherapie) bei erwachsenen Patientinnen mit rezidiviertem, fortgeschrittenem Ovarialkarzinom mit BRCA Mutation im Anschluss an eine platinhaltige Chemotherapie bei Vorliegen einer kompletten oder partiellen Remission.
489
488
 
@@ -197,7 +197,7 @@
197
197
  <p>70.01.10</p>
198
198
  </td>
199
199
  <td width="52%">
200
- <p>Ceres Urtinkturen gem&auml;ss L2</p>
200
+ <p>Ceres Urtinkturen gem&auml;ss L2 mit -- im Kommentar</p>
201
201
  </td>
202
202
  <td align="right" width="10%">
203
203
  <p>20ml</p>
@@ -2438,4 +2438,4 @@ die Abrechnung zu erleichtern.<br>
2438
2438
 
2439
2439
  </body>
2440
2440
 
2441
- </html>
2441
+ </html>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oddb2xml
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.9
4
+ version: 2.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yasuhiro Asaka, Zeno R.R. Davatz, Niklaus Giger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-29 00:00:00.000000000 Z
11
+ date: 2020-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip
@@ -486,8 +486,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
486
486
  - !ruby/object:Gem::Version
487
487
  version: '0'
488
488
  requirements: []
489
- rubyforge_project:
490
- rubygems_version: 2.6.8
489
+ rubygems_version: 3.1.2
491
490
  signing_key:
492
491
  specification_version: 4
493
492
  summary: oddb2xml creates xml files.