catchex 0.0.6 → 0.0.7

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.
Files changed (3) hide show
  1. data/Rakefile +1 -1
  2. data/lib/catchex.rb +4 -1
  3. metadata +3 -3
data/Rakefile CHANGED
@@ -12,7 +12,7 @@ require 'rake/testtask'
12
12
  require 'fileutils'
13
13
  spec = Gem::Specification.new do |s|
14
14
  s.name = 'catchex'
15
- s.version = '0.0.6'
15
+ s.version = '0.0.7'
16
16
  s.has_rdoc = false
17
17
  s.bindir = 'bin'
18
18
  s.add_dependency('rake', '>= 0.8')
data/lib/catchex.rb CHANGED
@@ -13,7 +13,7 @@ module CatchEx
13
13
  class Config
14
14
  @@project_key = ""
15
15
  @@scenario = ""
16
- @@excepted = [ActionController::RoutingError]
16
+ @@excepted = []
17
17
 
18
18
  def self.project_key(project_key = nil)
19
19
  unless project_key.nil?
@@ -36,6 +36,9 @@ module CatchEx
36
36
 
37
37
  def configure
38
38
  yield Config
39
+ if defined? ActionController::RoutingError
40
+ @@scenario << ActionController::RoutingError unless @@scenario.include? ActionController::RoutingError
41
+ end
39
42
  end
40
43
 
41
44
  # Fetch the local IP address for the hosts
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: catchex
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 6
10
- version: 0.0.6
9
+ - 7
10
+ version: 0.0.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Braisdom