bard-static 3.2.0 → 3.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4a3b9f9931685d93b3d6bb8f125f3db67fbf163d079a6613ad1e0e85b91e3a8e
4
- data.tar.gz: eedf16b063d490fa8056bff8334010cc1dce0d0f63e51a1b449f5599eac176b3
3
+ metadata.gz: 201f3d38c62af4ab1d3cc60607f6449eb8b6628c9475f74afb23c43016a1f4c8
4
+ data.tar.gz: 1362aef29d37cdb849824c381420472cdc8a8aac4bcacff2790b9d4bc8c9f41d
5
5
  SHA512:
6
- metadata.gz: 6986e4cc858f7bf32b0b3acc530d0274830fafb11e68907619bbae29cfe017efcd95eb617dcb3da0e269321430d950c18e444cab12b7614acf6228fcdd70213d
7
- data.tar.gz: ff6c0fc341655efa41d26da5c9a196f59baa34fe5a65ed80b79c33b285737996341277b8bc17b4a0583964fbe2a195322bfb2818bca9c7abe473e3c9e64498b3
6
+ metadata.gz: c41f69e47e141aa5f6c6d72658df8ea8b18cbc3badc0678131aaefb273a1339383571f057b61df4038c4b601b813a6e94c7e23455d8bec1465ed793cc5a54db2
7
+ data.tar.gz: a29f851211972c3b197f6dac3223fa389663f6d056cb9e63c05994e63ff9cbc92f4607de0b23376b8a95ea7c4a0ebbfbf2bffe3f9572cd105a82cde5b98f2b3b
@@ -16,7 +16,7 @@ module Bard
16
16
  def with_404_handler
17
17
  begin
18
18
  yield
19
- rescue ActionView::MissingTemplate
19
+ rescue ActionView::MissingTemplate, Errno::ENAMETOOLONG
20
20
  render plain: "Not Found", status: 404
21
21
  end
22
22
  end
data/config/routes.rb CHANGED
@@ -6,7 +6,11 @@ Rails.application.routes.draw do
6
6
  root to: "bard/static/static#static", file_path: "index", as: "bard_static_default_root"
7
7
  get "*file_path" => "bard/static/static#static", constraints: ->(request){
8
8
  lookup_context = ActionView::LookupContext.new([Rails.root.join("app/views/static")])
9
- lookup_context.exists?(request.path) || lookup_context.exists?(request.path + "/index")
9
+ begin
10
+ lookup_context.exists?(request.path) || lookup_context.exists?(request.path + "/index")
11
+ rescue Errno::ENAMETOOLONG
12
+ false
13
+ end
10
14
  }
11
15
  end
12
16
 
@@ -1,5 +1,5 @@
1
1
  module Bard
2
2
  module Static
3
- VERSION = "3.2.0"
3
+ VERSION = "3.2.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bard-static
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.0
4
+ version: 3.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Micah Geisel
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2025-11-24 00:00:00.000000000 Z
15
+ date: 2026-07-15 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: ostruct