Skip to content

Commit

Permalink
Add a compatibility package for Pharo 6.1
Browse files Browse the repository at this point in the history
Fixes #8
  • Loading branch information
gcotelli committed Jun 24, 2019
1 parent 5aabe08 commit 503bbc7
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/BaselineOfJRPC/BaselineOfJRPC.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,20 @@ BaselineOfJRPC >> setUpPackages: spec [
spec
package: 'JRPC-Server' with: [ spec requires: 'JRPC-Common' ];
group: 'Server-Deployment' with: 'JRPC-Server'.
spec
for: #'pharo6.x'
do: [ spec
package: 'JRPC-Server-Pharo6';
group: 'Server-Deployment' with: 'JRPC-Server-Pharo6'
].
spec
package: 'JRPC-Client' with: [ spec requires: 'JRPC-Common' ];
group: 'Client-Deployment' with: 'JRPC-Client'.
spec group: 'Deployment' with: #('Server-Deployment' 'Client-Deployment').

spec
package: 'JRPC-Tests' with: [ spec requires: 'Deployment' ];
group: 'Tests' with: 'JRPC-Tests'
group: 'Tests' with: 'JRPC-Tests'.


]
7 changes: 7 additions & 0 deletions src/JRPC-Server-Pharo6/ZnEntity.extension.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Extension { #name : #ZnEntity }

{ #category : #'*JRPC-Server-Pharo6' }
ZnEntity class >> json: text [

^ self stringEntityClass json: text
]
8 changes: 8 additions & 0 deletions src/JRPC-Server-Pharo6/ZnStringEntity.extension.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Extension { #name : #ZnStringEntity }

{ #category : #'*JRPC-Server-Pharo6' }
ZnStringEntity class >> json: string [
^ (self type: ZnMimeType applicationJson)
string: string;
yourself
]
1 change: 1 addition & 0 deletions src/JRPC-Server-Pharo6/package.st
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Package { #name : #'JRPC-Server-Pharo6' }

0 comments on commit 503bbc7

Please sign in to comment.