On 16 Sep 2015, at 16:39, roberto.minelli@usi.ch wrote:
Dear all,
I have a question about the ConfigurationOf my project, and I really hope you can help.
In my project I have a package called âDevFlow-Extensionsâ that is a âplaceholderâ for code that is dependent on the Pharo version.
On the ConfigurationOf, according to the Pharo version I do something like
spec for: #'pharo3.x' do: [
spec blessing: #baseline. spec repository: 'http://smalltalkhub.com/mc/RobertoMinelli/DevFlow/main'.
spec package: 'DevFlow-Extensions' with: 'DevFlow-Extensions30'. ].
spec for: #'pharo4.x' do: [
spec blessing: #baseline. spec repository: 'http://smalltalkhub.com/mc/RobertoMinelli/DevFlow/main'.
spec package: 'DevFlow-Extensions' with: 'DevFlow-Extensions40'. ].
In this way, in Pharo 3.0 Iâd load DevFlow-Extensions30 and in Pharo 4.0 Iâd load DevFlow-Extensions40. Super cool. I am using a single package (âDevFlow-Extensionsâ) to specify of groups, for example:
spec group: 'User' with: #( 'DevFlow-Meta' ... 'DevFlow-Announcement' 'DevFlow-Extensions').
Now the problem is that for Pharo 5 I have to load both 'DevFlow-Extensions40â and 'DevFlow-Extensions50â. I read the chapter on Metacello, but didnât find a solution. I tried some combinations of #includes: and #requires: but with no luck.
Any help is appreciated, thank you very much!
Roberto
Shouldnât this work? spec package: 'DevFlow-Extensions' with: #('DevFlow-Extensions40â âDevFlow-Extensions50).