On the subject of dev.and gh-pages. How can I pull those branches into
On Monday, December 7, 2009, Derick Bailey <derickbai
...@gmail.com> wrote:
> good call on the array syntax, scott - i was never really happy with the 3 or 4 different way i was handling this, and hadn't yet figured out what the best way was... didn't think about the *targets array...
> thanks for getting that updated, ben. i'll get that pulled into my repo soon - will create a new Dev branch to hold on to the new development efforts.
> -derick
> On Sun, Dec 6, 2009 at 6:24 PM, Ben Hall <ben200...@googlemail.com <javascript:_e({}, 'cvml', 'ben200...@googlemail.com');>> wrote:
> After a bit of discussion on twitter, I have updated my fork to
> support this syntax:
> desc "Run a sample build using the MSBuildTask"
> msbuildtask do |msb|
> msb.properties :configuration => :release, :platform => 'Any CPU'
> msb.targets :clean, :build
> msb.solution = "spec/support/TestSolution/TestSolution.sln"
> end
> The ruby code on the other side looks like this:
> def targets(*targets)
> @targets=[targets]
> end
> def properties(properties)
> @properties = properties
> end
> This removes the additional [] from targets, and {} together with =
> from properties
> Comments? :)
> On Sun, Dec 6, 2009 at 11:57 PM, Scott Bellware <sbellw...@gmail.com <javascript:_e({}, 'cvml', 'sbellw...@gmail.com');>> wrote:
>> Doh! Just realized: you should likely receive that arg as a spat (ie:
>> *targets) so that you aren't forced to use array literals in the
>> consumer syntax. The *targets arg will respond as an array.
>> So:
>> msb.targets :clean, :build
>> or, msb.target :build
>> -Scott
>> --
>> You received this message because you are subscribed to the Google Groups "albacoredev" group.
>> To post to this group, send email to albacoredev@googlegroups.com <javascript:_e({}, 'cvml', 'albacoredev@googlegroups.com');>.
>> To unsubscribe from this group, send email to albacoredev+unsubscribe@googlegroups.com.
>> For more options, visit this group at http://groups.google.com/group/albacoredev?hl=en.
> --
> You received this message because you are subscribed to the Google Groups "albacoredev" group.
> To post to this group, send email to albacoredev@googlegroups.com <javascript:_e({}, 'cvml', 'albacoredev@googlegroups.com');>.
> To unsubscribe from this group, send email to albacoredev+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/albacoredev?hl=en.
> --
> - Derick Bailey
> - @derickbailey
> - http://DerickBailey.LosTechies.com
> --
> You received this message because you are subscribed to the Google Groups "albacoredev" group.
> To post to this group, send email to albacoredev@googlegroups.com <javascript:_e({}, 'cvml', 'albacoredev@googlegroups.com');>.
> To unsubscribe from this group, send email to albacoredev+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/albacoredev?hl=en.