rxl 0.6.0 → 0.6.1
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 +4 -4
- data/Gemfile +0 -1
- data/README.md +7 -1
- data/lib/rxl/version.rb +1 -1
- data/lib/worksheet.rb +2 -3
- data/rxl.gemspec +0 -1
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fda1bf36fc9587bddec1ea166f200685ef6349e6e1206a624487d26658b76f20
|
4
|
+
data.tar.gz: 2b45f54b8c6ea0b9fadc3c6afe1ae9a02ca052c3b4600da0a212320d7f098f72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11e0cc713505ce1ef2f2a5836c2d20937f86c9f0c069dd4cc1143bdf0e85d9ce1e9200fb55f91957c40b64197a02adf7635e80011ee1a2a2fedb4700344f58cd
|
7
|
+
data.tar.gz: b832820e7f28ababddde13791f75d757f59e7e9bcf99aace70c08befaba0e82a12ca13e5e434acc1ae1cf52b4cee93990ea1952be5eb4f83eca794413da22b79
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -12,7 +12,13 @@ https://github.com/weshatheleopard/rubyXL
|
|
12
12
|
|
13
13
|
## Breaking changes
|
14
14
|
|
15
|
-
Version 0.6.0 introduces a breaking change in the format of inputs for writing as tables
|
15
|
+
Version 0.6.0 introduces a breaking change in the format of inputs for writing as tables.
|
16
|
+
|
17
|
+
See revised documentation for sections: Write to file as tables, Formatting for tables
|
18
|
+
- "order" has been renamed "columns"
|
19
|
+
- "order" and "formats" have been brought within their respective sheet hash
|
20
|
+
|
21
|
+
This enables setting of these configurables on a per sheet basis instead of setting them once for all sheets
|
16
22
|
|
17
23
|
## Installation
|
18
24
|
|
data/lib/rxl/version.rb
CHANGED
data/lib/worksheet.rb
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
require 'rubyXL'
|
2
|
-
require 'mitrush'
|
3
2
|
require_relative 'cell'
|
4
3
|
require_relative 'cells'
|
5
4
|
|
@@ -15,7 +14,7 @@ module Worksheet
|
|
15
14
|
end
|
16
15
|
hash_worksheet = Cells.rubyxl_to_hash(rubyxl_rows)
|
17
16
|
process_sheet_to_populated_block(hash_worksheet)
|
18
|
-
|
17
|
+
hash_worksheet.delete_if { |key, _| %i[row_count column_count].include?(key) }
|
19
18
|
hash_worksheet
|
20
19
|
end
|
21
20
|
|
@@ -102,7 +101,7 @@ module Worksheet
|
|
102
101
|
####################################
|
103
102
|
|
104
103
|
def self.hash_worksheet_to_hash_table(raw_hash)
|
105
|
-
cells =
|
104
|
+
cells = Marshal.load(Marshal.dump(raw_hash)) # deep copy the raw_hash
|
106
105
|
columns = cells.keys.map { |key| key[/\D+/] }.uniq
|
107
106
|
columns.delete_if { |item| cells["#{item}1"][:value].nil? }
|
108
107
|
row_nums = cells.keys.map { |key| key[/\d+/].to_i }.uniq[1..-1] || []
|
data/rxl.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rxl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ian McWilliams
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-05-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -52,20 +52,6 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '3.0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: mitrush
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - '='
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: 0.1.0
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - '='
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: 0.1.0
|
69
55
|
description: |
|
70
56
|
Implements functionality written with Excel users in mind for straight reading and writing of sheets.
|
71
57
|
Row and column scope values are written to only the cells used; cells are specified by their Excel (A1) ID.
|