ld 0.3.3 → 0.3.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 59674cf5f131112be70e95b3b57c2fce00762ab7
4
- data.tar.gz: 251914cdc6f67afa5361fd32854cfc969a8c7166
3
+ metadata.gz: 2d05d1f8966086a579dab4f78698c9036bbb327c
4
+ data.tar.gz: 132d98e82a6884d27211af170e9596565ebdbe21
5
5
  SHA512:
6
- metadata.gz: b54d6f6e9eaac2a4dfd773c54601e1b44ccfbf37a9e4ae0813cb647b9ad14b31dff47fc4489ce6301c8272f833eaf432e71413dba30223d54cf9bfbb6dd1742b
7
- data.tar.gz: 5d0b4a91596ad7a254b32110b9a5995d4099353b73df84a012f3bbbeb6c30fe9a9b6209d791c7bac1d21c798f99ac222f0d4297ea9875f776823aa2ed22fdd42
6
+ metadata.gz: bf1dbe0b4f8af249609fc80c1b242bf659a8b4f569ebb4dc067421ebfdf9463fb66eb854c2cdbdf07ba7e4042724378f77b32f6c7c96c64e8f6ce516abab3e1c
7
+ data.tar.gz: c2ad5be258772c13de1921d45fc6e8743c0ee5ab379bb1183f44eb2457f577ad18197f9830bbaa329d63a06be1b8b3fb7be56f7e0cc1ab97b70356698e65119d
@@ -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
- x = point[:number] + r
180
- y = ABSCISSA[point[:character]] + c
181
- write_unit_by_xy x, y, unit
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
@@ -1,3 +1,3 @@
1
1
  module Ld
2
- VERSION = "0.3.3"
2
+ VERSION = "0.3.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ld
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Liu Dong