squirrel-cucumber 0.3.12 → 0.3.12.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -52,6 +52,8 @@ module WWW #:nodoc:
52
52
  end
53
53
  end
54
54
 
55
+ # Mechanize throws exceptions for certain HTTP status codes.
56
+ # We want to catch these and still create a page.
55
57
  def fetch_page_with_secret_sauce(params)
56
58
  begin
57
59
  page = fetch_page_without_secret_sauce(params)
@@ -61,7 +63,8 @@ module WWW #:nodoc:
61
63
  page.redirects ||= params[:redirects].to_i
62
64
  page
63
65
  end
64
- alias_method_chain :fetch_page, :secret_sauce
66
+ alias_method :fetch_page_without_secret_sauce, :fetch_page
67
+ alias_method :fetch_page, :fetch_page_with_secret_sauce
65
68
  end
66
69
  end
67
70
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: squirrel-cucumber
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.12
4
+ version: 0.3.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Aslak Helles\xC3\xB8y"