You cannot post messages because only members can post, and you are not currently a member.
Description:
Discussions of the Ruby programming language, for folks near St. Louis, MO. We also cover a lot of Ruby on Rails topics.
We meet the 2nd Monday of the month, 6-8 pm, at 1350 Timberlake Manor, 3rd floor, 63017. Many of us go to dinner afterwards, for more open discussions and networking.
|
|
|
negate grep
|
| |
Hello all,
I'm looking for the equivalent of 'grep -v' in ruby. For example,
let's say I have the following array:
a=%w(foo bar bat)
I can grep for those items that have an /b/ with this:
irb(main):016:0> a.grep(/b/)
=> ["bar", "bat"]
I would like to be able to grep by specifying a negative, such as,... more »
|
|
What is gemcutter and jeweler?
|
| |
Hi,
I wanted to try the excellent backtracer gem [1] and had to install
jeweler first [2],[4]. I got of lot of other dependencies, like for
gemcutter, etc. What is all this? I think it has something to do with
git, rubyforge and publishing your own gems. [3] Are people moving to
this from rubyforge/github? Can you do the jeweler/gemcutter tumble... more »
|
|
rdoc info Was: Re: [stlruby] rush, the ruby shell
|
| |
Hi,
I wanted to play with rush too, but something has been bothering me
for a while. Gems install ri and rdoc files. With all the systems I'm
running, finding these has been a chore. Fortunately the 'gem
environment' command comes to the rescue.
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.5... more »
|
|
string example in perl, python, and ruby
|
| |
Hello all, I'm showing some examples to some colleagues of the differences in how perl, python, and ruby do string manipulation. Are the examples below a fair representation of writing clearly in each of the languages or could they be written more clearly? Regards, - Robert ----- ...perl -le ' print "Hello, World" ;... more »
|
|
stlruby.org website
|
| |
Hi, my name is Thomaz and I am a not-so-active STL Rubyist. I was
wondering who is the owner of the struby.org domain, because I would
like to participate in the development of a web application for the
community just like the way they do at San Diego (sdruby.org), Boston
(bostonrb.org) and Chicago (chicagoruby.org).... more »
|
|
preventing irb exiting out on errors
|
| |
Is there a way to prevent irb from exiting whenever I mess up a SQL statement? For example, if I do a query and misspell foobar as foober: irb(main):007:0> require 'sqlite3' => false irb(main):008:0> db = SQLite3::Database.new("test.db ") => #<SQLite3::Database:0xb7b28e34 @driver=#<SQLite3::Driver::Nat ive::Driver:0xb7b28d94 @trace={},... more »
|
|
sqlite3 + ruby: using prepare and "in"
|
| |
How can I quote a list of items to be used in a SQL where ... in clause to be used in a prepare method? I would very much like to to create an arbitrary-length list and then send the list to the prepared sql statement in an execute method. However, what I have tried is not working. Here's a section from an... more »
|
|
errors when using query and prepare methods for sqlite3
|
| |
Hello all, I'm trying to prepare a sql statement to send to sqlite3 via ruby and am getting errors when using the query and prepare methods. Here's my code: ...require 'sqlite3' db = SQLite3::Database.new( "test.db" ) ...sql = <<-eof CREATE TABLE foobar (foo text, bar int); INSERT INTO "foobar" VALUES('hello',1);... more »
|
|
|