Dec 08 2009

How to get Rails 2.3.5 in Debian stable in three easy steps

Category: Railsetd @ 1:20 am

All steps are to be run as root.

Step #1: install RubyGems:
apt-get install rubygems

Step #2: update RubyGems:
gem install rubygems-update --version=1.3.4

Step #3: get Rails 2.3.5:
gem install rails --no-rdoc --no-ri

Popularity: 3% [?]


Mar 27 2009

How to create a dradis export plugin?

Category: Rails, dradisetd @ 3:04 am

Although we presented some of this concepts already in dradis reporting: quick & neat word export, here is the step by step guide to get an export plugin recognised by the dradis framework and ready to use!

Update (2009-04-09): Checkout the new import/export plugin generators at dradis community forums.
Continue reading “How to create a dradis export plugin?”

Popularity: 11% [?]


Mar 23 2009

Use Rails to Create a Static Site: Rake and Subversion

Category: Railsetd @ 12:31 pm

We have already seen how to Use Rails to Create a Static Site. In that article we left the site running, and we recommended the use of wget to generate the static copy. Although this is good enough, with a little bit of Rake we can make deployment easier.

Continue reading “Use Rails to Create a Static Site: Rake and Subversion”

Popularity: 9% [?]


Feb 15 2009

dradis reporting: quick & neat word export

Category: Rails, dradisetd @ 5:55 pm

With over 800 downloads in the first two weeks of dradis v2.0, there is lots of interest on what is going to be next. We are working on solutions for importing and exporting data to and from the repository, but for those of you that can’t wait, we have put together a plug-in for the server that exports your notes to a Word file.

It is not the final solution, and it is not integrated with the web interface, but hopefully it will give you an idea of how easy is to get your own exporting modules for dradis.
Continue reading “dradis reporting: quick & neat word export”

Popularity: 13% [?]


Feb 09 2009

NSIS installer for a Ruby application – Part 3 – A few script improvements

Category: Rails, Ruby, X Windowssiebert @ 12:53 pm

In this part of the series (see Part 1 and Part 2) we will:

  • Make one of the components compulsory to install.
  • We will look at a way to write our script in such a way that it can be reused for future releases of MyApplication.
  • A few extra tips and tricks.

Continue reading “NSIS installer for a Ruby application – Part 3 – A few script improvements”

Popularity: 11% [?]


Feb 09 2009

NSIS installer for a Ruby application – Part 2 – Install Ruby and a gem

Category: Rails, Ruby, X Windowssiebert @ 1:24 am

In Part 1 of this series we had a look at the general structure of a NSIS script as it was created for us by the HM NIS editor and IDE. We previously defined three components to be installed by our installer:

  • Ruby (the target machine that our application is installed on requires Ruby)
  • MyGem (our application is dependent on this fictitious gem)
  • MyApplication (this is our application to be installed)

In this part we will look at how we will let the installer take care of the Ruby and MyGem components.

Continue reading “NSIS installer for a Ruby application – Part 2 – Install Ruby and a gem”

Popularity: 12% [?]


Feb 04 2009

Use Rails to Create a Static Site

Category: Rails, dradisetd @ 2:00 pm

One of the new things we released last week with dradis v2.0 was a new web site for the project (dradis.sourceforge.net).

The old site consisted of 20 static pages or so, which was nice and easy but a real pain to maintain or restructure. So we thought that letting Rails do the heavy lifting for us would be a good idea, but we did not want to set up a Rail environment in the server…

What we finally did is use Rails as a tool to create a static site that we could .tar.gz and upload to the server. As a starting point we used a post in www.chuckvose.com and this is how we completed it to fit our needs.

Follow up (2009-03-23): do not miss how to integrate your rails-static site with Rake and Subversion in the second article of this series: Use Rails to Create a Static Site: Rake and Subversion.

Continue reading “Use Rails to Create a Static Site”

Popularity: 100% [?]

Tags:


Feb 02 2009

NSIS installer for a Ruby application – Part 1 – HM NIS wizard output

Category: Rails, Ruby, X Windowssiebert @ 7:52 pm

I am working on an NSIS (Nullsoft Scriptable Install System) installer for a Ruby application (Dradis – check it out!). In this series I will try to keep log of how I progress with this.

I am using HM NIS editor and IDE for NSIS to make the task a little easier. To get out of the blocks a little quicker I used the HM NIS wizard to create a simple framework from where I will progress.
Continue reading “NSIS installer for a Ruby application – Part 1 – HM NIS wizard output”

Popularity: 15% [?]


Jan 22 2009

Unit testing your Ruby on Rails plugin

Category: Rails, Rubysiebert @ 12:51 pm

So you want to write some tests for your hot new Rails plugin that extends the behaviour of a ActiveRecord model? The thing is – for it to be decent tests it needs to be functional outside of the context of you Rails application, so you need to create a temporary testing environment. I think there is a few ways to this but the following is what I did.
Continue reading “Unit testing your Ruby on Rails plugin”

Popularity: 16% [?]