exclude package from version

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

exclude package from version

EstebanLM
Hi,

I need to write something like this:

  spec for: #'common' do: [

                ...

                spec
                        group: 'default' with: #('Core' 'Tests' 'Tools') ].
               
        spec for: #'pharo3.x' do: [
                spec
                        group: 'default' with: #('Core' 'Tests') ]

That means, excluding package from an older pharo version… but well, latest example does not works. Any idea how I can do it?
I know I can do the oposite:


  spec for: #'common' do: [
                ...
        ].
               
        spec for: #'pharo3.x' do: [
                spec
                        group: 'default' with: #('Core' 'Tests') ].

        spec for: #(#‘pharo4.x’ #‘pharo5.x’) do: [
                spec
                        group: 'default' with: #('Core' ‘Tests’ ’Tools' ) ]

but it would be cool if there is a way where I do not have to explicit versions for default group.

thanks,
Esteban

--
You received this message because you are subscribed to the Google Groups "Metacello" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: exclude package from version

Dale Henrichs-3
Hey Esteban,

You should be able to do the following:

  spec for: #'common' do: [

                ...

                spec
                        group: 'default' with: #('Core' 'Tests' 'Tools') ].
               
        spec for: #'pharo3.x' do: [
                spec
                        group: 'default' overrides: #('Core' 'Tests') ]

There are additional variants available: #project:overrides: and package:overrides:

In theory, I could add #group:excludes:  if you thought that it would be
useful, but you'd have to wait for the new version of Metacello to
propogate into genral usage before you could use it:)

Dale

On 01/19/2016 08:04 AM, Esteban Lorenzano wrote:

> Hi,
>
> I need to write something like this:
>
>   spec for: #'common' do: [
>
> ...
>
> spec
> group: 'default' with: #('Core' 'Tests' 'Tools') ].
>
> spec for: #'pharo3.x' do: [
> spec
> group: 'default' with: #('Core' 'Tests') ]
>
> That means, excluding package from an older pharo version… but well, latest example does not works. Any idea how I can do it?
> I know I can do the oposite:
>
>
>   spec for: #'common' do: [
> ...
> ].
>
> spec for: #'pharo3.x' do: [
> spec
> group: 'default' with: #('Core' 'Tests') ].
>
> spec for: #(#‘pharo4.x’ #‘pharo5.x’) do: [
> spec
> group: 'default' with: #('Core' ‘Tests’ ’Tools' ) ]
>
> but it would be cool if there is a way where I do not have to explicit versions for default group.
>
> thanks,
> Esteban
>

--
You received this message because you are subscribed to the Google Groups "Metacello" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: exclude package from version

EstebanLM
Hi,

“overrides" is what I was looking for.

thanks!
Esteban

> On 19 Jan 2016, at 20:41, Dale Henrichs <[hidden email]> wrote:
>
> Hey Esteban,
>
> You should be able to do the following:
>
> spec for: #'common' do: [
>
> ...
>
> spec
> group: 'default' with: #('Core' 'Tests' 'Tools') ].
>
> spec for: #'pharo3.x' do: [
> spec
> group: 'default' overrides: #('Core' 'Tests') ]
>
> There are additional variants available: #project:overrides: and package:overrides:
>
> In theory, I could add #group:excludes:  if you thought that it would be useful, but you'd have to wait for the new version of Metacello to propogate into genral usage before you could use it:)
>
> Dale
>
> On 01/19/2016 08:04 AM, Esteban Lorenzano wrote:
>> Hi,
>>
>> I need to write something like this:
>>
>>   spec for: #'common' do: [
>>
>> ...
>>
>> spec
>> group: 'default' with: #('Core' 'Tests' 'Tools') ].
>>
>> spec for: #'pharo3.x' do: [
>> spec
>> group: 'default' with: #('Core' 'Tests') ]
>>
>> That means, excluding package from an older pharo version… but well, latest example does not works. Any idea how I can do it?
>> I know I can do the oposite:
>>
>>
>>   spec for: #'common' do: [
>> ...
>> ].
>>
>> spec for: #'pharo3.x' do: [
>> spec
>> group: 'default' with: #('Core' 'Tests') ].
>>
>> spec for: #(#‘pharo4.x’ #‘pharo5.x’) do: [
>> spec
>> group: 'default' with: #('Core' ‘Tests’ ’Tools' ) ]
>>
>> but it would be cool if there is a way where I do not have to explicit versions for default group.
>>
>> thanks,
>> Esteban
>>
>
> --
> You received this message because you are subscribed to the Google Groups "Metacello" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Metacello" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.