[Pkg] Sake : Sake-Core-kph.95.mcz

squeak-dev-noreply at lists.squeakfoundation.org squeak-dev-noreply at lists.squeakfoundation.org
Tue Jan 13 15:56:27 UTC 2009


A new version of Sake-Core was added to project Sake :
http://www.squeaksource.com/Sake/Sake-Core-kph.95.mcz

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

Name: Sake-Core-kph.95
Author: test
Time: 13 January 2009, 3:56:24 pm
UUID: bfddf117-651e-48be-bf9a-8248de37b113
Ancestors: Sake-Core-kph.94

saving a documentation method now returns boolean indicating whether or not a change occurred

=============== Diff against Sake-Core-kph.94 ===============

Item was changed:
  ----- Method: SakeTask class>>at:category:putMethod:doc: (in category 'as yet unclassified') -----
  at: selector category: cat putMethod: code doc: content
  
+ 	"only replace the method source if it has changed, return true/false to indicate whether a change occurred"
+ 	
+ 	| s source changed |
- 	| s source |
  	
  	source := (s := selector asLegalSelector asSymbol) , String cr, code  ,String cr, '""""""', String cr, content.
  
+ 	(changed := (self sourceCodeAt: s ifAbsent: nil) ~= source) ifTrue: [								 
+ 		self compile: source classified: cat notifying: nil.
+ 	].
+ 
+ 	^ changed!
- 	(self sourceCodeAt: s ifAbsent: nil) ~= source ifTrue: [								 
- 			 
- 		self compile: source classified: cat notifying: nil
- 	] 	
- 	 !



More information about the Packages mailing list