[#101991] Gateway appears to be working!! — "David A. Black" <dblack@...>

Hi --

13 messages 2004/06/01

[#102028] What is the equivalent of Python's "%s" % "MyString"? — "Sam Sungshik Kong" <ssk@...>

Hello!

20 messages 2004/06/01

[#102050] Obfuscating Ruby Code. — "Ken Hilton" <kenosis@...>

Does anyone know of a Ruby source code obfuscator that's reliable and

56 messages 2004/06/01

[#102170] Floating point division operator /. (or fdiv method) — Michael Neumann <mneumann@...>

Hi,

31 messages 2004/06/02
[#102247] Re: [RCR] Floating point division operator /. (or fdiv method) — "Robert Klemme" <bob.news@...> 2004/06/03

[#102231] Reply wasn't posted; will test new post — "Pe, Botp" <botp@...>

Hi ALL:

38 messages 2004/06/03
[#102236] Re: Reply wasn't posted; will test new post — "daz" <dooby@...10.karoo.co.uk> 2004/06/03

[#102241] Re: Reply wasn't posted; will test new post — "David A. Black" <dblack@...> 2004/06/03

Hi --

[#102366] Active Record 0.8.2: Inheritable callback ques — David Heinemeier Hansson <david@...>

What's new in Active Record 0.8.2?

13 messages 2004/06/04

[#102401] Problem Installing Ruby Gems 0.4.0 on XP not segfault — "Ernie" <erne@...>

I get the following error I'm running Ruby 1.8 windows version installed

10 messages 2004/06/04

[#102412] Check assertion in Ruby — Edgardo Hames <ehames@...>

Hi, everybody. I would like to use an assert like function to test the

20 messages 2004/06/04

[#102431] How to ducktype a Hash? — "Sean O'Dell" <sean@...>

I need to detect when an object is a hash-like container for other objects,

137 messages 2004/06/05
[#102456] Re: How to ducktype a Hash? — "Robert Klemme" <bob.news@...> 2004/06/05

[#102495] Re: How to ducktype a Hash? — "Sean O'Dell" <sean@...> 2004/06/05

On Saturday 05 June 2004 02:28, Robert Klemme wrote:

[#102496] Re: How to ducktype a Hash? — Dave Thomas <dave@...> 2004/06/05

[#102499] Re: How to ducktype a Hash? — "Sean O'Dell" <sean@...> 2004/06/05

On Saturday 05 June 2004 10:39, Dave Thomas wrote:

[#102507] Re: How to ducktype a Hash? — Dave Thomas <dave@...> 2004/06/05

[#102514] Re: How to ducktype a Hash? — "Sean O'Dell" <sean@...> 2004/06/06

On Saturday 05 June 2004 13:30, Dave Thomas wrote:

[#102530] Re: How to ducktype a Hash? — "John W. Long" <ng@...> 2004/06/06

Sean O'Dell wrote:

[#102535] Re: How to ducktype a Hash? — "Sean O'Dell" <sean@...> 2004/06/06

On Saturday 05 June 2004 21:05, John W. Long wrote:

[#102563] Re: How to ducktype a Hash? — David Garamond <lists@...6.isreserved.com> 2004/06/06

Sean O'Dell wrote:

[#102573] Re: How to ducktype a Hash? — "David A. Black" <dblack@...> 2004/06/06

Hi --

[#102465] Re: How to ducktype a Hash? — gabriele renzi <surrender_it@...1.vip.ukl.yahoo.com> 2004/06/05

il Sat, 5 Jun 2004 11:15:37 +0900, "Sean O'Dell" <sean@celsoft.com> ha

[#102509] Re: How to ducktype a Hash? — "John W. Long" <ng@...> 2004/06/05

[#102516] Re: How to ducktype a Hash? — "Sean O'Dell" <sean@...> 2004/06/06

On Saturday 05 June 2004 15:01, John W. Long wrote:

[#102649] Re: How to ducktype a Hash? — "Dave Burt" <burtdav@...> 2004/06/07

param.respond_to? '[]' and

[#102445] class A::B verses module A ; class B — quixoticsycophant@... (Jeff Mitchell)

module A

14 messages 2004/06/05

[#102597] Segfault on embedded ruby. — Godot <garciamj@...>

16 messages 2004/06/06

[#102601] Instiki 0.9.0: Rendering improvements, Latex integration, OS X version — David Heinemeier Hansson <david@...>

What's new in Instiki 0.9.0?

9 messages 2004/06/06

[#102675] Waiting for condor output files — Milo Thurston <nospam@...>

I've got a script that submits a whole load of condor jobs, and has to

11 messages 2004/06/07

[#102710] Re: How to ducktype a Hash? — "Austin Ziegler" <Austin.Ziegler@...>

> dblack@wobblini.evault.com

18 messages 2004/06/07

[#102716] Re: Unit tests ... not just for the young — "Kloubakov, Yura" <YKloubakov@...>

22 messages 2004/06/07
[#102729] Re: Unit tests ... not just for the young — "Sean O'Dell" <sean@...> 2004/06/08

On Monday 07 June 2004 16:13, Kloubakov, Yura wrote:

[#102789] Re: Unit tests ... not just for the young — Michael Campbell <michael.campbell@...> 2004/06/08

> I've worked with some fresh guys right

[#102796] Re: Unit tests ... not just for the young — "Sean O'Dell" <sean@...> 2004/06/08

On Tuesday 08 June 2004 07:55, Michael Campbell wrote:

[#102808] Re: Unit tests ... not just for the young — Michael Campbell <michael.campbell@...> 2004/06/08

> Non-college grads, though, never got hired unless they could prove their

[#102819] Re: Unit tests ... not just for the young — "Sean O'Dell" <sean@...> 2004/06/08

On Tuesday 08 June 2004 10:03, Michael Campbell wrote:

[#102822] Re: Unit tests ... not just for the young — Jim Freeze <jim@...> 2004/06/08

On Wednesday, 9 June 2004 at 3:52:21 +0900, Sean O'Dell wrote:

[#102823] Re: Unit tests ... not just for the young — Michael Campbell <michael.campbell@...> 2004/06/08

>

[#102824] Re: Unit tests ... not just for the young — "Sean O'Dell" <sean@...> 2004/06/08

On Tuesday 08 June 2004 12:12, Michael Campbell wrote:

[#102731] Interfaces and semantics (or, how to hashpipe a duck) — Hal Fulton <hal9000@...>

Semantics, James Thurber notwithstanding, is not a town in Ohio.

34 messages 2004/06/08
[#102814] Re: Interfaces and semantics (or, how to hashpipe a duck) — djberg96@... (Daniel Berger) 2004/06/08

"Sean O'Dell" <sean@celsoft.com> wrote in message news:<200406080736.32485.sean@celsoft.com>...

[#102818] Re: Interfaces and semantics (or, how to hashpipe a duck) — "Sean O'Dell" <sean@...> 2004/06/08

On Tuesday 08 June 2004 11:23, Daniel Berger wrote:

[#102839] Re: Interfaces and semantics (or, how to hashpipe a duck) — "David A. Black" <dblack@...> 2004/06/08

Hi --

[#102788] ruby and mustard — "Ara.T.Howard" <Ara.T.Howard@...>

20 messages 2004/06/08

[#102817] Ruby/Interface — "Sean O'Dell" <sean@...>

Ruby/Interface 0.1-1

18 messages 2004/06/08

[#102863] oddities with select — Ben Giddings <bg-rubytalk@...>

I'm trying to use Ruby to talk to an network application, and noticed

21 messages 2004/06/08

[#102890] Re: Unit tests ... not just for the young — "Pe, Botp" <botp@...>

Gennady [mailto:gfb@tonesoft.com] wrote:

39 messages 2004/06/09
[#102891] Re: Unit tests ... not just for the young — Jim Freeze <jim@...> 2004/06/09

On Wednesday, 9 June 2004 at 11:46:12 +0900, "Pe?a, Botp" wrote:

[#102896] Re: Unit tests ... not just for the young — Dan Tapp <dhtapp@..._sig_line.com> 2004/06/09

Jim Freeze wrote:

[#102900] Re: Unit tests ... not just for the young — Tyler Zesiger <mailing-lists@...> 2004/06/09

I'd be afraid to hire a code-monkey who said yes.

[#102929] Re: Unit tests ... not just for the young — Tom Copeland <tom@...> 2004/06/09

On Wed, 2004-06-09 at 01:21, Tyler Zesiger wrote:

[#102930] Re: [OT] Re: Unit tests ... not just for the young — Michael Campbell <michael.campbell@...> 2004/06/09

On Wed, 9 Jun 2004 22:48:30 +0900, Tom Copeland <tom@infoether.com> wrote:

[#102931] Re: [OT] Re: Unit tests ... not just for the young — Tom Copeland <tom@...> 2004/06/09

On Wed, 2004-06-09 at 09:56, Michael Campbell wrote:

[#102934] Re: [OT] Re: Unit tests ... not just for the young — Jim Freeze <jim@...> 2004/06/09

On Wednesday, 9 June 2004 at 23:02:22 +0900, Tom Copeland wrote:

[#102978] Re: [OT] Re: Unit tests ... not just for the young — Jean-Hugues ROBERT <jean_hugues_robert@...> 2004/06/09

At 23:21 09/06/2004 +0900, you wrote:

[#102914] strip DOS ^Ms? — Dick Davies <rasputnik@...>

15 messages 2004/06/09

[#102922] Active Record 0.8.3: Modules, mapping, and transactions — David Heinemeier Hansson <david@...>

What's new in Active Record 0.8.3?

12 messages 2004/06/09

[#102950] #include <re.h> required for Opteron but not Pentium. — Jim Freeze <jim@...>

Hi

14 messages 2004/06/09
[#103007] Re: #include <re.h> required for Opteron but not Pentium. — Tim Hunter <cyclists@...> 2004/06/09

On Thu, 10 Jun 2004 03:58:55 +0900, Jim Freeze wrote:

[#102951] History of Languages poster from O'Reilly — djberg96@... (Daniel Berger)

Hi all,

12 messages 2004/06/09

[#103072] Graphing 2Ds in Python is pretty easy... — piir@... (Todd Gardner)

Hello everyone,

16 messages 2004/06/10

[#103172] Array#rest — Charles Comstock <cc1@...>

I find myself frequently using array slice of 1..-1, to pass the rest of an

25 messages 2004/06/11

[#103217] Switch to .ruby extension? — doodpants@... (Karl von Laudermann)

The current convention for Ruby source file names is to end them with

72 messages 2004/06/11
[#103228] Re: Switch to .ruby extension? — Tyler Zesiger <mailing-lists@...> 2004/06/11

The obsessive levels of abbreviation in the *nix world infuriate me.

[#103580] Re: Switch to .ruby extension? — "SER" <ser@...> 2004/06/14

> I remember when I first started using linux (now I use FreeBSD, which

[#103599] Re: Switch to .ruby extension? — Tyler Zesiger <mailing-lists@...> 2004/06/14

I don't know how much of the thread you read through, but I repeated at

[#103602] Re: Switch to .ruby extension? — "Sean O'Dell" <sean@...> 2004/06/14

On Monday 14 June 2004 16:13, Tyler Zesiger wrote:

[#103605] Re: Switch to .ruby extension? — "Zach Dennis" <zdennis@...> 2004/06/14

>Most programmers

[#103608] Re: Switch to .ruby extension? — "Sean O'Dell" <sean@...> 2004/06/15

On Monday 14 June 2004 16:46, Zach Dennis wrote:

[#103618] Re: Switch to .ruby extension? — Sam Roberts <sroberts@...> 2004/06/15

Quoteing sean@celsoft.com, on Tue, Jun 15, 2004 at 09:40:26AM +0900:

[#103622] Re: Switch to .ruby extension? — "Sean O'Dell" <sean@...> 2004/06/15

On Monday 14 June 2004 19:09, Sam Roberts wrote:

[#103673] Re: Switch to .ruby extension? — Sam Roberts <sroberts@...> 2004/06/15

Wrote Sean O'Dell <sean@celsoft.com>, on Tue, Jun 15, 2004 at 11:36:18AM +0900:

[#103239] Re: Switch to .ruby extension? [OT] — Mark Hubbart <discord@...> 2004/06/11

[#103246] Re: Switch to .ruby extension? [OT] — Tyler Zesiger <mailing-lists@...> 2004/06/11

I think I may be earning myself a reputation as a user-friendliness

[#103252] Re: Switch to .ruby extension? [OT] — "Zach Dennis" <zdennis@...> 2004/06/11

[#103258] Re: Switch to .ruby extension? [OT] — Tyler Zesiger <mailing-lists@...> 2004/06/11

[#103225] celsoft.com/Battery 0.1.1 — "Sean O'Dell" <sean@...>

Battery is a unit testing framework for Ruby. It captures all standard error

61 messages 2004/06/11
[#103236] Re: [ANN] celsoft.com/Battery 0.1.1 — "David A. Black" <dblack@...> 2004/06/11

Hi --

[#103250] Re: [ANN] celsoft.com/Battery 0.1.1 — "Sean O'Dell" <sean@...> 2004/06/11

On Friday 11 June 2004 11:47, David A. Black wrote:

[#103267] Re: [ANN] celsoft.com/Battery 0.1.1 — "David A. Black" <dblack@...> 2004/06/12

Hi --

[#103275] Re: [ANN] celsoft.com/Battery 0.1.1 — "Sean O'Dell" <sean@...> 2004/06/12

On Friday 11 June 2004 18:08, David A. Black wrote:

[#103308] Re: [ANN] celsoft.com/Battery 0.1.1 — "David A. Black" <dblack@...> 2004/06/12

On Sat, 12 Jun 2004, Sean O'Dell wrote:

[#103329] Re: [ANN] celsoft.com/Battery 0.1.1 — "Sean O'Dell" <sean@...> 2004/06/12

On Saturday 12 June 2004 03:49, David A. Black wrote:

[#103353] Re: [ANN] celsoft.com/Battery 0.1.1 — "David A. Black" <dblack@...> 2004/06/12

> arbitrary:

[#103366] Re: [ANN] celsoft.com/Battery 0.1.1 — "Sean O'Dell" <sean@...> 2004/06/12

On Saturday 12 June 2004 13:34, David A. Black wrote:

[#103389] Re: [ANN] celsoft.com/Battery 0.1.1 — Jean-Hugues ROBERT <jean_hugues_robert@...> 2004/06/13

At 08:12 13/06/2004 +0900, you wrote:

[#103525] Re: [ANN] celsoft.com/Battery 0.1.1 — "Sean O'Dell" <sean@...> 2004/06/14

On Sunday 13 June 2004 00:13, Jean-Hugues ROBERT wrote:

[#103533] Re: [ANN] celsoft.com/Battery 0.1.1 — James Britt <jamesUNDERBARb@...> 2004/06/14

Sean O'Dell wrote:

[#103536] Re: [ANN] celsoft.com/Battery 0.1.1 — "Sean O'Dell" <sean@...> 2004/06/14

On Monday 14 June 2004 09:27, James Britt wrote:

[#103412] Re: [ANN] celsoft.com/Battery 0.1.1 — Nathaniel Talbott <nathaniel@...> 2004/06/13

On Jun 12, 2004, at 12:28, Sean O'Dell wrote:

[#103413] Re: [ANN] celsoft.com/Battery 0.1.1 — Jamis Buck <jgb3@...> 2004/06/13

Nathaniel Talbott wrote:

[#103532] Re: [ANN] celsoft.com/Battery 0.1.1 — "Sean O'Dell" <sean@...> 2004/06/14

On Sunday 13 June 2004 07:52, Jamis Buck wrote:

[#103293] Any way to get the calling method's binding? — Gavin Sinclair <gsinclair@...>

Something I've wanted to do on a few occasions recently is to evaluate

13 messages 2004/06/12

[#103328] OpenSSL: patch — Jamis Buck <jgb3@...>

Attached is a patch for the Ruby/OpenSSL module, done against the code

25 messages 2004/06/12

[#103334] undefine — tony summerfelt <snowzone5@...>

is there a way to undefine a variable?

43 messages 2004/06/12
[#103405] Re: undefine — "Robert Klemme" <bob.news@...> 2004/06/13

[#103438] undefine — tony summerfelt <snowzone5@...> 2004/06/13

On Sun, 13 Jun 2004 20:08:48 +0900, you wrote:

[#103465] Re: undefine — Claus Spitzer <DocBoobenstein@...> 2004/06/14

Again, this is where it's useful to consider the OO approach and think

[#103550] undefine — tony summerfelt <snowzone5@...> 2004/06/14

On Mon, 14 Jun 2004 16:18:32 +0900, you wrote:

[#103560] Re: undefine — Michael Campbell <michael.campbell@...> 2004/06/14

> i just need the variable to 'not exist' however it's thought about (by

[#103335] "www.ruby-lang.org" still down for maintenance - thats not good — Lothar Scholz <mailinglists@...>

Hello,

12 messages 2004/06/12

[#103381] Ruby /.'ted — Dan Tapp <dhtapp@..._sig_line.com>

Ruby was just slashdotted under "Developers: Searching for the Best

14 messages 2004/06/13

[#103404] How to read a .csv file into a 2D array? — piir@... (Todd Gardner)

Hello everyone,

16 messages 2004/06/13

[#103468] Non-standard library project — Gavin Sinclair <gsinclair@...>

Hi all,

28 messages 2004/06/14

[#103650] "Litte Ruby" book — Csaba Henk <csaba@..._for_avoiding_spam.org>

The book (or book-germ) entitled "A Little Ruby, A Lot of Objects" was

15 messages 2004/06/15

[#103697] a newbie question about main, Object... — "Sam Sungshik Kong" <ssk@...>

Hello!

14 messages 2004/06/15

[#103742] Re: [ANN] celsoft.com/Battery 0.1.1 — "Austin Ziegler" <Austin.Ziegler@...>

Sean O'Dell [mailto:sean@celsoft.com] :

17 messages 2004/06/15
[#103744] Re: [ANN] celsoft.com/Battery 0.1.1 — "Sean O'Dell" <sean@...> 2004/06/15

On Tuesday 15 June 2004 13:53, Austin Ziegler wrote:

[#103874] Bidirectional named pipes on Linux — ptkwt@... (Phil Tomson)

12 messages 2004/06/16

[#103930] introducing Hash-like mixin — gabriele renzi <surrender_it@...1.vip.ukl.yahoo.com>

Hi gurus and nubys,

17 messages 2004/06/17

[#103974] the new great computer language shootout — ptkwt@... (Phil Tomson)

26 messages 2004/06/17
[#103975] Re: the new great computer language shootout — Lennon Day-Reynolds <rcoder@...> 2004/06/17

Part of the speedup appears to be from their use of the Psyco JIT

[#103986] Re: the new great computer language shootout — Eric Hodel <drbrain@...7.net> 2004/06/17

Lennon Day-Reynolds (rcoder@gmail.com) wrote:

[#103992] Re: the new great computer language shootout — Eric Hodel <drbrain@...7.net> 2004/06/17

Eric Hodel (drbrain@segment7.net) wrote:

[#103977] How to make generic #== method? — Zakaria <zakaria@...>

Hi,

13 messages 2004/06/17

[#103993] Generating "real-time" 2D line plots in Windows 2k? — piir@... (Todd Gardner)

Hello everyone,

11 messages 2004/06/17

[#104182] rubys web performance — Florian Weber <csshsh@...>

hi!

31 messages 2004/06/20

[#104222] About top-level method — "Sam Sungshik Kong" <ssk@...>

Hello!

15 messages 2004/06/21

[#104272] A question about Class and Object — "Sam Sungshik Kong" <ssk@...>

Hello!

18 messages 2004/06/21

[#104364] Newbie question - how to replace multiple whitespace within a string? — Brian Tully <btully@...>

Sorry if this is too basic a question but I just inherited a handful of Ruby

10 messages 2004/06/22

[#104455] rubygems thoughts — Hans Fugal <fugalh@...>

My participation here is sporadic at best, so forgive me if these

34 messages 2004/06/24
[#104459] Re: rubygems thoughts — "Jim Weirich" <jim@...> 2004/06/24

[#104465] Re: rubygems thoughts — Hans Fugal <hfugal@...> 2004/06/24

Jim Weirich wrote:

[#104466] Re: rubygems thoughts — "Sean O'Dell" <sean@...> 2004/06/24

On Thursday 24 June 2004 10:18, Hans Fugal wrote:

[#104494] Is it considered Harmful? — "rolo" <rohitlodha@...>

Hi

133 messages 2004/06/24
[#104495] Re: Is it considered Harmful? — "Sean O'Dell" <sean@...> 2004/06/24

On Thursday 24 June 2004 16:15, rolo wrote:

[#104498] Re: Is it considered Harmful? — Eric Hodel <drbrain@...7.net> 2004/06/24

Sean O'Dell (sean@celsoft.com) wrote:

[#104499] Re: Is it considered Harmful? — "rolo" <rohitlodha@...> 2004/06/25

> Sean O'Dell (sean@celsoft.com) wrote:

[#104500] Re: Is it considered Harmful? — "Sean O'Dell" <sean@...> 2004/06/25

On Thursday 24 June 2004 17:23, rolo wrote:

[#104526] Re: Is it considered Harmful? — ts <decoux@...> 2004/06/25

>>>>> "S" == Sean O'Dell <sean@celsoft.com> writes:

[#104539] Re: Is it considered Harmful? — "Sean O'Dell" <sean@...> 2004/06/25

On Friday 25 June 2004 02:19, ts wrote:

[#104542] Re: Is it considered Harmful? — Dave Thomas <dave@...> 2004/06/25

[#104587] Re: Is it considered Harmful? — "Sean O'Dell" <sean@...> 2004/06/25

On Friday 25 June 2004 08:57, Dave Thomas wrote:

[#104636] Re: Is it considered Harmful? — ts <decoux@...> 2004/06/26

>>>>> "S" == Sean O'Dell <sean@celsoft.com> writes:

[#104646] Re: Is it considered Harmful? — "Sean O'Dell" <sean@...> 2004/06/26

On Saturday 26 June 2004 04:19, ts wrote:

[#104663] Re: Is it considered Harmful? — ts <decoux@...> 2004/06/27

>>>>> "S" == Sean O'Dell <sean@celsoft.com> writes:

[#104694] Re: Is it considered Harmful? — "Sean O'Dell" <sean@...> 2004/06/27

On Sunday 27 June 2004 01:41, ts wrote:

[#104699] Re: Is it considered Harmful? — Patrick May <patrick@...> 2004/06/27

I think that #become and #class= are _theoretically_ wrong. Such a

[#104700] Re: Is it considered Harmful? — "Sean O'Dell" <sean@...> 2004/06/27

On Sunday 27 June 2004 13:44, Patrick May wrote:

[#104701] Re: Is it considered Harmful? — Patrick May <patrick@...> 2004/06/27

On Sunday, June 27, 2004, at 05:20 PM, Sean O'Dell wrote:

[#104706] Re: Is it considered Harmful? — "Sean O'Dell" <sean@...> 2004/06/27

On Sunday 27 June 2004 14:48, Patrick May wrote:

[#104710] Re: Is it considered Harmful? — Patrick May <patrick@...> 2004/06/27

Sean,

[#104712] Re: Is it considered Harmful? — "Sean O'Dell" <sean@...> 2004/06/27

On Sunday 27 June 2004 15:43, Patrick May wrote:

[#104714] Re: Is it considered Harmful? — Patrick May <patrick@...> 2004/06/27

[#104715] Re: Is it considered Harmful? — "Sean O'Dell" <sean@...> 2004/06/28

On Sunday 27 June 2004 16:53, Patrick May wrote:

[#104716] Re: Is it considered Harmful? — Patrick May <patrick@...> 2004/06/28

[#104724] Re: Is it considered Harmful? — "Sean O'Dell" <sean@...> 2004/06/28

On Sunday 27 June 2004 17:30, Patrick May wrote:

[#104754] Re: Is it considered Harmful? — Patrick May <patrick@...> 2004/06/28

Sean,

[#104763] Re: Is it considered Harmful? — "Sean O'Dell" <sean@...> 2004/06/28

On Monday 28 June 2004 05:45, Patrick May wrote:

[#104764] Re: Is it considered Harmful? — Mikael Brockman <phubuh@...> 2004/06/28

"Sean O'Dell" <sean@celsoft.com> writes:

[#104766] Re: Is it considered Harmful? — "Sean O'Dell" <sean@...> 2004/06/28

On Monday 28 June 2004 08:33, Mikael Brockman wrote:

[#104767] Re: Is it considered Harmful? — Austin Ziegler <halostatue@...> 2004/06/28

On Tue, 29 Jun 2004 00:58:22 +0900, Sean O'Dell <sean@celsoft.com> wrote:

[#104769] Re: Is it considered Harmful? — "Sean O'Dell" <sean@...> 2004/06/28

On Monday 28 June 2004 09:27, Austin Ziegler wrote:

[#104787] Re: [OT] Re: Is it considered Harmful? — "Bill Kelly" <billk@...> 2004/06/28

Hi,

[#104533] Re: Is it considered Harmful? — Scott Rubin <srubin@...> 2004/06/25

I can't possibly imagine it being useful to do this except when the

[#104535] Re: Is it considered Harmful? — "Jim Weirich" <jim@...> 2004/06/25

[#104501] Building Ruby on AIX -- again — Matt Lawrence <matt@...>

I finally have a stable system to use to try to build Ruby. Here's the

18 messages 2004/06/25
[#104510] Re: Building Ruby on AIX -- again — nobu.nokada@... 2004/06/25

Hi,

[#104511] Re: Building Ruby on AIX -- again — Matt Lawrence <matt@...> 2004/06/25

On Fri, 25 Jun 2004 nobu.nokada@softhome.net wrote:

[#104512] Re: Building Ruby on AIX -- again — nobu.nokada@... 2004/06/25

Hi,

[#104513] Re: Building Ruby on AIX -- again — Matt Lawrence <matt@...> 2004/06/25

On Fri, 25 Jun 2004 nobu.nokada@softhome.net wrote:

[#104601] OSCON Ruby tutorials cancelled? — ptkwt@... (Phil Tomson)

14 messages 2004/06/25

[#104637] SQLite-Ruby and "other chrs" — Meino Christian Cramer <Meino.Cramer@...>

Hi,

13 messages 2004/06/26

[#104649] Writing UNIX 'wc' program — "@*(&SPAM&)*optonline.net" <" kboruff\""@*.*optonline.net>

Hey all,

13 messages 2004/06/27

[#104737] (oddity) applying objects with #call() implicitly — gabriele renzi <surrender_it@...1.vip.ukl.yahoo.com>

Hi gurus and nubys,

16 messages 2004/06/28

[#104864] arrayfields-3.0.0 — "Ara.T.Howard" <Ara.T.Howard@...>

URLS:

16 messages 2004/06/29

require vs require_gem

From: "Gavin Sinclair" <gsinclair@...>
Date: 2004-06-17 03:08:12 UTC
List: ruby-talk #103905
>> [Botp:]
>> Thanks.
>> Btw, if I use the packager, do I need to change anything in my ruby
>> programs? In rubygems, I have to add require_gem eg.
>>

> [Rich Kilmer:]
> Actually, because of our stub capability, you don't need to do
> require_gem anymore.
>
> You can just:
>
> require "ruvi"
>
> And it now works.  The 'stub' is a file in site_ruby/1.8 (named ruvi.rb)
> which contains:
>
> require 'rubygems'
> require_gem 'ruvi'
>
> So, require_gem is not longer necessary UNLESS you need to require a
> particular version of a library.  In that case you need the require_gem
> because it takes the optional second parameter that holds the version
> requirement.

I'd like to make some comments on the use of 'require' vs 'require_gem' in
general.

'require' is as old as Ruby, and it's something people use all the time. 
'require_gem' is new and commonly perceived as a hassle because it
involves a dependency (RubyGems), and you have to do "require 'rubygems'"
first.

I'm not going to argue that it's _never_ a hassle, but in many contexts,
using 'require_gem' is just fine.

If you are writing a program for home or work use, where you control the
runtime environment, then this is a reasonable approach:
 * in the "base file" of your project, require 'rubygems'
 * in other project files, require the "base file"
 * now 'require_gem' is available wherever you like

For instance, my work project is called 'dmv1'.  Nevermind what that
means.  So I have 'lib/dmv1.rb' which is the "base file", which defines
some modules, constants, etc., that are used across the board. 
'lib/dmv1/**/*.rb' all "require 'dmv1'" and build on those modules.  So
without any real effort -- just some thought in project structure --
require_gem is available everywhere.

The only gem I'm actually using in the project is ActiveRecord.  Of
course, I could just "require 'active_record'" instead of bothering with
the gem, since the stub is installed as well.  However, while I like the
stub system, I see it as a convenience, not something I would make a
project depend on.  Since it's actually quite easy for me to use
require_gem, I do so.

OK, so much for in-house projects.  What about a more general project that
gets released on RubyForge and where the author has no control over the
target environment?  In that case, the project author will probably be
loath to *depend* on RubyGems, and will target the lowest common
denominator: i.e. having the file installed in site_ruby.  For example,
David H. H. encourages people to install ActiveRecord via RubyGems, but to
ensure the stub is installed as well.  In the project code, such authors
are unlikely to actually use require_gem.  So RubyGems is effectively
limited to a distribution (and package management) mechanism, not a
runtime concern.

Targeting the lowest common denominator is a tried and true software
practice.  At some point in the future, however, I hope RubyGems is a
guaranteed part of every (new) Ruby installation, and is therefore a
common enough denominator for authors to target in *general* code, not
just tightly controlled in-house efforts.

The benefits of preferring to use require_gem instead of require in
general code such as this are not obvious, and perhaps not even real, from
the point of view of the project's author.  The direct benefit is that you
can specify the version requirement of the gem that you are loading. 
That's probably a concern in only a minority of projects, and even then,
the real or perceived hassle of using require_gem might outweigh the real
or perceived benefit of such version constraining ability.  The indirect
benefit of using require_gem is that a Ruby ecosystem based on RubyGems is
better than one based on site_ruby, and each usage of require_gem helps
make that ecosystem a reality.

Neither of these benefits - direct and indirect - of targeting RubyGems in
a general released project actually bring any benefit to the authors of
most projects, since they don't need the version constraints, and their
contribution to the ecosystem is an evolutionary step.  Evolutionary steps
tend to be small and unnoticed in and of themselves, so there's not much
incentive for a project author to deliberately do it.

In summary, concerns about target environments are likely to limit the
features of RubyGems that are commonly used for some time.  Assuming it
does become a real standard sometime in the future, it will be a sliding
scale of usage between now and then.  During the life of RubyGems
(effectively the six months of this year), it has been propelled by people
making an effort to use it and giving feedback to the development team. 
We are very grateful for this input; without it we would have only made
half the progress we have.

RubyGems as an excellent package installer and manager is a good place to
be.  RubyGems as part of the runtime fabric is also good and is
technically implemented.  It will probably also be socially implemented in
time.  Between now and then lies a lot of evolutionary steps.  Knowing the
feelings of the community during this transition via general discussion
and specific feedback is essential.

Cheers,
Gavin

P.S.  Keep those gems coming!  If you are a project author and would like
help creating and releasing a gem, email me.  Remember that releasing a
gem file on RubyForge means it automatically becomes available via remote
install, offering a tremendous convenience to the Ruby community.  Look at
http://gems.rubyforge.org/gems to see what's available already.

P.P.S.  If you are an enthusiatic user of a particular project, or your
project depends on it, and it's not available as a gem, then you can offer
to help its author release it as a gem.  A lot of people will benefit from
this small effort.




In This Thread

Prev Next