-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #72 from ba-st/pharo-10
Add Pharo 10 to build matrix
- Loading branch information
Showing
22 changed files
with
154 additions
and
113 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
*.st linguist-language=Smalltalk | ||
*.st eol=lf | ||
*.st text diff |
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
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Buoy Documentation | ||
|
||
Buoy aims to complement [Pharo](https://www.pharo.org) adding useful extensions. | ||
|
||
To learn about the project, [install it](how-to/how-to-load-in-pharo.md) and | ||
[follow the assertions tutorial](tutorial/Assertions.md), or expand your | ||
understanding over specific topics: | ||
|
||
- **Collections**: Additional abstractions for Collections. | ||
See the [related documentation.](reference/Collections.md) | ||
- **Comparison**: Support to compare objects both for equality and identity. | ||
They are typically used to implement the `=` and `hash` methods. See the | ||
[related documentation.](reference/Comparison.md) | ||
- **Math**: Basic arithmetic abstractions like Percentages. See the | ||
[related documentation.](reference/Math.md) | ||
- **Bindings and Optionals**: Support to express optional values and | ||
required values, that can be unknown at the beginning of an execution. | ||
See the [related documentation.](reference/BindingsAndOptionals.md) | ||
- **Exception Handling**: Extensions to the [exception handling mechanics](reference/ExceptionHandling.md). | ||
- **Metaprogramming**: Some abstractions like [namespaces](reference/Namespaces.md) | ||
and [interfaces](reference/Interfaces.md). | ||
- **SUnit**: [Extensions to the SUnit framework](reference/SUnit.md). | ||
|
||
--- | ||
|
||
To use the project as a dependency of your project, take a look at: | ||
|
||
- [How to use Stargate as a dependency](how-to/how-to-use-as-dependency-in-pharo.md) | ||
- [Baseline groups reference](reference/Baseline-groups.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,35 @@ | ||
# How to load Buoy in a Pharo image | ||
|
||
## Using Metacello | ||
|
||
1. Download a [Pharo VM and image](https://pharo.org/download) | ||
2. Open your Pharo image | ||
3. Open a Playground | ||
4. Evaluate: | ||
|
||
```smalltalk | ||
Metacello new | ||
baseline: 'Buoy'; | ||
repository: 'github://ba-st/Buoy:release-candidate'; | ||
load: 'Development'. | ||
``` | ||
|
||
> Change `release-candidate` to some released version if you want a pinned version | ||
## Using Iceberg | ||
|
||
1. Download [pharo VM and image](https://pharo.org/download) | ||
2. Open your Pharo image | ||
3. Open Iceberg | ||
4. Click the *Add* repository button | ||
5. Select *Clone from github.com* and enter `ba-st` as owner name and `Buoy` | ||
as project name | ||
6. Click *Ok* | ||
7. Select the repository in the main Iceberg window | ||
8. Open the contextual menu and select | ||
*Metacello -> Install baseline of Buoy ...* | ||
9. Type `Development` and click *Ok* | ||
|
||
> After Iceberg cloned a repository, it will be checked-out at the default | ||
> branch (in this case `release-candidate`). If you want to work on a different | ||
> branch or commit, perform the checkout before the baseline installation step. |
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,42 @@ | ||
# How to use Buoy as dependency in a Pharo product | ||
|
||
In order to include **Buoy** as part of your project, you should reference | ||
the package in your product baseline: | ||
|
||
1. Define the Buoy repository and version to be used, and the [baseline groups](../reference/Baseline-groups.md) | ||
you want to depend on (usually it will be `Deployment`). | ||
|
||
If you're unsure on what to depend use the *Dependency Analyzer* | ||
tool to choose an appropriate group including the packages you need. | ||
|
||
2. Create a method like this one in the baseline class of your product: | ||
|
||
```smalltalk | ||
setUpDependencies: spec | ||
spec | ||
baseline: 'Buoy' | ||
with: [ spec repository: 'github://github://ba-st/Buoy:v{XX}' ]; | ||
project: 'Buoy-Deployment' | ||
copyFrom: 'Buoy' with: [ spec loads: 'Deployment' ] | ||
``` | ||
|
||
This will create `Buoy-Deployment` as a valid target that can be used | ||
as requirement in your own packages. | ||
|
||
> Replace `{XX}` with the version you want to depend on | ||
3. Use the new loading target as a requirement on your packages. For example: | ||
|
||
```smalltalk | ||
baseline: spec | ||
<baseline> | ||
spec | ||
for: #pharo | ||
do: [ | ||
self setUpDependencies: spec. | ||
spec | ||
package: 'My-Package' | ||
with: [ spec requires: #('Buoy-Deployment') ] ] | ||
``` |
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,13 @@ | ||
# Baseline Groups | ||
|
||
Buoy includes the following groups in its Baseline that can be used as | ||
loading targets: | ||
|
||
- `Deployment` will load all the packages needed in a deployed application | ||
- `Tests` will load the test cases | ||
- `Tools` will load tooling extensions | ||
- `Dependent-SUnit-Extensions` will load extensions to SUnit | ||
- `CI` is the group loaded in the continuous integration setup, in this | ||
particular case it is the same as `Tests` | ||
- `Development` will load all the needed packages to develop and contribute to | ||
the project |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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