decisive 0.8.4 → 0.9.0
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/.github/workflows/ci.yml +2 -2
- data/.ruby-version +1 -1
- data/Appraisals +6 -6
- data/decisive.gemspec +1 -0
- data/gemfiles/{rails_6.0.gemfile → rails_7.1.gemfile} +1 -1
- data/gemfiles/{rails_6.1.gemfile → rails_7.2.gemfile} +1 -1
- data/lib/decisive/render_xls_context.rb +1 -5
- data/lib/decisive/version.rb +1 -1
- data/lib/decisive/xls_hasher.rb +1 -7
- metadata +22 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b945f08db65a5275cf3630aef57ba562763630b8f7d4da3c3774d84f2c403c52
|
|
4
|
+
data.tar.gz: a64ba39fba71a016e42506dd03b0db8b3ac7a0e02d93ef44453b072b3175d8d7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 12271c423c16f11a47fd4fe5475addd94c935350c591d79ebcc9f9314ba0f2855d8018e3b3fb7ee1b376ef22c90da62d3469f96c3b7306bc4576d434ea2cef03
|
|
7
|
+
data.tar.gz: e3da77344bbd71dc17a12c344065211b9ac212368701ce1e7c45882b84cee6d4f419fdf7c8c34b36e9e2287c9fa813feb5b5c3cdf64fc8cef4c9277e55934f9a
|
data/.github/workflows/ci.yml
CHANGED
|
@@ -5,8 +5,8 @@ jobs:
|
|
|
5
5
|
strategy:
|
|
6
6
|
fail-fast: false
|
|
7
7
|
matrix:
|
|
8
|
-
gemfile: [
|
|
9
|
-
ruby: [
|
|
8
|
+
gemfile: [ rails_7.0, rails_7.1, rails_7.2 ]
|
|
9
|
+
ruby: [ 3.1, 3.2, 3.3 ]
|
|
10
10
|
|
|
11
11
|
runs-on: ubuntu-latest
|
|
12
12
|
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
|
data/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
ruby-3.
|
|
1
|
+
ruby-3.3.4
|
data/Appraisals
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
appraise "rails-
|
|
2
|
-
gem "actionview", "~>
|
|
1
|
+
appraise "rails-7.0" do
|
|
2
|
+
gem "actionview", "~>7.0.0"
|
|
3
3
|
end
|
|
4
4
|
|
|
5
|
-
appraise "rails-
|
|
6
|
-
gem "actionview", "~>
|
|
5
|
+
appraise "rails-7.1" do
|
|
6
|
+
gem "actionview", "~>7.1.0"
|
|
7
7
|
end
|
|
8
8
|
|
|
9
|
-
appraise "rails-7.
|
|
10
|
-
gem "actionview", "~>7.
|
|
9
|
+
appraise "rails-7.2" do
|
|
10
|
+
gem "actionview", "~>7.2.0"
|
|
11
11
|
end
|
|
12
12
|
|
data/decisive.gemspec
CHANGED
|
@@ -40,11 +40,7 @@ module Decisive
|
|
|
40
40
|
sheet = xls.add_worksheet(sanitize_name(worksheet.name)).tap do |sheet|
|
|
41
41
|
Renderer.new(worksheet.records, worksheet.block).each.with_index do |row, row_index|
|
|
42
42
|
row.each.with_index do |cell, cell_index|
|
|
43
|
-
|
|
44
|
-
sheet.add_cell row_index, cell_index, nil, cell[1..]
|
|
45
|
-
else
|
|
46
|
-
sheet.add_cell row_index, cell_index, cell.to_s
|
|
47
|
-
end
|
|
43
|
+
sheet.add_cell row_index, cell_index, cell.to_s
|
|
48
44
|
end
|
|
49
45
|
end
|
|
50
46
|
end
|
data/lib/decisive/version.rb
CHANGED
data/lib/decisive/xls_hasher.rb
CHANGED
|
@@ -7,13 +7,7 @@ module Decisive
|
|
|
7
7
|
spreadsheet.worksheets.reduce({}) do |hash, worksheet|
|
|
8
8
|
actual = []
|
|
9
9
|
worksheet.each do |row|
|
|
10
|
-
cells = row.cells.map
|
|
11
|
-
if cell.formula
|
|
12
|
-
"=" + cell.formula.expression
|
|
13
|
-
else
|
|
14
|
-
cell.value
|
|
15
|
-
end
|
|
16
|
-
end
|
|
10
|
+
cells = row.cells.map(&:value)
|
|
17
11
|
actual << cells
|
|
18
12
|
end
|
|
19
13
|
hash.merge worksheet.sheet_name => actual
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: decisive
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.9.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Micah Geisel
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-07-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: actionview
|
|
@@ -24,6 +24,20 @@ dependencies:
|
|
|
24
24
|
- - ">="
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: '0'
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: csv
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - ">="
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '0'
|
|
34
|
+
type: :runtime
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - ">="
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '0'
|
|
27
41
|
- !ruby/object:Gem::Dependency
|
|
28
42
|
name: rubyXL
|
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -115,9 +129,9 @@ files:
|
|
|
115
129
|
- bin/setup
|
|
116
130
|
- decisive.gemspec
|
|
117
131
|
- gemfiles/.bundle/config
|
|
118
|
-
- gemfiles/rails_6.0.gemfile
|
|
119
|
-
- gemfiles/rails_6.1.gemfile
|
|
120
132
|
- gemfiles/rails_7.0.gemfile
|
|
133
|
+
- gemfiles/rails_7.1.gemfile
|
|
134
|
+
- gemfiles/rails_7.2.gemfile
|
|
121
135
|
- lib/decisive.rb
|
|
122
136
|
- lib/decisive/render_csv_context.rb
|
|
123
137
|
- lib/decisive/render_xls_context.rb
|
|
@@ -130,7 +144,7 @@ homepage: https://github.com/botandrose/decisive
|
|
|
130
144
|
licenses:
|
|
131
145
|
- MIT
|
|
132
146
|
metadata: {}
|
|
133
|
-
post_install_message:
|
|
147
|
+
post_install_message:
|
|
134
148
|
rdoc_options: []
|
|
135
149
|
require_paths:
|
|
136
150
|
- lib
|
|
@@ -145,8 +159,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
145
159
|
- !ruby/object:Gem::Version
|
|
146
160
|
version: '0'
|
|
147
161
|
requirements: []
|
|
148
|
-
rubygems_version: 3.
|
|
149
|
-
signing_key:
|
|
162
|
+
rubygems_version: 3.5.11
|
|
163
|
+
signing_key:
|
|
150
164
|
specification_version: 4
|
|
151
165
|
summary: DSL for rendering CSVs
|
|
152
166
|
test_files: []
|