Skip to content

Commit

Permalink
Poc of rowan support for GS64
Browse files Browse the repository at this point in the history
  • Loading branch information
gcotelli committed Jul 17, 2023
1 parent c5be7fb commit d8c7a69
Show file tree
Hide file tree
Showing 13 changed files with 136 additions and 1 deletion.
17 changes: 17 additions & 0 deletions rowan/components/Deployment.ston
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
RwSimpleProjectLoadComponentV2 {
#name : 'Deployment',
#condition : 'common',
#projectNames : [ ],
#componentNames : [ ],
#packageNames : [
'Buoy-Assertions',
'Buoy-Collections',
'Buoy-Comparison',
'Buoy-Conditions',
'Buoy-Dynamic-Binding',
'Buoy-Exception-Handling',
'Buoy-Math',
'Buoy-Metaprogramming'
],
#comment : ''
}
10 changes: 10 additions & 0 deletions rowan/components/Development.ston
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
RwSimpleProjectLoadComponentV2 {
#name : 'Development',
#condition : 'common',
#projectNames : [ ],
#componentNames : [
'Tests'
],
#packageNames : [ ],
#comment : ''
}
10 changes: 10 additions & 0 deletions rowan/components/SUnit-Dependent-Extensions.ston
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
RwSimpleProjectLoadComponentV2 {
#name : 'SUnit-Dependent-Extensions',
#condition : 'common',
#projectNames : [ ],
#componentNames : [ ],
#packageNames : [
'Buoy-SUnit-Model'
],
#comment : ''
}
21 changes: 21 additions & 0 deletions rowan/components/Tests.ston
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
RwSimpleProjectLoadComponentV2 {
#name : 'Tests',
#condition : 'common',
#projectNames : [ ],
#componentNames : [
'Deployment',
'SUnit-Dependent-Extensions'
],
#packageNames : [
'Buoy-Assertions-Tests',
'Buoy-Collections-Tests',
'Buoy-Comparison-Tests',
'Buoy-Conditions-Tests',
'Buoy-Dynamic-Binding-Tests',
'Buoy-Exception-Handling-Tests',
'Buoy-Math-Tests',
'Buoy-Metaprogramming-Tests',
'Buoy-SUnit-Tests'
],
#comment : ''
}
11 changes: 11 additions & 0 deletions rowan/project.ston
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
RwProjectSpecificationV2 {
#specName : 'project',
#projectSpecPath : 'rowan',
#componentsPath : 'rowan/components',
#packagesPath : 'source',
#projectsPath : 'rowan/projects',
#specsPath : 'rowan/specs',
#packageFormat : 'tonel',
#packageConvention : 'Rowan',
#comment : 'This project aims to complement Pharo adding useful extensions.'
}
Empty file added rowan/projects/README.md
Empty file.
17 changes: 17 additions & 0 deletions rowan/specs/Buoy-CI.ston
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
RwLoadSpecificationV2 {
#specName: 'Buoy-CI',
#projectName : 'Buoy',
#diskUrl : '/opt/gemstone/data/Buoy',
#projectSpecFile : 'rowan/project.ston',
#componentNames : [
'Tests'
],
#platformProperties : {
'gemstone' : {
'allusers' : {
#defaultSymbolDictName : 'Buoy'
}
}
},
#comment : 'Loading spec for the continuous integration setup'
}
3 changes: 2 additions & 1 deletion source/.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
#format : #tonel
#format : #tonel,
#convention : 'Rowan'
}
8 changes: 8 additions & 0 deletions source/Buoy-Assertions/NotFound.class.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
"
I'm an exception expecting to be raised when someone tries to access an object and cannot be found
"
Class {
#name : #NotFound,
#superclass : #Error,
#category : #'Buoy-Assertions'
}
8 changes: 8 additions & 0 deletions source/Buoy-Assertions/SubscriptOutOfBounds.class.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
"
I'm an exception expecting to be raised when someone tries to access an object and cannot be found
"
Class {
#name : #SubscriptOutOfBounds,
#superclass : #Error,
#category : #'Buoy-Assertions'
}
8 changes: 8 additions & 0 deletions source/Buoy-Math/ArithmeticError.class.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
"
I'm an exception expecting to be raised when someone tries to access an object and cannot be found
"
Class {
#name : #ArithmeticError,
#superclass : #Error,
#category : #'Buoy-Math'
}
6 changes: 6 additions & 0 deletions source/Buoy-Metaprogramming/Object.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,9 @@ Object >> isAn: aClass [

^self isA: aClass
]

{ #category : #'*Buoy-Metaprogramming' }
Object class >> new [

^super new initialize
]
18 changes: 18 additions & 0 deletions source/Buoy-SUnit-Model/TestAsserter.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,24 @@ TestAsserter >> should: aBlock raise: anException withMessageText: aString [
withExceptionDo: [ :error | self assert: error messageText equals: aString ]
]


{ #category : #'*Buoy-SUnit-Model' }
TestAsserter >> should: aBlock raise: anException withExceptionDo: anotherBlock [

| exceptionWasRaised |

exceptionWasRaised :=
[
aBlock value.
false]
sunitOn: anException
do: [:aSignal |
anotherBlock value: aSignal.
aSignal sunitExitWith: true].

^self assert: exceptionWasRaised
]

{ #category : #'*Buoy-SUnit-Model' }
TestAsserter >> withTheOnlyOneIn: aCollection do: aBlock [

Expand Down

0 comments on commit d8c7a69

Please sign in to comment.