rservicebus 0.0.47 → 0.0.48
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.
- data/lib/rservicebus/Monitor/CsvDir.rb +7 -7
- metadata +1 -1
@@ -7,13 +7,13 @@ module RServiceBus
|
|
7
7
|
|
8
8
|
|
9
9
|
def checkPayloadForNumberOfColumns( payload )
|
10
|
-
if @QueryStringParts.
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
10
|
+
return if @QueryStringParts.nil?
|
11
|
+
return unless @QueryStringParts.has_key?("cols")
|
12
|
+
|
13
|
+
cols = @QueryStringParts["cols"][0].to_i
|
14
|
+
payload.each_with_index do |row, idx|
|
15
|
+
if row.length != cols then
|
16
|
+
raise "Expected number of columns, #{cols}, Actual number of columns, #{row.length}, on line, #{idx}"
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|