dwc-archive 0.4.8 → 0.4.9
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/dwc-archive/classification_normalizer.rb +4 -3
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.9
|
@@ -39,6 +39,7 @@ class DarwinCore
|
|
39
39
|
@res = {}
|
40
40
|
ingest_core
|
41
41
|
calculate_classification_path
|
42
|
+
require 'ruby-debug'; debugger
|
42
43
|
ingest_extensions
|
43
44
|
@res
|
44
45
|
end
|
@@ -128,11 +129,11 @@ class DarwinCore
|
|
128
129
|
@error_names << {:name => taxon, :error => error}
|
129
130
|
raise DarwinCore::ParentNotCurrentError, error
|
130
131
|
end
|
131
|
-
if parent_cp
|
132
|
-
taxon.classification_path += parent_cp + [taxon.current_name_canonical]
|
133
|
-
else
|
132
|
+
if parent_cp.empty?
|
134
133
|
get_classification_path(@res[taxon.parent_id])
|
135
134
|
taxon.classification_path += @res[taxon.parent_id].classification_path + [taxon.current_name_canonical]
|
135
|
+
else
|
136
|
+
taxon.classification_path += parent_cp + [taxon.current_name_canonical]
|
136
137
|
end
|
137
138
|
end
|
138
139
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dwc-archive
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 29
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
9
|
+
- 9
|
10
|
+
version: 0.4.9
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Dmitry Mozzherin
|