ruby-openid 2.6.0 → 2.7.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of ruby-openid might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/openid/association.rb +1 -1
- data/lib/openid/cryptutil.rb +5 -5
- data/lib/openid/message.rb +1 -1
- data/lib/openid/trustroot.rb +2 -2
- data/lib/openid/urinorm.rb +4 -6
- data/lib/openid/util.rb +0 -2
- data/lib/openid/version.rb +1 -1
- data/test/discoverdata.rb +1 -2
- data/test/test_accept.rb +4 -5
- data/test/test_association.rb +4 -3
- data/test/test_associationmanager.rb +22 -24
- data/test/test_ax.rb +9 -9
- data/test/test_checkid_request.rb +6 -8
- data/test/test_consumer.rb +5 -5
- data/test/test_cryptutil.rb +5 -5
- data/test/test_dh.rb +2 -2
- data/test/test_discover.rb +19 -23
- data/test/test_discovery_manager.rb +6 -7
- data/test/test_extension.rb +2 -2
- data/test/test_fetchers.rb +16 -16
- data/test/test_filters.rb +7 -7
- data/test/test_idres.rb +25 -40
- data/test/test_kvform.rb +5 -5
- data/test/test_kvpost.rb +2 -2
- data/test/test_linkparse.rb +3 -5
- data/test/test_message.rb +19 -19
- data/test/test_nonce.rb +2 -2
- data/test/test_oauth.rb +3 -3
- data/test/test_openid_yadis.rb +2 -2
- data/test/test_pape.rb +4 -4
- data/test/test_parsehtml.rb +3 -3
- data/test/test_responses.rb +2 -2
- data/test/test_server.rb +53 -53
- data/test/test_sreg.rb +6 -6
- data/test/test_stores.rb +12 -12
- data/test/test_trustroot.rb +2 -2
- data/test/test_ui.rb +2 -2
- data/test/test_urinorm.rb +2 -2
- data/test/test_util.rb +2 -2
- data/test/test_xrds.rb +15 -15
- data/test/test_xri.rb +4 -4
- data/test/test_xrires.rb +2 -2
- data/test/test_yadis_discovery.rb +5 -5
- data/test/testutil.rb +8 -1
- metadata +18 -7
- data/lib/openid/extras.rb +0 -13
- data/test/test_extras.rb +0 -35
data/lib/openid/extras.rb
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
class String
|
2
|
-
def starts_with?(other)
|
3
|
-
other = other.to_s
|
4
|
-
head = self[0, other.length]
|
5
|
-
head == other
|
6
|
-
end unless ''.respond_to?(:starts_with?)
|
7
|
-
|
8
|
-
def ends_with?(other)
|
9
|
-
other = other.to_s
|
10
|
-
tail = self[-1 * other.length, other.length]
|
11
|
-
tail == other
|
12
|
-
end unless ''.respond_to?(:ends_with?)
|
13
|
-
end
|
data/test/test_extras.rb
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
require 'test/unit'
|
2
|
-
require 'openid/extras'
|
3
|
-
|
4
|
-
class StartsWithTestCase < Test::Unit::TestCase
|
5
|
-
def test_starts_with
|
6
|
-
[["anything", ""],
|
7
|
-
["something else", ""],
|
8
|
-
["", ""],
|
9
|
-
["foos", "foo"],
|
10
|
-
].each{|str,target| assert(str.starts_with?(target))}
|
11
|
-
end
|
12
|
-
|
13
|
-
def test_not_starts_with
|
14
|
-
[["x", "y"],
|
15
|
-
["foos", "ball"],
|
16
|
-
["xx", "xy"],
|
17
|
-
].each{|str,target| assert(!(str.starts_with? target)) }
|
18
|
-
end
|
19
|
-
|
20
|
-
def test_ends_with
|
21
|
-
[["anything", ""],
|
22
|
-
["something else", " else"],
|
23
|
-
["", ""],
|
24
|
-
["foos", "oos"],
|
25
|
-
].each{|str,target| assert(str.ends_with?(target))}
|
26
|
-
end
|
27
|
-
|
28
|
-
def test_not_ends_with
|
29
|
-
[["x", "y"],
|
30
|
-
["foos", "ball"],
|
31
|
-
["xx", "xy"],
|
32
|
-
["foosball", "foosbal"],
|
33
|
-
].each{|str,target| assert(!(str.ends_with? target)) }
|
34
|
-
end
|
35
|
-
end
|