adam12 changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.0.2, 2.7.4, 2.6.8: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ
cer-0 has quit [Quit: leaving]
skali has joined #ruby
perrierjouet has joined #ruby
lucerne has quit [Quit: Ping timeout (120 seconds)]
lucerne has joined #ruby
skali has quit [Ping timeout: 260 seconds]
Rounin has quit [Ping timeout: 260 seconds]
Oxfuxxx has joined #ruby
sharkee has joined #ruby
skali has joined #ruby
mikrosis has quit [Ping timeout: 268 seconds]
skali has quit [Ping timeout: 252 seconds]
sharkee has quit [Quit: brb]
sharkee has joined #ruby
audiocat has quit [Ping timeout: 260 seconds]
audiocat has joined #ruby
Polyinsecure has joined #ruby
Polyinsecure has quit [Quit: Leaving]
Guest6 has quit [Quit: Client closed]
ur5us_ has quit [Ping timeout: 240 seconds]
audiocat has quit [Ping timeout: 260 seconds]
ur5us_ has joined #ruby
skali has joined #ruby
skali has quit [Ping timeout: 268 seconds]
goepsilongo has joined #ruby
danjo2 has joined #ruby
danjo has quit [Ping timeout: 265 seconds]
danjo2 is now known as danjo
skali has joined #ruby
skali has quit [Ping timeout: 268 seconds]
goepsilongo has quit [Quit: Konversation terminated!]
danjo3 has joined #ruby
danjo has quit [Ping timeout: 265 seconds]
danjo3 is now known as danjo
skali has joined #ruby
skali has quit [Ping timeout: 268 seconds]
skali has joined #ruby
skali has quit [Ping timeout: 260 seconds]
gfawcett3 has quit [Read error: Connection reset by peer]
gfawcett3 has joined #ruby
lunarkitty has quit [Quit: Connection closed for inactivity]
skali has joined #ruby
skali has quit [Ping timeout: 265 seconds]
jetchisel has quit [Ping timeout: 260 seconds]
sagax has joined #ruby
skali has joined #ruby
skali has quit [Ping timeout: 268 seconds]
_ht has joined #ruby
skali has joined #ruby
ur5us_ has quit [Ping timeout: 252 seconds]
Polyinsecure has joined #ruby
jpw has quit [Remote host closed the connection]
Polyinsecure has quit [Ping timeout: 260 seconds]
CrazyEddy has joined #ruby
teclator has joined #ruby
roadie has joined #ruby
_ht has quit [Remote host closed the connection]
skali has quit [Ping timeout: 268 seconds]
jetchisel has joined #ruby
skali has joined #ruby
VoidNoir0 has joined #ruby
Oxfuxxx has quit [Quit: Never underestimate the power of the butt....ON. (Playst...i mean.. Pir@tA$$)]
sharkee has quit [Remote host closed the connection]
Rounin has joined #ruby
fdan has joined #ruby
darwillim86d has quit [Quit: Connection closed for inactivity]
fxn has joined #ruby
mrkz_c has quit [Quit: Connection closed for inactivity]
reset has quit [Quit: reset]
ur5us_ has joined #ruby
gr33n7007h has joined #ruby
freeworld has joined #ruby
fxn has quit [Quit: Client closed]
jetchisel has quit [Ping timeout: 268 seconds]
jetchisel has joined #ruby
jetchisel has quit [Read error: Connection reset by peer]
skali has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Bounga has joined #ruby
skali has joined #ruby
snobbybumblebee has joined #ruby
ccapndave has joined #ruby
hololeap has quit [Remote host closed the connection]
hololeap has joined #ruby
fdan has quit [Quit: Client closed]
jetchisel has joined #ruby
ccapndave has quit [Ping timeout: 240 seconds]
fdan has joined #ruby
roadie has quit [Ping timeout: 260 seconds]
snobbybumblebee has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fdan has quit [Quit: Client closed]
roadie has joined #ruby
skali is now known as skali_
skali_ is now known as skali
ur5us_ has quit [Ping timeout: 268 seconds]
skali has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roadie has quit [Ping timeout: 268 seconds]
roadie has joined #ruby
roadie has quit [Ping timeout: 268 seconds]
bit4bit has joined #ruby
roadie has joined #ruby
snobbybumblebee has joined #ruby
bit4bit has quit [Ping timeout: 268 seconds]
hololeap has quit [Ping timeout: 276 seconds]
hololeap has joined #ruby
ccapndave has joined #ruby
<ccapndave> Hey! I am calling a long running shell command from a Ruby script (its a `docker pull <something>`). The command itself outputs a progress bar and I just want the Ruby script to show it. How can I do that?
snobbybumblebee has quit [Ping timeout: 265 seconds]
roadie has quit [Ping timeout: 268 seconds]
ccapndave has quit [Quit: Textual IRC Client: www.textualapp.com]
<nakilon> and why leave...
<nakilon> "--progress plain" IIRC
<nakilon> and popen
<nakilon> or even better, there is a gem for docker
<adam12> I'd open3 and pass $stdout/$stderr through, possibly.
fdan has joined #ruby
jetchisel has quit [Ping timeout: 268 seconds]
jetchisel has joined #ruby
<nakilon> adam12 what then gets the ^C?
<nakilon> I mean you would want then to be able to ^C to stop it and you would need to make trap{}
<adam12> nakilon: out of scope for this feature request ;)
<nakilon> ye
Cata has joined #ruby
Cata has quit [Remote host closed the connection]
goepsilongo has joined #ruby
bit4bit has joined #ruby
fdan has quit [Ping timeout: 256 seconds]
freeworld has quit [Quit: Konversation terminated!]
freeworld has joined #ruby
bit4bit has quit [Ping timeout: 265 seconds]
roadie has joined #ruby
Common-Lisp has joined #ruby
yxhuvud has quit [Remote host closed the connection]
yxhuvud has joined #ruby
jetchisel has quit [Ping timeout: 268 seconds]
jetchisel has joined #ruby
Common-Lisp has quit [Remote host closed the connection]
jetchisel has quit [Ping timeout: 260 seconds]
goepsilongo has quit [Quit: Textual IRC Client: www.textualapp.com]
jetchisel has joined #ruby
Oxfuxxx has joined #ruby
Common-Lisp has joined #ruby
Oxfuxxx has quit [Ping timeout: 260 seconds]
jetchisel has quit [Ping timeout: 268 seconds]
jetchisel has joined #ruby
perrierjouet has quit [Quit: WeeChat 3.2]
perrierjouet has joined #ruby
jetchisel has quit [Max SendQ exceeded]
Common-Lisp has quit [Quit: ERC (IRC client for Emacs 27.2)]
jetchisel has joined #ruby
Common-Lisp has joined #ruby
perrierjouet has quit [Quit: WeeChat 3.2]
perrierjouet has joined #ruby
jetchisel has quit [Ping timeout: 252 seconds]
jetchisel has joined #ruby
gggpkm has quit [Ping timeout: 268 seconds]
Common-Lisp has quit [Remote host closed the connection]
jpw has joined #ruby
dviola has quit [Quit: WeeChat 3.2]
Common-Lisp has joined #ruby
roadie has quit [Ping timeout: 252 seconds]
Common-Lisp has quit [Remote host closed the connection]
_ht has joined #ruby
roadie has joined #ruby
dviola has joined #ruby
perrierjouet has quit [Quit: WeeChat 3.2]
mrkz_c has joined #ruby
perrierjouet has joined #ruby
bit4bit has joined #ruby
<rapha> huh
<rapha> wow
<rapha> the code generator employed by bundler's gem generator is quite dangerous
<rapha> it uses an example URL which leads to a very obnoxious looking website (https://mygemserver.com <=== only click on that with appropriate security measures taken i'd say)
<leah2> i guess someone sniped that domain?
<nakilon> I ALWAYS SAID that generating gem with that thing is a bad practice
* rapha is trying for the first time to see what it actually does
<nakilon> it says "domain is for sale" though so you can buy it and host a webpage with <H1>don't generate gems with bundler!!!!</H1>
<nakilon> just build the gem manually
<nakilon> it's not rails
<rapha> hhhh bcoz that works so well ... buying domains from domain snipers like that one
<nakilon> minimal gem is just 1 file I suppose
<nakilon> they are "domain investors since 1997" and have whole lot of 860 followers in instagram, why don't you trust them ..D
<rapha> this is on the top of the list when you google "how to make a ruby gem" ... just sayin', people might follow their guide, you know.
<rapha> since 1997?! wow! that's almost as good as since 1887!
<nakilon> there should be some normal guide, all those suck, even the one on rubygems.org
<leah2> just copy the gemspec from your last gem :p
<rapha> fwiw it took me 5 minutes and now i have a gem with all the bells and whistles i could wish for in a gem
<nakilon> there should be one that says "build it file by file" and especially "don't push it to rubygems god damn just because you want to see what will be the output print of the command"
<nakilon> and 3: "you don't have to push your gem to rubygems, bundler easily takes gems right from your git repo"
<nakilon> "i have a gem" -- no, you have nothing ..D it has empty ./lib, does nothing, but has squatted some name on rubygems and will be there forever
roadie has quit [Ping timeout: 268 seconds]
<rapha> hihihihi
<rapha> seems i hit a raw spot there, dear nakilon
<nakilon> (I'm just frustrated by moments when I come up with some nice idea, want to name a gem and all the forms of the name are already taken by gems v0.0.1 with 1 commit "first commit")
* rapha hands nakilon a bottle of vodka
<leah2> 4, just use a submodules instead of gems :p
<nakilon> and for example that gem bmp that has no relation to bmp...
<nakilon> do you know the Java blogger Egor Bugayenko? he's kind of the "expert in OOP" and stuff, makes some weird radical blog posts about how to code in Java
<rapha> i was out at "java" and "blogger" ;)
<nakilon> our local rails companies are doing "Rubyconf" annually though no one has neither a clue nor interest in Ruby in Russia -- they only know and want Rails because it sounds better than PHP and making websites is the only IT job we are doing in Russia
sharkee has joined #ruby
Oxfuxxx has joined #ruby
<nakilon> so the conference name pretends to be about Ruby but in fact it's about Rails and trying to hire people in those 2-3 old companies that are doing this every year; and this year looks like they don't even have enough speakers so can you imagine they've invited that Java blogger
<nakilon> can you imagine, he will tell how to write in ruby, and probably since he has no idea what it is his topic will be "How to make a gem", like it's some sort of a secret and no one could figure it out until now when the Java blogger will tell us with slides
roadie has joined #ruby
<nakilon> so I would expect some little increase of the rate of new gems to be created from a template ..D
roadie has quit [Ping timeout: 260 seconds]
cyrus_mc has joined #ruby
<rapha> hmm you don't happen to be from Kazan, nakilon?
<adam12> nakilon: maybe submit a PR to change that domain to example.com?
roadie has joined #ruby
<rapha> adam12: he doesn't even like to use it ... if anyone should do that then maybe me. nakilon will kill me now, but i'm actually liking this a little bit.
<adam12> rapha: doh. I didn't realize it was you and not him that said it.
cyrus_mc has quit [Quit: Connection closed]
roadie has quit [Ping timeout: 268 seconds]
jetchisel has quit [Ping timeout: 268 seconds]
jetchisel has joined #ruby
<nakilon> I agree, rapha might want to make a PR
CrazyEddy has quit [Ping timeout: 260 seconds]
<rapha> the convo was already going a little while :)
<rapha> and i'll make one tomo
roadie has joined #ruby
dviola has quit [Quit: WeeChat 3.2.1]
roadie has quit [Ping timeout: 260 seconds]
sharkee has quit [Ping timeout: 252 seconds]
Oxfuxxx has quit [Ping timeout: 252 seconds]
Cata has joined #ruby
dviola has joined #ruby
bit4bit has quit [Ping timeout: 252 seconds]
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
bit4bit has joined #ruby
sharkee has joined #ruby
Oxfuxxx has joined #ruby
roadie has joined #ruby
AMPed has joined #ruby
skali has joined #ruby
skali is now known as skali_
skali_ is now known as skali
<AMPed> I'm having a really hard time fitting rdoc and ri into my head; I had perhaps naïvely thought they would be something like man pages or (going back) perldoc, but it seems like I need to know more about the file location where modules and classes are defined. I just tried something basic like 'ri Kernel.rand' and it tells me "Nothing known about Kernel.rand".
skali has quit [Client Quit]
<adam12> AMPed: `ri Kernel.rand` fails?
<adam12> AMPed: It should work. It sounds like maybe your Ruby install is broken somehow? How did you install Ruby?
<AMPed> adam12: I'm using rvm to manage different versions.
Bounga has quit [Ping timeout: 252 seconds]
<AMPed> as far as the initial install, I don't recall.
<AMPed> It either came with xubuntu or I 'apt-get install'-ed it.
<adam12> AMPed: `ri --list-doc-dirs` - can you paste that to gist or similar?
edusantana has joined #ruby
hololeap has quit [Remote host closed the connection]
<adam12> AMPed: Is there anything in the top 2 directories?
hololeap has joined #ruby
<adam12> Oh. I forgot rvm hides docs by default. https://rvm.io/rubies/docs
<AMPed> aha
<AMPed> and no, nothing in the top two.
<AMPed> right... rvm makes things easier... :\
<adam12> :P
<adam12> Documentation in Ruby has always been lackluster. Maybe that will be changing soon.
<adam12> At one point, `--no-ri --no-rdoc` were suggested gem install options :(
<adam12> IRB is starting to include tab-completion and alt-d document support. Maybe that's a turning point.
<weaksauce> yeah i was reading the docs on eventmachine today... and well that's not very well documented at all
<AMPed> one of those things you don't realize the importance of until it's gone, or in this case, wasn't there in the first place
<AMPed> Note to self: document your own crap, thoroughly.
<adam12> There's definitely been work on improving core docs. Burdette Lamar submits like 10 PR's a week to improve docs. And I saw some doxygen stuff for the C bits.
<adam12> But I do wish gem docs were built into the deployment process, similar to Hex from Elixir (hexdocs.pm).
<adam12> An advantage that Jose had when creating a new language. Deciding on docs up front (markdown, testable) makes it easy to encourage people. Similar to Rails and testing so many years ago.
<adam12> weaksauce: I just added eventmachine to gemdocs.org. 57.76% documented. Heh.
<weaksauce> hah
dachi__ has quit [Ping timeout: 265 seconds]
Cata has quit [Quit: Leaving]
<adam12> Interesting. I didn't know gems could have dots in them. https://rubygems.org/gems/square.rb
<adam12> ^^ havenwood what is this sorcery :P
<AMPed> adam12: thanks, docs finished generating and ri seems to work.
<adam12> AMPed: good stuff
<AMPed> But... is csv or CSV a standard module?
<adam12> Sure.
<AMPed> is there a special way I need to refer to it, other than 'ri CSV' or 'ri csv'?
<adam12> AMPed: `ri CSV` should work
<AMPed> hrm...
<AMPed> okay, that worked. Must have mistyped something.
<AMPed> CSV, not CVS, of course
<AMPed> derp
<adam12> ;)
<AMPed> Cool. Going for lunch now. Thanks!
AMPed has quit [Quit: lunchtime]
_ht has quit [Remote host closed the connection]
dachinat has joined #ruby
bastienleonard has joined #ruby
jpw has quit [Remote host closed the connection]
jpw has joined #ruby
jpw has quit [Remote host closed the connection]
roadie has quit [Remote host closed the connection]
roadie has joined #ruby
roadie has quit [Ping timeout: 260 seconds]
bit4bit has quit [Ping timeout: 268 seconds]
roadie has joined #ruby
ur5us_ has joined #ruby
roadie has quit [Ping timeout: 260 seconds]
mrkz_c has quit [Quit: Connection closed for inactivity]
roadie has joined #ruby
edusantana has quit [Ping timeout: 265 seconds]
roadie has quit [Ping timeout: 252 seconds]
roshanavand has joined #ruby
freeworld has quit [Ping timeout: 252 seconds]
gggpkm has joined #ruby
edusantana has joined #ruby
gggpkm has quit [Ping timeout: 252 seconds]
Oxfuxxx has quit [Quit: Best anal probes are made in china]
sharkee has quit [Remote host closed the connection]
edusantana has quit [Quit: Saindo]
Polyinsecure has joined #ruby
Polyinsecure has quit [Client Quit]