hsbt_away changed the topic of #ruby-core to: check the latest release candidate for 1.9.1 release ftp.ruby-lang.org:/home/yugui/ruby-1.9.1-r26021+1.tar.bz2
tmahoney has joined #ruby-core
nagachika has joined #ruby-core
idkazuma has joined #ruby-core
tylersmith has quit [Remote host closed the connection]
idkazuma has quit [Remote host closed the connection]
adamjleonard has joined #ruby-core
adamjleonard has quit [Quit: Leaving...]
adamjleonard has joined #ruby-core
adamjleonard has quit [Remote host closed the connection]
adamjleonard has joined #ruby-core
headius has joined #ruby-core
headius has quit [Quit: headius]
kosaki2 has quit [Remote host closed the connection]
Domon has quit [Remote host closed the connection]
Domon has joined #ruby-core
<znz_jp>
biff: [ruby-changes:28497] usa:r40549 (trunk): * win32/win32.c (poll_child_status): [experimental] set the cause of - http://mla.n-z.jp/?ruby-changes=28497
judofyr has quit [Remote host closed the connection]
xibbar has quit [Remote host closed the connection]
tylersmith has joined #ruby-core
ZachBeta has quit [Quit: Computer has gone to sleep.]
plusk has joined #ruby-core
plusk has quit [Client Quit]
plusk has joined #ruby-core
judofyr has joined #ruby-core
nghialv2607 has quit [Remote host closed the connection]
nagachika has quit [Remote host closed the connection]
ZachBeta has joined #ruby-core
judofyr has quit [Ping timeout: 255 seconds]
judofyr has joined #ruby-core
nahiluhmot has joined #ruby-core
nahiluhmot has quit [Remote host closed the connection]
nahiluhmot has joined #ruby-core
nahiluhmot has quit [Remote host closed the connection]
nahiluhmot has joined #ruby-core
judofyr_ has joined #ruby-core
judofyr has quit [Disconnected by services]
judofyr_ is now known as judofyr
judofyr has quit []
ex9t_ has joined #ruby-core
ex9t has quit [Ping timeout: 255 seconds]
headius has joined #ruby-core
<tmahoney>
What's a nice way to automatically require the JSON extension in an embedded Ruby project?
<drbrain>
autoload :JSON, 'json'
<drbrain>
at top-level
<tmahoney>
I can't find the file is the problem.
<drbrain>
I don't understand, it should be in the load path by default
<tmahoney>
This application uses its own Ruby static library. There isn't really a load path to load from.
<tmahoney>
But, if I could put the extensions somewhere known, then I can just autoload it?
<drbrain>
or require it
<drbrain>
yes
<tmahoney>
Well crap. I was hoping for a magic Init_JSON() method.
<drbrain>
you need to load the shared object first
<tmahoney>
Is there a way to compile the extension with Ruby so it doesn't need to be required?
<drbrain>
due to json/common.rb it will be a little difficult
<drbrain>
so you can link in the json shared object but you'll still need the ruby files for a working JSON implementation
plusk has quit [Quit: plusk]
<tmahoney>
Lame!
<tmahoney>
Alright, I'll figure something out.
<drbrain>
I disconnected there, the last thing I said was:
<drbrain>
so you can link in the json shared object but you'll still need the ruby files for a working JSON implementation
<tmahoney>
Thanks, I saw that. Elsewhere in the project I include a .rb file by converting it into a string in a .h file. So file.rb becomes a char* with its contents. I might do that with JSON.
<drbrain>
that's what prelude.c does
<tmahoney>
That way, the user can't tamper with the json/common.rb file since it's compiled into the executable.
<tmahoney>
Oh really?
ZachBeta has quit [Quit: Computer has gone to sleep.]
<tmahoney>
Hah, cool.
<tmahoney>
Yeah, I'll do something like that.
<tmahoney>
Thanks!
ZachBeta has joined #ruby-core
nokada_ has quit [Remote host closed the connection]
kosaki8 has joined #ruby-core
znz_jp has quit [Quit: kill -QUIT $$]
znz_jp has joined #ruby-core
ZachBeta has quit [Quit: Computer has gone to sleep.]
ZachBeta has joined #ruby-core
nari_ has joined #ruby-core
nahiluhmot has quit [Remote host closed the connection]
nahiluhmot has joined #ruby-core
nahiluhmot has quit [Remote host closed the connection]
fowl has joined #ruby-core
xibbar has joined #ruby-core
nari_ has quit [Ping timeout: 252 seconds]
kosaki2 has joined #ruby-core
nokada has joined #ruby-core
ZachBeta has quit [Quit: Computer has gone to sleep.]