-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove JSON extensions package for Pharo 7 and move extension and tes…
…ts for OrderedDictionary to Pharo-JSON package
- Loading branch information
Showing
14 changed files
with
68 additions
and
29 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,4 +1,5 @@ | ||
{ | ||
"noMethodMetaData" : true, | ||
"separateMethodMetaAndSource" : false, | ||
"useCypressPropertiesFile" : true } | ||
"noMethodMetaData" : true, | ||
"useCypressPropertiesFile" : true | ||
} |
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
19 changes: 8 additions & 11 deletions
19
repository/BaselineOfSeaside3.package/BaselineOfSeaside3.class/properties.json
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,14 +1,11 @@ | ||
{ | ||
"category" : "BaselineOfSeaside3", | ||
"classinstvars" : [ | ||
], | ||
"classvars" : [ | ||
], | ||
"commentStamp" : "", | ||
"instvars" : [ | ||
], | ||
"name" : "BaselineOfSeaside3", | ||
"pools" : [ | ||
], | ||
"super" : "BaselineOf", | ||
"type" : "normal" } | ||
"category" : "BaselineOfSeaside3", | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ ], | ||
"instvars" : [ ], | ||
"name" : "BaselineOfSeaside3", | ||
"type" : "normal" | ||
} |
2 changes: 1 addition & 1 deletion
2
repository/BaselineOfSeaside3.package/monticello.meta/categories.st
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 @@ | ||
SystemOrganization addCategory: #'BaselineOfSeaside3'! | ||
SystemOrganization addCategory: #BaselineOfSeaside3! |
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,2 +1 @@ | ||
{ | ||
} | ||
{ } |
5 changes: 5 additions & 0 deletions
5
repository/Seaside-Pharo-JSON-Core.package/OrderedDictionary.extension/instance/jsonOn..st
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,5 @@ | ||
*Seaside-Pharo-JSON-Core | ||
jsonOn: aRenderer | ||
aRenderer object: [ | ||
self keysAndValuesDo: [ :key :value | | ||
aRenderer key: key value: value ] ] |
3 changes: 3 additions & 0 deletions
3
repository/Seaside-Pharo-JSON-Core.package/OrderedDictionary.extension/properties.json
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,3 @@ | ||
{ | ||
"name" : "OrderedDictionary" | ||
} |
1 change: 1 addition & 0 deletions
1
repository/Seaside-Pharo-JSON-Core.package/monticello.meta/categories.st
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,2 @@ | ||
SystemOrganization addCategory: #'Seaside-Pharo-JSON-Core'! | ||
SystemOrganization addCategory: #'Seaside-Pharo-JSON-Core-Base'! |
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,4 +1,5 @@ | ||
{ | ||
"noMethodMetaData" : true, | ||
"separateMethodMetaAndSource" : false, | ||
"useCypressPropertiesFile" : true } | ||
"noMethodMetaData" : true, | ||
"useCypressPropertiesFile" : true | ||
} |
39 changes: 39 additions & 0 deletions
39
...ests-Pharo-JSON-Core.package/WAJsonStreamTest.extension/instance/testOrderedDictionary.st
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,39 @@ | ||
*Seaside-Tests-Pharo-JSON-Core | ||
testOrderedDictionary | ||
self | ||
assert: | ||
((OrderedDictionary new) | ||
at: 'foo' put: 1; | ||
at: 'bar' put: 2; | ||
at: 'zork' put: 3; | ||
yourself) | ||
equals: '{"foo": 1, "bar": 2, "zork": 3}'. | ||
self | ||
assert: | ||
((OrderedDictionary new) | ||
at: '' put: 'empty'; | ||
yourself) | ||
equals: '{"": "empty"}'. | ||
self should: [ | ||
self | ||
assert: | ||
((OrderedDictionary new) | ||
at: 1 put: 'not-a-string'; | ||
yourself) | ||
equals: '{1: "not-a-string"}' ] | ||
raise: Error | ||
whoseDescriptionIncludes: 'Only Strings can be used as keys in JSON objects.' | ||
description: 'Throw an error when serializing dictionaries with non-String keys'. | ||
self | ||
assert: | ||
((OrderedDictionary new) | ||
at: '1abc' put: 'not-an-id'; | ||
yourself) | ||
equals: '{"1abc": "not-an-id"}'. | ||
|
||
self | ||
assert: | ||
((OrderedDictionary new) | ||
at: 'abc1' put: 'totally sexy'; | ||
yourself) | ||
equals: '{"abc1": "totally sexy"}' |
3 changes: 2 additions & 1 deletion
3
repository/Seaside-Tests-Pharo-JSON-Core.package/WAJsonStreamTest.extension/properties.json
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,2 +1,3 @@ | ||
{ | ||
"name" : "WAJsonStreamTest" } | ||
"name" : "WAJsonStreamTest" | ||
} |
1 change: 1 addition & 0 deletions
1
repository/Seaside-Tests-Pharo-JSON-Core.package/monticello.meta/categories.st
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 @@ | ||
SystemOrganization addCategory: #'Seaside-Tests-Pharo-JSON-Core'! |
1 change: 0 additions & 1 deletion
1
repository/Seaside-Tests-Pharo-JSON-Core.package/monticello.meta/version
This file was deleted.
Oops, something went wrong.
3 changes: 1 addition & 2 deletions
3
repository/Seaside-Tests-Pharo-JSON-Core.package/properties.json
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,2 +1 @@ | ||
{ | ||
} | ||
{ } |