signauth 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -28,7 +28,9 @@ module Signauth
28
28
  end
29
29
 
30
30
  def authorization_parts
31
- headers['Authorization'].match(/^(\S+) (\S+):(\S+)/)[1, 3]
31
+ match_data = headers['Authorization'].match(/^(\S+) (\S+):(\S+)/)
32
+ return nil unless match_data
33
+ match_data[1, 3]
32
34
  end
33
35
 
34
36
  end
@@ -1,3 +1,3 @@
1
1
  module Signauth
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: signauth
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:
@@ -84,7 +84,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
84
84
  version: '0'
85
85
  segments:
86
86
  - 0
87
- hash: 300640047
87
+ hash: -851840237
88
88
  required_rubygems_version: !ruby/object:Gem::Requirement
89
89
  none: false
90
90
  requirements:
@@ -93,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
93
  version: '0'
94
94
  segments:
95
95
  - 0
96
- hash: 300640047
96
+ hash: -851840237
97
97
  requirements: []
98
98
  rubyforge_project:
99
99
  rubygems_version: 1.8.24