Skip to content

Commit 081086a

Browse files
authored
Merge pull request #26 from msgpack/develop
Develop
2 parents 3dbe1e9 + 7750299 commit 081086a

File tree

47 files changed

+100
-601
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+100
-601
lines changed

.github/workflows/main.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: smalltalkCI
2+
3+
on: [push]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-22.04
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
smalltalk: [Pharo64-11]
12+
experimental: [false]
13+
continue-on-error: ${{ matrix.experimental }}
14+
name: ${{ matrix.smalltalk }}
15+
steps:
16+
- uses: actions/checkout@v3
17+
- uses: hpi-swa/setup-smalltalkCI@v1
18+
with:
19+
smalltalk-image: ${{ matrix.smalltalk }}
20+
- name: Run tests
21+
run: smalltalkci -s ${{ matrix.smalltalk }}
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
shell: bash
25+
timeout-minutes: 20

.smalltalk.ston

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
SmalltalkCISpec {
2+
#loading : [
3+
SCIMetacelloLoadSpec {
4+
#baseline : 'MessagePack',
5+
#directory : 'repository',
6+
#load : [ 'default' ],
7+
#onConflict : #useLoaded,
8+
#useLatestMetacello : false,
9+
#onWarningLog : true,
10+
#platforms : [ #pharo, #squeak ]
11+
}
12+
]
13+
}

README.md

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
msgpack-smalltalk
22
=================
3+
[![CI](https://github.com/msgpack/msgpack-smalltalk/actions/workflows/main.yml/badge.svg)](https://github.com/msgpack/msgpack-smalltalk/actions/workflows/main.yml)
34

45
MessagePack serialization library for various Smalltalk dialects.
56

@@ -8,7 +9,7 @@ MessagePack serialization library for various Smalltalk dialects.
89
- VisualWorks
910
- VA Smalltalk
1011
- Dolphin Smalltalk
11-
- GNU Smalltalk (Beta)
12+
- GNU Smalltalk (Beta)
1213
- [Cuis](https://github.com/mumez/Cuis-Smalltalk-MessagePack)
1314

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

6465
### Loading the latest development version
6566

66-
#### Squeak
67+
#### Squeak 4
6768
```Smalltalk
6869
Installer squeaksource
6970
project: 'MessagePack';
7071
install: 'ConfigurationOfMessagePack'.
7172
(Smalltalk at: #ConfigurationOfMessagePack) project development load
7273
```
7374

74-
#### Pharo
75+
#### Pharo & Squeak 5+
7576
```Smalltalk
7677
Metacello new
77-
repository: 'github://msgpack/msgpack-smalltalk/repository';
7878
baseline: 'MessagePack';
79+
repository: 'github://msgpack/msgpack-smalltalk:develop/repository';
7980
load.
8081
```
8182

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

85+
#### Limitation on Squeak 5+
8486

87+
Starting with Squeak 5 and 6, DateAndTime only supports microsecond precision. Because of this, nanosecond values are not properly decoded as DateAndTime.
88+
Two unit tests (testPackUnpackTimestamp64, 96) fail on Squeak 5 and 6.

doc/HowToInstall.md

+25-25
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,26 @@
11
# How to install
22

3-
## Squeak:
3+
## Pharo & Squeak 5
4+
5+
You can use Metacello:
6+
7+
```smalltalk
8+
Metacello new
9+
baseline: 'MessagePack';
10+
repository: 'github://msgpack/msgpack-smalltalk/repository';
11+
load.
12+
```
13+
14+
If you prefer development branch:
15+
16+
```smalltalk
17+
Metacello new
18+
baseline: 'MessagePack';
19+
repository: 'github://msgpack/msgpack-smalltalk:develop/repository';
20+
load.
21+
```
22+
23+
## Squeak 4
424

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

26-
## Pharo:
27-
28-
You can use Metacello:
29-
30-
```smalltalk
31-
Metacello new
32-
baseline: 'MessagePack';
33-
repository: 'github://msgpack/msgpack-smalltalk/repository';
34-
load.
35-
```
36-
37-
If you prefer development branch:
38-
39-
```smalltalk
40-
Metacello new
41-
baseline: 'MessagePack';
42-
repository: 'github://msgpack/msgpack-smalltalk:develop/repository';
43-
load.
44-
```
45-
46-
## VisualWorks:
46+
## VisualWorks
4747

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

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

54-
## VA Smalltalk:
54+
## VA Smalltalk
5555

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

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

64-
## Dolphin Smalltalk:
64+
## Dolphin Smalltalk
6565

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

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

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

repository/BaselineOfMessagePack.package/BaselineOfMessagePack.class/methodProperties.json

-7
This file was deleted.

repository/BaselineOfMessagePack.package/monticello.meta/version

-1
This file was deleted.

repository/MessagePack-Core.package/Array.extension/methodProperties.json

-6
This file was deleted.

repository/MessagePack-Core.package/Behavior.extension/methodProperties.json

-7
This file was deleted.

repository/MessagePack-Core.package/ByteArray.extension/methodProperties.json

-6
This file was deleted.

repository/MessagePack-Core.package/Dictionary.extension/methodProperties.json

-6
This file was deleted.

repository/MessagePack-Core.package/False.extension/methodProperties.json

-6
This file was deleted.

repository/MessagePack-Core.package/IdentityDictionary.extension/methodProperties.json

-7
This file was deleted.

repository/MessagePack-Core.package/Integer.extension/methodProperties.json

-6
This file was deleted.

repository/MessagePack-Core.package/MpConstants.class/methodProperties.json

-37
This file was deleted.

repository/MessagePack-Core.package/MpDecodeTypeMapper.class/methodProperties.json

-28
This file was deleted.

repository/MessagePack-Core.package/MpDecoder.class/instance/readTimestamp64..st

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ readTimestamp64: aStream
33
| nanosAndSeconds nanos seconds |
44
nanosAndSeconds := MpPortableUtil default readUint64From: aStream.
55
nanos := nanosAndSeconds >> 34.
6-
seconds := nanosAndSeconds & 16r00000003ffffffff.
6+
seconds := nanosAndSeconds bitAnd: 16r00000003ffffffff.
77
^MpPortableUtil default timestampFromSeconds: seconds nanos: nanos

0 commit comments

Comments
 (0)