dwc-archive 0.9.1 → 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -100,11 +100,6 @@ Update to latest rubygems (v >= 1.3.6) which adds gemcutter sources by default.
100
100
  [3, "Береза плакучая"]
101
101
  ]
102
102
 
103
- synonyms = [
104
- ["http://rs.tdwg.org/dwc/terms/TaxonID", "http://rs.tdwg.org/dwc/terms/scientificName", "http://rs.tdwg.org/dwc/terms/taxonomicStatus"],
105
- [1, "Betila Linnaeus, 1753", 'misspelling']
106
- ]
107
-
108
103
  eml = {
109
104
  :id => '1234',
110
105
  :license => 'http://creativecommons.org/licenses/by-sa/3.0/',
@@ -131,8 +126,7 @@ Update to latest rubygems (v >= 1.3.6) which adds gemcutter sources by default.
131
126
  }
132
127
 
133
128
  gen.add_core(core, 'core.txt')
134
- gen.add_extension(synonyms, 'synonyms.txt')
135
- gen.add_extension(vernacular_names, 'vernacular_names.txt')
129
+ gen.add_extension(vernacular_names, 'vernacular_names.txt', true, 'http://rs.gbif.org/terms/1.0/VernacularName')
136
130
  gen.add_meta_xml
137
131
  gen.add_eml_xml(eml)
138
132
  gen.pack
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.1
1
+ 0.9.2
@@ -16,14 +16,14 @@ class DarwinCore
16
16
  xml.core(opts.merge(:ignoreHeaderLines => @data[:core][:ignoreHeaderLines])) do
17
17
  xml.files { xml.location(@data[:core][:location]) }
18
18
  taxon_id, fields = find_taxon_id(@data[:core][:fields])
19
- xml.id_(:term => taxon_id[0], :index => taxon_id[1])
19
+ xml.id_(:index => taxon_id[1])
20
20
  fields.each { |f| xml.field(:term => f[0], :index => f[1]) }
21
21
  end
22
22
  @data[:extensions].each do |e|
23
23
  xml.extension(opts.merge(:ignoreHeaderLines => e[:ignoreHeaderLines], :rowType => e[:rowType])) do
24
24
  xml.files { xml.location(e[:location]) }
25
25
  taxon_id, fields = find_taxon_id(e[:fields])
26
- xml.coreid(:term => taxon_id[0], :index => taxon_id[1])
26
+ xml.coreid(:index => taxon_id[1])
27
27
  fields.each { |f| xml.field(:term => f[0], :index => f[1]) }
28
28
  end
29
29
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dwc-archive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -286,7 +286,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
286
286
  version: '0'
287
287
  segments:
288
288
  - 0
289
- hash: 4292793553882825535
289
+ hash: -921987096106095482
290
290
  required_rubygems_version: !ruby/object:Gem::Requirement
291
291
  none: false
292
292
  requirements: