havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.3, 2.5.5, 2.7.0-preview1: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ and select Ruby as the language | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
psilly0 has quit [Ping timeout: 246 seconds]
lepepe has quit [Ping timeout: 246 seconds]
al-damiri has quit [Quit: Connection closed for inactivity]
queip has quit [Ping timeout: 248 seconds]
AJA4350 has quit [Ping timeout: 272 seconds]
queip has joined #ruby
codefriar has joined #ruby
dhollinger has quit [Ping timeout: 248 seconds]
DTZUZO has quit [Ping timeout: 268 seconds]
chalkmonster has joined #ruby
emptyfl4sk has joined #ruby
solars has quit [Quit: Connection closed for inactivity]
armyriad has joined #ruby
KaitoDaumoto has joined #ruby
fphilipe_ has joined #ruby
lepepe has joined #ruby
lepepe_ has joined #ruby
codefriar has quit [Ping timeout: 272 seconds]
fphilipe_ has quit [Ping timeout: 264 seconds]
lepepe has quit [Ping timeout: 248 seconds]
Technodrome has joined #ruby
orbyt_ has joined #ruby
ur5us has quit [Ping timeout: 258 seconds]
KaitoDau- has joined #ruby
KaitoDaumoto has quit [Ping timeout: 252 seconds]
emptyfl4sk has quit [Ping timeout: 245 seconds]
millerti has quit [Quit: Textual IRC Client: www.textualapp.com]
lucasb has quit [Quit: Connection closed for inactivity]
Swyper has joined #ruby
KaitoDau- has quit [Ping timeout: 250 seconds]
gix has quit [Ping timeout: 248 seconds]
emptyfl4sk has joined #ruby
Swyper has quit [Remote host closed the connection]
gdrc[Almere] is now known as gdrc
DTZUZO has joined #ruby
mozzarella has joined #ruby
yokel has quit [Remote host closed the connection]
ur5us has joined #ruby
yokel has joined #ruby
snigelfarfar_ has quit [Ping timeout: 244 seconds]
megamos has quit [Ping timeout: 244 seconds]
emptyfl4sk has quit [Ping timeout: 245 seconds]
ur5us has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
vjacob has quit [Ping timeout: 258 seconds]
codefriar has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.5]
snigelfarfar_ has joined #ruby
Tempesta has quit [Read error: Connection reset by peer]
Tempesta has joined #ruby
Tempesta has quit [Changing host]
Tempesta has joined #ruby
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
fphilipe_ has joined #ruby
cd has quit [Ping timeout: 260 seconds]
cd has joined #ruby
duderonomy has joined #ruby
fphilipe_ has quit [Ping timeout: 252 seconds]
dviola has quit [Quit: WeeChat 2.5]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
maryo has joined #ruby
maryo has quit [Max SendQ exceeded]
Nightmare has joined #ruby
braincrash has quit [Quit: bye bye]
braincrash has joined #ruby
snigelfarfar_ has quit [Quit: Leaving]
mozzarella has quit [Remote host closed the connection]
mozzarella has joined #ruby
mozzarella has quit [Remote host closed the connection]
mozzarella has joined #ruby
ur5us has quit [Remote host closed the connection]
chalkmonster has joined #ruby
sarink has joined #ruby
chalkmonster has quit [Client Quit]
mozzarella has quit [Remote host closed the connection]
mozzarella has joined #ruby
renich_ has joined #ruby
renich has quit [Ping timeout: 248 seconds]
renich_ is now known as renich
sarink has quit [Remote host closed the connection]
ur5us has joined #ruby
emptyfl4sk has joined #ruby
mr_rich101 has quit [Quit: ZNC - http://znc.in]
mr_rich101 has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
sarink has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
sarink has quit [Remote host closed the connection]
brool has quit [Ping timeout: 252 seconds]
sarink has joined #ruby
claw has joined #ruby
cd has quit [Quit: cd]
sarink has quit [Remote host closed the connection]
emptyfl4sk has quit [Ping timeout: 272 seconds]
sarink has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
jmcgnh_ has joined #ruby
jmcgnh has quit [Ping timeout: 258 seconds]
jmcgnh_ is now known as jmcgnh
sarink has quit [Remote host closed the connection]
renich_ has joined #ruby
lepepe_ has quit [Remote host closed the connection]
lepepe has joined #ruby
renich has quit [Ping timeout: 245 seconds]
renich_ is now known as renich
sarink has joined #ruby
fphilipe_ has joined #ruby
lepepe has quit [Ping timeout: 258 seconds]
fphilipe_ has quit [Ping timeout: 252 seconds]
yokel has quit [Remote host closed the connection]
sandstrom has joined #ruby
yokel has joined #ruby
code_zombie has quit [Quit: Leaving]
_whitelogger has joined #ruby
ur5us has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
tdy has joined #ruby
conta has joined #ruby
vondruch has joined #ruby
Inline has quit [Quit: Leaving]
reber has joined #ruby
lepepe has joined #ruby
howdoi has joined #ruby
ur5us has quit [Remote host closed the connection]
sarink has quit [Remote host closed the connection]
schne1der has joined #ruby
sarink has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
lepepe has quit [Ping timeout: 245 seconds]
absolutejam3 has joined #ruby
schne1der has quit [Ping timeout: 244 seconds]
sauvin has joined #ruby
oetjenj has joined #ruby
sarink has quit [Remote host closed the connection]
emptyfl4sk has joined #ruby
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
sarink has joined #ruby
sarink has quit [Remote host closed the connection]
emptyfl4sk has quit [Ping timeout: 268 seconds]
sarink has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
DTZUZO has quit [Ping timeout: 245 seconds]
sarink has quit [Remote host closed the connection]
absolutejam3 has quit [Ping timeout: 268 seconds]
jhass has quit [Ping timeout: 245 seconds]
sarink has joined #ruby
lxsameer has joined #ruby
sarink has quit [Remote host closed the connection]
jhass has joined #ruby
<ZAJDAN> is any difference between: result = "alfa" result += "and omega" VS result = "alfa" result.concat("and omega") ...?
sarink has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
Tuor has joined #ruby
conta has quit [Quit: conta]
solars has joined #ruby
andikr has joined #ruby
aupadhye has joined #ruby
fphilipe_ has joined #ruby
sarink has quit [Remote host closed the connection]
lepepe has joined #ruby
<phaul> I bet #concat tries to be more efficient by doing less string allocations. One has to benchmark to know for sure
<phaul> if there is difference it's going to be performance difference though
lepepe has quit [Ping timeout: 248 seconds]
<ZAJDAN> okok
kyrylo has joined #ruby
morozovm has joined #ruby
fphilipe_ has quit [Read error: Connection reset by peer]
deepreds1 has quit [Ping timeout: 248 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
lunarkitty7 has quit [Quit: WeeChat 1.9.1]
sarink has joined #ruby
schne1der has joined #ruby
nowhereman has quit [Ping timeout: 252 seconds]
fphilipe_ has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
megamos has joined #ruby
sarink has quit [Remote host closed the connection]
sandstrom has joined #ruby
sarink has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
kyrylo has joined #ruby
megamos has quit [Ping timeout: 245 seconds]
morozovm has quit []
mayurvpatil has joined #ruby
suukim has joined #ruby
Mrgoose8 has quit [Ping timeout: 272 seconds]
andikr has quit [Ping timeout: 245 seconds]
andikr has joined #ruby
Mrgoose8 has joined #ruby
reber has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
andikr has quit [Ping timeout: 258 seconds]
mayurvpatil has quit [Ping timeout: 244 seconds]
<Cork> Net::SSH.start(host, user) appears to try to create a file somewhere on the host
teclator has joined #ruby
<Cork> i can't find any reference to this in the code
<Cork> anyone know where this could be? (what path it is trying to do it on)
queip has quit [Ping timeout: 268 seconds]
deepreds1 has joined #ruby
Mrgoose8 has quit [Ping timeout: 248 seconds]
queip has joined #ruby
mikecmpbll has quit [Quit: inabit.]
jefffrails35 has joined #ruby
emptyfl4sk has joined #ruby
lepepe has joined #ruby
Mrgoose8 has joined #ruby
lepepe has quit [Ping timeout: 246 seconds]
emptyfl4sk has quit [Ping timeout: 245 seconds]
queip has quit [Ping timeout: 245 seconds]
queip has joined #ruby
keden has quit [Quit: WeeChat 2.4]
keden has joined #ruby
ur5us has joined #ruby
thesubr00t99 has joined #ruby
thesubr00t99 has quit [Client Quit]
thesubr00t has joined #ruby
<thesubr00t> Hi guys ! What is the best approach to create a "datastore" class that can be accessed from the rest of an app ?
absolutejam3 has joined #ruby
absolutejam3 has quit [Ping timeout: 245 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
andikr has joined #ruby
DTZUZO has joined #ruby
iffraff has quit [Ping timeout: 272 seconds]
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ellcs has joined #ruby
acidbot has joined #ruby
<acidbot> hello
<ellcs> hi
ur5us has quit [Remote host closed the connection]
absolutejam3 has joined #ruby
lepepe has joined #ruby
lepepe has quit [Ping timeout: 245 seconds]
<acidbot> ruby -h
<acidbot> ?
AJA4350 has joined #ruby
galaxie has quit [Remote host closed the connection]
NL3limin4t0r_afk is now known as NL3limin4t0r
thesubr00t has quit [Remote host closed the connection]
<phaul> &>> `ruby -h`
<rubydoc> # => "Usage: ruby [switches] [--] [programfile] [arguments]\n -0[octal] specify record separator (\\0,... check link for more (https://carc.in/#/r/76gz)
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
absolutejam3 has quit [Ping timeout: 268 seconds]
andikr has quit [Ping timeout: 272 seconds]
ZAJDAN has quit [Ping timeout: 272 seconds]
andikr has joined #ruby
sarink has quit [Ping timeout: 272 seconds]
tdy1 has joined #ruby
sarink has joined #ruby
tdy has quit [Ping timeout: 268 seconds]
lepepe has joined #ruby
emptyfl4sk has joined #ruby
keden has quit [Quit: WeeChat 2.5]
absolutejam3 has joined #ruby
acidbot has quit [Quit: Leaving]
ur5us has joined #ruby
tdy2 has joined #ruby
tdy1 has quit [Ping timeout: 248 seconds]
keden has joined #ruby
emptyfl4sk has quit [Ping timeout: 258 seconds]
ur5us has quit [Ping timeout: 272 seconds]
lepepe has quit [Ping timeout: 258 seconds]
aupadhye has quit [Ping timeout: 258 seconds]
queip has quit [Ping timeout: 248 seconds]
absolutejam3 has quit [Ping timeout: 244 seconds]
queip has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
ZAJDAN has joined #ruby
aupadhye has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
lepepe has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
lepepe has quit [Ping timeout: 245 seconds]
sarink has quit [Remote host closed the connection]
cisco has joined #ruby
oetjenj has joined #ruby
cisco is now known as Guest44076
Guest44076 has quit [Client Quit]
absolutejam3 has joined #ruby
absolutejam3 has quit [Ping timeout: 248 seconds]
DTZUZO has quit [Ping timeout: 248 seconds]
sarink has joined #ruby
DTZUZO has joined #ruby
gb_away has quit [Ping timeout: 245 seconds]
gb_away has joined #ruby
AJA4350 has quit [Ping timeout: 268 seconds]
tf2ftw has quit [Quit: This computer has gone to sleep]
tf2ftw has joined #ruby
tf2ftw has quit [Client Quit]
tf2ftw has joined #ruby
tf2ftw has quit [Client Quit]
crankharder has joined #ruby
tf2ftw has joined #ruby
tf2ftw has quit [Client Quit]
tf2ftw has joined #ruby
tf2ftw has quit [Client Quit]
tf2ftw has joined #ruby
tf2ftw has quit [Client Quit]
codefriar has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cassolas has joined #ruby
cassolas has quit [Client Quit]
cassolas has joined #ruby
kent\n has quit [Ping timeout: 258 seconds]
kent\n has joined #ruby
absolutejam3 has joined #ruby
KnownSyntax has quit [Ping timeout: 258 seconds]
cassolas has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
KnownSyntax has joined #ruby
absolutejam3 has quit [Ping timeout: 272 seconds]
BH23 has joined #ruby
emptyfl4sk has joined #ruby
ur5us has joined #ruby
emptyfl4sk has quit [Ping timeout: 246 seconds]
miskatonic has joined #ruby
fphilipe_ has quit [Read error: Connection reset by peer]
ur5us has quit [Ping timeout: 244 seconds]
absolutejam3 has joined #ruby
fphilipe_ has joined #ruby
aupadhye has quit [Ping timeout: 244 seconds]
teardown has quit [Read error: Connection reset by peer]
absolutejam3 has quit [Ping timeout: 258 seconds]
absolutejam3 has joined #ruby
absolutejam3 has quit [Ping timeout: 246 seconds]
henninb has joined #ruby
DTZUZO has quit [Ping timeout: 245 seconds]
falconfox has joined #ruby
lucasb has joined #ruby
involans has joined #ruby
kurko_ has joined #ruby
cd has joined #ruby
crankharder has quit [Read error: Connection reset by peer]
crankharder has joined #ruby
codefriar has joined #ruby
miskatonic has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
dionysus69 has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
crankharder has quit [Read error: Connection reset by peer]
crankharder has joined #ruby
dionysus69 has joined #ruby
codefriar has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
plujon has joined #ruby
henninb has quit [Quit: leaving]
cca4 has joined #ruby
<cca4> How can I add a new line in a ruby string. In python if I do this its function print'First line \n Second line'? How to use ruby? Thank you for your help
absolutejam3 has joined #ruby
absolutejam3 has quit [Ping timeout: 246 seconds]
fphilipe_ has quit [Read error: Connection reset by peer]
ellcs has quit [Ping timeout: 245 seconds]
fphilipe_ has joined #ruby
chalkmonster has joined #ruby
aupadhye has joined #ruby
dbugger has joined #ruby
emptyfl4sk has joined #ruby
<NL3limin4t0r> cca4: You can do the same in Ruby, but you need double quoted strings for that.
<NL3limin4t0r> > Double-quote strings allow escaped characters such as \n for newline, \t for tab, etc.
<NL3limin4t0r> > In addition to disabling interpolation, single-quoted strings also disable all escape sequences except for the single-quote (\') and backslash (\\).
<cca4> But it's normal in the irb terminal I always see everything on a line ?
<NL3limin4t0r> That is only the string representation.
<cca4> ok thanks
<NL3limin4t0r> You can see the acual content by printing it with for example `puts`
<NL3limin4t0r> eg. `puts your_string_variable`
voker57 has quit [Quit: voker57]
AJA4350 has joined #ruby
<NL3limin4t0r> &>> puts "line #1\nline #2"
<rubydoc> # => line #1 (https://carc.in/#/r/76j0)
<NL3limin4t0r> ^ check the link for the multiline output
<cca4> However, how do I do with the rails translation tool "#{I18n.t('testtranslations')} \n #{mymessage}" ?
suukim has quit [Quit: Konversation terminated!]
asprillia has joined #ruby
Esa_ has joined #ruby
ur5us has joined #ruby
Inline has joined #ruby
oetjenj has quit [Quit: Textual IRC Client: www.textualapp.com]
ur5us has quit [Ping timeout: 245 seconds]
davor has joined #ruby
involans has quit [Quit: involans]
Yxhuvud has joined #ruby
<davor> hello. I have a problem installing kgio using "gem install" on a raspberry pi 3, extconf.rb seems to be failing while "checking for CLOCK_MONOTONIC in time.h". the file is here https://github.com/betterplace/kgio/blob/master/ext/kgio/extconf.rb
<NL3limin4t0r> cca4: That should work alternatively you could also use `I18n.t('testtranslations') + "\n" + mymessage`
megamos has joined #ruby
<havenwood> davor: You can add a real time clock to a Raspberry Pi, but they don't ship with one.
<havenwood> davor: (Pi's only know the time from the internet.)
<davor> havenwood, I would have expected the test to just fail with a "no" and run to the end instead of immediately stopping there, no?
<havenwood> davor: kgio seems to presume you have a RTC.
<davor> okay, thank you
<havenwood> davor: It's pretty easy to add an RTC module at least. That should provide monotonic time.
<havenwood> davor: I found adding one wasn't much of a pain and it worked.
<davor> I think I actually have a spare one here somewhere
<havenwood> davor: I'm curious what you're using kgio for? A dep of a gem or using it yourself?
<davor> a dep, I'm trying to build openproject for the pi
ddffg has joined #ruby
ddffg has left #ruby [#ruby]
<havenwood> davor: nio4r shows how to detect if a monotonic clock is available instead in the C-ext.
queip has quit [Ping timeout: 248 seconds]
<davor> ah, cool
cisco has joined #ruby
emptyfl4sk has quit [Ping timeout: 268 seconds]
absolutejam3 has joined #ruby
queip has joined #ruby
rippa has joined #ruby
absolutejam3 has quit [Read error: Connection reset by peer]
absolutejam1 has joined #ruby
cca4 has quit [Remote host closed the connection]
absolutejam1 has quit [Read error: Connection reset by peer]
<NL3limin4t0r> But did he implement `variable++` (same as `old = variable; variable += 1; old`) or `++variable` (same as `variable += 1`) or both?
absolutejam1 has joined #ruby
AJA4350 has quit [Ping timeout: 245 seconds]
<NL3limin4t0r> `variable++` should return the old value, whereas `++variable` should return the new value
davor has quit [Quit: Bye]
davor has joined #ruby
crankharder has quit [Quit: leaving]
crankharder has joined #ruby
deepreds1 has quit [Ping timeout: 245 seconds]
DTZUZO has joined #ruby
AJA4350 has joined #ruby
davor has quit [Quit: Bye]
absolutejam1 has quit [Ping timeout: 245 seconds]
<havenwood> NL3limin4t0r: x = 42; x++ #=> 42
<havenwood> NL3limin4t0r: x #=> 43
<havenwood> oops
<havenwood> typo
<havenwood> gah
<havenwood> NL3limin4t0r: x = 42; x++ #=> 43
<havenwood> I mean that ^
<havenwood> >.>
schne1der has quit [Ping timeout: 248 seconds]
<havenwood> NL3limin4t0r: They didn't implement ++variable, and their variable++ returns the new value.
davor has joined #ruby
davor has quit [Quit: Bye]
aupadhye has quit [Quit: Leaving]
_falsebay_ has joined #ruby
davor has joined #ruby
kurko__ has joined #ruby
<davor> havenwood, installing the gem still fails after adding the hw rtc, but only because I'm trying to build the gem as a regular user, and /dev/rtc0 has 700 permissions, and root is the owner
<havenwood> davor: ahhh, that's a pain. hrmm.
Tuor has quit [Quit: Konversation terminated!]
kurko_ has quit [Ping timeout: 246 seconds]
<davor> I suppose I should create an rtc user group, a udev rule and try again?
<havenwood> davor: Good luck!
<davor> thanks
jefffrails35 has quit [Quit: Leaving]
Rudd0 has quit [Read error: Connection reset by peer]
cisco has quit [Ping timeout: 245 seconds]
AJA4350 has quit [Ping timeout: 245 seconds]
voker57 has joined #ruby
<davor> havenwood, well, permissions fixed and "$ hwclock" produces output, and I'm still getting "checking for CLOCK_MONOTONIC in time.h... *** extconf.rb failed ***". while I know it's bad practice, running "gem install kgio" as root works...
falconfox has quit [Ping timeout: 245 seconds]
<davor> hm, perhaps setting rtc permissions as 666 instead of 660 would do the trick...
<davor> nope, still fails.
kyrylo has joined #ruby
<davor> wow. it still fails while running "gem install kgio", but running "docker build" on openproject manages to build kgio as a gem dep
<davor> so it works :p
Rudd0 has joined #ruby
voker57 has quit [Quit: voker57]
voker57 has joined #ruby
TvL2386 has quit [Ping timeout: 272 seconds]
Rudd0^ has joined #ruby
andikr has quit [Remote host closed the connection]
TvL2386 has joined #ruby
asprillia has quit [Quit: Leaving.]
kurko__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kyrylo has quit [Quit: Textual IRC Client: www.textualapp.com]
cisco has joined #ruby
kyrylo has joined #ruby
cisco is now known as Guest48731
<havenwood> davor: nice
<davor> thanks for the help havenwood !
brett-soric has joined #ruby
<havenwood> davor: any time - you're welcome!
uranoss has joined #ruby
Guest48731 has quit [Quit: leaving]
<NL3limin4t0r> havenwood: Hmm, I do wonder if it's a good idea to have the return value be someting that is not standard. C, C++, JavaScript and probably a bunch more programming languages have this "operator" a long time and it's always been `++x` to return the new value and `x++` to return the old value.
<NL3limin4t0r> But we'll see. Only time will tell.
_falsebay_ has quit [Quit: Textual IRC Client: www.textualapp.com]
sandstrom has quit [Quit: My computer has gone to sleep.]
<NL3limin4t0r> Seems like Perl also follows this standard: https://perldoc.perl.org/perlop.html#Auto-increment-and-Auto-decrement
ur5us has joined #ruby
ur5us has quit [Read error: Connection reset by peer]
ur5us_ has joined #ruby
orbyt_ has joined #ruby
dviola has joined #ruby
<NL3limin4t0r> Same for Java and php.
ur5us_ has quit [Ping timeout: 272 seconds]
fphilipe_ has quit [Ping timeout: 245 seconds]
suukim has joined #ruby
emptyfl4sk has joined #ruby
sandstrom has joined #ruby
lucasb has quit [Quit: Connection closed for inactivity]
ropeney has quit [Read error: Connection reset by peer]
ropeney has joined #ruby
BH23 has quit [Ping timeout: 268 seconds]
gix has joined #ruby
involans has joined #ruby
ellcs has joined #ruby
brett-soric has left #ruby [#ruby]
asprillia1 has joined #ruby
asprillia1 has left #ruby [#ruby]
davor has quit [Ping timeout: 272 seconds]
lepepe has joined #ruby
lepepe has quit [Remote host closed the connection]
lepepe has joined #ruby
lxsameer has quit [Ping timeout: 272 seconds]
lepepe has quit [Ping timeout: 248 seconds]
davor has joined #ruby
emptyfl4sk has quit [Ping timeout: 245 seconds]
deepreds1 has joined #ruby
NL3limin4t0r is now known as NL3limin4t0r_afk
involans has quit [Ping timeout: 248 seconds]
SCHAPiE has quit [Quit: ZNC - https://znc.in]
involans has joined #ruby
emptyfl4sk has joined #ruby
klaas has quit [Quit: ZNC 1.7.3 - https://znc.in]
klaas has joined #ruby
SCHAPiE has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.5]
cornfeedhobo has quit [Ping timeout: 245 seconds]
emptyfl4sk has quit [Ping timeout: 268 seconds]
involans has quit [Ping timeout: 244 seconds]
hiroaki has joined #ruby
CCDelivery has joined #ruby
CCDelivery has quit [Read error: Connection reset by peer]
CCDelivery has joined #ruby
schne1der has joined #ruby
phenom has quit [Quit: See ya! Wouldn't want to blah blah..]
CCDelivery has quit [Read error: Connection reset by peer]
phenom has joined #ruby
cornfeedhobo has joined #ruby
chalkmonster has joined #ruby
ur5us has joined #ruby
renich has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 245 seconds]
absolutejam1 has joined #ruby
armyriad has quit [Read error: Connection reset by peer]
armyriad has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
kyrylo_ has joined #ruby
Freshnuts has joined #ruby
yo-wan has quit [Ping timeout: 245 seconds]
Freshnuts has quit [Ping timeout: 258 seconds]
Freshnuts has joined #ruby
<havenwood> quick spike for creating pngs from ascii art: https://gist.github.com/havenwood/4d779ca0c920ed06d9021a64390222ac
<havenwood> different colors for different chars and scaling might be nice ¯\_(ツ)_/¯
phenom has quit [Ping timeout: 272 seconds]
phenom has joined #ruby
absolutejam1 has quit [Ping timeout: 268 seconds]
absolutejam1 has joined #ruby
lepepe has joined #ruby
CCDelivery has joined #ruby
lepepe has quit [Ping timeout: 272 seconds]
CCDelivery has quit [Read error: Connection reset by peer]
CCDelivery has joined #ruby
AJA4350 has joined #ruby
dellavg_ has joined #ruby
CCDelivery has quit [Read error: Connection reset by peer]
suukim has quit [Quit: Konversation terminated!]
kyrylo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
queip has quit [Ping timeout: 246 seconds]
kaleido has quit [Quit: out]
kaleido has joined #ruby
queip has joined #ruby
leitz has joined #ruby
foxxx0 has quit [Quit: foxxx0]
foxxx0 has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<leitz> Gem name question. If I'm building a core set of classes and modules then use something like "ftl_core" for that gem, and then "ftl_chargen" for a program that uses it.
<leitz> So ftl_core would have a class FTLCore::Person.
emptyfl4sk has joined #ruby
emptyflask has quit [Quit: WeeChat 2.4]
cassolas has joined #ruby
cassolas has quit [Client Quit]
emptyfl4sk has quit [Ping timeout: 245 seconds]
klaas has quit [Remote host closed the connection]
klaas has joined #ruby
AJA4350 has quit [Remote host closed the connection]
sarink has quit [Remote host closed the connection]
CCDelivery has joined #ruby
CCDelivery has quit [Read error: Connection reset by peer]
absolutejam1 has quit [Read error: Connection reset by peer]
CCDelivery has joined #ruby
AJA4350 has joined #ruby
sarink has joined #ruby
ascarter has joined #ruby
ascarter has quit [Client Quit]
ascarter has joined #ruby
ascarter has quit [Client Quit]
ascarter has joined #ruby
CCDelivery has quit [Read error: Connection reset by peer]
dellavg_ has quit [Ping timeout: 258 seconds]
CCDelivery has joined #ruby
ascarter has quit [Client Quit]
ascarter has joined #ruby
<leitz> Drat! Storms in the area, shutting down.
leitz has quit [Quit: Leaving]
sandstrom has quit [Quit: My computer has gone to sleep.]
AJA4350 has quit [Ping timeout: 272 seconds]
CCDelivery has quit [Read error: Connection reset by peer]
CCDelivery has joined #ruby
emptyfl4sk has joined #ruby
Esa_ has quit []
Freshnuts has quit [Quit: Leaving]
emptyfl4sk has quit [Ping timeout: 248 seconds]
CCDelivery has quit [Read error: Connection reset by peer]
CCDelivery has joined #ruby
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
renich has joined #ruby
DTZUZO has quit [Ping timeout: 268 seconds]
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
CCDelivery has quit [Read error: Connection reset by peer]
schne1der has quit [Ping timeout: 244 seconds]
CCDelivery has joined #ruby
Freshnuts has joined #ruby
ascarter has joined #ruby
houhoulis has joined #ruby
shirak has joined #ruby
CCDelivery has quit [Read error: Connection reset by peer]
CCDelivery has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
CCDelivery has quit [Read error: Connection reset by peer]
deepredsky has joined #ruby
CCDelivery has joined #ruby
emptyfl4sk has joined #ruby
deepreds1 has quit [Ping timeout: 272 seconds]
ur5us has joined #ruby
Swyper has joined #ruby
emptyfl4sk has quit [Ping timeout: 246 seconds]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
CCDelivery has quit [Read error: Connection reset by peer]
absolutejam1 has joined #ruby
CCDelivery has joined #ruby
sarink has quit [Remote host closed the connection]
absolutejam2 has joined #ruby
absolutejam1 has quit [Ping timeout: 258 seconds]
CCDelivery has quit [Remote host closed the connection]
unreal has joined #ruby
jud has joined #ruby
jud has joined #ruby
jud has quit [Changing host]
phenom is now known as phnom
phnom is now known as phenom
rubyrubyruby has joined #ruby
queip has quit [Ping timeout: 248 seconds]
<arooni> is there an easier way that rvm install ruby-1.9.3-p551 --with-gcc=gcc ;; on mac ? i know its an ancient version of ruby but rvm doesnt seem to be able to build it at all
<rubyrubyruby> I'm trying to merge two hashes, such that the values of the first hash are only overwritten by values of the second hash if they are not nil. This logic seems like it should work, but it doesn't: hash.deep_merge(other_hash) { |key, this_val, other_val| other_val if this_val.present? }
<leftylink> because there's never a case where the block results in `this_val`
DarthGandalf has quit [Quit: Bye]
<leftylink> oh wait, that's not necessary since it's only when there are same keys
<leftylink> I retract my answer
<leftylink> that's what I get for trying to make snap judgments on others' code. I shouldn't do that.
<rubyrubyruby> According to https://apidock.com/rails/Hash/deep_merge deep_merge should accept a block.
<rubyrubyruby> But passing in a block seems to have no effect: hash.deep_merge(other_hash) { |key, this_val, other_val| "no effect" }
queip has joined #ruby
<leftylink> &>> {a: 1}.merge(a: 2
<rubydoc> stderr: -e:3: syntax error, unexpected end, expecting ')' (https://carc.in/#/r/76mf)
<leftylink> oops
<leftylink> &>> {a: 1}.merge(a: 2) { |_, _, _| "yes effect" }
<rubydoc> # => {:a=>"yes effect"} (https://carc.in/#/r/76mg)
DarthGandalf has joined #ruby
<rubyrubyruby> {a: 1}.deep_merge(b: 2) { |_, _, _| "yes effect" } => {:a=>1, :b=>2}
<leftylink> of course not. the two hashes have no keys in common.
<leftylink> therefore the block is not used
<rubyrubyruby> I want to not merge values that are not in common.
<rubyrubyruby> Or rather, I only want to merge values that are common.
Swyper has quit [Remote host closed the connection]
<rubyrubyruby> I was hoping for something causing this behaviour: {a: 1}.deep_merge(b: 2) { |_, _, _| "something" } => {a: 1}
<leftylink> so if the only keys that should exist in the result are the keys in the first hash, wouldn't that be a time to use Hash#transform_values ?
<leftylink> or if the key is necessary to compute the value, perhaps Enumerable#to_h is appropriate.
<leftylink> oh, yeah, the key is necessary to compute the value I guess, since you may need to look it up from the second hash
<leftylink> so that'd be Enumerable#to_h then, for Ruby 2.6.
<rubyrubyruby> I think transform_values may be what I'm looking for.
<leftylink> er, Enumerable#to_h existed for a while, but takes a block in 2.6. before 2.6 it'd be #map then #to_h
<rubyrubyruby> However, I need something like deep_transform_values.
fphilipe_ has joined #ruby
emptyfl4sk has joined #ruby
queip has quit [Ping timeout: 245 seconds]
Swyper has joined #ruby
fphilipe_ has quit [Ping timeout: 250 seconds]
<rubyrubyruby> leftylink: How can Enumerable#to_h be used in the case you describe?
tdy3 has joined #ruby
emptyfl4sk has quit [Ping timeout: 272 seconds]
tdy2 has quit [Ping timeout: 272 seconds]
queip has joined #ruby
Swyper has quit [Remote host closed the connection]
staticx has quit [Remote host closed the connection]
staticx has joined #ruby
rafadc has joined #ruby
ellcs has quit [Ping timeout: 264 seconds]
emptyfl4sk has joined #ruby
rubyrubyruby has quit [Remote host closed the connection]
dbugger has quit [Quit: Leaving]
dviola has quit [Quit: WeeChat 2.5]
fphilipe_ has joined #ruby
stan has quit [Remote host closed the connection]
SuperLag has quit [Ping timeout: 246 seconds]
stan has joined #ruby
SuperLag has joined #ruby
phenom has quit [Quit: See ya! Wouldn't want to blah blah..]
emptyfl4sk has quit [Ping timeout: 245 seconds]
phenom has joined #ruby
fphilipe_ has quit [Ping timeout: 252 seconds]
absolutejam2 has quit [Ping timeout: 244 seconds]
lepepe has joined #ruby
lepepe has quit [Ping timeout: 258 seconds]
houhoulis has quit [Remote host closed the connection]
sarink has joined #ruby
sarink has quit [Remote host closed the connection]
brool has joined #ruby
shirak has quit [Ping timeout: 245 seconds]
DTZUZO has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lepepe has joined #ruby
lepepe has quit [Remote host closed the connection]