Skip to content

Commit 1d42584

Browse files
committed
- Added: MpSettings>>symbolAsString for supporting Symbol encoding.
- ConfigurationOfMessagePack sets 1.2.3 as the latest development version.
1 parent 4a53c7e commit 1d42584

File tree

24 files changed

+85
-23
lines changed

24 files changed

+85
-23
lines changed

repository/ConfigurationOfMessagePack.package/ConfigurationOfMessagePack.class/class/catalogChangeLog.st

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,8 @@ catalogChangeLog
1010
[[[
1111
(ConfigurationOfMessagePack project version: ''1.2.2'') load
1212
]]]
13+
- Version 1.2.3
14+
[[[
15+
(ConfigurationOfMessagePack project version: ''1.2.3'') load
16+
]]]
1317
'

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: '1.2.2'.
5+
spec for: #'common' version: '1.2.3'.

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

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

5-
spec for: #'common' version: '1.2.2'.
5+
spec for: #'common' version: '1.2.3'.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
versions
2+
version123: spec
3+
<version: '1.2.3' 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.35';
10+
package: 'MessagePackTest' with: 'MessagePackTest-MasashiUmezawa.13' ].
11+
spec for: #squeakCommon do: [
12+
spec
13+
package: 'MessagePack-Squeak-Core' with: 'MessagePack-Squeak-Core-MasashiUmezawa.6'].

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"class" : {
33
"bootstrapPackage:from:" : "mu 6/2/2011 15:05",
4-
"catalogChangeLog" : "MasashiUmezawa 1/3/2016 13:04",
4+
"catalogChangeLog" : "MasashiUmezawa 6/4/2016 14:26",
55
"catalogDescription" : "MasashiUmezawa 1/3/2016 13:00",
66
"catalogKeyClassesAndExample" : "MasashiUmezawa 1/3/2016 13:02",
77
"catalogKeywords" : "MasashiUmezawa 1/3/2016 13:03",
@@ -20,14 +20,15 @@
2020
"baseline100:" : "MasashiUmezawa 6/27/2015 15:17",
2121
"baseline101:" : "dkh 8/26/2011 03:32",
2222
"baseline120:" : "mu 10/15/2013 00:46",
23-
"development:" : "MU 12/19/2015 23:30",
23+
"development:" : "MasashiUmezawa 6/4/2016 14:29",
2424
"project" : "mu 6/2/2011 15:05",
25-
"stable:" : "MasashiUmezawa 1/3/2016 12:34",
25+
"stable:" : "MasashiUmezawa 6/4/2016 14:29",
2626
"version100:" : "MasashiUmezawa 6/27/2015 15:15",
2727
"version101:" : "mu 11/23/2011 22:44",
2828
"version102:" : "mu 11/23/2011 22:44",
2929
"version103:" : "mu 11/23/2011 22:58",
3030
"version104:" : "mu 5/2/2012 13:02",
3131
"version120:" : "MasashiUmezawa 10/15/2013 01:09",
3232
"version121:" : "MasashiUmezawa 6/27/2015 15:14",
33-
"version122:" : "MU 12/19/2015 23:29" } }
33+
"version122:" : "MU 12/19/2015 23:29",
34+
"version123:" : "MasashiUmezawa 6/4/2016 14:28" } }

repository/ConfigurationOfMessagePack.package/monticello.meta/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
(name 'ConfigurationOfMessagePack-MasashiUmezawa.14' message 'Added catalog info' id '5277f5e5-8777-5940-b186-d7ffcd49a2af' date '3 January 2016' time '1:05:15.708623 pm' author 'MasashiUmezawa' ancestors ((name 'ConfigurationOfMessagePack-MasashiUmezawa.13' message 'Stable version is set to 1.2.2' id '230be898-eb51-da41-b725-47ac066d10d3' date '3 January 2016' time '12:39:11.809623 pm' author 'MasashiUmezawa' ancestors ((name 'ConfigurationOfMessagePack-MU.12' message '- Added version 1.2.2 configuration.- 1.2.2 is the latest development version' id '98f7cbdf-e808-d24a-9ccf-c0f51af91146' date '19 December 2015' time '11:33:43.022 pm' author 'MU' ancestors ((name 'ConfigurationOfMessagePack-MasashiUmezawa.11' message 'Fixed some validation errors' id '9c90c6e4-5bf0-456e-9533-fbab3071731e' date '27 June 2015' time '3:20:08.758362 pm' author 'MasashiUmezawa' ancestors ((name 'ConfigurationOfMessagePack-MasashiUmezawa.10' message 'Added version 1.2.1 spec' id '6876af65-f092-4be5-959d-590593da4246' date '14 June 2015' time '11:35:30.409191 pm' author 'MasashiUmezawa' ancestors ((name 'ConfigurationOfMessagePack-MasashiUmezawa.9' message 'Added version120' id 'ee574050-6c95-3245-8ba4-bc08d0988c47' date '15 October 2013' time '1:11:56.97 am' author 'MasashiUmezawa' ancestors ((name 'ConfigurationOfMessagePack-mu.8' message 'Added baseline120' id '8cd96180-b269-7b4f-85e6-bf51f30d07b8' date '15 October 2013' time '12:50:15.76 am' author 'mu' ancestors ((name 'ConfigurationOfMessagePack-mu.7' message 'Added config for 1.0.4' id '33f88b08-2d95-c542-9be2-8928b1b0b569' date '2 May 2012' time '1:03:06.151 pm' author 'mu' ancestors ((name 'ConfigurationOfMessagePack-mu.6' message 'version 1.0.3' id '6630ca6a-3817-eb45-8125-504dc91a9c3a' date '23 November 2011' time '11:02:08.711 pm' author 'mu' ancestors ((name 'ConfigurationOfMessagePack-AlexandreBergel.5' message 'Dale fixed a number of errors in it' id '38f583fb-c3ca-43c2-a4ad-fafed0bfdbf3' date '29 August 2011' time '3:53:13 pm' author 'AlexandreBergel' ancestors ((name 'ConfigurationOfMessagePack-mu.4' message 'version 1.0.2 (bug fix of negative fix num)' id '64136094-779f-2b48-8b72-1dfbaaa928b1' date '16 July 2011' time '1:14:22.239 am' author 'mu' ancestors ((name 'ConfigurationOfMessagePack-mu.3' message 'version 1.0.1' id '631d161f-3466-8144-9eb4-77fbf7be6644' date '7 June 2011' time '9:29:42.702 pm' author 'mu' ancestors ((name 'ConfigurationOfMessagePack-mu.2' message 'Fixed version' id 'ae6267f7-d91c-454f-9b9f-199903c2592e' date '2 June 2011' time '5:48:45.344 pm' author 'mu' ancestors ((name 'ConfigurationOfMessagePack-mu.1' message 'Initial version: http://code.google.com/p/messagepack-st/' id 'e64620bc-880e-2e4e-9814-4c8bb9e6675f' date '2 June 2011' time '3:55:04.744 pm' author 'mu' ancestors () stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())
1+
(name 'ConfigurationOfMessagePack-MasashiUmezawa.15' message 'Added version 1.2.3 description' id '936b7750-5fb4-5444-8cfd-e7432e9428ab' date '4 June 2016' time '2:31:00.743615 pm' author 'MasashiUmezawa' ancestors ((name 'ConfigurationOfMessagePack-MasashiUmezawa.14' message 'Added catalog info' id '5277f5e5-8777-5940-b186-d7ffcd49a2af' date '3 January 2016' time '1:05:15.708623 pm' author 'MasashiUmezawa' ancestors ((name 'ConfigurationOfMessagePack-MasashiUmezawa.13' message 'Stable version is set to 1.2.2' id '230be898-eb51-da41-b725-47ac066d10d3' date '3 January 2016' time '12:39:11.809623 pm' author 'MasashiUmezawa' ancestors ((name 'ConfigurationOfMessagePack-MU.12' message '- Added version 1.2.2 configuration.- 1.2.2 is the latest development version' id '98f7cbdf-e808-d24a-9ccf-c0f51af91146' date '19 December 2015' time '11:33:43.022 pm' author 'MU' ancestors ((name 'ConfigurationOfMessagePack-MasashiUmezawa.11' message 'Fixed some validation errors' id '9c90c6e4-5bf0-456e-9533-fbab3071731e' date '27 June 2015' time '3:20:08.758362 pm' author 'MasashiUmezawa' ancestors ((name 'ConfigurationOfMessagePack-MasashiUmezawa.10' message 'Added version 1.2.1 spec' id '6876af65-f092-4be5-959d-590593da4246' date '14 June 2015' time '11:35:30.409191 pm' author 'MasashiUmezawa' ancestors ((name 'ConfigurationOfMessagePack-MasashiUmezawa.9' message 'Added version120' id 'ee574050-6c95-3245-8ba4-bc08d0988c47' date '15 October 2013' time '1:11:56.97 am' author 'MasashiUmezawa' ancestors ((name 'ConfigurationOfMessagePack-mu.8' message 'Added baseline120' id '8cd96180-b269-7b4f-85e6-bf51f30d07b8' date '15 October 2013' time '12:50:15.76 am' author 'mu' ancestors ((name 'ConfigurationOfMessagePack-mu.7' message 'Added config for 1.0.4' id '33f88b08-2d95-c542-9be2-8928b1b0b569' date '2 May 2012' time '1:03:06.151 pm' author 'mu' ancestors ((name 'ConfigurationOfMessagePack-mu.6' message 'version 1.0.3' id '6630ca6a-3817-eb45-8125-504dc91a9c3a' date '23 November 2011' time '11:02:08.711 pm' author 'mu' ancestors ((name 'ConfigurationOfMessagePack-AlexandreBergel.5' message 'Dale fixed a number of errors in it' id '38f583fb-c3ca-43c2-a4ad-fafed0bfdbf3' date '29 August 2011' time '3:53:13 pm' author 'AlexandreBergel' ancestors ((name 'ConfigurationOfMessagePack-mu.4' message 'version 1.0.2 (bug fix of negative fix num)' id '64136094-779f-2b48-8b72-1dfbaaa928b1' date '16 July 2011' time '1:14:22.239 am' author 'mu' ancestors ((name 'ConfigurationOfMessagePack-mu.3' message 'version 1.0.1' id '631d161f-3466-8144-9eb4-77fbf7be6644' date '7 June 2011' time '9:29:42.702 pm' author 'mu' ancestors ((name 'ConfigurationOfMessagePack-mu.2' message 'Fixed version' id 'ae6267f7-d91c-454f-9b9f-199903c2592e' date '2 June 2011' time '5:48:45.344 pm' author 'mu' ancestors ((name 'ConfigurationOfMessagePack-mu.1' message 'Initial version: http://code.google.com/p/messagepack-st/' id 'e64620bc-880e-2e4e-9814-4c8bb9e6675f' date '2 June 2011' time '3:55:04.744 pm' author 'mu' ancestors () stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
building
22
buildTypeMapper: aTypeMapper
33
self settings formatVersion = 2008 ifTrue: [
4-
aTypeMapper bytesAsRaw.
5-
self settings stringAsBytes
6-
ifTrue: [aTypeMapper stringAsBytes]
7-
ifFalse: [aTypeMapper stringAsError]
4+
self buildTypeMapperFor2008: aTypeMapper.
5+
] ifFalse: [
6+
self buildTypeMapperFor2013: aTypeMapper.
87
].
8+
99
^aTypeMapper
1010

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
building
2+
buildTypeMapperFor2008: aTypeMapper
3+
aTypeMapper bytesAsRaw.
4+
self settings stringAsBytes
5+
ifTrue: [aTypeMapper stringAsBytes]
6+
ifFalse: [aTypeMapper stringAsError]
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
building
2+
buildTypeMapperFor2013: aTypeMapper
3+
self settings symbolAsString
4+
ifTrue: [aTypeMapper symbolAsString]
5+
ifFalse: [aTypeMapper symbolAsError]

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
"on:" : "mu 4/29/2011 15:07",
88
"onBytes:" : "mu 4/29/2011 15:07" },
99
"instance" : {
10-
"buildTypeMapper:" : "mu 8/19/2013 01:31",
10+
"buildTypeMapper:" : "MasashiUmezawa 6/4/2016 14:09",
11+
"buildTypeMapperFor2008:" : "MasashiUmezawa 6/4/2016 14:07",
12+
"buildTypeMapperFor2013:" : "MasashiUmezawa 6/4/2016 14:08",
1113
"contents" : "mu 4/29/2011 15:07",
1214
"createWriteStream" : "mu 10/29/2011 23:25",
1315
"encode:" : "mu 4/29/2011 15:07",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
class initialization
1+
initialization
22
initialize
33
settingsDict := nil
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
accessing
2+
symbolAsString: aBoolean
3+
^self at: #symbolAsString ifAbsentPut: aBoolean
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
accessing
2+
symbolAsString
3+
^self at: #symbolAsString ifAbsentPut: [true]

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,6 @@
2525
"printOn:" : "MasashiUmezawa 2/2/2013 00:18",
2626
"settingsDict" : "mu 4/29/2011 15:12",
2727
"stringAsBytes" : "mu 5/2/2012 12:04",
28-
"stringAsBytes:" : "mu 5/2/2012 12:04" } }
28+
"stringAsBytes:" : "mu 5/2/2012 12:04",
29+
"symbolAsString" : "MasashiUmezawa 6/4/2016 14:09",
30+
"symbolAsString:" : "MasashiUmezawa 6/3/2016 18:29" } }

repository/MessagePack-Core.package/monticello.meta/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
(name 'MessagePack-Core-MasashiUmezawa.34' message 'MpSettings>>formatVersion -> 2013 is now default' id '51579c03-5587-47f1-9ebf-8a5ef7470230' date '21 June 2015' time '4:34:16.532914 pm' author 'MasashiUmezawa' ancestors ((name 'MessagePack-Core-MasashiUmezawa.33' message 'Fixed a mapping bug in MpDecodeTypeMapper>>bytesAsString' id 'd6135ce8-d710-444d-b3b0-2a6c24168765' date '23 May 2015' time '11:36:39.85456 pm' author 'MasashiUmezawa' ancestors ((name 'MessagePack-Core-MasashiUmezawa.32' message 'Renamed MpConstants typecode methods for compatibility with GemStone.https://github.com/msgpack/msgpack-smalltalk/issues/4' id '7672363c-2b3d-422c-a18d-63de7ceb21ba' date '18 May 2015' time '10:54:43.647181 am' author 'MasashiUmezawa' ancestors ((name 'MessagePack-Core-mu.31' message '- Ext and Fixext encoding/decoding are now working' id '958b6113-8b9b-214c-a28e-38c991a8b70b' date '8 December 2013' time '3:47:05.753 pm' author 'mu' ancestors () stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())
1+
(name 'MessagePack-Core-MasashiUmezawa.35' message 'Added symbolAsString setting' id '42ae866c-30b7-1a45-a197-a005b7e5fa90' date '4 June 2016' time '2:22:42.063615 pm' author 'MasashiUmezawa' ancestors ((name 'MessagePack-Core-MasashiUmezawa.34' message 'MpSettings>>formatVersion -> 2013 is now default' id '51579c03-5587-47f1-9ebf-8a5ef7470230' date '21 June 2015' time '4:34:16.532914 pm' author 'MasashiUmezawa' ancestors ((name 'MessagePack-Core-MasashiUmezawa.33' message 'Fixed a mapping bug in MpDecodeTypeMapper>>bytesAsString' id 'd6135ce8-d710-444d-b3b0-2a6c24168765' date '23 May 2015' time '11:36:39.85456 pm' author 'MasashiUmezawa' ancestors ((name 'MessagePack-Core-MasashiUmezawa.32' message 'Renamed MpConstants typecode methods for compatibility with GemStone.https://github.com/msgpack/msgpack-smalltalk/issues/4' id '7672363c-2b3d-422c-a18d-63de7ceb21ba' date '18 May 2015' time '10:54:43.647181 am' author 'MasashiUmezawa' ancestors ((name 'MessagePack-Core-mu.31' message '- Ext and Fixext encoding/decoding are now working' id '958b6113-8b9b-214c-a28e-38c991a8b70b' date '8 December 2013' time '3:47:05.753 pm' author 'mu' ancestors () stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
encode customization
2+
symbolAsError
3+
self actionMap at: ByteSymbol put: #signalError:.
4+
self actionMap at: WideSymbol put: #signalError:.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
encode customization
2+
symbolAsString
3+
self actionMap at: ByteSymbol put: #writeString:.
4+
self actionMap at: WideSymbol put: #writeWideString:.

repository/MessagePack-Squeak-Core.package/MpSqEncodeTypeMapper.class/methodProperties.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@
44
"defineStrBytesActionTo:" : "mu 8/19/2013 01:24" },
55
"instance" : {
66
"stringAsBytes" : "mu 5/2/2012 12:55",
7-
"stringAsError" : "mu 8/19/2013 01:34" } }
7+
"stringAsError" : "mu 8/19/2013 01:34",
8+
"symbolAsError" : "MasashiUmezawa 6/3/2016 18:32",
9+
"symbolAsString" : "MasashiUmezawa 6/3/2016 18:32" } }

repository/MessagePack-Squeak-Core.package/monticello.meta/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
(name 'MessagePack-Squeak-Core-MU.5' message '- Fixed MpSqEncodeTypeMapper class>>defineDoubleActionTo:- BoxedFloat64 and SmallFloat64 encode mappings were added for Spur VM.' id 'bdd0165b-4dc7-444a-a30c-98087488bede' date '19 December 2015' time '11:25:14.479 pm' author 'MU' ancestors ((name 'MessagePack-Squeak-Core-mu.4' message '- Adding encoder support for new specification (https://github.com/msgpack/msgpack/blob/master/spec.md).- MpSettings >> formatVersion will be used for switching new/old formats' id 'b611d926-78c1-d044-a2dd-7b61d7b780a2' date '19 August 2013' time '1:38:43.346 am' author 'mu' ancestors ((name 'MessagePack-Squeak-Core-mu.3' message 'Added #stringAsBytes setting. If true, String will be enceded as MessagePack raw bytes.' id '8a797bfd-5150-4e42-8655-7db9019c69f1' date '2 May 2012' time '12:59:10.973 pm' author 'mu' ancestors ((name 'MessagePack-Squeak-Core-mu.2' message 'Added MpMemoryWriteStream for bulk write performance tuning' id '42d08a68-5df4-2b4f-98d8-4b26e4b58470' date '23 October 2011' time '12:06:45.085 am' author 'mu' ancestors ((name 'MessagePack-Squeak-Core-mu.1' message 'Isolated package' id 'a44b229c-f324-7e44-b25a-09386b468ebe' date '2 June 2011' time '10:58:25.013 am' author 'mu' ancestors () stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())
1+
(name 'MessagePack-Squeak-Core-MasashiUmezawa.6' message 'Added #symbolAsString/symbolAsError for changing Symbol encoding behavior' id 'b0371b80-07e7-8d4c-88db-748d7a17ce1f' date '4 June 2016' time '2:26:03.490615 pm' author 'MasashiUmezawa' ancestors ((name 'MessagePack-Squeak-Core-MU.5' message '- Fixed MpSqEncodeTypeMapper class>>defineDoubleActionTo:- BoxedFloat64 and SmallFloat64 encode mappings were added for Spur VM.' id 'bdd0165b-4dc7-444a-a30c-98087488bede' date '19 December 2015' time '11:25:14.479 pm' author 'MU' ancestors ((name 'MessagePack-Squeak-Core-mu.4' message '- Adding encoder support for new specification (https://github.com/msgpack/msgpack/blob/master/spec.md).- MpSettings >> formatVersion will be used for switching new/old formats' id 'b611d926-78c1-d044-a2dd-7b61d7b780a2' date '19 August 2013' time '1:38:43.346 am' author 'mu' ancestors ((name 'MessagePack-Squeak-Core-mu.3' message 'Added #stringAsBytes setting. If true, String will be enceded as MessagePack raw bytes.' id '8a797bfd-5150-4e42-8655-7db9019c69f1' date '2 May 2012' time '12:59:10.973 pm' author 'mu' ancestors ((name 'MessagePack-Squeak-Core-mu.2' message 'Added MpMemoryWriteStream for bulk write performance tuning' id '42d08a68-5df4-2b4f-98d8-4b26e4b58470' date '23 October 2011' time '12:06:45.085 am' author 'mu' ancestors ((name 'MessagePack-Squeak-Core-mu.1' message 'Isolated package' id 'a44b229c-f324-7e44-b25a-09386b468ebe' date '2 June 2011' time '10:58:25.013 am' author 'mu' ancestors () stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
testing
2+
testPackUnpackSymbolBytes
3+
"self debug: #testPackUnpackSymbolBytes"
4+
(self rawStringArray collect: [ :str | str asSymbol ]) do: [:each | | packed unpacked |
5+
self assert: (each isKindOf: Symbol).
6+
packed := each messagePacked: [:settings | settings formatVersion: 2013].
7+
self should: [packed isMemberOf: ByteArray].
8+
self should: [ each messagePacked: [:settings | settings formatVersion: 2013; symbolAsString: false ]] raise: MpError.
9+
unpacked := Object fromMessagePack: packed.
10+
self assert: (unpacked isKindOf: String).
11+
self assert: (unpacked = each asString).
12+
]
13+
14+

repository/MessagePackTest.package/MpPackUnpackTestCase.class/methodProperties.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,5 @@
3838
"testPackUnpackNil" : "MasashiUmezawa 5/18/2015 10:45",
3939
"testPackUnpackRawBytes" : "mu 8/26/2013 00:09",
4040
"testPackUnpackStrBytes" : "mu 8/25/2013 23:49",
41+
"testPackUnpackSymbolBytes" : "MasashiUmezawa 6/4/2016 14:24",
4142
"testPackUnpackTrue" : "MasashiUmezawa 5/18/2015 10:47" } }

repository/MessagePackTest.package/MpStringUnpackTestCase.class/instance/testUnpackString8.st

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,9 @@ testUnpackString8
44
| str1 data1 data2 str2 |
55
str1 := 'hi'.
66
data1 := self encodeString8: str1.
7-
"self assert: [(MpMessagePack unpack: data1) = str1]."
8-
self assert: ((Object fromMessagePack: data1 setting: [:se | se formatVersion: 2013]) = str1). "2013 would be default. It is temporary"
7+
self assert: ((MpMessagePack unpack: data1) = str1).
98

109
str2 := 'Str format family stores an byte array in 1, 2, 3, or 5 bytes of extra bytes in addition to the size of the byte array'.
1110
data2 := self encodeString8: str2.
12-
"self assert: [(MpMessagePack unpack: data2) = str2]"
13-
self assert: ((Object fromMessagePack: data2 setting: [:se | se formatVersion: 2013]) = str2). "2013 would be default. It is temporary"
11+
self assert: ((MpMessagePack unpack: data2) = str2).
1412

repository/MessagePackTest.package/MpStringUnpackTestCase.class/methodProperties.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
"encodeRandomBin8:" : "mu 8/12/2013 01:14",
88
"encodeString8:" : "mu 8/12/2013 00:27",
99
"testUnpackBinFamilyBytes" : "mu 8/12/2013 01:16",
10-
"testUnpackString8" : "MasashiUmezawa 10/15/2013 01:04" } }
10+
"testUnpackString8" : "MasashiUmezawa 6/4/2016 14:13" } }

0 commit comments

Comments
 (0)