Open tinchodias opened 4 months ago
I'm looking for the equivalent in P13 of (RPackageOrganizer default packageNamed: #'Bloc-Demo')
to fix 2 tests in BlDemoBasicNodeTest
.
@jecisc do you know?
Another occurrence:
BlDemoPresenter>>
packagesToCollect
^ RPackageOrganizer default packages select: [ :each |
each name includesSubstring: 'Bloc' ]
You can access the package organizer of a class through #packageOrganizer method now :) Instead of referencing a global
If your project need to also work in P11 you can take a look at this project: https://github.com/jecisc/PharoBackwardCompatibility
Another occurrence:
BlDemoPresenter>> packagesToCollect ^ RPackageOrganizer default packages select: [ :each | each name includesSubstring: 'Bloc' ]
This can become
BlDemoPresenter>>packagesToCollect
^ self packageOrganizer packages select: [ :package | package name includesSubstring: 'Bloc' ]
Thanks @jecisc !
Yes, I like the deprecation and new way to to it. To make it work from p11 to p13, I'm replacing by self class packageOrganizer
. Because packageOrganizer
doesn't belong to Object in P11 but it does in ClassDescription
It's also another possibility.
If there are more cases you can check my PharoBackwardCompatibility project and I can add more API to it.
The idea is to add in older Pharo versions, API from newer versions. Like this, we can use the new API without worrying that older versions will not know them.
The cause of the remaining 2 failing tests are what is reported in #433
Errors from CI: