fanforce-plugin-factory 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YWFlNjViNmUzNDkyODgyYTgwOTllZmEyYjdlNzY5YzdkZGVmMDJmOA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZTU1NzE1NWVhOTYwYWM0NWQxZDNhMjAyYjBlMzE5Y2M5YmI1ODU2Yw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YWNiMzhmNjI5MTQ0ZWU1MzY1NDY1Yjk3NDY4YjAxZDRhZWQzMjMzZmE1MzM2
|
10
|
+
ZjdjYmIzNjc3Njg5YWMxODdlMmUzZWE5ZDJkYTUzMzE5ZDA1NmQyZmZkOWMx
|
11
|
+
MWU5NjM5NGNiZTQ4OTdkY2FlMTk3NGI3MTUxMWM0MGIyNTQ2Zjk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZjdiYmYyMDIxMDRmMWRjZjdhN2Y3MmY4MjYxZjY1ZTU5MzU0NjkxMmIyMTQx
|
14
|
+
Y2M4NDFiMmRiYmMxOTA5ZjZkNzA4YzYwODUxMzgzMzg5MTdiNmMxOGY4MDlj
|
15
|
+
NWExYmYxMDUwNTFmOTVlZjdhNGM5YmExMThlODY4YzA4MTM1ZTY=
|
@@ -8,7 +8,7 @@ class FanforcePlugin::Sinatra
|
|
8
8
|
error 400..600 do
|
9
9
|
e = env['sinatra.error'] or (next response if e.nil?)
|
10
10
|
|
11
|
-
if Object.const_defined?('Fanforce') and Fanforce.const_defined?('
|
11
|
+
if Object.const_defined?('Fanforce') and Fanforce.const_defined?('API') and e.is_a?(Fanforce::API::Error)
|
12
12
|
errors = e.errors
|
13
13
|
else
|
14
14
|
errors = e.respond_to?(:public_errors) ? e.public_errors : []
|