dwc-archive 0.5.6 → 0.5.7

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.6
1
+ 0.5.7
@@ -120,6 +120,7 @@ class DarwinCore
120
120
  end
121
121
 
122
122
  def calculate_classification_path
123
+ @paths_num = 0
123
124
  @normalized_data.each do |taxon_id, taxon|
124
125
  next if !taxon.classification_path.empty?
125
126
  begin
@@ -131,6 +132,8 @@ class DarwinCore
131
132
  end
132
133
 
133
134
  def get_classification_path(taxon)
135
+ @paths_num += 1
136
+ DarwinCore.logger_write(@dwc.object_id, "Calculated %s paths" % @paths_num) if @paths_num % 10000 == 0
134
137
  return if !taxon.classification_path.empty?
135
138
  current_node = {taxon.id => {}}
136
139
  if DarwinCore.nil_field?(taxon.parent_id)
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: 7
4
+ hash: 5
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 6
10
- version: 0.5.6
9
+ - 7
10
+ version: 0.5.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dmitry Mozzherin
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-11 00:00:00 -05:00
18
+ date: 2010-11-15 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency