caxlsx_rails 0.7.1 → 0.7.2
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/CHANGELOG.md +3 -0
- data/README.md +2 -2
- data/caxlsx_rails.gemspec +4 -1
- data/lib/axlsx_rails/action_controller.rb +8 -3
- data/lib/axlsx_rails/version.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cc48f1a9d95a8c39c15e2b6d12db62e3a7195bdee736afc56ac8579c793d785c
|
|
4
|
+
data.tar.gz: 5e4fd336847e2b44551ad31e74fc5f4d37858757b79588e7b48aa5f61bb9bd2b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 68adb74a635340ebc8d9cc23acd68c18b89d2f56e7b2606f6455bad5afdcc10ee7a80cec55dbd2d3a14931173df423236df3818d28b185ee06c977ba57e96829
|
|
7
|
+
data.tar.gz: 5b3b8bcce5fe6a0b718b5c045d9912d4c2fb13fb26946f5329aa84e5afb1b9e6976d705133999d3b563f7600360682afbd8ecef90ea8311e2d4d7ec0fc821b91
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
**Unreleased**
|
|
4
4
|
|
|
5
|
+
**June 18, 2026**: 0.7.2 release
|
|
6
|
+
|
|
7
|
+
- Fix `ActionView::MissingTemplate` on Rails >= 8.0 when a module is prepended to the controller: derive template lookup prefixes from the controller's `_prefixes` instead of `ancestors.take_while`
|
|
5
8
|
|
|
6
9
|
**April 1, 2026**: 0.7.1 release
|
|
7
10
|
|
data/README.md
CHANGED
|
@@ -33,8 +33,8 @@ See [previous installations](#previous-installations) if needed.
|
|
|
33
33
|
|
|
34
34
|
## Requirements
|
|
35
35
|
|
|
36
|
-
* Tested on Rails 6.1, and
|
|
37
|
-
* Supported Ruby versions: 2.6, 2.7, 3.x
|
|
36
|
+
* Tested on Rails 6.1, 7.x, and 8.x.
|
|
37
|
+
* Supported Ruby versions: 2.6, 2.7, 3.x, and 4.0
|
|
38
38
|
* Minimum Caxlsx version: 4.0
|
|
39
39
|
|
|
40
40
|
## FYI
|
data/caxlsx_rails.gemspec
CHANGED
|
@@ -14,7 +14,10 @@ Gem::Specification.new do |s|
|
|
|
14
14
|
s.description = "Caxlsx_Rails provides an Caxlsx renderer so you can move all your spreadsheet code from your controller into view files. Partials are supported so you can organize any code into reusable chunks (e.g. cover sheets, common styling, etc.) You can use it with acts_as_caxlsx, placing the to_xlsx call in a view and adding ':package => xlsx_package' to the parameter list. Now you can keep your controllers thin!"
|
|
15
15
|
|
|
16
16
|
s.metadata = {
|
|
17
|
-
"
|
|
17
|
+
"bug_tracker_uri" => "https://github.com/caxlsx/caxlsx_rails/issues",
|
|
18
|
+
"changelog_uri" => "https://github.com/caxlsx/caxlsx_rails/blob/master/CHANGELOG.md",
|
|
19
|
+
"source_code_uri" => "https://github.com/caxlsx/caxlsx_rails",
|
|
20
|
+
"rubygems_mfa_required" => "true"
|
|
18
21
|
}
|
|
19
22
|
|
|
20
23
|
s.files = Dir['lib/**/*', 'CHANGELOG.md', 'README.md', 'MIT-LICENSE', 'caxlsx_rails.gemspec']
|
|
@@ -22,9 +22,14 @@ ActionController::Renderers.add :xlsx do |filename, options|
|
|
|
22
22
|
#
|
|
23
23
|
if options[:template].nil?
|
|
24
24
|
options[:template] ||= action_name
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
# Use the controller's _prefixes (built from the superclass chain) instead of
|
|
26
|
+
# deriving prefixes from `ancestors`: a module prepended to the controller
|
|
27
|
+
# (memo_wise, instrumentation gems, ...) is the first ancestor and stops a
|
|
28
|
+
# take_while immediately, yielding no prefixes at all. Up to Rails 7.2 this
|
|
29
|
+
# branch was dead code because render option normalization ran before custom
|
|
30
|
+
# renderers and had already defaulted :template and :prefixes; Rails 8.0
|
|
31
|
+
# moved that normalization after the renderer, exposing the bug.
|
|
32
|
+
options[:prefixes] ||= _prefixes
|
|
28
33
|
end
|
|
29
34
|
|
|
30
35
|
options[:template] = filename.gsub(%r{^.*/}, '') if options[:template] == action_name
|
data/lib/axlsx_rails/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: caxlsx_rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.7.
|
|
4
|
+
version: 0.7.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Noel Peden
|
|
@@ -146,7 +146,10 @@ homepage: https://github.com/caxlsx/caxlsx_rails
|
|
|
146
146
|
licenses:
|
|
147
147
|
- MIT
|
|
148
148
|
metadata:
|
|
149
|
+
bug_tracker_uri: https://github.com/caxlsx/caxlsx_rails/issues
|
|
149
150
|
changelog_uri: https://github.com/caxlsx/caxlsx_rails/blob/master/CHANGELOG.md
|
|
151
|
+
source_code_uri: https://github.com/caxlsx/caxlsx_rails
|
|
152
|
+
rubygems_mfa_required: 'true'
|
|
150
153
|
rdoc_options: []
|
|
151
154
|
require_paths:
|
|
152
155
|
- lib
|
|
@@ -161,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
161
164
|
- !ruby/object:Gem::Version
|
|
162
165
|
version: '0'
|
|
163
166
|
requirements: []
|
|
164
|
-
rubygems_version: 4.0.
|
|
167
|
+
rubygems_version: 4.0.10
|
|
165
168
|
specification_version: 4
|
|
166
169
|
summary: A simple rails plugin to provide an xlsx renderer using the caxlsx gem.
|
|
167
170
|
test_files: []
|