bbmb 2.1.7 → 2.1.8

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: c6e2c40f9e08bfaa1590a132dfd79a843dcab512
4
- data.tar.gz: 5ba3de786806de5a811194f9b56385afad3dd8aa
3
+ metadata.gz: 702ceb3e0e1946a527ab2c659f28c75e0a2c97d9
4
+ data.tar.gz: ffeb8fe8bdd1391bb3b164efcbed9921a8e45bbf
5
5
  SHA512:
6
- metadata.gz: 2042e778619244928656a79f4ebf46a52ef3ab48c3e4e0c0dc17a4ed25486647960d5700e4796aae71451638727f622f1573246ff07efb8114e596adead7179d
7
- data.tar.gz: 22b23be9e8bbd187a99b1e7beccda8378de9fdc072ed1457c9235534e7c325cee3964558055dc0d6a4ad2643ca02abfe015fc1c09b4f415e7d066a7dec1f8adc
6
+ metadata.gz: ba0abb06a32f248d24ac11d2ec49e3920ea738e32f48564464664099e206485badc27bf37212c7ec293ed8659bb61a17600a77d932b9f87657fd043c5e7bea7d
7
+ data.tar.gz: 5b01e5c6bae2b33a441e0035dc85b6d3453ff47e397d9b85d751af0fc54c557b8c8dcdcf0a871639e626330f25f2a200a9170bb6a947be87b52238c96b70eff3
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 2.1.8 / 17.05.2017
2
+
3
+ * Fix logging the number of imported items
4
+
1
5
  === 2.1.7 / 16.05.2017
2
6
 
3
7
  * Fix renaming/adding an email-address (if not already in yus)
@@ -2,12 +2,14 @@
2
2
  # Util::Updater -- bbmb.ch -- 14.09.2006 -- hwyss@ywesee.com
3
3
 
4
4
  require 'bbmb'
5
+ require 'sbsm/logger'
5
6
  require 'bbmb/util/polling_manager'
6
7
 
7
8
  module BBMB
8
9
  module Util
9
10
  module Updater
10
11
  def Updater.run
12
+ SBSM.info "Updated.run started at #{Time.now}"
11
13
  PollingManager.new.poll_sources do |filename, io|
12
14
  importer, *args = BBMB.config.importers[filename]
13
15
  if(importer)
@@ -17,8 +19,9 @@ module Updater
17
19
  end
18
20
  def Updater.import(importer, args, io)
19
21
  klass = Util.const_get(importer)
22
+ SBSM.info("Updater.import using klass #{klass}")
20
23
  count = klass.new(*args).import(io)
21
- SBSM.info('updater') { sprintf("%s imported %i entities", importer.class, (count && count.defined?(:to_i)) ? count.to_i : 0) }
24
+ SBSM.info("updater #{importer.class} imported #{count.is_a?(Integer) ? count : 0} entities")
22
25
  end
23
26
  end
24
27
  end
data/lib/bbmb/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module BBMB
2
- VERSION = '2.1.7'
2
+ VERSION = '2.1.8'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bbmb
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.7
4
+ version: 2.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masaomi Hatakeyama, Zeno R.R. Davatz, Niklaus Giger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-16 00:00:00.000000000 Z
11
+ date: 2017-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: odba