de.oddb 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. data/.gemtest +0 -0
  2. data/Guide.txt +16 -0
  3. data/Manifest.txt +31 -0
  4. data/Rakefile +3 -0
  5. data/doc/index.rbx +16 -0
  6. data/doc/resources/downloads/datadesc/chde.xls.txt +39 -0
  7. data/doc/resources/downloads/datadesc/de.oddb.csv.txt +43 -0
  8. data/doc/resources/downloads/datadesc/de.oddb.yaml.txt +160 -0
  9. data/doc/resources/downloads/datadesc/fachinfos.de.oddb.yaml.txt +65 -0
  10. data/doc/resources/downloads/examples/chde.xls +0 -0
  11. data/doc/resources/downloads/examples/compendium_de.oddb.org.firefox.epub +0 -0
  12. data/doc/resources/downloads/examples/compendium_de.oddb.org.htc.prc +0 -0
  13. data/doc/resources/downloads/examples/compendium_de.oddb.org.kindle.mobi +0 -0
  14. data/doc/resources/downloads/examples/compendium_de.oddb.org.stanza.epub +0 -0
  15. data/doc/resources/downloads/examples/de.oddb.csv +84 -0
  16. data/doc/resources/downloads/examples/de.oddb.yaml +15999 -0
  17. data/doc/resources/downloads/examples/fachinfos.de.oddb.yaml +56925 -0
  18. data/doc/resources/downloads/examples/patinfos.de.oddb.yaml +37265 -0
  19. data/doc/resources/downloads/examples/patinfos_de.oddb.org.firefox.epub +0 -0
  20. data/doc/resources/downloads/examples/patinfos_de.oddb.org.htc.prc +0 -0
  21. data/doc/resources/downloads/examples/patinfos_de.oddb.org.kindle.mobi +0 -0
  22. data/doc/resources/downloads/examples/patinfos_de.oddb.org.stanza.epub +0 -0
  23. data/doc/resources/errors/appdown.html +14 -0
  24. data/doc/resources/images/delicious.gif +0 -0
  25. data/doc/resources/images/digg.gif +0 -0
  26. data/doc/resources/images/simpy.gif +0 -0
  27. data/doc/resources/images/stumble.gif +0 -0
  28. data/doc/resources/javascript/admin.js +15 -0
  29. data/doc/resources/javascript/autofill.js +21 -0
  30. data/doc/resources/javascript/opener.js +29 -0
  31. data/doc/resources/livemarks16.png +0 -0
  32. data/doc/resources/mm/logo.png +0 -0
  33. data/doc/resources/mm/oddb.css +481 -0
  34. data/doc/resources/oddb/logo.png +0 -0
  35. data/doc/resources/oddb/oddb.css +534 -0
  36. data/lib/oddb.rb +1 -1
  37. data/lib/oddb/import/gkv.rb +1 -1
  38. metadata +46 -10
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
  # ODDB -- de.oddb.org -- 27.10.2006 -- hwyss@ywesee.com
3
3
 
4
- VERSION = '2.0.0'
4
+ VERSION = '2.0.1'
5
5
 
6
6
  module ODDB
7
7
  ODDB_VERSION =
@@ -179,7 +179,7 @@ class Gkv < Importer
179
179
  agent.dose = dose
180
180
  save agent
181
181
  substance = agent.substance
182
- if(substance.name != name)
182
+ if(name && substance.name != name)
183
183
  substance.name.add_synonym(name) && save(substance)
184
184
  end
185
185
  elsif(substance = import_substance(name))
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: de.oddb
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
5
- prerelease: false
4
+ hash: 13
5
+ prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 0
9
- - 0
10
- version: 2.0.0
9
+ - 1
10
+ version: 2.0.1
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: 2010-12-21 00:00:00 +01:00
18
+ date: 2011-02-12 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -26,12 +26,12 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- hash: 47
29
+ hash: 41
30
30
  segments:
31
31
  - 2
32
- - 8
33
- - 0
34
- version: 2.8.0
32
+ - 9
33
+ - 1
34
+ version: 2.9.1
35
35
  type: :development
36
36
  version_requirements: *id001
37
37
  description: Open Drug Database for Germany. Live at http://de.oddb.org
@@ -49,6 +49,10 @@ extra_rdoc_files:
49
49
  - LICENCE.txt
50
50
  - Manifest.txt
51
51
  - README.txt
52
+ - doc/resources/downloads/datadesc/chde.xls.txt
53
+ - doc/resources/downloads/datadesc/de.oddb.csv.txt
54
+ - doc/resources/downloads/datadesc/de.oddb.yaml.txt
55
+ - doc/resources/downloads/datadesc/fachinfos.de.oddb.yaml.txt
52
56
  files:
53
57
  - Guide.txt
54
58
  - History.txt
@@ -88,6 +92,37 @@ files:
88
92
  - data/fulltext/redist/french_stem.h
89
93
  - data/fulltext/redist/german_stem.c
90
94
  - data/fulltext/redist/german_stem.h
95
+ - doc/index.rbx
96
+ - doc/resources/downloads/datadesc/chde.xls.txt
97
+ - doc/resources/downloads/datadesc/de.oddb.csv.txt
98
+ - doc/resources/downloads/datadesc/de.oddb.yaml.txt
99
+ - doc/resources/downloads/datadesc/fachinfos.de.oddb.yaml.txt
100
+ - doc/resources/downloads/examples/chde.xls
101
+ - doc/resources/downloads/examples/compendium_de.oddb.org.firefox.epub
102
+ - doc/resources/downloads/examples/compendium_de.oddb.org.htc.prc
103
+ - doc/resources/downloads/examples/compendium_de.oddb.org.kindle.mobi
104
+ - doc/resources/downloads/examples/compendium_de.oddb.org.stanza.epub
105
+ - doc/resources/downloads/examples/de.oddb.csv
106
+ - doc/resources/downloads/examples/de.oddb.yaml
107
+ - doc/resources/downloads/examples/fachinfos.de.oddb.yaml
108
+ - doc/resources/downloads/examples/patinfos.de.oddb.yaml
109
+ - doc/resources/downloads/examples/patinfos_de.oddb.org.firefox.epub
110
+ - doc/resources/downloads/examples/patinfos_de.oddb.org.htc.prc
111
+ - doc/resources/downloads/examples/patinfos_de.oddb.org.kindle.mobi
112
+ - doc/resources/downloads/examples/patinfos_de.oddb.org.stanza.epub
113
+ - doc/resources/errors/appdown.html
114
+ - doc/resources/images/delicious.gif
115
+ - doc/resources/images/digg.gif
116
+ - doc/resources/images/simpy.gif
117
+ - doc/resources/images/stumble.gif
118
+ - doc/resources/javascript/admin.js
119
+ - doc/resources/javascript/autofill.js
120
+ - doc/resources/javascript/opener.js
121
+ - doc/resources/livemarks16.png
122
+ - doc/resources/mm/logo.png
123
+ - doc/resources/mm/oddb.css
124
+ - doc/resources/oddb/logo.png
125
+ - doc/resources/oddb/oddb.css
91
126
  - jobs/export_chde_xls
92
127
  - jobs/export_csv
93
128
  - jobs/export_fachinfo_yaml
@@ -480,6 +515,7 @@ files:
480
515
  - test/util/test_updater.rb
481
516
  - test/util/test_ydim.rb
482
517
  - test/util/test_yus.rb
518
+ - .gemtest
483
519
  has_rdoc: true
484
520
  homepage: http://scm.ywesee.com/?p=de.oddb.org/.git;a=summary
485
521
  licenses: []
@@ -511,7 +547,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
511
547
  requirements: []
512
548
 
513
549
  rubyforge_project: de.oddb
514
- rubygems_version: 1.3.7
550
+ rubygems_version: 1.5.2
515
551
  signing_key:
516
552
  specification_version: 3
517
553
  summary: Open Drug Database for Germany