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 CHANGED
@@ -1,3 +1,6 @@
1
+ Ruby URI::Conponent 0.0.6 (2013-10-23)
2
+ * *.mixin: Mixin to URI::Generic by default
3
+
1
4
  Ruby URI::Conponent 0.0.5 (2013-10-23)
2
5
  * Query.new: Support nil (not empty) query string
3
6
  * UserInfoMixin#userinfo: Return nil if @userinfo_component is not set
@@ -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)
@@ -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
@@ -141,7 +141,7 @@ module URI #:nodoc:
141
141
 
142
142
  DEFAULT_PARAM_SEPARATOR = '&'
143
143
 
144
- def self.mixin(klass) #:nodoc:
144
+ def self.mixin(klass=URI::Generic) #:nodoc:
145
145
  QueryMixin.__send__(:append_features, klass)
146
146
  QueryMixin.__send__(:included, klass)
147
147
  end
@@ -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
@@ -1,6 +1,6 @@
1
1
  module URI #:nodoc:
2
2
  module Component
3
- VERSION = "0.0.5" ## :nodoc:
3
+ VERSION = "0.0.6" ## :nodoc:
4
4
  end
5
5
  end
6
6
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uri-component
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: