adam12 changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.0.1, 2.7.3, 2.6.7: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | BLM <3
ur5us has quit [Ping timeout: 245 seconds]
gearnode has quit [Ping timeout: 250 seconds]
harlin has quit [Quit: Leaving]
evdubs has joined #ruby
evdubs__ has quit [Ping timeout: 240 seconds]
mangold has joined #ruby
canbenshanlo has quit [Ping timeout: 246 seconds]
mangold has quit [Quit: Leaving]
jetchisel has quit [Ping timeout: 260 seconds]
robotbee has joined #ruby
jetchisel has joined #ruby
MalkbabY has quit [Remote host closed the connection]
MalkbabY has joined #ruby
cliluw has quit [Ping timeout: 240 seconds]
cliluw has joined #ruby
cliluw has quit [Ping timeout: 265 seconds]
cliluw has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
evdubs_ has joined #ruby
evdubs has quit [Ping timeout: 240 seconds]
evdubs__ has joined #ruby
evdubs_ has quit [Ping timeout: 245 seconds]
kinduff has quit [Read error: Connection reset by peer]
kinduff has joined #ruby
evdubs__ has quit [Read error: Connection reset by peer]
evdubs__ has joined #ruby
robotbee has quit [Ping timeout: 245 seconds]
BTRE has quit [Quit: Leaving]
BTRE has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
orbyt_ has joined #ruby
duderonomy has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
evdubs_ has joined #ruby
evdubs__ has quit [Ping timeout: 245 seconds]
jenrzzz has quit [Ping timeout: 246 seconds]
robotbee has joined #ruby
evdubs_ has quit [Ping timeout: 245 seconds]
robotbee has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
gix- has joined #ruby
gix has quit [Disconnected by services]
howdoi has quit [Quit: Connection closed for inactivity]
jenrzzz has quit [Ping timeout: 240 seconds]
ChmEarl has quit [Quit: Leaving]
<_rg> ruby -S bundle install
<_rg> i use that sometimes when there's a strange env issue like that.
<_rg> oh wow im replying to a thread almost 12 hours old :) nevermind.
oneeggeach has joined #ruby
al2o3-cr has quit [Ping timeout: 246 seconds]
elcuervo has joined #ruby
robotbee has joined #ruby
cuerbot has quit [Ping timeout: 268 seconds]
Rudd0 has joined #ruby
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
m27frogy has quit [Ping timeout: 245 seconds]
robotbee has quit [Ping timeout: 260 seconds]
jetchisel has quit [Ping timeout: 260 seconds]
oneeggeach has quit [Quit: Leaving...]
TK__ has quit [Ping timeout: 250 seconds]
deviantfero has quit [Ping timeout: 245 seconds]
schultza has joined #ruby
<schultza> how do I fix a deleted lockfile?
Rudd0^ has joined #ruby
Rudd0 has quit [Ping timeout: 245 seconds]
jetchisel has joined #ruby
<havenwood> schultza: You mean a Gemfile.lock?
Rudd0^ has quit [Read error: Connection reset by peer]
<havenwood> schultza: Is it checked in to git? If so: git checkout Gemfile.lock
<havenwood> schultza: If not, run: bundle
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has joined #ruby
orbyt_ has quit [Ping timeout: 252 seconds]
al2o3-cr has joined #ruby
jamees has joined #ruby
MalkbabY has quit [Remote host closed the connection]
MalkbabY_ has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
jamees has quit [Quit: Connection closed]
howdoi has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
explorier has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
ur5us has joined #ruby
ur5us has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
ur5us has joined #ruby
explorie1 has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
explorier has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
<schultza> @havenwood, it was from a gem install
ur5us has quit [Ping timeout: 268 seconds]
<havenwood> schultza: Then just run: bundle
<schultza> bundle?
<havenwood> schultza: bundle
<havenwood> schultza: gem install bundler
<havenwood> schultza: Bundler ships with Ruby these days as a default gem.
<havenwood> schultza: Running `bundle` will create a Gemfile.lock containing specific gem dependencies from resolving your Gemfile.
jetchisel has quit [Ping timeout: 240 seconds]
al2o3-cr has quit [Ping timeout: 252 seconds]
<schultza> Could not locate Gemfile
<havenwood> schultza: Run it in the gem's root directory.
<havenwood> schultza: Just to clarify, you're working on a gem and want to install the dependencies locally?
<havenwood> "it was from a gem install"
<havenwood> The gem name is `bundler` for the `bundle` command.
<havenwood> schultza: Say more about what it is you're trying to do?
<schultza> install sup.... somewhere i ran a ....
<schultza> rm -rf /home/allen/.local/share/gem/ruby/3.0.0/gems/lockfile-2.1.3/lib/lockfile.rb
<schultza> where i was having issues with a previous crash on sup (when running for first time) and decided to delete the lockfile as I thought it was like any other lock file i came across.
<havenwood> schultza: This is a gem called "lockfile" it appears.
<havenwood> schultza: Run: gem pristine lockfile
<schultza> where?
<havenwood> The file you deleted is the library entry point for the lockfile gem.
<havenwood> schultza: anywhere
jenrzzz has joined #ruby
<havenwood> see: gem pristine -h
<havenwood> schultza: It'll just repair that gem to pristine condition, removing any changes you made like deleting this file.
shtirlic has quit [Ping timeout: 240 seconds]
<schultza> so, am i back to the sup community?
howdoi has quit [Quit: Connection closed for inactivity]
jenrzzz has quit [Ping timeout: 245 seconds]
<havenwood> schultza: I'm not familiar with sup. You might try #sup channel.
<schultza> Complete silence over there. I'm new, not sure when their support hours are. But I just submitted an issue request on their github. Thank you, @havenwood.
<havenwood> schultza: You might try looking at the code around where the error is percolating up. What's line 308 of? /home/allen/.local/share/gem/ruby/3.0.0/gems/lockfile-2.1.3/lib/lockfile.rb
<schultza> Is there an 'encode' package to gem install?
<havenwood> schultza: Ah, yeah, you're running into a retirement of a deprecated feature in Ruby 3.0
<havenwood> schultza: They should switch to use CGI.escape.
<havenwood> schultza: In the meantime, use Ruby 2.7.3.
alexherbo2 has joined #ruby
<schultza> Ruby 3 was defaulted in my install, I even had to finish installing rubygems package to get to downloading stuff.
<havenwood> schultza: You could forwardport the feature but probably better to fix the lib or use a compatible Ruby version.
shtirlic has joined #ruby
<havenwood> schultza: require 'cgi'
<havenwood> schultza: Then change those three `URI.encode` to `CGI.escape`.
<schultza> Not my project. I'll ask them. Thank you.
<havenwood> schultza: You can change it locally yourself but I meant to suggest making a PR.
<havenwood> Good luck. Happy emailing!
<havenwood> schultza: gem open sup
<havenwood> schultza: you can then restore to factory condition with: gem pristine sup
<schultza> gem open sup looks like it uses my terminal EDITOR
<havenwood> schultza: Or, yeah, Ruby 2.7 since this gem seems like it's back-burnered maintenance.
<havenwood> schultza: Yes, it opens the gem in your terminal so you can edit it.
<havenwood> schultza: You can try the fix.
<schultza> Whats the best way to install ruby 2.7 over 3.0?
<havenwood> schultza: What OS/distro?
<havenwood> Artix?
<schultza> community/ruby2.7 2.7.3-1 -- An object-oriented language for quick and easy programming, version 2.7
<schultza> Is that the latest version of 2.7? No, Manjaro.
<schultza> I'm just using artix's pastebin.
<havenwood> schultza: see Manjaro
<havenwood> schultza: I mean, see https://gist.github.com/jhass/8839655bb038e829fba1
<havenwood> schultza: Basically, install ruby2.7 and use a tool like chruby to switch between Rubies. There are many ways though. We can assist with whatever way.
<schultza> Let me get some good rest and go through this article. I'll post if this succeeds for me. Thank you again.
<schultza> Where should I go as a beginner to Ruby, but NOT new to programming?
<havenwood> schultza: For a quick run though https://try.ruby-lang.org/
<schultza> Thank you.
<havenwood> schultza: See the topic for book recommendations.
<havenwood> schultza: Exercism has good Ruby tracks and feedback https://exercism.io/tracks/ruby
<havenwood> We're happy to review code or answer questions here.
dbohdan has left #ruby [#ruby]
gemmaro has quit [Ping timeout: 245 seconds]
explorier has joined #ruby
explorie1 has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
al2o3-cr has joined #ruby
gemmaro has joined #ruby
jamees has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
shtirlic has quit [Read error: Connection reset by peer]
shtirlic has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
teclator has joined #ruby
BelmakoR has joined #ruby
BelmakoR has quit [Client Quit]
shtirlic has quit [Ping timeout: 240 seconds]
shtirlic has joined #ruby
canbenshanlo has joined #ruby
bl4ckthor has joined #ruby
bl4ckthor has quit [Client Quit]
moldorcoder7 has quit [Ping timeout: 252 seconds]
MalkbabY_ has quit [Remote host closed the connection]
MalkbabY has joined #ruby
jenrzzz has joined #ruby
moldorcoder7 has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
Rudd0 has joined #ruby
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
prion has joined #ruby
ur5us has joined #ruby
TCZ has joined #ruby
weaksauce has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
jetchisel has joined #ruby
jamees has quit [Quit: Connection closed]
Tobi[m]2 has joined #ruby
prion has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
gemmaro has quit [Ping timeout: 250 seconds]
m27frogy has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
gemmaro has joined #ruby
ur5us has quit [Ping timeout: 245 seconds]
snickers has joined #ruby
jetchisel has quit [Ping timeout: 245 seconds]
henninb has joined #ruby
al2o3-cr has quit [Quit: WeeChat 3.1]
al2o3-cr has joined #ruby
Rudd0 has quit [Ping timeout: 260 seconds]
jetchisel has joined #ruby
jenrzzz has joined #ruby
TCZ has quit [Quit: ...]
explorier has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 252 seconds]
explorier has joined #ruby
henninb has quit [Quit: leaving]
whysthatso has quit [Read error: Connection reset by peer]
whysthatso has joined #ruby
actuallybatman has quit [Ping timeout: 240 seconds]
prion has joined #ruby
jamees has joined #ruby
alexherbo2 has quit [Ping timeout: 245 seconds]
MalkbabY has quit [Remote host closed the connection]
MalkbabY has joined #ruby
jla has joined #ruby
prion has quit [Ping timeout: 240 seconds]
henninb has joined #ruby
phaul has quit [Ping timeout: 246 seconds]
rubydoc has quit [Ping timeout: 265 seconds]
phaul has joined #ruby
alexherbo2 has joined #ruby
FetidToot has quit [Quit: Ping timeout (120 seconds)]
FetidToot has joined #ruby
phaul has quit [Ping timeout: 240 seconds]
phaul has joined #ruby
rubydoc has joined #ruby
Na_Klar has joined #ruby
jenrzzz has joined #ruby
<Na_Klar> working with ruby 2.5.1: why can I pipe "ruby prog.rb | grep ^" when prog is: print "test", but not when "Thread.new{ print "test" }? When you work prog.rb from console you can see both prints, the one directly from prog.rb and the one from the threaded prog.rb. But when I try to pipe that output, the direct is available but the threaded is nowhere. Why is that?
TCZ has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
ChmEarl has joined #ruby
gemmaro has quit [Ping timeout: 245 seconds]
<_rg> if your code is only Thread.new { print "" } the main thread might exit first, you should probably join the thread at least with that much info
<_rg> see if Thread.new { print 'hello' }.join is different.
<Na_Klar> _rg, well, .join did the trick. thank you a lot!
<_rg> welcome
gemmaro has joined #ruby
<Na_Klar> _rg, that solves the stdout issue, but .join then won't let me run loop in Thread, it will block the code. I need Thread to thread loops while the program runs further. Could you think of a way to achieve both? Getting stdout from Thread for pipes and keep it unjoined?
jenrzzz has joined #ruby
<jhass> you didn't understand the issue. Your thread is killed when the main thread exits. Writing to a pipe is much faster than writing to a terminal, so it probably somehow shuffles things around just enough to make a difference in your minimal example.
<jhass> .join blocks the current thread until the join'ed thread is finished, hence in the minimal example it keeps the main thread alive
<Na_Klar> nono, the main thread was in a loop and didn't kill the thread
<jhass> if it's busy looping and never doing any IO then other threads won't get a chance to run. In MRI there's a global lock around the VM that prevents parallel execution of ruby code
<Na_Klar> I have a main thread and a thread. the main thread runs forever and the thread prints text. the text is sent to console but not catchable by a pipe.
<jhass> got a minimal example that demonstrates this? -> gist.github.com
<Na_Klar> the script works fine on console. just piping its stdout does not work for anything which comes from the thread. anythink from the main thread is pipeable.
jenrzzz has quit [Ping timeout: 245 seconds]
<Na_Klar> jhass, you can reproduce by just: Thread.new(while true {print "two" sleep(1) } while true {print "one" sleep(1)} .. the console output will be onetwoonetwo... but when piping the program like ruby test.rb | grep ^ the output will be like "oneoneoneoneone"
<jhass> I cannot and given this isn't even syntactially valid I don't think you have yourself :)
<jhass> One thing to note though: stdout becoming a non-tty changes flush behaviour
<jhass> namely https://rubyapi.org/3.0/o/io#method-i-sync from true to false
jamees has quit [Ping timeout: 240 seconds]
<Na_Klar> jhass, seems like $stdout.sync does the trick
<Na_Klar> = true ofc
orbyt_ has joined #ruby
Dooky has joined #ruby
Na_Klar has quit [Quit: Leaving.]
gemmaro has quit [Ping timeout: 250 seconds]
alexherbo2 has quit [Ping timeout: 240 seconds]
prion has joined #ruby
elcuervo has quit [Quit: ZNC 1.7.5 - https://znc.in]
espnv has joined #ruby
TCZ has quit [Quit: ...]
jenrzzz has joined #ruby
Rudd0 has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
Dooky has quit [Quit: ZZZzzz…]
yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
yxhuvud has joined #ruby
alexherbo2 has joined #ruby
snickers has quit [Ping timeout: 268 seconds]
prion has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
Rudd0 has quit [Ping timeout: 246 seconds]
jla has quit [Ping timeout: 260 seconds]
Rudd0 has joined #ruby
prion has joined #ruby
jenrzzz has joined #ruby
FastJack has quit [Ping timeout: 268 seconds]
actuallybatman has joined #ruby
FastJack has joined #ruby
rubydoc has quit [Ping timeout: 252 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
phaul has quit [Quit: :wq]
rubydoc has joined #ruby
explorier has quit [Ping timeout: 240 seconds]
explorier has joined #ruby
prion has quit [Ping timeout: 246 seconds]
queip has quit [Ping timeout: 260 seconds]
queip has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
MalkbabY has quit [Remote host closed the connection]
MalkbabY has joined #ruby
rubydoc has quit [Remote host closed the connection]
henninb has quit [Remote host closed the connection]
Dooky has joined #ruby
TrufflePump has quit [Ping timeout: 258 seconds]
gearnode has joined #ruby
trevorb has joined #ruby
TrufflePump has joined #ruby
moldorcoder7 has quit [Ping timeout: 246 seconds]
moldorcoder7 has joined #ruby
wfwdex[m] has joined #ruby
jla has joined #ruby
trevorb has quit [Ping timeout: 245 seconds]
gearnode has quit [Ping timeout: 260 seconds]
Liothen_ has quit [Quit: Liothen_]
weaksauce has joined #ruby
bucareli has joined #ruby
evdubs has joined #ruby
explorier has quit [Ping timeout: 265 seconds]
espnv has quit [Remote host closed the connection]
jla has left #ruby [#ruby]
jla has joined #ruby
Dooky has quit [Quit: ZZZzzz…]
jetchisel has quit [Ping timeout: 265 seconds]
jla has left #ruby [#ruby]
jla has joined #ruby
niv has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
niv has joined #ruby
niv has quit [Client Quit]
thelounge6006 has joined #ruby
thelounge6006 has quit [Client Quit]
jla has quit [Quit: Leaving.]
robotbee has joined #ruby
elcuervo has joined #ruby
Rudd0 has quit [Ping timeout: 240 seconds]
moldorcoder7 has quit [Quit: %bye mirc%]
TrufflePump has quit [Ping timeout: 258 seconds]
TrufflePump has joined #ruby
Dooky has joined #ruby
niv has joined #ruby
ule has quit [Quit: WeeChat 2.9]
moldorcoder7 has joined #ruby
dka_ has quit [Quit: My Ex-Girlfriend once told me: I'm not a slut, I'm just popular]
alexherbo2 has quit [Ping timeout: 245 seconds]
TK__ has joined #ruby
robotbee has quit [Ping timeout: 268 seconds]
FetidToot has quit [Quit: The Lounge - https://thelounge.chat]
FetidToot has joined #ruby
Mrgoose8 has quit [Ping timeout: 240 seconds]
dka has joined #ruby
SuperLag has quit [Ping timeout: 265 seconds]
SuperLag has joined #ruby
ule has joined #ruby
Dooky has quit [Quit: ZZZzzz…]
ule has quit [Changing host]
ule has joined #ruby
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
EvilJStoker has quit [Ping timeout: 246 seconds]
ule has quit [Client Quit]
_nick_ has joined #ruby
dka has quit [Quit: My Ex-Girlfriend once told me: I'm not a slut, I'm just popular]
Rudd0 has joined #ruby
ule has joined #ruby
ule has quit [Changing host]
ule has joined #ruby
EvilJStoker has joined #ruby
overy4nder has joined #ruby
MalkbabY has quit [Remote host closed the connection]
MalkbabY has joined #ruby
robotbee has joined #ruby
dka has joined #ruby
markong has quit [Remote host closed the connection]
al2o3-cr has quit [Read error: Connection reset by peer]
al2o3-cr has joined #ruby
gearnode has joined #ruby
<schultza> @havenwood, I got it working. Had to completely uninstall ruby with an install of jvm and install and use ruby2.7... that other article you gave me i had issues with it, so this other route helped a lot.
_nick_ has quit [Ping timeout: 246 seconds]
Mrgoose has joined #ruby
markong has joined #ruby
dka has quit [Remote host closed the connection]
jhass has quit [Quit: Bye]
mayhew has joined #ruby
gearnode has quit [Quit: WeeChat 3.1]
fercell has quit [Read error: Connection reset by peer]
gemmaro has joined #ruby
fercell has joined #ruby
niv has quit [Ping timeout: 245 seconds]
jla has joined #ruby
jhass has joined #ruby
robotbee has quit [Ping timeout: 268 seconds]
dka has joined #ruby
jla has quit [Ping timeout: 268 seconds]
samp has joined #ruby
<samp> hi friends. i want to start contributing, but i cant find any good starter issues on bugs.ruby-lang.org; where could i go to talk with people aobut it?
<samp> i made a bugs.ruby-lang account fwiw
gemmaro has quit [Ping timeout: 250 seconds]
gemmaro has joined #ruby
samp has quit [Quit: Connection closed]
Rudd0 has quit [Ping timeout: 252 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]