John_Ivan has quit [Remote host closed the connection]
depesz has joined #ruby
John_Ivan has joined #ruby
yossarian has joined #ruby
yossarian has quit [Changing host]
yossarian has joined #ruby
polishdub has joined #ruby
Noiz has joined #ruby
<Noiz>
Please how do I get started on ruby
<_root>
Noiz: codeacademy has a pretty decent starter course.
wand has quit [Remote host closed the connection]
joast has joined #ruby
markong has quit [Ping timeout: 240 seconds]
wand has joined #ruby
<Noiz>
ok
Noiz has left #ruby [#ruby]
jl- has quit [Ping timeout: 244 seconds]
markong has joined #ruby
jpn has joined #ruby
markong has quit [Ping timeout: 240 seconds]
jpn has quit [Ping timeout: 260 seconds]
Sankalp has quit [Ping timeout: 240 seconds]
Sankalp has joined #ruby
John_Ivan has quit [Read error: Connection reset by peer]
nirvdrum has joined #ruby
nirvdrum_ has joined #ruby
nirvdrum has quit [Ping timeout: 260 seconds]
moldorcoder7 has quit [Ping timeout: 255 seconds]
jpn has joined #ruby
jpn has quit [Ping timeout: 268 seconds]
jpn has joined #ruby
jpn has quit [Ping timeout: 240 seconds]
Rounin has quit [Ping timeout: 272 seconds]
nirvdrum_ has quit [Quit: nirvdrum_]
Linux_Kerio has joined #ruby
jpn has joined #ruby
jl- has joined #ruby
jpn has quit [Ping timeout: 255 seconds]
jl- has quit [Ping timeout: 268 seconds]
keb has quit [Ping timeout: 260 seconds]
jl- has joined #ruby
kiki_lamb has joined #ruby
jpn has joined #ruby
jpn has quit [Ping timeout: 240 seconds]
jl- has quit [Ping timeout: 255 seconds]
nirvdrum has joined #ruby
desnudopenguino1 has joined #ruby
desnudopenguino has quit [Ping timeout: 255 seconds]
desnudopenguino1 is now known as desnudopenguino
jpn has joined #ruby
jpn has quit [Ping timeout: 260 seconds]
Aminda has quit [Remote host closed the connection]
Aminda has joined #ruby
Ziyan has joined #ruby
arfy has joined #ruby
jpn has joined #ruby
jpn has quit [Ping timeout: 260 seconds]
nirvdrum has quit [Quit: nirvdrum]
jhass has quit [Ping timeout: 240 seconds]
jhass has joined #ruby
jpn has joined #ruby
jpn has quit [Ping timeout: 240 seconds]
protektwar has joined #ruby
protektwar has joined #ruby
protektwar has quit [Changing host]
jl- has joined #ruby
<jdmark>
this language seems similar to visual basic
polishdub has quit [Ping timeout: 276 seconds]
jl- has quit [Ping timeout: 276 seconds]
_ht has joined #ruby
jpn has joined #ruby
keb has joined #ruby
wand has quit [Remote host closed the connection]
jpn has quit [Ping timeout: 268 seconds]
teclator has joined #ruby
keb has quit [Ping timeout: 268 seconds]
wand has joined #ruby
Ziyan has quit [Read error: Connection reset by peer]
Ziyan has joined #ruby
Ziyan has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
FetidToot has quit [Quit: Ping timeout (120 seconds)]
FetidToot has joined #ruby
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
SteveR has joined #ruby
Ziyan has joined #ruby
jl- has joined #ruby
jl- has quit [Ping timeout: 268 seconds]
maroloccio has joined #ruby
Ziyan has quit [Ping timeout: 260 seconds]
Ziyan_ has joined #ruby
jpn has joined #ruby
dionysus69 has joined #ruby
jpn has quit [Ping timeout: 268 seconds]
ur5us has joined #ruby
protektwar has quit [Ping timeout: 272 seconds]
Ziyan_ has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jpn has joined #ruby
arahael1 has joined #ruby
arahael has quit [Ping timeout: 272 seconds]
arahael1 is now known as arahael
Ziyan has joined #ruby
reset has quit [Quit: reset]
thewaves has quit [Quit: You have been kicked for being idle]
jl- has joined #ruby
infinityfye has joined #ruby
jl- has quit [Ping timeout: 268 seconds]
moldorcoder7 has joined #ruby
Ziyan_ has joined #ruby
Ziyan has quit [Ping timeout: 264 seconds]
Ziyan_ has quit [Read error: Connection reset by peer]
Ziyan has joined #ruby
SteveR has quit [Quit: Client closed]
Na_Klar has joined #ruby
<arfy>
so. I'm looking at the code for the SMF module. I've come across the following code that uses yield. I'm trying to figure out what yield is *returning* in this case.
<arfy>
each do |ev|
<arfy>
if n
<arfy>
n = yield ev
<leftylink>
that would have to depend on the block
jpn has quit [Ping timeout: 276 seconds]
protektwar has joined #ruby
protektwar has quit [Changing host]
protektwar has joined #ruby
protektwar has quit [Remote host closed the connection]
<Ziyan_>
With Rubocop, I have a cop complaining about "RSpec/MultipleExpectations" and then I have a cop complaining "RSpec/AggrigateExamples". Isn't that basically the opposite of the multiple-expectations cop?
stylo has joined #ruby
SunClonus has joined #ruby
Tempesta has quit [Quit: See ya!]
bit4bit has joined #ruby
Tempesta has joined #ruby
nirvdrum has quit [Quit: nirvdrum]
polishdub has joined #ruby
markong has quit [Ping timeout: 244 seconds]
protektwar has joined #ruby
protektwar has quit [Changing host]
protektwar has joined #ruby
bit4bit has quit [Ping timeout: 268 seconds]
jl- has joined #ruby
jl- has quit [Ping timeout: 255 seconds]
febuiles has joined #ruby
SunClonus has quit [Read error: Connection reset by peer]
febuiles has quit [Ping timeout: 272 seconds]
<rapha>
when you use "bundle gem blah" to create a gem and then "bundle install" to install it locally from the current directory, how does it get determined where it gets installed?
<rapha>
jdmark: perhaps at a very superficial look visually it might. it's a very, very different beast though.
gproto23 has joined #ruby
febuiles has joined #ruby
febuiles has quit [Changing host]
febuiles has joined #ruby
gproto23 has quit [Client Quit]
<rapha>
oh waait it doesn't get installed at all i think, just its executables do.
febuiles has quit [Ping timeout: 268 seconds]
Guest43 has joined #ruby
Guest43 has quit [Client Quit]
infinityfye has quit [Quit: Leaving]
Guest43 has joined #ruby
Tempesta has quit [*.net *.split]
totoro has quit [*.net *.split]
Tempesta has joined #ruby
Tempesta has quit [Changing host]
Tempesta has joined #ruby
totoro has joined #ruby
abws has joined #ruby
dionysus69 has quit [Ping timeout: 272 seconds]
febuiles has joined #ruby
dionysus69 has joined #ruby
febuiles has quit [Ping timeout: 276 seconds]
Guest43 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
protektwar has quit [Ping timeout: 255 seconds]
Na_Klar has joined #ruby
<Na_Klar>
I want to wait in a thread for a variable to change. is there a saner way to block until the change exept: while (true) if (var) sleep(0.1) end ?
Guest43 has joined #ruby
jwr_ has joined #ruby
Guest43 has quit [Client Quit]
<jwr_>
When I run `bundle exec rake foo:bar` I get an error with something about my gemfile. But when I run `BUNDLE_GEMFILE=/path/to/my/Gemfile bundle exec rake foo:bar`, then it works as expected. I don't know why I would need to specify the BUNDLE_GEMFILE variable though, because `bundle config` already shows the path to the gemfile. Can anybody tell me what's going on here? https://pastebin.com/raw/eZXad60C
febuiles has joined #ruby
febuiles has quit [Client Quit]
jpn has quit [Ping timeout: 240 seconds]
<adam12>
jwr_: `bundle doctor` complain about anything?
jpn has joined #ruby
<adam12>
Na_Klar: Who owns the env var? Maybe you could wrap it in a higher level mechanism, like a queue.
<adam12>
s/env var/var
protektwar has joined #ruby
protektwar has joined #ruby
<adam12>
def var=(value); @var = value; @queue.push(:changed); then somewhere else, @queue.pop (which should block indefinitely)
<jwr_>
adam12: `No issues found with the installed bundle`
jpn has quit [Ping timeout: 260 seconds]
<adam12>
jwr_: bundler version?
<jwr_>
adam12: Bundler version 2.3.14 (2022-05-18 commit 467ad58a7c)
<jwr_>
ruby 3.0.2, on ubuntu, if either of those matter.
Aminda has quit [Remote host closed the connection]
Aminda has joined #ruby
<adam12>
imho, sounds like a bug
<adam12>
You could try latest bundler and see if it helps, but I looked over changelog and nothing sticks out.
ule has joined #ruby
ule has quit [Changing host]
<jwr_>
adam12: thanks. i'll figure out a minimum viable reproduction case in docker or something and file an issue. here? https://github.com/rubygems/rubygems
<adam12>
jwr_: yep.
<jwr_>
ty
jl- has joined #ruby
jl- has quit [Ping timeout: 276 seconds]
Aminda has quit [Remote host closed the connection]
Aminda has joined #ruby
___nick___ has joined #ruby
stylo has quit [Quit: Connection closed for inactivity]
nirvdrum has joined #ruby
<Na_Klar>
adam12: Queue maybe an option .. thx
Al2O3 has quit [Ping timeout: 260 seconds]
mollerhoj has joined #ruby
<mollerhoj>
list
<mollerhoj>
\list
mollerhoj has quit [Remote host closed the connection]
<havenwood>
Na_Klar: Or `mutex.lock` on the outside and inside then `mutex.unlock` when you're good to proceed. It does sound rather like behavior of a Fiber with user controlled scheduling.
<havenwood>
Hard to suggest without more context, but maybe consider switching from a Thread to a Fiber that you can resume.
abws has quit [Read error: Connection reset by peer]
Al2O3 has joined #ruby
___nick___ has joined #ruby
___nick___ has quit [Client Quit]
___nick___ has joined #ruby
<Na_Klar>
havenwood, mutex seems to be a bit overcomplicated for that simple purpose. but it might be usefull when more control is needed over shared memory.
<havenwood>
Na_Klar: Oh, you mean Fiber is overcomplicated not Mutex? That makes more sense. :)
<havenwood>
If you just need to resume manually, seems like right tool for the job. It depends what else you're using Thread for?
arfy has quit [Read error: Connection reset by peer]
arfy has joined #ruby
crankharder has joined #ruby
protektwar has quit [Ping timeout: 268 seconds]
jwr_ has left #ruby [#ruby]
<Na_Klar>
havenwood: yes fiber is overkill. but mutex as well, since I actually don't need a lock, just a blocking. ofc also queue will send a underlying wakeup flag, but I don't need more control than that (it is not like two threads would be trying to overwrite the shared memory at the same time or anything like that). and on top of that queue was perfect to implement in my script, it took more or less one line of code. but thanks anyway, good to
<Na_Klar>
know that these classes exist.
crankhar1er has joined #ruby
crankharder has quit [Ping timeout: 244 seconds]
crankharder has joined #ruby
crankhar1er has quit [Ping timeout: 268 seconds]
jl- has joined #ruby
jl- has quit [Ping timeout: 272 seconds]
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
Linux_Kerio has quit [Quit: Konversation terminated!]