X Tutup
Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 3 additions & 2 deletions repository/BaselineOfGrease.package/.filetree
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"noMethodMetaData" : true,
"separateMethodMetaAndSource" : false,
"useCypressPropertiesFile" : true }
"noMethodMetaData" : true,
"useCypressPropertiesFile" : true
}
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ baselinePharo: spec
group: 'Slime Tests' with: #('Grease-Tests-Slime') ].

spec
for: #(#'pharo10.x' #'pharo11.x' #'pharo12.x')
for: #(#'pharo10.x' #'pharo11.x')
do: [
spec
package: 'Grease-Core' with: [ spec includes: #('Grease-Pharo100-Core') ];
Expand All @@ -67,4 +67,22 @@ baselinePharo: spec

spec
group: 'Slime' with: #('Grease-Pharo90-Slime');
group: 'Slime Tests' with: #('Grease-Tests-Slime') ]
group: 'Slime Tests' with: #('Grease-Tests-Slime') ].

spec
for: #(#'pharo12.x')
do: [
spec
package: 'Grease-Core' with: [ spec includes: #('Grease-Pharo120-Core') ];
package: 'Grease-Tests-Pharo-Core' with: [ spec requires: #('Grease-Tests-Core') ];
package: 'Grease-Tests-Core'
with: [ spec
requires: #('Grease-Pharo120-Core');
includes: #('Grease-Tests-Pharo-Core') ];
package: 'Grease-Pharo120-Core' with: [ spec requires: #('Grease-Core') ];
package: 'Grease-Pharo120-Slime' with: [ spec requires: #('Grease-Core') ];
package: 'Grease-Tests-Slime' with: [ spec requires: #('Grease-Pharo120-Slime') ].

spec
group: 'Slime' with: #('Grease-Pharo120-Slime');
group: 'Slime Tests' with: #('Grease-Tests-Slime') ]
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
{
"category" : "BaselineOfGrease",
"classinstvars" : [
],
"classvars" : [
],
"commentStamp" : "",
"instvars" : [
],
"name" : "BaselineOfGrease",
"pools" : [
],
"super" : "BaselineOf",
"type" : "normal" }
"category" : "BaselineOfGrease",
"classinstvars" : [ ],
"pools" : [ ],
"classvars" : [ ],
"instvars" : [ ],
"name" : "BaselineOfGrease",
"type" : "normal"
}
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
SystemOrganization addCategory: #BaselineOfGrease!
SystemOrganization addCategory: #'BaselineOfGrease-Manifest'!
self packageOrganizer ensurePackage: #BaselineOfGrease withTags: #('Manifest' 'Manifest-BaselineOfGrease')!
3 changes: 1 addition & 2 deletions repository/BaselineOfGrease.package/properties.json
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
{
}
{ }
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
tests
classSideOf: aClass
^ aClass theMetaClass
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
tests
defineClass: aClassSymbol superclassName: aSuperSymbol category: aString forRBModel: aModel
^ aModel defineClass: aSuperSymbol , ' subclass: #' , aClassSymbol , '
instanceVariableNames: ''''
classVariableNames: ''''
poolDictionaries: ''''
category: ''' , aString , ''''
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
tests
removeCategory: aString
(Smalltalk organization listAtCategoryNamed: aString) do:[ :e |
SmalltalkImage current removeClassNamed: e ].
Smalltalk organization
removeCategory: aString
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
tests
selectorsInProtocol: aString ofClass: aClass
^ aClass organization listAtCategoryNamed: aString
6 changes: 1 addition & 5 deletions repository/Grease-Core.package/monticello.meta/categories.st
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
SystemOrganization addCategory: #'Grease-Core'!
SystemOrganization addCategory: #'Grease-Core-Collections'!
SystemOrganization addCategory: #'Grease-Core-Exceptions'!
SystemOrganization addCategory: #'Grease-Core-Text'!
SystemOrganization addCategory: #'Grease-Core-Utilities'!
self packageOrganizer ensurePackage: #'Grease-Core' withTags: #(#Collections #Exceptions #Text #Utilities)!
5 changes: 5 additions & 0 deletions repository/Grease-Pharo120-Core.package/.filetree
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"separateMethodMetaAndSource" : false,
"noMethodMetaData" : true,
"useCypressPropertiesFile" : true
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
*Grease-Pharo120-Core
fullName
"In VW, will include the namespace"

^ self name
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"name" : "Behavior"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
*Grease-Pharo120-Core
valueWithPossibleArguments: anArray
| args |
(anArray size == self numArgs)
ifTrue: [ ^ self valueWithArguments: anArray ].
args := Array new: self numArgs.
args replaceFrom: 1
to: (anArray size min: args size)
with: anArray
startingAt: 1.
^ self valueWithArguments: args
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"name" : "BlockClosure"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*Grease-Pharo120-Core
greaseString
"ByteArrays should not automatically be converted to Strings. You should use a GRCodec for this."
^ self printString
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"name" : "ByteArray"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*Grease-Pharo120-Core
greaseInteger
"Answer an unicode code point of the receiver."
^ self charCode
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"name" : "Character"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*Grease-Pharo120-Core
any
^ self anyOne
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"name" : "Collection"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*Grease-Pharo120-Core
asHTMLColor
^'#', self asHexString
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"name" : "Color"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*Grease-Pharo120-Core
milliseconds: anInteger
^ self milliSeconds: anInteger
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*Grease-Pharo120-Core
asMilliseconds
^ self asMilliSeconds
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*Grease-Pharo120-Core
milliseconds
^ nanos quo: NanosInMillisecond
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"name" : "Duration"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*Grease-Pharo120-Core
greaseNext: anInteger putAll: aCollection startingAt: startIndex
stream greaseNext: anInteger putAll: aCollection startingAt: startIndex
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"name" : "GRDelegatingStream"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
defaults
defaultValue
^ nil
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
accessing
use: anObject during: aBlock
^ self
value: anObject
during: aBlock
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
accessing
default
^ self class defaultValue
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"commentStamp" : "",
"super" : "DynamicVariable",
"category" : "Grease-Pharo120-Core",
"classinstvars" : [ ],
"pools" : [ ],
"classvars" : [ ],
"instvars" : [ ],
"name" : "GRDynamicVariable",
"type" : "normal"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
*Grease-Pharo120-Core
greasePharo100Core
^ self new
name: 'Grease-Pharo100-Core';
addDependency: 'Grease-Core';
url: #greaseUrl;
yourself
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"name" : "GRPackage"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
A GRPharoLatin1Codec is a WACodec optimized for ISO-8859-1 (direct byte to character mapping).
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
private
basicForEncoding: aString
(self supportsEncoding: aString)
ifFalse: [ self unsupportedEncoding: aString ].
^ self basicNew initializeWithName: aString
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
accessing
codecs
^ Array with: (self basicForEncoding: 'iso-8859-1')
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
private
supportedEncodingNames
^ #('iso-8859-1' 'ISO-8859-1' 'latin-1' 'latin1')
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
private
supportsEncoding: aString
"Answer whether the the given encoding name is supported."
^ self supportedEncodingNames includes: aString
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
conversion
decode: aStringOrByteArray
"Overridden for efficencey."

^ aStringOrByteArray asString
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
conversion
decoderFor: aReadStream
"wrap to avoid String vs ByteArray issues"
^ GRPharoLatin1CodecStream on: aReadStream
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
conversion
encoderFor: aWriteStream
"wrap to avoid String vs ByteArray issues"
^ GRPharoLatin1CodecStream on: aWriteStream
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
initialization
initializeWithName: aString
self initialize.
name := aString
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
accessing
name
^ name
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"commentStamp" : "<historical>",
"super" : "GRNullCodec",
"category" : "Grease-Pharo120-Core",
"classinstvars" : [ ],
"pools" : [ ],
"classvars" : [ ],
"instvars" : [
"name"
],
"name" : "GRPharoLatin1Codec",
"type" : "normal"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
A GRPharoLatin1CodecStream is a WACodecStream optimized for ISO-8859-1 (direct byte to character mapping).
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
streaming
next: anInteger
^ (stream next: anInteger) asString
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
streaming
next
^ Character value: stream next
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"commentStamp" : "<historical>",
"super" : "GRNullCodecStream",
"category" : "Grease-Pharo120-Core",
"classinstvars" : [ ],
"pools" : [ ],
"classvars" : [ ],
"instvars" : [ ],
"name" : "GRPharoLatin1CodecStream",
"type" : "normal"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
A WASqueakPlatform is the Squeak implementation of SeasidePlatformSupport, the Seaside class that provides functionality that can not be implemented in a platform independent way.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class initialization
initialize
self initializeXmlTable.
self initializeUrlTable.
self select
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
class initialization
initializeUrlTable
UrlTable := ByteArray new: 256.
1 to: 256 do: [ :index |
('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.~' includes: (Character codePoint: index - 1))
ifTrue: [ UrlTable at: index put: 0 ]
ifFalse: [ UrlTable at: index put: 1 ] ]
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
class initialization
initializeXmlTable
XmlTable := ByteArray new: 256.
1 to: 256 do: [ :index |
('"<&>' includes: (Character codePoint: index - 1))
ifTrue: [ XmlTable at: index put: 1 ]
ifFalse: [ XmlTable at: index put: 0 ] ]
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
class initialization
unload
self unselect
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
startup
addToShutDownList: anObject
"Add anObject to the shutdown-list of the system. On shutdown the message #shutDown will be sent to anObject."

Smalltalk addToShutDownList: anObject
Loading
X Tutup