havenwood changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.2.1, 3.1.3, 3.0.5, 2.7.7: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://t.ly/9ua4 | Logs: https://libera.irclog.whitequark.org/ruby/
reset has joined #ruby
eddof13 has joined #ruby
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
caedmon has joined #ruby
Vonter has joined #ruby
moldorcoder7 has quit [Ping timeout: 248 seconds]
pmwals09 has joined #ruby
caedmon has quit [Ping timeout: 265 seconds]
razetime has joined #ruby
eddof13 has joined #ruby
caedmon has joined #ruby
razetime has quit [Ping timeout: 248 seconds]
razetime1 has joined #ruby
caedmon has quit [Quit: caedmon]
razetime1 is now known as razetime
caedmon has joined #ruby
eddof13 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
c10l has quit [Quit: See ya! o/]
c10l has joined #ruby
caedmon has quit [Ping timeout: 248 seconds]
pmwals09 has quit [Remote host closed the connection]
razetime has quit [Ping timeout: 260 seconds]
caedmon has joined #ruby
haxn9k has joined #ruby
ziqehu has quit [Ping timeout: 252 seconds]
razetime has joined #ruby
caedmon has quit [Ping timeout: 268 seconds]
caedmon has joined #ruby
ziqehu has joined #ruby
haxn9k has quit [Ping timeout: 268 seconds]
crankharder has joined #ruby
caedmon has quit [Ping timeout: 260 seconds]
Linux_Kerio has joined #ruby
crankharder has quit [Ping timeout: 268 seconds]
gastus has joined #ruby
gastus_ has quit [Ping timeout: 248 seconds]
razetime has quit [Ping timeout: 248 seconds]
mooff has quit [Remote host closed the connection]
mooff has joined #ruby
razetime has joined #ruby
crankharder has joined #ruby
razetime has quit [Ping timeout: 248 seconds]
crankharder has quit [Ping timeout: 268 seconds]
kinduff has quit [Ping timeout: 283 seconds]
kapil has quit [Quit: ZNC 1.7.5+deb4 - https://znc.in]
kapil_ has joined #ruby
kinduff has joined #ruby
crankharder has joined #ruby
crankharder has quit [Ping timeout: 255 seconds]
razetime has joined #ruby
razetime has quit [Client Quit]
ziqehu has quit [Ping timeout: 268 seconds]
crankharder has joined #ruby
crankharder has quit [Ping timeout: 252 seconds]
wand has quit [Remote host closed the connection]
wand has joined #ruby
Linux_Kerio has quit [Ping timeout: 252 seconds]
hd1 has joined #ruby
hd1 has left #ruby [#ruby]
razetime has joined #ruby
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
crankharder has joined #ruby
crankharder has quit [Ping timeout: 246 seconds]
reset has quit [Quit: reset]
razetime has quit [Ping timeout: 246 seconds]
gonix has quit [Ping timeout: 268 seconds]
infinityfye has joined #ruby
razetime has joined #ruby
tomtmym has joined #ruby
tomtmym has quit [Changing host]
tomtmym has joined #ruby
myusername has joined #ruby
Goodbye_Vincent has quit [Read error: Connection reset by peer]
Goodbye_Vincent has joined #ruby
_ht has joined #ruby
leonthemisfit has joined #ruby
razetime has quit [Remote host closed the connection]
jvalleroy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
jvalleroy has joined #ruby
kovital has joined #ruby
haxn9k has joined #ruby
kovital has quit [Ping timeout: 264 seconds]
moldorcoder7 has joined #ruby
crankharder has joined #ruby
crankharder has quit [Ping timeout: 248 seconds]
haxn9k has quit [Ping timeout: 260 seconds]
kovital has joined #ruby
gastus has quit [Ping timeout: 252 seconds]
gonix has joined #ruby
gonix has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
crankharder has joined #ruby
crankharder has quit [Ping timeout: 268 seconds]
pmwals09 has joined #ruby
gastus has joined #ruby
pmwals09 has quit [Remote host closed the connection]
gastus has quit [Ping timeout: 268 seconds]
<ox1eef_> Is minitest still bundled with Ruby ? Doesn't appear to be the case on 3.2.
<havenwood> ox1eef_: It ships with Ruby but can be uninstalled.
crankharder has joined #ruby
Nonato has joined #ruby
<Nonato> hello guys
<Nonato> please does anyone speak portuguese?
<Nonato> ok
<ox1eef_> havenwood: Yeah, I saw it on stdgems.org too. For some reason I don't have it installed locally. I ended up going with test-unit. More or less the same for Minitest::Test-style tests.
<Nonato> I have two applications, A and B. When I was configuring nginx, only with the HTTP protocol, application A accessed its content, and b respectively, but when putting SSL, application A continued to access its content, but application B only to access the contents of application A, although all the settings in the NGINX configuration files point to
<Nonato> their respective directories.
<Nonato> Has any of your friends been through this situation?
crankharder has quit [Ping timeout: 248 seconds]
crankharder has joined #ruby
crankharder has quit [Ping timeout: 268 seconds]
razetime has joined #ruby
panella32 has joined #ruby
<panella32> Hi could you please tell me why this 3 line code does not work? https://pastebin.com/BwubPJRj
<ruby[bot]> panella32: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
<panella32> odds_n_ends = [42, "Trady Blix", 3, true]
<panella32> p integers = odds_n_ends.select(&:is_a?(Integer))
eddof13 has joined #ruby
<havenwood> panella32: You can: odds_n_ends.grep(Integer)
<ox1eef_> Nice!
<panella32> havenwood thanks a lot for the suggestion, tbh I am totally new to the language and just wanted to know what wrong with that syntax?
<havenwood> panella32: The `:is_a?` turns into `:is_a?.to_proc` via the `&` and doesn't take an argument, which is why it doesn't work.
<havenwood> >> :is_a?.to_proc(Integer)
<ruby[bot]> havenwood: # => wrong number of arguments (given 1, expected 0) (ArgumentError) (https://carc.in/#/r/ejiz)
gonix has joined #ruby
<panella32> havenwood thank you! Now it's clear.
<havenwood> panella32: You can: odds_n_ends.select { _1.is_a?(Integer) }
<havenwood> Or `grep` and `grep_v` are the fancy ways to filter and reject.
<panella32> May I know what that _1 is?
<havenwood> panella32: It's an alternative syntax for block arguments. You could write instead: odds_n_ends.select { |odd_n_end| odd_n_end.is_a?(Integer) }
myusername_ has joined #ruby
<havenwood> I'd just: grep(Integer)
<ox1eef_> They're typically called "numbered parameters" if you want to do a google search for them.
<myappie> Pretty odd, "vgrep" used to be my nickname in highschool
<myappie> I used to hate it until this blonde in my class told me how much she liked it :thumbsup:
<panella32> havenwood wow! Your knowledge is very impressive! Thanks a lot! Learned couple good things just in a few minutes! Nice way to learn Ruby!
<myappie> panella32: Havenwood's the man!
myusername has quit [Ping timeout: 252 seconds]
<panella32> myappie No doubt :)
kovital has quit [Ping timeout: 246 seconds]
aphorise has joined #ruby
<aphorise> Is there a way I can parallel run my ruby script via `ruby file.rb` rather than for example launching it on 3x separate terminal sessions?
<Nonato> it worked here guys, when implementing SSL in the domains, Certbot reconfigured the server blocks.
<panella32> havenwood sorry I tagged you again just so curious to know if there's any course you suggest? The other day I completed a basic Ruby course on Udemy and for now I am quickly reviewing it with codecademy, and after that I am going to find a course on Rails. ngl based on your great answer I cannot wait to see which course/platform a true-pro rubyist is going to suggest :)
eddof13 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
eddof13 has joined #ruby
kovital has joined #ruby
panella32 has quit [Ping timeout: 246 seconds]
kovital has quit [Ping timeout: 246 seconds]
<ox1eef_> aphorise: A number of ways to approach that. One way is with a #!/bin/sh script: https://gist.github.com/0x1eef/83cb4ff77dc1ab2119f1dc5e1426ec75
panella32 has joined #ruby
gonix has quit [Ping timeout: 248 seconds]
Nonato has quit [Quit: Client closed]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
panella32 has quit [Ping timeout: 260 seconds]
eddof13 has joined #ruby
<aphorise> ox1eef_, thx - but that's just backgrounding the same script no really runing it in parallel / multithreaded?
razetime has quit [Remote host closed the connection]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ox1eef_> The script spawns three Ruby subprocesses that are independent of each other, and they're run in parallel. What makes you think otherwise ?
eddof13 has joined #ruby
crankharder has joined #ruby
Laplace has joined #ruby
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hightower2 has joined #ruby
moldorcoder7 has quit [Ping timeout: 268 seconds]
eddof13 has joined #ruby
reset has joined #ruby
crankharder has quit [Ping timeout: 260 seconds]
infinityfye has quit [Quit: Leaving]
con3 has joined #ruby
con3 has quit [Ping timeout: 268 seconds]
Malin has joined #ruby
weaksauc_ has quit [Quit: Textual IRC Client: www.textualapp.com]
weaksauce has joined #ruby
Nonato has joined #ruby
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eddof13 has joined #ruby
con3 has joined #ruby
_ht has quit [Quit: _ht]
crankharder has joined #ruby
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Laplace has quit [Quit: Connection closed for inactivity]
crankharder has quit [Ping timeout: 260 seconds]
<Al2O3> ruby doobie blue
John_Ivan has quit [Remote host closed the connection]
John_Ivan has joined #ruby
Sankalp has quit [Ping timeout: 268 seconds]
Sankalp- has joined #ruby
Sankalp- is now known as Sankalp
___nick___ has joined #ruby
___nick___ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
___nick___ has joined #ruby
___nick___ has quit [Client Quit]
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
___nick___ has joined #ruby
dviola has quit [Quit: WeeChat 3.7.1]
tomtmym has quit [Quit: Gone.]
ur5us_ has joined #ruby
myusername_ has quit [Ping timeout: 252 seconds]