Skip to content

Commit

Permalink
Updated Seaside dependencies.
Browse files Browse the repository at this point in the history
Use some of the facilities in Buoy
  • Loading branch information
gcotelli committed May 9, 2019
1 parent 1ea1a9b commit 11d0003
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 35 deletions.
2 changes: 1 addition & 1 deletion source/BaselineOfRenoirSt/BaselineOfRenoirSt.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,6 @@ BaselineOfRenoirSt >> setUpDependencies: spec [
project: 'Buoy-Tools' copyFrom: 'Buoy' with: [ spec loads: 'Tools' ].

spec
baseline: 'Seaside3' with: [ spec repository: 'github://SeasideSt/Seaside:v3.3.1/repository' ];
baseline: 'Seaside3' with: [ spec repository: 'github://SeasideSt/Seaside:v3.3.3/repository' ];
project: 'Seaside3-Javascript' copyFrom: 'Seaside3' with: [ spec loads: 'Javascript' ]
]
6 changes: 3 additions & 3 deletions source/RenoirSt-HTML/ZnUrl.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ ZnUrl >> cssContentOn: aStream [

{ #category : #'*RenoirSt-HTML' }
ZnUrl >> cssContentRelativeToStyleSheetOn: aStream [

aStream nextPutAll: 'url("'.
self isAbsolute
ifTrue: [ self printOn: aStream ]
ifFalse: [ segments do: [ :segment | aStream nextPutAll: segment ] separatedBy: [ aStream nextPut: $/ ] ].
then: [ self printOn: aStream ]
otherwise: [ segments do: [ :segment | aStream nextPutAll: segment ] separatedBy: [ aStream nextPut: $/ ] ].
aStream nextPutAll: '")'
]

Expand Down
15 changes: 8 additions & 7 deletions source/RenoirSt-Seaside/WAUrl.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,21 @@ Extension { #name : #WAUrl }
WAUrl >> cssContentOn: aStream [

aStream nextPutAll: 'url("'.
host isNil
ifTrue: [ aStream nextPut: $/.
self path do: [ :segment | aStream nextPutAll: segment ] separatedBy: [ aStream nextPut: $/ ] ]
ifFalse: [ self printOn: aStream ].
host
ifNil: [ aStream nextPut: $/.
self path do: [ :segment | aStream nextPutAll: segment ] separatedBy: [ aStream nextPut: $/ ]
]
ifNotNil: [ self printOn: aStream ].
aStream nextPutAll: '")'
]

{ #category : #'*RenoirSt-Seaside' }
WAUrl >> cssContentRelativeToStyleSheetOn: aStream [

aStream nextPutAll: 'url("'.
host isNil
ifTrue: [ self path do: [ :segment | aStream nextPutAll: segment ] separatedBy: [ aStream nextPut: $/ ] ]
ifFalse: [ self printOn: aStream ].
host
ifNil: [ self path do: [ :segment | aStream nextPutAll: segment ] separatedBy: [ aStream nextPut: $/ ] ]
ifNotNil: [ self printOn: aStream ].
aStream nextPutAll: '")'
]

Expand Down
6 changes: 3 additions & 3 deletions source/RenoirSt/CssComment.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ CssComment class >> for: aCommentText [

{ #category : #Printing }
CssComment >> cssContentOn: aStream [
comment notEmpty
ifFalse: [ ^ self ].
aStream nextPutAll: '/*'.

[ aStream nextPutAll: '/*'.
comment cssContentOn: aStream.
aStream
nextPutAll: '*/';
newLine
] unless: comment isEmpty
]

{ #category : #'initialize-release' }
Expand Down
6 changes: 3 additions & 3 deletions source/RenoirSt/CssDescendantCombinator.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ Class {
{ #category : #'Instance Creation' }
CssDescendantCombinator class >> between: anAncestorSelector and: aDescendantSelector [

^ anAncestorSelector isImplicitUniversal
ifTrue: [ aDescendantSelector ]
ifFalse: [ self new initializeBetween: anAncestorSelector and: aDescendantSelector ]
^ [ self new initializeBetween: anAncestorSelector and: aDescendantSelector ]
unless: anAncestorSelector isImplicitUniversal
inWhichCase: [ aDescendantSelector ]
]

{ #category : #Printing }
Expand Down
7 changes: 4 additions & 3 deletions source/RenoirSt/CssExternalFontReference.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,16 @@ CssExternalFontReference class >> svgFontLocatedAt: aUrl withId: aString [
CssExternalFontReference >> cssContentOn: aStream [

url cssContentOn: aStream.
format notEmpty
ifTrue: [ aStream
format
ifNotEmpty: [ aStream
space;
nextPutAll: 'format(';
nextPut: $".
format cssContentOn: aStream.
aStream
nextPut: $";
nextPut: $) ]
nextPut: $)
]
]

{ #category : #'initialize-release' }
Expand Down
8 changes: 4 additions & 4 deletions source/RenoirSt/CssIdentifiedColor.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ CssIdentifiedColor class >> expandToExtendedHexaNotation: aString [
"If the string is specified in the 3 letters short notation, expand it to six"

^ aString size = 3
ifTrue: [
'<1s><1s><2s><2s><3s><3s>'
then: [ '<1s><1s><2s><2s><3s><3s>'
expandMacrosWith: aString first asString
with: aString second asString
with: aString third asString ]
ifFalse: [ aString ]
with: aString third asString
]
otherwise: [ aString ]
]

{ #category : #'Instance Creation' }
Expand Down
16 changes: 7 additions & 9 deletions source/RenoirSt/CssLinearPolynomial.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,17 @@ CssLinearPolynomial >> cssContentOn: aWriteStream [
CssLinearPolynomial >> cssDependentCoefficientContentOn: aWriteStream [

dependentCoefficient abs = 1
ifTrue: [
dependentCoefficient negative
ifTrue: [ aWriteStream nextPut: $- ] ]
ifFalse: [ dependentCoefficient cssContentOn: aWriteStream ]
then: [ dependentCoefficient negative then: [ aWriteStream nextPut: $- ] ]
otherwise: [ dependentCoefficient cssContentOn: aWriteStream ]
]

{ #category : #private }
CssLinearPolynomial >> cssIndependentCoefficientContentOn: aWriteStream [
independentCoefficient isZero
ifTrue: [ ^ self ].
independentCoefficient positive
ifTrue: [ aWriteStream nextPut: $+ ].
independentCoefficient cssContentOn: aWriteStream

[
independentCoefficient positive then: [ aWriteStream nextPut: $+ ].
independentCoefficient cssContentOn: aWriteStream
] unless: independentCoefficient isZero
]

{ #category : #'initialize-release' }
Expand Down
4 changes: 2 additions & 2 deletions source/RenoirSt/CssObject.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ CssObject class >> lookupValue: aNamedConstantOrValue [
"Lookup the CSS namespace and the SVG colors namespace, if no named constant is found returns the argument"

^ (aNamedConstantOrValue isCollection and: [ aNamedConstantOrValue isString not ])
ifTrue: [ aNamedConstantOrValue collect: [ :each | self lookupValue: each ] ]
ifFalse: [ CssConstants at: aNamedConstantOrValue ifAbsent: [ self lookupColor: aNamedConstantOrValue ] ]
then: [ aNamedConstantOrValue collect: [ :each | self lookupValue: each ] ]
otherwise: [ CssConstants at: aNamedConstantOrValue ifAbsent: [ self lookupColor: aNamedConstantOrValue ] ]
]

{ #category : #Printing }
Expand Down

0 comments on commit 11d0003

Please sign in to comment.