uri-component 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +3 -0
- data/lib/uri/component.rb +1 -1
- data/lib/uri/component/path.rb +1 -1
- data/lib/uri/component/query.rb +1 -1
- data/lib/uri/component/userinfo.rb +1 -1
- data/lib/uri/component/version.rb +1 -1
- metadata +1 -1
data/CHANGES
CHANGED
data/lib/uri/component.rb
CHANGED
@@ -46,7 +46,7 @@ module URI #:nodoc:
|
|
46
46
|
## p q.to_s #=> "foo=12&bar=ab&baz=x+y+z"
|
47
47
|
## p u.to_s #=> "http://bob@example.jp/path/file?foo=12&bar=ab&baz=x+y+z"
|
48
48
|
##
|
49
|
-
def self.mixin(klass)
|
49
|
+
def self.mixin(klass=URI::Generic)
|
50
50
|
URI::Component::UserInfo.mixin(klass) if klass.component.include?(:userinfo)
|
51
51
|
URI::Component::Path.mixin(klass) if klass.component.include?(:path)
|
52
52
|
URI::Component::Query.mixin(klass) if klass.component.include?(:query)
|
data/lib/uri/component/path.rb
CHANGED
@@ -21,7 +21,7 @@ module URI #:nodoc:
|
|
21
21
|
RE_COMPONENT = /^(?:#{URI::REGEXP::PATTERN::ABS_PATH})?$/
|
22
22
|
#:startdoc:
|
23
23
|
|
24
|
-
def self.mixin(klass) #:nodoc:
|
24
|
+
def self.mixin(klass=URI::Generic) #:nodoc:
|
25
25
|
PathMixin.__send__(:append_features, klass)
|
26
26
|
PathMixin.__send__(:included, klass)
|
27
27
|
end
|
data/lib/uri/component/query.rb
CHANGED
@@ -21,7 +21,7 @@ module URI #:nodoc:
|
|
21
21
|
RE_COMPONENT = /^(?:(#{RE_ELEMENT});)?(#{RE_ELEMENT})(?::(#{RE_ELEMENT}))?$/
|
22
22
|
#:startdoc:
|
23
23
|
|
24
|
-
def self.mixin(klass) #:nodoc:
|
24
|
+
def self.mixin(klass=URI::Generic) #:nodoc:
|
25
25
|
UserInfoMixin.__send__(:append_features, klass)
|
26
26
|
UserInfoMixin.__send__(:included, klass)
|
27
27
|
end
|