[#101945] Database vs Filesystem — Sven Schott <sven_schott@...>
I am writing a very simple web based file/asset manager. I was
il Tue, 1 Jun 2004 09:46:22 +0900, Sven Schott
[#101947] What's wrong with modruby? — Xiangrong Fang <xrfang@...>
Hi,
[#101951] DBI question - last inserted id? — Nick Bicknell <ninux@...>
Hi,
[#101991] Gateway appears to be working!! — "David A. Black" <dblack@...>
Hi --
And I can even reply to messages that already exist! Yee-haw!
[#102003] stable snapshot — "Ara.T.Howard" <Ara.T.Howard@...>
[#102028] What is the equivalent of Python's "%s" % "MyString"? — "Sam Sungshik Kong" <ssk@...>
Hello!
Hi,
[#102042] Blocks and Closures — Alex McHale <alexmchale@...>
If this is covered elsewhere, please point me in the right direction.
Alex McHale wrote:
[#102050] Obfuscating Ruby Code. — "Ken Hilton" <kenosis@...>
Does anyone know of a Ruby source code obfuscator that's reliable and
Philipp Kern <trash@philkern.de> wrote in message news:<slrncbrv95.qmp.trash@o2.net.philkern.de>...
On Wed, Jun 02, 2004 at 06:08:39AM +0900, Ken Hilton wrote:
Hello Michael,
>On Wed, 2 Jun 2004, David A. Black wrote:
Great minds think alike. Coincidentally, my wife came to the same
[#102067] Problem installing the Ruby Eclipse plug-in — Vincent Foley <vinfoley@...>
Hi,
[#102081] Equality of constants — "Luke A. Kanies" <luke@...>
If I run the following code:
[#102146] ruby-dev summary 23566-23622 — "Takaaki Tateishi" <ttate@...>
Hello,
On Thu, Jun 03, 2004 at 12:00:51AM +0900, Takaaki Tateishi wrote:
[#102147] Active Record 0.8.0: Transaction that! — David Heinemeier Hansson <david@...>
What's new in Active Record 0.8.0?
[#102164] looking for host supporting modruby — Geiregat Jonas <eniac@...>
Hello
Paul Vudmaska <paul@vudmaska.com> wrote in message news:<40BE0774.7050205@vudmaska.com>...
[#102170] Floating point division operator /. (or fdiv method) — Michael Neumann <mneumann@...>
Hi,
Hi --
Robert Klemme wrote:
On Fri, Jun 04, 2004 at 09:48:00AM +0900, Jim Weirich wrote:
Paul Brannan wrote:
On Sat, Jun 05, 2004 at 09:24:28AM +0900, Jim Weirich wrote:
[#102183] A bug in logical 'or' with regexp? — Gennady <gfb@...>
[#102202] supply option hash to Regexp.new — Simon Strandgaard <neoneye@...>
Regexp.new is old, and relies on C'ish magic values.
+1
[#102215] Help with fox-tool — Nigel Wilkinson <nigel@...>
I've been playing with this app and think it shows great promise.
[#102230] Re: What is the equivalent of Python's "%s" % "MyString"? — "Pe, Botp" <botp@...>
GGarramuno@aol.com [mailto:GGarramuno@aol.com] wrote:
[#102231] Reply wasn't posted; will test new post — "Pe, Botp" <botp@...>
Hi ALL:
Hi --
Hello David, ruby-talk, c.l.r.,
On Fri, Jun 04, 2004 at 06:18:43PM +0900, Robert Klemme wrote:
[#102256] Extending Objects Without Inheritance — alexg@... (Alex Gutteridge)
Hi,
[#102268] looking for algorithms: e, sqrt,... — Ralf Mler <r_mueller@...>
Moin,
[#102365] Re: Gem 0.4 segfaults on winxp upon install — "Pe, Botp" <botp@...>
Chad Fowler [mailto:chadfowler@gmail.com] helpfully wrote:
[#102366] Active Record 0.8.2: Inheritable callback ques — David Heinemeier Hansson <david@...>
What's new in Active Record 0.8.2?
David Heinemeier Hansson wrote:
Raphael Bauduin wrote:
Raphael Bauduin wrote:
[#102384] Transfering files using drb (distributed Ruby) — Francis Joanis <fjoanis@..._.ca>
Hello everyone,
[#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
[#102412] Check assertion in Ruby — Edgardo Hames <ehames@...>
Hi, everybody. I would like to use an assert like function to test the
On Sat, Jun 05, 2004 at 03:34:47AM +0900, Edgardo Hames wrote:
Michael Neumann wrote:
[#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,
Hi,
Sean O'Dell wrote:
On Sat, 5 Jun 2004, Sean O'Dell wrote:
Hi --
On Sat, 5 Jun 2004, David A. Black wrote:
On Saturday 05 June 2004 15:03, Ara.T.Howard wrote:
On Saturday 05 June 2004 02:28, Robert Klemme wrote:
On Saturday 05 June 2004 10:39, Dave Thomas wrote:
On Saturday 05 June 2004 13:30, Dave Thomas wrote:
On Saturday 05 June 2004 20:23, Dave Thomas wrote:
Sean O'Dell wrote:
On Saturday 05 June 2004 21:05, John W. Long wrote:
Sean O'Dell wrote:
Hi --
David A. Black wrote:
il Sat, 5 Jun 2004 11:15:37 +0900, "Sean O'Dell" <sean@celsoft.com> ha
On Saturday 05 June 2004 15:01, John W. Long wrote:
il Sun, 6 Jun 2004 17:10:57 +0900, Jeff Mitchell
"Sean O'Dell" <sean@celsoft.com> writes:
"Sean O'Dell" <sean@celsoft.com> writes:
param.respond_to? '[]' and
Hi --
I'm going to chime on this thread in two areas:
Sean O'Dell wrote:
On Saturday 12 June 2004 04:23, Rene van Bevern wrote:
[#102438] Re: Gem resolved back - was RE: Gem 0.4 segfaults on winxp upon i nsta ll) — "Pe, Botp" <botp@...>
Chad Fowler [mailto:chad@chadfowler.com] wrote:
[#102445] class A::B verses module A ; class B — quixoticsycophant@... (Jeff Mitchell)
module A
Thanks for all the help with my last set of questions.
[#102481] Net::SSH update — Jamis Buck <jgb3@...>
Well, the thunderous silence that followed my query prompted me to
[#102497] Elementary FXDialogBox query — Nigel Wilkinson <nigel@...>
Hi
[#102504] open-uri / net/http bug? — Dick Davies <rasputnik@...>
I was trying to use RSSscraper to pul some web forums, and something
[#102554] How to use "method_missing"? — Xiangrong Fang <xrfang@...>
Hi All,
[#102597] Segfault on embedded ruby. — Godot <garciamj@...>
Hi,
On Tue, Jun 08, 2004 at 09:32:20AM +0900, nobu.nokada@softhome.net wrote:
[#102601] Instiki 0.9.0: Rendering improvements, Latex integration, OS X version — David Heinemeier Hansson <david@...>
What's new in Instiki 0.9.0?
[#102651] Custom marshalling with YAML — Anders Bengtsson <ndrsbngtssn@...>
Hi,
[#102659] Re: How to ducktype a Hash? — "Austin Ziegler" <Austin.Ziegler@...>
David Garamond [mailto:lists@zara.6.isreserved.com]:
[#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
[#102676] memory leak — paul.rogers@... (Paul)
one of my ruby apps has a memory leak. Ive looked through the code and
[#102710] Re: How to ducktype a Hash? — "Austin Ziegler" <Austin.Ziegler@...>
> dblack@wobblini.evault.com
>>>Maybe:
Hi --
[#102716] Re: Unit tests ... not just for the young — "Kloubakov, Yura" <YKloubakov@...>
On Monday 07 June 2004 16:13, Kloubakov, Yura wrote:
> I've worked with some fresh guys right
On Tuesday 08 June 2004 07:55, Michael Campbell wrote:
> Non-college grads, though, never got hired unless they could prove their
On Tuesday 08 June 2004 10:03, Michael Campbell wrote:
On Wednesday, 9 June 2004 at 3:52:21 +0900, Sean O'Dell wrote:
>
On Tuesday 08 June 2004 12:12, Michael Campbell wrote:
> > I wouldn't necessarily disagree, but the absence or presence of a CS
On Tuesday 08 June 2004 12:31, 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.
On Monday 07 June 2004 20:13, Hal Fulton wrote:
Hi,
On Monday 07 June 2004 21:07, nobu.nokada@softhome.net wrote:
"Sean O'Dell" <sean@celsoft.com> wrote in message news:<200406080736.32485.sean@celsoft.com>...
On Tuesday 08 June 2004 11:23, Daniel Berger wrote:
Hi --
On Tuesday 08 June 2004 13:05, David A. Black wrote:
"Sean O'Dell" <sean@celsoft.com> wrote in message news:<200406081352.14108.sean@celsoft.com>...
[#102747] accessing class instance variable from instance method — David Garamond <lists@...6.isreserved.com>
Is there an easier way other than:
[#102750] Ruby Refactoring Browser 0.0.3 — OHBAYASHI Ippei <ohai@...>
Hello,
[#102785] Expressing intent in method calling... — Richard Kilmer <rich@...>
This is not a continuation of the type thread other than trying to continue
[#102788] ruby and mustard — "Ara.T.Howard" <Ara.T.Howard@...>
Can you just use a faster computer? If your working for a company its a
[#102806] How can I use the last returned value? — "Sam Sungshik Kong" <ssk@...>
Hello!
[#102817] Ruby/Interface — "Sean O'Dell" <sean@...>
Ruby/Interface 0.1-1
I decided the library wasn't "Ruby" enough and I got some ideas from Daniel
[#102862] Re: accessing class instance variable from instance method — "Mehr, Assaph (Assaph)" <assaph@...>
>> But you're trying to access a (private) variable on a completely
Mehr, Assaph (Assaph) wrote:
[#102863] oddities with select — Ben Giddings <bg-rubytalk@...>
I'm trying to use Ruby to talk to an network application, and noticed
On Wed, 9 Jun 2004, Ben Giddings wrote:
Ara.T.Howard wrote:
Ben Giddings <bg-rubytalk@infofiend.com> wrote in message news:<40C87DCC.5050309@infofiend.com>...
[#102878] RubyGems 0.6.1 — Chad Fowler <chad@...>
Hi All...
On Wed, 9 Jun 2004, Chad Fowler wrote:
On Wed, 9 Jun 2004 11:43:37 +0900, Charles Comstock <cc1@cec.wustl.edu> wrote:
[#102890] Re: Unit tests ... not just for the young — "Pe, Botp" <botp@...>
Gennady [mailto:gfb@tonesoft.com] wrote:
On Wednesday, 9 June 2004 at 11:46:12 +0900, "Pe?a, Botp" wrote:
Jim Freeze wrote:
I'd be afraid to hire a code-monkey who said yes.
On Wed, 2004-06-09 at 01:21, Tyler Zesiger wrote:
On Wed, 9 Jun 2004 22:48:30 +0900, Tom Copeland <tom@infoether.com> wrote:
On Wed, 2004-06-09 at 09:56, Michael Campbell wrote:
On Wednesday, 9 June 2004 at 23:02:22 +0900, Tom Copeland wrote:
On Wed, 2004-06-09 at 10:21, Jim Freeze wrote:
On Wednesday 09 June 2004 07:33, Tom Copeland wrote:
At 23:21 09/06/2004 +0900, you wrote:
I've had similar experiences...it's frustrating to program on projects
Have you checked out Dylan? It's a bit of an improvement over smalltalk
No I haven't. Eiffel and Dylan are two other languages I've noted
Ruby and Dylan kind of remind me of each other. They were both conceived
Thanks for the indepth reply.
In article <200406091038.40447.sean@celsoft.com>,
[#102894] Outlook Express problems reading comp.lang.ruby — "daz" <dooby@...10.karoo.co.uk>
[#102903] question about private method — wwayya2004@... (wang)
In ruby FAQ :
[#102913] Calling 'C' func through W2k DLL? — piir@... (Todd Gardner)
Hello everyone,
[#102914] strip DOS ^Ms? — Dick Davies <rasputnik@...>
Dick Davies <rasputnik@hellooperator.net> wrote in message news:<20040609105715.GA24830@lb.tenfour>...
[#102918] method with yield via send — Csaba Henk <csaba@..._for_avoiding_spam.org>
Hi!
[#102922] Active Record 0.8.3: Modules, mapping, and transactions — David Heinemeier Hansson <david@...>
What's new in Active Record 0.8.3?
On Wed, 9 Jun 2004 21:15:37 +0900, David Heinemeier Hansson wrote
> David, I'm curious about this design decision. I went the exact
On Thu, 10 Jun 2004 04:30:27 +0900, David Heinemeier Hansson wrote
[#102925] Weird DNS problem with net/http — "Zachary P. Landau" <kapheine@...>
[#102937] Re: [OT] Re: Unit tests ... not just for the young — "Volkmann, Mark" <Mark.Volkmann@...>
> -----Original Message-----
[#102950] #include <re.h> required for Opteron but not Pentium. — Jim Freeze <jim@...>
Hi
On Thu, 10 Jun 2004 03:58:55 +0900, Jim Freeze wrote:
Hi,
On Thursday, 10 June 2004 at 11:12:00 +0900, Nobuyoshi Nakada wrote:
Hi,
On Thursday, 10 June 2004 at 14:06:20 +0900, nobu.nokada@softhome.net wrote:
Quoteing jim@freeze.org, on Thu, Jun 10, 2004 at 03:21:59PM +0900:
[#102951] History of Languages poster from O'Reilly — djberg96@... (Daniel Berger)
Hi all,
Xavier <NOSPAM@keepyourspam.com> wrote in message news:<pan.2004.06.09.16.48.05.917349@keepyourspam.com>...
[#102985] Signals and threads — Gennady <gfb@...>
[#102999] ri IO -> RuntimeError — Stephan K舂per <Stephan.Kaemper@...>
Hi all,
[#103072] Graphing 2Ds in Python is pretty easy... — piir@... (Todd Gardner)
Hello everyone,
[#103085] Smart Quotes — Martin DeMello <martindemello@...>
Trying to save myself a bit of tedium - has anyone already written code
[#103102] RedCloth/Textile question — Jim Menard <jimm@...>
How do I escape naked markup characters like "*" and "+"?
Jim Menard writes:
Jim Menard wrote:
[#103103] Re: Reply wasn't posted; will test new post — "Austin Ziegler" <Austin.Ziegler@...>
http://www.faqs.org/rfcs/rfc1036.html
[#103106] String#scan strangeness — Gennady <gfb@...>
Hi there,
On Thursday 10 June 2004 18:49, Gennady wrote:
[#103122] cgi maintaining state information — Cere Davis <cere@...>
[#103127] library, module, or...? — tony summerfelt <snowzone5@...>
i have a class i'm working on:
[#103158] Re: The dangers of sleeping ... — Dale Martenson <dmartenson@...>
> -----Original Message-----
[#103171] ri not work in Ruby Installer for Windows — Zakaria <zakaria@...>
I just installed ruby181-13.exe from rubyforge.net . It works great
[#103172] Array#rest — Charles Comstock <cc1@...>
I find myself frequently using array slice of 1..-1, to pass the rest of an
Alexander Kellett <ruby-lists@lypanov.net> writes:
[#103217] Switch to .ruby extension? — doodpants@... (Karl von Laudermann)
The current convention for Ruby source file names is to end them with
Karl von Laudermann wrote:
The obsessive levels of abbreviation in the *nix world infuriate me.
> I remember when I first started using linux (now I use FreeBSD, which
I don't know how much of the thread you read through, but I repeated at
On Monday 14 June 2004 16:13, Tyler Zesiger wrote:
>Most programmers
On Monday 14 June 2004 16:46, Zach Dennis wrote:
Quoteing sean@celsoft.com, on Tue, Jun 15, 2004 at 09:40:26AM +0900:
On Monday 14 June 2004 19:09, Sam Roberts wrote:
Wrote Sean O'Dell <sean@celsoft.com>, on Tue, Jun 15, 2004 at 11:36:18AM +0900:
On Tuesday 15 June 2004 07:22, Sam Roberts wrote:
Wrote Sean O'Dell <sean@celsoft.com>, on Wed, Jun 16, 2004 at 03:19:21AM +0900:
On Tuesday 15 June 2004 11:56, Sam Roberts wrote:
I think I may be earning myself a reputation as a user-friendliness
Ok, this is really not the area to discuss the pros and cons of generic
Hi,
[#103225] celsoft.com/Battery 0.1.1 — "Sean O'Dell" <sean@...>
Battery is a unit testing framework for Ruby. It captures all standard error
Hi --
David A. Black writes:
On Jun 11, 2004, at 13:50, Jim Menard wrote:
On Friday 11 June 2004 13:01, Jim Weirich wrote:
On Friday 11 June 2004 11:47, David A. Black wrote:
Hi --
On Friday 11 June 2004 18:08, David A. Black wrote:
On Sat, 12 Jun 2004, Sean O'Dell wrote:
On Saturday 12 June 2004 03:49, David A. Black wrote:
> arbitrary:
On Saturday 12 June 2004 13:34, David A. Black wrote:
At 08:12 13/06/2004 +0900, you wrote:
On Sunday 13 June 2004 00:13, Jean-Hugues ROBERT wrote:
Sean O'Dell wrote:
On Monday 14 June 2004 09:27, James Britt wrote:
On Monday 14 June 2004 11:35, Mark Hubbart wrote:
Sean O'Dell wrote:
On Jun 12, 2004, at 12:28, Sean O'Dell wrote:
Nathaniel Talbott wrote:
On Sunday 13 June 2004 07:52, Jamis Buck wrote:
Gennady wrote:
[#103263] uninitialized constant Magick in RMagick — piir@... (Todd Gardner)
Hello everyone,
[#103266] assignment in conditional warning — Rasputin <one@...>
Why in the world is there a warning, *even with brackets*, for assignments
[#103268] fltk on OS X working? — Jim Freeze <jim@...>
Does anyone have fltk 1.1.x or 1.2 bindings working with OS X?
[#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
Gavin Sinclair wrote:
In the meantime, you could do this:
[#103324] Need help with mod_ruby under Win32 — "Iouri Kloubakov" <ykloubakov@...>
Hi,
[#103328] OpenSSL: patch — Jamis Buck <jgb3@...>
Attached is a patch for the Ruby/OpenSSL module, done against the code
Hi,
Jamis Buck wrote:
John W. Long wrote:
Hi,
nobu.nokada@softhome.net wrote:
[#103334] undefine — tony summerfelt <snowzone5@...>
is there a way to undefine a variable?
On Sun, 13 Jun 2004 20:08:48 +0900, you wrote:
Again, this is where it's useful to consider the OO approach and think
On Mon, 14 Jun 2004 16:18:32 +0900, you wrote:
> i just need the variable to 'not exist' however it's thought about (by
On Tue, 15 Jun 2004 03:37:45 +0900, you wrote:
On Tue, 15 Jun 2004 05:22:40 +0900, tony summerfelt
On Tue, 15 Jun 2004 05:31:30 +0900, you wrote:
Robert Klemme wrote:
At 06:03 15/06/2004 +0900, you wrote:
[#103335] "www.ruby-lang.org" still down for maintenance - thats not good — Lothar Scholz <mailinglists@...>
Hello,
Lothar Scholz wrote:
Cere M. Davis wrote:
Cere M. Davis wrote:
[#103355] setting up a remote repository — Joel VanderWerf <vjoel@...>
[#103381] Ruby /.'ted — Dan Tapp <dhtapp@..._sig_line.com>
Ruby was just slashdotted under "Developers: Searching for the Best
Dan Tapp wrote:
On Wed 16 Jun 2004 at 05:26:54 +0900, Josef 'Jupp' Schugt wrote:
Not to be a pedant, but it means whatever the population wants it to
[#103404] How to read a .csv file into a 2D array? — piir@... (Todd Gardner)
Hello everyone,
[#103414] Windows 2000 is required :( Yuk! — piir@... (Todd Gardner)
Hello everyone,
[#103428] Use a string a object name — Dirk Einecke <dirk.einecke@...>
Hi.
Dirk Einecke wrote:
[#103457] : Replace pack and unpack with OO versions — dejaspam@... (Bill Atkins)
Rather than having code like this:
[#103463] mkdir -p — Martin DeMello <martindemello@...>
Shouldn't Dir.mkdir support something akin to unix's mkdir -p ? i.e.,
[#103468] Non-standard library project — Gavin Sinclair <gsinclair@...>
Hi all,
Are you talking with this guy, yet?
On Tuesday, August 10, 2004, 12:16:06 PM, Stephen wrote:
On Tue, 10 Aug 2004, Gavin Sinclair wrote:
On Wednesday, August 11, 2004, 12:41:23 AM, Ara.T.Howard wrote:
[#103476] method_missing and send — "Neil Mc Laughlin" <nml@...>
I'm in the process of writing a logging package for a project. The actual
Thanks for that. I see that send does indeed call the private method.
[#103491] Rakefile under Cygwin: permission denied — Jim Menard <jimm@...>
The Rakefile
[#103510] idioms for dup/clone — Paul Brannan <pbrannan@...>
Suppose I have an class that needs to implement its own dup/clone
[#103582] Re: undefine — "Austin Ziegler" <Austin.Ziegler@...>
tony summerfelt [mailto:snowzone5@hotmail.com] :
[#103597] Re: undefine — "Warren Brown" <WBrown@...>
Tony,
[#103639] Sam — "daz" <dooby@...10.karoo.co.uk>
[#103646] Small bugs with frozen things — Florian Gross <flgr@...>
Moin!
[#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
Csaba Henk wrote:
[#103654] define_method with singleton classes? — Csaba Henk <csaba@..._for_avoiding_spam.org>
Hi!
[#103665] instiki: how to disable views — Patrick Gundlach <clr1.10.randomuser@...>
Dear instiki users,
> I am not sure if there is a better place to ask (please tell me if
[#103683] Layout Manager questions in FxRuby — "Richard Lionheart" <NoOne@...>
Hi All,
[#103697] a newbie question about main, Object... — "Sam Sungshik Kong" <ssk@...>
Hello!
Sam Sungshik Kong wrote:
[#103742] Re: [ANN] celsoft.com/Battery 0.1.1 — "Austin Ziegler" <Austin.Ziegler@...>
Sean O'Dell [mailto:sean@celsoft.com] :
On Tuesday 15 June 2004 13:53, Austin Ziegler wrote:
Sean O'Dell wrote:
Ben Giddings wrote:
[#103753] Re: [ANN] celsoft.com/Battery 0.1.1 — "Austin Ziegler" <Austin.Ziegler@...>
Sean O'Dell [mailto:sean@celsoft.com] :
[#103784] Re: [ANN] celsoft.com/Battery 0.1.1 — "dross@..." <dross@...>
Ok fine.. I didn't want to act like this but you foreced me.
[#103797] SVG::Graph looks awesome... — piir@... (Todd Gardner)
Hello everyone,
[#103831] http://raa.ruby-lang.org/ problems? — "Ara.T.Howard" <Ara.T.Howard@...>
[#103836] Possibly improvable code — Ralf Mler <r_mueller@...>
Hi,
Am Mittwoch, 16. Juni 2004 16:13 schrieb Ralf Mler:
[#103845] how to design plugin functionality — Florian Weber <csshsh@...>
hi!
[#103855] Dominant O/S for Japanese Ruby users? — "Robert Oschler" <no_replies@..._email_address.invalid>
Does anybody know what the dominant O/S for Japanese Ruby users is? I'm
[#103862] RubyForge projects now have wiki capabilities... — Richard Kilmer <rich@...>
All,
[#103867] Delayed Instantiation - delayed.rb — mhm26@... (matt)
Here's some code I wrote to delay object instantiation until an
It's just you :-)
[#103874] Bidirectional named pipes on Linux — ptkwt@... (Phil Tomson)
[#103876] rpa-base 0.1.0 "kitanai" — Mauricio Fern疣dez <batsman.geo@...>
On Thu, 17 Jun 2004 07:35:11 +0900, Mauricio Fern疣dez
[#103890] Extension which depends on another extension — Jeff Mitchell <quixoticsycophant@...>
[#103905] require vs require_gem — "Gavin Sinclair" <gsinclair@...>
>> [Botp:]
[#103910] RE: require vs require_gem — "Mehr, Assaph (Assaph)" <assaph@...>
[#103929] Re: [ANN] rpa-base 0.1.0 "kitanai" — "Pe, Botp" <botp@...>
Mauricio Fern疣dez [mailto:batsman.geo@yahoo.com] wrote:
[#103930] introducing Hash-like mixin — gabriele renzi <surrender_it@...1.vip.ukl.yahoo.com>
Hi gurus and nubys,
il Thu, 17 Jun 2004 06:27:25 -0600, "Ara.T.Howard" <ahoward@noaa.gov>
On Thursday, June 17, 2004, 11:03:28 PM, gabriele wrote:
[#103933] Emacs Ruby mode & indentation with the tab key wish/bug — Moritz Bunkus <moritz@...>
Heya,
[#103954] More enumerator functionality — Kristof Bastiaensen <kristof@...>
Hi everybody,
[#103974] the new great computer language shootout — ptkwt@... (Phil Tomson)
Part of the speedup appears to be from their use of the Psyco JIT
Lennon Day-Reynolds (rcoder@gmail.com) wrote:
Eric Hodel (drbrain@segment7.net) wrote:
To be honest, some of the numbers seem highly suspect to me. For
On Fri, 18 Jun 2004 08:19:24 +0900, Lennon Day-Reynolds
The Sieve results I got weren't using Psyco; using it, the difference
On Fri, Jun 18, 2004 at 08:57:59AM +0900, Lennon Day-Reynolds wrote:
On Fri, Jun 18, 2004 at 05:38:20PM +0900, Michael Neumann wrote:
[#103977] How to make generic #== method? — Zakaria <zakaria@...>
Hi,
Zakaria wrote:
On Fri, Jun 18, 2004 at 10:15:44AM +0900, Joel VanderWerf wrote:
[#103993] Generating "real-time" 2D line plots in Windows 2k? — piir@... (Todd Gardner)
Hello everyone,
[#103996] Data acquisition software in Windows 2000 — piir@... (Todd Gardner)
Hello everyone,
[#104035] Which classes are installed on my system? — piir@... (Todd Gardner)
Hello everyone,
[#104041] Drb graceful shutdown — han.holl@... (Han Holl)
Hello,
[#104050] ruby one-click installer issue with extensions — "Curt Hibbs" <curt@...>
I'm cross-posting this to see if anyone here can offer more concrete and/or
[#104069] compiling ruby under windows (+ gtk stuff, is the gtk list dead?) — Gergely Kontra <kgergely@...>
Hi!
[#104097] JRuby: How does one keep Java objects as Java objects so they can be used in method calls? — steve.drach@... (Steve Drach)
I'm trying to use JDOM and JRuby (yes I know about RexML). In the following
[#104122] EuRuKo 2004 News — Michael Neumann <mneumann@...>
Hi all,
[#104123] Problems with Rake — Charles Comstock <cc1@...>
How come if a project has a dependency of task clean, which kills all
[#104132] IO#readn — Michael Neumann <mneumann@...>
Hi,
On Sun, 20 Jun 2004, Michael Neumann wrote:
[#104168] StringIO class ? — Lothar Scholz <dummy@...>
Hello, i must set the $stderr to an object that collects the data
[#104182] rubys web performance — Florian Weber <csshsh@...>
hi!
Hello Florian,
Florian Weber wrote:
Florian Weber wrote:
[#104194] Cleaning up IO#popen — evanm@...
I think IO#popen could stand to be changed, and I wanted to run my ideas by
Hi,
Hey,
Hi,
On Tue, Jun 22, 2004 at 08:32:06AM +0900, nobu.nokada@softhome.net wrote:
[#104222] About top-level method — "Sam Sungshik Kong" <ssk@...>
Hello!
[#104272] A question about Class and Object — "Sam Sungshik Kong" <ssk@...>
Hello!
[#104277] opening a file in ext — "Ara.T.Howard" <Ara.T.Howard@...>
On Monday 21 June 2004 14:23, Ara.T.Howard wrote:
[#104286] Full-featured untaint() method for Ruby? — Randy Lawrence <jm@...>
Hi,
[#104292] Rake and timestamps (ideoms or methods?) — ptkwt@... (Phil Tomson)
[#104307] Re: A question about Class and Object — "Mehr, Assaph (Assaph)" <assaph@...>
> Object.class is Class.
[#104311] ext portability question — "Ara.T.Howard" <Ara.T.Howard@...>
[#104312] Anonymous CVS service restart — Shugo Maeda <shugo@...>
-----BEGIN PGP SIGNED MESSAGE-----
[#104319] popen3 and spawn — Hal Fulton <hal9000@...>
When I invoke telnet with PTY.spawn, I can easily send it the
[#104344] Warnings when using RedCloth and Rake — Stephan K舂per <Stephan.Kaemper@...>
Hi all,
[#104362] passing a block in an extension — Charles Mills <cmills@...>
I am trying to write a function in C which calls a Ruby function using
[#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
Brian Tully wrote:
on 6/22/04 3:01 PM, Jamey Cribbs at cribbsj@oakwood.org wrote:
Brian Tully wrote:
on 6/22/04 3:36 PM, Joel VanderWerf at vjoel@PATH.Berkeley.EDU wrote:
[#104395] Re: A question about Class and Object — "Mehr, Assaph (Assaph)" <assaph@...>
[#104411] embedded document meets end of file — Simon Strandgaard <neoneye@...>
I am curious to what that message means?
[#104424] PTY.spawn error-prone? — Hal Fulton <hal9000@...>
I've been playing with PTY and it seems to me that this
[#104428] Re: Why doesn't this work? (CGI) — "Orion Hunter" <orion2480@...>
Forgot to mention that method="GET" doesn't change anything. It appends the
[#104443] does anybody have a win32-binary of quixml? — Torsten <t0rsten@...>
hi!
[#104444] segfault with Gtk::ListStore.reorder — David Espada <davinciSINSPAM@...>
Hi all.
El jueves 24 de junio, Joao Pedrosa escribi鷓
El jueves 24 de junio, Joao Pedrosa escribi鷓
[#104454] N Dimensional Hash? — Jim Freeze <jim@...>
Hi
[#104455] rubygems thoughts — Hans Fugal <fugalh@...>
My participation here is sporadic at best, so forgive me if these
Jim Weirich wrote:
On Thursday 24 June 2004 10:18, Hans Fugal wrote:
On Thursday 24 June 2004 10:48, Jim Weirich wrote:
On Thu, Jun 24, 2004 at 11:24:08PM +0900, Hans Fugal wrote:
On Fri, Jun 25, 2004 at 02:28:09AM +0900, Hans Fugal wrote:
[#104494] Is it considered Harmful? — "rolo" <rohitlodha@...>
Hi
On Thursday 24 June 2004 16:15, rolo wrote:
Sean O'Dell (sean@celsoft.com) wrote:
> Sean O'Dell (sean@celsoft.com) wrote:
il Fri, 25 Jun 2004 16:51:05 +0200, Michael Walter <cm@leetspeak.org>
On Thursday 24 June 2004 17:23, rolo wrote:
>>>>> "S" == Sean O'Dell <sean@celsoft.com> writes:
On Friday 25 June 2004 02:19, ts wrote:
On Friday 25 June 2004 08:57, Dave Thomas wrote:
On Friday 25 June 2004 08:57, Dave Thomas wrote:
>>>>> "S" == Sean O'Dell <sean@celsoft.com> writes:
On Saturday 26 June 2004 04:19, ts wrote:
>>>>> "S" == Sean O'Dell <sean@celsoft.com> writes:
On Sunday 27 June 2004 01:41, ts wrote:
I think that #become and #class= are _theoretically_ wrong. Such a
On Sunday 27 June 2004 13:44, Patrick May wrote:
On Sunday, June 27, 2004, at 05:20 PM, Sean O'Dell wrote:
On Sunday 27 June 2004 14:48, Patrick May wrote:
Sean,
On Sunday 27 June 2004 15:43, Patrick May wrote:
On Sunday 27 June 2004 16:53, Patrick May wrote:
On Sunday 27 June 2004 17:30, Patrick May wrote:
Sean,
On Monday 28 June 2004 05:45, Patrick May wrote:
"Sean O'Dell" <sean@celsoft.com> writes:
Mikael Brockman wrote:
On Monday 28 June 2004 08:33, Mikael Brockman wrote:
On Tue, 29 Jun 2004 00:58:22 +0900, Sean O'Dell <sean@celsoft.com> wrote:
On Monday 28 June 2004 09:27, Austin Ziegler wrote:
"Sean O'Dell" <sean@celsoft.com> writes:
On Monday 28 June 2004 10:06, Mikael Brockman wrote:
Sean O'Dell wrote:
On Mon, 28 Jun 2004 06:20:04 +0900, Sean O'Dell <sean@celsoft.com> wrote:
>>>>> "B" == Bill Kelly <billk@cts.com> writes:
On Friday 25 June 2004 09:16, Bill Kelly wrote:
Hi,
On Monday 28 June 2004 12:09, Bill Kelly wrote:
Sean O'Dell wrote:
On Monday 28 June 2004 12:57, Florian Gross wrote:
Sean O'Dell wrote:
I can't possibly imagine it being useful to do this except when the
On Friday 25 June 2004 06:32, Jim Weirich wrote:
>>>>> "S" == Sean O'Dell <sean@celsoft.com> writes:
[#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
Hi,
On Fri, 25 Jun 2004 nobu.nokada@softhome.net wrote:
Hi,
On Fri, 25 Jun 2004 nobu.nokada@softhome.net wrote:
On Fri, 25 Jun 2004, Matt Lawrence wrote:
Hi,
On Fri, 25 Jun 2004 nobu.nokada@softhome.net wrote:
Hi,
On Fri, 25 Jun 2004 nobu.nokada@softhome.net wrote:
Hi,
On Sat, 26 Jun 2004 nobu.nokada@softhome.net wrote:
[#104505] Problem with mkmf and spaces in directory names? — djberg96@... (Daniel Berger)
Hi all,
[#104576] I am confused with Value Type Objects — "Sam Sungshik Kong" <ssk@...>
Hello!
[#104585] Blocking SOD in clients — Stop SOD <stopsod@...>
Well, lots of people have been discussing this. Sean
[#104601] OSCON Ruby tutorials cancelled? — ptkwt@... (Phil Tomson)
[#104610] ruby-dev summary 23690-23762 — Masayoshi Takahashi <maki@...>
Hello all,
On Sat, Jun 26, 2004 at 08:38:51AM +0900, Masayoshi Takahashi wrote:
[#104613] List of all operators, keywords and such — Meino Christian Cramer <Meino.Cramer@...>
Hi,
[#104616] replacement for amavisd — jm <jm@...>
Spending another day struggling with amavisd-new has got me thinking
[#104637] SQLite-Ruby and "other chrs" — Meino Christian Cramer <Meino.Cramer@...>
Hi,
[#104645] Problem with mkmf on OS X — Andreas Schwarz <usenet@...>
Hello,
[#104649] Writing UNIX 'wc' program — "@*(&SPAM&)*optonline.net" <" kboruff\""@*.*optonline.net>
Hey all,
[#104656] Springz 1.0 — Gavin Kistner <gavin@...>
The Springz library allows you to attach two objects together (in 2D
[#104668] rounding to n decimal digits — David Garamond <lists@...6.isreserved.com>
I often do this:
[#104713] Lafcadio 0.4.0 — sera@... (Francis Hwang)
I've just released Lafcadio 0.4.0, which is the new production
[#104727] does soap have problems with structs? — jm <jm@...>
The following code (testsrv.rb and testclt.rb) generates
[#104737] (oddity) applying objects with #call() implicitly — gabriele renzi <surrender_it@...1.vip.ukl.yahoo.com>
Hi gurus and nubys,
[#104743] get same info as ipconfig? — piir@... (Todd Gardner)
Hello Everyone,
[#104791] system() shouldn't throw exceptions, should it? — Andrew Walrond <andrew@...>
While building a Rubyx distro (the build script is written in ruby) a user has
Hi,
On Tuesday 29 Jun 2004 02:20, nobu.nokada@softhome.net wrote:
I think that throwing an exception is a much more appropriate and
[#104823] Re: Win32API.new( dllname, procname?, importArray?, export?) — "Mehr, Assaph (Assaph)" <assaph@...>
[#104831] Problem using YAML/SYCK on Solaris 8 — ahund@... (andi)
I'm using ruby 1.8.2 (2004-06-28) [sparc-solaris2.8] and yaml/syck
[#104833] Object as an array or hash? — "rolo" <rohitlodha@...>
Hi
[#104838] Ruby Linear Algebra Library — quixoticsycophant@... (Jeff Mitchell)
[ANN] linalg-0.3.2 -- Ruby Linear Algebra Library
[#104856] fix system — "Ara.T.Howard" <Ara.T.Howard@...>
[#104864] arrayfields-3.0.0 — "Ara.T.Howard" <Ara.T.Howard@...>
URLS:
Ara.T.Howard wrote:
On Wed, 30 Jun 2004, Joel VanderWerf wrote:
[#104873] YAML on Mac OS X (Was Re: Problem using YAML/SYCK on Solaris 8) — Patrick May <patrick@...>
why,
[#104895] Re: [ANN] arrayfields-3.0.0 — "Mehr, Assaph (Assaph)" <assaph@...>
On Wed, 30 Jun 2004, Mehr, Assaph (Assaph) wrote:
On Thu, Jul 01, 2004 at 12:12:52AM +0900, Ara.T.Howard wrote:
[#104901] Segfault on gcc on bignum.c — Charles Comstock <cc1@...>
with
[#104908] Pure Ruby XSLT — gm@... (George Moschovitis)
Hello everyone,
[#104912] Opinions on library interface design? — "Kirk Haines" <khaines@...>
I have a question about an interface design issue for Kansas that I wanted
[#104927] QUESTIONS ANSWERED — fannyrogers@...
What really causes crop circles?
OpenSSL: patch
Attached is a patch for the Ruby/OpenSSL module, done against the code
in the snapshot.tar.gz file as currently available from
http://www.ruby-lang.org.
This patch adds functionality necessary to support SSH operations. I
have also added a new method to Cipher::Cipher: called "crypt". I did
this because I couldn't get the update/final stuff to work. This may
have been because I do not have a complete understanding of how they are
*supposed* to work. Still, I have a very hacked-together SSH client in
Ruby now, using the routines provided by this patch.
Please let me know if you have any questions!
--
Jamis Buck
jgb3@email.byu.edu
http://www.jamisbuck.org/jamis
ruby -h | ruby -e
'a=[];readlines.join.scan(/-(.)\[e|Kk(\S*)|le.l(..)e|#!(\S*)/) {|r| a <<
r.compact.first };puts "\n>#{a.join(%q/ /)}<\n\n"'
Attachments (1)
Only in ruby.mod/ext/openssl: :q
diff -ur ruby/ext/openssl/ossl_cipher.c ruby.mod/ext/openssl/ossl_cipher.c
--- ruby/ext/openssl/ossl_cipher.c 2003-09-17 03:05:02.000000000 -0600
+++ ruby.mod/ext/openssl/ossl_cipher.c 2004-06-09 22:27:07.000000000 -0600
@@ -228,6 +228,28 @@
return self;
}
+static VALUE
+ossl_cipher_crypt(VALUE self, VALUE data)
+{
+ EVP_CIPHER_CTX *ctx;
+ VALUE result;
+
+ GetCipher(self, ctx);
+
+ StringValue(data);
+
+ if( RSTRING(data)->len % EVP_CIPHER_CTX_block_size(ctx) )
+ ossl_raise(eCipherError, "data length not multiple of block size" );
+
+ result = rb_str_buf_new( RSTRING(data)->len );
+ if( EVP_Cipher(ctx, RSTRING(result)->ptr, RSTRING(data)->ptr, RSTRING(data)->len ) == 0 )
+ ossl_raise(eCipherError, NULL);
+
+ RSTRING(result)->len = RSTRING(data)->len;
+
+ return result;
+}
+
static VALUE
ossl_cipher_update(VALUE self, VALUE data)
{
@@ -357,6 +379,7 @@
rb_define_method(cCipher, "reset", ossl_cipher_reset, 0);
+ rb_define_method(cCipher, "crypt", ossl_cipher_crypt, 1);
rb_define_method(cCipher, "encrypt", ossl_cipher_encrypt, -1);
rb_define_method(cCipher, "decrypt", ossl_cipher_decrypt, -1);
rb_define_method(cCipher, "update", ossl_cipher_update, 1);
diff -ur ruby/ext/openssl/ossl_pkey_dh.c ruby.mod/ext/openssl/ossl_pkey_dh.c
--- ruby/ext/openssl/ossl_pkey_dh.c 2004-01-08 05:24:22.000000000 -0700
+++ ruby.mod/ext/openssl/ossl_pkey_dh.c 2004-06-06 06:54:45.000000000 -0600
@@ -129,29 +129,33 @@
VALUE arg, gen;
GetPKey(self, pkey);
- rb_scan_args(argc, argv, "11", &arg, &gen);
- if (FIXNUM_P(arg)) {
- if (!NIL_P(gen)) {
- g = FIX2INT(gen);
- }
- if (!(dh = dh_generate(FIX2INT(arg), g))) {
- ossl_raise(eDHError, NULL);
- }
+ if( 0 == rb_scan_args(argc, argv, "02", &arg, &gen) ) {
+ dh = DH_new();
}
else {
- arg = ossl_to_der_if_possible(arg);
- in = ossl_obj2bio(arg);
- dh = PEM_read_bio_DHparams(in, NULL, NULL, NULL);
- if (!dh){
- BIO_reset(in);
- dh = d2i_DHparams_bio(in, NULL);
- }
- BIO_free(in);
- if (!dh) ossl_raise(eDHError, NULL);
+ if (FIXNUM_P(arg)) {
+ if (!NIL_P(gen)) {
+ g = FIX2INT(gen);
+ }
+ if (!(dh = dh_generate(FIX2INT(arg), g))) {
+ ossl_raise(eDHError, NULL);
+ }
+ }
+ else {
+ arg = ossl_to_der_if_possible(arg);
+ in = ossl_obj2bio(arg);
+ dh = PEM_read_bio_DHparams(in, NULL, NULL, NULL);
+ if (!dh){
+ BIO_reset(in);
+ dh = d2i_DHparams_bio(in, NULL);
+ }
+ BIO_free(in);
+ if (!dh) ossl_raise(eDHError, NULL);
+ }
}
if (!EVP_PKEY_assign_DH(pkey, dh)) {
- DH_free(dh);
- ossl_raise(eRSAError, NULL);
+ DH_free(dh);
+ ossl_raise(eRSAError, NULL);
}
return self;
}
@@ -299,7 +303,7 @@
dh = pkey->pkey.dh;
if (!DH_check(dh, &codes)) {
- return Qfalse;
+ return Qfalse;
}
return codes == 0 ? Qtrue : Qfalse;
@@ -315,7 +319,7 @@
dh = pkey->pkey.dh;
if (!DH_generate_key(dh))
- ossl_raise(eDHError, "Failed to generate key");
+ ossl_raise(eDHError, "Failed to generate key");
return self;
}
@@ -342,6 +346,30 @@
return str;
}
+#define dh_bignum_accessors( varname ) \
+ static VALUE \
+ ossl_dh_get_##varname( VALUE self ) \
+ { \
+ EVP_PKEY *pkey; \
+ GetPKeyDH( self, pkey ); \
+ if( pkey->pkey.dh->varname == NULL ) return Qnil; \
+ return ossl_bn_new( pkey->pkey.dh->varname ); \
+ } \
+ static VALUE \
+ ossl_dh_set_##varname( VALUE self, VALUE varname ) \
+ { \
+ EVP_PKEY *pkey; \
+ GetPKeyDH(self, pkey); \
+ if( pkey->pkey.dh->varname != NULL ) BN_clear_free( pkey->pkey.dh->varname ); \
+ pkey->pkey.dh->varname = BN_dup( GetBNPtr( varname ) ); \
+ return varname; \
+ }
+
+dh_bignum_accessors( p )
+dh_bignum_accessors( g )
+dh_bignum_accessors( pub_key )
+dh_bignum_accessors( priv_key )
+
/*
* INIT
*/
@@ -368,6 +396,15 @@
rb_define_method(cDH, "generate_key!", ossl_dh_generate_key, 0);
rb_define_method(cDH, "compute_key", ossl_dh_compute_key, 1);
+ rb_define_method(cDH, "p", ossl_dh_get_p, 0 );
+ rb_define_method(cDH, "p=", ossl_dh_set_p, 1 );
+ rb_define_method(cDH, "g", ossl_dh_get_g, 0 );
+ rb_define_method(cDH, "g=", ossl_dh_set_g, 1 );
+ rb_define_method(cDH, "pub_key", ossl_dh_get_pub_key, 0 );
+ rb_define_method(cDH, "pub_key=", ossl_dh_set_pub_key, 1 );
+ rb_define_method(cDH, "priv_key", ossl_dh_get_priv_key, 0 );
+ rb_define_method(cDH, "priv_key=", ossl_dh_set_priv_key, 1 );
+
rb_define_method(cDH, "params", ossl_dh_get_params, 0);
}
diff -ur ruby/ext/openssl/ossl_pkey_dsa.c ruby.mod/ext/openssl/ossl_pkey_dsa.c
--- ruby/ext/openssl/ossl_pkey_dsa.c 2004-01-08 05:24:22.000000000 -0700
+++ ruby.mod/ext/openssl/ossl_pkey_dsa.c 2004-06-06 21:31:26.000000000 -0600
@@ -129,39 +129,43 @@
VALUE arg, pass;
GetPKey(self, pkey);
- rb_scan_args(argc, argv, "11", &arg, &pass);
- if (FIXNUM_P(arg)) {
- if (!(dsa = dsa_generate(FIX2INT(arg)))) {
- ossl_raise(eDSAError, NULL);
- }
+ if( rb_scan_args(argc, argv, "02", &arg, &pass) == 0 ) {
+ dsa = DH_new();
}
else {
- if (!NIL_P(pass)) passwd = StringValuePtr(pass);
- arg = ossl_to_der_if_possible(arg);
- in = ossl_obj2bio(arg);
- dsa = PEM_read_bio_DSAPrivateKey(in, NULL, ossl_pem_passwd_cb, passwd);
- if (!dsa) {
- BIO_reset(in);
- dsa = PEM_read_bio_DSAPublicKey(in, NULL, NULL, NULL);
- }
- if (!dsa) {
- BIO_reset(in);
- dsa = PEM_read_bio_DSA_PUBKEY(in, NULL, NULL, NULL);
- }
- if (!dsa) {
- BIO_reset(in);
- dsa = d2i_DSAPrivateKey_bio(in, NULL);
- }
- if (!dsa) {
- BIO_reset(in);
- dsa = d2i_DSA_PUBKEY_bio(in, NULL);
- }
- BIO_free(in);
- if (!dsa) ossl_raise(eDSAError, "Neither PUB key nor PRIV key:");
+ if (FIXNUM_P(arg)) {
+ if (!(dsa = dsa_generate(FIX2INT(arg)))) {
+ ossl_raise(eDSAError, NULL);
+ }
+ }
+ else {
+ if (!NIL_P(pass)) passwd = StringValuePtr(pass);
+ arg = ossl_to_der_if_possible(arg);
+ in = ossl_obj2bio(arg);
+ dsa = PEM_read_bio_DSAPrivateKey(in, NULL, ossl_pem_passwd_cb, passwd);
+ if (!dsa) {
+ BIO_reset(in);
+ dsa = PEM_read_bio_DSAPublicKey(in, NULL, NULL, NULL);
+ }
+ if (!dsa) {
+ BIO_reset(in);
+ dsa = PEM_read_bio_DSA_PUBKEY(in, NULL, NULL, NULL);
+ }
+ if (!dsa) {
+ BIO_reset(in);
+ dsa = d2i_DSAPrivateKey_bio(in, NULL);
+ }
+ if (!dsa) {
+ BIO_reset(in);
+ dsa = d2i_DSA_PUBKEY_bio(in, NULL);
+ }
+ BIO_free(in);
+ if (!dsa) ossl_raise(eDSAError, "Neither PUB key nor PRIV key:");
+ }
}
if (!EVP_PKEY_assign_DSA(pkey, dsa)) {
- DSA_free(dsa);
- ossl_raise(eDSAError, NULL);
+ DSA_free(dsa);
+ ossl_raise(eDSAError, NULL);
}
return self;
@@ -370,6 +374,12 @@
return Qfalse;
}
+OSSL_PKEY_BN(dsa, p);
+OSSL_PKEY_BN(dsa, q);
+OSSL_PKEY_BN(dsa, g);
+OSSL_PKEY_BN(dsa, pub_key);
+OSSL_PKEY_BN(dsa, priv_key);
+
/*
* INIT
*/
@@ -394,6 +404,12 @@
rb_define_method(cDSA, "syssign", ossl_dsa_sign, 1);
rb_define_method(cDSA, "sysverify", ossl_dsa_verify, 2);
+ DEF_OSSL_PKEY_BN(cDSA, dsa, p);
+ DEF_OSSL_PKEY_BN(cDSA, dsa, q);
+ DEF_OSSL_PKEY_BN(cDSA, dsa, g);
+ DEF_OSSL_PKEY_BN(cDSA, dsa, pub_key);
+ DEF_OSSL_PKEY_BN(cDSA, dsa, priv_key);
+
rb_define_method(cDSA, "params", ossl_dsa_get_params, 0);
}
diff -ur ruby/ext/openssl/ossl_pkey_rsa.c ruby.mod/ext/openssl/ossl_pkey_rsa.c
--- ruby/ext/openssl/ossl_pkey_rsa.c 2004-01-08 05:24:22.000000000 -0700
+++ ruby.mod/ext/openssl/ossl_pkey_rsa.c 2004-06-05 21:17:06.000000000 -0600
@@ -119,42 +119,46 @@
VALUE arg, pass;
GetPKey(self, pkey);
- rb_scan_args(argc, argv, "11", &arg, &pass);
- if (FIXNUM_P(arg)) {
- rsa = rsa_generate(FIX2INT(arg), NIL_P(pass) ? RSA_F4 : NUM2INT(pass));
- if (!rsa) ossl_raise(eRSAError, NULL);
+ if( rb_scan_args(argc, argv, "02", &arg, &pass) == 0 ) {
+ rsa = RSA_new();
}
else {
- if (!NIL_P(pass)) passwd = StringValuePtr(pass);
- arg = ossl_to_der_if_possible(arg);
- in = ossl_obj2bio(arg);
- rsa = PEM_read_bio_RSAPrivateKey(in, NULL, ossl_pem_passwd_cb, passwd);
- if (!rsa) {
- BIO_reset(in);
- rsa = PEM_read_bio_RSAPublicKey(in, NULL, NULL, NULL);
- }
- if (!rsa) {
- BIO_reset(in);
- rsa = PEM_read_bio_RSA_PUBKEY(in, NULL, NULL, NULL);
- }
- if (!rsa) {
- BIO_reset(in);
- rsa = d2i_RSAPrivateKey_bio(in, NULL);
- }
- if (!rsa) {
- BIO_reset(in);
- rsa = d2i_RSAPublicKey_bio(in, NULL);
- }
- if (!rsa) {
- BIO_reset(in);
- rsa = d2i_RSA_PUBKEY_bio(in, NULL);
- }
- BIO_free(in);
- if (!rsa) ossl_raise(eRSAError, "Neither PUB key nor PRIV key:");
+ if (FIXNUM_P(arg)) {
+ rsa = rsa_generate(FIX2INT(arg), NIL_P(pass) ? RSA_F4 : NUM2INT(pass));
+ if (!rsa) ossl_raise(eRSAError, NULL);
+ }
+ else {
+ if (!NIL_P(pass)) passwd = StringValuePtr(pass);
+ arg = ossl_to_der_if_possible(arg);
+ in = ossl_obj2bio(arg);
+ rsa = PEM_read_bio_RSAPrivateKey(in, NULL, ossl_pem_passwd_cb, passwd);
+ if (!rsa) {
+ BIO_reset(in);
+ rsa = PEM_read_bio_RSAPublicKey(in, NULL, NULL, NULL);
+ }
+ if (!rsa) {
+ BIO_reset(in);
+ rsa = PEM_read_bio_RSA_PUBKEY(in, NULL, NULL, NULL);
+ }
+ if (!rsa) {
+ BIO_reset(in);
+ rsa = d2i_RSAPrivateKey_bio(in, NULL);
+ }
+ if (!rsa) {
+ BIO_reset(in);
+ rsa = d2i_RSAPublicKey_bio(in, NULL);
+ }
+ if (!rsa) {
+ BIO_reset(in);
+ rsa = d2i_RSA_PUBKEY_bio(in, NULL);
+ }
+ BIO_free(in);
+ if (!rsa) ossl_raise(eRSAError, "Neither PUB key nor PRIV key:");
+ }
}
if (!EVP_PKEY_assign_RSA(pkey, rsa)) {
- RSA_free(rsa);
- ossl_raise(eRSAError, NULL);
+ RSA_free(rsa);
+ ossl_raise(eRSAError, NULL);
}
return self;