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.

Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/lib/openid/association.rb +1 -1
  4. data/lib/openid/cryptutil.rb +5 -5
  5. data/lib/openid/message.rb +1 -1
  6. data/lib/openid/trustroot.rb +2 -2
  7. data/lib/openid/urinorm.rb +4 -6
  8. data/lib/openid/util.rb +0 -2
  9. data/lib/openid/version.rb +1 -1
  10. data/test/discoverdata.rb +1 -2
  11. data/test/test_accept.rb +4 -5
  12. data/test/test_association.rb +4 -3
  13. data/test/test_associationmanager.rb +22 -24
  14. data/test/test_ax.rb +9 -9
  15. data/test/test_checkid_request.rb +6 -8
  16. data/test/test_consumer.rb +5 -5
  17. data/test/test_cryptutil.rb +5 -5
  18. data/test/test_dh.rb +2 -2
  19. data/test/test_discover.rb +19 -23
  20. data/test/test_discovery_manager.rb +6 -7
  21. data/test/test_extension.rb +2 -2
  22. data/test/test_fetchers.rb +16 -16
  23. data/test/test_filters.rb +7 -7
  24. data/test/test_idres.rb +25 -40
  25. data/test/test_kvform.rb +5 -5
  26. data/test/test_kvpost.rb +2 -2
  27. data/test/test_linkparse.rb +3 -5
  28. data/test/test_message.rb +19 -19
  29. data/test/test_nonce.rb +2 -2
  30. data/test/test_oauth.rb +3 -3
  31. data/test/test_openid_yadis.rb +2 -2
  32. data/test/test_pape.rb +4 -4
  33. data/test/test_parsehtml.rb +3 -3
  34. data/test/test_responses.rb +2 -2
  35. data/test/test_server.rb +53 -53
  36. data/test/test_sreg.rb +6 -6
  37. data/test/test_stores.rb +12 -12
  38. data/test/test_trustroot.rb +2 -2
  39. data/test/test_ui.rb +2 -2
  40. data/test/test_urinorm.rb +2 -2
  41. data/test/test_util.rb +2 -2
  42. data/test/test_xrds.rb +15 -15
  43. data/test/test_xri.rb +4 -4
  44. data/test/test_xrires.rb +2 -2
  45. data/test/test_yadis_discovery.rb +5 -5
  46. data/test/testutil.rb +8 -1
  47. metadata +18 -7
  48. data/lib/openid/extras.rb +0 -13
  49. data/test/test_extras.rb +0 -35
@@ -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
@@ -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