oddb2xml 1.8.1 → 1.8.2

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.
Files changed (42) hide show
  1. data/.travis.yml +1 -1
  2. data/Gemfile.lock +7 -7
  3. data/README.md +14 -2
  4. data/Rakefile +10 -1
  5. data/bin/oddb2xml +2 -2
  6. data/lib/oddb2xml/builder.rb +36 -26
  7. data/lib/oddb2xml/cli.rb +19 -4
  8. data/lib/oddb2xml/compressor.rb +7 -7
  9. data/lib/oddb2xml/downloader.rb +77 -58
  10. data/lib/oddb2xml/extractor.rb +31 -21
  11. data/lib/oddb2xml/util.rb +18 -13
  12. data/lib/oddb2xml/version.rb +1 -1
  13. data/oddb2xml.gemspec +8 -5
  14. data/spec/builder_spec.rb +68 -31
  15. data/spec/cli_spec.rb +43 -69
  16. data/spec/compressor_spec.rb +36 -13
  17. data/spec/data/compressor/oddb2xml_files_bm_update.txt +4 -0
  18. data/spec/data/compressor/oddb2xml_files_lppv.txt +4 -0
  19. data/spec/data/compressor/oddb2xml_files_nonpharma.xls +0 -0
  20. data/spec/data/{oddb_article.xml → compressor/oddb_article.xml} +0 -0
  21. data/spec/data/{oddb_fi.xml → compressor/oddb_fi.xml} +0 -0
  22. data/spec/data/{oddb_fi_product.xml → compressor/oddb_fi_product.xml} +0 -0
  23. data/spec/data/{oddb_limitation.xml → compressor/oddb_limitation.xml} +0 -0
  24. data/spec/data/{oddb_product.xml → compressor/oddb_product.xml} +0 -0
  25. data/spec/data/{oddb_substance.xml → compressor/oddb_substance.xml} +0 -0
  26. data/spec/data/epha_interactions.csv +4 -1
  27. data/spec/data/swissindex_nonpharma.xml +13 -1
  28. data/spec/data/swissindex_pharma.xml +12 -0
  29. data/spec/data/{swissmedic_fridges.xlsx → swissmedic_fridge.xlsx} +0 -0
  30. data/spec/data/swissmedic_orphan.xlsx +0 -0
  31. data/spec/data/{swissmedic_packages.xlsx → swissmedic_package.xlsx} +0 -0
  32. data/spec/data/zurrose_transfer.dat +12 -11
  33. data/spec/downloader_spec.rb +48 -13
  34. data/spec/extractor_spec.rb +10 -11
  35. data/spec/spec_helper.rb +44 -15
  36. data/test_options.rb +24 -8
  37. metadata +71 -45
  38. checksums.yaml +0 -15
  39. data/spec/data/Gestrichene_Packungen_Emballages_radies.xls +0 -1
  40. data/spec/data/Publications.xls +0 -1
  41. data/spec/data/swissmedic_fridges.xls +0 -0
  42. data/spec/data/swissmedic_packages.xls +0 -0
@@ -13,9 +13,37 @@ Bundler.require
13
13
 
14
14
  require 'rspec'
15
15
  require 'webmock/rspec'
16
+
17
+
18
+ module Oddb2xml
19
+ # we override here a few directories to make input/output when running specs to
20
+ # be in different places compared when running
21
+ SpecData = File.join(File.dirname(__FILE__), 'data')
22
+ WorkDir = File.join(File.dirname(__FILE__), 'run')
23
+ Downloads = File.join(WorkDir, 'downloads')
24
+ SpecCompressor = File.join(Oddb2xml::SpecData, 'compressor')
25
+ end
26
+
16
27
  require 'oddb2xml'
17
28
 
18
29
  module ServerMockHelper
30
+ def cleanup_compressor
31
+ [ File.join(Oddb2xml::SpecCompressor, '*.zip'),
32
+ File.join(Oddb2xml::SpecCompressor, '*.tar.gz'),
33
+ File.join(Oddb2xml::SpecCompressor, 'epha_interactions.txt*'),
34
+ File.join(Oddb2xml::SpecCompressor, 'medregbm_company.txt*'),
35
+ File.join(Oddb2xml::SpecCompressor, 'medregbm_person.txt*'),
36
+ File.join(Oddb2xml::SpecCompressor, 'zurrose_transfer.dat.*'),
37
+ File.join(Oddb2xml::SpecCompressor, 'oddb2xml_files_nonpharma.xls.*'),
38
+ ].each { |file| FileUtils.rm_f(Dir.glob(file), :verbose => false) if Dir.glob(file).size > 0 }
39
+ end
40
+ def cleanup_directories_before_run
41
+ dirs = [ Oddb2xml::Downloads, Oddb2xml::WorkDir]
42
+ dirs.each{ |dir| FileUtils.rm_rf(Dir.glob(File.join(dir, '*')), :verbose => false) }
43
+ dirs.each{ |dir| FileUtils.makedirs(dir, :verbose => false) }
44
+ cleanup_compressor
45
+ end
46
+
19
47
  def setup_server_mocks
20
48
  setup_bag_xml_server_mock
21
49
  setup_swiss_index_server_mock
@@ -31,7 +59,7 @@ module ServerMockHelper
31
59
  def setup_bag_xml_server_mock
32
60
  # zip
33
61
  stub_zip_url = 'http://bag.e-mediat.net/SL2007.Web.External/File.axd?file=XMLPublications.zip'
34
- stub_response = File.read(File.expand_path('../data/XMLPublications.zip', __FILE__))
62
+ stub_response = File.read(File.join(Oddb2xml::SpecData, 'XMLPublications.zip'))
35
63
  stub_request(:get, stub_zip_url).
36
64
  with(:headers => {
37
65
  'Accept' => '*/*',
@@ -47,7 +75,7 @@ module ServerMockHelper
47
75
  types.each do |type|
48
76
  # wsdl
49
77
  stub_wsdl_url = "https://index.ws.e-mediat.net/Swissindex/#{type}/ws_#{type}_V101.asmx?WSDL"
50
- stub_response = File.read(File.expand_path("../data/wsdl_#{type.downcase}.xml", __FILE__))
78
+ stub_response = File.read(File.join(Oddb2xml::SpecData, "wsdl_#{type.downcase}.xml"))
51
79
  stub_request(:get, stub_wsdl_url).
52
80
  with(:headers => {
53
81
  'Accept' => '*/*',
@@ -59,7 +87,7 @@ module ServerMockHelper
59
87
  :body => stub_response)
60
88
  # soap (dummy)
61
89
  stub_soap_url = 'https://example.com/test'
62
- stub_response = File.read(File.expand_path("../data/swissindex_#{type.downcase}.xml", __FILE__))
90
+ stub_response = File.read(File.join(Oddb2xml::SpecData, "swissindex_#{type.downcase}.xml"))
63
91
  stub_request(:post, stub_soap_url).
64
92
  with(:headers => {
65
93
  'Accept' => '*/*',
@@ -80,7 +108,8 @@ module ServerMockHelper
80
108
  }.each_pair do |type, urls|
81
109
  # html (dummy)
82
110
  stub_html_url = "http://#{host}" + urls[:html]
83
- filename = File.expand_path("../data/swissmedic_#{type.to_s}.html", __FILE__)
111
+ filename = File.join(Oddb2xml::SpecData, "swissmedic_#{type.to_s}.html")
112
+
84
113
  stub_response = File.read(filename)
85
114
  stub_request(:get, stub_html_url).
86
115
  with(:headers => {
@@ -95,7 +124,7 @@ module ServerMockHelper
95
124
  # xls
96
125
  if type == :orphans
97
126
  stub_xls_url = "http://#{host}" + urls[:xls] + "/swissmedic_orphan.xlsx"
98
- stub_response = File.read(File.expand_path("../data/swissmedic_orphan.xlsx", __FILE__))
127
+ stub_response = File.read(File.join(Oddb2xml::SpecData, "swissmedic_orphan.xlsx"))
99
128
  else
100
129
  stub_xls_url = "http://#{host}" + urls[:xls] + "/swissmedic_#{type.to_s}.xlsx"
101
130
  stub_response = 'no_such_file'
@@ -115,7 +144,7 @@ module ServerMockHelper
115
144
  def setup_swissmedic_info_server_mock
116
145
  # html (dummy)
117
146
  stub_html_url = "http://download.swissmedicinfo.ch/Accept.aspx?ReturnUrl=%2f"
118
- stub_response = File.read(File.expand_path("../data/swissmedic_info.html", __FILE__))
147
+ stub_response = File.read(File.join(Oddb2xml::SpecData, "swissmedic_info.html"))
119
148
  stub_request(:get, stub_html_url).
120
149
  with(
121
150
  :headers => {
@@ -128,7 +157,7 @@ module ServerMockHelper
128
157
  :body => stub_response)
129
158
  # html (dummy 2)
130
159
  stub_html_url = 'http://download.swissmedicinfo.ch/Accept.aspx?ctl00$MainContent$btnOK=1'
131
- stub_response = File.read(File.expand_path("../data/swissmedic_info_2.html", __FILE__))
160
+ stub_response = File.read(File.join(Oddb2xml::SpecData, "swissmedic_info_2.html"))
132
161
  stub_request(:get, stub_html_url).
133
162
  with(
134
163
  :headers => {
@@ -141,7 +170,7 @@ module ServerMockHelper
141
170
  :body => stub_response)
142
171
  # zip
143
172
  stub_zip_url = 'http://download.swissmedicinfo.ch/Accept.aspx?ctl00$MainContent$BtnYes=1'
144
- stub_response = File.read(File.expand_path('../data/swissmedic_info.zip', __FILE__))
173
+ stub_response = File.read(File.join(Oddb2xml::SpecData, 'swissmedic_info.zip'))
145
174
  stub_request(:get, stub_zip_url).
146
175
  with(
147
176
  :headers => {
@@ -157,7 +186,7 @@ module ServerMockHelper
157
186
  def setup_epha_server_mock
158
187
  # csv
159
188
  stub_csv_url = 'https://download.epha.ch/cleaned/matrix.csv'
160
- stub_response = File.read(File.expand_path('../data/epha_interactions.csv', __FILE__))
189
+ stub_response = File.read(File.join(Oddb2xml::SpecData, 'epha_interactions.csv'))
161
190
  stub_request(:get, stub_csv_url).
162
191
  with(:headers => {
163
192
  'Accept' => '*/*',
@@ -171,7 +200,7 @@ module ServerMockHelper
171
200
  def setup_bm_update_server_mock
172
201
  # txt
173
202
  stub_txt_url = 'https://raw.github.com/zdavatz/oddb2xml_files/master/BM_Update.txt'
174
- stub_response = File.read(File.expand_path('../data/oddb2xml_files_bm_update.txt', __FILE__))
203
+ stub_response = File.read(File.join(Oddb2xml::SpecData, 'oddb2xml_files_bm_update.txt'))
175
204
  stub_request(:get, stub_txt_url).
176
205
  with(:headers => {
177
206
  'Accept' => '*/*',
@@ -185,7 +214,7 @@ module ServerMockHelper
185
214
  def setup_lppv_server_mock
186
215
  # txt
187
216
  stub_txt_url = 'https://raw.github.com/zdavatz/oddb2xml_files/master/LPPV.txt'
188
- stub_response = File.read(File.expand_path('../data/oddb2xml_files_lppv.txt', __FILE__))
217
+ stub_response = File.read(File.join(Oddb2xml::SpecData, 'oddb2xml_files_lppv.txt'))
189
218
  stub_request(:get, stub_txt_url).
190
219
  with(:headers => {
191
220
  'Accept' => '*/*',
@@ -199,7 +228,7 @@ module ServerMockHelper
199
228
  def setup_migel_server_mock
200
229
  # xls
201
230
  stub_xls_url = 'https://github.com/zdavatz/oddb2xml_files/raw/master/NON-Pharma.xls'
202
- stub_response = File.read(File.expand_path('../data/oddb2xml_files_nonpharma.xls', __FILE__))
231
+ stub_response = File.read(File.join(Oddb2xml::SpecData, 'oddb2xml_files_nonpharma.xls'))
203
232
  stub_request(:get, stub_xls_url).
204
233
  with(:headers => {
205
234
  'Accept' => '*/*',
@@ -213,7 +242,7 @@ module ServerMockHelper
213
242
  def setup_medregbm_server_mock
214
243
  # txt betrieb
215
244
  stub_txt_url = 'https://www.medregbm.admin.ch/Publikation/CreateExcelListBetriebs'
216
- stub_response = File.read(File.expand_path('../data/medregbm_betrieb.txt', __FILE__))
245
+ stub_response = File.read(File.join(Oddb2xml::SpecData, 'medregbm_betrieb.txt'))
217
246
  stub_request(:get, stub_txt_url).
218
247
  with(:headers => {
219
248
  'Accept' => '*/*',
@@ -225,7 +254,7 @@ module ServerMockHelper
225
254
  :body => stub_response)
226
255
  stub_txt_url = 'https://www.medregbm.admin.ch/Publikation/CreateExcelListMedizinalPersons'
227
256
  # txt person
228
- stub_response = File.read(File.expand_path('../data/medregbm_person.txt', __FILE__))
257
+ stub_response = File.read(File.join(Oddb2xml::SpecData, 'medregbm_person.txt'))
229
258
  stub_request(:get, stub_txt_url).
230
259
  with(:headers => {
231
260
  'Accept' => '*/*',
@@ -239,7 +268,7 @@ module ServerMockHelper
239
268
  def setup_zurrose_server_mock
240
269
  # dat
241
270
  stub_dat_url = 'http://zurrose.com/fileadmin/main/lib/download.php?file=/fileadmin/user_upload/downloads/ProduktUpdate/IGM11_mit_MwSt/Vollstamm/transfer.dat'
242
- stub_response = File.read(File.expand_path('../data/zurrose_transfer.dat', __FILE__))
271
+ stub_response = File.read(File.join(Oddb2xml::SpecData, 'zurrose_transfer.dat'))
243
272
  stub_request(:get, stub_dat_url).
244
273
  with(:headers => {
245
274
  'Accept' => '*/*',
@@ -3,10 +3,11 @@
3
3
  # - runs rake install to install the gem
4
4
  # - Creates an output directory ausgabe/time_stamp
5
5
  # - runs all commands (and add ---skip-download)
6
- # - saveds output and data/download to ausgabe/time_stamp
6
+ # - saveds output and downloads to ausgabe/time_stamp
7
7
 
8
8
 
9
9
  require 'fileutils'
10
+ require 'socket'
10
11
 
11
12
  def test_one_call(cmd)
12
13
  dest = File.join(Ausgabe, cmd.gsub(/[ -]/, '_'))
@@ -22,21 +23,36 @@ def test_one_call(cmd)
22
23
  puts "#{duration} success #{res} for #{cmd}"
23
24
  exit 2 unless res
24
25
  FileUtils.makedirs(dest)
25
- FileUtils.cp_r('data/download', dest, :preserve => true, :verbose => true) if Dir.glob(Ausgabe).size > 0
26
+ return unless File.directory?('downloads')
27
+ FileUtils.cp_r('downloads', dest, :preserve => true, :verbose => true) if Dir.glob(Ausgabe).size > 0
26
28
  FileUtils.cp(Dir.glob('*.dat'), dest, :preserve => true, :verbose => true) if Dir.glob('*.dat').size > 0
27
29
  FileUtils.cp(Dir.glob('*.xml'), dest, :preserve => true, :verbose => true) if Dir.glob('*.xml').size > 0
28
30
  FileUtils.cp(Dir.glob('*.gz'), dest, :preserve => true, :verbose => true) if Dir.glob('*.gz').size > 0
29
31
  end
30
32
 
33
+ def prepare_for_gem_test
34
+ [ "rake clean gem install" , # build and install our gem first
35
+ # "gem uninstall --all --ignore-dependencies --executables",
36
+ "gem install pkg/*.gem"
37
+ ].each {
38
+ |cmd|
39
+ puts "Running #{cmd}"
40
+ exit 1 unless system(cmd)
41
+ }
42
+ end
31
43
 
32
- system("rake install") # build and install our gem first
33
44
  Ausgabe = File.join(Dir.pwd, 'ausgabe', Time.now.strftime('%Y.%m.%d-%H:%M'))
45
+ puts "FQDN hostname #{Socket.gethostbyname(Socket.gethostname).first}"
34
46
  FileUtils.makedirs(Ausgabe)
47
+ prepare_for_gem_test
48
+ # we will skip some long running tests as travis jobs must finish in less than 50 minutes
49
+ unless /travis/i.match(Socket.gethostbyname(Socket.gethostname).first)
50
+ test_one_call('oddb2xml -e')
51
+ test_one_call('oddb2xml -f dat -a nonpharma')
52
+ test_one_call('oddb2xml -a nonpharma')
53
+ end
54
+ test_one_call('oddb2xml -t md -c tar.gz')
55
+ test_one_call('oddb2xml -f xml')
35
56
  test_one_call('oddb2xml -x address')
36
57
  test_one_call('oddb2xml -f dat')
37
- test_one_call('oddb2xml -f xml')
38
- test_one_call('oddb2xml -f dat -a nonpharma')
39
58
  test_one_call('oddb2xml -t md')
40
- test_one_call('oddb2xml -a nonpharma -t md -c tar.gz')
41
- test_one_call('oddb2xml -a nonpharma')
42
- test_one_call('oddb2xml -e') # take hours, therefor at the end
metadata CHANGED
@@ -1,46 +1,52 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oddb2xml
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.1
4
+ version: 1.8.2
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Yasuhiro Asaka, Zeno R.R. Davatz
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2014-04-30 00:00:00.000000000 Z
12
+ date: 2014-05-06 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: rubyzip
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
19
  - - ~>
18
20
  - !ruby/object:Gem::Version
19
- version: '1.0'
21
+ version: 1.1.3
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
27
  - - ~>
25
28
  - !ruby/object:Gem::Version
26
- version: '1.0'
29
+ version: 1.1.3
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: archive-tar-minitar
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
- - - ! '>='
35
+ - - ~>
32
36
  - !ruby/object:Gem::Version
33
- version: '0'
37
+ version: 0.5.2
34
38
  type: :runtime
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
- - - ! '>='
43
+ - - ~>
39
44
  - !ruby/object:Gem::Version
40
- version: '0'
45
+ version: 0.5.2
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: mechanize
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
51
  - - ~>
46
52
  - !ruby/object:Gem::Version
@@ -48,6 +54,7 @@ dependencies:
48
54
  type: :runtime
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
59
  - - ~>
53
60
  - !ruby/object:Gem::Version
@@ -55,6 +62,7 @@ dependencies:
55
62
  - !ruby/object:Gem::Dependency
56
63
  name: nokogiri
57
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
58
66
  requirements:
59
67
  - - ~>
60
68
  - !ruby/object:Gem::Version
@@ -62,6 +70,7 @@ dependencies:
62
70
  type: :runtime
63
71
  prerelease: false
64
72
  version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
65
74
  requirements:
66
75
  - - ~>
67
76
  - !ruby/object:Gem::Version
@@ -69,34 +78,39 @@ dependencies:
69
78
  - !ruby/object:Gem::Dependency
70
79
  name: savon
71
80
  requirement: !ruby/object:Gem::Requirement
81
+ none: false
72
82
  requirements:
73
83
  - - ~>
74
84
  - !ruby/object:Gem::Version
75
- version: '2.0'
85
+ version: 2.4.0
76
86
  type: :runtime
77
87
  prerelease: false
78
88
  version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
79
90
  requirements:
80
91
  - - ~>
81
92
  - !ruby/object:Gem::Version
82
- version: '2.0'
93
+ version: 2.4.0
83
94
  - !ruby/object:Gem::Dependency
84
95
  name: spreadsheet
85
96
  requirement: !ruby/object:Gem::Requirement
97
+ none: false
86
98
  requirements:
87
- - - ! '>='
99
+ - - ~>
88
100
  - !ruby/object:Gem::Version
89
- version: '0'
101
+ version: 0.9.7
90
102
  type: :runtime
91
103
  prerelease: false
92
104
  version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
93
106
  requirements:
94
- - - ! '>='
107
+ - - ~>
95
108
  - !ruby/object:Gem::Version
96
- version: '0'
109
+ version: 0.9.7
97
110
  - !ruby/object:Gem::Dependency
98
111
  name: rubyXL
99
112
  requirement: !ruby/object:Gem::Requirement
113
+ none: false
100
114
  requirements:
101
115
  - - ~>
102
116
  - !ruby/object:Gem::Version
@@ -104,6 +118,7 @@ dependencies:
104
118
  type: :runtime
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
107
122
  requirements:
108
123
  - - ~>
109
124
  - !ruby/object:Gem::Version
@@ -111,20 +126,23 @@ dependencies:
111
126
  - !ruby/object:Gem::Dependency
112
127
  name: sax-machine
113
128
  requirement: !ruby/object:Gem::Requirement
129
+ none: false
114
130
  requirements:
115
- - - ! '>='
131
+ - - ~>
116
132
  - !ruby/object:Gem::Version
117
- version: '0'
133
+ version: 0.1.0
118
134
  type: :runtime
119
135
  prerelease: false
120
136
  version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
121
138
  requirements:
122
- - - ! '>='
139
+ - - ~>
123
140
  - !ruby/object:Gem::Version
124
- version: '0'
141
+ version: 0.1.0
125
142
  - !ruby/object:Gem::Dependency
126
143
  name: bundler
127
144
  requirement: !ruby/object:Gem::Requirement
145
+ none: false
128
146
  requirements:
129
147
  - - ! '>='
130
148
  - !ruby/object:Gem::Version
@@ -132,6 +150,7 @@ dependencies:
132
150
  type: :development
133
151
  prerelease: false
134
152
  version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
135
154
  requirements:
136
155
  - - ! '>='
137
156
  - !ruby/object:Gem::Version
@@ -139,6 +158,7 @@ dependencies:
139
158
  - !ruby/object:Gem::Dependency
140
159
  name: rake
141
160
  requirement: !ruby/object:Gem::Requirement
161
+ none: false
142
162
  requirements:
143
163
  - - ! '>='
144
164
  - !ruby/object:Gem::Version
@@ -146,6 +166,7 @@ dependencies:
146
166
  type: :development
147
167
  prerelease: false
148
168
  version_requirements: !ruby/object:Gem::Requirement
169
+ none: false
149
170
  requirements:
150
171
  - - ! '>='
151
172
  - !ruby/object:Gem::Version
@@ -153,6 +174,7 @@ dependencies:
153
174
  - !ruby/object:Gem::Dependency
154
175
  name: rspec
155
176
  requirement: !ruby/object:Gem::Requirement
177
+ none: false
156
178
  requirements:
157
179
  - - ! '>='
158
180
  - !ruby/object:Gem::Version
@@ -160,6 +182,7 @@ dependencies:
160
182
  type: :development
161
183
  prerelease: false
162
184
  version_requirements: !ruby/object:Gem::Requirement
185
+ none: false
163
186
  requirements:
164
187
  - - ! '>='
165
188
  - !ruby/object:Gem::Version
@@ -167,6 +190,7 @@ dependencies:
167
190
  - !ruby/object:Gem::Dependency
168
191
  name: webmock
169
192
  requirement: !ruby/object:Gem::Requirement
193
+ none: false
170
194
  requirements:
171
195
  - - ! '>='
172
196
  - !ruby/object:Gem::Version
@@ -174,6 +198,7 @@ dependencies:
174
198
  type: :development
175
199
  prerelease: false
176
200
  version_requirements: !ruby/object:Gem::Requirement
201
+ none: false
177
202
  requirements:
178
203
  - - ! '>='
179
204
  - !ruby/object:Gem::Version
@@ -181,6 +206,7 @@ dependencies:
181
206
  - !ruby/object:Gem::Dependency
182
207
  name: rdoc
183
208
  requirement: !ruby/object:Gem::Requirement
209
+ none: false
184
210
  requirements:
185
211
  - - ! '>='
186
212
  - !ruby/object:Gem::Version
@@ -188,6 +214,7 @@ dependencies:
188
214
  type: :development
189
215
  prerelease: false
190
216
  version_requirements: !ruby/object:Gem::Requirement
217
+ none: false
191
218
  requirements:
192
219
  - - ! '>='
193
220
  - !ruby/object:Gem::Version
@@ -225,40 +252,39 @@ files:
225
252
  - spec/cli_spec.rb
226
253
  - spec/compressor_spec.rb
227
254
  - spec/data/GL_Diff_SB.xml
228
- - spec/data/Gestrichene_Packungen_Emballages_radies.xls
229
255
  - spec/data/ItCodes.xml
230
256
  - spec/data/PR121001.txt
231
257
  - spec/data/PR121002.txt
232
258
  - spec/data/Preparation.xml
233
259
  - spec/data/Preparations.xml
234
- - spec/data/Publications.xls
235
260
  - spec/data/XMLPublications.zip
261
+ - spec/data/compressor/oddb2xml_files_bm_update.txt
262
+ - spec/data/compressor/oddb2xml_files_lppv.txt
263
+ - spec/data/compressor/oddb2xml_files_nonpharma.xls
264
+ - spec/data/compressor/oddb_article.xml
265
+ - spec/data/compressor/oddb_fi.xml
266
+ - spec/data/compressor/oddb_fi_product.xml
267
+ - spec/data/compressor/oddb_limitation.xml
268
+ - spec/data/compressor/oddb_product.xml
269
+ - spec/data/compressor/oddb_substance.xml
236
270
  - spec/data/epha_interactions.csv
237
271
  - spec/data/medregbm_betrieb.txt
238
272
  - spec/data/medregbm_person.txt
239
273
  - spec/data/oddb2xml_files_bm_update.txt
240
274
  - spec/data/oddb2xml_files_lppv.txt
241
275
  - spec/data/oddb2xml_files_nonpharma.xls
242
- - spec/data/oddb_article.xml
243
- - spec/data/oddb_fi.xml
244
- - spec/data/oddb_fi_product.xml
245
- - spec/data/oddb_limitation.xml
246
- - spec/data/oddb_product.xml
247
- - spec/data/oddb_substance.xml
248
276
  - spec/data/swissindex.xml
249
277
  - spec/data/swissindex_nonpharma.xml
250
278
  - spec/data/swissindex_pharma.xml
279
+ - spec/data/swissmedic_fridge.xlsx
251
280
  - spec/data/swissmedic_fridges.html
252
- - spec/data/swissmedic_fridges.xls
253
- - spec/data/swissmedic_fridges.xlsx
254
281
  - spec/data/swissmedic_info.html
255
282
  - spec/data/swissmedic_info.zip
256
283
  - spec/data/swissmedic_info_2.html
257
284
  - spec/data/swissmedic_orphan.xlsx
258
285
  - spec/data/swissmedic_orphans.html
286
+ - spec/data/swissmedic_package.xlsx
259
287
  - spec/data/swissmedic_packages.html
260
- - spec/data/swissmedic_packages.xls
261
- - spec/data/swissmedic_packages.xlsx
262
288
  - spec/data/wsdl.xml
263
289
  - spec/data/wsdl_nonpharma.xml
264
290
  - spec/data/wsdl_pharma.xml
@@ -273,66 +299,66 @@ files:
273
299
  homepage: https://github.com/zdavatz/oddb2xml
274
300
  licenses:
275
301
  - GPL-v2
276
- metadata: {}
277
302
  post_install_message:
278
303
  rdoc_options: []
279
304
  require_paths:
280
305
  - lib
281
306
  required_ruby_version: !ruby/object:Gem::Requirement
307
+ none: false
282
308
  requirements:
283
309
  - - ! '>='
284
310
  - !ruby/object:Gem::Version
285
311
  version: '0'
286
312
  required_rubygems_version: !ruby/object:Gem::Requirement
313
+ none: false
287
314
  requirements:
288
315
  - - ! '>='
289
316
  - !ruby/object:Gem::Version
290
317
  version: '0'
291
318
  requirements: []
292
319
  rubyforge_project:
293
- rubygems_version: 2.2.1
320
+ rubygems_version: 1.8.25
294
321
  signing_key:
295
- specification_version: 4
322
+ specification_version: 3
296
323
  summary: oddb2xml creates xml files.
297
324
  test_files:
298
325
  - spec/builder_spec.rb
299
326
  - spec/cli_spec.rb
300
327
  - spec/compressor_spec.rb
301
328
  - spec/data/GL_Diff_SB.xml
302
- - spec/data/Gestrichene_Packungen_Emballages_radies.xls
303
329
  - spec/data/ItCodes.xml
304
330
  - spec/data/PR121001.txt
305
331
  - spec/data/PR121002.txt
306
332
  - spec/data/Preparation.xml
307
333
  - spec/data/Preparations.xml
308
- - spec/data/Publications.xls
309
334
  - spec/data/XMLPublications.zip
335
+ - spec/data/compressor/oddb2xml_files_bm_update.txt
336
+ - spec/data/compressor/oddb2xml_files_lppv.txt
337
+ - spec/data/compressor/oddb2xml_files_nonpharma.xls
338
+ - spec/data/compressor/oddb_article.xml
339
+ - spec/data/compressor/oddb_fi.xml
340
+ - spec/data/compressor/oddb_fi_product.xml
341
+ - spec/data/compressor/oddb_limitation.xml
342
+ - spec/data/compressor/oddb_product.xml
343
+ - spec/data/compressor/oddb_substance.xml
310
344
  - spec/data/epha_interactions.csv
311
345
  - spec/data/medregbm_betrieb.txt
312
346
  - spec/data/medregbm_person.txt
313
347
  - spec/data/oddb2xml_files_bm_update.txt
314
348
  - spec/data/oddb2xml_files_lppv.txt
315
349
  - spec/data/oddb2xml_files_nonpharma.xls
316
- - spec/data/oddb_article.xml
317
- - spec/data/oddb_fi.xml
318
- - spec/data/oddb_fi_product.xml
319
- - spec/data/oddb_limitation.xml
320
- - spec/data/oddb_product.xml
321
- - spec/data/oddb_substance.xml
322
350
  - spec/data/swissindex.xml
323
351
  - spec/data/swissindex_nonpharma.xml
324
352
  - spec/data/swissindex_pharma.xml
353
+ - spec/data/swissmedic_fridge.xlsx
325
354
  - spec/data/swissmedic_fridges.html
326
- - spec/data/swissmedic_fridges.xls
327
- - spec/data/swissmedic_fridges.xlsx
328
355
  - spec/data/swissmedic_info.html
329
356
  - spec/data/swissmedic_info.zip
330
357
  - spec/data/swissmedic_info_2.html
331
358
  - spec/data/swissmedic_orphan.xlsx
332
359
  - spec/data/swissmedic_orphans.html
360
+ - spec/data/swissmedic_package.xlsx
333
361
  - spec/data/swissmedic_packages.html
334
- - spec/data/swissmedic_packages.xls
335
- - spec/data/swissmedic_packages.xlsx
336
362
  - spec/data/wsdl.xml
337
363
  - spec/data/wsdl_nonpharma.xml
338
364
  - spec/data/wsdl_pharma.xml