ld 0.3.3 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ld/excel/sheet.rb +5 -5
- data/lib/ld/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d05d1f8966086a579dab4f78698c9036bbb327c
|
4
|
+
data.tar.gz: 132d98e82a6884d27211af170e9596565ebdbe21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf1dbe0b4f8af249609fc80c1b242bf659a8b4f569ebb4dc067421ebfdf9463fb66eb854c2cdbdf07ba7e4042724378f77b32f6c7c96c64e8f6ce516abab3e1c
|
7
|
+
data.tar.gz: c2ad5be258772c13de1921d45fc6e8743c0ee5ab379bb1183f44eb2457f577ad18197f9830bbaa329d63a06be1b8b3fb7be56f7e0cc1ab97b70356698e65119d
|
data/lib/ld/excel/sheet.rb
CHANGED
@@ -75,14 +75,14 @@ class Ld::Sheet
|
|
75
75
|
raise "不存在这个列 \n'#{col}'" if !col_i
|
76
76
|
{
|
77
77
|
location:"#{col}#{row}",
|
78
|
-
row:row,
|
78
|
+
row:row - 1,
|
79
79
|
col:col_i
|
80
80
|
}
|
81
81
|
end
|
82
82
|
end
|
83
83
|
# 调试
|
84
84
|
# maps.each do |arr|
|
85
|
-
# puts arr.map{|a| a[:location]}.to_s
|
85
|
+
# puts arr.map{|a| "#{a[:location]}(#{a[:row]}_#{a[:col]})"}.to_s
|
86
86
|
# end
|
87
87
|
maps
|
88
88
|
end
|
@@ -176,9 +176,9 @@ class Ld::Sheet
|
|
176
176
|
@sheet.default_format = @format
|
177
177
|
@rows.each_with_index do |row, r|
|
178
178
|
row.each_with_index do |unit, c|
|
179
|
-
|
180
|
-
|
181
|
-
write_unit_by_xy
|
179
|
+
row = point[:number] + r - 1
|
180
|
+
col = ABSCISSA[point[:character]] + c
|
181
|
+
write_unit_by_xy row, col, unit
|
182
182
|
end
|
183
183
|
end
|
184
184
|
self
|
data/lib/ld/version.rb
CHANGED