net-imap 0.6.6 → 0.6.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -64,12 +64,12 @@ module Net
64
64
  def authenticate(...) AuthenticationExchange.authenticate(self, ...) end
65
65
 
66
66
  ##
67
- # method: sasl_ir_capable?
67
+ # :method: sasl_ir_capable?
68
68
  # Do the protocol, server, and client all support an initial response?
69
69
  def_delegator :client, :sasl_ir_capable?
70
70
 
71
71
  ##
72
- # method: auth_capable?
72
+ # :method: auth_capable?
73
73
  # call-seq: auth_capable?(mechanism)
74
74
  #
75
75
  # Does the server advertise support for the +mechanism+?
@@ -94,12 +94,12 @@ module Net
94
94
  end
95
95
 
96
96
  ##
97
- # method: host
97
+ # :method: host
98
98
  # The hostname to which the client connected.
99
99
  def_delegator :client, :host
100
100
 
101
101
  ##
102
- # method: port
102
+ # :method: port
103
103
  # The destination port to which the client connected.
104
104
  def_delegator :client, :port
105
105
 
@@ -108,12 +108,12 @@ module Net
108
108
  def response_errors; [] end
109
109
 
110
110
  ##
111
- # method: drop_connection
111
+ # :method: drop_connection
112
112
  # Drop the connection gracefully, sending a "LOGOUT" command as needed.
113
113
  def_delegator :client, :drop_connection
114
114
 
115
115
  ##
116
- # method: drop_connection!
116
+ # :method: drop_connection!
117
117
  # Drop the connection abruptly, closing the socket without logging out.
118
118
  def_delegator :client, :drop_connection!
119
119
 
@@ -73,15 +73,13 @@ module Net
73
73
  end
74
74
 
75
75
  # Hash equality. Unlike #==, order will be taken into account.
76
- def hash
77
- return super if modseq.nil?
78
- [super, self.class, modseq].hash
79
- end
76
+ def hash = [SearchResult, modseq, super].hash
80
77
 
81
78
  # Hash equality. Unlike #==, order will be taken into account.
82
79
  def eql?(other)
83
- return super if modseq.nil?
84
- self.class == other.class && hash == other.hash
80
+ SearchResult === other &&
81
+ modseq == other.modseq &&
82
+ super
85
83
  end
86
84
 
87
85
  # Returns a string that represents the SearchResult.