I'm with you on the portability :). I'd like to see CC.rb running on jruby, cruby 1.9 and (if possible) Iron Ruby. The work Brian's been doing - moving to Rails 2.3 - should go a long way toward making this a reality.

The good news is that I just ran a build of the CC.rb rails-2.3 branch using jruby and all the tests pass. The bad news is that the server fails to start. But it's 3am here so I'm calling it a night.

Thanks!
Sidu.

Paul Gale wrote:

*>That said, if windows users are using something like textpad, does it take care of this for them? * Not sure about TextPad but most decent text editors and IDEs shouldn't have a problem it. I develop Ruby on Windows and use RubyMine where the line ending choice is configurable.

*>How important is this?  It's definitely not free.*
Just out of curiousity, where is the need coming from to convert files into CRLF form in order to zip them? I've not had problems zipping said files on Windows no matter what the line ending type, including files that contained multiple forms.

BTW, one can convert a text file with LF ending to CRLF form by using the following command:

     TYPE input_filename | MORE /E /P > output_filename

*>I feel pity for people trying to use this (or any other Ruby) stuff on Windows :)* Well, from my perspective it would really help if folks wrote portable code. ;) No real reason not to. Using Ruby should not hinder this process. We're using JRuby on Windows. Speaking of portability, I've lost count of the number of times I've seen code that attempts to determine if you're on Unix/Linux by erroneously making the following check: "if RUBY_PLATFORM =~ /mswin/ ..." which when false leads to some Unix specific code being invoked. If you're using JRuby on Windows this check will be false and will cause grief. To be more robust the check see if the the system constant JRUBY_VERSION is defined as well. Checking the RUBY_PLATFORM constant only is insufficient to determine the current OS. I'm rambling...

The file platform.rb in the Cucumber gem is an example of some friendlier constants that one can emulate. It would be nice to see something similar incorporated into cc.rb. Just my two cents.

Thanks,
Paul



2009/6/30 Jeremy Lightsmith <[email protected] <mailto:[email protected]>>
>
> That said, if windows users are using something like textpad, does it take care of this for them? How important is this? It's definitely not free.
>
> Jeremy
>
> On Tue, Jun 30, 2009 at 9:35 AM, Alexey Verkhovsky <[email protected] <mailto:[email protected]>> wrote:
>>
>> On Tue, Jun 30, 2009 at 10:25 AM, C. K. Ponnappa <[email protected] <mailto:[email protected]>> wrote:
>>>
>>> Chad, I'm not sure how to do the CR/LF stuff myself - Alexey, how do we do this?
>>
>> When it was on Subversion, this could be done merely by checking out to Windows PC and packaging the files. Subversion can be told to convert line feeds according to the client platform.
>>
>> With Git, this is out of the question, and the way to do it would be by using some sort of ux2dos linefeed converter, I guess. >> Platform-specific linefeeds are nice to have, as these files can be then opened with Notepad on a minimal install server. I feel pity for people trying to use this (or any other Ruby) stuff on Windows :)
>>
>> --
>> Alexey Verkhovsky
>> http://alex-verkhovsky.blogspot.com/
>> CruiseControl.rb [http://cruisecontrolrb.thoughtworks.com]
>>
>>
>> _______________________________________________
>> Cruisecontrolrb-developers mailing list
>> [email protected] <mailto:[email protected]>
>> http://rubyforge.org/mailman/listinfo/cruisecontrolrb-developers
>>
>
>
>
> --
> Jeremy Lightsmith
> Coaching Teams & Creating Communities
>
> 312-953-1193
> http://onemanswalk.com/ (blog)
> http://facilitationpatterns.org/ (book in progress)
> http://www.linkedin.com/in/jeremylightsmith
>
> _______________________________________________
> Cruisecontrolrb-developers mailing list
> [email protected] <mailto:[email protected]>
> http://rubyforge.org/mailman/listinfo/cruisecontrolrb-developers
>

------------------------------------------------------------------------

_______________________________________________
Cruisecontrolrb-developers mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/cruisecontrolrb-developers
_______________________________________________
Cruisecontrolrb-developers mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/cruisecontrolrb-developers

Reply via email to