havenwood changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.1.1, 3.0.3, 2.7.5: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ
<Led_Zeppelin2> where can I find a reference of ssl in ruby code?
TCZ has joined #ruby
<ox1eef> the 'openssl' library, although few use it directly.
bsliger has quit [Quit: Unexpected signal 11]
va5c0_ has quit [Quit: WeeChat 3.4]
gr33n7007h has quit [Quit: WeeChat 3.4]
markong has quit [Ping timeout: 250 seconds]
impermanence has joined #ruby
TCZ has quit [Quit: Leaving]
ur5us has joined #ruby
clemens3 has quit [Ping timeout: 256 seconds]
clemens3 has joined #ruby
<mooff> connecting with hostname + peer verification does seem underdocumented
gr33n7007h has joined #ruby
hololeap_ is now known as hololeap
<ox1eef> that's generally how it is in ruby.
shiru has joined #ruby
shiru has quit [Client Quit]
* mooff pops fresh kool-aid, blinks, slurps
<ox1eef> lol
ruby-eval has joined #ruby
<mooff> :: 'hello wasm mri eval bot'
<ruby-eval> => hello wasm mri eval bot
entropie has quit [Quit: ""]
entropie has joined #ruby
<mooff> !! reload; processes['#ruby'].close
<ruby-eval> nil
<ruby-eval> [Terminated]
<mooff> :: 'hello again'
<ruby-eval> => "hello again"
Starfoxxes has quit [Ping timeout: 252 seconds]
<mooff> :: ObjectSpace.each_object(Class).first(10)
<ruby-eval> => [Errno::ENOLCK, Errno::ENOEXEC, Errno::ENOENT, Errno::ENODEV, Errno::ENOBUFS, Errno::ENFILE, Errno::ENETUNREACH, Errno::ENETRESET, Errno::ENETDOWN, Errno::ENAMETOOLONG]
<mooff> :: ObjectSpace.each_object(Class).last(10)
<ruby-eval> ERROR: undefined method `last' for #<Enumerator: ObjectSpace:each_object(Class)>
Starfoxxes has joined #ruby
<mooff> :: ObjectSpace.each_object(Class).to_a.last(10)
<ruby-eval> => [#<Class:Gem::Platform>, Gem::Platform, Gem::StubSpecification::StubLine, #<Class:Gem::StubSpecification>, Gem::StubSpecification, DidYouMean::DeprecatedMapping, #<Class:DidYouMean>, #<Class:DidYouMean::Formatter>, DidYouMean::Formatter, DidYouMean::PatternKeyNameChecker]
<mooff> :: 'regex available?'[/available/]
<ruby-eval> => "available"
Rounin has quit [Ping timeout: 240 seconds]
ruby-eval has quit [Remote host closed the connection]
Guest6792 has quit [Ping timeout: 252 seconds]
<ox1eef> mooff: when you say 'processes', is there a process per channel?
<ox1eef> and, do you know of cinch?
ruby-eval has joined #ruby
<mooff> ox1eef: there is. processes is a Hash.new { |h,k| h[k] = spawn_process!(k) }
<mooff> hold up
<mooff> ox1eef: i was dissatisfied with cinch & have been writing a new lib
dac has joined #ruby
<ox1eef> mooff: what didn't you like about cinch ? i understood from memory it has a threaded model, where every command is run on its own thread.
<ox1eef> interesting paste
<mooff> ox1eef: to use Cinch i had to spend a lot of time learning its API, rather than being able to grok it & move quickly from memory
<ox1eef> i see, did you study it? i think it was built on solid ideas, although the author has since left for Go.
<mooff> it uses a factory model where you construct a bot, passing a block which both defines its behavior and the server/channels it will connect to, and get an instance
<ox1eef> if i remember right it is modularized through plugins, which can act as sole commands.
<mooff> i prefer to have behavior defined on a class, with composition & inheritance, then make instances for different networks / purposes
Tempesta has joined #ruby
Tempesta has quit [Changing host]
Tempesta has joined #ruby
Tempesta has quit [Excess Flood]
<mooff> wire them together in fun ways at runtime etc
Tempesta has joined #ruby
Tempesta has quit [Changing host]
Tempesta has joined #ruby
Tempesta has quit [Excess Flood]
<ox1eef> i wouldn't be in favor of keeping behavior and data on the class.
<mooff> i read it a long time ago, and read it quickly a few months ago when deciding whether to make a new lib
Tempesta has joined #ruby
Tempesta has quit [Changing host]
Tempesta has joined #ruby
Tempesta has quit [Excess Flood]
donofrio has joined #ruby
<ox1eef> indeed, that'd be my first call too, if i were doing a irc lib id probably start with cinch if not fork it
<mooff> different strokes for different folks :)
<ox1eef> i was thinking the same :)
Tempesta has joined #ruby
Tempesta has quit [Changing host]
Tempesta has joined #ruby
Tempesta has quit [Excess Flood]
<ox1eef> i think even cinch is somewhat class-based, as the DSL exists in that scope
<ox1eef> even if the command itself gets run on an instance.
Tempesta has joined #ruby
Tempesta has quit [Changing host]
Tempesta has joined #ruby
Tempesta has quit [Excess Flood]
justAstache has quit [Read error: Connection reset by peer]
justAstache has joined #ruby
hololeap has quit [Remote host closed the connection]
Guest58 has joined #ruby
hololeap has joined #ruby
Guest9 has joined #ruby
Guest9 has quit [Client Quit]
Guest58 has quit [Quit: Client closed]
krishnac has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
polishdub has joined #ruby
libsys has quit [Read error: Connection reset by peer]
krishnac has quit [Remote host closed the connection]
libsys has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
donofrio has quit [Ping timeout: 272 seconds]
ur5us has joined #ruby
ur5us_ has joined #ruby
ur5us has quit [Read error: Connection reset by peer]
libsys has quit [Read error: Connection reset by peer]
libsys has joined #ruby
bluedust has quit [Remote host closed the connection]
Tempesta has joined #ruby
Tempesta has quit [Changing host]
Tempesta has joined #ruby
ur5us_ has quit [Ping timeout: 272 seconds]
bluedust has joined #ruby
libsys has quit [Read error: Connection reset by peer]
libsys has joined #ruby
teclator has joined #ruby
ur5us_ has joined #ruby
infinityfye has joined #ruby
fercell has joined #ruby
Rounin has joined #ruby
ur5us_ has quit [Ping timeout: 256 seconds]
bluedust has quit [Remote host closed the connection]
jmcgnh has quit [Ping timeout: 250 seconds]
jmcgnh has joined #ruby
Jonopoly has joined #ruby
bluedust has joined #ruby
fef has joined #ruby
bluedust has quit [Remote host closed the connection]
perrierjouet has quit [Ping timeout: 256 seconds]
perrierjouet has joined #ruby
bluedust has joined #ruby
donofrio has joined #ruby
gr33n7007h has quit [Ping timeout: 240 seconds]
gr33n7007h has joined #ruby
taupiqueur has joined #ruby
Guest6792 has joined #ruby
nmollerup has joined #ruby
taupiqueur has quit [Quit: taupiqueur]
taupiqueur has joined #ruby
va5c0 has joined #ruby
va5c0 has quit [Ping timeout: 272 seconds]
markong has joined #ruby
va5c0 has joined #ruby
bluedust_ has joined #ruby
Hazey_Dream has joined #ruby
bluedust has quit [Ping timeout: 240 seconds]
mange has quit [Remote host closed the connection]
gr33n7007h has quit [Ping timeout: 240 seconds]
gr33n7007h has joined #ruby
dviola has joined #ruby
bluedust_ has quit [Remote host closed the connection]
bsliger has joined #ruby
RougeR has joined #ruby
va5c0 has quit [Ping timeout: 240 seconds]
gr33n7007h has quit [Ping timeout: 240 seconds]
gr33n7007h has joined #ruby
Tempesta has quit [Quit: See ya!]
Tempesta has joined #ruby
bluedust has joined #ruby
va5c0 has joined #ruby
goepsilongo has joined #ruby
TCZ has joined #ruby
roadie has joined #ruby
va5c0 has quit [Read error: Connection reset by peer]
va5c0 has joined #ruby
TCZ has quit [Quit: Leaving]
Jonopoly has quit [Quit: WeeChat 3.0]
___nick___ has joined #ruby
orbyt has joined #ruby
va5c0 has quit [Ping timeout: 240 seconds]
va5c0 has joined #ruby
___nick___ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
___nick___ has joined #ruby
___nick___ has quit [Client Quit]
___nick___ has joined #ruby
Hazey_Dream has quit [Ping timeout: 240 seconds]
gr33n7007h has quit [Ping timeout: 240 seconds]
gr33n7007h has joined #ruby
fef has quit [Ping timeout: 240 seconds]
bluedust has quit [Remote host closed the connection]
markong has quit [Ping timeout: 240 seconds]
taupiqueur has quit [Ping timeout: 240 seconds]
taupiqueur has joined #ruby
fowl4 has joined #ruby
fowl has quit [Ping timeout: 272 seconds]
fowl4 is now known as fowl
gr33n7007h has quit [Ping timeout: 240 seconds]
goepsilongo_ has joined #ruby
infinityfye has quit [Ping timeout: 256 seconds]
gr33n7007h has joined #ruby
goepsilongo has quit [Ping timeout: 240 seconds]
dangerousdave has joined #ruby
shokohsc4 has joined #ruby
shokohsc has quit [Ping timeout: 256 seconds]
shokohsc4 is now known as shokohsc
_ht has joined #ruby
goepsilongo has joined #ruby
goepsilongo_ has quit [Ping timeout: 240 seconds]
bluedust has joined #ruby
bluedust has quit [Ping timeout: 250 seconds]
ur5us_ has joined #ruby
taupiqueur has quit [Ping timeout: 268 seconds]
_ht has quit [Remote host closed the connection]
___nick___ has quit [Ping timeout: 256 seconds]
gr33n7007h has quit [Ping timeout: 240 seconds]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gr33n7007h has joined #ruby
orbyt has quit [Quit: Textual IRC Client: www.textualapp.com]
bluedust has joined #ruby
markong has joined #ruby
bluedust has quit [Remote host closed the connection]
ur5us_ has quit [Remote host closed the connection]
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
shokohsc has quit [Quit: Ping timeout (120 seconds)]
shokohsc has joined #ruby
nyuszika7h has quit [Read error: Connection reset by peer]
<adam12> There are so many gems.
shokohsc has quit [Quit: Ping timeout (120 seconds)]
<adam12> I'm not sure I ever realized how many.
shokohsc has joined #ruby
<mooff> there's gotta be at least, like.. dozens
RougeR has quit [Remote host closed the connection]
<mooff> :: [RUBY_PLATFORM, RUBY_VERSION] # :)
<ruby-eval> => ["wasm32-wasi", "3.2.0"]
<kaleido> :: puts "Hello, world!"
<ruby-eval> Hello, world!
<ruby-eval> => nil
<kaleido> \o/
<rapha> y
<rapha> y'all
<rapha> why does .to_yaml , in the case of multi-line fields, sometimes render them as `key: "blah\nblah\nblah"` and sometimes as `key: |-` followed by an actual newline, then "blah", then another actual newline, then "blah", etc.?
<rapha> like, complete mix ... can't even figure out a pattern for it
<leftylink> what will happen in Ruby 3.2.0, I wonder... harder to get any info because usually the search results tell us about gems 3.2.0. at least https://github.com/ruby/ruby/blob/master/NEWS.md can tell us I guess
<rapha> ah, so, the one is called a "double-quoted flow scalar" and the other is called a "literal, right-stripped block scalar" ... but why Psych would mix these with no discernable difference between the strings ... annoying for grepping, too
Awestone has joined #ruby
<rapha> wow
Awestone91 has joined #ruby
<rapha> that's pretty involved for just different styles
<rapha> thanks for finding this, mooff :=
<rapha> :)
Awestone91 has quit [Client Quit]
<mooff> y/w ;o
Awestone has quit [Ping timeout: 256 seconds]
postmodern has joined #ruby
<RedNifre> Hello! A friend of mine, who is not a programmer, would like to program some tiny things. So far, he has only done some medium complex thing in Excel Visual Basic. Is there a simple small ruby book for absolute programming beginners you could recommend?
<RedNifre> The plan is that I'll visit him, we'll do some Raspberry Pi programming to make some colored LEDs light up on specific dates and I would give him the book as a gift, maybe.
<weaksauce> RedNifre maybe why's book?
<apotheon> There's also Chris Pine's book (no, not the actor).
<apotheon> RedNifre: The best book I know for learning basic Ruby is Eloquent Ruby, but I'm not sure whether your friend needs a more-beginner book than that.
<RedNifre> I'm looking for the most beginner friendly book possible.
<RedNifre> He's smart, but he prefers writing while loops that manually increment a variable at the end to for loops, because the for construct is so abstract and obfuscates what's going on.
<apotheon> Chris Pine's Learn To Program or why's Poignant Guide To Ruby, then.
Guest6792 has quit [Ping timeout: 256 seconds]
<mooff> https://dragonruby.org/toolkit/game has a great Discord community that's supportive of new learners
<RedNifre> Thanks, those look interesting!