-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #164 from SeasideSt/slime-pharo12-fixes
Slime pharo12 fixes
- Loading branch information
Showing
40 changed files
with
120 additions
and
179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"noMethodMetaData" : true, | ||
"separateMethodMetaAndSource" : false, | ||
"useCypressPropertiesFile" : true } | ||
"noMethodMetaData" : true, | ||
"useCypressPropertiesFile" : true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 8 additions & 11 deletions
19
repository/BaselineOfGrease.package/BaselineOfGrease.class/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |
3 changes: 1 addition & 2 deletions
3
repository/BaselineOfGrease.package/monticello.meta/categories.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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')! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
{ | ||
} | ||
{ } |
6 changes: 5 additions & 1 deletion
6
repository/Grease-Tests-Slime.package/GRSlimeTest.class/instance/compile.in..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
accessing-code | ||
compile: aString in: aClass | ||
^ aClass compile: aString classified: #(accessing) | ||
|
||
GRPlatform current | ||
compile: aString | ||
into: aClass | ||
classified: #accessing |
13 changes: 2 additions & 11 deletions
13
repository/Grease-Tests-Slime.package/GRSlimeTest.class/instance/defineClass.superclass..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,4 @@ | ||
accessing-code | ||
defineClass: aClassSymbol superclass: aSuperSymbol | ||
| class | | ||
model defineClass: aSuperSymbol , ' subclass: #' , aClassSymbol , ' | ||
instanceVariableNames: '''' | ||
classVariableNames: '''' | ||
poolDictionaries: '''' | ||
category: ''' , self category , ''''. | ||
class := model classNamed: aClassSymbol. | ||
environment | ||
addClass: class; | ||
addClass: class theMetaClass. | ||
^ class | ||
"For compatibility" | ||
^ self defineSubClassOf: aSuperSymbol |
20 changes: 20 additions & 0 deletions
20
repository/Grease-Tests-Slime.package/GRSlimeTest.class/instance/defineSubClassOf..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
accessing-code | ||
defineSubClassOf: aSuperSymbol | ||
|
||
| class | | ||
class := SystemVersion current major >= 12 | ||
ifTrue: [ | ||
factory make: [ :aBuilder | | ||
aBuilder | ||
superclass: (Smalltalk at: aSuperSymbol); | ||
package: self category ] ] | ||
ifFalse: [ | ||
factory | ||
newSubclassOf: (Smalltalk at: aSuperSymbol) | ||
instanceVariableNames: '' | ||
classVariableNames: 'classVarsString' | ||
category: self category ]. | ||
environment | ||
addClass: class; | ||
addClass: class theMetaClass. | ||
^ class |
1 change: 1 addition & 0 deletions
1
repository/Grease-Tests-Slime.package/GRSlimeTest.class/instance/setUp.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
running | ||
setUp | ||
super setUp. | ||
factory := ClassFactoryForTestCase new. | ||
model := RBNamespace new. | ||
environment := RBClassEnvironment new |
6 changes: 2 additions & 4 deletions
6
repository/Grease-Tests-Slime.package/GRSlimeTest.class/instance/tearDown.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
running | ||
tearDown | ||
|
||
super tearDown. | ||
(Smalltalk organization listAtCategoryNamed: self category) do:[ :e | | ||
SmalltalkImage current removeClassNamed: e ]. | ||
Smalltalk organization | ||
removeCategory: self category | ||
factory cleanUp |
4 changes: 1 addition & 3 deletions
4
repository/Grease-Tests-Slime.package/GRSlimeTest.class/instance/testAnsiBooleansRule.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
repository/Grease-Tests-Slime.package/GRSlimeTest.class/instance/testAnsiCharacterRule.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
repository/Grease-Tests-Slime.package/GRSlimeTest.class/instance/testAnsiCollectionsRule.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
repository/Grease-Tests-Slime.package/GRSlimeTest.class/instance/testAnsiConditionalsRule.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
repository/Grease-Tests-Slime.package/GRSlimeTest.class/instance/testAnsiConvertorRule.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
repository/Grease-Tests-Slime.package/GRSlimeTest.class/instance/testAnsiExceptionsRule.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
repository/Grease-Tests-Slime.package/GRSlimeTest.class/instance/testAnsiStreamsRule.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
repository/Grease-Tests-Slime.package/GRSlimeTest.class/instance/testAnsiStringsRule.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
...ry/Grease-Tests-Slime.package/GRSlimeTest.class/instance/testBasicNewInitializeMissing.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 11 additions & 13 deletions
24
repository/Grease-Tests-Slime.package/GRSlimeTest.class/instance/testBlockFormatting.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,28 @@ | ||
tests-parsetree | ||
testBlockFormatting | ||
| class | | ||
class := self | ||
defineClass: #GRSlimeMockObject | ||
superclass: #GRObject. | ||
class | ||
class := self defineSubClassOf: #GRObject. | ||
self | ||
compile: 'invalid1 | ||
[:a ]' | ||
classified: #(accessing). | ||
class | ||
in: class. | ||
self | ||
compile: 'invalid2 | ||
[:a | ]' | ||
classified: #(accessing). | ||
class | ||
in: class. | ||
self | ||
compile: 'invalid3 | ||
[ :b]' | ||
classified: #(accessing). | ||
in: class. | ||
|
||
class | ||
self | ||
compile: 'invalid4 | ||
[ :a| ]' | ||
classified: #(accessing). | ||
class | ||
in: class. | ||
self | ||
compile: 'invalid5 | ||
[ :a |a ]' | ||
classified: #(accessing). | ||
in: class. | ||
self | ||
runRule: GRBlockFormattingRule | ||
selectors: #(invalid1 invalid2 invalid3 invalid4 invalid5) |
8 changes: 3 additions & 5 deletions
8
...sitory/Grease-Tests-Slime.package/GRSlimeTest.class/instance/testDeprecatedApiProtocol.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
repository/Grease-Tests-Slime.package/GRSlimeTest.class/instance/testEmptyStatements.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
.../Grease-Tests-Slime.package/GRSlimeTest.class/instance/testInvalidObjectInitialization.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
...itory/Grease-Tests-Slime.package/GRSlimeTest.class/instance/testNonPortableMessageRule.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
...tory/Grease-Tests-Slime.package/GRSlimeTest.class/instance/testNonPortableSourceFormat.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
...y/Grease-Tests-Slime.package/GRSlimeTest.class/instance/testNotPortableCollectionsRule.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
repository/Grease-Tests-Slime.package/GRSlimeTest.class/instance/testObjectIn.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 5 additions & 7 deletions
12
repository/Grease-Tests-Slime.package/GRSlimeTest.class/instance/testParensFormatting.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,15 @@ | ||
tests-parsetree | ||
testParensFormatting | ||
| class | | ||
class := self | ||
defineClass: #GRSlimeMockObject | ||
superclass: #GRObject. | ||
class | ||
class := self defineSubClassOf: #GRObject. | ||
self | ||
compile: 'invalid1 | ||
( 1 + 2)' | ||
classified: #(accessing). | ||
class | ||
in: class. | ||
self | ||
compile: 'invalid2 | ||
(1 + 2 )' | ||
classified: #(accessing). | ||
in: class. | ||
self | ||
runRule: GRParensFormattingRule | ||
selectors: #(invalid1 invalid2) |
Oops, something went wrong.