Search
The Caboteria
/
Tech Web
/
TechNotes
>
ProgrammingNotes
/
RubyNotes
(revision 10) (raw view)
Citrus is a fun parser generator for Ruby. It lets you mix small bits of Ruby code in with your parser grammar. http://mjijackson.com/citrus/ Invoking a method with an ampersand-parameter: http://blog.jayfields.com/2007/01/ruby-invoking-method-with.html Github's style guide: https://github.com/styleguide/ruby ---+ RVM RVM is a nice tool that manages multiple installations of Ruby, JRuby, gems, etc. It's very useful if you're working on both Ruby and JRuby projects. http://rvm.beginrescueend.com/ <br/> Since RVM compiles each version of ruby locally you need to make sure that you've installed the =-dev= packages for the features that you want. Readline, for example: =libreadline-dev= on debian. http://rubyforge.org/tracker/index.php?func=detail&aid=23925&group_id=1900&atid=7436 When you install RVM, run =rvm requirements= and install everything it recommends. You'll probably also need =libpq-dev= (postgresql) and =libcurl-dev= (curl). Debian - when I used RVM on Debian for the first time, I had to use RVM to install copies of zlib and openssl in RVM's tree. For some reason =configure= couldn't see the Debian's versions.<br/> http://rvm.beginrescueend.com/packages/openssl/<br/> http://rvm.beginrescueend.com/packages/zlib/ ---+ Debugging http://bashdb.sourceforge.net/ruby-debug.html - ruby debugger user's guide <br/> http://rubyforge.org/projects/ruby-debug/ - ruby debugger project page You want to run =Debugger.start= as soon as you can (preferably at the top level) so the debugger can capture the full stack frame. ---+ Rails Development https://rails.lighthouseapp.com/projects/8994-ruby-on-rails - this is the "official" Rails bug tracking system. The Rails "trac" site appears to be obsolete although it has powerful Google-fu<br/> http://rubyglasses.blogspot.com/2009/07/rails-gotchas-undefined-method-expects.html - you need to install the =Mocha= gem by hand<br/> Also need to install =sqlite3=, =libsqlite3-dev=, and the =sqlite3-ruby= gem.<br/> =$ cd activerecord && rake test-sqlite3=
Edit
|
Attach
|
P
rint version
|
H
istory
:
r18
|
r12
<
r11
<
r10
<
r9
|
B
acklinks
|
V
iew topic
|
Raw edit
|
More topic actions...
Copyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding The Caboteria?
Send feedback