__jmcantrell__ has quit [Ping timeout: 260 seconds]
blacknova has joined #ruby
plujon has quit [Remote host closed the connection]
__jmcantrell__ has joined #ruby
cappy has quit [Quit: Leaving]
__jmcantrell__ has quit [Ping timeout: 248 seconds]
__jmcantrell__ has joined #ruby
STASIdownunder has joined #ruby
blacknova has quit [Quit: Connection closed for inactivity]
grenierm has joined #ruby
STASIdownunder has quit [Quit: Leaving]
Linux_Kerio has joined #ruby
schne1der has joined #ruby
__jmcantrell__ has quit [Ping timeout: 248 seconds]
sarna has joined #ruby
splud has quit [Ping timeout: 252 seconds]
splud has joined #ruby
grenierm has quit [Ping timeout: 240 seconds]
Pixi has quit [Quit: Leaving]
Vonter has quit [Ping timeout: 244 seconds]
Pixi has joined #ruby
Linux_Kerio has quit [Ping timeout: 265 seconds]
Vonter has joined #ruby
gemmaro_ has quit [Ping timeout: 276 seconds]
gemmaro has joined #ruby
blacknova has joined #ruby
wbooze has quit [Quit: Leaving]
Vonter has quit [Ping timeout: 244 seconds]
__jmcantrell__ has joined #ruby
Vonter has joined #ruby
Vonter has quit [Client Quit]
Vonter has joined #ruby
GreenResponse has joined #ruby
user71 has joined #ruby
<nakilon>
I wonder how he did invoke the scripts; IIRC to forget current bulder env you have to wrap it around smth like Bundler.with_clear_env{}
wbooze has joined #ruby
vnpower_ has left #ruby [#ruby]
jmcantrell is now known as Guest2958
Guest2958 has quit [Killed (calcium.libera.chat (Nickname regained by services))]
__jmcantrell__ is now known as jmcantrell
jmcantrell_ has joined #ruby
blacknova has quit [Quit: Connection closed for inactivity]
STASIdownunder has joined #ruby
Hammdist has joined #ruby
<Hammdist>
hey all I want to stuff some small files in an archive and be able to read individual files from it at runtime from a Ruby script. however I don't want any gem dependencies. simplest way?
<Hammdist>
for my purpose, it is OK if I have to scan the whole archive once and load it into memory or something
<aesthetikx>
Hammdist are these like YAML files or raw data or text?
<aesthetikx>
if it is static and unchanging, you could possibly read it into simple ruby data structures once and then use Marshall to write it to a file, and then read it back in the script. You could even throw that data into a __DATA__ section at the bottom of your ruby file.
<o0x1eef>
There's also "zlib" from the stdlib (Zlib::GzipWriter, Gzip::GzipReader)
<havenwood>
Hammdist: If they're Ruby files and you want to be fancy, you can even save their YARB bytecode and eval that so you don't have to parse it again. If you're just wanting plain data zipped and saved to disk with a File.write, +1 zlib.
<havenwood>
Also not a bad idea to zip Ruby binary too.