Skip to content

Commit

Permalink
Merge pull request #26 from msgpack/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
mumez authored Feb 7, 2024
2 parents 3dbe1e9 + 7750299 commit 081086a
Show file tree
Hide file tree
Showing 47 changed files with 100 additions and 601 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: smalltalkCI

on: [push]

jobs:
test:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
smalltalk: [Pharo64-11]
experimental: [false]
continue-on-error: ${{ matrix.experimental }}
name: ${{ matrix.smalltalk }}
steps:
- uses: actions/checkout@v3
- uses: hpi-swa/setup-smalltalkCI@v1
with:
smalltalk-image: ${{ matrix.smalltalk }}
- name: Run tests
run: smalltalkci -s ${{ matrix.smalltalk }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
timeout-minutes: 20
13 changes: 13 additions & 0 deletions .smalltalk.ston
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
SmalltalkCISpec {
#loading : [
SCIMetacelloLoadSpec {
#baseline : 'MessagePack',
#directory : 'repository',
#load : [ 'default' ],
#onConflict : #useLoaded,
#useLatestMetacello : false,
#onWarningLog : true,
#platforms : [ #pharo, #squeak ]
}
]
}
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
msgpack-smalltalk
=================
[![CI](https://github.com/msgpack/msgpack-smalltalk/actions/workflows/main.yml/badge.svg)](https://github.com/msgpack/msgpack-smalltalk/actions/workflows/main.yml)

MessagePack serialization library for various Smalltalk dialects.

Expand All @@ -8,7 +9,7 @@ MessagePack serialization library for various Smalltalk dialects.
- VisualWorks
- VA Smalltalk
- Dolphin Smalltalk
- GNU Smalltalk (Beta)
- GNU Smalltalk (Beta)
- [Cuis](https://github.com/mumez/Cuis-Smalltalk-MessagePack)

Sources are put as [Cypress](https://github.com/CampSmalltalk/Cypress/blob/master/README.md) for the neutral accesses from various Smalltalk dialects.
Expand Down Expand Up @@ -63,22 +64,25 @@ Please read [HowToInstall.md](<https://github.com/msgpack/msgpack-smalltalk/blob

### Loading the latest development version

#### Squeak
#### Squeak 4
```Smalltalk
Installer squeaksource
project: 'MessagePack';
install: 'ConfigurationOfMessagePack'.
(Smalltalk at: #ConfigurationOfMessagePack) project development load
```

#### Pharo
#### Pharo & Squeak 5+
```Smalltalk
Metacello new
repository: 'github://msgpack/msgpack-smalltalk/repository';
baseline: 'MessagePack';
repository: 'github://msgpack/msgpack-smalltalk:develop/repository';
load.
```

You might need ```MpTypeMapper initializeAll ``` on new encoder/decoder-related updates.

#### Limitation on Squeak 5+

Starting with Squeak 5 and 6, DateAndTime only supports microsecond precision. Because of this, nanosecond values are not properly decoded as DateAndTime.
Two unit tests (testPackUnpackTimestamp64, 96) fail on Squeak 5 and 6.
50 changes: 25 additions & 25 deletions doc/HowToInstall.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,26 @@
# How to install

## Squeak:
## Pharo & Squeak 5

You can use Metacello:

```smalltalk
Metacello new
baseline: 'MessagePack';
repository: 'github://msgpack/msgpack-smalltalk/repository';
load.
```

If you prefer development branch:

```smalltalk
Metacello new
baseline: 'MessagePack';
repository: 'github://msgpack/msgpack-smalltalk:develop/repository';
load.
```

## Squeak 4

Hosted on SqueakSource Repository.
(http://www.squeaksource.com/MessagePack.html).
Expand All @@ -23,35 +43,15 @@ Installer squeaksource
(Smalltalk at: #ConfigurationOfMessagePack) perform: #load.
```

## Pharo:

You can use Metacello:

```smalltalk
Metacello new
baseline: 'MessagePack';
repository: 'github://msgpack/msgpack-smalltalk/repository';
load.
```

If you prefer development branch:

```smalltalk
Metacello new
baseline: 'MessagePack';
repository: 'github://msgpack/msgpack-smalltalk:develop/repository';
load.
```

## VisualWorks:
## VisualWorks

Hosted on [Public Store Repository](http://www.cincomsmalltalk.com/CincomSmalltalkWiki/PostgreSQL+Access+Page).
http://www.cincomsmalltalk.com/publicRepository/MessagePack-All(Bundle).html

You can also download parcels:
http://code.google.com/p/messagepack-st/source/browse/#hg%2FVisualWorks

## VA Smalltalk:
## VA Smalltalk

Hosted on [VAStGoodies.com](http://vastgoodies.com).

Expand All @@ -61,11 +61,11 @@ Tests: [MessagePackTests](http://vastgoodies.com/maps/MessagePack%20Tests).
You can also download .dat files:
http://code.google.com/p/messagepack-st/source/browse/#hg%2FVA%20Smalltalk

## Dolphin Smalltalk:
## Dolphin Smalltalk

Hosted on [Google Code site](<http://messagepack-st.googlecode.com>) (old version).

Zipped: [MessagePack-Dolphin.zip](http://messagepack-st.googlecode.com/hg/Dolphin%20Smalltalk/MessagePack-Dolphin.zip).
Sources: [MessagePack](http://code.google.com/p/messagepack-st/source/browse/#hg%2FDolphin%20Smalltalk%2FMessagePack).

Download the zipped pac file: MessagePack-Dolphin.zip and follow the instruction on README file.
Download the zipped pac file: MessagePack-Dolphin.zip and follow the instruction on README file.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
doits
preLoadForPharo
Smalltalk globals at: #MpPhPortableUtil ifPresent: [ :cls | cls initialize].
Smalltalk globals at: #MpPhPortableUtil ifPresent: [ :cls | cls activate].

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ readTimestamp64: aStream
| nanosAndSeconds nanos seconds |
nanosAndSeconds := MpPortableUtil default readUint64From: aStream.
nanos := nanosAndSeconds >> 34.
seconds := nanosAndSeconds & 16r00000003ffffffff.
seconds := nanosAndSeconds bitAnd: 16r00000003ffffffff.
^MpPortableUtil default timestampFromSeconds: seconds nanos: nanos
Loading

0 comments on commit 081086a

Please sign in to comment.