havenwood changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 2.7.2, 2.6.6, 3.0.0-preview1: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.org | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | BLM <3 | Can't talk? Register/identify with NickServ
ur5us has quit [Ping timeout: 264 seconds]
centrx has joined #ruby
centrx has quit [Ping timeout: 264 seconds]
centrx has joined #ruby
centrx has quit [Ping timeout: 264 seconds]
centrx has joined #ruby
NeoThermic_II has joined #ruby
centrx has quit [Ping timeout: 264 seconds]
NeoThermic has quit [Ping timeout: 246 seconds]
centrx has joined #ruby
centrx has quit [Ping timeout: 264 seconds]
drincruz_ has quit [Ping timeout: 272 seconds]
jenrzzz has joined #ruby
ur5us has joined #ruby
prion has quit [Ping timeout: 260 seconds]
crankharder has joined #ruby
Swyper_ has quit [Remote host closed the connection]
prion has joined #ruby
crankharder has quit [Ping timeout: 264 seconds]
AndyC has joined #ruby
TCZ has quit [Remote host closed the connection]
orbyt_ has joined #ruby
dan64- has quit [Quit: ZNC - http://znc.in]
x0n- has joined #ruby
x0n has quit [Ping timeout: 240 seconds]
centrx has joined #ruby
dan64 has joined #ruby
drincruz_ has joined #ruby
crankharder has joined #ruby
prion has quit [Ping timeout: 240 seconds]
teardown has quit [Ping timeout: 240 seconds]
teardown has joined #ruby
crankharder has quit [Ping timeout: 240 seconds]
TCZ has joined #ruby
AndyC has quit [Ping timeout: 246 seconds]
meinside has joined #ruby
centrx_ has joined #ruby
drincruz_ has quit [Ping timeout: 264 seconds]
centrx has quit [Ping timeout: 260 seconds]
davispuh has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
gix has quit [Ping timeout: 260 seconds]
bambanx has quit [Quit: Leaving]
kaleido has quit [Quit: peas]
kaleido has joined #ruby
kaleido has quit [Changing host]
kaleido has joined #ruby
Inoperable has quit [Quit: All your buffer are belong to us!]
Inoperable has joined #ruby
vk has quit [Ping timeout: 240 seconds]
Technodrome has quit [Ping timeout: 240 seconds]
nicolas_ has joined #ruby
lucasb has quit [Quit: Connection closed for inactivity]
<teardown> Signal.list only show half of what 'kill -l' shows on this linux system. why would it do that
ChmEarl has quit [Quit: Leaving]
aremaref has quit [Ping timeout: 260 seconds]
Fusl has quit [Ping timeout: 268 seconds]
TCZ has quit [Quit: Diabe? tkwi w szczegó?ach]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
drincruz_ has joined #ruby
Fusl has joined #ruby
aremaref has joined #ruby
mroulston has joined #ruby
aremaref has quit [Ping timeout: 256 seconds]
mroulston has quit [Client Quit]
_whitelogger has joined #ruby
infernix has quit [Ping timeout: 264 seconds]
ruurd has quit [Read error: Connection reset by peer]
ruurd has joined #ruby
aremaref has joined #ruby
teardown_ has joined #ruby
teardown has quit [Ping timeout: 240 seconds]
centrx_ has quit []
jlindgren has joined #ruby
Fusl has quit [Excess Flood]
Fusl has joined #ruby
Technodrome has joined #ruby
aremaref has quit [Ping timeout: 240 seconds]
cthu| has quit [Ping timeout: 256 seconds]
Swyper has joined #ruby
crankharder has joined #ruby
crankharder has quit [Ping timeout: 240 seconds]
crankharder has joined #ruby
crankharder has quit [Ping timeout: 272 seconds]
crankharder has joined #ruby
crankharder has quit [Ping timeout: 240 seconds]
Swyper has quit [Remote host closed the connection]
elcuervo has joined #ruby
crankharder has joined #ruby
cuerbot has quit [Ping timeout: 260 seconds]
Swyper has joined #ruby
crankharder has quit [Ping timeout: 256 seconds]
crankharder has joined #ruby
nowhereman has quit [Remote host closed the connection]
Eiam has quit [Quit: (╯°□°)╯︵ ǝpouǝǝɹɟ]
nowhereman has joined #ruby
Swyper has quit [Ping timeout: 260 seconds]
crankharder has quit [Ping timeout: 256 seconds]
crankharder has joined #ruby
infernix has joined #ruby
akem_ has quit [Quit: Leaving]
crankharder has quit [Ping timeout: 264 seconds]
ur5us has quit [Ping timeout: 264 seconds]
ur5us has joined #ruby
crankharder has joined #ruby
akem has joined #ruby
crankharder has quit [Ping timeout: 240 seconds]
_whitelogger has joined #ruby
ur5us has quit [Ping timeout: 264 seconds]
crankharder has joined #ruby
teardown_ has quit [Ping timeout: 240 seconds]
essem has joined #ruby
crankharder has quit [Ping timeout: 272 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Iarfen has quit [Remote host closed the connection]
nowhereman has quit [Ping timeout: 272 seconds]
aremaref has joined #ruby
aremaref has quit [Ping timeout: 240 seconds]
drincruz_ has quit [Ping timeout: 256 seconds]
ur5us has joined #ruby
factormystic has quit [Ping timeout: 256 seconds]
blackmesa has joined #ruby
icarus has joined #ruby
jmcgnh has quit [Ping timeout: 256 seconds]
Zedgamer has joined #ruby
zenspider has quit [Quit: ZNC 1.6.6+deb1ubuntu0.2 - http://znc.in]
<Zedgamer> hi
<Zedgamer> this is zed from theodinproject
zenspider has joined #ruby
jmcgnh has joined #ruby
kristian_on_linu has joined #ruby
zacts has joined #ruby
zacts has quit [Client Quit]
ur5us has quit [Ping timeout: 264 seconds]
essem has quit [Ping timeout: 240 seconds]
nofxx__ has joined #ruby
nofxx_ has quit [Ping timeout: 256 seconds]
Zedgamer has quit [Read error: No route to host]
crankharder has joined #ruby
crankharder has quit [Ping timeout: 240 seconds]
crankharder has joined #ruby
icarus has quit [Ping timeout: 240 seconds]
Xiti has quit [Quit: Leaving]
crankharder has quit [Ping timeout: 256 seconds]
Xiti has joined #ruby
crankharder has joined #ruby
crankharder has quit [Ping timeout: 265 seconds]
helpa-bot has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
helpa has quit [Remote host closed the connection]
helpa-bot has quit [Remote host closed the connection]
helpa has joined #ruby
Fusl has quit [Max SendQ exceeded]
Fusl has joined #ruby
cloud69 has joined #ruby
factormystic has joined #ruby
blackmesa has quit [Ping timeout: 272 seconds]
orbyt_ has joined #ruby
woodruffw has quit [Ping timeout: 256 seconds]
woodruffw has joined #ruby
woodruffw has joined #ruby
woodruffw has quit [Changing host]
al2o3-cr has joined #ruby
akem_ has joined #ruby
Xiti has quit [Ping timeout: 246 seconds]
akem has quit [Ping timeout: 260 seconds]
ur5us has joined #ruby
infosec_yo has joined #ruby
<infosec_yo> is ruby nice ?
cd has quit [Ping timeout: 264 seconds]
infosec_yo has left #ruby [#ruby]
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
howdoi has quit [Quit: Connection closed for inactivity]
crankharder has joined #ruby
Xiti has joined #ruby
arne_ has joined #ruby
<arne_> does somebody know how i make Net::HTTP not unset the socket after the first request
blackmesa has joined #ruby
<arne_> i tried "keep_alive_timeout = 300" but that doesn't do the trick
ellcs has joined #ruby
crankharder has quit [Ping timeout: 260 seconds]
blackmesa1 has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
postmodern has joined #ruby
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
al2o3-cr has quit [Ping timeout: 256 seconds]
NeoThermic_II is now known as NeoThermic
roshanavand has joined #ruby
roshanavand has quit [Ping timeout: 256 seconds]
<nakilon> arne_, IIRC it depends on methods that you use to read; there is some method #finish that you can dive into the source code to find the socket object variable
ellcs has quit [Read error: Connection reset by peer]
ellcs has joined #ruby
<arne_> nakilon: bleh, i'd like the http connection to never close
<arne_> and the internals aren't pretty
<arne_> if i call .start on the http connection, it doesn't set Connection: close as a header, and that enables me to use the "keep_alive_timeout"
<arne_> but that still gives me a limited time do to requests
<arne_> this should be easier, imho
<nakilon> arne_ from this old commit in my code I see that #start has a block form that closes connection while non-block form didn't and that was causing handlers leaks; not sure though was the socket still reusable
<nakilon> but that is a wrapped on 2.3.8 and things might change a lot since then; you should dive into actual the code
ur5us has quit [Ping timeout: 264 seconds]
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
<arne_> yes, i know, but i want this to be "nil" but that doesn't work :D
<jhass> just use typhoeus' Hydra :)
nofxx__ has quit [Ping timeout: 256 seconds]
braincrash has joined #ruby
akem_ has quit [Ping timeout: 246 seconds]
jkprg has joined #ruby
<arne_> jhass: if i cut the head off i get 2?
<arne_> what's hydra
<jhass> 20!
<arne_> how does that thing work, is it thready?
<arne_> select()y?
<jhass> it's a wrapper around libcurl
<arne_> okay so it's php-iy
<jhass> what libcurl does depends a bit on its version and build options, but generally threads
<jhass> transparent to the ruby side though
<arne_> well as long as it's outside of the ruby runtime i don't care as much
<arne_> but external dependencies is always a bit meh :/
<jhass> well yeah, but libcurl is pretty available
<arne_> does it need a compiled gem? or is it ffi?
<jhass> it is a C ext (extracted as the ethon gem)
<jhass> gotta run :)
<arne_> thank you for the suggestion!
Milos has quit [Quit: ZNC 1.8.2 - https://znc.in]
ignorand has joined #ruby
Milos has joined #ruby
jkprg has quit [Quit: jkprg]
al2o3-cr has joined #ruby
jkprg has joined #ruby
cloud69 has quit [Quit: Connection closed for inactivity]
Technodrome has joined #ruby
akem has joined #ruby
silviu has quit [Remote host closed the connection]
silviu has joined #ruby
TCZ has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
Axy has joined #ruby
Axy has joined #ruby
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
Mia has quit [Ping timeout: 256 seconds]
jerome___ has quit [Ping timeout: 256 seconds]
meinside has quit [Quit: Connection closed for inactivity]
postmodern has quit [Quit: Leaving]
nowhereman has joined #ruby
prion has joined #ruby
jkprg has quit [Quit: jkprg]
jkprg has joined #ruby
akem has quit [Ping timeout: 260 seconds]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
TCZ has quit [Remote host closed the connection]
Swyper has joined #ruby
drincruz_ has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
TCZ has joined #ruby
drincruz_ has quit [Ping timeout: 240 seconds]
drincruz_ has joined #ruby
TCZ has quit [Quit: Diabe? tkwi w szczegó?ach]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
adam12 changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 2.7.2, 2.6.6, 3.0.0-preview2: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.org | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | BLM <3
boc_tothefuture has joined #ruby
<boc_tothefuture> Hey there.. I was playing around with something in ruby and trying to understand what exactly is going on.. because it was the opposite of what I expected. If I create an object in response to method_missing and that object defines the + method (which then ruby gives the +=) method.. what exactly is happening? I expected += to end up creating
<boc_tothefuture> a variable and assigning the result of the operation to it.. But it doesn't seem to do that? Is that a special case of the += magic?
<leah2> x.foo += 5 will send a method_missing for :foo, then for :foo=
<boc_tothefuture> but lets say there is no x
<boc_tothefuture> it's just foo
<boc_tothefuture> so the base method_missing not in a particular class.
<leah2> then it will not call method_missing but create a local variable
<leah2> pretty sure
<boc_tothefuture> it doesn't seem to create a local variable.
<leah2> oh, it calls :foo and then creates a local variable maybe?
<boc_tothefuture> which surprised me
<leah2> foo = will never call :foo=
<leah2> you need to write self.foo =
<leah2> or +=
jkprg has quit [Quit: jkprg]
<boc_tothefuture> but if you don't.. what exaclty is happening?
jkprg has joined #ruby
<boc_tothefuture> ok, so if you do += on method missing.. it carries out the plus operation and skips the assignment?
<boc_tothefuture> This is the behavior I am desiring, but it was just curious to me.
<boc_tothefuture> let me share a gist.
nowhereman has quit [Ping timeout: 258 seconds]
<jhass> boc_tothefuture: can you post an example of what you're looking at to https://carc.in/#/rb
<jhass> or gist, yeah :D
icarus has joined #ruby
<boc_tothefuture> https://carc.in/#/r/a2y5
<boc_tothefuture> After line 17, I would think line 19 would return String as the class.
<boc_tothefuture> But it doesn't. It calls method_missing again
<boc_tothefuture> have to move locations.. bbiab.
boc_tothefuture has quit [Remote host closed the connection]
master_woo has joined #ruby
master_woo has quit [Remote host closed the connection]
jkprg has quit [Quit: jkprg]
ruurd has quit [Quit: ZZZzzz…]
ruurd has joined #ruby
kristian_on_linu has quit [Remote host closed the connection]
stryek has joined #ruby
mbrndtgn has joined #ruby
aremaref has joined #ruby
boc_tothefuture has joined #ruby
<boc_tothefuture> @jhass - did you get a chance to look at that gist? Not sure if you know what is going on there.
<jhass> sorry, not much
<jhass> you probably ran into some edge cases here
<jhass> so my answer would be "don't do this, you won't need this" :P
<boc_tothefuture> well. I am not doing that particular thing.. but I was overriding method missing.. and the object I did it with has + defined.. so I was wondering what happened..
alexceder has joined #ruby
<boc_tothefuture> Which seems to be nothing.. which is the right answer.. I just wanted to understand why.
<jhass> yeah, not sure. Like I learning foo = anywhere in the scope should define the local variable and shadow any method call, but then https://carc.in/#/r/a2yj
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
davispuh has joined #ruby
orbyt_ has joined #ruby
<leah2> boc_tothefuture: as said, foo= is only triggered with explicit receiver: https://carc.in/#/r/a2ya
<boc_tothefuture> ok, so needs an explicit receiver.. that makes sense.. thanks!
<leah2> then it should work fine
<leah2> and will call without = before
<boc_tothefuture> Shouldn't it raise an error? Unexpected operator?
<leah2> where?
<boc_tothefuture> When you do += without an explicit receiver..
<leah2> no, it creates a local variable
<boc_tothefuture> but it doesn't seem to.. becuase it doesn't exist the next line down because it calls method missing agian.
<leah2> ah yeah, it will also set foo to nil :D
<leah2> that only doesnt get detected because you defined method_missing globally, which is a really bad ida
<leah2> >> a=a; p a
<ruby[bot]> leah2: # => nil ...check link for more (https://carc.in/#/r/a2ym)
<leah2> boc_tothefuture: ponder this ^
<leftylink> the classic "correct! nil! wat" moment
<boc_tothefuture> ok, so it sets it to nil, but because it is set to nil it calls method_missing again?
<leah2> it calls NilClass#+ which is missing
<boc_tothefuture> ahhh
<leah2> >> a=a+1; p a
<ruby[bot]> leah2: # => undefined method `+' for nil:NilClass (NoMethodError) (https://carc.in/#/r/a2yn)
<leah2> else you'd get that^
<boc_tothefuture> ok, makes sense.. thanks.
fercell has joined #ruby
blackmesa1 has quit [Ping timeout: 260 seconds]
cuerbot has joined #ruby
elcuervo has quit [Ping timeout: 260 seconds]
akem has joined #ruby
woodruffw has quit [Ping timeout: 256 seconds]
aremaref has quit [Ping timeout: 246 seconds]
woodruffw has joined #ruby
woodruffw has quit [Changing host]
woodruffw has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Tuor has left #ruby ["https://quassel-irc.org - Chat comfortably. Anywhere."]
ChmEarl has joined #ruby
prion has quit [Ping timeout: 258 seconds]
dionysus69 has joined #ruby
boc_tothefuture has quit [Remote host closed the connection]
aremaref has joined #ruby
dionysus69 has quit [Quit: dionysus69]
aremaref has quit [Ping timeout: 246 seconds]
dionysus69 has joined #ruby
cthu| has joined #ruby
<nakilon> >> p=p; p p
<ruby[bot]> nakilon: # => nil ...check link for more (https://carc.in/#/r/a2yr)
blackmesa1 has joined #ruby
prion has joined #ruby
<DEac-> >> 3 => x; p x
<DEac-> >> x = 3; p x
Eiam has joined #ruby
al2o3-cr has quit [Quit: WeeChat 2.9]
cd has joined #ruby
al2o3-cr has joined #ruby
aremaref has joined #ruby
aremaref has quit [Ping timeout: 240 seconds]
Xiti` has joined #ruby
prion has quit [Ping timeout: 256 seconds]
Xiti has quit [Ping timeout: 246 seconds]
<havenwood> #=> 3
<havenwood> DEac-: #!> warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Xiti` has quit [Quit: Leaving]
Xiti has joined #ruby
gueorgui_ is now known as gueorgui
ellcs has quit [Ping timeout: 260 seconds]
orbyt_ has joined #ruby
blackmesa has joined #ruby
blackmesa1 has quit [Ping timeout: 272 seconds]
aremaref has joined #ruby
infosec_yo has joined #ruby
<infosec_yo> hi !
<infosec_yo> i am learning ruby
<llua> welcome
<infosec_yo> tnx
<infosec_yo> is ruby nice ?
<llua> we like it a bit
<infosec_yo> is it better than lua ?
<jlindgren> better is subjective imo
<infosec_yo> why ?
<jlindgren> it depends what you're using it for.
<infosec_yo> web
<infosec_yo> and getting laid.
<jlindgren> in that case I would say ruby is better than lua, due to rails.
<infosec_yo> rails ?
<jlindgren> github.com/rails/rails web framework for ruby that does all the work for you.
<infosec_yo> oh !
<infosec_yo> ruby ON rails
<infosec_yo> why is it on rails, though ?
<jlindgren> idk just a slogan
<jlindgren> rails is the framework for the language (ruby)
<infosec_yo> is it designed to make programs for the automotive industry ?
<jlindgren> ....no i just said its a web framework.
<infosec_yo> but it can be used for that as well, right ?
<jlindgren> once again depends. if you need to make a website, then yes. otherwise, debatable.
<infosec_yo> i see
<infosec_yo> is it fast ?
<llua> clearly a help vampire
<infosec_yo> what ?
<jlindgren> the top link there will answer a bunch of your questions.
<infosec_yo> no
nofxx has joined #ruby
infosec_yo was banned on #ruby by adam12 [*!sid476935@gateway/web/irccloud.com/x-edjovldvdbqdltsr]
infosec_yo was kicked from #ruby by adam12 [infosec_yo]
<adam12> Long time troll be trolling
<jlindgren> adam12: ahh ok.
<jlindgren> thank you
<jlindgren> that was....a lot
<jlindgren> sorry I've been quiet, been hanging a while just lurking o/
<adam12> jlindgren: It's all good.
<queip> can Ruby become derailed during heavy load or as result of accident?
jcalla has joined #ruby
priodev has quit [Ping timeout: 260 seconds]
<adam12> queip: Hopefully not when it's being used in the automotive industry!
<adam12> Fun fact: there is/was a rumour that the Tesla dashboard ran Rails.
<adam12> so I guess it can be used for the automotive industry.
<jlindgren> lol!
sagax has quit [Ping timeout: 240 seconds]
<Eiam> I'm pretty sure Tesla uses Qt
<Eiam> " For example, the automotive industry has in recent years taken Qt as a fundamental technology for the development of digital entertainment and control systems. "
<adam12> Eiam: Interesting. I was basing it on this thread from a while back: https://twitter.com/atomicthumbs/status/1032939620248444928/photo/1
<adam12> Eiam: But it does mention Qt in one of them, so who knows
<Eiam> =)
<Eiam> I was cheating, since I already knew the answer was "Tesla uses Qt" so it was just a matter of finding the supporting facts
dionysus69 has quit [Ping timeout: 264 seconds]
DTZUZU has quit [Read error: Connection reset by peer]
howdoi has joined #ruby
AndyC has joined #ruby
DTZUZU has joined #ruby
BenDover has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fippy has joined #ruby
jenrzzz has joined #ruby
orbyt_ has joined #ruby
blackmesa has quit [Ping timeout: 258 seconds]
crankharder has joined #ruby
ignorand has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 265 seconds]
blackmesa has joined #ruby
AndyC has quit [Ping timeout: 260 seconds]
crankharder has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
rcvu has quit [Ping timeout: 264 seconds]
ur5us has joined #ruby
deadbee has joined #ruby
TCZ has joined #ruby
mistergibson has joined #ruby
deadbee has quit [Quit: WeeChat 2.9]
fercell has quit [Quit: WeeChat 2.9]
Xiti has quit [Ping timeout: 256 seconds]
Technodrome has joined #ruby
AndyC has joined #ruby
RickHull has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
alexceder has quit [Remote host closed the connection]
crankharder has joined #ruby
AndyC has quit [Ping timeout: 240 seconds]
gix has joined #ruby
crankharder has quit [Ping timeout: 246 seconds]
Xiti has joined #ruby
Intelo has joined #ruby
<Intelo> How to install ruby? I mean where to download from?
<Intelo> why not wget -O ruby-install-0.7.0.tar.gz https://github.com/postmodern/ruby-install/archive/v0.7.0.tar.gz
crankharder has joined #ruby
<Intelo> havenwood: I think you gave this link once
<havenwood> Intelo: Yes, you can use ruby-install if you don't want to memorize the build steps or want to install other Rubies.
<Intelo> samething?
<Intelo> havenwood: how hard would it be if I go via ruby-lang standard way?
<havenwood> Intelo: It's not particularly hard to build yourself or install with ruby-install. Give it a try both ways?
<Intelo> trying rub-lang
bambanx has joined #ruby
crankharder has quit [Ping timeout: 240 seconds]
_whitelogger has joined #ruby
<Intelo> havenwood: oh thanks!
crankharder has joined #ruby
_whitelogger has joined #ruby
crankharder has quit [Ping timeout: 264 seconds]
<Intelo> havenwood: Is this installation guide for the one from ruby-lang or the ruby by postmodern/ruby-install?
lightstalker has joined #ruby
<havenwood> Intelo: The former.
<Intelo> ok whats
<Intelo> ./configure --prefix=/opt/rubies/ruby-2.7.2 havenwood
jenrzzz has joined #ruby
<Intelo> will it install rub there?
<Intelo> I think I would need sudo for that
<RickHull> configure is just for the build step. you'll need sudo (likely) for the `make install` part
<Intelo> RickHull: so where should I configure it? /opt will need root
<RickHull> does the configure step fail when you try it without sudo?
jenrzzz has quit [Read error: Connection reset by peer]
<Intelo> RickHull: I am following this as havenwood suggested https://github.com/postmodern/chruby/wiki/Ruby#installation
<Intelo> RickHull: trying
<Intelo> RickHull: looks like not failing
<Intelo> by the way, I am doing all this to install redmine
<RickHull> what OS?
<Intelo> Ubuntu lts 20
<RickHull> why not use ubuntu package manager for this stuff?
<Intelo> that has old ruby and old redmine
<RickHull> ok -- do you plan to upgrade today's install in the next year or so? you might give some thought to what that will be like. that's where using a package manager starts to pay off. are the old packages actually a problem?
<Intelo> RickHull: you are absolutely correct but redmine features (latest) has this cost
<Intelo> RickHull: the problem is that old versions don't have those features
<RickHull> personally, I am fan of using ruby-install and chruby if I need to possibly use newer (or older) rubies
<Intelo> hm
<RickHull> if you don't expect to need a newer ruby later, then you're on a good track
<Intelo> RickHull: I installed but when I do `ruby -v`, it says not installed
<RickHull> likely because `ruby` is not currently in your PATH
<Intelo> correct
<Intelo> wil fix
<RickHull> remember to reload your shell session after updating PATH (in whichever shell startup file)
<Intelo> RickHull: so if I don't use chruby, but this one, I can always uninstall and install new one. No?
<Intelo> RickHull: how to reload
<RickHull> just start a new shell session is the easiest
<RickHull> and yes, you can always install a newer ruby and point to it in your PATH
<RickHull> chruby helps manage this for you, e.g. when project A needs ruby 2.5 and project B wants ruby 2.7
Swyper has quit [Remote host closed the connection]
<Intelo> I got the ruby now
<Intelo> 2.7
teardown has joined #ruby
<RickHull> how about `which gem` ?
rubydoc has quit [Ping timeout: 240 seconds]
phaul has quit [Ping timeout: 256 seconds]
<Intelo> RickHull: Am.. I think I will soon be lost. Should I just git clone redmineRepo and then do some magic command like gem install rubyonrails?
Swyper has joined #ruby
<Intelo> RickHull: they have this though https://www.redmine.org/projects/redmine/wiki/RedmineInstall
<RickHull> no clue. the redmine docs should explain how to set it up
<Intelo> RickHull: at a glance, they show things for v2.5
<RickHull> so it looks like redmine supports ruby 2.4
<RickHull> i don't know why you aren't using OS packages
Swyper has quit [Ping timeout: 260 seconds]
akem_ has joined #ruby
Mia has joined #ruby
x0n has joined #ruby
akem__ has joined #ruby
akem has quit [Ping timeout: 246 seconds]
x0n- has quit [Ping timeout: 260 seconds]
<Intelo> RickHull: to get latest redmine. thats why
Axy has quit [Ping timeout: 265 seconds]
<RickHull> which version of redmine? the page you linked shows trunk still supports ruby 2.4
akem_ has quit [Ping timeout: 240 seconds]
<RickHull> I found a bug in truffleruby, but trying to see if it's already known. what is the feature called that does range expansion inside an array literal?
<RickHull> e.g. a = [*1..5, *7..10]
<RickHull> should result in [1, 2, 3, 4, 5, 7, 8, 9, 10]
<Intelo> RickHull: Is this normal? https://imgur.com/iFUAwHU.png
<Intelo> and I got my first error too https://imgur.com/IAIGtkE.png
<Intelo> RickHull: this is what I was telling you in start that I might not have write pemission in /opt https://imgur.com/gGFptvY.png
BenDover has quit [Quit: BenDover]
priodev has joined #ruby
<leftylink> 21:49:31 < RickHull> e.g. a = [*1..5, *7..10]
<leftylink> that's most likelyto e called a range splat
phaul has joined #ruby
<RickHull> thanks
<leftylink> probably not the specific phrase "range splat"; just splat is the most well known name for that operator. and then it's being applied to a range
rubydoc has joined #ruby
roshanavand has joined #ruby
blackmesa has quit [Ping timeout: 258 seconds]
braincrash has quit [Ping timeout: 256 seconds]
<Intelo> RickHull: havenwood successfully isntalled ruby and redmine. Thanks
<RickHull> :D
biggtimber has joined #ruby
TCZ has quit [Quit: Diabe? tkwi w szczegó?ach]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
rubydoc has quit [Ping timeout: 240 seconds]
phaul has quit [Ping timeout: 260 seconds]
roshanavand has quit [Quit: Quitting...]
roshanavand has joined #ruby
phaul has joined #ruby
rubydoc has joined #ruby
postmodern has joined #ruby
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
phaul has quit [Ping timeout: 258 seconds]
rubydoc has quit [Ping timeout: 260 seconds]
prion has joined #ruby
phaul has joined #ruby
rubydoc has joined #ruby
crankharder has joined #ruby
crankharder has quit [Ping timeout: 265 seconds]
crankharder has joined #ruby
ur5us has quit [Ping timeout: 264 seconds]
crankharder has quit [Ping timeout: 256 seconds]
crankharder has joined #ruby
dviola has quit [Quit: WeeChat 2.9]
crankharder has quit [Ping timeout: 260 seconds]
aremaref has quit [Ping timeout: 240 seconds]
crankharder has joined #ruby