omniauth-raven 0.1.1 → 0.1.2

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.
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Raven
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
@@ -59,7 +59,7 @@ module OmniAuth
59
59
  return fail!("invalid_protocol_version") unless ver == options[:raven_opt][:version]
60
60
 
61
61
  #Check the url
62
- return fail!("mismatched urls", Exception "url: " + url + " vs callback: " + callback_url) unless url == callback_url
62
+ return fail!("mismatched urls", Exception.new("url: " + url + " vs callback: " + callback_url) ) unless url == callback_url
63
63
 
64
64
  #Check the time skew
65
65
  issuetime = timeforRFC3339( issue )
@@ -67,13 +67,13 @@ module OmniAuth
67
67
  return fail!("time_skew") unless skew.abs < options[:raven_opt][:max_skew]
68
68
 
69
69
  #Optionally check that interaction with the user took place
70
- return fail!(:invalid_response, Exception "No raven interaction took place, but it was requested") if ( iact == 'yes' && auth == "" )
70
+ return fail!(:invalid_response, Exception.new("No raven interaction took place, but it was requested") ) if ( iact == 'yes' && auth == "" )
71
71
 
72
72
  #Optionally check that this response matches a request
73
73
  if @match_response_and_request
74
74
  response_id = unescape( params )
75
75
  request_id = session['request_id']
76
- return fail!("mismatched_response", Exception "req_id:" + request_id + " vs resp_id:" + response_id) unless request_id == response_id
76
+ return fail!("mismatched_response", Exception.new("req_id:" + request_id + " vs resp_id:" + response_id) ) unless request_id == response_id
77
77
  end
78
78
 
79
79
  #If we got here, and status is 200, then yield the principal
@@ -94,7 +94,7 @@ module OmniAuth
94
94
  super
95
95
  else
96
96
  #And return the error code if it is something else.
97
- return fail!(:invalid_credentials, Exception "Raven status:" + status)
97
+ return fail!(:invalid_credentials, Exception.new("Raven status:" + status) )
98
98
  end
99
99
 
100
100
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-raven
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: