turbo_boost-commands 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of turbo_boost-commands might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/turbo_boost/commands/runner.rb +3 -1
- data/lib/turbo_boost/commands/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 80941cbe1359ae53ddd65a0649eba403ec4bf716f5a88a3a2b05d95329170167
|
4
|
+
data.tar.gz: 201230a55e383701ba7fe169f40a73e6b472e166608379a13f4372c8459bd11a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ccf51d36d806ea03fb33b942eda255862d6fa4d97a04404554ed4379d782e5e7f247e66b2d23704ed852df0ad662a22033c94d7c6ee9089f919d563d3368dc64
|
7
|
+
data.tar.gz: b87a73a5c9908ea1c0a5fb6a76e196fb430f3eca457d2e965e456546b2231e58007144ed37081c31cfdbff24873e7438cc55b942654fced656d87ed99dac644e
|
data/README.md
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
</h1>
|
9
9
|
<p align="center">
|
10
10
|
<a href="http://blog.codinghorror.com/the-best-code-is-no-code-at-all/">
|
11
|
-
<img alt="Lines of Code" src="https://img.shields.io/badge/loc-
|
11
|
+
<img alt="Lines of Code" src="https://img.shields.io/badge/loc-1501-47d299.svg" />
|
12
12
|
</a>
|
13
13
|
<a href="https://codeclimate.com/github/hopsoft/turbo_boost-commands/maintainability">
|
14
14
|
<img src="https://api.codeclimate.com/v1/badges/fe1162a742fe83a4fdfd/maintainability" />
|
@@ -42,7 +42,7 @@ class TurboBoost::Commands::Runner
|
|
42
42
|
|
43
43
|
# validate csrf token
|
44
44
|
unless valid_client_token?
|
45
|
-
raise TurboBoost::
|
45
|
+
raise TurboBoost::InvalidTokenError,
|
46
46
|
"CSRF token mismatch! The request header `TurboBoost-Token: #{client_token}` does not match the expected value of `#{server_token}`."
|
47
47
|
end
|
48
48
|
|
@@ -116,6 +116,8 @@ class TurboBoost::Commands::Runner
|
|
116
116
|
return if command_errored?
|
117
117
|
return if command_performed?
|
118
118
|
command_instance.perform_with_callbacks command_method_name
|
119
|
+
rescue => error
|
120
|
+
prevent_controller_action error: error
|
119
121
|
end
|
120
122
|
|
121
123
|
def prevent_controller_action(error: nil)
|