static_error_pages 0.3.0 → 0.3.1

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: 00411dbb5dd859970a5b807fd5eedcc9e2b1ac32ee221e86c63f022d72ed9b0d
4
- data.tar.gz: b21ac8fe45ae8db2921248da5935afa7687201625d10bc0c77e066c763abf706
3
+ metadata.gz: 34cffc73ed629580e036bab3ace48cddadfb6b61dc29d3cfc6afbaa7ffec9b28
4
+ data.tar.gz: 972858c8efd0e784e8b0fbf637372e4ddd76167955c7877545ccad92c29bbc8c
5
5
  SHA512:
6
- metadata.gz: 36c1c79289e82be0ab494cf43d89a3830fe239052e75fff8b6a7267bc7d376c140e5be14335c058e0642ab29f10d21522396317f0a139522f40544f01251ad16
7
- data.tar.gz: cb683c39e9389db84b0ab72689bc3b4e57aaba1fae7b94e88494a502636ff74e08e6ef97d4b0981a179bb094fd0541bccca6590311b063bce1a0bcb82f2fb8ad
6
+ metadata.gz: '008c643cd0b89c33bdc5ba05a2509e7a57d21ba7cfb863a97af927e7251f4ccbbad0d328b1ed9bf49d103a7a101f8f084eb087614de98d692889a3230fb6bb7b'
7
+ data.tar.gz: becdcdd2f0ec9a952e9ea308a7fde07b598e9043e7e918afccd2b9d32bf5f75b9648a8cb0f32d3f7beb46c356b8acae20626e99203dd755e82886c435fbf1f1e
@@ -1,3 +1,3 @@
1
1
  module StaticErrorPages
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
3
3
  end
@@ -8,7 +8,7 @@ namespace :assets do
8
8
  task error_pages: :environment do
9
9
  layout = Rails.application.config.static_error_pages.layout
10
10
  Rails.application.config.static_error_pages.pages.each do |file|
11
- if Rails.env.version >= '7.0.0'
11
+ if Rails.version >= '7.0.0'
12
12
  out = ApplicationController.renderer.render("error_pages/#{file.remove('.html')}", layout: layout)
13
13
  else
14
14
  out = ApplicationController.renderer.render("error_pages/#{file}", layout: layout)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: static_error_pages
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Wienert