crashlog-auth-hmac 1.1.3 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -5,5 +5,7 @@ gemspec
5
5
 
6
6
  gem 'rake'
7
7
 
8
+ gem 'rack-test'
9
+ gem 'delorean'
8
10
  gem 'rspec', '>= 2.7.0'
9
11
  gem 'activesupport', '~> 3.2.0'
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- crashlog-auth-hmac (1.1.2)
4
+ crashlog-auth-hmac (1.1.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -12,6 +12,9 @@ GEM
12
12
  diff-lcs (1.1.3)
13
13
  i18n (0.6.0)
14
14
  multi_json (1.3.6)
15
+ rack (1.4.1)
16
+ rack-test (0.6.1)
17
+ rack (>= 1.0)
15
18
  rake (0.9.2.2)
16
19
  rspec (2.11.0)
17
20
  rspec-core (~> 2.11.0)
@@ -28,5 +31,6 @@ PLATFORMS
28
31
  DEPENDENCIES
29
32
  activesupport (~> 3.2.0)
30
33
  crashlog-auth-hmac!
34
+ rack-test
31
35
  rake
32
36
  rspec (>= 2.7.0)
@@ -75,10 +75,12 @@ module CrashLog
75
75
  request.request_method
76
76
  elsif request.is_a?(Hash) && request.has_key?(:method)
77
77
  request[:method].to_s
78
- elsif request.respond_to?(:method) && request.method.is_a?(String)
79
- request.method
80
78
  elsif request.respond_to?(:env) && request.env
81
79
  request.env['REQUEST_METHOD']
80
+ elsif request.is_a?(Hash) && request.has_key?('REQUEST_METHOD')
81
+ request['REQUEST_METHOD']
82
+ elsif request.respond_to?(:method) && request.method.is_a?(String)
83
+ request.method
82
84
  else
83
85
  raise ArgumentError, "Don't know how to get the request method from #{request.inspect}"
84
86
  end
@@ -109,6 +111,8 @@ module CrashLog
109
111
  request.unparsed_uri
110
112
  elsif request.is_a?(Hash) && request.has_key?(:url) && request[:url].is_a?(URI)
111
113
  request[:url].path
114
+ elsif request.is_a?(Hash) && request.has_key?('PATH_INFO')
115
+ request['PATH_INFO']
112
116
  else
113
117
  request.path
114
118
  end
@@ -1,5 +1,5 @@
1
1
  module CrashLog
2
2
  class AuthHMAC
3
- VERSION = "1.1.3"
3
+ VERSION = "1.1.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crashlog-auth-hmac
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-06 00:00:00.000000000 Z
12
+ date: 2012-08-08 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: A Ruby Gem for authenticating HTTP requests using a HMAC
15
15
  email: