jacksop has quit [Remote host closed the connection]
aupadhye is now known as aupadhye|brb
paranoicsan has joined #ruby
blackmesa1 has quit [Ping timeout: 250 seconds]
aupadhye|brb is now known as aupadhye
inky has joined #ruby
<inky>
i forgot how did i solve this last time:
<inky>
mastodon@arnet ~/live $ bundle install --deployment --without development test
<inky>
(04:45:48 ) inky: rbenv: version `2.6.0' is not installed (set by /home/mastodon/live/.ruby-version)
<inky>
did i do cd ~/.rbenv && git pull ?
<inky>
2.6.0 is not in the list.
<inky>
rbenv install -l shows many versions but not 2.6.0. there is 2.6.0-dev however.
<inky>
there's also 2.6.0-preview1 and 2.6.0-preview2
<inky>
ok i did git pull, and it looks like i got 2.6.0 in the list.
CrazyEddy has quit [Remote host closed the connection]
Hien has quit [Quit: leaving]
cow[moo] has quit [Read error: Connection reset by peer]
cow[moo] has joined #ruby
jacksop has joined #ruby
paranoicsan has left #ruby [#ruby]
paranoicsan has joined #ruby
stryek has joined #ruby
blackmesa1 has joined #ruby
bmurt has joined #ruby
CrazyEddy has joined #ruby
beastiero has joined #ruby
lxsameer has quit [Ping timeout: 244 seconds]
lxsameer has joined #ruby
beastiero has quit [Remote host closed the connection]
yorickpeterse has joined #ruby
blackmesa1 has quit [Ping timeout: 244 seconds]
blackmesa1 has joined #ruby
yorickpeterse has left #ruby ["User left"]
lxsameer has quit [Ping timeout: 240 seconds]
marmotini_ has quit [Ping timeout: 245 seconds]
donofrio has joined #ruby
blackmesa1 has quit [Ping timeout: 240 seconds]
jacksop has quit []
aupadhye is now known as aupadhye|brb
Avinash has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lxsameer has joined #ruby
apparition has quit [Quit: Bye]
Avinash has joined #ruby
conta has quit [Ping timeout: 272 seconds]
ilpianista[m] has joined #ruby
Avinash has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ilpianista[m]>
Hi, I know that I can assign the value of a variable this way `foo=#{bar || 'undefined'}`, but can I also write complex expression to make `foo` equal to `bar` + 'sometext' only when `bar` is defined?
soyeomul^bionic has quit [Quit: ERC (IRC client for Emacs 26.1)]
<phaul>
foo=#{bar || 'undefined'} is not valid ruby
<phaul>
you are doing String interpolation with a string
<ilpianista[m]>
yes, you are right
<phaul>
you meant? foo="#{bar || 'undefined'}" right ?
<ilpianista[m]>
yes
paranoicsan has left #ruby [#ruby]
paranoicsan has joined #ruby
dinfuehr has quit [Ping timeout: 246 seconds]
<phaul>
&>> foo = "#{bar || 'undefined'}" if defined?(bar); foo
<ilpianista[m]>
phaul: I've this snippet and I want to foo to be equalt to bar + sometext when bar is defined or to 'undefined' when it's not https://dpaste.de/cbaF
<phaul>
bar is always undefined there. I don't see aynthing that would define it
jacksop has joined #ruby
<ilpianista[m]>
yes, that was only a part of script, but please assume that it can be defined or not
Avinash has joined #ruby
blackmesa1 has joined #ruby
inky has left #ruby [#ruby]
xMopx has quit [Ping timeout: 272 seconds]
rindolf has joined #ruby
Avinash has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<phaul>
there is a lot of indentation, and similar styling issues, rubocop would tell you about them
<rindolf>
phaul: "Inspecting 0 files"
maufart__ has quit [Ping timeout: 250 seconds]
<phaul>
donno I just did "rubocop Rakefile" . it was "Inspecting 1 file"
KeyJoo has quit [Quit: KeyJoo]
<rindolf>
phaul: apparently case matters
<rindolf>
phaul: i had a lowercase "r"
<phaul>
I see
paranoicsan is now known as paranoicsan[Away
paranoicsan[Away has quit [Quit: paranoicsan[Away]
paranoicsan has joined #ruby
aufi has joined #ruby
mikecmpb_ has joined #ruby
mikecmpbll has quit [Ping timeout: 250 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
lxsameer has quit [Read error: Connection reset by peer]
aufi_ has joined #ruby
bmurt has joined #ruby
Tempesta is now known as Guest33297
aufi has quit [Ping timeout: 246 seconds]
paranoicsan has quit [Quit: paranoicsan]
Guest33297 has quit [Ping timeout: 268 seconds]
Tempesta has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
<rindolf>
phaul: rubocop is happy now
queip has quit [Quit: bye, freenode]
za1b1tsu has quit [Remote host closed the connection]
Nicmavr has joined #ruby
Rapture has joined #ruby
ilpianista[m] has left #ruby ["User left"]
jacksop has quit [Remote host closed the connection]
skryking has joined #ruby
polishdub has joined #ruby
skryking has quit [Client Quit]
skryking has joined #ruby
rippa has joined #ruby
<phaul>
I would refactor the way you handle dest_images vs IMAGES. maybe have a def destination_of(img); "dest/#{img}" and use the only IMAGES everywhere. Where dests are needed just call destination_of(img). That would avoid having two Arrays that have to be in sync
<phaul>
same applies to everything where arrays have to be in sync
conta has joined #ruby
chouhoulis has joined #ruby
<phaul>
you can _if you want to_ replace all .map { |x| somemethod(x) } to be .map(&method(:somemethod)). I don't know which one is better, I would probably write the latter, but leave the former if it already exists in code
_whitelogger has joined #ruby
queip has joined #ruby
status402 has joined #ruby
renich has joined #ruby
sonofentropy has quit [Quit: sonofentropy]
aupadhye|brb has quit [Quit: Leaving]
xMopx has joined #ruby
SeepingN has joined #ruby
conta has quit [Ping timeout: 272 seconds]
blackmesa1 has quit [Ping timeout: 246 seconds]
marmotini_ has joined #ruby
millerti has joined #ruby
brandoncc has joined #ruby
gnufied has joined #ruby
moei has joined #ruby
<canton7>
I've never seen the attraction of the latter form. I need to do far more mental parsing.
marmotini_ has quit [Ping timeout: 246 seconds]
Avinash has joined #ruby
chouhoulis has quit [Ping timeout: 245 seconds]
catphish has joined #ruby
<phaul>
I can accept that, it's really subjective. Coming from the haskell world ppl were obsessed with point free style and used magic techniques like "eta-reduce" whatever that was. I also don't like overdoing Proc >> << and alike, but that ^ is still ok
<phaul>
_to me_
<catphish>
i have an odd requirement, i'd like my ruby process to re-exec itself, is there a good way to get the full command line to do so?
status402 has quit [Quit: status402]
Guest16678 has joined #ruby
sonofentropy has joined #ruby
brandoncc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sanscoeur has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
Scriptonaut has left #ruby [#ruby]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
sanscoeu_ has quit [Remote host closed the connection]
sanscoeur has joined #ruby
bmurt has joined #ruby
imajes has joined #ruby
<imajes>
hey ruby peeps. where do rubyists hang these days
<imajes>
because irc is a lot for just one channel, and iirc this one is silent
<imajes>
:/
<Eiam>
? this one is great
<Eiam>
there are ruby communities all over, local meet ups, conferences, slack groups
<Eiam>
hell i have internal corporate mailing lists JUST for ruby people
<imajes>
yeah, what ruby slack groups are there these days?
<Eiam>
beats me I use slack 1.0, IRC. =)
tdy has quit [Ping timeout: 240 seconds]
<imajes>
that's fair :)
tdy1 has joined #ruby
<imajes>
i am not even sure i can get at my config these days
<imajes>
i know there are other channels and groups, just don't remember passwords etc. sigh.
agent_white has quit [Quit: bbl]
ur5us has joined #ruby
ellcs has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
ravenousmoose has quit [Quit: Taking a quick nap...ZZzzz]
<imajes>
any of you use awesome_print ??
<snk>
no, i just use pp
<snk>
awesome_print looks pretty neat though!
tdy1 has quit [Ping timeout: 240 seconds]
<snk>
also not aware of any slacks... but this channel is still listed as the chat community on ruby-lang.org
<snk>
so we've got that going for us, which is nice
<imajes>
snk: you should use awesome_print ;)
<imajes>
that is nice
<snk>
heh, i'll give it a shot
<imajes>
i just pushed v 2.0.0-pre
<imajes>
did a big rewrite
<imajes>
so please do, and use that one, and test it out :D
zapata_ has joined #ruby
zapata has quit [Ping timeout: 252 seconds]
sanscoeu_ has joined #ruby
lucasb has quit [Quit: Connection closed for inactivity]
<phaul>
the thing about asking ppl where they hang out instead of IRC on IRC is...
<imajes>
well indeed
AJA4351 has joined #ruby
sanscoeur has quit [Ping timeout: 240 seconds]
<phaul>
we are here. you would be welcome. the channel is not as dead as you might thing
<phaul>
think*
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
manakanapa has quit [Quit: Ping timeout (120 seconds)]
manakanapa has joined #ruby
<imajes>
yeah. my main thing is that i'm using the web interface. it's hard to justfy running an irc client for one chan
<phaul>
hm. it's up to you, but most of us run dedicated IRC clients I think and I'm not sure what justification you are after, but something like weechat or irssi on a linux box is really next to nothing these days.
<imajes>
Yeah. just the time investment
skywalker has left #ruby [#ruby]
<cthulchu_>
weird error I'm getting
<cthulchu_>
the error is that there's no implicit casting of string into int, but this is the code that triggers it: results = cds_results.fetch("cds_passed",[])
<cthulchu_>
results is an [], cds_results is an {}, cds_results["cds_passed"] is either an [] or doesn't exist.
SeepingN has joined #ruby
<cthulchu_>
I have no strings or integers there
<cthulchu_>
wtf?
Dbugger has quit [Remote host closed the connection]
<phaul>
probably you do. the interpeter is always right. paste full code examples
<imajes>
thx. i was trying to dig out an example, but my local pg is dead for some reason. lol
<cthulchu_>
ah, awesome print
<cthulchu_>
heard of it
<cthulchu_>
unfortunately, too lae
blackmesa has joined #ruby
<cthulchu_>
I already have methods that would colorify & prettyprint
<imajes>
ditch 'em.
<imajes>
use p
<cthulchu_>
still, there was something I lacked a lot
<imajes>
use ap
<imajes>
:P
<cthulchu_>
I should
tdy1 is now known as tdy
<imajes>
but seriously, the new design makes it easier to build even more useful introspections of objects
<imajes>
so it can be a bit simpler
blackmesa1 has quit [Ping timeout: 252 seconds]
salasrod has quit [Quit: /quit]
blackmesa has quit [Ping timeout: 268 seconds]
<phaul>
I think If I did any sort of gem it would just be known by myself, and google search bots. I really don't know how one crosses the line from the plebs to the well known elite.
<phaul>
maybe i solve something that nobody actually wants to solve
<phaul>
:)
<phaul>
oh well
<imajes>
SMs are a fickle thing
<imajes>
first there are a couple well known SM gems
<imajes>
so you need to compete w/ that
<imajes>
and then you also gotta deal with the fact that most people end up in a world of hurt as their SM gets more complex... and aren't usually minded to go find a better gem to build it , i suspect :D
dionysus69 has quit [Ping timeout: 246 seconds]
<uplime>
a gem to tell how many licks it takes to get to the center of a tootsie pop would be useful
sanscoeu_ has quit [Remote host closed the connection]
sanscoeur has joined #ruby
<phaul>
uplime: :) go for it
AJA4350 has quit [Ping timeout: 246 seconds]
<SeepingN>
3, duh
polishdub has quit [Remote host closed the connection]
ivanskie has quit [Read error: Connection reset by peer]
<phaul>
it's amazing how many gems are about "write a longer description. optional"