mathjax-rails-3 3.2.2.1 → 3.2.2.3

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: ed3e86e8309860b45c1b0298b8d2e5c9c7d8a95b275c4eab74cebfb067b7395b
4
- data.tar.gz: 030a6bb1d97495a30da918285d4e47299417f683d650c356d1812908bdfd2965
3
+ metadata.gz: a5bfb1be70fc3fa1147c326b6c0dbd06b07a4a7f3fa3e6e13ccc1676f8aff4c2
4
+ data.tar.gz: ab09c327b67bea7719ec1be3a3162efff0a013d574b0f6f8793c861c442c6e0d
5
5
  SHA512:
6
- metadata.gz: d3dfff878c6f7d4933dc1fafc54fb1eaae87e7fcb17ea594a88336592808b2a0e61e0a2b8ad0855b99a8be9c29810d24b5475ad2ec9ae30322757ddbd3f52b12
7
- data.tar.gz: 5f972011b532495a9d8da8c3722eba3458a63c33c907531bb0be3ae4ef170e17b905a82a9325349ca8f6351066fc63b0834bceb27f0aed8564f0411b96ab20e0
6
+ metadata.gz: 6cdb4f84b5504c35c9db950318a2d2e2f1eebc8d3f072f2907c66811327031e8af6f1fa0c0100b8f322d594365de3d5bf60180622fe34a0e6308b5f99a483555
7
+ data.tar.gz: 2a5d84621fce356191e87e2dfa7df5df94dbc98618cac5e8019bb34724dd0f56f42ec172df8678810b730dca67efed7dc48d3d8202c74e42641879a42d82b434
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 13 Sep 2022
2
+ - Fix 404 handling
3
+
1
4
  ## 30 Jun 2022
2
5
  - Updated MathJax version to 3.2.2
3
6
 
@@ -11,10 +11,10 @@ class Mathjax::Rails::MathjaxRailsController < ActionController::Base
11
11
  options[:type] = mime_type.to_s unless mime_type.nil?
12
12
  options[:disposition] = 'inline'
13
13
  file = File.expand_path(filepath, __FILE__)
14
- if File.exists?(file)
14
+ if File.exist?(file)
15
15
  send_file file, options
16
16
  else
17
- render :status => 404
17
+ raise ActionController::RoutingError.new('')
18
18
  end
19
19
  end
20
20
 
@@ -1,6 +1,6 @@
1
1
  module Mathjax
2
2
  module Rails
3
- VERSION = '3.2.2.1'
3
+ VERSION = '3.2.2.3'
4
4
  MATHJAXVERSION = '3.2.2'
5
5
  DIRNAME = 'mathjax'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mathjax-rails-3
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.2.1
4
+ version: 3.2.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrien Wu
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2022-08-14 00:00:00.000000000 Z
13
+ date: 2023-04-13 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: railties
@@ -186,7 +186,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
186
186
  - !ruby/object:Gem::Version
187
187
  version: 1.3.6
188
188
  requirements: []
189
- rubygems_version: 3.1.2
189
+ rubygems_version: 3.3.5
190
190
  signing_key:
191
191
  specification_version: 4
192
192
  summary: A simple gem to integrate MathJax with Rails