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
duds- has joined #ruby
<libsys> rubyreferences.github.io is the best most comprehenvise resource I've found
<libsys> that apart from the rusty but fun poignant.guide and "programming ruby"
<libsys> these resources will work anyways, really
<libsys> the base is the same
tv- has quit [Quit: Bye]
tv- has joined #ruby
Inline has quit [Ping timeout: 265 seconds]
ua_ has quit [Ping timeout: 240 seconds]
<newton> TIL rubyreferences cool link, ty
ua_ has joined #ruby
ua_ has quit [Client Quit]
<adam12> I get the vibe from zverok that Rubyreferences is a huge pain to maintain, so if you like it, I'd drop a hint to him that you do in hopes he'll keep maintaining it.
sagax has joined #ruby
<havenwood> Al2O3: ls, cat, md5sum, more, file
<havenwood> Al2O3: maybe some new git subcommands
<weaksauce> those are c right?
<weaksauce> i think they want ruby
<havenwood> weaksauce: I thought it was to implement things that weren't necessarily in Ruby.
<havenwood> weaksauce: git subcommands are in a variety of langs
<havenwood> they ship bash, C, C++?, perl? I can't remember them all.
<weaksauce> oh i didn't get that they wanted to implement it... it just sounded like they wanted to read some good code
<havenwood> You can write them in Ruby.
<havenwood> weaksauce: Maybe I'm the one that got it wrong. Rereading.
<havenwood> weaksauce: Yup, you're right. I'm wrong.
<havenwood> Al2O3: pry, irb, brew, typeprof, rbs, rails, bundle, gem
<weaksauce> it's a good idea to implement those too though
krishnac has joined #ruby
<adam12> tail is always a fun one, if you want to do it properly
AMPed has quit [Ping timeout: 265 seconds]
krishnac has quit [Remote host closed the connection]
BSaboia has joined #ruby
Rounin has quit [Ping timeout: 250 seconds]
Al2O3_ has joined #ruby
<Al2O3_> havenwood: weaksauce TY both, will DL.
<Al2O3_> weaksauce: pretty familiar as in 2005'ish spent time with it.
<weaksauce> Al2O3_ this guide is interesting... https://guides.rubyonrails.org/initialization.html
<weaksauce> worth downloading the source to follow along too
<Al2O3> interested in C tools that can be implemented in ruby, as exercises.
<Al2O3> or small tools in ruby that are worth studying.
<Al2O3> think 'software tools' the book :)
<Al2O3> weaksauce: TY, I'll look at that as well.
<Al2O3> I do remember ROR
<weaksauce> might be worth looking at something like thor or tty
<Al2O3> it was just coming around in the 2006'ish timeframe as I recall with basecamp.
<weaksauce> and maybe use it to make a small command line app
<Al2O3> reading Russ Olsen's book and another 4-5 books about ruby, ROR, and such, coming back to speed on things after 15 years out of the loop.
<weaksauce> eloquent ruby is great
<Al2O3_> I'm a ST'er, so I get this perspective very well.
<Al2O3_> my philo on code, best code written is that which you remove/delete.
TCZ has joined #ruby
<Al2O3> brb, I'm double logged in for some reason.
Al2O3 has quit [Remote host closed the connection]
Al2O3_ has quit [Remote host closed the connection]
Al2O3 has joined #ruby
<Al2O3> that may be better.
<Al2O3> seems to be, weird.
<Al2O3> happens occasionally, hexchat on 17.3 mint.
BSaboia has quit [Quit: This computer has gone to sleep]
<Cork> Al2O3: i would say if you haven't already net/ssh and net/scp is worth looking into if you ever need to manage remote machines (one of my absolute favs in ruby)
TCZ has quit [Quit: Leaving]
artemon has joined #ruby
trillp has quit [Quit: nyaa~]
ua_ has joined #ruby
ur5us has quit [Ping timeout: 250 seconds]
ralu has quit [Ping timeout: 264 seconds]
voltage_ has quit [Quit: Leaving]
parv has joined #ruby
ralu has joined #ruby
jpw has joined #ruby
erb has joined #ruby
Guest6873 has quit [Ping timeout: 260 seconds]
erb has quit [Quit: Quit]
trillp has joined #ruby
Al2O3 has quit [Ping timeout: 268 seconds]
Al2O3 has joined #ruby
leonthemisfit has joined #ruby
leonthemisfit has quit [Changing host]
leonthemisfit has joined #ruby
_ht has joined #ruby
vit has joined #ruby
_ht has quit [Remote host closed the connection]
jetchisel has quit [Ping timeout: 264 seconds]
jetchisel has joined #ruby
ur5us has joined #ruby
jpw has quit [Remote host closed the connection]
roadie has joined #ruby
postmodern has joined #ruby
Al2O3 has quit [Ping timeout: 268 seconds]
the_finn has quit [Quit: Connection closed for inactivity]
Al2O3 has joined #ruby
berkhan has joined #ruby
trillp has quit [Quit: nyaa~]
Rounin has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
nmollerup has joined #ruby
taupiqueur has joined #ruby
berkhan has quit [Ping timeout: 265 seconds]
berkhan has joined #ruby
ur5us has quit [Ping timeout: 264 seconds]
roadie has quit [Ping timeout: 265 seconds]
roadie has joined #ruby
BSaboia has joined #ruby
BSaboia has quit [Client Quit]
leachim6 has joined #ruby
va5c0 has joined #ruby
va5c0 has quit [Client Quit]
BSaboia has joined #ruby
_aeris_ has joined #ruby
aeris has quit [Ping timeout: 276 seconds]
_aeris_ is now known as aeris
BSaboia has quit [Quit: This computer has gone to sleep]
BSaboia has joined #ruby
cnsvc has quit [Remote host closed the connection]
cnsvc has joined #ruby
Al2O3 has quit [Remote host closed the connection]
Al2O3 has joined #ruby
fef has joined #ruby
parv has quit [Quit: parv]
Furai has quit [Quit: WeeChat 3.3]
Furai has joined #ruby
shokohsc86 has quit [Read error: Connection reset by peer]
roadie has quit [Read error: Connection reset by peer]
roadie has joined #ruby
shokohsc861 has joined #ruby
shokohsc861 has quit [Read error: Connection reset by peer]
shokohsc861 has joined #ruby
berkhan has quit [Ping timeout: 250 seconds]
berkhan has joined #ruby
gr33n7007h has joined #ruby
fef has quit [Quit: Leaving]
taupiqueur has quit [Ping timeout: 260 seconds]
berkhan has quit [Ping timeout: 268 seconds]
walidvb has joined #ruby
shokohsc8618 has joined #ruby
shokohsc861 has quit [Ping timeout: 250 seconds]
shokohsc8618 is now known as shokohsc861
postmodern has quit [Quit: Leaving]
shokohsc8611 has joined #ruby
shokohsc861 has quit [Ping timeout: 250 seconds]
shokohsc8611 is now known as shokohsc861
walidvb has quit [Quit: Client closed]
voltage_ has joined #ruby
caleb has joined #ruby
AMPed has joined #ruby
shokohsc861 has quit [Read error: Connection reset by peer]
shokohsc861 has joined #ruby
crankharder has joined #ruby
depesz has joined #ruby
<nakilon> this piton nonsense
<nakilon> people say that piton is leading for >15 years already
<nakilon> still everything is being made in other languages, including ruby, and only then ported to piton
<nakilon> it's the same nonsense as "linux will defeat windows the next year"
<nakilon> for 30 years already?
ikke has left #ruby [WeeChat 3.2]
<depesz> hi. I have a problem with regexp and gsub with block: https://gist.github.com/depesz/39096aef34b88e03bc83c829aed1f742
<depesz> generally when I do: `string.gsub(regexp) do |x|` - x is *whole match*, and I'd like to get either match object, or $2 from the match
<depesz> is it possible?
<nakilon> >In the block form, the current match string is passed in as a parameter, and variables such as $1, $2, $`, $&, and $' will be set appropriately. (See regexp.rdoc for details.) The value returned by the block will be substituted for the match on each call.
<nakilon> you have to use $1 instead of x
<nakilon> whatever is the number of the group you want
<ox1eef> nakilon: i never heard of piton
<depesz> nakilon: aaah. thanks a lot.
<nakilon> ox1eef your knowledge is outdated https://imgur.com/a/C80N5su
<nakilon> follow the trends
<nakilon> if you want to have any job you better learn these three languages ..P
<ox1eef> yeah python is what everyone seems to use on tech twitter. the ruby job market still seems healthy, though.
shokohsc861 has quit [Ping timeout: 264 seconds]
shokohsc861 has joined #ruby
roadie has quit [Ping timeout: 265 seconds]
roadie has joined #ruby
<depesz> one more question - given expression that returns array-ish object, that I don't want to assign to variable, how can I get all elements except first two?
<depesz> for example: "a b c d e f".match(%r{(.) (.) (.) (.)})
<nakilon> .scan(/\S/).drop(2) ?
<nakilon> or .match(%r{(?:.) (?:.) (.) (.) (.) (.)})
brontosaurusrex has quit [Ping timeout: 256 seconds]
roadie has quit [Ping timeout: 265 seconds]
brontosaurusrex has joined #ruby
KOTP has quit [Ping timeout: 245 seconds]
<jhass[m]> .split[2..]
<jhass[m]> but I'm suspicious about "an expression that returns an array'ish object", feels like it potentially might not need to do that in the first place :P
AMPed has quit [Quit: ERC (IRC client for Emacs 26.3)]
___nick___ has joined #ruby
shokohsc861 has quit [Ping timeout: 250 seconds]
shokohsc861 has joined #ruby
roadie has joined #ruby
Inline has joined #ruby
gr33n7007h has quit [Ping timeout: 250 seconds]
___nick___ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
___nick___ has joined #ruby
___nick___ has quit [Client Quit]
___nick___ has joined #ruby
crankharder has quit [Ping timeout: 256 seconds]
fef has joined #ruby
BSaboia has quit [Quit: This computer has gone to sleep]
jpw has joined #ruby
gr33n7007h has joined #ruby
crankharder has joined #ruby
howdoi has joined #ruby
BSaboia has joined #ruby
eldritch has quit [Ping timeout: 245 seconds]
eldritch_ has joined #ruby
BSaboia has quit [Quit: This computer has gone to sleep]
fef has quit [Ping timeout: 276 seconds]
taupiqueur has joined #ruby
fef has joined #ruby
taupiqueur has quit [Ping timeout: 260 seconds]
saltrocklamp[m] has joined #ruby
taupiqueur has joined #ruby
fef has quit [Remote host closed the connection]
fef has joined #ruby
fef has quit [Ping timeout: 276 seconds]
taupiqueur has quit [Remote host closed the connection]
CrazyEddy has quit [Ping timeout: 264 seconds]
taupiqueur has joined #ruby
shokohsc8615 has joined #ruby
shokohsc861 has quit [Ping timeout: 250 seconds]
shokohsc8615 is now known as shokohsc861
taupiqueur has quit [Ping timeout: 264 seconds]
taupiqueur has joined #ruby
ivzhh has joined #ruby
drocsid has joined #ruby
<CalimeroTeknik> in a ruby version from before 30 april 2009, was split on an empty string returning nil?
shokohsc8618 has joined #ruby
<drocsid> Hi rubyists. Everytime I launch a terminal in MacOS I get a message Required jruby-9.1.12.0 is not installed. To install do rvm install "jruby-9.1.12.0" which happens to fail. But can I see why or where this particular jruby is requested or requried?
shokohsc861 has quit [Ping timeout: 250 seconds]
shokohsc8618 is now known as shokohsc861
<drocsid> It seems to be quite an old version so I'm trying to track it down
<weaksauce> CalimeroTeknik which version was that
crankharder has quit [Ping timeout: 250 seconds]
<weaksauce> drocsid tough to say... does it happen if you force an empty bash/zsh profile
<adam12> CalimeroTeknik: Yes, sounds right.
<weaksauce> you could try bash -x or zsh -x to get a full debugging output
<weaksauce> it's ... a lot of information though
BSaboia has joined #ruby
Inline has quit [Quit: Leaving]
<drocsid> weaksauce, good ideas. I cleared out relevant portions of zshrc and it looks like it was caused by a path setting.
<drocsid> specfically I think it was caused by the path setting to the logstash binary paths for jruby. I'm suprised the latest logstash uses that old version. I have been trying to execute tests for logstash using jruby, and using a little inline ruby in a logstash config.
<weaksauce> nice
crankharder has joined #ruby
<CalimeroTeknik> weaksauce, 1.8 at the time
<CalimeroTeknik> adam12, thanks!
<drocsid> It's still quite odd however. When I go to the logstash inary path included with logstash it reports jruby 9.29.18.0 (2.5.8) when I jruby --version
<drocsid> So troubling it requests that I install that ancient version. I'm goiing to re-add the path elements and see if that's still the case.
shokohsc861 has quit [Read error: Connection reset by peer]
<adam12> CalimeroTeknik: I can't find reference to it now, but IIRC it was one of those Ruby WTFs that used to go around.
<adam12> CalimeroTeknik: Why do you ask?
shokohsc861 has joined #ruby
<CalimeroTeknik> I found a commit that said so from 2009
<CalimeroTeknik> tried it, and got a different result (on 2.7)
<leah2> 1.8 says "".split == []
ur5us has joined #ruby
Inline has joined #ruby
taupiqueur has quit [Ping timeout: 264 seconds]
<CalimeroTeknik> that's weird
<leah2> sounds like the only sensible implementation?
Inline has quit [Quit: Leaving]
menace has joined #ruby
<CalimeroTeknik> yes
menace has quit [Changing host]
menace has joined #ruby
trillp has joined #ruby
<weaksauce> maybe it was a regression
Inline has joined #ruby
<leah2> this is 1.8.7, i dont have other versions at hand
Inline has quit [Remote host closed the connection]
Inline has joined #ruby
<drocsid> oddly enough after resetting the path the required jruby message dissappeared
KOTP has joined #ruby
gr33n7007h has quit [Ping timeout: 268 seconds]
gr33n7007h 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
howdoi has quit [Quit: Connection closed for inactivity]
___nick___ has quit [Ping timeout: 256 seconds]
Inline has quit [Quit: Leaving]
Inline has joined #ruby
drocsid has quit [Quit: Client closed]
leutamo has joined #ruby
Inline has quit [Quit: Leaving]
leutamo has quit [Client Quit]
voltage has joined #ruby
voltage_ has quit [Killed (NickServ (GHOST command used by voltage))]
voltage is now known as voltage_
Liexei has quit [Ping timeout: 245 seconds]
Inline has joined #ruby
crankharder has quit [Ping timeout: 250 seconds]
Inline_ has joined #ruby
Inline is now known as Guest1099
Inline_ has quit [Remote host closed the connection]
Inline_ has joined #ruby
Liexei has joined #ruby
Inline_ is now known as Inline
gcd has joined #ruby
shokohsc861 has quit [Ping timeout: 250 seconds]
CrazyEddy has joined #ruby
e2 has quit [Ping timeout: 268 seconds]
jetchisel has quit [Ping timeout: 256 seconds]
jetchisel has joined #ruby
howdoi has joined #ruby
voltage_ has quit [Quit: Leaving]
ur5us has quit [Ping timeout: 250 seconds]