[squeak-dev] The Trunk: Network-pre.197.mcz

commits at source.squeak.org commits at source.squeak.org
Mon May 15 20:17:00 UTC 2017


Patrick Rein uploaded a new version of Network to project The Trunk:
http://source.squeak.org/trunk/Network-pre.197.mcz

==================== Summary ====================

Name: Network-pre.197
Author: pre
Time: 15 May 2017, 10:16:50.494328 pm
UUID: 31250966-3cc4-5842-a5da-b35dbdc1d8aa
Ancestors: Network-pre.196

Minor fixes to comply with standard library protocol and adds a missing setter

=============== Diff against Network-pre.196 ===============

Item was changed:
  ----- Method: DateAndTime>>asMailMessageString (in category '*Network-Url') -----
  asMailMessageString
  	"According to RFC 822: https://tools.ietf.org/html/rfc822#section-5"
  	
  	| result |
  	result := WriteStream on: (String new: 30).
  	
  	result 
  		nextPutAll: self dayOfWeekAbbreviation;
  		nextPut: $,;
  		space;
  		nextPutAll: (self dayOfMonth asString padded: #left to: 2 with: $0);
  		space;
  		nextPutAll: self monthAbbreviation;
  		space;
  		nextPutAll: self year asString;
  		space.
  		
  	self printHMSOn: result.
  	
  	result space.
  	
  	result 
+ 		nextPutAll: (self offset negative ifTrue: ['-'] ifFalse: ['+']);
- 		nextPutAll: (self offset isNegative ifTrue: ['-'] ifFalse: ['+']);
  		nextPutAll: (self offset abs hours asString padded: #left to: 2 with: $0);
  		nextPutAll: (self offset abs minutes asString padded: #left to: 2 with: $0).
  	
  	^ result contents!

Item was added:
+ ----- Method: MailMessage>>subject: (in category 'access') -----
+ subject: aString
+ 
+ 	^ self setField: 'subject' toString: aString!



More information about the Squeak-dev mailing list