[#338014] Sqlite3-ruby ON Windows Vista with 1.9.1p129 mingw32 — "J. D." <jdezenzio@...>
I'm using the ming compiled 1.9.1 p 129 successfully on Vista and I even
J. D. wrote:
Roger Pack wrote:
> 5. Opened up a Command Prompt and typed rake vendor:sqlite3 from
Roger Pack wrote:
I think the issue is actually with :
Found a copy of unzip.exe and placed it in the folder.
[#338029] eval? instance_eval?? hmm — Steve Hull <p.witty@...>
Hey ruby wizards. I got a question for you. I want to call a method on
[#338035] How can I get command's result code, which executing via ssh — Ivan Samonov <hronya@...>
I use net/ssh library.
On 01.06.2009 12:09, Ivan Samonov wrote:
Robert Klemme wrote:
[#338085] Games for Programmers — Daniel Berger <djberg96@...>
Hi everyone,
On Jun 1, 2009, at 1:27 PM, Daniel Berger wrote:
ansferring results to their own "printers".
Daniel Berger wrote:
Daniel Berger wrote:
On 4 Jun 2009, at 22:14, Jeff Moore wrote:
[#338115] My rubygems is completely broken (EOFErrors) — Doug McBride <doug.mcbride@...>
Here's my environment followed by what I'm seeing. I dug into the
[#338131] ruby2c? — Roger Pack <rogerpack2005@...>
I tried to get ruby2c working recently and none of the files in the
[#338135] nfc 1.0.0 Released — Aaron Patterson <aaron@...>
nfc version 1.0.0 has been released!
Aaron Patterson wrote:
On Wed, Jun 03, 2009 at 02:01:45AM +0900, Suraj Kurapati wrote:
Aaron Patterson wrote:
[#338141] <, >, and ranges in a case statement. — Max Williams <toastkid.williams@...>
I feel like this should be simple but i can't figure it out.
Max Williams wrote:
Wow, that's a lot more complicated than i thought. I think for the sake
On Jun 2, 9:32m, Max Williams <toastkid.willi...@gmail.com> wrote:
[#338151] Modules and importing them/their namespace? — Markus Fischer <markus@...>
Hi,
On Tuesday 02 June 2009, Markus Fischer wrote:
[#338155] not to allow previous page — Rajkumar Surabhi <mailtorajuit@...>
hi all
[#338163] Rubygems — "J. D." <jdezenzio@...>
I have a curious question...
On Jun 2, 10:09m, "J. D." <jdezen...@gmail.com> wrote:
[#338174] Failing tests from Mechanize gem — John Maclean <jayeola@...>
Chaps,
[#338181] convert 2D array to cute text table with | pipes ? — Phlip <phlip2005@...>
Ruboids:
[#338182] invoke a event in ruby/tk — Jesus Jesus <jesussalas187@...>
here is the problem.
[#338194] Error While Install Gem — Nabs Kahn <nabusman@...>
I am trying to install Mechanize on a WinXP machine, and I am getting
On Jun 2, 2009, at 12:21, Nabs Kahn wrote:
Eric Hodel wrote:
On Jun 2, 2009, at 15:52, Nabs Kahn wrote:
[#338197] return in iterator in lambda — Benjamin Ter kuile <bterkuile@...>
I want to create a conditional mathematical function as a lambda
On Tue, Jun 2, 2009 at 10:06 PM, Benjamin Ter kuile <bterkuile@gmail.com> wrote:
[#338201] block as string — Louis-Philippe <default@...>
Hi All,
You'll want to check out ruby2ruby:
mmm, I'm looking for a jRuby compatible solution... Ruby2Ruby look like its
Louis-Philippe wrote:
Thanks Brian,
[#338231] Compile Error: ldap.c:424: error: ‘LDAP_OPT_X_TLS_PROTOCOL’ undeclared (first use in this function) — Xeno Campanoli <xeno.campanoli@...>
root@leopard:~/libldap-ruby-0.9.7# make
[#338234] gserver hogging CPU — Scott Cole <wsc@...>
I'm running a server on Mac OS 10.5.7, Ruby 1.8.6, that's almost exactly
[#338252] ZenTest 4.1.0 Released — Ryan Davis <ryand-ruby@...>
[#338263] Module methods — Pito Salas <rps@...>
I am trying to do this:
On Jun 3, 9:54m, Pito Salas <r...@salas.com> wrote:
[#338282] assign the array returned by String.split to a variable — Catsquotl <nope@...>
Hi
[#338286] env change, or iconv library self-mutated??? — Mk 27 <halfcountplus@...>
I have been trying to use iconv to deal with ISO-8559-1 to UTF-8
Hi,
Nobuyoshi Nakada wrote:
Hi,
[#338289] ZenTest 4.1.1 Released — Ryan Davis <ryand-ruby@...>
[#338303] is ruby only usable for pictures not for documents ? — Herman Müller <dgwauss@...>
Hi Ruby-Community,
[#338307] Compiling Ruby 1.9.1 zlib issue on Windows — "J. D." <jdezenzio@...>
Hi everyone,
On Jun 3, 5:33m, "J. D." <jdezen...@gmail.com> wrote:
[#338335] why is require 'rubygems' sometimes needed? — Jason Lillywhite <jason.lillywhite@...>
I noticed that some libraries (such as wx or gnuplot) need to have
Jason Lillywhite wrote:
[#338344] Ruby OS — Sparky Mat <max@...>
I was considering porting the Ruby 1.9 VM to bare metal (something
On Thu, Jun 4, 2009 at 3:14 AM, Sparky Mat <max@sparkymat.net> wrote:
On Thu, Jun 4, 2009 at 11:15 PM, Kyle Schmitt <kyleaschmitt@gmail.com>wrote:
[#338345] Ruby Execution — Mike Stephens <rubfor@...>
If you have a script with a lot of classes, does the interpreter read
[#338346] READYSTATE_COMPLETE = 4 — Jerry Lane <lanejer@...>
I am trying to use this but not sure how to implement it. I just want to
[#338353] Nested HTTP params on ruby HTTP requests — Dave Garcia <davebcn@...>
Hi,
Dave Garcia wrote:
[#338386] Can't install sqlite3-ruby gem in Windows — Nova Pon <nova.pon@...>
I'm also having problems installing the sqlite3 gem on Windows. I
[#338391] Deaf Calculus — Luke Kyrchner <lynx557@...>
Hey, I am trying a variation of Deaf Grandma program that takes off of
[#338393] Use methods from a library in my own class — Jason Lillywhite <jason.lillywhite@...>
I want to create a class that uses the RubyGnuplot library that can
[#338401] How to capitalize first word of a string? — Rails List <balaa_uk@...>
I have a string that I would like to capitalize and add bold html tag to
[#338420] Question about exiting from a block — Guoliang Cao <gcao@...>
def test
[#338444] Ruby as a poetic language? — Alberto Santini <santini.alberto@...>
According to google.. yes! -> http://unix-monk.com/pub/Ruby.jpg
He was a poet,
On Fri, Jun 5, 2009 at 4:30 AM, Robert Dober <robert.dober@gmail.com> wrote:
On Fri, Jun 5, 2009 at 2:31 PM, Rick DeNatale<rick.denatale@gmail.com> wrote:
[#338449] Time slowly out of sync? — David Westerink <davidakachaos@...>
Hi all!
[#338466] ruby_frame in 1.8 is what in 1.9? — Jason Roelofs <jameskilton@...>
So I have some C++ extension code that nicely uses ruby_frame->orig_func and
Jason Roelofs wrote:
On Sat, Aug 1, 2009 at 10:19 AM, Mark Moseley <mark@fast-software.com>wrote:
Oh, it's just a test for equality. Try what I suggested; it might work.
On Sat, Aug 1, 2009 at 2:43 PM, Mark Moseley <mark@fast-software.com> wrote:
> I will, once I can get this thing built. What is the deal with Ruby
On Mon, Aug 3, 2009 at 8:41 AM, Roger Pack <rogerpack2005@gmail.com> wrote:
[#338469] Problem with cronjob and ruby script — Matthew Lagace <mlagace@...>
Hello,
Matthew Lagace wrote:
Hmm I've tried running with a blank environment and it fails with the
On Fri, Jun 5, 2009 at 8:00 AM, Matthew Lagace<mlagace@rasib.ca> wrote:
Oh I see can you give me an example please?
On Fri, Jun 5, 2009 at 8:36 AM, Matthew Lagace<mlagace@rasib.ca> wrote:
On Fri, Jun 5, 2009 at 11:13 AM, Hassan
On Fri, Jun 5, 2009 at 9:38 AM, Kyle Schmitt<kyleaschmitt@gmail.com> wrote:
Tried everything in here and same problem. What I've noticed though this
On Fri, Jun 5, 2009 at 11:19 AM, Matthew Lagace<mlagace@rasib.ca> wrote:
[#338487] Test array and assign result to variable — Adrian Arlechin <adrian.cinta@...>
I have this example:
[#338490] How to send the email by Ruby script? — Wesley Chen <cjq.999@...>
Hi, Guys,
[#338505] Best way to create a web application from script — Hal Deranek <deranek@...>
Over the past year I've written some testing scripts for the company I
[#338510] Making nil comparable. — Robert Schaaf <ruby-bucket@...>
I have a array of foo objects, each of which contains an array bar
[#338516] Twitter Personalities (#208) — Daniel Moore <yahivin@...>
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Bill Kelly wrote:
Bill,
I will give the Quiz a shot. After all, I will surely learn from it :-)
Wow !! Absolutely great quiz ! :D
So the "personality" is just a random message, perhaps a Clint Eastwood
On Jun 8, 2009, at 1:46 AM, Srijayanth Sridhar wrote:
[#338519] SPAM from Usenet — Eric Hodel <drbrain@...7.net>
It seems the gateway is passing a lot more spam these days.
On Jun 5, 2009, at 4:30 PM, Eric Hodel wrote:
On Jun 5, 2009, at 14:42, James Gray wrote:
On Jun 5, 2009, at 5:13 PM, Eric Hodel wrote:
Yes, there is a bit of spam getting through, but it is not enough to annoy
On Jun 5, 2009, at 7:21 PM, Joshua Collins wrote:
On Jun 5, 2009, at 18:49, James Gray <james@grayproductions.net> wrote:
On Fri, 5 Jun 2009 18:06:30 -0500, trans <transfire@gmail.com> wrote
On Sat, 6 Jun 2009 13:12:12 -0500, Aaron Turner <synfinatic@gmail.com>
[#338542] Can someone explain the difference: Array[] and Array.fetch — Marc Heiler <shevegen@...>
array = ["a","b","c"] # => ["a", "b", "c"]
[#338543] STDIN, OUT, ERR and $stdin, out, err - Differences? — Terry Cooper <terence_cooper@...>
Can anyone explain what's happening here?
Terry Cooper wrote:
On Sun, Jun 7, 2009 at 7:34 PM, Brian Candler <b.candler@pobox.com> wrote:
[#338547] rounding errors? — Pete Hodgson <ruby-forum@...>
:~$ ruby -e "p ((0.29)*100).to_i"
[#338568] Redirect gets to get input from a file insted of from the us — Kga Agk <lord_kga@...>
I have this small program, or something like it as this just bigger:
On Sat, Jun 6, 2009 at 7:57 AM, Kga Agk<lord_kga@yahoo.no> wrote:
[#338587] code organization — Li Chen <chen_li3@...>
Hi all,
[#338622] New to Programming: Value of gets for just "Enter" — Matt Garriott <matt.garriott@...>
Hello,
On Mon, 08 Jun 2009 14:59:31 +0900, 7stud -- wrote:
[#338633] Speaking of pledges for Ruby projects — "Daniel Berger" <djberg96@...>
Hi everyone,
[#338649] adding, multiplying array —
Hi.
[#338659] binaryparse: length in bytes of block definition? — Markus Fischer <markus@...>
Hi,
[#338686] How to sort array ascending, except zero ? — Paganoni <noway@...>
Hello, I need to sort
On Mon, Jun 8, 2009 at 2:10 PM, Paganoni<noway@fakenullvoid.com> wrote:
le 08/06/2009 10:38, Paganoni nous a dit:
Robert Klemme <shortcutter@googlemail.com> wrote:
On 08.06.2009 17:07, andrea wrote:
On 6/8/09, Robert Klemme <shortcutter@googlemail.com> wrote:
[#338747] strip doesn't take a character set? — Xeno Campanoli <xeno.campanoli@...>
I wanna do something like newstr = str.strip(/\D/)
[#338753] rkelly 1.0.1 Released — Aaron Patterson <aaron@...>
I have no idea how this happened, but I'm sure that someone pulling out a
On 8 Jun 2009, at 23:10, Aaron Patterson wrote:
On Mon, Jun 8, 2009 at 4:10 PM, Aaron Patterson
On Jun 9, 2009, at 10:27, Tony Arcieri wrote:
[#338769] Ruby 1.9.x Concurrency — "s.ross" <cwdinfo@...>
Poking through the Apple press releases today, I sat up and took
On Jun 9, 2009, at 1:23 AM, s.ross wrote:
On Tue, Jun 9, 2009 at 9:16 AM, James Gray<james@grayproductions.net> wrote:
On Tue, Jun 9, 2009 at 10:06 AM, Charles Oliver Nutter
On Tue, Jun 9, 2009 at 12:44 PM, Tony Arcieri<tony@medioh.com> wrote:
Thanks for all the answers. I guess the main issue I'm trying to get
[#338776] require_all 1.0.0: A wonderfully simple way to load your code — Tony Arcieri <tony@...>
require_all
> Tired of futzing around with require statements everywhere, littering
[#338784] simple threading — Christoph Jasinski <christoph.jasinski@...>
Hi all,
[#338785] how to write a DSL — Christoph Jasinski <christoph.jasinski@...>
Hi there,
[#338794] "puts"ing an array — Peter Bailey <pbailey@...>
Hi,
[#338797] doing something each second — Christoph Jasinski <christoph.jasinski@...>
Hi,
On Tue, Jun 9, 2009 at 7:59 AM, Christoph
On 9 Jun 2009, at 17:13, Charles Oliver Nutter wrote:
[#338806] Can't install racc — Rod Dik <roddiku@...>
Hello, I'm trying to install the mechanize gem on ruby 1.8.6, and it
[#338814] Find out the name of a user, on a given file/dir/symlink? — Marc Heiler <shevegen@...>
Right now I use this:
[#338848] Gettin an input from user on html — Adam Lee <mr.flow3r@...>
Hello everyone, I am writing a small ruby script that lists all the
[#338872] Ruby 1.8.7-p173 released — Urabe Shyouhei <shyouhei@...>
Hello all. This is a security fix for ruby 1.8.7.
FYI, there is a bug in BigDecimal#to_f with this release.
On Wed, Jun 10, 2009 at 2:38 PM, Barry Hess<barry@bjhess.com> wrote:
[#338875] centos and ruby 1.9.1 - possible? — "Älphä Blüë" <jdezenzio@...>
I hate even typing the question but my vps template has centos
底phBl鵫 wrote:
James Britt wrote:
2009/6/10 Älphä Blüë <jdezenzio@gmail.com>:
底phBl鵫 wrote:
James Britt wrote:
[#338877] Getting user input from user on a webpage? — Adam Lee <mr.flow3r@...>
Hello, I was wondering if there is a way for a ruby script to get a user
When you saying "it's running a web server", what caused it to run?
[#338880] Writing a Y-Combinator in Ruby 1.9 — Lui Core <usurffx@...>
i've read
[#338888] Sqlite3 on Ruby — Francisco Colina <franco.collina@...>
Hello I'm trying to install gem sqlite 3 and I'm getting this error:
[#338890] Ruby 1.8.6-pl369 released — Kirk Haines <wyhaines@...>
We have released Ruby 1.8.6-pl369. This is primarily a security release.
On Wed, Jun 10, 2009 at 12:14 AM, Kirk Haines<wyhaines@gmail.com> wrote:
Charles Oliver Nutter wrote:
On Wed, Jun 10, 2009 at 11:24 AM, Urabe Shyouhei<shyouhei@ruby-lang.org> wrote:
Hi,
On Wed, Jun 10, 2009 at 11:34 AM, Yukihiro Matsumoto<matz@ruby-lang.org> wrote:
Hi,
On 10/06/2009, Yukihiro Matsumoto <matz@ruby-lang.org> wrote:
[#338891] rubyforge site down? — Heesob Park <phasis@...>
http://downforeveryoneorjustme.com/rubyforge.org
[#338894] Any plans for a Ruby 1.9.1 One-Click Installer? — Benjamin L. Russell <DekuDekuplex@...>
Are there any plans for a Ruby 1.9.1 One-Click Installer for Windows?
> Are there any plans for a Ruby 1.9.1 One-Click Installer for Windows?
On Wed, Jun 10, 2009 at 6:35 AM, Roger Pack<rogerpack2005@gmail.com> wrote:
[#338897] inheriting socket in child process on Windows — knutaf@...
Hello, list
[#338917] The cover of "The Well-Grounded Rubyist" — "David A. Black" <dblack@...>
Hi all --
[#338930] Match data variables — Lars Christensen <larschbelunktumdk@...>
I understand that $~ and its friends ($&, $1, ...) are method local, but:
[#338956] Rdoc does not document UTF-8 files? — Marvin Gülker <sutniuq@...>
Hi,
[#338972] ruby-talk best practices — James Britt <james.britt@...>
A bit of self-promotion, but this is a discussion worth having for this
[#338977] Is there a decent canonical way to get total days in a month from say Time class? — Xeno Campanoli <xeno.campanoli@...>
I suppose I could flip through local until I generate an exception, but somehow
Xeno Campanoli wrote:
[#339000] Ruby-Watit — Uthpala Dissanayake <uthpala2002@...>
Hi,
Uthpala Dissanayake wrote:
[#339003] Problems getting Tk running — Jens Riedel <JensRie@...>
Hi,
[#339011] SQLite3 passing row data from 1 class to another — Dave Lilley <dglnz2@...>
I have code in one class that runs an SQL statement against a SQLite3
You need to read the error message! It's very clear what it is telling
many thanks Brian must have been tried lastnight,
[#339014] publically accessible fastri — Roger Pack <rogerpack2005@...>
I have been thinking recently that I wish I could access ri data for
If you're just looking for core docs, check out http://www.ruby-doc.org/.
James Herdman wrote:
On Jun 11, 2009, at 09:17, Roger Pack wrote:
[#339017] ri for gems working? — Roger Pack <rogerpack2005@...>
For some reason I've never had success with ri + gems
James Herdman <james.herdman@gmail.com> wrote:
Matt Neuburg wrote:
On Fri, Jun 12, 2009 at 7:32 AM, Tom Cloyd<tomcloyd@comcast.net> wrote:
[#339023] RIP RAA — Trans <transfire@...>
Looks like the RAA is "not only merely dead. She's really most
[#339033] Idiomatic way to detect first/last iteration? — Kendall Gifford <zettabyte@...>
Hi there, is there any recognized ruby idiomatic way for detecting
On Thu, Jun 11, 2009 at 9:43 AM, Kendall Gifford <zettabyte@gmail.com>wrote:
I expect there's a better way to do this, but as a quick dash-off....
[#339039] Faster CSV,need help with logic — Nick Barba <nickbarba@...>
I'm having a tough time figuring out how to go about solving a specific
[#339058] rendering html on pdf — twittwit <ytbryan@...>
Hi all,
[#339086] How to set $_ in a method? — Heesob Park <phasis@...>
Hi all,
[#339090] Serial Port Control with Ruby — Sathish Babu <ysathishbabu@...>
Hi All,
C:\Documents and Settings\s_babu\Desktop\ru\
[#339099] wrapping a C struct[] constant — Martin DeMello <martindemello@...>
I have some C code with a struct definition
Martin DeMello wrote:
On Fri, Jun 12, 2009 at 7:42 AM, Eero Saynatkari <ruby-ml@kittensoft.org>wrote:
On Fri, Jun 12, 2009 at 7:01 PM, Jason Roelofs<jameskilton@gmail.com> wrote:
Martin DeMello wrote:
On Sat, Jun 13, 2009 at 2:52 AM, Joel VanderWerf<vjoel@path.berkeley.edu> wrote:
On Mon, Jun 15, 2009 at 5:13 AM, Martin DeMello <martindemello@gmail.com>wrote:
[#339104] parsing word document — Anandh Kumar <anandhthiyagarajan@...>
Hi friends
[#339112] Rails, WEBrick, refresh issue — Janos Sebok <sebi79@...>
This list may not be the perfect choice to ask this question, but I have
[#339117] WIN32OLE type binding — Bruno Le hyaric <bruno.lehyaric@...>
Hi,
[#339136] Good books on TDD — Rasmus Nielsen <rasmusrnielsen@...>
Generally, I really love reading books. I love reading *good* books even
[#339146] Matrix Rotator (#209) — Daniel Moore <yahivin@...>
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Hope this isn't too early, but I may be offline for a couple of days,
Spoiler
On Sun, Jun 14, 2009 at 12:04 PM, Robert Dober<robert.dober@gmail.com> wrote:
On Mon, Jun 15, 2009 at 2:52 AM, Todd Benson<caduceass@gmail.com> wrote:
2009/6/12 Daniel Moore <yahivin@gmail.com>:
On Fri, Jun 12, 2009 at 11:06 AM, <brabuhr@gmail.com> wrote:
[#339149] Remove double backslash in string "c:\\test" — Peter Tosh <nlib1@...>
Hi,
Peter Tosh wrote:
[#339163] Connecting to MS SQL Server 2000 — jackster the jackle <johnsheahan@...>
I need to be able to querry the database on a Microsoft SQL Server 2000
[#339165] Noob, html trees & parsing — Michael Lesser <exceptions@...>
Hi all.
[#339176] win32-service Segmentation fault — Dan Daniels <sdsurfgeek@...>
[#339177] Qt problems — Damjan Rems <d_rems@...>
require 'Qt4'
[#339178] markup_validity 1.0.0 Released — Aaron Patterson <aaron@...>
markup_validity version 1.0.0 has been released!
[#339190] pr-zlib 1.0.0 - A Pure Ruby zlib library — "Daniel Berger" <djberg96@...>
Hi all,
[#339207] "10,000" -> 10000 — Phlip <phlip2005@...>
Rubies:
[#339211] Segfault when requiring both mysql and mechanize — Rod Dik <roddiku@...>
Hello, there's a simple script
I am having the same problem in 1.9 however I don't use mechanize. My
[#339221] How to daemonize a Ruby program — Iñaki Baz Castillo <ibc@...>
Hi, I've coded a Ruby server listening in TCP and UDP. For TCP I use GServer
[#339239] Re: It always display error message when I run the exe which is created by ocra. — Wesley Chen <cjq.999@...>
Hi, All,
[#339240] C extension: VALUEs being collected too early — eden li <eden.li@...>
I'm writing a C extension which passes around structs that refer to
[#339241] Basic help about "require" — Raveendran Perumalsamy <jazzezravi@...>
[#339248] Stepping Through Ruby — Mike Stephens <rubfor@...>
In VBA you can step through the code and at any point examine all the
[#339260] each by arity — Trans <transfire@...>
I've always wondered, why?
Trans wrote:
On Sun, Jun 14, 2009 at 1:37 PM, Joel VanderWerf <vjoel@path.berkeley.edu>wrote:
On Jun 14, 3:32m, Tony Arcieri <t...@medioh.com> wrote:
On Sun, Jun 14, 2009 at 11:22 PM, trans <transfire@gmail.com> wrote:
On 15.06.2009 20:17, Yossef Mendelssohn wrote:
On Tue, Jun 16, 2009 at 12:33 PM, trans<transfire@gmail.com> wrote:
On Wed, Jun 17, 2009 at 6:49 AM, trans<transfire@gmail.com> wrote:
[#339281] How does gem know to create an executable — Raj Singh <neeraj.jsr@...>
I installed gem called gembox and am loving it.
[#339285] performance questions — Jun Young Kim <jykim@...>
Hi, all.
Those of us of a certain age grew up hearing the oversimplification
On Mon, Jun 15, 2009 at 7:54 AM, Peter Booth<pbooth@nocoincidences.com> wrote:
On 3 Jul 2009, at 23:03, Charles Oliver Nutter wrote:
[#339288] list methods only for specific class — Le Sa <lescoutinhovr@...>
hello folks!
On 15.06.2009 07:38, Le Sa wrote:
I would like to list ms1 and ms2, but thanks for the help!
On Mon, Jun 15, 2009 at 10:27 AM, Le Sa <lescoutinhovr@gmail.com> wrote:
[#339290] Next Step — JSU <juslander@...>
Would like to know if someone can recommend a site or book for someone
JSU wrote:
But, unfortunately, no way of seeing the submitted solutions. Of
On Mon, Jun 15, 2009 at 2:18 PM, Robert Schaaf<ruby-bucket@comcast.net> wrote:
[#339304] formatting a listing — George George <george.githinji@...>
i have a listing which looks like this
George George <george.githinji@gmail.com> writes:
George George wrote:
Brian Candler wrote:
George George wrote:
[#339330] confusion about object method scoping — Christopher Carver <ccarver0@...>
Hello,
On 15.06.2009 18:31, Christopher Carver wrote:
[#339349] ActiveSupport "is not missing constant" errors — Tony Arcieri <tony@...>
I've gone spelunking through ActiveRecord's dependencies.rb until my eyes
*tumbleweeds*
On Wed, Jun 17, 2009 at 11:54 PM, Tony Arcieri <tony@medioh.com> wrote:
[#339354] irb save-history not working — Julien Palmas <julien.palmas@...>
Hi,
Julien Palmas wrote:
[#339361] Hoe is complaining about the README.markdown file — Raj Singh <neeraj.jsr@...>
I have released a gem on github.
[#339395] Ruby feasibility? — Dave Kubasiak <davekub@...>
Good morning,
Dave Kubasiak <davekub@hotmail.com> writes:
[#339404] shebang! on Leopard — "Paul M." <paul.maxfield007@...>
Hey everyone,
Sandor Szücs wrote:
On Tue, Jun 16, 2009 at 8:00 AM, Paul M. <paul.maxfield007@gmail.com> wrote:
Hassan Schroeder wrote:
On Tue, Jun 16, 2009 at 8:28 AM, Paul M. <paul.maxfield007@gmail.com> wrote:
[#339416] Extracting and inserting a "column" from/into an array — Chauk-Mean Proum <chauk.mean@...>
Hi,
[#339418] separate a string of values into an array - noob — Mmcolli00 Mom <mmc_collins@...>
Hi. I am don't understand how to separate my string of filenames into an
[#339425] Which is more expensive Rename or Move? — Mrmaster Mrmaster <mrsolarlife@...>
Hello,
Assuming it's on the same filesystem, and you're using a real
Kyle Schmitt wrote:
Because moving and renaming files consist of the same operations.
Kyle Schmitt wrote:
[#339434] rubygems plugin wish: auto installer — Roger Pack <rogerpack2005@...>
mostly for rmagick, I wish there were a rubygems plugin that would
[#339457] reading large file in chunks: optimal chunk size? — bwv549 <jtprince@...>
I'm reading a large file (too big to fit in memory) and doing a
[#339490] Miller窶迭abin primality test — Ftf 3k3 <ftf3k3@...>
I tried to follow the instructions here:
On Wed, Jun 17, 2009 at 1:57 PM, Ftf 3k3 <ftf3k3@gmail.com> wrote:
[#339492] launch external program — Andrey Demidov <andrey.demidov@...>
Hi all,
system("command")
Hi,
[#339504] how to “click” on the screen at scheduled time with Ruby? — Jian Lin <blueskybreeze@...>
Using Ruby, can I write a program, probably calling Win32 API, to
[#339507] private method - Fixnum (NoMethodError) — salai <sayakyi@...>
Dear All,
[#339513] String += vs << — Joshua Ball <chezball@...>
A friend recently sent me this article:
that's a nice article about some real-world benchmarking. I wish
On Wed, Jun 17, 2009 at 7:29 PM, pat eyler<pat.eyler@gmail.com> wrote:
On Thu, Jun 18, 2009 at 10:07 AM, Robert Dober<robert.dober@gmail.com> wrote:
> Ruby1.9 has enough memory on my machine to be that fast
[#339535] new-b question — David Newton <info@...>
Hello all,
On Wed, Jun 17, 2009 at 3:33 PM, David Newton
thanks very much for the replies,
On Thu, Jun 18, 2009 at 1:23 AM, David Newton
John W Higgins wrote:
On Thu, Jun 18, 2009 at 4:24 PM, David Newton
[#339540] Deleted unwanted characters from a string — Juo Hundred <juo100@...>
Hi :)
Juo Hundred <juo100@mac.com> wrote:
[#339544] I need help learning Ruby; completely lost! — Kaleb Mccamish <kalebmcc@...>
I need help. I need to learn some basics of programming, and was turned
Thanks Mr(s?). Gilcher! Adding "gets" to the end does the trick!
[#339546] enterprise 1.0.0 Released — Aaron Patterson <aaron@...>
enterprise version 1.0.0 has been released!
[#339578] The Ruby Script Context — Mike Stephens <rubfor@...>
When you enter a script, am I right in thinking that automatically an
On Thu, Jun 18, 2009 at 1:47 PM, Mike Stephens <rubfor@recitel.net> wrote:
[#339594] Mark GPS coordinates on image file — Florian Weingarten <usenet@...>
Hey everybody,
[#339613] How to capture the output of a call to Kernel.system — Wes Gamble <weyus@...>
I suspect that this is an extremely simple question to answer.
[#339626] need a hash/iteration tutorial...text reading. — Steven Demonnin <tooltime@...>
I have been working my way through a ruby book (Beginning Ruby) and I
Steven Demonnin <tooltime@uncletoby.net> wrote:
[#339643] create a new excel file — Vetrivel Vetrivel <vetrivel.bksys@...>
How to create a new excel file in ruby with examples .
[#339649] Issue with multi threading — Rajeswar reddy Gaulla <rajeswarr@...>
1 require 'net/ssh'
[#339665] hash of hash? — Jeroen Lodewijks <ruby-forum@...>
hi,
[#339678] New version of the ibm_db gem is now available — Praveen <praveendevarao@...>
Hi All,
[#339680] Capturing System Call Return Values? — Tyler Knappe <tyler.knappe@...>
I'm attempting to use Ruby to make system calls (in this case python
Tyler Knappe wrote:
Roger Pack wrote:
On 19.06.2009 20:52, Tyler Knappe wrote:
> Anyone have any insight into this?
> I've found a work around by splitting the returned string using
[#339691] Ruby like Php — Giuseppe Caruso <giuseppe@...>
Hi, I am studying Ruby for web development and I was guessing if there
On Fri, Jun 19, 2009 at 1:54 PM, Giuseppe Caruso <giuseppe@bonsai-studio.net
[#339723] Can't use gems — Rod Dik <roddiku@...>
Hello, I have the following ruby config on my winxp sp3 box
[#339734] 'move into' a module's namespace in irb — Max Williams <toastkid.williams@...>
I'm in an irb session where i have a lot of modules loaded. All of the
Hi --
Hi David
Hi --
aha...i was just playing with this in irb and found something puzzling -
Hi --
David A. Black wrote:
[#339747] Rip — "Älphä Blüë" <jdezenzio@...>
I just read an article called Rip:
[#339748] replacing repetition of characters in string — David Rio <driodeiros@...>
Hi there,
[#339752] Problem for load github homepage — Bruno Moura <brunormoura@...>
Hi.
[#339757] regular expression gurus--help! — timr <timrandg@...>
I want all possible three letter sets for a string. Scan does this:
On Jun 21, 4:08m, Harry Kakueki <list.p...@gmail.com> wrote:
Am Sonntag 21 Juni 2009 09:10:37 schrieb timr:
[#339774] > Ruby is the #1 most popular language on GitHub. — Marc Heiler <shevegen@...>
Need anything be said more? :)
On Jun 21, 2009, at 7:41, Marc Heiler <shevegen@linuxmail.org> wrote:
Eric Hodel wrote:
> Maybe python users have their own preferred ways of sharing code?
[#339776] if column header contain regexp, delete column — Paul Shapiro <fightoplankton@...>
I need to see if a csv column header matches a pattern (see columns 2/3
On Jun 21, 2009, at 10:54 AM, Paul Shapiro wrote:
James Gray wrote:
On Jun 21, 2009, at 3:15 PM, Paul Shapiro wrote:
James Gray wrote:
On Jun 21, 2009, at 9:14 PM, Paul Shapiro wrote:
>:s31_which_best_describes_how_you_answered_the_online_reading_comprehension_quiz
[#339782] Product Class — Zorigami <zorigami@...>
Does anyone out there have a good "Product" Class?(With defs such as
[#339786] Product Class #2 — Zorigami <zorigami@...>
I was wondering if anyone had any ideas on how I could make the following
[#339805] ruby suggestion:do_not_reverse_lookup = true as default — Roger Pack <rogerpack2005@...>
Currently ruby socket code defaults to always doing a reverse DNS lookup
[#339809] ruby suggestion: officially sanctioned tutorials/howto's — Roger Pack <rogerpack2005@...>
Current situation:
On Jun 22, 2009, at 7:10 AM, Roger Pack wrote:
James Gray wrote:
On Mon, Jun 22, 2009 at 6:50 PM, Joel VanderWerf<vjoel@path.berkeley.edu> wrote:
On 23.06.2009 01:20, Robert Dober wrote:
On Tue, Jun 23, 2009 at 11:30 PM, Robert
>> Having said that it is probably a good idea to include tutorials in the
On 24.06.2009 00:00, Roger Pack wrote:
On Wed, Jun 24, 2009 at 7:40 AM, Robert
>>>> What'u think?
> There is somewhat of a wiki:
> One way to attempt to not "mix them in together" might be to create the
On 01.07.2009 14:07, Roger Pack wrote:
[#339821] Some confusion on self and the like.... — Alexander Trauzzi <atrauzzi@...>
Hello all,
Hi --
On 22.06.2009 18:46, David A. Black wrote:
Robert Klemme wrote:
[#339834] map shall not return an Enumerator ( was re guru help ) — Robert Dober <robert.dober@...>
On Mon, Jun 22, 2009 at 2:52 PM, Brian Candler<b.candler@pobox.com> wrote:
Robert Dober wrote:
On Mon, Jun 22, 2009 at 9:36 PM, Brian Candler<b.candler@pobox.com> wrote:
Hi --
On Tue, Jun 23, 2009 at 3:32 AM, David A. Black<dblack@rubypal.com> wrote:
Hi --
[#339867] how to extract domain name without sub domain from url — Chem Leakhina <chem.leakhina@...>
Hi everyone,
[#339870] Threads + Forks in Ruby 1.9.1p129 — Lee Hinman <matthew.hinman@...>
Hey All,
Lee Hinman wrote:
On Tue, Jun 23, 2009 at 10:14 AM, Roger Pack <rogerpack2005@gmail.com> wrote:
[#339871] Execute Ruby script over HTTP protocol as Java Script — Speed Knownas <karthick1983@...>
Hi All,
Speed Knownas wrote:
Hi Mike,
I'll start the ball rolling by suggesting you don't try and run Ruby but
Thank you Mike ...
On Tue, Jun 23, 2009 at 8:19 AM, Speed Alert <karthick1983@gmail.com> wrote:
Hi Alex,
[#339873] Multibyte and Gems — Martin Hess <martinhess@...>
I've tracked down a problem with a Gem I am trying to use. It turns
[#339904] Is it the ruby way to implement #downto — Li Chen <chen_li3@...>
Hi all,
[#339907] HTML dom — Victor Tanvuia <victor.tanvuia@...>
Hi,
[#339931] centralized rubygems rdocs site — Roger Pack <rogerpack2005@...>
I am pleased to announce the release of my site that has the rdocs for
[#339971] But wait! There's more!!! Just 3 easy payments of eleventy dollars! pew pew pew! — Ryan Davis <ryand-ruby@...>
dinner break is over... back to the "grind"!
On Tue, 23 Jun 2009 21:30:43 -0500, Ryan Davis
On 24 Jun 2009, at 13:05, Benjamin L. Russell wrote:
[#339982] THREE HUNDRED! — Ryan Davis <ryand-ruby@...>
I just finished my release flood and we cracked release #300!
Ryan Davis wrote:
Xeno Campanoli wrote:
On Tue, Jun 23, 2009 at 8:29 PM, Ryan Davis<ryand-ruby@zenspider.com> wrote:
> I fear change. Could you please stop improving your software and just
On Tue, Jun 23, 2009 at 11:19 PM, lith <minilith@gmail.com> wrote:
2009/6/24 Tony Arcieri <tony@medioh.com>:
On Wed, Jun 24, 2009 at 11:17 AM, Michal Suchanek<hramrach@centrum.cz> wrote:
On Jun 24, 2009, at 4:29 AM, Robert Dober wrote:
On 24 Jun 2009, at 13:50, James Gray wrote:
> ...and the other 15 releases I did today? they're announced to your
[#339993] gem libray name conflict problem — Heesob Park <phasis@...>
Hi all,
[#340007] How to connect to SpatiaLite, a spatial enabled sqlite3 db? — Jan Martin <janmartin3@...>
Hi all,
On Jun 23, 2009, at 23:18, Jan Martin wrote:
I gave it a try.
Don't top post.
[#340017] Ruby 1.9.1, HTTP and Encodings — Hannes Wyss <hannes.wyss@...>
Hi All
[#340022] Time for a ruby-announce list? — Trans <transfire@...>
We are seeing a lot or release announcements among the regular posts
On Wed, Jun 24, 2009 at 2:36 PM, Trans<transfire@gmail.com> wrote:
Trans wrote:
On Wed, Jun 24, 2009 at 5:06 AM, Trans<transfire@gmail.com> wrote:
On Wed, Jun 24, 2009 at 9:02 AM, Gregory Brown<gregory.t.brown@gmail.com> wrote:
> We are seeing a lot or release announcements among the regular posts
Roger Pack wrote:
On Jun 24, 11:44m, Roger Pack <rogerpack2...@gmail.com> wrote:
On Wed, Jun 24, 2009 at 9:21 PM, Yossef Mendelssohn<ymendel@pobox.com> wrote:
On Wed, Jun 24, 2009 at 4:06 PM, Robert Dober<robert.dober@gmail.com> wrote:
[#340044] RubyWeekend #3 Game Contest: June 26-28 — John Croisant <jacius@...>
After being on hiatus for nearly a year, the RubyWeekend game creation
On Jun 24, 2009, at 5:14 AM, John Croisant wrote:
On Wed, Jun 24, 2009 at 2:53 PM, James Gray<james@grayproductions.net> wrote:
[#340061] Noob question on strings — Fredrik Ludvigsen <fludvigsen@...>
Would anyone care to explain what happens when the following is
Fredrik Ludvigsen wrote:
[#340084] "How to find a job that makes you over 300K in software development" — Dmitri Khanine <dk@...>
Attention Developers
[#340090] How do I get an integer from an array? — Peter Bailey <pbailey@...>
Hi,
> 1.upto(pages.length) do |n|
On Wed, Jun 24, 2009 at 12:57 PM, Roger Pack <rogerpack2005@gmail.com>wrote:
Yes, if it do pages.to_s, I get [["78"]].
Peter Bailey wrote:
Roger Pack wrote:
On Wed, Jun 24, 2009 at 2:18 PM, Peter Bailey <pbailey@bna.com> wrote:
Alex wrote:
[#340134] smtp_tls 1.0.1 Released — Eric Hodel <drbrain@...7.net>
smtp_tls version 1.0.1 has been released!
On Jun 25, 2009, at 06:20, Andrey Demidov wrote:
On Sep 2, 2009, at 12:24, Marcelo David wrote:
[#340148] regex that works on rubular.com but not in my program — Andreas Hansen <hansenandr@...>
hi,
Andreas Hansen wrote:
its the first time me or my friend has worked with regex, my friend have
[#340159] Javascript.new — Haoqi Haoqi <axgle@126.com>
Object.prototype['new']=function(){
Javascript is indeed a fine language - but as you're probably aware,
[#340171] Attr Methods and object setters — Marc Heiler <shevegen@...>
We can do:
On Thu, Jun 25, 2009 at 2:05 PM, Marc Heiler<shevegen@linuxmail.org> wrote:
> This is the pattern I use:
On Fri, Jun 26, 2009 at 4:00 AM, Fabian
See here: http://pastie.org/526403
On Sat, Jun 27, 2009 at 10:42 AM, Fabian
> Though again, do you have a real example of
Gregory Brown wrote:
On Thu, Jun 25, 2009 at 11:29 AM, Ryan Davis<ryand-ruby@zenspider.com> wrote:
[#340177] Ruby Output Problem — Mikem94590 <mike94590@...>
Hello all.
[#340196] utf8 encoding problem — Ad Ad <codetest123@...>
Hi,
[#340200] Is there a way to abandon a gsub if you're using a block? — Wes Gamble <weyus@...>
I am using the form of gsub that takes a block to determine what to
2009/6/25 Wes Gamble <weyus@att.net>:
Robert Klemme wrote:
On 26.06.2009 18:14, Wes Gamble wrote:
Robert,
[#340218] Cool things to say about Ruby — The Rap Show <therapshow@...>
Hi,
[#340223] Simple regex question. — Peter Bailey <pbailey@...>
Hello.
[#340239] Trying to define a 'class' without using 'class' sentence — Fernando Guillen <fguillen.mail@...>
Hi people.. I was watching the Dave Thomas' talk on the ScotlandOnRails
Hi --
Hi,
Fernando Guillen wrote:
J旦rg W Mittag wrote:
On 6/26/09, Fernando Guillen <fguillen.mail@gmail.com> wrote:
Robert Dober wrote:
[#340241] Archiarchitecture Network, need some help! — Diego Bernardes <di3go.bernardes@...>
This is my problem.
[#340256] Passing a method reference and then calling it — Martin Hess <martinhess@...>
How do you pass a method reference and call it on a particular object?
[#340275] Send file to printer — Dimas Cyriaco <dimascyriaco@...>
Hi,
[#340278] Strings to int conversion — Peter Wu <pwu.380@...>
s = "1234" [0..1]
[#340286] Shibuya Rubyists? — Mark T <paradisaeidae@...>
I'm in and around Shibuya for a couple of weeks.
[#340292] question about IO.select — David Miller <dmiller@...>
Hello all
[#340311] Display content depanding on url — Henry Tudor <henry@...>
Hi,
[#340326] Need Advice Help On Parsing A File — Mrmaster Mrmaster <mrsolarlife@...>
Hello,
On 28.06.2009 12:13, Ryan Davis wrote:
[#340337] Looping Problem — Scott Andrechek <scottandrechek@...>
Hi. I'm new to ruby and i am trying to get a while not loop to occur if
[#340353] how to make a variable based on array length and member value — Catsquotl <nope@...>
Hi
[#340375] aboout DRb... — Jun Young Kim <jykim@...>
Hi. all
[#340385] RDoc-style documentation for Ruby keywords — "David A. Black" <dblack@...>
Hi --
David A. Black <dblack@rubypal.com> wrote:
Hi --
On Jun 29, 2009, at 3:19 PM, David A. Black wrote:
David A. Black wrote:
Yossef Mendelssohn wrote:
[#340386] Push Inputted Words — Scott Andrechek <scottandrechek@...>
I'm trying to make a program that gets you to input words and when you
I'm now using this:
[#340399] Methods optional arguments — Ibon Castilla <ibon.castilla@...>
Hi there:
[#340409] Best OS packages for Ruby? — "Michael J. I. Jackson" <mjijackson@...>
Hi all,
Hi Michael,
On Monday 29 June 2009 12:11:38 pm Fabian Streitel wrote:
David Masover wrote:
Joel VanderWerf wrote:
>
I think people would be asking for a deprecation period, a key part of
> I think people would be asking for a deprecation period
2009/7/2 Fabian Streitel <karottenreibe@googlemail.com>:
well, then just write your scripts in 1.8.6, where's your problem?
On Wednesday 01 July 2009 02:47:29 pm Fabian Streitel wrote:
[#340410] Making a random string — Lloyd Linklater <lloyd@2live4.com>
I have been trying to generate a random string. One approach in, say,
Lloyd Linklater wrote:
2009/6/30 Brian Candler <b.candler@pobox.com>:
Robert Klemme wrote:
All very groovy stuff! The final version I think I shall use is a bit
On 30.06.2009 22:20, Lloyd Linklater wrote:
[#340417] How to interrupt unit tests if a library is not present. — Diana Jaunzeikare <rozziite@...>
Hi all,
Hi --
Thanks a lot! It worked like a charm!
[#340432] attr_writers within blocks — Wijnand Wiersma <wijnand@...>
Hi all,
Hi,
On Monday 29 June 2009 02:21:49 pm Bertram Scharpf wrote:
[#340444] Parallelizing a ruby task — Mark Thomas <mark@...>
I have a long-running batch job that I would like to speed up.
[#340460] Question on networking with custom binary interface. — Greg Chambers <gregory.w.chambers@...>
So I am working on this Ruby server application for Windows that needs
Greg Chambers wrote:
Joel VanderWerf wrote:
Greg Chambers wrote:
Sorry to bump an old topic of mine, but I got sidetracked with work from
Greg Chambers wrote:
[#340462] caller usage and getting a full trace after a rescue on general Exception — Xeno Campanoli <xeno.campanoli@...>
Say, I'm having a difficult problem getting a complete trace/stack dump. I've
[#340470] locking a process — Paul Archer <paul@...>
I am in the process of developing a few scripts that:
[#340507] Using selenium in a ruby program — Kga Agk <lord_kga@...>
Is it posible to make a ruby file that runs test that uses selenium.
I got it to work in ruby, but I have to start the selenium servver
On Wed, Jul 1, 2009 at 12:43 PM, Kga Agk <lord_kga@yahoo.no> wrote:
[#340524] Error installing gem — Nabs Kahn <nabusman@...>
Here is the paste from Terminal:
On Jun 30, 8:31m, Nabs Kahn <nabus...@gmail.com> wrote:
[#340539] RubyScript2Exe fix for bug in line 621? — __ __ <ragnell255@...>
I am new to Ruby, but not to programming. I have spent several hours
ANN: Sequel 3.1.0 Released
Sequel is a lightweight database access toolkit for Ruby.
* Sequel provides thread safety, connection pooling and a concise DSL
for constructing database queries and table schemas.
* Sequel also includes a lightweight but comprehensive ORM layer for
mapping records to Ruby objects and handling associated records.
* Sequel supports advanced database features such as prepared
statements, bound variables, stored procedures, master/slave
configurations, and database sharding.
* Sequel makes it easy to deal with multiple records without having
to break your teeth on SQL.
* Sequel currently has adapters for ADO, Amalgalite, DataObjects,
DB2, DBI, Firebird, Informix, JDBC, MySQL, ODBC, OpenBase, Oracle,
PostgreSQL and SQLite3.
Sequel 3.1.0 has been released and should be available on the gem
mirrors. The 3.1.0 release adds numerous improvements:
New Plugins
-----------
3 new plugins were added that implement features supported by
DataMapper: identity_map, tactical_eager_loading, and
lazy_attributes. These plugins don't add any real new features,
since you could do everything they allow before simply by being
a little more explicit in your Sequel code. However, some people
prefer a less explicit approach that uses a bit more magic, and
now Sequel can accomodate them.
* The identity_map plugin allows you to create a 1-1
correspondence of model objects to database rows via a temporary
thread-local identity map. It makes the following statment true:
Sequel::Model.with_identity_map do
Album.filter{(id > 0) & (id < 2)}.first.object_id == \
Album.first(:id=>1).object_id
end
As the code above implies, you need to use the with_identity_map
method with a block to use the identity mapping feature.
By itself, identity maps don't offer much, but Sequel uses them
as a cache when looking up objects by primary key or looking up
many_to_one associated objects. Basically, it can be used as a
performance enhancer, and it also allows the support of the
later plugins.
The identity_map plugin is expected to be most useful in web
applications. With that in mind, here's a Rack middleware that
wraps each request in a with_identity_map call, so the
identity_map features are available inside the web app:
Sequel::Model.plugin :identity_map
class SequelIdentityMap
def initialize(app)
@app = app
end
def call(env)
Sequel::Model.with_identity_map{@app.call(env)}
end
end
* The tactical_eager_loading plugin allows you to eagerly load an
association for all models retrieved in the same group whenever
one of the models accesses the association:
# 2 queries total
Album.filter{id<100}.all do |a|
a.artists
end
In order for this correctly, you must use Dataset#all to load the
records, you cannot iterate over them via Dataset#each. This is
because eager loading requires that you have all records in
advance, and when using Dataset#each you cannot know about later
records in the dataset.
Before, you could just be explicit about the associations you
needed and make sure to eagerly load them using eager before
calling Dataset#all.
* The lazy_attributes plugin builds on the identity_map and
tactical_eager_loading plugins and allows you to create
attributes that are lazily loaded from the database:
Album.plugin :lazy_attributes, :review
This will remove the :review attribute from being selected by
default. If you try to access the attribute after it is selected,
it'll retrieve the value from the database. If the object was
retrieved with a group of other objects and an identity map is in
use, it'll retrieve the lazy attribute for the entire group of
objects at once, similar to the tatical_eager_loading plugin:
# 2 queries total
Sequel::Model.with_identity_map do
Album.filter{id<100}.all do |a|
a.review
end
end
Before, you could just set the default selected columns for a model
to not include the lazy attributes, and just use select_more to
add them to any query where the resulting model objects will
need the attributes.
* A many_through_many plugin was also added. This very powerful
plugin allows you to create associations to multiple objects through
multiple join tables. Here are some examples:
# Assume the following many to many associations:
Artist.many_to_many :albums
Album.many_to_many :tags
# Same as Artist.many_to_many :albums
Artist.many_through_many :albums,
[[:albums_artists, :artist_id, :album_id]]
# All tags associated to any album this artist is associated to
Artist.many_through_many :tags,
[[:albums_artists, :artist_id, :album_id],
[:albums, :id, :id],
[:albums_tags, :album_id, :tag_id]]
# All artists associated to any album this artist is associated to
Artist.many_through_many :artists,
[[:albums_artists, :artist_id, :album_id],
[:albums, :id, :id],
[:albums_artists, :album_id, :artist_id]]
# All albums by artists that are associated to any album this
# artist is associated to
Artist.many_through_many :artist_albums,
[[:albums_artists, :artist_id, :album_id],
[:albums, :id, :id],
[:albums_artists, :album_id, :artist_id],
[:artists, :id, :id],
[:albums_artists, :artist_id, :album_id]]
Basically, for each join table between this model and the
associated model, you use an array with a join table name, left key
name (key closer to this model), and right key name (key closer to
the associated model).
In usual Sequel fashion, this association type works not just
for single objects, but it can also be eagerly loaded via eager or
eager_graph. There are numerous additional configuration options,
please see the RDoc for details.
many_through_many should be able to handle any ActiveRecord has_many
:through association, as well as many associations that aren't
handled by any other ruby ORM.
New bin/sequel Features
-----------------------
The bin/sequel command line tool now supports the following options:
* -C: Copies one database to another. You must specify two database
arguments. Works similar to Taps, copying the table schema, then
the table data, then creating the indexes.
* -d: Dump the schema of the database in the database-independent
migration format.
* -D: Dump the schema of the database in the database-specific
migration format.
* -h: Display the help
* -t: Output the full backtrace if an exception is raised
The bin/sequel tool is now better about checking which options can
be used together. It also now supports using the -L option multiple
times and having it load model files from multiple directory trees.
New Features
------------
* Dataset#qualify_to and #qualify_to_first_source were added. They
allow you to qualify unqualified columns in the current dataset
to the given table or the first source. This can be used to join
a dataset that has unqualified columns to a new table which has
columns with the same name.
For example, take this dataset:
ds = DB[:albums].select(:name).order(:name).filter(:id=>1)
# SELECT name FROM albums WHERE (id = 1) ORDER BY name
Let's say you want to join it to the artists table:
ds2 = ds.join(:artists, :id=>:artist_id)
# SELECT name FROM albums
# INNER JOIN artists ON (artists.id = albums.artist_id)
# WHERE (id = 1) ORDER BY name
That's going to give you an error, as the artists table already has
columns named id and name. This new feature allows you to do the
following:
ds2 = ds.qualify_to_first_source.join(:artists, :id=>:artist_id)
# SELECT albums.name FROM albums
# INNER JOIN artists ON (artists.id = albums.artist_id)
# WHERE (albums.id = 1) ORDER BY albums.name
By doing this, all unqualified columns are qualified, so you get
a usable query. This is expected to be most useful for users that
have a default order or filter on their models and want to join
the model to another table. Before you had to replace the filters,
selection, etc. manually, or use qualified columns by default even
though the weren't needed in most cases.
* Savepoints are now supported using SQLite and MySQL, assuming you
are using a database version that supports them. You need to
pass the :savepoint option to Database#transaction to use a
savepoint.
* Model plugins can now depend on other plugins, simply by calling
the Model.plugin method inside the plugin's apply method:
module LazyAttributes
def self.apply(model)
model.plugin :tactical_eager_loading
end
* Model.plugin now takes a block with is passed to the plugin's
apply and configure method (see Backwards Compatibility section for
more information on the configure method).
* You can see which plugins are loaded for a model by using
Model.plugins.
* You can use Sequel.extension method to load extensions:
Sequel.extension :pagination, :query
This will only load extensions that ship with Sequel, unlike the
Model.plugin method which will also load external plugins.
* You can now use Database#create_table? to create the table if it
doesn't already exist (a very common need, it seems). The schema
plugin now supports Model.create_table? as well.
* #sql_subscript is now an allowed method on most SQL expression
objects that Sequel generates. Also, arguments to #sql_subscript
can now be other expressions instead of just integers.
* Associations can now take a :cartesian_product_number option, which
can be used to tell Sequel whether to turn on duplicate object
detection when eagerly loading objects through eager_graph. This
number should be 0 if the association can never create multiple
rows for each row in the current table, 1 if it can create multiple
rows in the each row in the current table, and 2 if the association
itself causes a cartesian product.
* On MySQL, Dataset#insert_ignore now affects #insert as well as
multi_insert and import.
* Database#create_table now supports an :ignore_index_errors option,
and Database#add_index now supports an :ignore_errors option.
These are used by the schema_dumper when dumping an database
schema to be restored on another database type, since indexes
aren't usually required for proper operation and some indexes
can't be transferred.
* The ADO adapter now takes a :provider option, which can be used
to set the provider.
* The ADO adapter now takes a :command_timeout option, which tells
the connection how long to wait before giving up and raising an
exception.
* The Sequel.amalgalite adapter method was added. Like the
Sequel.sqlite method, you can call it with no arguments to get
an in memory database.
Other Improvements
------------------
* MySQL "commands out of sync" errors should no longer occur unless
you are nesting queries (calling Dataset#each inside Dataset#each).
A bug dating at least to 2007 and possibly since the initial
creation of the Sequel MySQL adapter was the cause. Before, SQL
that caused a result set that was sent using a method where Sequel
doesn't yield a result set would cause the "commands out of sync"
error on the following query. For example, the following code
would cause the error:
DB << "SHOW DATABASES"
If for some reason a "commands out of sync" error does occur,
Sequel will disconnect the connection from the connection pool,
so it won't continually stay in the pool and raise errors every
time it is used.
* The schema_dumper extension is much better about parsing defaults
from the database. It can now correctly parse most defaults on
MySQL, SQLite, and PostgreSQL databases. It no longer includes
defaults that it can't parse to a ruby object unless a database-
specific dump is requested.
* The schema_dumper extension now dumps tables in alphabetical order.
* Ordered and limited datasets are now handled correctly when using
union, intersect, and except. Also, union, intersect, and except
now always return a from_self dataset, so further limiting,
filtering, and ordering of them now works as expected.
* Dataset#graph now works correctly with a complex dataset without
having to use from_self. Before, code like the following didn't
do what was expected:
DB[:albums].
graph(DB[:artists].filter{name > 'M'}, :id=>:artist_id)
Before, the filter on DB[:artists] would be dropped. Now, Sequel
correctly uses a subselect.
* You can now specify serialization formats per column in the
serialization plugin, either by calling the plugin multiple
times or by using the new serialize_attributes method:
Album.plugin :serialization
Album.serialize_attributes :marshal, :review
Album.serialize_attributes :yaml, :name
Album.serialization_map #{:name=>:yaml, :review=>:marshal}
The public API for the serialization plugin is still backwards
compatible, but the internals have changed slightly to support
this new feature.
* You can now use eager_graph to eagerly load associations for models
that lack primary keys.
* The :eager_graph association option now works when lazily-loading
many_to_many associations.
* Dataset#add_graph_aliases now works correctly even if
set_graph_aliases hasn't been used.
* The PostgreSQL Database#tables method now assumes the public schema
if a schema is not given and there is no default_schema.
* The PostgreSQL Database#indexes method no longer returns partial
indexes or functional indexes.
* The MySQL Database#indexes method no longer returns indexes on
partial columns (prefix indexes).
* Default values for String :text=>true and File columns on MySQL
are ignored, since MySQL doesn't support them. They are not
ignored if you use text and blob, since then you are using the
database-specific syntax and Sequel doesn't do translation when
the database-specific syntax is used.
* On PostgreSQL, attempting the reset the primary key sequence for a
table without a primary key no longer causes an error.
* Using a placeholder string in an association's :condition option
now works correctly (e.g. :conditions=>['n = ?', 1])
* An error is no longer raised if you attempt to load a plugin that
has a DatasetMethods module but no public dataset methods.
* The check for dataset[n] where n is an integer was fixed. It now
raises an error inside of returning a limited dataset.
* On PostgreSQL, Dataset#insert with static SQL now works correctly.
* A reflection.rdoc file was added giving an overview of Sequel's
reflection support.
* The Migrator now works correctly with file names like
001_12312412_file_name.rb.
* The association code now requires the classes match when looking
for a reciprocal association.
* An unlikely threading bug (race condition) was possible when using
the validation_class_methods plugin. The plugin was refactored and
now uses a mutex to avoid the issue. One of the refactoring changes
makes it so that you can no longer use a class level vaildation
inside a Class.new block (since inherited isn't called until the
block finishes).
* The exception messages when Sequel.string_to_* fail have been fixed.
* The String :text=>true generic database type has been fixed when
using the Firebird adapter.
Backwards Compatibility
-----------------------
* A plugin's apply method is now only called the first time a plugin
is loaded. Plugins can now have a configure method that is called
every time the plugin is loaded, and is always called after the
instance methods, class methods, and dataset method submodules have
been added to the model. This is different from apply, which is
called before the submodules are loaded.
If you are a plugin author, please check your implementation to
make sure this doesn't cause problems for you. If you have
questions, please post on the Sequel mailing list.
This new plugin feature will make certain things a lot easier, and
it should be mostly backwards compatible. However, if a plugin
was previously expected to be loaded multiple times with the apply
method called each time, it will no longer work correctly.
* The plugin_opts methods defined now include multiple args in an
array if multiple args are given. Before, the plugin_opts methods
just returned the first argument.
* Database#table_exists? no longer checks the cached schema
information. By default, it will always do a database query
(unless overridden in an adapter). This shouldn't affect the
results, but if were using the method a lot and expecting it to
use cached information, it doesn't have the same performance
characteristics.
* The internal storage of the :select option for datasets have
changed. You can no longer use a hash as a way of aliasing
columns. Dataset#select now does the translation from the hash to
SQL::AliasedExpression instances. Basically, if you were using
Dataset#clone directly with a :select option with hashes for
aliasing, you should switch to using Dataset#select or changing
the hashes to AliasedExpressions yourself.
Thanks,
Jeremy
* {Website}[http://sequel.rubyforge.org]
* {Source code}[http://github.com/jeremyevans/sequel]
* {Bug tracking}[http://code.google.com/p/ruby-sequel/issues/list]
* {Google group}[http://groups.google.com/group/sequel-talk]
* {RDoc}[http://sequel.rubyforge.org/rdoc]
--
Posted via http://www.ruby-forum.com/.