Archive for the 'Ruby' Category

Problems with CC.rb, OS X 10.5, and Subversion

I have been attempting to get CruiseControl.rb 1.3 running on my new Mac with little success and am wondering if other people have been having the same problems. I have two Macs that I am trying this on and neither is working. Both show the same error.

I am able to start CC.rb using ./cruise start and am able to add a project. The problem is when CC.rb goes to do the first build. I keep getting the following error:

BuilderError: svn: PROPFIND request failed on '/svn/trunk/project_name'

If I expand that, the actual problem is with the following:

svn --non-interactive log --limit 1 --revision HEAD:1 --verbose --xml

The important part is the --non-interactive switch. If I remove that and run the command directly from the directory where the project is checked out to, it works fine. I include --non-interactive and it fails.

Both machines use default versions of svn (i.e., whatever came with the computer).

My theory is that the problem lies with OS X’s Keychain program, which is where the credentials are stored for the svn repository. In interactive mode, when svn asks for the username and password, keychain steps in and supplies them. However, in non-interactive mode, these credentials are never supplied because they are not cached properly by Subversion.

My problem is that I am not sure how to test or resolve this. I am somewhat reluctant to install Subversion over top of the currently installed version because I am not sure what I may screw up. However, I am going to continue to investigate this and see if I can’t figure it out.

Has anyone else had this problem and, if so, how did you fix it?

Script for opening Ruby gems in Textmate

The Effectif Development website has posted a very neat trick for opening Ruby gems in Textmate. This is very handing and the cool part is that it includes tab completion for the gems.

Ruby and Upgrading to Leopard

I recently upgraded my mac to OS X 10.5 and had some problems installing the Ruby gem Hpricot. This particular gem is compiled from source when it is installed (on a Mac at least, no idea about Windows or Linux). When I tried to install it, it kept throwing an error and failing. The problem was that I had forgotten to also upgrade Xcode, so it was being compiled with an old copy of gcc.

Sold on Rails

Hi, my name is Chris and I am completely sold on “Ruby on Rails”:http://www.rubyonrails.com. I also love the new book “Agile Web Development with Rails“:http://www.amazon.ca/gp/product/0977616630/ref=pd_rvi_gw_3/701-1977922-1183541. It is an excellent introduction to Rails and one of the best tech/tutorial books I have read in a long time. I am only up to chapter 10, but so far it is excellent. I highly recommend the book to everyone who is trying to learn Rails. Look for a lot more Rails posts from in the future.

I am also working on a top secret Rails project that I hope to unveil this summer. I will also be dropping hints about it as well as the months go by. So stay tuned.

Learning a new programming language

* “Here is a list of 15 programming tasks you can use to learn a new language.”:http://forums.programming-designs.com/viewtopic.php?pid=3482
* “A nice tutorial for learning Ruby”:http://rubylearning.com/

Google powered Ruby search inside Firefox

!http://www.petercooper.co.uk/images/firefoxruby.png!

RubyInside has added a “Google powered Ruby search to their website”:http://www.rubyinside.com/search/. In addition, they have also added the ability to use the search from directly within Firefox. This allows you to “search 23 plus Ruby and Ruby on Rails websites”:http://www.rubyinside.com/new-ruby-inside-tool-google-powered-ruby-search-277.html all from the comfort of your trusty browser. Cool :-)

Yahoo! Ruby Developer Center

I am a little late in posting this, but Yahoo! has created a “Ruby Developer Center”:http://developer.yahoo.com/ruby/.

Next Page »