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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f5a97cd143dd1e3bd3940b6457dd4b1f824236c7
4
- data.tar.gz: 12a4ed179bdadaccacf34fe130300e77147d4c35
3
+ metadata.gz: 78abc0c7962c7aa005ceb0cd418388a73db7182c
4
+ data.tar.gz: 1bf3313f2e2fe98c5e40f62cd8b6c6a2594df3bc
5
5
  SHA512:
6
- metadata.gz: 5cbcc463342999b5f9c9e7dcc85f031783f3e4d9e31c8a8a4152bd64dddae086f5f82e1bbcef44f14fdd8fd3721c819d46ae892c7b02cdc256c3728b8359c1f8
7
- data.tar.gz: 4d5df19d77f565ab6ad268f9106e93a8aafe6d2de0b6baff7906d78bc469a50a583c29423a611b406612a6355f1aefe106ec16ad0e7653e31f0d5c9fe6ef6ed5
6
+ metadata.gz: 0a356d65924b553b313e7492325e9189ea87bdcd8f1c965d67049c1bff532c0621a81477dafb9962fb7a382711e5edcf2959546a69083e49e6c5285ecb90f8d0
7
+ data.tar.gz: 9530980e8c7e6e32b264ed5d1ea3cb3192d35639bd77ddb0dcef618d96b6d7727f338e792632613f5457990ff1bbea4de00e30c0b705936c33dfa9b566610476
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # ``gn_crossmap`` CHANGELOG
2
2
 
3
+ ## 1.2.1
4
+
5
+ * @dimus - Add `resolution_stop` field for stats
6
+
3
7
  ## 1.2.0
4
8
 
5
9
  * @dimus - #24 optional block for GnCrossmap.run now also gives access to
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
@@ -21,11 +21,17 @@ module GnCrossmap
21
21
  yield(@stats.stats) if block_given?
22
22
  end
23
23
  end
24
- @processor.writer.close
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
@@ -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, last_batches_time: [],
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
@@ -1,6 +1,6 @@
1
1
  # Namespace module for crossmapping checklists to GN sources
2
2
  module GnCrossmap
3
- VERSION = "1.2.0".freeze
3
+ VERSION = "1.2.1".freeze
4
4
 
5
5
  def self.version
6
6
  VERSION
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gn_crossmap
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Mozzherin