havenwood changed the topic of #ruby to: Ruby 3.4.3, 3.3.8 https://www.ruby-lang.org | Log https://libera.irclog.whitequark.org/ruby
STASIdownunder has quit [Quit: Leaving]
__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)
<aesthetikx> o0x1eef do you have a githu
wbooze has quit [Quit: Leaving]
wbooze has joined #ruby
schne1der has quit [Ping timeout: 272 seconds]
entropie has quit [Quit: ""]
schne1der has joined #ruby
Linux_Kerio has joined #ruby
entropie has joined #ruby
blacknova has joined #ruby
schne1der has quit [Ping timeout: 245 seconds]
user71 has quit [Quit: Leaving]
<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.
<havenwood> An example of saving some zipped Ruby binary to disk, then unzipping and evaling later. https://gist.github.com/havenwood/465eb969ef1fb817e4ad493701b0020e
<havenwood> I dunno why I didn't do a more straightforward zip. 🤷
<havenwood> I agree with aesthetikx it'd be nice to know what you're saving. Some serialization types have builtin ways to save to disk.
<havenwood> I usually use zlib unless I need something like brotli in particular.
<havenwood> (on the zipping front)
jmcantrell has quit [Ping timeout: 248 seconds]
jmcantrell_ is now known as jmcantrell
GreenResponse has quit [Quit: Leaving]
SaveFerris1 has quit [Quit: The Lounge - https://thelounge.chat]
SaveFerris1 has joined #ruby
Vonter has quit [Ping timeout: 260 seconds]
Vonter has joined #ruby
<o0x1eef> Having so much fun writing code tonight
Pixi` has joined #ruby
Linux_Kerio has quit [Ping timeout: 268 seconds]
Pixi has quit [Ping timeout: 252 seconds]
brokkoli_origin has quit [Remote host closed the connection]
blacknova has quit [Quit: Connection closed for inactivity]
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
<havenwood> o0x1eef: Love that feel.
__jmcantrell__ has joined #ruby
___nick___ has joined #ruby
axsuul has quit [Quit: 👋]
___nick___ has quit [Remote host closed the connection]
<o0x1eef> :D
__jmcantrell__ has quit [Ping timeout: 248 seconds]
ikonia has quit [Ping timeout: 248 seconds]
FetidToot7 has joined #ruby
livoreno has joined #ruby
FetidToot has quit [Read error: Connection reset by peer]
FetidToot7 is now known as FetidToot
brokkoli_origin has joined #ruby
FetidToot3 has joined #ruby
vigumnov has joined #ruby
victori has quit [Ping timeout: 248 seconds]
FetidToot has quit [Ping timeout: 272 seconds]
FetidToot3 is now known as FetidToot
cappy has joined #ruby