rggen-spreadsheet-loader 0.22.1 → 0.24.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: 411f1ad848b74be57b6290493f43a370ef06c3ace9c58f3683f3c6553ee73bd4
4
+ data.tar.gz: c8bc322ce363bb7b7bb0d95bc350e470e20540ab7ed9004aac32867fcc9f5aa3
5
5
  SHA512:
6
- metadata.gz: 39b07729604ec7c6658d430e6e596382170524e0fedf82127ff98e5acb0cc9ba10399220a6b51cbd71b56101ba47eb22fc7be9feaf57f30b139342d53029d276
7
- data.tar.gz: 711dad4ead0057108a78a15b69ac003de52114b700d5f1d6c5a25295fb9808e6007a92535320c5279ac0566a54fac2b4faaac9b2a88a5ceeaac7db7b4874fd32
6
+ metadata.gz: aa9acef73426324dc6dbdb5c660d018b57f7ace47e49bf2a0f070dcd5368f1fd2faf8c826036b4c82ad72f45f786320657531e02c7b80e1c236b9306877cb7ae
7
+ data.tar.gz: 599bfbe7b09a5bdf76cf6fa6a781ed50dfa821bccf0cddd3b1280dcc125de1949971cb1c617b2055804c2905337372b9d8a8577a6df52f77c661c938d053709a
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2019-2022 Taichi Ishitani
3
+ Copyright (c) 2019-2023 Taichi Ishitani
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -41,7 +41,7 @@ Feedbacks, bug reports, questions and etc. are wellcome! You can post them by us
41
41
 
42
42
  ## Copyright & License
43
43
 
44
- Copyright © 2019-2022 Taichi Ishitani. RgGen::SpreadsheetLoader is licensed under the [MIT License](https://opensource.org/licenses/MIT), see [LICENSE](LICENSE) for futher details.
44
+ Copyright © 2019-2023 Taichi Ishitani. RgGen::SpreadsheetLoader is licensed under the [MIT License](https://opensource.org/licenses/MIT), see [LICENSE](LICENSE) for futher details.
45
45
 
46
46
  ## Code of Conduct
47
47
 
@@ -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.24.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.24.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: 2023-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: simple_xlsx_reader
@@ -105,15 +105,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
105
105
  requirements:
106
106
  - - ">="
107
107
  - !ruby/object:Gem::Version
108
- version: '2.6'
108
+ version: '2.7'
109
109
  required_rubygems_version: !ruby/object:Gem::Requirement
110
110
  requirements:
111
111
  - - ">="
112
112
  - !ruby/object:Gem::Version
113
113
  version: '0'
114
114
  requirements: []
115
- rubygems_version: 3.3.7
115
+ rubygems_version: 3.4.1
116
116
  signing_key:
117
117
  specification_version: 4
118
- summary: rggen-spreadsheet-loader-0.22.1
118
+ summary: rggen-spreadsheet-loader-0.24.0
119
119
  test_files: []