[#231977] General Programming Books — Mark Woodward <markonlinux@...>

Hi all,

17 messages 2007/01/01

[#232004] Re: Status of Cardinal (was Re: Proposal to create a new mailing list) — "Martin DeMello" <martindemello@...>

On 12/31/06, M. Edward (Ed) Borasky <znmeb@cesmail.net> wrote:

8 messages 2007/01/01

[#232143] Detecting holidays — "Daniel Berger" <djberg96@...>

Hi all,

22 messages 2007/01/02

[#232198] Any projects need rdoc documentation help? — Jay Bornhoft <jbornhoft@...>

As part of my effort to become increasingly more involved in the Ruby

13 messages 2007/01/02

[#232214] Calculating roman numerals — "Shiloh Madsen" <shiloh.madsen@...>

Ok, I'm having trouble with another exercise in this book. It has

13 messages 2007/01/02

[#232335] Problem in Unit Testing Methods that start new threads — Hemant Kumar <gethemant@...>

I have a bit of doubt, in Unit Testing Programs that start new threads.

13 messages 2007/01/03

[#232347] Memory Leak Madness — Brandon Casci <brandon@...>

I'm having one hell of a time trying to find and stop a memory leak in a

19 messages 2007/01/03

[#232374] Scriptable text editor with Ruby? — "Dolazy" <francis.rammeloo@...>

Hi all!

37 messages 2007/01/03

[#232694] How can I do this better? — "Sam Kong" <sam.s.kong@...>

Hi,

14 messages 2007/01/05

[#232719] Word Blender (#108) — Ruby Quiz <james@...>

The three rules of Ruby Quiz:

57 messages 2007/01/05
[#233040] Re: [QUIZ] Word Blender (#108) — Daniel Finnie <danfinnie@...> 2007/01/07

I made two this time. One plays a game and one just picks the word.

[#233042] Re: [QUIZ] Word Blender (#108) — "Fedor Labounko" <fedor.labounko@...> 2007/01/07

On 1/7/07, Daniel Finnie <danfinnie@optonline.net> wrote:

[#232806] removing Ruby success stories page from Ruby-lang.org — "Rahul" <vrahul@...>

38 messages 2007/01/05
[#232808] Re: removing Ruby success stories page from Ruby-lang.org — dblack@... 2007/01/05

Hi --

[#232821] Re: removing Ruby success stories page from Ruby-lang.org — "Jeremy McAnally" <jeremymcanally@...> 2007/01/05

Notable stories that should be added that I'm aware of:

[#232839] Re: removing Ruby success stories page from Ruby-lang.org — James Britt <james.britt@...> 2007/01/05

Jeremy McAnally wrote:

[#232865] SparseFile — "Erik Veenstra" <erikveen@...>

I had to send huge files over a network to another machine.

13 messages 2007/01/06

[#233008] Sending SMS Messages With Ruby — James Edward Gray II <james@...>

I'm going to need to send SMS messages from a Ruby server I am

11 messages 2007/01/07

[#233037] a most undangerous Hash#store! — "Trans" <transfire@...>

Hi--

32 messages 2007/01/07
[#233054] Re: a most undangerous Hash#store! — Florian Gross <florgro@...> 2007/01/08

On 2007-01-08 02:00:10 +0100, dblack@wobblini.net said:

[#233059] Re: a most undangerous Hash#store! — dblack@... 2007/01/08

Hi --

[#233095] Re: a most undangerous Hash#store! — Robert Klemme <shortcutter@...> 2007/01/08

On 08.01.2007 02:59, dblack@wobblini.net wrote:

[#233096] Re: a most undangerous Hash#store! — Mauricio Fernandez <mfp@...> 2007/01/08

On Mon, Jan 08, 2007 at 08:20:05PM +0900, Robert Klemme wrote:

[#233098] Re: a most undangerous Hash#store! — dblack@... 2007/01/08

Hi --

[#233107] Re: a most undangerous Hash#store! — Mauricio Fernandez <mfp@...> 2007/01/08

On Mon, Jan 08, 2007 at 09:37:05PM +0900, dblack@wobblini.net wrote:

[#233133] Tattle - The Ruby Census — "Chad Fowler" <chad@...>

Greetings and Happy New Year, Rubyists!

118 messages 2007/01/08
[#233181] Re: [ANN] Tattle - The Ruby Census — Pit Capitain <pit@...> 2007/01/09

Chad Fowler schrieb:

[#233245] Re: [ANN] Tattle - The Ruby Census — Ryan Davis <ryand-ruby@...> 2007/01/09

[#233253] Re: [ANN] Tattle - The Ruby Census — Ben Bleything <ben@...> 2007/01/09

On Wed, Jan 10, 2007, Ryan Davis wrote:

[#233261] Re: [ANN] Tattle - The Ruby Census — Eric Hodel <drbrain@...7.net> 2007/01/09

On Jan 9, 2007, at 09:31, Ben Bleything wrote:

[#233265] Re: [ANN] Tattle - The Ruby Census — Ben Bleything <ben@...> 2007/01/09

On Wed, Jan 10, 2007, Eric Hodel wrote:

[#233278] Re: [ANN] Tattle - The Ruby Census — Eric Hodel <drbrain@...7.net> 2007/01/09

On Jan 9, 2007, at 10:42, Ben Bleything wrote:

[#233284] Re: [ANN] Tattle - The Ruby Census — Ben Bleything <ben@...> 2007/01/09

On Wed, Jan 10, 2007, Eric Hodel wrote:

[#233393] Re: [ANN] Tattle - The Ruby Census — Eric Hodel <drbrain@...7.net> 2007/01/10

On Jan 9, 2007, at 13:03, Ben Bleything wrote:

[#233333] Re: [ANN] Tattle - The Ruby Census — Ryan Davis <ryand-ruby@...> 2007/01/10

[#233338] Re: [ANN] Tattle - The Ruby Census — Ben Bleything <ben@...> 2007/01/10

On Wed, Jan 10, 2007, Ryan Davis wrote:

[#233345] Re: [ANN] Tattle - The Ruby Census — Ryan Davis <ryand-ruby@...> 2007/01/10

[#233352] Re: Tattle - The Ruby Census — Evan Weaver <eweaver.spamtrap@...> 2007/01/10

Ryan Davis wrote:

[#233399] Re: Tattle - The Ruby Census — Eric Hodel <drbrain@...7.net> 2007/01/10

On Jan 10, 2007, at 02:02, Evan Weaver wrote:

[#233416] Re: Tattle - The Ruby Census — Evan Weaver <eweaver.spamtrap@...> 2007/01/10

Eric Hodel wrote:

[#233456] Re: Tattle - The Ruby Census — "Austin Ziegler" <halostatue@...> 2007/01/10

On 1/10/07, Evan Weaver <eweaver.spamtrap@gmail.com> wrote:

[#233586] Re: Tattle - The Ruby Census — "Daniel Berger" <djberg96@...> 2007/01/11

[#233625] Re: Tattle - The Ruby Census — "Gregory Brown" <gregory.t.brown@...> 2007/01/12

On 1/11/07, Daniel Berger <djberg96@gmail.com> wrote:

[#233633] Re: Tattle - The Ruby Census — "Jeremy McAnally" <jeremymcanally@...> 2007/01/12

But the question is would the hoe developers use this? They seem

[#233665] Re: Tattle - The Ruby Census — "Austin Ziegler" <halostatue@...> 2007/01/12

On 1/12/07, Jeremy McAnally <jeremymcanally@gmail.com> wrote:

[#233769] Re: Tattle - The Ruby Census — "Chris Carter" <cdcarter@...> 2007/01/13

On 1/12/07, Austin Ziegler <halostatue@gmail.com> wrote:

[#233158] Why is there a seperate Math class? — Daniel Finnie <danfinnie@...>

Why does everything have to be Math.<func>(num)? Isn't num.func more

22 messages 2007/01/09

[#233180] Problems with Posting to comp.lang.ruby, due to gateway to Ruby-Talk — Ronald Fischer <ronaldf@...>

Hello

11 messages 2007/01/09

[#233189] inheritance concept in ruby — Kumar Tnj <senvenit2003@...>

Hi,

19 messages 2007/01/09

[#233209] sortung a structured array on more than one criteria — Josselin <josselin@...>

I can sort an array like that :

11 messages 2007/01/09

[#233238] Elements of Ruby Style — "Jeremy McAnally" <jeremymcanally@...>

Hello all,

14 messages 2007/01/09

[#233285] Re: String performance — "Gavin Kistner" <gavin.kistner@...>

From: Vincent Fourmond

11 messages 2007/01/09

[#233386] return_on — "Trans" <transfire@...>

Sometimes i do this:

24 messages 2007/01/10

[#233424] building Ruby with dmalloc — Young Hyun <youngh@...>

Has anyone managed to build Ruby with dmalloc support? I'm having

11 messages 2007/01/10

[#233584] Finding path to ruby script argument — "Matthew Hailstone" <matthew.hailstone@...>

When I execute a ruby script by the following:

11 messages 2007/01/11

[#233640] Why doesn't Ruby allow for overloaded methods within a class — Wes Gamble <weyus@...>

(from a Java refugee)

12 messages 2007/01/12

[#233671] Number Spiral (#109) — Ruby Quiz <james@...>

The three rules of Ruby Quiz:

29 messages 2007/01/12

[#233676] DRY gsub... — Josselin <josselin@...>

I wrote the following ruby statements.. I get the result I need , I

33 messages 2007/01/12

[#233714] RCR again (Integer#succ!, Integer#pred!) — "Robert Dober" <robert.dober@...>

I am definitely in an RCR mood ;)

13 messages 2007/01/12

[#233763] Running Webrick alongside IIS on port 80 — Prashant Deva <prashant.deva@...>

Hi,

12 messages 2007/01/12

[#233889] checking if a string matches a regexp - am I missing something? — "Rob Sanheim" <rsanheim@...>

I figure that I must be missing something really obvious with this

11 messages 2007/01/14

[#233914] Hoe poisoned in Rubyforge — Eric Hodel <drbrain@...7.net>

Somehow hoe-1.1.7 has become poisoned in the RubyGems index:

50 messages 2007/01/14
[#233958] Re: Hoe poisoned in Rubyforge — "Chris Carter" <cdcarter@...> 2007/01/14

On 1/14/07, Eric Hodel <drbrain@segment7.net> wrote:

[#233961] Re: Hoe poisoned in Rubyforge — SonOfLilit <sonoflilit@...> 2007/01/14

So if I have a RubyForge account I can upload a modified gem, of, say,

[#233993] Re: Hoe poisoned in Rubyforge — Tom Copeland <tom@...> 2007/01/14

On Mon, 2007-01-15 at 00:56 +0900, SonOfLilit wrote:

[#233999] Re: Hoe poisoned in Rubyforge — Tom Copeland <tom@...> 2007/01/14

On Sun, 2007-01-14 at 13:20 -0500, Tom Copeland wrote:

[#233938] "soemthing".pluralize/at/from/... -> NoMethodError — David Krmpotic <david.krmpotic@...>

Hello,

11 messages 2007/01/14

[#233963] possible to un-warn? — "David Chelimsky" <dchelimsky@...>

Hi all,

12 messages 2007/01/14

[#233969] how to translate base 10 number into base 2 number — chen li <chen_li3@...>

Hi all,

15 messages 2007/01/14

[#234052] keybox 1.0.0 Released — Jeremy Hinegardner <jeremy@...>

keybox version 1.0.0 has been released.

15 messages 2007/01/15

[#234063] Can anyone try to solve this problems? — Cyrus Gabilla <gabilla19992004@...>

Hi to everybody.

20 messages 2007/01/15
[#234160] Re: Can anyone try to solve this problems? — David Madden <moose56@...> 2007/01/15

[#234170] Q: How can a Rake task know the caller's directory? — James Britt <james.britt@...>

I'm increasingly using rake files for common system tasks. Since Rake

20 messages 2007/01/15

[#234183] Hi all! — Mustapha! <mail_gw_ruby@...>

Hi! I hate america!

23 messages 2007/01/15

[#234254] Ruby and E.V.E. Paradox — GD <garthy_lmkltybr@...>

I have been using Ruby for several years. Most importantly I have been using

30 messages 2007/01/16
[#234269] Re: Ruby and E.V.E. Paradox — "gga" <GGarramuno@...> 2007/01/16

[#234434] RubyGems 0.9.1 — Eric Hodel <drbrain@...7.net>

= Announce: RubyGems Release 0.9.1

19 messages 2007/01/16

[#234529] Intensive computing: Ruby? Ruby/C? Pure C++? — "Shot (Piotr Szotkowski)" <shot@...>

Hello, ruby-talk. I have a question about choosing between Ruby, Ruby

20 messages 2007/01/17

[#234646] Struggling With RubyGems — James Edward Gray II <james@...>

I can't seen to query or install gems over here. Is anyone else

18 messages 2007/01/17
[#234649] RubyGems 0.9.1 problem (was Re: Struggling With RubyGems) — Gregory Seidman <gsslist+ruby@...> 2007/01/17

On Thu, Jan 18, 2007 at 06:29:09AM +0900, James Edward Gray II wrote:

[#234655] Re: RubyGems 0.9.1 problem (was Re: Struggling With RubyGems) — James Edward Gray II <james@...> 2007/01/17

On Jan 17, 2007, at 3:42 PM, Gregory Seidman wrote:

[#234659] Re: RubyGems 0.9.1 problem (was Re: Struggling With RubyGems) — "David Goodlad" <dgoodlad@...> 2007/01/17

On 1/17/07, James Edward Gray II <james@grayproductions.net> wrote:

[#234667] Re: RubyGems 0.9.1 problem (was Re: Struggling With RubyGems) — James Edward Gray II <james@...> 2007/01/17

On Jan 17, 2007, at 4:17 PM, David Goodlad wrote:

[#234668] Re: RubyGems 0.9.1 problem (was Re: Struggling With RubyGems) — "Tim Pease" <tim.pease@...> 2007/01/17

On 1/17/07, James Edward Gray II <james@grayproductions.net> wrote:

[#234732] Ruby text editor for beginner — "Shawn Wa..." <shawnw@...>

I'm looking for a simple text editor for Ruby to work under WinXP SP2.

29 messages 2007/01/18

[#234744] Ruby and Python, questions (not a flamewar!) — Drew Olson <olsonas@...>

I've been using ruby for the past 6 months and I must say I am extremely

19 messages 2007/01/18

[#234800] auto assign arguments? — "David Chelimsky" <dchelimsky@...>

I see where to put bugs and patches, but this is a feature request. Is

35 messages 2007/01/18
[#234826] Re: auto assign arguments? — "Daniel Berger" <djberg96@...> 2007/01/18

[#234830] Re: auto assign arguments? — James Edward Gray II <james@...> 2007/01/18

On Jan 18, 2007, at 3:35 PM, Daniel Berger wrote:

[#234832] Re: auto assign arguments? — "Gregory Brown" <gregory.t.brown@...> 2007/01/18

On 1/18/07, James Edward Gray II <james@grayproductions.net> wrote:

[#234839] Re: auto assign arguments? — gwtmp01@... 2007/01/18

[#234842] Re: auto assign arguments? — "David Chelimsky" <dchelimsky@...> 2007/01/18

Wow. You guys are all coming up w/ great alternatives, but would

[#234919] Re: auto assign arguments? — dblack@... 2007/01/19

Hi --

[#234922] Re: auto assign arguments? — "Robert Dober" <robert.dober@...> 2007/01/19

On 1/19/07, dblack@wobblini.net <dblack@wobblini.net> wrote:

[#234925] Re: auto assign arguments? — Yukihiro Matsumoto <matz@...> 2007/01/19

Hi,

[#234889] rubyforge.org questions — Peter Szinek <peter@...>

Hello,

15 messages 2007/01/19
[#234901] Re: rubyforge.org questions — "Jan Svitok" <jan.svitok@...> 2007/01/19

On 1/19/07, Peter Szinek <peter@rubyrailways.com> wrote:

[#234908] Re: rubyforge.org questions — Vincent Fourmond <vincent.fourmond@9online.fr> 2007/01/19

Jan Svitok wrote:

[#234902] OFFTOPIC: How to pronounce Ruby? — Peter Szinek <peter@...>

Is it more similar to 'dummy' or 'dubi(ous)'? (or neither :-)

13 messages 2007/01/19

[#234949] Minor Change Proposal for Classes 'Object' and 'Method' — =?ISO-8859-15?Q?Wolfgang_N=E1dasi-Donner?= <wonado@...>

Minor Change Proposal for Classes 'Object' and 'Method'

98 messages 2007/01/19
[#234953] Re: Minor Change Proposal for Classes 'Object' and 'Method' — Yukihiro Matsumoto <matz@...> 2007/01/19

Hi,

[#234972] Re: Minor Change Proposal for Classes 'Object' and 'Method' — Yukihiro Matsumoto <matz@...> 2007/01/19

Hi,

[#235124] Re: Minor Change Proposal for Classes 'Object' and 'Method' — Robert Klemme <shortcutter@...> 2007/01/20

On 19.01.2007 19:33, Yukihiro Matsumoto wrote:

[#235126] Re: Minor Change Proposal for Classes 'Object' and 'Method' — "Phrogz" <gavin@...> 2007/01/20

Robert Klemme wrote:

[#235137] Re: Minor Change Proposal for Classes 'Object' and 'Method' — Robert Klemme <shortcutter@...> 2007/01/20

On 20.01.2007 18:54, Phrogz wrote:

[#235144] Re: Minor Change Proposal for Classes 'Object' and 'Method' — dblack@... 2007/01/20

Hi --

[#235148] Re: Minor Change Proposal for Classes 'Object' and 'Method' — Wolfgang N疆asi-Donner <wonado@...> 2007/01/20

dblack@wobblini.net schrieb:

[#235150] Re: Minor Change Proposal for Classes 'Object' and 'Method' — dblack@... 2007/01/20

Hi --

[#235153] Re: Minor Change Proposal for Classes 'Object' and 'Method' — gwtmp01@... 2007/01/20

[#235155] Re: Minor Change Proposal for Classes 'Object' and 'Method' — dblack@... 2007/01/20

Hi --

[#235166] Re: Minor Change Proposal for Classes 'Object' and 'Method' — dblack@... 2007/01/20

Hi --

[#235192] Re: Minor Change Proposal for Classes 'Object' and 'Method' — gwtmp01@... 2007/01/21

[#235238] Re: Minor Change Proposal for Classes 'Object' and 'Method' — dblack@... 2007/01/21

Hi --

[#235254] Re: Minor Change Proposal for Classes 'Object' and 'Method' — Wolfgang N疆asi-Donner <wonado@...> 2007/01/21

dblack@wobblini.net schrieb:

[#235262] Re: Minor Change Proposal for Classes 'Object' and 'Method' — dblack@... 2007/01/21

Hi --

[#235274] Re: Minor Change Proposal for Classes 'Object' and 'Method' — =?ISO-8859-15?Q?Wolfgang_N=E1dasi-Donner?= <wonado@...> 2007/01/21

dblack@wobblini.net schrieb:

[#235280] Re: Minor Change Proposal for Classes 'Object' and 'Method' — dblack@... 2007/01/21

Hi --

[#235347] Re: Minor Change Proposal for Classes 'Object' and 'Method' — Yukihiro Matsumoto <matz@...> 2007/01/22

Hi,

[#235352] Re: Minor Change Proposal for Classes 'Object' and 'Method' — dblack@... 2007/01/22

Hi --

[#235354] Re: Minor Change Proposal for Classes 'Object' and 'Method' — Yukihiro Matsumoto <matz@...> 2007/01/22

Hi,

[#235361] Re: Minor Change Proposal for Classes 'Object' and 'Method' — dblack@... 2007/01/22

Hi --

[#235388] Re: Minor Change Proposal for Classes 'Object' and 'Method' — Yukihiro Matsumoto <matz@...> 2007/01/22

Hi,

[#235443] Re: Minor Change Proposal for Classes 'Object' and 'Method' — dblack@... 2007/01/22

Hi --

[#235448] Re: Minor Change Proposal for Classes 'Object' and 'Method' — Yukihiro Matsumoto <matz@...> 2007/01/22

Hi,

[#235567] Re: Minor Change Proposal for Classes 'Object' and 'Method' — dblack@... 2007/01/23

Hi --

[#235575] Re: Minor Change Proposal for Classes 'Object' and 'Method' — Yukihiro Matsumoto <matz@...> 2007/01/23

Hi,

[#235578] Re: Minor Change Proposal for Classes 'Object' and 'Method' — ara.t.howard@... 2007/01/23

On Tue, 23 Jan 2007, Yukihiro Matsumoto wrote:

[#235653] Re: Minor Change Proposal for Classes 'Object' and 'Method' — "Robert Dober" <robert.dober@...> 2007/01/23

On 1/23/07, ara.t.howard@noaa.gov <ara.t.howard@noaa.gov> wrote:

[#235680] Re: Minor Change Proposal for Classes 'Object' and 'Method' — Pit Capitain <pit@...> 2007/01/23

Robert Dober schrieb:

[#235684] Re: Minor Change Proposal for Classes 'Object' and 'Method' — ara.t.howard@... 2007/01/23

On Wed, 24 Jan 2007, Pit Capitain wrote:

[#235013] I don't get rspec — "nicknameoptional" <dorrenchen@...>

I just discovered rspec today, reading the example and tutorials,

45 messages 2007/01/19
[#235021] Re: I don't get rspec — James Britt <james.britt@...> 2007/01/19

nicknameoptional wrote:

[#235035] Re: I don't get rspec — "nicknameoptional" <dorrenchen@...> 2007/01/20

> There is a good Google video about rspec and Behavior Driven

[#235492] Re: I don't get rspec — Christian Neukirchen <chneukirchen@...> 2007/01/22

"nicknameoptional" <dorrenchen@gmail.com> writes:

[#235539] test/spec -- was Re: I don't get rspec — Joel VanderWerf <vjoel@...> 2007/01/22

Christian Neukirchen wrote:

[#235747] Re: test/spec -- was Re: I don't get rspec — Christian Neukirchen <chneukirchen@...> 2007/01/23

Joel VanderWerf <vjoel@path.berkeley.edu> writes:

[#235770] Re: test/spec -- was Re: I don't get rspec — "David Chelimsky" <dchelimsky@...> 2007/01/23

On 1/23/07, Christian Neukirchen <chneukirchen@gmail.com> wrote:

[#235031] Learning Japanese — "Gerardo Santana Gez Garrido" <gerardo.santana@...>

Thanks to Ruby I've learned a lot recently about programming languages

11 messages 2007/01/20

[#235046] "postgres" module needs work, author gone, patch included — Jeff Davis <ruby@...>

The "postgres" module is old and it's been a long time since there's

12 messages 2007/01/20

[#235141] FreeRIDE - Way too many warnings — Ab Cd <grauenwolf@...>

Whenever I start FreeRIDE I get a ton of warnings. It takes a long time

29 messages 2007/01/20
[#235145] Re: FreeRIDE - Way too many warnings — matt <matt@...> 2007/01/20

On Sun, 2007-01-21 at 03:32 +0900, Ab Cd wrote:

[#235172] Re: FreeRIDE - Way too many warnings — Jonathan Allen <grauenwolf@...> 2007/01/20

matt wrote:

[#235173] Re: FreeRIDE - Way too many warnings — matt <matt@...> 2007/01/20

On Sun, 2007-01-21 at 08:43 +0900, Jonathan Allen wrote:

[#235181] Re: FreeRIDE - Way too many warnings — Jonathan Allen <grauenwolf@...> 2007/01/21

[#235184] Re: FreeRIDE - Way too many warnings — Timothy Hunter <TimHunter@...> 2007/01/21

Jonathan Allen wrote:

[#235191] Re: FreeRIDE - Way too many warnings — matt <matt@...> 2007/01/21

On Sun, 2007-01-21 at 10:41 +0900, Timothy Hunter wrote:

[#235198] Re: FreeRIDE - Way too many warnings — Jonathan Allen <grauenwolf@...> 2007/01/21

matt wrote:

[#235180] Hash pairs at? — "Trans" <transfire@...>

Seesm like there should be a mehtod for this:

32 messages 2007/01/21

[#235197] Getting the version number for rubygems? — "Gregory Brown" <gregory.t.brown@...>

Hi,

22 messages 2007/01/21
[#235202] Re: Getting the version number for rubygems? — Eric Hodel <drbrain@...7.net> 2007/01/21

On Jan 20, 2007, at 20:11, Gregory Brown wrote:

[#235203] Re: Getting the version number for rubygems? — "Gregory Brown" <gregory.t.brown@...> 2007/01/21

On 1/20/07, Eric Hodel <drbrain@segment7.net> wrote:

[#235204] Re: Getting the version number for rubygems? — "Jeremy McAnally" <jeremymcanally@...> 2007/01/21

require 'rubygems'

[#235205] Re: Getting the version number for rubygems? — "Gregory Brown" <gregory.t.brown@...> 2007/01/21

On 1/21/07, Jeremy McAnally <jeremymcanally@gmail.com> wrote:

[#235206] Re: Getting the version number for rubygems? — Devin Mullins <twifkak@...> 2007/01/21

Gregory Brown wrote:

[#235208] Re: Getting the version number for rubygems? — "Gregory Brown" <gregory.t.brown@...> 2007/01/21

On 1/21/07, Devin Mullins <twifkak@comcast.net> wrote:

[#235248] uninstalling the mac tiger version of ruby — "libsfan01" <mcyi2mr3@...>

hi all

20 messages 2007/01/21
[#235251] Re: uninstalling the mac tiger version of ruby — "libsfan01" <mcyi2mr3@...> 2007/01/21

My reason for wanting to uninstall is that ive tried to install the

[#235258] Re: uninstalling the mac tiger version of ruby — Timothy Hunter <TimHunter@...> 2007/01/21

libsfan01 wrote:

[#235287] Re: uninstalling the mac tiger version of ruby — "libsfan01" <mcyi2mr3@...> 2007/01/21

[#235294] Re: uninstalling the mac tiger version of ruby — Timothy Hunter <TimHunter@...> 2007/01/21

libsfan01 wrote:

[#270097] Re: uninstalling the mac tiger version of ruby — Aaron Massey <amassey@...> 2007/09/20

I have a similar problem. I installed a manually compiled version of

[#270098] Re: uninstalling the mac tiger version of ruby — "Peter Cooper" <peter@...> 2007/09/20

On 9/20/07, Aaron Massey <amassey@csoft.net> wrote:

[#235283] module global variables — Stefano Zacchiroli <zack@...>

Is there a way to define per-module global variables? My best

14 messages 2007/01/21
[#235289] Re: module global variables — "Trans" <transfire@...> 2007/01/21

[#235290] Re: module global variables — Stefano Zacchiroli <zack@...> 2007/01/21

On Mon, Jan 22, 2007 at 02:52:58AM +0900, Trans wrote:

[#235384] Can't install rubygems — lijie <cpunion@...>

The rubygems installer can't finish, and CPU is 100% used in several hours.

14 messages 2007/01/22

[#235460] ebedded: calling a C function from script. — Shea Martin <shea@...>

I have my embedded interpreter running my scipt. Now I would like my

12 messages 2007/01/22

[#235464] Method notation question — "Avdi Grimm" <avdi@...>

I've been using Ruby for years, and it just occurred to me to ask:

15 messages 2007/01/22

[#235574] Placing tabs in strings in irb — "Michael W. Ryder" <_mwryder@...>

Is there any reason I cannot embed tabs in a string while using irb? I

16 messages 2007/01/23

[#235624] I need a more efficient algorithm for this problem. — "Sam Kong" <sam.s.kong@...>

Hi,

15 messages 2007/01/23

[#235633] Ruby for massively multi-core chips? — Bil Kleb <Bil.Kleb@...>

How to best evolve Ruby to accommodate 80-core

13 messages 2007/01/23

[#235880] Trickery in the ancestors chain — "Paolo Nusco Perrotta" <paolo.nusco.perrotta@...>

Try this:

12 messages 2007/01/24

[#235938] Ruby IDE for Windows 98? — Bart Braem <bart.braem@...>

Hello,

26 messages 2007/01/24
[#235973] Re: Ruby IDE for Windows 98? — Olivier <o.renaud@...> 2007/01/24

> With Ruby. (We have good reasons, I'll explain them

[#235980] Re: Ruby IDE for Windows 98? — "Robert Dober" <robert.dober@...> 2007/01/24

On 1/24/07, Olivier <o.renaud@laposte.net> wrote:

[#236140] A Ruby Operating System (no bashing please) — "Andr蘂 <andre.nho@...>

Hello,

12 messages 2007/01/25

[#236217] cartesian product of arrays — Thomas Hafner <thomas@...>

Hello,

31 messages 2007/01/26

[#236240] Counting Toothpicks (#111) — Ruby Quiz <james@...>

The three rules of Ruby Quiz:

55 messages 2007/01/26
[#236445] Re: [QUIZ] Counting Toothpicks (#111) — "Andrey Falko" <ma3oxuct@...> 2007/01/27

Hi everyone,

[#236489] Re: [QUIZ] Counting Toothpicks (#111) — James Edward Gray II <james@...> 2007/01/28

On Jan 27, 2007, at 12:21 PM, Andrey Falko wrote:

[#236241] simple question about Ruby Regext — Peter Bailey <pbailey@...>

Hi,

22 messages 2007/01/26

[#236243] Rubygem install "Invalid argument - sources-0.0.1.gem" — Jeremy Lecour <jeremy.lecour@...>

Hi,

16 messages 2007/01/26
[#236475] Re: Rubygem install "Invalid argument - sources-0.0.1.gem" — Eric Hodel <drbrain@...7.net> 2007/01/27

On Jan 26, 2007, at 06:05, Jeremy Lecour wrote:

[#236530] Re: Rubygem install "Invalid argument - sources-0.0.1.gem" — Jeremy Lecour <jeremy.lecour@...> 2007/01/28

Eric Hodel wrote:

[#236333] pass by reference? — Andy Koch <andy.koch@...>

Hello,

46 messages 2007/01/26
[#236335] Re: pass by reference? — Vincent Fourmond <vincent.fourmond@9online.fr> 2007/01/26

Andy Koch wrote:

[#236342] Re: pass by reference? — "Phrogz" <gavin@...> 2007/01/27

On Jan 26, 4:32 pm, Vincent Fourmond <vincent.fourm...@9online.fr>

[#236344] Re: pass by reference? — "Martin C. Martin" <martin@...> 2007/01/27

[#236346] Re: pass by reference? — dblack@... 2007/01/27

Hi --

[#236491] Net::HTTP Closes STDIN — James Edward Gray II <james@...>

Kenneth Kalmer has brought up a HighLine issue and I'm trying to look

30 messages 2007/01/28
[#236947] Re: Net::HTTP Closes STDIN — gwtmp01@... 2007/01/30

[#236950] Re: Net::HTTP Closes STDIN — ara.t.howard@... 2007/01/30

On Wed, 31 Jan 2007 gwtmp01@mac.com wrote:

[#236611] Ruby << is ambiguos — Neville Franks <subs@...>

Hi, I working on syntax highlighting for ED4W and have problem with <<

18 messages 2007/01/28

[#236687] FastRI 0.3.0: standalone mode (qri, DRb not needed), additional search methods, extended class info — Mauricio Fernandez <mfp@...>

13 messages 2007/01/29
[#236727] Re: [ANN] FastRI 0.3.0: standalone mode (qri, DRb not needed), additional search methods, extended class info — Pe, Botp <botp@...> 2007/01/29

From: Mauricio Julio Fern疣dez Pradier

[#236800] Sane #hash implementation? — "Shot (Piotr Szotkowski)" <shot@...>

I have a Set subclass, Block. I need two blocks to be considered the

18 messages 2007/01/29
[#236833] Re: Sane #hash implementation? — Eric Hodel <drbrain@...7.net> 2007/01/30

On Jan 29, 2007, at 14:38, Shot (Piotr Szotkowski) wrote:

[#236988] tinderbox 1.0.0 Released — Eric Hodel <drbrain@...7.net>

tinderbox version 1.0.0 has been released!

18 messages 2007/01/31

[#237012] Ruby and an efficiency — "Miroslaw Maziarz" <miroslaw.maziarz@...>

Hi,

15 messages 2007/01/31

[#237036] proper usr/bin/env ruby shebang — "Rob Sanheim" <rsanheim@...>

I'm trying to convert some bash scripts to use /usr/bin/env ruby

23 messages 2007/01/31
[#237040] Re: proper usr/bin/env ruby shebang — Nobuyoshi Nakada <nobu@...> 2007/01/31

Hi,

Re: "postgres" module needs work, author gone, patch included

From: Jason LaRiviere <jason@...>
Date: 2007-01-21 02:19:35 UTC
List: ruby-talk #235188
Jason LaRiviere wrote:
> I'm on board; a couple notes:
> http://ruby.scripting.ca/postgres/ appears to be the homepage for the
> project, and offers a snapshot dated 2005.12.21. 
> 
> http://rubyforge.org/frs/download.php/9553 offers a snapshot dated
> 2006.04.06. This package forms the basis for the openbsd port, and will
> be the one I will be patching against and testing. If all is well, I
> will submit an updated port for openbsd including your patch.
> 
> The project homepage also specifies that `this library works with
> PostgreSQL 6.4-8.1', and the macbook is running postgresql 8.2.1. This
> may, or may not have something to do with it's refusal to work. :p
> 
> I will confirm this with an update to pgsql 8.2.1 on the openbsd machines
> and get back to you.

Find attatched a diff that applies cleanly to the 2006.04.06 source.
Also, all teh cool kids are using unified diffs. :p

It builds just fine. Further testing is pending...

-- 
GPG/PGP key ID: 0x3A410DBD | http://pgp.mit.edu
7B3F 4505 7D9A 7FDE 83C9  52C2 4909 59B9 3A41 0DBD

Attachments (1)

ruby-postgres.diff (9.07 KB, text/x-diff)
--- ruby-postgres.orig/postgres.c	Thu Apr  6 12:28:10 2006
+++ ruby-postgres/postgres.c	Sat Jan 20 19:57:22 2007
@@ -107,6 +107,7 @@
 }
 
 static int build_key_value_string_i(VALUE key, VALUE value, VALUE result);
+static PGconn *get_pgconn(VALUE obj);
 
 static PGconn *
 try_connectdb(arg)
@@ -199,16 +200,11 @@
     return fact;
 }
 
-static VALUE format_array_element(VALUE obj);
-
 static VALUE
 pgconn_s_format(self, obj)
     VALUE self;
     VALUE obj;
 {
-    VALUE result;
-    int tainted;
-    long i;
 
     switch(TYPE(obj)) {
     case T_STRING:
@@ -224,19 +220,6 @@
     case T_NIL:
       return rb_str_new2("NULL");
 
-    case T_ARRAY:
-      result = rb_str_buf_new2("{");
-      tainted = OBJ_TAINTED(obj);
-      for (i = 0; i < RARRAY(obj)->len; i++) {
-          VALUE element = format_array_element(RARRAY(obj)->ptr[i]);
-          if (OBJ_TAINTED(RARRAY(obj)->ptr[i])) tainted = Qtrue;
-          if (i > 0) rb_str_buf_cat2(result, ", ");
-          rb_str_buf_append(result, element);
-      }
-      rb_str_buf_cat2(result, "}");
-      if (tainted) OBJ_TAINT(result);
-      return result;
-
     default:
       if (CLASS_OF(obj) == rb_cBigDecimal) {
           return rb_funcall(obj, rb_intern("to_s"), 1, rb_str_new2("F"));
@@ -249,16 +232,44 @@
     }
 }
 
+
+/*
+ * call-seq:
+ *    PGconn.quote( obj )
+ *    PGconn.quote( obj ) { |obj| ... }
+ *    PGconn.format( obj )
+ *    PGconn.format( obj ) { |obj| ... }
+ * 
+ * If _obj_ is a Number, String, Array, +nil+, +true+, or +false+ then
+ * #quote returns a String representation of that object safe for use in PostgreSQL.
+ * 
+ * If _obj_ is not one of the above classes and a block is supplied to #quote,
+ * the block is invoked, passing along the object. The return value from the
+ * block is returned as a string.
+ *
+ * If _obj_ is not one of the recognized classes andno block is supplied,
+ * a PGError is raised.
+ */
 static VALUE
-format_array_element(obj)
-    VALUE obj;
+pgconn_s_quote(self, obj)
+    VALUE self, obj;
 {
+    char* quoted;
+    int size;
+    VALUE result;
+
     if (TYPE(obj) == T_STRING) {
-        obj = rb_funcall(obj, rb_intern("gsub"), 2, rb_reg_new("(?=[\\\\\"])", 9, 0), rb_str_new2("\\"));
-        return rb_funcall(obj, rb_intern("gsub!"), 2, rb_reg_new("^|$", 3, 0), rb_str_new2("\""));
+        /* length * 2 because every char could require escaping */
+        /* + 2 for the quotes, + 1 for the null terminator */
+        quoted = ALLOCA_N(char, RSTRING(obj)->len * 2 + 2 + 1);
+        size = PQescapeString(quoted + 1, RSTRING(obj)->ptr, RSTRING(obj)->len);
+        *quoted = *(quoted + size + 1) = SINGLE_QUOTE;
+        result = rb_str_new(quoted, size + 2);
+        OBJ_INFECT(result, obj);
+        return result;
     }
     else {
-        return pgconn_s_format(rb_cPGconn, obj);
+        return pgconn_s_format(self, obj);
     }
 }
 
@@ -280,18 +291,18 @@
  * a PGError is raised.
  */
 static VALUE
-pgconn_s_quote(self, obj)
+pgconn_quote(self, obj)
     VALUE self, obj;
 {
     char* quoted;
-    int size;
+    int size,error;
     VALUE result;
 
     if (TYPE(obj) == T_STRING) {
         /* length * 2 because every char could require escaping */
         /* + 2 for the quotes, + 1 for the null terminator */
         quoted = ALLOCA_N(char, RSTRING(obj)->len * 2 + 2 + 1);
-        size = PQescapeString(quoted + 1, RSTRING(obj)->ptr, RSTRING(obj)->len);
+        size = PQescapeStringConn(get_pgconn(self),quoted + 1, RSTRING(obj)->ptr, RSTRING(obj)->len, &error);
         *quoted = *(quoted + size + 1) = SINGLE_QUOTE;
         result = rb_str_new(quoted, size + 2);
         OBJ_INFECT(result, obj);
@@ -302,6 +313,31 @@
     }
 }
 
+static VALUE
+pgconn_s_quote_connstr(string)
+    VALUE string;
+{
+    char *str,*ptr;
+    int i,j=0,len;
+    VALUE result;
+
+    Check_Type(string, T_STRING);
+    
+	ptr = RSTRING(string)->ptr;
+	len = RSTRING(string)->len;
+    str = ALLOCA_N(char, len * 2 + 2 + 1);
+	str[j++] = '\'';
+	for(i = 0; i < len; i++) {
+		if(ptr[i] == '\'' || ptr[i] == '\\')
+			str[j++] = '\\';
+		str[j++] = ptr[i];	
+	}
+	str[j++] = '\'';
+    result = rb_str_new(str, j);
+    OBJ_INFECT(result, string);
+    return result;
+}
+
 static int
 build_key_value_string_i(key, value, result)
     VALUE key, value, result;
@@ -310,15 +346,46 @@
     if (key == Qundef) return ST_CONTINUE;
     key_value = (TYPE(key) == T_STRING ? rb_str_dup(key) : rb_obj_as_string(key));
     rb_str_cat(key_value, "=", 1);
-    rb_str_concat(key_value, pgconn_s_quote(rb_cPGconn, value));
+    rb_str_concat(key_value, pgconn_s_quote_connstr(value));
     rb_ary_push(result, key_value);
     return ST_CONTINUE;
 }
 
 /*
  * call-seq:
- *    PGconn.escape( str )
+ *    PGconn.quote_ident( str )
  *
+ * Returns a SQL-safe identifier.
+ */
+static VALUE
+pgconn_s_quote_ident(self, string)
+    VALUE self;
+    VALUE string;
+{
+    char *str,*ptr;
+    int i,j=0,len;
+    VALUE result;
+
+    Check_Type(string, T_STRING);
+    
+	ptr = RSTRING(string)->ptr;
+	len = RSTRING(string)->len;
+    str = ALLOCA_N(char, len * 2 + 2 + 1);
+	str[j++] = '"';
+	for(i = 0; i < len; i++) {
+		if(ptr[i] == '"')
+			str[j++] = '"';
+		else if(ptr[i] == '\0')
+			rb_raise(rb_ePGError, "Identifier cannot contain NULL bytes");
+		str[j++] = ptr[i];	
+	}
+	str[j++] = '"';
+    result = rb_str_new(str, j);
+    OBJ_INFECT(result, string);
+    return result;
+}
+
+/*
  * Returns a SQL-safe version of the String _str_. Unlike #quote, does not wrap the String in '...'.
  */
 static VALUE
@@ -326,7 +393,7 @@
     VALUE self;
     VALUE string;
 {
-    char* escaped;
+    char *escaped;
     int size;
     VALUE result;
 
@@ -340,6 +407,27 @@
 }
 
 /*
+ * Returns a SQL-safe version of the String _str_. Unlike #quote, does not wrap the String in '...'.
+ */
+static VALUE
+pgconn_escape(self, string)
+    VALUE self;
+    VALUE string;
+{
+    char *escaped;
+    int size,error;
+    VALUE result;
+
+    Check_Type(string, T_STRING);
+    
+    escaped = ALLOCA_N(char, RSTRING(string)->len * 2 + 1);
+    size = PQescapeStringConn(get_pgconn(self),escaped, RSTRING(string)->ptr, RSTRING(string)->len, &error);
+    result = rb_str_new(escaped, size);
+    OBJ_INFECT(result, string);
+    return result;
+}
+
+/*
  * call-seq:
  *   PGconn.escape_bytea( obj )
  *
@@ -379,6 +467,44 @@
 
 /*
  * call-seq:
+ *   PGconn.escape_bytea( obj )
+ *
+ * Escapes binary data for use within an SQL command with the type +bytea+.
+ * 
+ * Certain byte values must be escaped (but all byte values may be escaped)
+ * when used as part of a +bytea+ literal in an SQL statement. In general, to
+ * escape a byte, it is converted into the three digit octal number equal to
+ * the octet value, and preceded by two backslashes. The single quote (') and
+ * backslash (\) characters have special alternative escape sequences.
+ * #escape_bytea performs this operation, escaping only the minimally required bytes.
+ * 
+ * See the PostgreSQL documentation on PQescapeBytea[http://www.postgresql.org/docs/current/interactive/libpq-exec.html#LIBPQ-EXEC-ESCAPE-BYTEA] for more information.
+ */
+static VALUE
+pgconn_escape_bytea(self, obj)
+    VALUE self;
+    VALUE obj;
+{
+    char *from, *to;
+    size_t from_len, to_len;
+    VALUE ret;
+    
+    Check_Type(obj, T_STRING);
+    from      = RSTRING(obj)->ptr;
+    from_len  = RSTRING(obj)->len;
+    
+    to = (char *)PQescapeByteaConn(get_pgconn(self),from, from_len, &to_len);
+    
+    ret = rb_str_new(to, to_len - 1);
+    OBJ_INFECT(ret, obj);
+    
+    PQfreemem(to);
+    
+    return ret;
+}
+
+/*
+ * call-seq:
  *   PGconn.unescape_bytea( obj )
  *
  * Converts an escaped string representation of binary data into binary data --- the
@@ -643,7 +769,7 @@
 
     Check_Type(str, T_STRING);
         
-    while ((result = PQgetResult(conn))) {
+    while ((result = PQgetResult(conn)) != NULL) {
         PQclear(result);
     }
 
@@ -2558,6 +2684,7 @@
     rb_define_singleton_method(rb_cPGconn, "escape_bytea", pgconn_s_escape_bytea, 1);
     rb_define_singleton_method(rb_cPGconn, "unescape_bytea", pgconn_s_unescape_bytea, 1);
     rb_define_singleton_method(rb_cPGconn, "translate_results=", pgconn_s_translate_results_set, 1);
+    rb_define_singleton_method(rb_cPGconn, "quote_ident", pgconn_s_quote_ident, 1);
 
     rb_define_const(rb_cPGconn, "CONNECTION_OK", INT2FIX(CONNECTION_OK));
     rb_define_const(rb_cPGconn, "CONNECTION_BAD", INT2FIX(CONNECTION_BAD));
@@ -2592,6 +2719,13 @@
     rb_define_method(rb_cPGconn, "transaction_status", pgconn_transaction_status, 0);
     rb_define_method(rb_cPGconn, "protocol_version", pgconn_protocol_version, 0);
     rb_define_method(rb_cPGconn, "server_version", pgconn_server_version, 0);
+    rb_define_method(rb_cPGconn, "escape", pgconn_escape, 1);
+    rb_define_method(rb_cPGconn, "escape_bytea", pgconn_escape_bytea, 1);
+    rb_define_method(rb_cPGconn, "unescape_bytea", pgconn_s_unescape_bytea, 1);
+    rb_define_method(rb_cPGconn, "quote", pgconn_quote, 1);
+    rb_define_method(rb_cPGconn, "quote_ident", pgconn_s_quote_ident, 1);
+    rb_define_alias(rb_cPGconn, "format", "quote");
+
     /* following line is for rdoc */
     /* rb_define_method(rb_cPGconn, "lastval", pgconn_lastval, 0); */
 

In This Thread