Skip to content

Commit

Permalink
Merge pull request #30 from ba-st/pharo-10
Browse files Browse the repository at this point in the history
Pharo 10
  • Loading branch information
gcotelli authored Apr 7, 2022
2 parents c564f81 + 73bba50 commit 369892d
Show file tree
Hide file tree
Showing 9 changed files with 187 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/loading-groups.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ jobs:
strategy:
fail-fast: false
matrix:
smalltalk: [ Pharo64-9.0, Pharo64-8.0 ]
load-spec: [ deployment, examples, development]
smalltalk: [ Pharo64-10, Pharo64-9.0, Pharo64-8.0 ]
load-spec: [ deployment, examples, tools, development]
name: ${{ matrix.smalltalk }} + ${{ matrix.load-spec }}
steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
smalltalk: [ Pharo64-9.0, Pharo64-8.0 ]
smalltalk: [ Pharo64-10, Pharo64-9.0, Pharo64-8.0 ]
name: ${{ matrix.smalltalk }}
steps:
- uses: actions/checkout@v2
Expand Down
13 changes: 13 additions & 0 deletions .smalltalkci/.loading.tools.ston
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
SmalltalkCISpec {
#loading : [
SCIMetacelloLoadSpec {
#baseline : 'Launchpad',
#directory : '../source',
#load : [ 'Tools' ],
#platforms : [ #pharo ]
}
],
#testing : {
#failOnZeroTests : false
}
}
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2018-2021 Buenos Aires Smalltalk Contributors
Copyright (c) 2018-2022 Buenos Aires Smalltalk Contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ within the image.
[![Pharo 8.0](https://img.shields.io/badge/Pharo-8.0-informational)](https://pharo.org)
[![Pharo 9.0](https://img.shields.io/badge/Pharo-9.0-informational)](https://pharo.org)

Quick links
## Quick links

- [**Explore the docs**](docs/README.md)
- [Report a defect](https://github.com/ba-st/Launchpad/issues/new?labels=Type%3A+Defect)
Expand Down
32 changes: 26 additions & 6 deletions source/BaselineOfLaunchpad/BaselineOfLaunchpad.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,17 @@ BaselineOfLaunchpad >> baseline: spec [
setUpPackages: spec.

spec
group: 'Development' with: 'Tests';
group: 'Development' with: #( 'Tests' 'Tools' );
group: 'CI' with: 'Tests';
group: 'default' with: 'Development'
]
group: 'default' with: 'Development' ].

spec for: #'pharo10.x' do: [ self setUpPharo10Packages: spec ]
]

{ #category : #accessing }
BaselineOfLaunchpad >> projectClass [

^ MetacelloCypressBaselineProject
]

{ #category : #initialization }
Expand All @@ -26,10 +33,11 @@ BaselineOfLaunchpad >> setUpDependencies: spec [
spec
baseline: 'Buoy' with: [ spec repository: 'github://ba-st/Buoy:v6' ];
project: 'Buoy-Deployment' copyFrom: 'Buoy' with: [ spec loads: 'Deployment' ];
project: 'Buoy-SUnit' copyFrom: 'Buoy' with: [ spec loads: 'Dependent-SUnit-Extensions' ].
project: 'Buoy-SUnit' copyFrom: 'Buoy' with: [ spec loads: 'Dependent-SUnit-Extensions' ];
project: 'Buoy-Tools' copyFrom: 'Buoy' with: [ spec loads: 'Tools' ].

spec
baseline: 'INIParser' with: [ spec repository: 'github://ctSkennerton/INI-Parser:v1.0.1' ];
baseline: 'INIParser' with: [ spec repository: 'github://ctSkennerton/INI-Parser:v1.1.1' ];
project: 'INIParser-Deployment' copyFrom: 'INIParser' with: [ spec loads: 'Deployment' ].

spec
Expand Down Expand Up @@ -79,7 +87,19 @@ BaselineOfLaunchpad >> setUpPackages: spec [
self
setUpDeploymentPackages: spec;
setUpExamplePackages: spec;
setUpTestPackages: spec
setUpTestPackages: spec.

spec group: 'Tools' with: 'Buoy-Tools'
]

{ #category : #baselines }
BaselineOfLaunchpad >> setUpPharo10Packages: spec [

spec
package: 'Launchpad-Development-Tools' with: [
spec requires:
#( 'Launchpad-Applications' 'Launchpad-Configuration' ) ];
group: 'Tools' with: 'Launchpad-Development-Tools'
]

{ #category : #initialization }
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
Extension { #name : #ApplicationConfiguration }

{ #category : #'*Launchpad-Development-Tools' }
ApplicationConfiguration >> configurationAsCLIInspectorTab [

<inspectorPresentationOrder: 5 title: 'CLI'>
^ SpTextPresenter new
text:
(String streamContents: [ :stream | self asCommandLineOn: stream ]);
beWrapWord;
yourself
]

{ #category : #'*Launchpad-Development-Tools' }
ApplicationConfiguration >> configurationAsEnvironmentInspectorTab [

<inspectorPresentationOrder: 6 title: 'Environment'>
^ SpTextPresenter new
text:
(String streamContents: [ :stream | self asEnvironmentOn: stream ]);
beWrapWord;
yourself
]

{ #category : #'*Launchpad-Development-Tools' }
ApplicationConfiguration >> configurationAsINIInspectorTab [

<inspectorPresentationOrder: 4 title: 'INI'>
^ SpTextPresenter new
text:
(String streamContents: [ :stream | self asIniFileOn: stream ]);
beWrapWord;
yourself
]

{ #category : #'*Launchpad-Development-Tools' }
ApplicationConfiguration >> configurationAsJSONInspectorTab [

<inspectorPresentationOrder: 3 title: 'JSON'>
^ SpTextPresenter new
text: self asJson;
beWrapWord;
yourself
]

{ #category : #'*Launchpad-Development-Tools' }
ApplicationConfiguration >> configurationParametersInspectorTab [

<inspectorPresentationOrder: 2 title: 'Parameters'>
^ SpTablePresenter new
items: parameters;
addColumn: (SpStringTableColumn new
title: 'Name';
sortFunction: #name ascending;
evaluated: #name;
yourself);
addColumn: (SpStringTableColumn new
title: 'Summary';
sortFunction: #summary ascending;
evaluated: #summary;
yourself);
addColumn: (SpStringTableColumn new
title: 'CLI';
sortFunction: #commandLineArgumentName ascending;
evaluated: #commandLineArgumentName;
yourself);
addColumn: (SpStringTableColumn new
title: 'Env';
sortFunction: #environmentVariableName ascending;
evaluated: #environmentVariableName;
yourself);
yourself
]

{ #category : #'*Launchpad-Development-Tools' }
ApplicationConfiguration >> configurationValuesInspectorTab [

<inspectorPresentationOrder: 1 title: 'Values'>
^ SpTablePresenter new
items: parameters;
addColumn: (SpStringTableColumn new
title: 'Name';
sortFunction: #name ascending;
evaluated: #name;
yourself);
addColumn: (SpStringTableColumn new
title: 'Value';
evaluated: [:parameter | self valueFor: parameter];
yourself);
yourself
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
Extension { #name : #LaunchpadApplication }

{ #category : #'*Launchpad-Development-Tools' }
LaunchpadApplication >> configurationParametersInspectorTab [

<inspectorPresentationOrder: 2 title: 'Parameters'>
^ SpTablePresenter new
items: self class configurationParameters;
addColumn: (SpStringTableColumn new
title: 'Name';
evaluated: #name;
yourself);
addColumn: (SpStringTableColumn new
title: 'Summary';
evaluated: #summary;
yourself);
addColumn: (SpStringTableColumn new
title: 'CLI';
evaluated: #commandLineArgumentName;
yourself);
addColumn: (SpStringTableColumn new
title: 'Env';
evaluated: #environmentVariableName;
yourself);
yourself
]

{ #category : #'*Launchpad-Development-Tools' }
LaunchpadApplication >> configurationValuesInspectorTab [

<inspectorPresentationOrder: 3 title: 'Configuration'>
^ self configuration configurationValuesInspectorTab
]

{ #category : #'*Launchpad-Development-Tools' }
LaunchpadApplication >> configurationValuesInspectorTabContext: context [

context active: configurationCache notNil
]

{ #category : #'*Launchpad-Development-Tools' }
LaunchpadApplication >> documentationInspectorTab [

<inspectorPresentationOrder: 1 title: 'Docs'>
^ SpTextPresenter new
text:
(String streamContents: [ :stream |
self class printHelpOn: stream ]);
beWrapWord;
yourself
]
1 change: 1 addition & 0 deletions source/Launchpad-Development-Tools/package.st
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Package { #name : #'Launchpad-Development-Tools' }

0 comments on commit 369892d

Please sign in to comment.