oddb.org 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. data/History.txt +11 -1
  2. data/Manifest.txt +20 -18
  3. data/Rakefile +2 -1
  4. data/ext/analysisparse/test/test_pagehandler.rb +9 -9
  5. data/ext/chapterparse/src/{parser.rb → chaptparser.rb} +0 -0
  6. data/ext/chapterparse/test/test_integrate.rb +22 -30
  7. data/ext/chapterparse/test/test_parser.rb +1 -1
  8. data/ext/chapterparse/test/test_writer.rb +1 -1
  9. data/ext/comarketing/test/test_pdf_parser.rb +5 -3
  10. data/ext/docdata/src/{parser.rb → docparser.rb} +0 -0
  11. data/ext/docdata/test/{test_parser.rb → parser_test.rb} +0 -0
  12. data/ext/export/test/test_csv_exporter.rb +3 -3
  13. data/ext/export/test/test_oddbdat.rb +3 -1
  14. data/ext/fiparse/src/fachinfo_doc.rb +13 -1
  15. data/ext/fiparse/src/fachinfo_writer.rb +1 -1
  16. data/ext/fiparse/src/{writer.rb → fiwriter.rb} +0 -0
  17. data/ext/fiparse/test/data/doc/Calcitriol_f.doc +0 -0
  18. data/ext/fiparse/test/data/doc/Lapidar_f.doc +0 -0
  19. data/ext/fiparse/test/data/doc/Tendro.doc +0 -0
  20. data/ext/fiparse/test/data/doc/Yakona_f.doc +0 -0
  21. data/ext/fiparse/test/{test_fachinfo_pdf.rb → fachinfo_pdf_test.rb} +0 -0
  22. data/ext/fiparse/test/{test_fiparse.rb → fiparse_test.rb} +0 -0
  23. data/ext/fiparse/test/{test_indications.rb → indications_test.rb} +0 -0
  24. data/ext/fiparse/test/{test_minifi.rb → minifi_test.rb} +0 -0
  25. data/ext/fiparse/test/test_fachinfo_doc_parser.rb +560 -628
  26. data/ext/fiparse/test/test_fachinfo_hpricot.rb +9 -9
  27. data/ext/fiparse/test/test_patinfo_hpricot.rb +2 -1
  28. data/ext/fipdf/test/{test_chapter_wrapper.rb → chapter_wrapper_test.rb} +0 -0
  29. data/ext/fipdf/test/{test_fachinfo_wrapper.rb → fachinfo_wrapper_test.rb} +0 -0
  30. data/ext/fipdf/test/{test_fachinfo_writer.rb → fachinfo_writer_test.rb} +0 -0
  31. data/ext/fipdf/test/{test_format.rb → format_test.rb} +0 -0
  32. data/ext/fipdf/test/{test_paragraph_wrapper.rb → paragraph_wrapper_test.rb} +0 -0
  33. data/ext/fipdf/test/{test_rules.rb → rules_test.rb} +0 -0
  34. data/ext/fipdf/test/{test_section_wrapper.rb → section_wrapper_test.rb} +0 -0
  35. data/ext/fipdf/test/{test_substance_index.rb → substance_index_test.rb} +0 -0
  36. data/ext/meddata/src/meddata.rb +1 -1
  37. data/ext/meddata/src/{parser.rb → meddparser.rb} +0 -0
  38. data/ext/meddata/test/{test_session.rb → session_test.rb} +2 -2
  39. data/ext/meddata/test/test_meddata.rb +9 -5
  40. data/ext/meddata/test/test_result.rb +2 -4
  41. data/ext/suite.rb +28 -0
  42. data/ext/swissreg/test/data/pemetrexed_detail.html +484 -0
  43. data/ext/swissreg/test/test_writer.rb +0 -19
  44. data/lib/oddb.org.rb +1 -1
  45. data/src/state/drugs/fachinfo.rb +1 -1
  46. data/test/suite.rb +2 -1
  47. metadata +24 -22
@@ -108,25 +108,6 @@ module ODDB
108
108
  }
109
109
  assert_equal(expected, @writer.extract_data)
110
110
  end
111
- def test_extract_data__deletion
112
- path = File.expand_path('data/isradipin_detail.html',
113
- File.dirname(__FILE__))
114
- html = File.read(path)
115
- @parser.feed(html)
116
- expected = {
117
- :base_patent => "CH654836",
118
- :base_patent_date => Date.new(1980, 7, 16),
119
- :certificate_number => "C654836/01",
120
- :deletion_date => Date.new(2004, 6, 8),
121
- :expiry_date => Date.new(2004, 6, 8),
122
- :iksnrs => ["49857"],
123
- :issue_date => Date.new(1996, 6, 28),
124
- :protection_date => Date.new(2000, 7, 17),
125
- :publication_date => Date.new(1996, 3, 29),
126
- :registration_date => Date.new(1995, 12, 6),
127
- }
128
- assert_equal(expected, @writer.extract_data)
129
- end
130
111
  end
131
112
  end
132
113
  end
@@ -1,3 +1,3 @@
1
1
  class Oddb.org
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.2'
3
3
  end
@@ -5,7 +5,7 @@ require 'state/drugs/global'
5
5
  require 'view/drugs/fachinfo'
6
6
  require 'delegate'
7
7
  require 'model/fachinfo'
8
- require 'ext/chapterparse/src/parser'
8
+ require 'ext/chapterparse/src/chaptparser'
9
9
  require 'ext/chapterparse/src/writer'
10
10
 
11
11
  module ODDB
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
- # suite.rb -- oddb -- 18.11.2002 -- hwyss@ywesee.com
2
+ # suite.rb -- oddb.org -- 15.02.2011 -- mhatakeyama@ywesee.com
3
3
 
4
4
  $: << File.dirname(__FILE__)
5
5
 
@@ -20,6 +20,7 @@ command = 'system "rcov #{path} -t --aggregate #{coverage.path} >> #{temp_out.pa
20
20
  begin
21
21
  Rcov
22
22
  coverage = Tempfile.new('coverage')
23
+ # p coverage.path
23
24
  rescue
24
25
  rcov = false
25
26
  command = 'system "ruby #{path} >> #{temp_out.path}"'
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oddb.org
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 1
10
- version: 1.0.1
9
+ - 2
10
+ version: 1.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Masaomi Hatakeyama, Zeno R.R. Davatz
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-02-13 00:00:00 +01:00
18
+ date: 2011-02-15 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -230,7 +230,7 @@ files:
230
230
  - ext/analysisparse/test/test_list_parser.rb
231
231
  - ext/analysisparse/test/test_pagehandler.rb
232
232
  - ext/analysisparse/test/test_simple_list_parser.rb
233
- - ext/chapterparse/src/parser.rb
233
+ - ext/chapterparse/src/chaptparser.rb
234
234
  - ext/chapterparse/src/writer.rb
235
235
  - ext/chapterparse/test/test_integrate.rb
236
236
  - ext/chapterparse/test/test_parser.rb
@@ -242,13 +242,13 @@ files:
242
242
  - ext/comarketing/test/test_pdf_parser.rb
243
243
  - ext/docdata/bin/docdatad
244
244
  - ext/docdata/src/docdata.rb
245
- - ext/docdata/src/parser.rb
245
+ - ext/docdata/src/docparser.rb
246
246
  - ext/docdata/test/data/html/12000.html
247
247
  - ext/docdata/test/data/html/15403.html
248
248
  - ext/docdata/test/data/html/19999.html
249
249
  - ext/docdata/test/data/html/35316.html
250
250
  - ext/docdata/test/data/html/table.html
251
- - ext/docdata/test/test_parser.rb
251
+ - ext/docdata/test/parser_test.rb
252
252
  - ext/export/bin/exportd
253
253
  - ext/export/src/competition_xls.rb
254
254
  - ext/export/src/csv_exporter.rb
@@ -266,11 +266,11 @@ files:
266
266
  - ext/fiparse/src/fachinfo_pdf.rb
267
267
  - ext/fiparse/src/fachinfo_writer.rb
268
268
  - ext/fiparse/src/fiparse.rb
269
+ - ext/fiparse/src/fiwriter.rb
269
270
  - ext/fiparse/src/indications.rb
270
271
  - ext/fiparse/src/minifi.rb
271
272
  - ext/fiparse/src/patinfo_hpricot.rb
272
273
  - ext/fiparse/src/textinfo_hpricot.rb
273
- - ext/fiparse/src/writer.rb
274
274
  - ext/fiparse/test/data/doc/Calcitriol_d_10.03.doc
275
275
  - ext/fiparse/test/data/doc/Calcitriol_f.doc
276
276
  - ext/fiparse/test/data/doc/Cimzia_d_07.doc
@@ -322,13 +322,13 @@ files:
322
322
  - ext/fiparse/test/data/smj_07_2007.rb
323
323
  - ext/fiparse/test/data/smj_08_2003.rb
324
324
  - ext/fiparse/test/data/smj_12_2004.rb
325
+ - ext/fiparse/test/fachinfo_pdf_test.rb
326
+ - ext/fiparse/test/fiparse_test.rb
327
+ - ext/fiparse/test/indications_test.rb
328
+ - ext/fiparse/test/minifi_test.rb
325
329
  - ext/fiparse/test/suite.rb
326
330
  - ext/fiparse/test/test_fachinfo_doc_parser.rb
327
331
  - ext/fiparse/test/test_fachinfo_hpricot.rb
328
- - ext/fiparse/test/test_fachinfo_pdf.rb
329
- - ext/fiparse/test/test_fiparse.rb
330
- - ext/fiparse/test/test_indications.rb
331
- - ext/fiparse/test/test_minifi.rb
332
332
  - ext/fiparse/test/test_patinfo_hpricot.rb
333
333
  - ext/fipdf/bin/fipdfd
334
334
  - ext/fipdf/src/chapter_wrapper.rb
@@ -340,15 +340,15 @@ files:
340
340
  - ext/fipdf/src/rules.rb
341
341
  - ext/fipdf/src/section_wrapper.rb
342
342
  - ext/fipdf/src/substance_index.rb
343
+ - ext/fipdf/test/chapter_wrapper_test.rb
344
+ - ext/fipdf/test/fachinfo_wrapper_test.rb
345
+ - ext/fipdf/test/fachinfo_writer_test.rb
346
+ - ext/fipdf/test/format_test.rb
347
+ - ext/fipdf/test/paragraph_wrapper_test.rb
348
+ - ext/fipdf/test/rules_test.rb
349
+ - ext/fipdf/test/section_wrapper_test.rb
350
+ - ext/fipdf/test/substance_index_test.rb
343
351
  - ext/fipdf/test/suite.rb
344
- - ext/fipdf/test/test_chapter_wrapper.rb
345
- - ext/fipdf/test/test_fachinfo_wrapper.rb
346
- - ext/fipdf/test/test_fachinfo_writer.rb
347
- - ext/fipdf/test/test_format.rb
348
- - ext/fipdf/test/test_paragraph_wrapper.rb
349
- - ext/fipdf/test/test_rules.rb
350
- - ext/fipdf/test/test_section_wrapper.rb
351
- - ext/fipdf/test/test_substance_index.rb
352
352
  - ext/fulltext/INSTALL
353
353
  - ext/fulltext/data/dicts/french/fulltext.aff
354
354
  - ext/fulltext/data/dicts/french/fulltext.dict
@@ -378,20 +378,22 @@ files:
378
378
  - ext/meddata/src/drbsession.rb
379
379
  - ext/meddata/src/ean_factory.rb
380
380
  - ext/meddata/src/meddata.rb
381
- - ext/meddata/src/parser.rb
381
+ - ext/meddata/src/meddparser.rb
382
382
  - ext/meddata/src/result.rb
383
383
  - ext/meddata/src/session.rb
384
+ - ext/meddata/test/session_test.rb
384
385
  - ext/meddata/test/test_ean_factory.rb
385
386
  - ext/meddata/test/test_meddata.rb
386
387
  - ext/meddata/test/test_result.rb
387
- - ext/meddata/test/test_session.rb
388
388
  - ext/readonly/bin/readonlyd
389
389
  - ext/readonly/src/readonly_server.rb
390
+ - ext/suite.rb
390
391
  - ext/swissreg/bin/swissregd
391
392
  - ext/swissreg/src/session.rb
392
393
  - ext/swissreg/src/swissreg.rb
393
394
  - ext/swissreg/src/writer.rb
394
395
  - ext/swissreg/test/data/ondansetron_detail.html
396
+ - ext/swissreg/test/data/pemetrexed_detail.html
395
397
  - ext/swissreg/test/data/pertactin_detail.html
396
398
  - ext/swissreg/test/data/sildenafil.html
397
399
  - ext/swissreg/test/data/sildenafil_detail.html