rails-hush 1.0.2 → 1.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ecac0b23d1a8d920a7b8e3d64f2ffd0c0f8f4a6cdb8cc6d82f718fbb9bf23d57
4
- data.tar.gz: facf26326b131486e89bc9aecbddeabf22f9ab6419cc5cb9b4034851cdc0c34a
3
+ metadata.gz: 28eb5448f9a28b437d7cb46cbba086fc16c891df1a8083a694ed12fba56bcd32
4
+ data.tar.gz: c4b6f533e00e33e1b85c08abffe2fa863bdadbbe55e6709fefd522160e40fc0c
5
5
  SHA512:
6
- metadata.gz: 586c5f8758f1516cffefbd36b141610a2292985f836718a369a54dae29af7ad146de9ece255a417559ec4f5297e62bbe8451e6238f4bf3c6984b57e81fbf425c
7
- data.tar.gz: 0a0d2e64923218f3c4545df0102f14d30a78b8363d99541fe060813d90794ccf4c24abe4eb4e86e26d057c6398f4f0cf633c5a43693e139a4031e93cedda06af
6
+ metadata.gz: c2cca48d9b7558a79a5421f709c25277a670abcf19f46ab2b5c0a6ecc4bd7ce49e08276eeb381b5bc7ed34fe56c41b0354652edb1fa11a2569f0bf46697c249c
7
+ data.tar.gz: b900f8c397cf312c16347746333311dcd0f8ad2e22daf935c6d953cd4c0e400cb34e0eebbbdedd3172fbf3d06016113d5bbd43965f6c009c45e22bf7fe68b80c
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2019-2021 thomas morgan
1
+ Copyright 2019-2023 thomas morgan
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -41,6 +41,8 @@ module RailsHush
41
41
  render 406, request, 'Invalid media type'
42
42
  rescue ActionController::ParameterMissing => x
43
43
  render 422, request, "Required parameter missing or empty: #{x.param}"
44
+ rescue ActionController::InvalidAuthenticityToken
45
+ render 422, request, 'Invalid CSRF token'
44
46
  end
45
47
  else
46
48
  @app.call(env)
@@ -1,3 +1,3 @@
1
1
  module RailsHush
2
- VERSION = '1.0.2'
2
+ VERSION = '1.1.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-hush
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - thomas morgan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-20 00:00:00.000000000 Z
11
+ date: 2023-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -96,7 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
96
  - !ruby/object:Gem::Version
97
97
  version: '0'
98
98
  requirements: []
99
- rubygems_version: 3.2.22
99
+ rubygems_version: 3.4.10
100
100
  signing_key:
101
101
  specification_version: 4
102
102
  summary: Hushes worthless Rails exceptions & logs