gn_crossmap 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +1 -3
- data/lib/gn_crossmap/resolver.rb +7 -1
- data/lib/gn_crossmap/stats.rb +2 -2
- data/lib/gn_crossmap/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78abc0c7962c7aa005ceb0cd418388a73db7182c
|
4
|
+
data.tar.gz: 1bf3313f2e2fe98c5e40f62cd8b6c6a2594df3bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a356d65924b553b313e7492325e9189ea87bdcd8f1c965d67049c1bff532c0621a81477dafb9962fb7a382711e5edcf2959546a69083e49e6c5285ecb90f8d0
|
7
|
+
data.tar.gz: 9530980e8c7e6e32b264ed5d1ea3cb3192d35639bd77ddb0dcef618d96b6d7727f338e792632613f5457990ff1bbea4de00e30c0b705936c33dfa9b566610476
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -11,8 +11,6 @@ in [GN Resolver][resolver].
|
|
11
11
|
|
12
12
|
Checklist has to be in a CSV format.
|
13
13
|
|
14
|
-
[Issues on waffle.io][waffle]
|
15
|
-
|
16
14
|
## Compatibility
|
17
15
|
|
18
16
|
This gem is compatible with Ruby versions higher or equal to 2.1.0
|
@@ -121,6 +119,7 @@ end
|
|
121
119
|
|ingestion_span |time of intermediate checkpoint of reading csv |
|
122
120
|
|ingested_records |number of ingested records at an intermediate checkpoint |
|
123
121
|
|resolution_start |time when resolution of names started |
|
122
|
+
|resolution_stop |time when resolution of names stopped |
|
124
123
|
|resolution_span |time of intermediate checkpoint of resolving names |
|
125
124
|
|resolved_records |number of names already processed |
|
126
125
|
|last_batches_time |time required to process the last batch of names |
|
@@ -269,4 +268,3 @@ See [LICENSE][license] for details.
|
|
269
268
|
[terms]: http://rs.tdwg.org/dwc/terms
|
270
269
|
[files]: https://github.com/GlobalNamesArchitecture/gn_crossmap/tree/master/spec/files
|
271
270
|
[output]: https://github.com/GlobalNamesArchitecture/gn_crossmap/tree/master/spec/files/output-example.csv
|
272
|
-
[waffle]: https://waffle.io/GlobalNamesArchitecture/gn_crossmap
|
data/lib/gn_crossmap/resolver.rb
CHANGED
@@ -21,11 +21,17 @@ module GnCrossmap
|
|
21
21
|
yield(@stats.stats) if block_given?
|
22
22
|
end
|
23
23
|
end
|
24
|
-
|
24
|
+
wrap_up
|
25
25
|
end
|
26
26
|
|
27
27
|
private
|
28
28
|
|
29
|
+
def wrap_up
|
30
|
+
@stats.stats[:resolution_stop] = Time.now
|
31
|
+
@stats.stats[:status] = :finish
|
32
|
+
@processor.writer.close
|
33
|
+
end
|
34
|
+
|
29
35
|
def update_stats(records_num)
|
30
36
|
@stats.stats[:total_records] = records_num
|
31
37
|
@stats.stats[:resolution_start] = Time.now
|
data/lib/gn_crossmap/stats.rb
CHANGED
@@ -9,8 +9,8 @@ module GnCrossmap
|
|
9
9
|
@stats = { status: :init, total_records: 0, ingested_records: 0,
|
10
10
|
resolved_records: 0, ingestion_span: nil,
|
11
11
|
resolution_span: nil, ingestion_start: nil,
|
12
|
-
resolution_start: nil,
|
13
|
-
matches: match_types }
|
12
|
+
resolution_start: nil, resolution_stop: nil,
|
13
|
+
last_batches_time: [], matches: match_types }
|
14
14
|
end
|
15
15
|
|
16
16
|
private
|
data/lib/gn_crossmap/version.rb
CHANGED