Thursday 2 May 2013

Ruby environment notes

IDEs


  • Eclipse with ruby DLT currently only supports up to Ruby 1.8 (Quite a big language change in 1.9 so not much good) 
  • RubyMine - excellent, but ~£90 (look out for offers from Jetbrains, they run them regularly) 
  • Aptana Studio - Built on eclipse but full ruby support (or at least 1.9 language support)

Build Tools

  • Rake - (Ruby mAKE). Like ant / make for ruby
    • Look in the 'Rakefile' and see targets defined. (e.g. 'rake test' will often run tests)
  • Gem - repository of compiled modules for ruby
    • See usage 'gem --help'. 
    • gem install <gem name> / gem uninstall <gem name>
  • Bundle - Used to manage dependencies for a project. (Use 'bundle install')
    • Gemfile contains list of repositories and files to use

Testing

  • Rake - Test call minitest / rspec files etc..
  • Minitest - https://github.com/seattlerb/minitest