oddb2xml 2.2.6 → 2.2.7
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/.gitignore +18 -0
- data/Gemfile.lock +28 -28
- data/History.txt +6 -0
- data/lib/oddb2xml/builder.rb +8 -8
- data/lib/oddb2xml/cli.rb +5 -6
- data/lib/oddb2xml/extractor.rb +12 -4
- data/lib/oddb2xml/version.rb +1 -1
- data/oddb2xml.xsd +2 -1
- data/spec/builder_spec.rb +159 -137
- data/spec/calc_spec.rb +40 -40
- data/spec/cli_spec.rb +57 -55
- data/spec/compressor_spec.rb +16 -16
- data/spec/data/swissmedic_fridge.xlsx +0 -0
- data/spec/data/swissmedic_orphan.xlsx +0 -0
- data/spec/data/swissmedic_package.xlsx +0 -0
- data/spec/downloader_spec.rb +50 -45
- data/spec/extractor_spec.rb +8 -8
- data/spec/fixtures/vcr_cassettes/oddb2xml.json +660 -1599
- data/spec/spec_helper.rb +5 -1
- metadata +2 -2
    
        data/spec/spec_helper.rb
    CHANGED
    
    | @@ -46,7 +46,11 @@ module Oddb2xml | |
| 46 46 | 
             
                              '7680532900196', # Insulin, gentechnik
         | 
| 47 47 | 
             
                              '7680555610041', # Diaphin 10 g i.v. drug
         | 
| 48 48 | 
             
                ]
         | 
| 49 | 
            +
              FRIDGE_GTIN = '7680586180018'   # fridge drug IKSNR 58618: ARTISS 2 ml, tiefgefrorene Lösung
         | 
| 50 | 
            +
              ORPHAN_GTIN = '7680621320010'   # orphan drug IKSNR 62132: Adcetris, Pulver zur Herstellung einer Infusionslösung
         | 
| 49 51 | 
             
              GTINS_DRUGS = [ '733905577161', # 1-DAY ACUVUE Moist Tag -2.00dpt BC 8.5
         | 
| 52 | 
            +
                              FRIDGE_GTIN,
         | 
| 53 | 
            +
                              ORPHAN_GTIN,
         | 
| 50 54 | 
             
                              '4042809018288',
         | 
| 51 55 | 
             
                              '4042809018400',
         | 
| 52 56 | 
             
                              '4042809018493',
         | 
| @@ -101,7 +105,7 @@ end | |
| 101 105 |  | 
| 102 106 | 
             
            VCR.configure do |config|
         | 
| 103 107 | 
             
              config.cassette_library_dir = "spec/fixtures/vcr_cassettes"
         | 
| 104 | 
            -
              config.hook_into :webmock | 
| 108 | 
            +
              config.hook_into :webmock
         | 
| 105 109 | 
             
              config.debug_logger = File.open(File.join(File.dirname(File.dirname(__FILE__)), 'vcr.log'), 'w+')
         | 
| 106 110 | 
             
              config.debug_logger.sync = true
         | 
| 107 111 | 
             
              config.default_cassette_options = { :record => ARGV.join(' ').index('downloader_spec') ? :new_episodes : :once ,
         | 
    
        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. | 
| 4 | 
            +
              version: 2.2.7
         | 
| 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- | 
| 11 | 
            +
            date: 2015-11-24 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: rubyzip
         |