Skip to content

Commit 0ffea36

Browse files
committed
Merge branch 'develop'
- Added: Ext type support - MpSettings>>formatVersion is set to use the latest MessagePack spec - Added: BoxFloat64 and SmallFloat64 encode mappings for Spur VM
2 parents 1ff0b04 + 2ef0acd commit 0ffea36

File tree

88 files changed

+511
-96
lines changed

Some content is hidden

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

88 files changed

+511
-96
lines changed

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,27 @@ decoder := MpDecoder on: readStream.
6363
We are moving from [Google Code site](http://code.google.com/p/messagepack-st/). Old contents including installation guide are still there.
6464

6565

66+
67+
68+
### Loading the latest development version
69+
70+
#### Squeak
71+
```Smalltalk
72+
Installer squeaksource
73+
project: 'MessagePack';
74+
install: 'ConfigurationOfMessagePack'.
75+
(Smalltalk at: #ConfigurationOfMessagePack) project development load
76+
```
77+
78+
#### Pharo
79+
```Smalltalk
80+
Gofer it
81+
smalltalkhubUser: 'MasashiUmezawa' project: 'MessagePack';
82+
configuration;
83+
load.
84+
(Smalltalk at: #ConfigurationOfMessagePack) project development load
85+
```
86+
87+
You might need ```MpTypeMapper initializeAll ``` on new encoder/decoder-related updates.
88+
89+

doc/HowToInstall.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
## How to install
2+
3+
### Squeak:
4+
5+
Hosted on SqueakSource Repository.
6+
(http://www.squeaksource.com/MessagePack.html).
7+
8+
From Monticello:
9+
```
10+
MCHttpRepository
11+
location: 'http://www.squeaksource.com/MessagePack'
12+
user: ''
13+
password: ''
14+
```
15+
16+
You can also use Installer:
17+
```
18+
Installer squeaksource
19+
project: 'MetacelloRepository';
20+
install: 'ConfigurationOfMessagePack'.
21+
(Smalltalk at: #ConfigurationOfMessagePack) perform: #load.
22+
```
23+
### Pharo:
24+
You can use Gofer:
25+
```
26+
Gofer it
27+
squeaksource3: 'MessagePack';
28+
package: 'ConfigurationOfMessagePack';
29+
load.
30+
(Smalltalk at: #ConfigurationOfMessagePack) perform: #load.
31+
```
32+
### VisualWorks:
33+
34+
Hosted on [Public Store Repository](http://www.cincomsmalltalk.com/CincomSmalltalkWiki/PostgreSQL+Access+Page).
35+
http://www.cincomsmalltalk.com/publicRepository/MessagePack-All(Bundle).html
36+
37+
You can also download parcels:
38+
http://code.google.com/p/messagepack-st/source/browse/#hg%2FVisualWorks
39+
40+
### VA Smalltalk:
41+
42+
Hosted on [VAStGoodies.com](http://vastgoodies.com).
43+
44+
Core: [MessagePack](http://vastgoodies.com/maps/MessagePack).
45+
Tests: [MessagePackTests](http://vastgoodies.com/maps/MessagePack%20Tests).
46+
47+
You can also download .dat files:
48+
http://code.google.com/p/messagepack-st/source/browse/#hg%2FVA%20Smalltalk
49+
50+
### Dolphin Smalltalk:
51+
52+
Hosted on this site.
53+
54+
Zipped: [MessagePack-Dolphin.zip](http://messagepack-st.googlecode.com/hg/Dolphin%20Smalltalk/MessagePack-Dolphin.zip).
55+
Sources: [MessagePack](http://code.google.com/p/messagepack-st/source/browse/#hg%2FDolphin%20Smalltalk%2FMessagePack).
56+
57+
Download the zipped pac file: MessagePack-Dolphin.zip and follow the instruction on README file.

doc/HowToUse.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
### Serialization:
2+
```
3+
MpMessagePack pack: <your object>
4+
```
5+
6+
or:
7+
8+
```
9+
<your object> messagePacked
10+
```
11+
12+
### Deserialization:
13+
```
14+
MpMessagePack unpack: msgpackBytes
15+
```
16+
17+
or:
18+
19+
```
20+
Object fromMessagePack: msgBytes
21+
```
22+
23+
### Sample1:
24+
```
25+
map := Dictionary new.
26+
map at: 'someArray' asByteArray put: #(1 2.2 #[3 4 5]).
27+
packed := map messagePacked.
28+
(Object fromMessagePack: packed) inspect.
29+
```
30+
31+
### Sample2:
32+
```
33+
writeStream := WriteStream on: ByteArray new.
34+
encoder := MpEncoder on: writeStream.
35+
encoder nextPut: 1.
36+
encoder nextPut: #(2 3).
37+
dic := Dictionary new.
38+
dic at: 4 put: 5.
39+
encoder nextPut: dic.
40+
encoder nextPut: 'four' asByteArray.
41+
bytes := encoder contents.
42+
43+
readStream := ReadStream on: bytes.
44+
decoder := MpDecoder on: readStream.
45+
[decoder atEnd] whileFalse: [
46+
Transcript cr; show: decoder next printString
47+
]
48+
49+
```
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
development support
2+
validate
3+
"Check the configuration for Errors, Critical Warnings, and Warnings (see class comment for MetacelloMCVersionValidator for more information).
4+
Errors identify specification issues that will result in unexpected behaviour when you load the configuration.
5+
Critical Warnings identify specification issues that may result in unexpected behavior when you load the configuration.
6+
Warnings identify specification issues that are technically correct, but are worth take a look at."
7+
8+
"self validate"
9+
10+
<apiDocumentation>
11+
self ensureMetacello.
12+
^ ((Smalltalk at: #MetacelloToolBox) validateConfiguration: self debug: #() recurse: false) explore

repository/ConfigurationOfMessagePack.package/ConfigurationOfMessagePack.class/instance/baseline100..st

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ baseline100: spec
77
repository: 'http://www.squeaksource.com/MessagePack'.
88
spec
99
package: 'MessagePack-Core';
10-
package: 'MessagePackTest-Core' with: [ spec requires: 'MessagePack-Core' ].
10+
package: 'MessagePackTest' with: [ spec requires: 'MessagePack-Core' ].
1111
spec
1212
group: 'default' with: #('Core' 'Tests');
1313
group: 'Core' with: #('MessagePack-Core');
14-
group: 'Tests' with: #('MessagePackTest-Core'). ].
14+
group: 'Tests' with: #('MessagePackTest'). ].
1515

1616
spec for: #squeakCommon do: [
1717
spec

repository/ConfigurationOfMessagePack.package/ConfigurationOfMessagePack.class/instance/development..st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ symbolic versions
22
development: spec
33
<symbolicVersion: #'development'>
44

5-
spec for: #'common' version: #notDefined.
5+
spec for: #'common' version: '1.2.2'.

repository/ConfigurationOfMessagePack.package/ConfigurationOfMessagePack.class/instance/version100..st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ version100: spec
77
spec author: 'Masashi Umezawa'.
88
spec
99
package: 'MessagePack-Core' with: 'MessagePack-Core-mu.4';
10-
package: 'MessagePackTest-Core' with: 'MessagePackTest-mu.2' ].
10+
package: 'MessagePackTest' with: 'MessagePackTest-mu.2' ].
1111
spec for: #squeakCommon do: [
1212
spec
1313
package: 'MessagePack-Squeak-Core' with: 'MessagePack-Squeak-Core-mu.1'].
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
versions
2+
version121: spec
3+
<version: '1.2.1' imports: #('1.2.0-baseline') >
4+
5+
spec for: #common do: [
6+
spec blessing: #development.
7+
spec author: 'Masashi Umezawa'.
8+
spec
9+
package: 'MessagePack-Core' with: 'MessagePack-Core-MasashiUmezawa.33';
10+
package: 'MessagePackTest' with: 'MessagePackTest-MasashiUmezawa.11' ].
11+
spec for: #squeakCommon do: [
12+
spec
13+
package: 'MessagePack-Squeak-Core' with: 'MessagePack-Squeak-Core-mu.4'].
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
versions
2+
version122: spec
3+
<version: '1.2.2' imports: #('1.2.0-baseline') >
4+
5+
spec for: #common do: [
6+
spec blessing: #development.
7+
spec author: 'Masashi Umezawa'.
8+
spec
9+
package: 'MessagePack-Core' with: 'MessagePack-Core-MasashiUmezawa.34';
10+
package: 'MessagePackTest' with: 'MessagePackTest-MasashiUmezawa.12' ].
11+
spec for: #squeakCommon do: [
12+
spec
13+
package: 'MessagePack-Squeak-Core' with: 'MessagePack-Squeak-Core-MU.5'].

repository/ConfigurationOfMessagePack.package/ConfigurationOfMessagePack.class/methodProperties.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,20 @@
99
"load" : "mu 6/2/2011 15:05",
1010
"metacelloVersion:loads:" : "mu 6/2/2011 15:05",
1111
"project" : "mu 6/2/2011 15:05",
12-
"updateToLatestPackageVersions:" : "mu 6/2/2011 15:05" },
12+
"updateToLatestPackageVersions:" : "mu 6/2/2011 15:05",
13+
"validate" : "MasashiUmezawa 6/27/2015 15:13" },
1314
"instance" : {
14-
"baseline100:" : "mu 6/2/2011 15:47",
15+
"baseline100:" : "MasashiUmezawa 6/27/2015 15:17",
1516
"baseline101:" : "dkh 8/26/2011 03:32",
1617
"baseline120:" : "mu 10/15/2013 00:46",
17-
"development:" : "mu 6/2/2011 15:05",
18+
"development:" : "MU 12/19/2015 23:30",
1819
"project" : "mu 6/2/2011 15:05",
1920
"stable:" : "mu 5/2/2012 13:00",
20-
"version100:" : "mu 6/2/2011 17:47",
21+
"version100:" : "MasashiUmezawa 6/27/2015 15:15",
2122
"version101:" : "mu 11/23/2011 22:44",
2223
"version102:" : "mu 11/23/2011 22:44",
2324
"version103:" : "mu 11/23/2011 22:58",
2425
"version104:" : "mu 5/2/2012 13:02",
25-
"version120:" : "MasashiUmezawa 10/15/2013 01:09" } }
26+
"version120:" : "MasashiUmezawa 10/15/2013 01:09",
27+
"version121:" : "MasashiUmezawa 6/27/2015 15:14",
28+
"version122:" : "MU 12/19/2015 23:29" } }

0 commit comments

Comments
 (0)