flail 1.1.0 → 1.1.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
  SHA1:
3
- metadata.gz: 56551f92d97b5f0da8dc80a864ae45cd49b95329
4
- data.tar.gz: 36237862e72029db6b1f26af0627ba8a7a1302be
3
+ metadata.gz: cb93e074d6c8b7418790a8a51d13d19970dbb4c6
4
+ data.tar.gz: bf73bc428d17265942df6e1d7f54d32480be7ffc
5
5
  SHA512:
6
- metadata.gz: e7753b92a6939534016a2ad8bff352a1dd26333b2d1bfe4502412fbba2c0aeb30696b0e9e241d6b679d32814a9603c4e1f8155ffc4d3257fe1c3d7fac2042019
7
- data.tar.gz: bf808cf12e17fdaf83120d92897aa74336b2460b46365b5dd2b39818d8c528443f811a293b2e9f078f27fa90851e81fd381f82792d5a7c7451a9ed15937795c8
6
+ metadata.gz: 3bb5af026cc6b88333fb32c6b5314f1dc652308f8968799d2c79b2d7ad3d67bacbb8c4a2182df58335e420e4aaba0f3f2e0dce3168fc47ba4c1d31800a532eca
7
+ data.tar.gz: faaa1e4a23b9bd913b16772da762fb40e6693ba46a4376ec3625cf3460d88a289df5e22a181a61bd81596d61ff0b8869f92c90784529bd99b7e0cc1e481d5e18
@@ -8,8 +8,15 @@ class Flail
8
8
  end
9
9
 
10
10
  module InstanceMethods
11
- def render_exception(env, exception)
12
- Flail::Exception.new(env, exception).handle!
11
+ def render_exception(request_or_env, exception)
12
+ _env = if request_or_env.is_a?(::ActionDispatch::Request)
13
+ request_or_env.env
14
+ else
15
+ request_or_env
16
+ end
17
+
18
+ Flail::Exception.new(_env, exception).handle!
19
+
13
20
  super
14
21
  end
15
22
  end
@@ -1,3 +1,3 @@
1
1
  class Flail
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flail
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - John 'asceth' Long