dwc-archive 0.5.11 → 0.5.12
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.
- data/.gitignore +24 -0
- data/VERSION +1 -1
- data/lib/dwc-archive/classification_normalizer.rb +3 -2
- metadata +6 -11
data/.gitignore
ADDED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.12
|
@@ -103,7 +103,7 @@ class DarwinCore
|
|
103
103
|
#core has AcceptedNameUsageId
|
104
104
|
if @core_fields[:acceptednameusageid] && r[@core_fields[:acceptednameusageid]] && r[@core_fields[:acceptednameusageid]] != r[@core_fields[:id]]
|
105
105
|
add_synonym_from_core(@core_fields[:acceptednameusageid], r)
|
106
|
-
elsif !@core_fields[:acceptednameusageid] && status_synonym?(r[@core_fields[:taxonomicstatus]])
|
106
|
+
elsif !@core_fields[:acceptednameusageid] && @core_fields[:taxonomicstatus] && status_synonym?(r[@core_fields[:taxonomicstatus]])
|
107
107
|
add_synonym_from_core(parent_id, r)
|
108
108
|
else
|
109
109
|
taxon = @normalized_data[r[@core_fields[:id]]] ? @normalized_data[r[@core_fields[:id]]] : @normalized_data[r[@core_fields[:id]]] = DarwinCore::TaxonNormalized.new
|
@@ -134,9 +134,9 @@ class DarwinCore
|
|
134
134
|
end
|
135
135
|
|
136
136
|
def get_classification_path(taxon)
|
137
|
+
return if !taxon.classification_path.empty?
|
137
138
|
@paths_num += 1
|
138
139
|
DarwinCore.logger_write(@dwc.object_id, "Calculated %s paths" % @paths_num) if @paths_num % 10000 == 0
|
139
|
-
return if !taxon.classification_path.empty?
|
140
140
|
current_node = {taxon.id => {}}
|
141
141
|
if DarwinCore.nil_field?(taxon.parent_id)
|
142
142
|
taxon.classification_path << taxon.current_name_canonical
|
@@ -221,3 +221,4 @@ class DarwinCore
|
|
221
221
|
end
|
222
222
|
end
|
223
223
|
|
224
|
+
|
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dwc-archive
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 29
|
5
4
|
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 0
|
8
7
|
- 5
|
9
|
-
-
|
10
|
-
version: 0.5.
|
8
|
+
- 12
|
9
|
+
version: 0.5.12
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Dmitry Mozzherin
|
@@ -15,7 +14,7 @@ autorequire:
|
|
15
14
|
bindir: bin
|
16
15
|
cert_chain: []
|
17
16
|
|
18
|
-
date:
|
17
|
+
date: 2011-01-03 00:00:00 -05:00
|
19
18
|
default_executable:
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
@@ -26,7 +25,6 @@ dependencies:
|
|
26
25
|
requirements:
|
27
26
|
- - ">="
|
28
27
|
- !ruby/object:Gem::Version
|
29
|
-
hash: 23
|
30
28
|
segments:
|
31
29
|
- 0
|
32
30
|
- 2
|
@@ -42,7 +40,6 @@ dependencies:
|
|
42
40
|
requirements:
|
43
41
|
- - ">="
|
44
42
|
- !ruby/object:Gem::Version
|
45
|
-
hash: 13
|
46
43
|
segments:
|
47
44
|
- 1
|
48
45
|
- 2
|
@@ -58,7 +55,6 @@ dependencies:
|
|
58
55
|
requirements:
|
59
56
|
- - ">="
|
60
57
|
- !ruby/object:Gem::Version
|
61
|
-
hash: 3
|
62
58
|
segments:
|
63
59
|
- 0
|
64
60
|
version: "0"
|
@@ -75,6 +71,7 @@ extra_rdoc_files:
|
|
75
71
|
- README.rdoc
|
76
72
|
files:
|
77
73
|
- .document
|
74
|
+
- .gitignore
|
78
75
|
- LICENSE
|
79
76
|
- README.rdoc
|
80
77
|
- Rakefile
|
@@ -122,8 +119,8 @@ homepage: http://github.com/GlobalNamesArchitecture/dwc-archive
|
|
122
119
|
licenses: []
|
123
120
|
|
124
121
|
post_install_message:
|
125
|
-
rdoc_options:
|
126
|
-
|
122
|
+
rdoc_options:
|
123
|
+
- --charset=UTF-8
|
127
124
|
require_paths:
|
128
125
|
- lib
|
129
126
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -131,7 +128,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
131
128
|
requirements:
|
132
129
|
- - ">="
|
133
130
|
- !ruby/object:Gem::Version
|
134
|
-
hash: 3
|
135
131
|
segments:
|
136
132
|
- 0
|
137
133
|
version: "0"
|
@@ -140,7 +136,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
140
136
|
requirements:
|
141
137
|
- - ">="
|
142
138
|
- !ruby/object:Gem::Version
|
143
|
-
hash: 3
|
144
139
|
segments:
|
145
140
|
- 0
|
146
141
|
version: "0"
|