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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 03a7951268ed5aedac73d846652a11746eadf86c6c076ea59d165773980f3ae6
4
- data.tar.gz: 3ae559d6392922819992e9f83dbc5bc700031ba173d563ed230a6e11a14cfc1e
3
+ metadata.gz: 80941cbe1359ae53ddd65a0649eba403ec4bf716f5a88a3a2b05d95329170167
4
+ data.tar.gz: 201230a55e383701ba7fe169f40a73e6b472e166608379a13f4372c8459bd11a
5
5
  SHA512:
6
- metadata.gz: 1f91169356df03f0bf33ba054e6dddf01bffa0882457e513efa82da45520a0051d78fb63ccf2f2e4fb73896268cd94a0a5c161c41056d44e162814f201fc172b
7
- data.tar.gz: eec873b926a08613991da3688679b16274e84b3fef69a7ff9c88ef0b67d9990afe32285c54d9596d3406d52e0207bc05e563d0ff6f0d5ff99513019e1dffecbd
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-1499-47d299.svg" />
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::Commands::InvalidTokenError,
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)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module TurboBoost
4
4
  module Commands
5
- VERSION = "0.0.8"
5
+ VERSION = "0.0.9"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: turbo_boost-commands
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nate Hopkins (hopsoft)