mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-21 01:30:12 +01:00
Upgraded to open_id_authentication plugin at 00d8bc7f97 and unpacked ruby-openid gem version 2.1.2.
This commit is contained in:
parent
6149900e0c
commit
e92dae2ffc
227 changed files with 30857 additions and 669 deletions
11
vendor/gems/ruby-openid-2.1.2/lib/openid/extras.rb
vendored
Normal file
11
vendor/gems/ruby-openid-2.1.2/lib/openid/extras.rb
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
class String
|
||||
def starts_with?(other)
|
||||
head = self[0, other.length]
|
||||
head == other
|
||||
end
|
||||
|
||||
def ends_with?(other)
|
||||
tail = self[-1 * other.length, other.length]
|
||||
tail == other
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue