net-http-digest_auth 1.3 → 1.4
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.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/History.txt +6 -0
- data/lib/net/http/digest_auth.rb +2 -2
- data/test/test_net_http_digest_auth.rb +7 -1
- metadata +9 -9
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 77c8140a24affc89491eace478070daf14196c18
|
|
4
|
+
data.tar.gz: dce1ec584eb5e9a05eae912c64191f4a6e968fde
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bd3cf490625849cf69b2135d09f14bfc28260f352ae7adccd092dca064f01cc260b0788bd16690fa68055185b06135774fd0855ba23c6569a5264ca5a7f91eae
|
|
7
|
+
data.tar.gz: c797f210e2a9c4eb1fccadff0adfbab74e947da33ddea47b4dafddf85f01c25be251a0f62a0bb953ae02ac9473afec70e9bcf4bc0927d56fad7b80ee0a000aa7
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/History.txt
CHANGED
data/lib/net/http/digest_auth.rb
CHANGED
|
@@ -49,7 +49,7 @@ class Net::HTTP::DigestAuth
|
|
|
49
49
|
##
|
|
50
50
|
# Version of Net::HTTP::DigestAuth you are using
|
|
51
51
|
|
|
52
|
-
VERSION = '1.
|
|
52
|
+
VERSION = '1.4'
|
|
53
53
|
|
|
54
54
|
##
|
|
55
55
|
# Creates a new DigestAuth header creator.
|
|
@@ -86,7 +86,7 @@ class Net::HTTP::DigestAuth
|
|
|
86
86
|
params = {}
|
|
87
87
|
challenge.gsub(/(\w+)="(.*?)"/) { params[$1] = $2 }
|
|
88
88
|
|
|
89
|
-
challenge =~ /algorithm=(.*?)([, ]|$)/
|
|
89
|
+
challenge =~ /algorithm="?(.*?)"?([, ]|$)/
|
|
90
90
|
|
|
91
91
|
params['algorithm'] = $1 || 'MD5'
|
|
92
92
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
require 'minitest/autorun'
|
|
2
2
|
require 'net/http/digest_auth'
|
|
3
3
|
|
|
4
|
-
class TestNetHttpDigestAuth < MiniTest::
|
|
4
|
+
class TestNetHttpDigestAuth < MiniTest::Test
|
|
5
5
|
|
|
6
6
|
def setup
|
|
7
7
|
@uri = URI.parse "http://www.example.com/"
|
|
@@ -106,6 +106,12 @@ class TestNetHttpDigestAuth < MiniTest::Unit::TestCase
|
|
|
106
106
|
assert_equal 'unknown algorithm "bogus"', e.message
|
|
107
107
|
end
|
|
108
108
|
|
|
109
|
+
def test_auth_header_quoted_algorithm
|
|
110
|
+
@header << 'algorithm="MD5"'
|
|
111
|
+
|
|
112
|
+
assert_equal expected, @da.auth_header(@uri, @header, 'GET')
|
|
113
|
+
end
|
|
114
|
+
|
|
109
115
|
def test_make_cnonce
|
|
110
116
|
da = Net::HTTP::DigestAuth.new
|
|
111
117
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: net-http-digest_auth
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: '1.
|
|
4
|
+
version: '1.4'
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Eric Hodel
|
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
|
30
30
|
KDyY1VIazVgoC8XvR4h/95/iScPiuglzA+DBG1hip1xScAtw05BrXyUNrc9CEMYU
|
|
31
31
|
wgF94UVoHRp6ywo8I7NP3HcwFQDFNEZPNGXsng==
|
|
32
32
|
-----END CERTIFICATE-----
|
|
33
|
-
date: 2013-
|
|
33
|
+
date: 2013-07-23 00:00:00.000000000 Z
|
|
34
34
|
dependencies:
|
|
35
35
|
- !ruby/object:Gem::Dependency
|
|
36
36
|
name: minitest
|
|
@@ -38,42 +38,42 @@ dependencies:
|
|
|
38
38
|
requirements:
|
|
39
39
|
- - ~>
|
|
40
40
|
- !ruby/object:Gem::Version
|
|
41
|
-
version: '
|
|
41
|
+
version: '5.0'
|
|
42
42
|
type: :development
|
|
43
43
|
prerelease: false
|
|
44
44
|
version_requirements: !ruby/object:Gem::Requirement
|
|
45
45
|
requirements:
|
|
46
46
|
- - ~>
|
|
47
47
|
- !ruby/object:Gem::Version
|
|
48
|
-
version: '
|
|
48
|
+
version: '5.0'
|
|
49
49
|
- !ruby/object:Gem::Dependency
|
|
50
50
|
name: rdoc
|
|
51
51
|
requirement: !ruby/object:Gem::Requirement
|
|
52
52
|
requirements:
|
|
53
53
|
- - ~>
|
|
54
54
|
- !ruby/object:Gem::Version
|
|
55
|
-
version: '
|
|
55
|
+
version: '4.0'
|
|
56
56
|
type: :development
|
|
57
57
|
prerelease: false
|
|
58
58
|
version_requirements: !ruby/object:Gem::Requirement
|
|
59
59
|
requirements:
|
|
60
60
|
- - ~>
|
|
61
61
|
- !ruby/object:Gem::Version
|
|
62
|
-
version: '
|
|
62
|
+
version: '4.0'
|
|
63
63
|
- !ruby/object:Gem::Dependency
|
|
64
64
|
name: hoe
|
|
65
65
|
requirement: !ruby/object:Gem::Requirement
|
|
66
66
|
requirements:
|
|
67
67
|
- - ~>
|
|
68
68
|
- !ruby/object:Gem::Version
|
|
69
|
-
version: '3.
|
|
69
|
+
version: '3.6'
|
|
70
70
|
type: :development
|
|
71
71
|
prerelease: false
|
|
72
72
|
version_requirements: !ruby/object:Gem::Requirement
|
|
73
73
|
requirements:
|
|
74
74
|
- - ~>
|
|
75
75
|
- !ruby/object:Gem::Version
|
|
76
|
-
version: '3.
|
|
76
|
+
version: '3.6'
|
|
77
77
|
description: |-
|
|
78
78
|
An implementation of RFC 2617 - Digest Access Authentication. At this time
|
|
79
79
|
the gem does not drop in to Net::HTTP and can be used for with other HTTP
|
|
@@ -122,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
122
122
|
version: '0'
|
|
123
123
|
requirements: []
|
|
124
124
|
rubyforge_project: net-http-digest_auth
|
|
125
|
-
rubygems_version: 2.0.
|
|
125
|
+
rubygems_version: 2.0.4
|
|
126
126
|
signing_key:
|
|
127
127
|
specification_version: 4
|
|
128
128
|
summary: An implementation of RFC 2617 - Digest Access Authentication
|
metadata.gz.sig
CHANGED
|
Binary file
|