Difference between revisions of "Ruby"

From BarikWiki
Jump to: navigation, search
(Fun (Frustrating?) Stuff)
Line 11: Line 11:
 
* [http://docs.rubygems.org/ RubyGems Manuals]. See the [http://docs.rubygems.org/read/book/1 User's Guide], particularly Chapter 3.
 
* [http://docs.rubygems.org/ RubyGems Manuals]. See the [http://docs.rubygems.org/read/book/1 User's Guide], particularly Chapter 3.
 
* Try Ruby. No really, [http://tryruby.org/ tryruby].
 
* Try Ruby. No really, [http://tryruby.org/ tryruby].
 +
 +
== Testing ==
  
 
Too many testing frameworks (what's the testing framework of the day, these days), including: [http://relishapp.com/rspec RSpec], [http://cukes.info/ Cucumber], [http://test-unit.rubyforge.org/ Test/Unit] (go directly to list of [http://test-unit.rubyforge.org/test-unit/en/Test/Unit/Assertions.html Assertions]), Test/Spec and [http://thoughtbot.com/community/ Shoulda].
 
Too many testing frameworks (what's the testing framework of the day, these days), including: [http://relishapp.com/rspec RSpec], [http://cukes.info/ Cucumber], [http://test-unit.rubyforge.org/ Test/Unit] (go directly to list of [http://test-unit.rubyforge.org/test-unit/en/Test/Unit/Assertions.html Assertions]), Test/Spec and [http://thoughtbot.com/community/ Shoulda].

Revision as of 01:25, 16 September 2011

Lecture-Specific

Introduction

  • Ruby Homepage. For Windows installations, see RubyInstaller. I find that Rails Installer lags behind this, so I don't use it.
  • Ruby Doc.
  • Ruby development in Windows is doable, but I don't think it's a friendly environment. See Ruby in Twenty Minutes for a refresher.
  • If you want debugging support in Windows, such as in RubyMine or Eclipse, you'll also need DevKit to compile. Documentation. Under Step 5: Test Installation, replace the call for rubygems with ruby under 1.9.2.
  • RubyGems Manuals. See the User's Guide, particularly Chapter 3.
  • Try Ruby. No really, tryruby.

Testing

Too many testing frameworks (what's the testing framework of the day, these days), including: RSpec, Cucumber, Test/Unit (go directly to list of Assertions), Test/Spec and Shoulda.

Gems

Update the system itself (especially if using RubyMine and Ruby 1.9.2):

 gem update --system

See the RubyGems Manuals. Gem installation without RubyDoc:

 gem --no-ri --no-rdoc

If you've already installed ri and rdoc

 rm -r `gem env gemdir`/doc

Or to make option default, you can edit your gemrc file (StackOverflow). On Windows 7, this is C:\ProgramData\gemrc. Add gem: --no-ri --no-rdoc.

Obligatory reference to GnuWin. See Chapter 3 for Gem deployment.

RubyMine

Deployment

  • Heroku DevCenter.
  • It seems that you'll need to learn Git. And I just learned Subversion. Git for Windows isn't nearly as mature as the other platforms, unfortunately (preview), so use the portable version for now until it matures.
  • Heroku, the Ruby Cloud as a Platform Service. Their quick start guide requires that you know both Ruby and Git.

Rails

Books

There are a few good books on Ruby:

Fun (Frustrating?) Stuff