Skip to content

Commit c3c9b47

Browse files
authored
Merge pull request #149 from charliesome/remove-core-ext
Remove core extensions
2 parents a11909a + 4606a73 commit c3c9b47

File tree

3 files changed

+2
-56
lines changed

3 files changed

+2
-56
lines changed

lib/oauth.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
require 'oauth/version'
55

66
require 'oauth/oauth'
7-
require 'oauth/core_ext'
87

98
require 'oauth/client/helper'
109
require 'oauth/signature/hmac/sha1'

lib/oauth/core_ext.rb

Lines changed: 0 additions & 53 deletions
This file was deleted.

lib/oauth/helper.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ def escape(value)
1515
end
1616

1717
def _escape(string)
18-
URI.escape(string, OAuth::RESERVED_CHARACTERS)
18+
URI::DEFAULT_PARSER.escape(string, OAuth::RESERVED_CHARACTERS)
1919
end
2020

2121
def unescape(value)
22-
URI.unescape(value.gsub('+', '%2B'))
22+
URI::DEFAULT_PARSER.unescape(value.gsub('+', '%2B'))
2323
end
2424

2525
# Generate a random key of up to +size+ bytes. The value returned is Base64 encoded with non-word

0 commit comments

Comments
 (0)