oddb2xml 2.2.8 → 2.2.9

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: 0a750539ac436cafb6b5b818c9767cdce87ba5a4
4
- data.tar.gz: 98b62a3bbc44b6b68d69f7b1fb474c66d5627b74
3
+ metadata.gz: dc4d3a7108297dee9fb8d8070efa75d40f3d8a56
4
+ data.tar.gz: 3930fd61351c96d10432261df2c38d5026e01ba0
5
5
  SHA512:
6
- metadata.gz: 5325bf91c6a88bc753c4d9611397923bf1e62e1fd2c974e894c939eefd737c88201196ce919d69b35458aa6e281560fc3e9fa1201252c5e383baf3238609098c
7
- data.tar.gz: 75990e37f5267bcebf5bf97a347cc6df2d4bc2863ea15b29c1fc5dfc73f5edee1d8d8553527c56e9a0d8f54a2ec53a4850ad8769e1c2b9c6e5fe3927da34f40b
6
+ metadata.gz: ee32efa8ea3a40d8db306d143886ac6b47a3d52d981755a5d11b4bb8afa2d01b24fb699db72ae5050b6b2cad3ffbd6e285646dad71e2d5b810d1d2cd514a4b3d
7
+ data.tar.gz: a273149b0c1b926a26e599da00f081e91e1291e40e5ae6ecd981d1e9be1fc78b2756021ac772c68332d5d152ca49ec67e9df799c74eb910ceed44db034d62402
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- oddb2xml (2.2.8)
4
+ oddb2xml (2.2.9)
5
5
  archive-tar-minitar
6
6
  httpi (>= 2.4.1)
7
7
  mechanize
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 2.2.9 / 1.12.2015
2
+
3
+ * Added value 'C' (Co-marketing) for GENCD from BAG Preparations.xml
4
+
1
5
  === 2.2.8 / 25.11.2015
2
6
 
3
7
  * Improved spec tests against all XSD elements
@@ -1,3 +1,3 @@
1
1
  module Oddb2xml
2
- VERSION = "2.2.8"
2
+ VERSION = "2.2.9"
3
3
  end
data/oddb2xml.xsd CHANGED
@@ -35,6 +35,7 @@
35
35
  Some comments for invidual fields:
36
36
  NINCD: possible values are 10 => BAG-XML (SL/LS), 13 -> MiGel, 20 => (LPPV) Limitation, empty => NonPharma)
37
37
  GENCD: possible values are 'O' for original and 'G' for generic, 'K' for Komplementärmedizin.
38
+ Since decembre 2015 we found some products with a 'C' which probably stands for Co-Marketing
38
39
  We don't have a list of possible generics for a given original.
39
40
  It is however possible find generics via ch.oddb.org where a sophisticated algorithm searches for similar medicaments
40
41
  taking into account all ATC-codes and galenic information.
@@ -831,6 +832,7 @@
831
832
  <xs:element name="GENCD">
832
833
  <xs:simpleType>
833
834
  <xs:restriction base="xs:string">
835
+ <xs:enumeration value="C" />
834
836
  <xs:enumeration value="O" />
835
837
  <xs:enumeration value="K" />
836
838
  <xs:enumeration value="G" />
data/spec/builder_spec.rb CHANGED
@@ -452,7 +452,8 @@ describe Oddb2xml::Builder do
452
452
  def common_run_init
453
453
  @savedDir = Dir.pwd
454
454
  cleanup_directories_before_run
455
- Dir.chdir Oddb2xml::WorkDir
455
+ FileUtils.makedirs(Oddb2xml::WorkDir)
456
+ Dir.chdir(Oddb2xml::WorkDir)
456
457
  VCR.eject_cassette; VCR.insert_cassette('oddb2xml')
457
458
  end
458
459
 
data/spec/calc_spec.rb CHANGED
@@ -617,7 +617,7 @@ describe Oddb2xml::Calc do
617
617
  @savedDir = Dir.pwd
618
618
  cleanup_directories_before_run
619
619
  FileUtils.makedirs(Oddb2xml::WorkDir)
620
- Dir.chdir Oddb2xml::WorkDir
620
+ Dir.chdir(Oddb2xml::WorkDir)
621
621
  VCR.eject_cassette; VCR.insert_cassette('oddb2xml')
622
622
  @run_time_options = '--calc --skip-download'
623
623
  @options = Oddb2xml::Options.new
data/spec/cli_spec.rb CHANGED
@@ -37,6 +37,7 @@ describe Oddb2xml::Cli do
37
37
  VCR.insert_cassette('oddb2xml')
38
38
  @savedDir = Dir.pwd
39
39
  cleanup_directories_before_run
40
+ FileUtils.makedirs(Oddb2xml::WorkDir)
40
41
  Dir.chdir(Oddb2xml::WorkDir)
41
42
  end
42
43
  after(:all) do
@@ -73,6 +73,7 @@ end
73
73
  def common_before
74
74
  @savedDir = Dir.pwd
75
75
  cleanup_directories_before_run
76
+ FileUtils.makedirs(Oddb2xml::WorkDir)
76
77
  Dir.chdir(Oddb2xml::WorkDir)
77
78
  end
78
79
 
@@ -8,6 +8,7 @@ NR_PACKS = 24
8
8
 
9
9
  def common_before
10
10
  @savedDir = Dir.pwd
11
+ FileUtils.makedirs(Oddb2xml::WorkDir)
11
12
  Dir.chdir(Oddb2xml::WorkDir)
12
13
  VCR.eject_cassette; VCR.insert_cassette('oddb2xml')
13
14
  end
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.2.8
4
+ version: 2.2.9
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: 2015-11-25 00:00:00.000000000 Z
11
+ date: 2015-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip