rggen-spreadsheet-loader 0.22.1 → 0.23.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c6d2262607ca5ee32919659967bc45109e23f85d1cb35fde4887ac87fc292a31
4
- data.tar.gz: 0f659c416f9c5c1cc946e6eec0fd9b0e01d1ad4a1aacc1177374cd628ec7cb6c
3
+ metadata.gz: 3e87a2a89331a6cae653d68ea608f4a12413c4c6a8f57ac1747c1491fb8fefa9
4
+ data.tar.gz: f8c2d6d7310451197d6b85dcc68847727bdbec781a3db67b609e7110a39f6ae8
5
5
  SHA512:
6
- metadata.gz: 39b07729604ec7c6658d430e6e596382170524e0fedf82127ff98e5acb0cc9ba10399220a6b51cbd71b56101ba47eb22fc7be9feaf57f30b139342d53029d276
7
- data.tar.gz: 711dad4ead0057108a78a15b69ac003de52114b700d5f1d6c5a25295fb9808e6007a92535320c5279ac0566a54fac2b4faaac9b2a88a5ceeaac7db7b4874fd32
6
+ metadata.gz: f195447df807071bc8f78ff900039a1f74e2e0382c8b9b037e97c25dd68e0ca44b9488b6982b41fa220acd4b1e43d120148fa2fba73f063e93079ac89283a810
7
+ data.tar.gz: 20c5d04ab6bc3a409943b6753c895c8f558a5bb1cf09e6d403c33b5283ec7cf2759db2b02118f5fb68e4d22b5a03110738115b212d15a85dc63cdfc7729b036c
@@ -4,13 +4,19 @@ module RgGen
4
4
  module SpreadsheetLoader
5
5
  module Spreadsheet
6
6
  class Cell < Core::InputBase::InputValue
7
- def initialize(row, column)
7
+ def initialize(value, row, column)
8
8
  position = Position.new(row.file, row.sheet, row.row, column)
9
- super(nil, position)
9
+ super(value, position)
10
10
  end
11
11
 
12
12
  alias_method :empty_cell?, :empty_value?
13
13
  end
14
+
15
+ class EmptyCell < Cell
16
+ def initialize(row, column)
17
+ super(nil, row, column)
18
+ end
19
+ end
14
20
  end
15
21
  end
16
22
  end
@@ -16,12 +16,12 @@ module RgGen
16
16
  attr_reader :row
17
17
 
18
18
  def [](column)
19
- @cells[column] ||= Cell.new(self, column)
19
+ @cells[column] ||= EmptyCell.new(self, column)
20
20
  @cells[column]
21
21
  end
22
22
 
23
23
  def []=(column, value)
24
- self[column].value = value
24
+ @cells[column] = Cell.new(value, self, column)
25
25
  end
26
26
 
27
27
  def cells(from = 0, length = nil)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RgGen
4
4
  module SpreadsheetLoader
5
- VERSION = '0.22.1'
5
+ VERSION = '0.23.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rggen-spreadsheet-loader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.22.1
4
+ version: 0.23.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taichi Ishitani
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-21 00:00:00.000000000 Z
11
+ date: 2022-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: simple_xlsx_reader
@@ -115,5 +115,5 @@ requirements: []
115
115
  rubygems_version: 3.3.7
116
116
  signing_key:
117
117
  specification_version: 4
118
- summary: rggen-spreadsheet-loader-0.22.1
118
+ summary: rggen-spreadsheet-loader-0.23.0
119
119
  test_files: []