X Tutup
Skip to content

Commit 6dd1aa0

Browse files
author
Johan Brichau
committed
Separate Slime into the core and the rules only applicable to Grease/Seaside development
1 parent 8d2ac65 commit 6dd1aa0

File tree

158 files changed

+850
-11
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

158 files changed

+850
-11
lines changed

repository/BaselineOfGrease.package/BaselineOfGrease.class/instance/baselineCommon..st

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,5 @@ baselineCommon: spec
1111
spec
1212
group: 'Core' with: #('Grease-Core');
1313
group: 'Core Tests' with: #('Grease-Tests-Core');
14-
group: 'Slime' with: #('Core');
15-
group: 'Slime Tests' with: #('Core Tests');
1614
group: 'Tests' with: #('Core Tests' 'Slime Tests');
1715
group: 'default' with: #('Slime') ]

repository/BaselineOfGrease.package/BaselineOfGrease.class/instance/baselinePharo..st

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ baselinePharo: spec
3030
package: 'Grease-Pharo40-Slime' with: [ spec requires: #('Grease-Core') ];
3131
package: 'Grease-Tests-Slime' with: [ spec requires: #('Grease-Pharo40-Slime') ].
3232
spec
33-
group: 'Slime' with: #('Grease-Pharo40-Slime');
34-
group: 'Slime Tests' with: #('Grease-Tests-Slime') ].
33+
group: 'Slime' with: #('Core' 'Grease-Pharo40-Slime');
34+
group: 'Slime Tests' with: #('Core Tests' 'Grease-Tests-Slime') ].
3535

3636
spec
3737
for: #(#'pharo9.x')
@@ -48,8 +48,8 @@ baselinePharo: spec
4848
package: 'Grease-Tests-Slime' with: [ spec requires: #('Grease-Pharo90-Slime') ].
4949

5050
spec
51-
group: 'Slime' with: #('Grease-Pharo90-Slime');
52-
group: 'Slime Tests' with: #('Grease-Tests-Slime') ].
51+
group: 'Slime' with: #('Core' 'Grease-Pharo90-Slime');
52+
group: 'Slime Tests' with: #('Core Tests' 'Grease-Tests-Slime') ].
5353

5454
spec
5555
for: #(#'pharo10.x' #'pharo11.x' #'pharo12.x')
@@ -62,9 +62,11 @@ baselinePharo: spec
6262
requires: #('Grease-Pharo100-Core');
6363
includes: #('Grease-Tests-Pharo-Core') ];
6464
package: 'Grease-Pharo100-Core' with: [ spec requires: #('Grease-Core') ];
65-
package: 'Grease-Pharo110-Slime' with: [ spec requires: #('Grease-Core') ];
66-
package: 'Grease-Tests-Pharo-Slime' with: [ spec requires: #('Grease-Pharo110-Slime') ].
65+
package: 'Grease-Pharo110-Slime-Core' with: [ spec requires: #('Grease-Core') ];
66+
package: 'Grease-Pharo110-Slime-Portability' with: [ spec requires: #('Grease-Pharo110-Slime-Core') ];
67+
package: 'Grease-Tests-Pharo-Slime' with: [ spec requires: #('Grease-Pharo110-Slime-Portability') ].
6768

6869
spec
69-
group: 'Slime' with: #('Grease-Pharo110-Slime');
70-
group: 'Slime Tests' with: #('Grease-Tests-Pharo-Slime') ]
70+
group: 'Slime' with: #('Core' 'Grease-Pharo110-Slime-Core');
71+
group: 'Slime Portability' with: #('Slime' 'Grease-Pharo110-Slime-Portability');
72+
group: 'Slime Tests' with: #('Core Tests' 'Grease-Pharo110-Slime-Portability' 'Grease-Tests-Pharo-Slime') ]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
SystemOrganization addCategory: #BaselineOfGrease!
1+
self packageOrganizer ensurePackage: #BaselineOfGrease withTags: #()!
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"separateMethodMetaAndSource" : false,
3+
"noMethodMetaData" : true,
4+
"useCypressPropertiesFile" : true
5+
}

repository/Grease-Pharo110-Slime-Core.package/GRDeprecatedApiProtocolRule.class/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
hooks
2+
afterCheck: aNode mappings: mappingDict
3+
4+
| method |
5+
method := aNode methodNode.
6+
" This ensures that the description is of the form ClassName>>#selector:"
7+
(aNode arguments first isLiteralNode
8+
and: [ aNode arguments first value isString
9+
and: [ method methodClass name greaseString , '>>#' , method selector greaseString ~= aNode arguments first value ] ]) ifTrue: [ ^ true ].
10+
11+
" This ensures that the description is a string and ends with a dot."
12+
^ (aNode arguments size > 1
13+
and: [ aNode arguments second isLiteralNode
14+
and: [ aNode arguments second value isString
15+
and: [ (aNode arguments second value endsWithSubCollection: '.') not ] ] ])
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
accessing
2+
group
3+
4+
^ 'Grease Formatting'
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
initialization
2+
initialize
3+
4+
super initialize.
5+
self
6+
matchesAny: #(
7+
'``@receiver greaseDeprecatedApi: ``@arg1'
8+
'``@receiver greaseDeprecatedApi: ``@arg1 details: ``@arg2' )
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
accessing
2+
name
3+
4+
^ 'Invalid use of deprecated API protocol.'
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
accessing
2+
rationale
3+
4+
^ 'Make sure to follow the following pattern: self greaseDeprecatedApi: ''Class>>#selector'' details: ''Some description''.'

0 commit comments

Comments
 (0)
X Tutup