rsr_group 2.1.3 → 2.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/rsr_group/data_row.rb +3 -3
- data/lib/rsr_group/response_file.rb +6 -3
- data/lib/rsr_group/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: afce02024f9de6f8333e3e2b43a1c545b38bdf28
|
|
4
|
+
data.tar.gz: 0a1b072acc72a1e0d3441b2c593ce0c3c3b935ca
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ddfdecde15e3a943a065e82a4dc6a65d572180778513362ce6ce9ef616120c60d99401f27261402770d1b1a8141ca3c559e47df5723d6f121f422676b1247e91
|
|
7
|
+
data.tar.gz: 2ffa45c386e540f5b7491e67267c158c4fda18c537bd9786e43d4c508a2c8604c0c813354a58756e9e442c22c27027c41fb7108cc987d8e2bdcb39b5cec68612
|
data/lib/rsr_group/data_row.rb
CHANGED
|
@@ -26,9 +26,9 @@ module RsrGroup
|
|
|
26
26
|
@name = points[3]
|
|
27
27
|
@zip = points[4]
|
|
28
28
|
when :order_detail # 20
|
|
29
|
-
get_errors(points[
|
|
30
|
-
@quantity
|
|
31
|
-
@stock_id
|
|
29
|
+
get_errors(points[6]) if has_errors && points[6] != "00000"
|
|
30
|
+
@quantity = points[3].to_i
|
|
31
|
+
@stock_id = points[2]
|
|
32
32
|
@shipping_carrier = points[4]
|
|
33
33
|
@shipping_method = SHIPPING_METHODS[points[5]]
|
|
34
34
|
when :confirmation_header # 30
|
|
@@ -8,8 +8,9 @@ module RsrGroup
|
|
|
8
8
|
def initialize(options = {})
|
|
9
9
|
requires!(options, :username, :password, :filename)
|
|
10
10
|
|
|
11
|
-
@credentials
|
|
12
|
-
@filename
|
|
11
|
+
@credentials = options.select { |k, v| [:username, :password].include?(k) }
|
|
12
|
+
@filename = File.basename(options[:filename])
|
|
13
|
+
@account_number = @filename.split('-')[2]
|
|
13
14
|
end
|
|
14
15
|
|
|
15
16
|
FILE_TYPES.each do |key, value|
|
|
@@ -50,7 +51,9 @@ module RsrGroup
|
|
|
50
51
|
|
|
51
52
|
@json = {
|
|
52
53
|
response_type: response_type,
|
|
53
|
-
identifier: @content.lines[1].split(";")[0]
|
|
54
|
+
identifier: @content.lines[1].split(";")[0],
|
|
55
|
+
filename: @filename,
|
|
56
|
+
account_number: @account_number,
|
|
54
57
|
}
|
|
55
58
|
|
|
56
59
|
return parse_eerr if error?
|
data/lib/rsr_group/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rsr_group
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1.
|
|
4
|
+
version: 2.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dale Campbell
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-02-
|
|
11
|
+
date: 2018-02-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: smarter_csv
|
|
@@ -135,7 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
135
135
|
version: '0'
|
|
136
136
|
requirements: []
|
|
137
137
|
rubyforge_project:
|
|
138
|
-
rubygems_version: 2.
|
|
138
|
+
rubygems_version: 2.6.12
|
|
139
139
|
signing_key:
|
|
140
140
|
specification_version: 4
|
|
141
141
|
summary: RSR Group Ruby library
|