Skip to content

Commit

Permalink
Make the latest rule Pharo 11+ only
Browse files Browse the repository at this point in the history
  • Loading branch information
jecisc committed Mar 6, 2023
1 parent 88ca2c2 commit 4f83f25
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 2 deletions.
16 changes: 16 additions & 0 deletions src/BaselineOfChanel/BaselineOfChanel.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Class {

{ #category : #baselines }
BaselineOfChanel >> baseline: spec [

<baseline>
spec for: #common do: [
self
Expand All @@ -23,6 +24,16 @@ BaselineOfChanel >> baseline: spec [
group: 'Core' with: #( 'Chanel' );
group: 'Tests' with: #( 'Chanel-Tests' ) ].

spec for: (self pharoVersionsFrom: 11) do: [
spec
package: 'Chanel-Pharo11Plus' with: [ spec requires: #( 'Chanel' ) ];
package: 'Chanel-Pharo11Plus-Tests' with: [ spec requires: #( 'Chanel-Tests' 'Chanel-Pharo11Plus' ) ].


spec
group: 'Core' with: #( 'Chanel-Pharo11Plus' );
group: 'Tests' with: #( 'Chanel-Pharo11Plus-Tests' ) ].

spec for: #( #'pharo7.x' ) do: [
self pharoBackwardCompatibility: spec.
spec
Expand Down Expand Up @@ -56,6 +67,11 @@ BaselineOfChanel >> pharoBackwardCompatibility: spec [
with: [ spec repository: 'github://jecisc/PharoBackwardCompatibility:v1.x.x/src' ]
]

{ #category : #baselines }
BaselineOfChanel >> pharoVersionsFrom: aVersion [
^ (aVersion to: SystemVersion current major) collect: [ :v | ('pharo' , v asString , '.x') asSymbol ]
]

{ #category : #accessing }
BaselineOfChanel >> projectClass [
^ MetacelloCypressBaselineProject
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Class {
#name : #ChanelCondenseMethodsCleanerTest,
#superclass : #ChanelAbstractCleanerTest,
#category : #'Chanel-Tests'
#category : #'Chanel-Pharo11Plus-Tests'
}

{ #category : #running }
Expand Down
1 change: 1 addition & 0 deletions src/Chanel-Pharo11Plus-Tests/package.st
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Package { #name : #'Chanel-Pharo11Plus-Tests' }
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ I am a cleaner that removes useless spaces at the end of lines and final dots of
Class {
#name : #ChanelCondenseMethodsCleaner,
#superclass : #ChanelAbstractCleaner,
#category : #Chanel
#category : #'Chanel-Pharo11Plus'
}

{ #category : #cleaning }
Expand Down
1 change: 1 addition & 0 deletions src/Chanel-Pharo11Plus/package.st
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Package { #name : #'Chanel-Pharo11Plus' }

0 comments on commit 4f83f25

Please sign in to comment.