bbmb 2.2.7 → 2.2.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: b39fb11b316e6eadada10068a8347af8c10e1f12
4
- data.tar.gz: f52c596901d0d2a4d70826559897a5f31bca17f4
3
+ metadata.gz: fad1f8b5aca9d7f1c1b904f0079b7ff0ef3d9016
4
+ data.tar.gz: 57549268ac39f0626347809270c0afe2658ba4e1
5
5
  SHA512:
6
- metadata.gz: 3233ef8fb40d366248267fe149e0048b7327fd3836377c675722b2e14694e881134795126a275b22bf03c047371ecd7a87d15241958a34b3bbf44ad5ed9202a5
7
- data.tar.gz: ac1da1d8dce5df427d9da96ad7151408836091cfec63e4339afbb65c057c1574641770942bf19e02b11a28b1d162bb121b6d631e1ca68cebe5ed179a67e4dcfe
6
+ metadata.gz: 47f3672ce1568dce96c3adc9cd7b98605df10c66c542afbbe0fa55fe0811e9131be54851824300aec1737a06c40c53533897f9c754858c76e131f236aa98bec9
7
+ data.tar.gz: 65848a84b803cd7d7f836c8060b31f2643eea4d36458265d9b73d877f6cf8c88ba7bf9a6b8a247ae644e20e73630ac5de9014f6d5843adaa810a74c152ad726a
@@ -1,3 +1,10 @@
1
+ === 2.2.8 / 30.05.2017
2
+
3
+ * Add Customer set_email_without_yus for importer
4
+ * Show error, not traceback, when changing a email fails
5
+ * Fixed skipped test in test_polling_manager
6
+ * Avoid warning when importing orders
7
+
1
8
  === 2.2.7 / 24.05.2017
2
9
 
3
10
  * Fix running updater (@backup_dir no initialized)
@@ -64,6 +64,13 @@ class Customer
64
64
  def quota(article_id)
65
65
  @quotas.compact.find { |quota| quota.article_number == article_id }
66
66
  end
67
+ # This method is only for the importer!
68
+ def set_email_without_yus(email)
69
+ raise "Invalid email address: nil" unless email
70
+ email = email.encode('UTF-8')
71
+ return if @email.eql?(email)
72
+ @email = email
73
+ end
67
74
  def email=(email)
68
75
  if(@email || email)
69
76
  raise "Invalid email address: nil" unless email
@@ -46,7 +46,7 @@ class Order
46
46
  price * @quantity
47
47
  end
48
48
  def respond_to?(name)
49
- super || @product.respond_to?(name)
49
+ super(name) || @product.respond_to?(name)
50
50
  end
51
51
  end
52
52
  include Enumerable
@@ -59,6 +59,9 @@ module BBMB
59
59
  session.rename(old_name, new_name)
60
60
  end
61
61
  end
62
+ rescue => error
63
+ SBSM.info(msg = "#{error}: Cannot rename email '#{old_name}' to '#{new_name}'")
64
+ raise Yus::YusError
62
65
  end
63
66
  def run_invoicer
64
67
  @invoicer ||= Thread.new {
@@ -12,6 +12,7 @@ module Updater
12
12
  SBSM.info "Updated.run started at #{Time.now}"
13
13
  PollingManager.new.poll_sources do |filename, io|
14
14
  importer, *args = BBMB.config.importers[filename]
15
+ SBSM.info "Updated.run filename #{File.expand_path(filename)} importer #{importer.class}"
15
16
  if(importer)
16
17
  import(importer, args, io)
17
18
  end
@@ -1,3 +1,3 @@
1
1
  module BBMB
2
- VERSION = '2.2.7'
2
+ VERSION = '2.2.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.2.7
4
+ version: 2.2.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-24 00:00:00.000000000 Z
11
+ date: 2017-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: odba