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 +4 -4
- data/History.txt +7 -0
- data/lib/bbmb/model/customer.rb +7 -0
- data/lib/bbmb/model/order.rb +1 -1
- data/lib/bbmb/util/server.rb +3 -0
- data/lib/bbmb/util/updater.rb +1 -0
- data/lib/bbmb/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fad1f8b5aca9d7f1c1b904f0079b7ff0ef3d9016
|
4
|
+
data.tar.gz: 57549268ac39f0626347809270c0afe2658ba4e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47f3672ce1568dce96c3adc9cd7b98605df10c66c542afbbe0fa55fe0811e9131be54851824300aec1737a06c40c53533897f9c754858c76e131f236aa98bec9
|
7
|
+
data.tar.gz: 65848a84b803cd7d7f836c8060b31f2643eea4d36458265d9b73d877f6cf8c88ba7bf9a6b8a247ae644e20e73630ac5de9014f6d5843adaa810a74c152ad726a
|
data/History.txt
CHANGED
@@ -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)
|
data/lib/bbmb/model/customer.rb
CHANGED
@@ -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
|
data/lib/bbmb/model/order.rb
CHANGED
data/lib/bbmb/util/server.rb
CHANGED
data/lib/bbmb/util/updater.rb
CHANGED
@@ -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
|
data/lib/bbmb/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2017-05-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: odba
|