abongo 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -43,7 +43,15 @@ class Abongo
43
43
  end
44
44
 
45
45
  def bongo!(test_name, options = {})
46
- Abongo.bongo!(test_name, options)
46
+ begin
47
+ Abongo.bongo!(test_name, options)
48
+ rescue
49
+ if Abongo.options[:failsafe]
50
+ return
51
+ else
52
+ raise
53
+ end
54
+ end
47
55
  end
48
56
 
49
57
  #Mark the user as a human.
@@ -1,4 +1,4 @@
1
1
  class Abongo
2
- VERSION = '1.0.3'
2
+ VERSION = '1.0.4'
3
3
  MAJOR_VERSION = '1'
4
4
  end
@@ -42,7 +42,15 @@ class Abongo
42
42
  end
43
43
 
44
44
  def bongo!(test_name, options = {})
45
- Abongo.bongo!(test_name, options)
45
+ begin
46
+ Abongo.bongo!(test_name, options)
47
+ rescue
48
+ if Abongo.options[:failsafe]
49
+ return
50
+ else
51
+ raise
52
+ end
53
+ end
46
54
  end
47
55
 
48
56
  #This causes an AJAX post against the URL. That URL should call Abongo.human!
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 3
9
- version: 1.0.3
8
+ - 4
9
+ version: 1.0.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Michael Fairley