-
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.
- Loading branch information
Showing
60 changed files
with
241 additions
and
90 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
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,16 +1,22 @@ | ||
language: smalltalk | ||
sudo: false | ||
|
||
os: | ||
- linux | ||
- osx | ||
|
||
smalltalk: | ||
- Pharo-7.0 | ||
- Pharo-6.1 | ||
- Pharo-5.0 | ||
|
||
matrix: | ||
fast_finish: true | ||
allow_failures: | ||
- smalltalk: Pharo-7.0 | ||
language: smalltalk | ||
sudo: false | ||
|
||
os: | ||
- linux | ||
- osx | ||
|
||
smalltalk: | ||
- Pharo-7.0 | ||
- Pharo-6.1 | ||
- Pharo-5.0 | ||
- GemStone-3.4.1 | ||
|
||
matrix: | ||
fast_finish: true | ||
allow_failures: | ||
- smalltalk: Pharo-7.0 | ||
|
||
# This make Gemstone builds 3x faster | ||
cache: | ||
directories: | ||
- $SMALLTALK_CI_CACHE |
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
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
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
6 changes: 3 additions & 3 deletions
6
...-Design-Lite-Components.package/WAHtmlCanvas.extension/instance/mdlMultilineTextField..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,6 +1,6 @@ | ||
*Material-Design-Lite-Components | ||
mdlMultilineTextField: text | ||
SystemVersion current major > 5 | ||
ifTrue: [ self deprecated: 'Uses #mdlTextArea:' transformWith: '`@receiver mdlMultilineTextField: `@statements1' -> '`@receiver mdlTextArea: `@statements1' ] | ||
ifFalse: [ self deprecated: 'Uses #mdlTextArea:' ]. | ||
(self isOnGemstone or: [ SystemVersion current major < 6 ]) | ||
ifTrue: [ self deprecated: 'Uses #mdlTextArea:' ] | ||
ifFalse: [ self deprecated: 'Uses #mdlTextArea:' transformWith: '`@receiver mdlMultilineTextField: `@statements1' -> '`@receiver mdlTextArea: `@statements1' ]. | ||
^ self mdlTextArea: text |
6 changes: 3 additions & 3 deletions
6
...l-Design-Lite-Components.package/WAHtmlCanvas.extension/instance/mdlMultilineTextField.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,6 +1,6 @@ | ||
*Material-Design-Lite-Components | ||
mdlMultilineTextField | ||
SystemVersion current major > 5 | ||
ifTrue: [ self deprecated: 'Uses #mdlTextArea' transformWith: '`@receiver mdlMultilineTextField' -> '`@receiver mdlTextArea' ] | ||
ifFalse: [ self deprecated: 'Uses #mdlTextArea' ]. | ||
(self isOnGemstone or: [ SystemVersion current major < 6 ]) | ||
ifTrue: [ self deprecated: 'Uses #mdlTextArea' ] | ||
ifFalse: [ self deprecated: 'Uses #mdlTextArea' transformWith: '`@receiver mdlMultilineTextField' -> '`@receiver mdlTextArea' ]. | ||
^ self mdlTextArea |
File renamed without changes.
5 changes: 5 additions & 0 deletions
5
src/Material-Design-Lite-Core-Tests.package/MDLCoreTests.class/instance/mockMethod.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,5 @@ | ||
helpers | ||
mockMethod | ||
"I am a Mock method for tests" | ||
|
||
^ 2 + 3 |
8 changes: 8 additions & 0 deletions
8
src/Material-Design-Lite-Core-Tests.package/MDLCoreTests.class/instance/testCodeOf.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,8 @@ | ||
helpers | ||
testCodeOf | ||
self | ||
assert: (self codeOf: #mockMethod) | ||
equals: | ||
' "I am a Mock method for tests" | ||
^ 2 + 3' |
11 changes: 11 additions & 0 deletions
11
src/Material-Design-Lite-Core-Tests.package/MDLCoreTests.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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"commentStamp" : "", | ||
"super" : "TestCase", | ||
"category" : "Material-Design-Lite-Core-Tests", | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ ], | ||
"instvars" : [ ], | ||
"name" : "MDLCoreTests", | ||
"type" : "normal" | ||
} |
5 changes: 5 additions & 0 deletions
5
src/Material-Design-Lite-Core.package/Object.extension/instance/codeOf..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,5 @@ | ||
*Material-Design-Lite-Core | ||
codeOf: aSymbol | ||
"I take a method selector I contains and return his source code without the declaration." | ||
|
||
^ String streamContents: [ :stream | (self class sourceCodeAt: aSymbol) lines allButFirst do: [ :ea | stream nextPutAll: ea ] separatedBy: [ stream nextPutAll: GRPlatform current newline ] ] |
5 changes: 5 additions & 0 deletions
5
src/Material-Design-Lite-Core.package/Object.extension/instance/isOnGemstone.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,5 @@ | ||
*Material-Design-Lite-Core | ||
isOnGemstone | ||
"In Gemstone we load the package Matrial-Design-Lite-Gemstone which includes a MDLGemstone class. We can use this to know if we are on Gemstone." | ||
|
||
^ Smalltalk hasClassNamed: #MDLGemstone |
3 changes: 3 additions & 0 deletions
3
src/Material-Design-Lite-Core.package/Object.extension/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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"name" : "Object" | ||
} |
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
8 changes: 0 additions & 8 deletions
8
src/Material-Design-Lite-Demo.package/MDLDemoScreen.class/instance/codeOf..st
This file was deleted.
Oops, something went wrong.
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
8 changes: 8 additions & 0 deletions
8
...Material-Design-Lite-Demo.package/MDLDemoScreen.class/instance/renderWarningMessageOn..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,8 @@ | ||
rendering | ||
renderWarningMessageOn: html | ||
self warningMessage ifNil: [ ^ self ]. | ||
|
||
html div | ||
class: 'mdl-demo-warning'; | ||
mdlTypographyBody2; | ||
with: 'Warning: ', self warningMessage |
5 changes: 5 additions & 0 deletions
5
src/Material-Design-Lite-Demo.package/MDLDemoScreen.class/instance/warningMessage.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,5 @@ | ||
accessing | ||
warningMessage | ||
"Potential warning message to display" | ||
|
||
^ nil |
3 changes: 0 additions & 3 deletions
3
...esign-Lite-Demo.package/MDLPaginationTableScreen.class/instance/renderScreenContentOn..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,6 +1,3 @@ | ||
rendering | ||
renderScreenContentOn: html | ||
html div | ||
style: 'color: #' , MDLColor red asHexString , '; margin: 32px; font-size: smaller;'; | ||
with: 'Warning: This widget will be deleted in the next major release of MDL. You can replace it by the MDLSortableTableWidget.'. | ||
self render: self pagination on: html |
3 changes: 3 additions & 0 deletions
3
...terial-Design-Lite-Demo.package/MDLPaginationTableScreen.class/instance/warningMessage.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,3 @@ | ||
accessing | ||
warningMessage | ||
^ 'This widget will be deleted in the next major release of MDL. You can replace it by the MDLSortableTableWidget.' |
3 changes: 3 additions & 0 deletions
3
...aterial-Design-Lite-Demo.package/MDLRightTabsPanelScreen.class/instance/warningMessage.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,3 @@ | ||
accessing | ||
warningMessage | ||
^ 'This extension is not available in the Gemstone version of this project. This is due to the lack of Traits on Gemstone. You can reproduce it by flattening the Traits of the project in your project.' |
3 changes: 3 additions & 0 deletions
3
src/Material-Design-Lite-Demo.package/MDLRootDialogScreen.class/instance/warningMessage.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,3 @@ | ||
accessing | ||
warningMessage | ||
^ 'This extension is not available in the Gemstone version of this project. This is due to the lack of Traits on Gemstone. You can reproduce it by flattening the Traits of the project in your project.' |
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
Empty file.
File renamed without changes.
File renamed without changes.
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
3 changes: 3 additions & 0 deletions
3
...Tests.package/MDLTRootDialogRendererTest.class/instance/testRenderEmptyGenericDialogOn.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,8 @@ | ||
tests | ||
testRenderEmptyGenericDialogOn | ||
"This component is not available on Gemstone" | ||
self isOnGemstone ifTrue: [ ^ self ]. | ||
|
||
self | ||
assert: [ :html | MDLMockRootDialogRenderer new renderEmptyGenericDialogOn: html ] | ||
generatedIncludesAll: #('mdl-dialog' 'data-openbtnid="root-dialog__open"' 'data-closebtnid="root-dialog__close"') |
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 | ||
} |
3 changes: 2 additions & 1 deletion
3
src/Material-Design-Lite-GemStone.package/CharacterCollection.extension/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,2 +1,3 @@ | ||
{ | ||
"name" : "CharacterCollection" } | ||
"name" : "CharacterCollection" | ||
} |
12 changes: 12 additions & 0 deletions
12
...rial-Design-Lite-GemStone.package/Collection.extension/instance/detect.ifFound.ifNone..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,12 @@ | ||
*Material-Design-Lite-GemStone | ||
detect: aBlock ifFound: foundBlock ifNone: exceptionBlock | ||
"Evaluate aBlock with each of the receiver's elements as the argument. | ||
If some element evaluates aBlock to true, then cull this element into | ||
foundBlock and answer the result of this evaluation. | ||
If none evaluate to true, then evaluate exceptionBlock." | ||
|
||
self | ||
do: [ :each | | ||
(aBlock value: each) | ||
ifTrue: [ ^ foundBlock cull: each ] ]. | ||
^ exceptionBlock value |
5 changes: 5 additions & 0 deletions
5
src/Material-Design-Lite-GemStone.package/Collection.extension/instance/isNotEmpty.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,5 @@ | ||
*Material-Design-Lite-GemStone | ||
isNotEmpty | ||
"Answer whether the receiver contains any elements." | ||
|
||
^ self isEmpty not |
3 changes: 3 additions & 0 deletions
3
src/Material-Design-Lite-GemStone.package/Collection.extension/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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"name" : "Collection" | ||
} |
5 changes: 5 additions & 0 deletions
5
src/Material-Design-Lite-GemStone.package/Date.extension/class/firstWeekdayOfMonth.year..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,5 @@ | ||
*Material-Design-Lite-GemStone | ||
firstWeekdayOfMonth: month year: year | ||
"Answer the weekday index of the first day in <month> in the <year>." | ||
|
||
^ (self year: year month: month day: 1) weekdayIndex |
5 changes: 5 additions & 0 deletions
5
src/Material-Design-Lite-GemStone.package/Date.extension/class/monthNames.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,5 @@ | ||
*Material-Design-Lite-GemStone | ||
monthNames | ||
"Return a collection of month names" | ||
|
||
^ MonthNames copy value |
3 changes: 3 additions & 0 deletions
3
src/Material-Design-Lite-GemStone.package/Date.extension/instance/monthAbbreviation.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,3 @@ | ||
*Material-Design-Lite-GemStone | ||
monthAbbreviation | ||
^ self monthName copyFrom: 1 to: 3 |
3 changes: 3 additions & 0 deletions
3
src/Material-Design-Lite-GemStone.package/Date.extension/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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"name" : "Date" | ||
} |
3 changes: 2 additions & 1 deletion
3
src/Material-Design-Lite-GemStone.package/MDLAnchorButton.extension/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,2 +1,3 @@ | ||
{ | ||
"name" : "MDLAnchorButton" } | ||
"name" : "MDLAnchorButton" | ||
} |
3 changes: 2 additions & 1 deletion
3
src/Material-Design-Lite-GemStone.package/MDLButton.extension/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,2 +1,3 @@ | ||
{ | ||
"name" : "MDLButton" } | ||
"name" : "MDLButton" | ||
} |
3 changes: 2 additions & 1 deletion
3
src/Material-Design-Lite-GemStone.package/MDLExampleRootDialogRoot.extension/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,2 +1,3 @@ | ||
{ | ||
"name" : "MDLExampleRootDialogRoot" } | ||
"name" : "MDLExampleRootDialogRoot" | ||
} |
4 changes: 4 additions & 0 deletions
4
src/Material-Design-Lite-GemStone.package/MDLGemstone.class/README.md
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,4 @@ | ||
Description | ||
-------------------- | ||
|
||
I am a class just used to know if the Gemstone support is in the image. |
11 changes: 11 additions & 0 deletions
11
src/Material-Design-Lite-GemStone.package/MDLGemstone.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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"commentStamp" : "CyrilFerlicot 7/9/2018 15:18", | ||
"super" : "Object", | ||
"category" : "Material-Design-Lite-GemStone", | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ ], | ||
"instvars" : [ ], | ||
"name" : "MDLGemstone", | ||
"type" : "normal" | ||
} |
3 changes: 2 additions & 1 deletion
3
...Material-Design-Lite-GemStone.package/MDLMockRootDialogRenderer.extension/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,2 +1,3 @@ | ||
{ | ||
"name" : "MDLMockRootDialogRenderer" } | ||
"name" : "MDLMockRootDialogRenderer" | ||
} |
3 changes: 2 additions & 1 deletion
3
src/Material-Design-Lite-GemStone.package/Object.extension/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,2 +1,3 @@ | ||
{ | ||
"name" : "Object" } | ||
"name" : "Object" | ||
} |
Oops, something went wrong.