havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.5.1, 2.4.4, 2.3.7, 2.6.0-preview2: https://www.ruby-lang.org | Paste 4+ lines of text to https://gist.github.com | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby
alfiemax has quit [Ping timeout: 256 seconds]
fluxAeon has quit [Ping timeout: 260 seconds]
postmodern has quit [Quit: Leaving]
apeiros has quit [Ping timeout: 264 seconds]
fluxAeon_ has joined #ruby
alfiemax has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
jrafanie has joined #ruby
lxsameer has joined #ruby
sameerynho has quit [Ping timeout: 260 seconds]
lxsameer has quit [Ping timeout: 260 seconds]
alfiemax has quit [Ping timeout: 240 seconds]
RougeR has quit [Ping timeout: 256 seconds]
postmodern has joined #ruby
r29v has quit [Quit: r29v]
oct2pus has quit [Ping timeout: 268 seconds]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has joined #ruby
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
pr0ton has quit [Quit: pr0ton]
r29v has joined #ruby
cagomez has quit [Remote host closed the connection]
apeiros has joined #ruby
c0ncealed2 has quit [Read error: Connection reset by peer]
negatifze has joined #ruby
weaksauce has joined #ruby
cthulchu has joined #ruby
dviola has quit [Quit: WeeChat 2.2]
c0ncealed2 has joined #ruby
pr0ton has joined #ruby
postmodern has quit [Quit: Leaving]
def_jam has joined #ruby
eb0t_ has joined #ruby
pr0ton has quit [Client Quit]
eblip has quit [Ping timeout: 256 seconds]
eb0t has quit [Ping timeout: 260 seconds]
pr0ton has joined #ruby
marius has quit [Ping timeout: 256 seconds]
karapetyan has joined #ruby
marius has joined #ruby
karapetyan has quit [Ping timeout: 240 seconds]
dstrunk has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
pr0ton has quit [Quit: pr0ton]
pr0ton has joined #ruby
Asher has quit [Ping timeout: 260 seconds]
negatifze has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Asher has joined #ruby
r29v has quit [Quit: r29v]
jrafanie has joined #ruby
r29v has joined #ruby
r29v has quit [Client Quit]
chrisseaton has quit [Quit: Connection closed for inactivity]
amar has joined #ruby
pr0ton has quit [Ping timeout: 244 seconds]
amar has quit [Ping timeout: 248 seconds]
eb0t_ is now known as eb0t
def_jam is now known as eblip
cagomez has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
amar has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
amar has quit [Ping timeout: 268 seconds]
karapetyan has joined #ruby
mynameisdebian has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
<zenspider> any graphviz wizards out there?
eb0t has quit [Quit: WeeChat 2.0.1]
cagomez has quit [Remote host closed the connection]
lxsameer has joined #ruby
jp has joined #ruby
c0ncealed2 has quit [Remote host closed the connection]
c0ncealed2 has joined #ruby
lxsameer has quit [Ping timeout: 240 seconds]
eblip has quit [Ping timeout: 248 seconds]
tag has quit [Quit: Connection closed for inactivity]
pastorinni has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tdy has joined #ruby
konsolebox has quit [Ping timeout: 276 seconds]
konsolebox has joined #ruby
graphene has quit [Remote host closed the connection]
<zenspider> I'm trying to get a cluster's contents to break rank w/ the surrounding graph and just layout independently... want to generate a legend that's actually compact
<zenspider> and then incorporate that into my graph gem
graphene has joined #ruby
darkhanb has joined #ruby
pastorinni has quit [Remote host closed the connection]
ogres has joined #ruby
kubuntu has joined #ruby
kubuntu is now known as Guest84349
<Guest84349> testing
<baweaver> pong
<Guest84349> I want to do OOP in ruby, but I think it's gonna turn out like how I do perl, and 95% of the stuff I do in perl is non-GUI.
<Guest84349> I mean non-OOP
<baweaver> by merit of using Ruby you're already using OOP.
<baweaver> What do you mean by non?
<Guest84349> Like I don't create classes and member-variables
<Guest84349> I use perl like a super bash shell that is integrated into its own single-process space
<Guest84349> I want to use ruby like a super super bash shell with GUI stuff maybe
<baweaver> There's nothing stopping you from doing so.
<baweaver> Though you're likely going to find that your scripts are impossible to test, reason about, and upgrade later as a cost
<zenspider> you're certainly welcome to write ruby the way you write perl... but it'll come at a cost
<baweaver> (I'd answer your question but I know jack-all on graphviz except that it exists)
<zenspider> haha
<zenspider> I know a bit more than that... but it all boils down to "it's a horrible tool but I'm stuck with it"
<havenwood> Speaking of Perlesque Ruby, saw this was recently committed to Ruby: https://github.com/ruby/ruby/blob/e613cdd53d16327dccf8237f8d5b672804a69eca/sample/trick2018/02-mame/entry.rb
<havenwood> ;-P
<baweaver> I saw trick and mame, and avoided clicking :P
<havenwood> baweaver: It's a pretty fancy animation quine.
<baweaver> This is the only type of animation I'm dealing with at the moment: https://twitter.com/keystonelemur/status/1021557475592495105
<baweaver> that, and lots of slide notes. So many slide notes
<havenwood> baweaver: woot!
milanj has quit [Quit: This computer has gone to sleep]
braincrash has quit [Quit: bye bye]
cthulchu_ has joined #ruby
karapetyan has joined #ruby
braincrash has joined #ruby
cthulchu has quit [Ping timeout: 260 seconds]
karapetyan has quit [Ping timeout: 260 seconds]
Azure has quit [Read error: Connection reset by peer]
Azure has joined #ruby
podlech has joined #ruby
Guest84349 has quit [Quit: Konversation terminated!]
SeepingN has joined #ruby
erratic has quit [Quit: this server has gone to sleep]
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
sylario has quit [Quit: Connection closed for inactivity]
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mynameisdebian has joined #ruby
AJA4350 has quit [Quit: AJA4350]
gix- has joined #ruby
gix has quit [Disconnected by services]
mynameisdebian has quit [Ping timeout: 256 seconds]
postmodern has joined #ruby
podlech has quit [Quit: WeeChat 2.1]
erratic has joined #ruby
mynameisdebian has joined #ruby
amar has joined #ruby
amar has quit [Ping timeout: 248 seconds]
ssariyar has quit [Ping timeout: 256 seconds]
dinfuehr has quit [Ping timeout: 244 seconds]
dinfuehr has joined #ruby
mynameisdebian has quit [Remote host closed the connection]
donofrio has quit [Remote host closed the connection]
jzhu has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Ping timeout: 268 seconds]
profetes_ has joined #ruby
profetes has quit [Ping timeout: 264 seconds]
dellavg has joined #ruby
kapil___ has joined #ruby
moei has quit [Read error: Connection reset by peer]
_icantc_ has joined #ruby
Puffball_ has joined #ruby
zenspider_ has joined #ruby
zenspider has quit [Read error: Connection reset by peer]
moei has joined #ruby
modin has quit [Ping timeout: 276 seconds]
modin has joined #ruby
c0ncealed2 has quit [Ping timeout: 240 seconds]
Puffball has quit [Ping timeout: 240 seconds]
_icantc has quit [Ping timeout: 260 seconds]
c0ncealed2 has joined #ruby
donofrio has joined #ruby
karapetyan has joined #ruby
ged has quit [Read error: Connection reset by peer]
ogres has quit [Quit: Connection closed for inactivity]
mahlon has quit [Read error: Connection reset by peer]
za1b1tsu has joined #ruby
mahlon has joined #ruby
ged has joined #ruby
karapetyan has quit [Ping timeout: 256 seconds]
anisha has joined #ruby
herbmillerjr has quit [Quit: Konversation terminated!]
thejoecarroll has quit [Ping timeout: 244 seconds]
thejoecarroll has joined #ruby
herbmillerjr has joined #ruby
lytol_ has joined #ruby
hphat^ has quit []
milanj has joined #ruby
tty has quit [Ping timeout: 256 seconds]
anisha has quit [Ping timeout: 256 seconds]
tty has joined #ruby
Inline has quit [Remote host closed the connection]
ColeW_Picaro has joined #ruby
anisha has joined #ruby
cthulchu has joined #ruby
sauvin has joined #ruby
cthulchu_ has quit [Ping timeout: 265 seconds]
cthulchu_ has joined #ruby
cthulchu has quit [Ping timeout: 240 seconds]
aupadhye has joined #ruby
User458764 has joined #ruby
User458764 has quit [Client Quit]
Asher has quit [Quit: Leaving.]
tvw has joined #ruby
amar has joined #ruby
amar has quit [Ping timeout: 244 seconds]
cyberRodent has quit [Ping timeout: 244 seconds]
biberu has joined #ruby
graphene has quit [Remote host closed the connection]
lxsameer has joined #ruby
graphene has joined #ruby
dnewkerk has left #ruby [#ruby]
cyberRodent has joined #ruby
lxsameer has quit [Ping timeout: 256 seconds]
Phate has joined #ruby
phate408 has quit [Ping timeout: 245 seconds]
andikr has joined #ruby
Caerus has quit [Quit: Leaving]
Sina has joined #ruby
anisha has quit [Ping timeout: 240 seconds]
anisha has joined #ruby
anikras has joined #ruby
venmx has joined #ruby
aufi has joined #ruby
zenspider_ is now known as zenspider
zenspider has quit [Changing host]
zenspider has joined #ruby
anisha has quit [Ping timeout: 256 seconds]
kapil___ has quit [Quit: Connection closed for inactivity]
yohji has joined #ruby
hidir_de has joined #ruby
amar has joined #ruby
amar_ has joined #ruby
venmx has quit [Ping timeout: 256 seconds]
sysvalve has joined #ruby
amar has quit [Ping timeout: 248 seconds]
lxsameer has joined #ruby
TomyWork has joined #ruby
anisha has joined #ruby
lxsameer has quit [Ping timeout: 260 seconds]
amar has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
amar_ has quit [Ping timeout: 260 seconds]
jzhu has quit [Quit: Connection closed for inactivity]
clemens3 has joined #ruby
amar has quit [Remote host closed the connection]
scrptktty has quit [Quit: Connection closed for inactivity]
Mike11 has joined #ruby
sarna has joined #ruby
venmx has joined #ruby
quobo has quit [Quit: Connection closed for inactivity]
conta has joined #ruby
venmx has quit [Remote host closed the connection]
graphene has quit [Read error: Connection reset by peer]
venmx has joined #ruby
graphene has joined #ruby
anisha has quit [Quit: Leaving]
anisha has joined #ruby
karapetyan has joined #ruby
venmx_ has joined #ruby
conta has quit [Quit: conta]
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
lxsameer has joined #ruby
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
alem0lars has joined #ruby
venmx has quit [Ping timeout: 240 seconds]
reber has joined #ruby
karapetyan has quit [Ping timeout: 260 seconds]
venmx_ has quit [Remote host closed the connection]
aufi_ has joined #ruby
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
aufi has quit [Read error: Connection reset by peer]
maufart__ has joined #ruby
eckhardt has quit [Ping timeout: 248 seconds]
kapil___ has joined #ruby
aufi_ has quit [Ping timeout: 256 seconds]
amar has joined #ruby
Some-body_ has joined #ruby
amar has quit [Remote host closed the connection]
DarthGandalf has quit [Ping timeout: 240 seconds]
amar has joined #ruby
Some-body_ is now known as DarthGandalf
megamos has joined #ruby
iamnix has joined #ruby
jraavis has joined #ruby
jottr has joined #ruby
schleppel has joined #ruby
aufi_ has joined #ruby
Zaab1t has joined #ruby
iamnix has quit [Ping timeout: 260 seconds]
amar has quit [Ping timeout: 256 seconds]
maufart__ has quit [Ping timeout: 256 seconds]
sylario has joined #ruby
Alec0x has quit [Quit: Leaving]
Alec has joined #ruby
hays has joined #ruby
maufart__ has joined #ruby
quobo has joined #ruby
aufi_ has quit [Ping timeout: 248 seconds]
hays_ has quit [Ping timeout: 240 seconds]
hays has quit [Client Quit]
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
hays has joined #ruby
megamos has quit [Ping timeout: 240 seconds]
venmx has joined #ruby
dhollin3 has joined #ruby
dhollinger has quit [Ping timeout: 240 seconds]
oct2pus has joined #ruby
alex`` has joined #ruby
eb0t has joined #ruby
megamos has joined #ruby
\void has quit [Quit: So long, and thanks for all the fish.]
Mike11 has quit [Ping timeout: 264 seconds]
anisha_ has joined #ruby
anisha has quit [Ping timeout: 256 seconds]
InfinityFye has joined #ruby
tty has quit [Quit: tty]
milanj has quit [Quit: This computer has gone to sleep]
xall has joined #ruby
naftilos76 has joined #ruby
RougeR has joined #ruby
RougeR has joined #ruby
RougeR has quit [Changing host]
clemens3 has quit [Read error: Connection reset by peer]
RougeR has quit [Read error: No route to host]
clemens3 has joined #ruby
jraavis has quit [Ping timeout: 248 seconds]
hidir_de has quit [Ping timeout: 256 seconds]
shinnya has quit [Ping timeout: 256 seconds]
Tempesta has quit [Quit: See ya!]
dani1lpi4ug1n has joined #ruby
apparition has joined #ruby
agent_white has quit [Quit: later]
alem0lars has quit [Read error: Connection reset by peer]
alem0lars has joined #ruby
milanj has joined #ruby
conta has joined #ruby
howdoi has joined #ruby
Dbugger has joined #ruby
xall has quit [Quit: xall]
beefjoe has joined #ruby
jrafanie has joined #ruby
zlib_is_awesome has joined #ruby
megamos has quit [Ping timeout: 256 seconds]
alfiemax_ has joined #ruby
InfinityFye has quit [Quit: Leaving]
alfiemax has quit [Ping timeout: 256 seconds]
kapil___ has quit [Quit: Connection closed for inactivity]
herbmillerjr has quit [Quit: Konversation terminated!]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
karapetyan has joined #ruby
oct2pus has quit [Ping timeout: 264 seconds]
ur5us has quit [Ping timeout: 256 seconds]
karapetyan has quit [Ping timeout: 260 seconds]
anisha_ has quit [Ping timeout: 265 seconds]
dstrunk has joined #ruby
sphenxes has joined #ruby
sphenxes has quit [Max SendQ exceeded]
megamos has joined #ruby
wolfshappen_ has quit [Quit: Waffs have technical problems too]
anisha has joined #ruby
wolfshappen has joined #ruby
sarna has quit [Quit: Connection closed for inactivity]
Puffball_ has quit [Read error: Connection reset by peer]
Puffball has joined #ruby
shinnya has joined #ruby
oct2pus has joined #ruby
conta has quit [Quit: conta]
beefjoe has quit [Remote host closed the connection]
dani1lpi4ug1n has quit [Ping timeout: 240 seconds]
anikras has quit [Quit: Ex-Chat]
AJA4350 has joined #ruby
mikecmpbll has joined #ruby
kapil___ has joined #ruby
webhat has quit [Quit: No Ping reply in 180 seconds.]
webhat has joined #ruby
tvw has quit [Remote host closed the connection]
megamos has quit [Ping timeout: 240 seconds]
snuz has joined #ruby
snuz has left #ruby [#ruby]
hidir_de has joined #ruby
jzhu has joined #ruby
Axy has quit [Ping timeout: 256 seconds]
user4 has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
mikecmpbll has joined #ruby
psychicist__ has joined #ruby
zlib_is_awesome is now known as zlib_license_is_
zlib_license_is_ is now known as zlibBetterThanMI
zlibBetterThanMI is now known as zlibBetterThnMIT
mikecmpbll has quit [Ping timeout: 256 seconds]
livcd has quit [Ping timeout: 276 seconds]
livcd has joined #ruby
GodFather has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
user3 has joined #ruby
GodFather has joined #ruby
mroutis has joined #ruby
user4 has quit [Ping timeout: 240 seconds]
karapetyan has joined #ruby
psychicist__ has quit [Quit: Reconnecting]
psychicist__ has joined #ruby
vondruch has quit [Quit: vondruch]
andikr has quit [Remote host closed the connection]
vondruch has joined #ruby
karapetyan has quit [Ping timeout: 256 seconds]
user4 has joined #ruby
ur5us has joined #ruby
user3 has quit [Ping timeout: 240 seconds]
user_ has joined #ruby
oct2pus has quit [Ping timeout: 260 seconds]
user3 has joined #ruby
tvw has joined #ruby
user4 has quit [Ping timeout: 256 seconds]
ur5us has quit [Ping timeout: 256 seconds]
alireza has joined #ruby
<alireza> how can i convert this into one line?
user4 has joined #ruby
user_ has quit [Ping timeout: 256 seconds]
<alireza> ^
<alireza> check status and change state of variable based on true/false
<alireza> is there way to shorten this?
<alireza> a simple if/else
user3 has quit [Ping timeout: 240 seconds]
<mroutis> I like it that way, alireza
<mroutis> just the `imported.unconfirmed` chain doesn't make sense for me
<mroutis> why are you adding the `imported` right there if you are checking for `unconfirmed` ?
Emmanuel_Chanel has quit [Ping timeout: 260 seconds]
graphene has quit [Remote host closed the connection]
user4 has quit [Ping timeout: 240 seconds]
<mroutis> also, what's `unconfirmed_status`? a param?
graphene has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
<mroutis> if it is so, maybe you can give https://github.com/plataformatec/has_scope a try
quobo has quit [Quit: Connection closed for inactivity]
mroutis has left #ruby [#ruby]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
zlibBetterThnMIT has quit [Quit: Leaving]
DTZUZO has quit [Ping timeout: 276 seconds]
RougeR has joined #ruby
RougeR has quit [Changing host]
RougeR has joined #ruby
<alireza> mroutis, thanks
shinnya has quit [Ping timeout: 244 seconds]
krawchyk has joined #ruby
aufi_ has joined #ruby
aupadhye has quit [Ping timeout: 248 seconds]
maufart__ has quit [Ping timeout: 244 seconds]
Caerus has joined #ruby
maufart__ has joined #ruby
<qolq> alireze: @scope = unconfirmed_status? ? @scope.imported.unconfirmed : @scope.confirmed
<qolq> alireza: ^
<alireza> qolq: thanks
Inline has joined #ruby
aufi_ has quit [Ping timeout: 260 seconds]
conta1 has joined #ruby
pastorinni has joined #ruby
dtomic has joined #ruby
Cthulu201 has quit [Ping timeout: 260 seconds]
anisha has quit [Quit: Leaving]
anisha has joined #ruby
Rapture has joined #ruby
jrafanie has joined #ruby
scrptktty has joined #ruby
eblip has joined #ruby
krawchyk has quit [Quit: krawchyk]
krawchyk has joined #ruby
Cthulu201 has joined #ruby
nythalcrow has joined #ruby
snuz has joined #ruby
krawchyk has quit [Quit: krawchyk]
bmurt has joined #ruby
gigetoo has quit [Ping timeout: 244 seconds]
gigetoo has joined #ruby
snuz has quit [Quit: WeeChat 2.2]
Alec has quit [Ping timeout: 260 seconds]
krawchyk has joined #ruby
akaiiro has quit [Ping timeout: 276 seconds]
snuz has joined #ruby
snuz has quit [Quit: WeeChat 2.2]
biberu has quit []
conta1 has quit [Quit: conta1]
TinkerT has quit [Read error: Connection reset by peer]
TinkerT has joined #ruby
Emmanuel_Chanel has joined #ruby
Asher has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
ur5us has joined #ruby
apparition has quit [Quit: Bye]
alireza has quit [Ping timeout: 268 seconds]
snuz has joined #ruby
Rish has joined #ruby
ur5us has quit [Ping timeout: 248 seconds]
tdy has quit [Ping timeout: 260 seconds]
tdy has joined #ruby
DTZUZO has joined #ruby
<Rish> Could not find in bundle install any one help me
noidedsuper has joined #ruby
<havenwood> Rish: hrm?
krawchyk has quit [Quit: krawchyk]
<havenwood> Rish: Couldn't find what? You're running `bundle install` and something is going wrong?
crankharder has quit [Ping timeout: 240 seconds]
<Rish> ubuntu
crankharder has joined #ruby
<Rish> i just want to setup an project on my system when i am run bundle install command
<Rish> Could not find figaro-1.1.0 in any of the sources
<Rish> come after that gem install figaro-1.1.0 then it's goes
spectra has quit [Ping timeout: 240 seconds]
maufart__ has quit [Ping timeout: 256 seconds]
krawchyk has joined #ruby
r29v has joined #ruby
crankharder has quit [Quit: leaving]
crankharder has joined #ruby
r29v has quit [Client Quit]
TomyWork has quit [Ping timeout: 240 seconds]
conta1 has joined #ruby
krawchyk has quit [Client Quit]
krawchyk has joined #ruby
tcopeland has joined #ruby
conta1 has quit [Client Quit]
Nicmavr is now known as Kestrel-029
jcarl43 has joined #ruby
r29v has joined #ruby
clemens3 has quit [Ping timeout: 240 seconds]
tcopeland has quit [Client Quit]
spectra has joined #ruby
alem0lars has quit [Quit: Leaving]
<havenwood> Rish: What do you have set as the remote source?: gem env remotesources
<havenwood> Rish: Did you install bundler with apt or gem?
Zaab1t has quit [Quit: Zaab1t]
phenom has quit [Ping timeout: 244 seconds]
phenom has joined #ruby
za1b1tsu has quit [Ping timeout: 256 seconds]
alireza has joined #ruby
kapil___ has joined #ruby
Rish has quit [Quit: Page closed]
za1b1tsu has joined #ruby
snuz has quit [Quit: WeeChat 2.2]
cagomez has joined #ruby
kent\n has quit [Ping timeout: 245 seconds]
cagomez has quit [Client Quit]
cagomez has joined #ruby
beowuff has joined #ruby
pastorinni has quit [Read error: No route to host]
akaiiro has joined #ruby
pastorinni has joined #ruby
kent\n has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
ldepandis has joined #ruby
zachk has joined #ruby
zachk has joined #ruby
zachk has quit [Changing host]
clampy has quit [Ping timeout: 260 seconds]
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
snuz has joined #ruby
graphene has quit [Remote host closed the connection]
hkais has joined #ruby
graphene has joined #ruby
yohji has quit [Ping timeout: 248 seconds]
sysvalve has quit [Quit: Leaving]
biberu has joined #ruby
crankharder has quit [Ping timeout: 260 seconds]
dviola has joined #ruby
noobineer has quit [Quit: Leaving]
yohji has joined #ruby
snuz has quit [Quit: WeeChat 2.2]
agent_white has joined #ruby
schleppel has quit [Remote host closed the connection]
pr0ton has joined #ruby
karapetyan has joined #ruby
crankharder has joined #ruby
anisha has quit [Quit: Leaving]
amar_ has joined #ruby
amar_ has quit [Read error: No route to host]
amar_ has joined #ruby
schleppel has joined #ruby
karapetyan has quit [Ping timeout: 256 seconds]
rippa has joined #ruby
deadnull has joined #ruby
deadnull has quit [Client Quit]
darkhanb has joined #ruby
r29v has quit [Quit: r29v]
amar_ has quit [Ping timeout: 256 seconds]
Sembei has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
Pisuke has joined #ruby
r29v has joined #ruby
alireza has quit [Ping timeout: 256 seconds]
Caerus has quit [Read error: Connection reset by peer]
zapata has quit [Read error: Connection reset by peer]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yohji has quit [Remote host closed the connection]
tvl has joined #ruby
tvl is now known as tobiasvl
pr0ton has quit [Quit: pr0ton]
orbyt_ has joined #ruby
bmurt has joined #ruby
snuz has joined #ruby
alex`` has quit [Quit: WeeChat 2.1]
ur5us has joined #ruby
Caerus has joined #ruby
mikecmpbll has joined #ruby
ellcs1 has joined #ruby
ur5us has quit [Ping timeout: 264 seconds]
alex`` has joined #ruby
dhollin3 is now known as dhollinger
jzhu has quit [Quit: Connection closed for inactivity]
alex`` has quit [Quit: WeeChat 2.1]
Caerus has quit [Read error: Connection reset by peer]
amar_ has joined #ruby
eckhardt has joined #ruby
crankharder has quit [Ping timeout: 256 seconds]
Zaab1t has joined #ruby
crankharder has joined #ruby
amar__ has joined #ruby
Zaab1t has quit [Client Quit]
amar___ has joined #ruby
amar_ has quit [Ping timeout: 248 seconds]
dtomic has quit [Ping timeout: 252 seconds]
amar__ has quit [Ping timeout: 268 seconds]
hkais has quit [Ping timeout: 260 seconds]
tvw has quit [Remote host closed the connection]
alfiemax_ has quit [Ping timeout: 256 seconds]
pr0ton has joined #ruby
ssolomon has joined #ruby
\void has joined #ruby
alfiemax has joined #ruby
jamesaxl has joined #ruby
a1ph4g33k has joined #ruby
a1ph4g33k has left #ruby [#ruby]
amar___ has quit [Remote host closed the connection]
amar_ has joined #ruby
sameerynho has joined #ruby
alireza has joined #ruby
amar_ has quit [Ping timeout: 260 seconds]
jamesaxl has quit [Ping timeout: 256 seconds]
karapetyan has joined #ruby
venmx has quit [Ping timeout: 260 seconds]
beefjoe has joined #ruby
pastorinni has quit [Read error: No route to host]
karapetyan has quit [Remote host closed the connection]
pastorinni has joined #ruby
alfiemax has quit [Ping timeout: 260 seconds]
sphenxes has joined #ruby
snuz has quit [Ping timeout: 240 seconds]
sauvin has quit [Read error: Connection reset by peer]
chkhanch has joined #ruby
snuz has joined #ruby
snuz has quit [Client Quit]
snuz has joined #ruby
alfiemax has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
cagomez has joined #ruby
jp has quit [Read error: Connection reset by peer]
quobo has joined #ruby
karapetyan has joined #ruby
RougeR has quit [Ping timeout: 256 seconds]
Dbugger has quit [Ping timeout: 276 seconds]
jp has joined #ruby
codymj has joined #ruby
snuz has quit [Quit: WeeChat 2.2]
snuz has joined #ruby
alfiemax_ has joined #ruby
snuz has quit [Client Quit]
snuz has joined #ruby
alfiemax has quit [Ping timeout: 260 seconds]
jamesaxl has joined #ruby
karapetyan has quit [Remote host closed the connection]
fluxAeon has joined #ruby
alireza1 has joined #ruby
pr0ton has quit [Quit: pr0ton]
postmodern has quit [Quit: Leaving]
alireza has quit [Ping timeout: 240 seconds]
pastorinni has quit [Ping timeout: 244 seconds]
Caerus has joined #ruby
karapetyan has joined #ruby
sphenxes has quit [Quit: Leaving]
ur5us has joined #ruby
nertzy has quit [Ping timeout: 260 seconds]
ur5us has quit [Ping timeout: 256 seconds]
alex`` has joined #ruby
ptx0 has quit [Read error: Connection reset by peer]
cthulchu_ has quit [Ping timeout: 256 seconds]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
alireza1 has quit [Ping timeout: 244 seconds]
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milanj has quit [Quit: This computer has gone to sleep]
biberu has quit []
alireza1 has joined #ruby
milanj has joined #ruby
karapetyan has quit [Remote host closed the connection]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Kestrel-029 has quit [Read error: Connection reset by peer]
jamesaxl has quit [Ping timeout: 248 seconds]
Nicmavr has joined #ruby
ptx0 has joined #ruby
alireza1 has quit [Ping timeout: 256 seconds]
Caerus has quit [Ping timeout: 240 seconds]
alireza1 has joined #ruby
spiette has quit [Quit: ZNC 1.7.0 - https://znc.in]
nowhere_man has quit [Ping timeout: 256 seconds]
spiette has joined #ruby
chkhanch has quit [Quit: Leaving]
pr0ton has joined #ruby
claudiuinberlin has joined #ruby
beefjoe has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
foxxx0 is now known as totallynotfoxxx0
totallynotfoxxx0 is now known as foxxx0
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
r29v has quit [Quit: r29v]
pastorinni has joined #ruby
milanj has quit [Quit: This computer has gone to sleep]
Es0teric has joined #ruby
mistergibson has joined #ruby
snuz has quit [Quit: WeeChat 2.2]
snuz has joined #ruby
naftilos76 has quit [Quit: Leaving]
venmx has joined #ruby
ssolomon has quit [Ping timeout: 240 seconds]
cthulchu has joined #ruby
tty has joined #ruby
psychicist__ has quit [Ping timeout: 244 seconds]
nowhere_man has joined #ruby
crankharder has quit [Ping timeout: 244 seconds]
crankharder has joined #ruby
ur5us has joined #ruby
fluxAeon has quit [Ping timeout: 260 seconds]
dellavg has quit [Ping timeout: 268 seconds]
jenrzzz_ has joined #ruby
milanj has joined #ruby
pastorinni has quit [Remote host closed the connection]
snuz has quit [Quit: WeeChat 2.2]
amar_ has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
r29v has joined #ruby
Slown has joined #ruby
<Slown> Hey guys
<Slown> what's up ?
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> Slown: hi
<Slown> how are you havenwood ?
nythalcrow has quit [Read error: Connection reset by peer]
pastorinni has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
jenrzzz_ has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<Slown> havenwood ?
za1b1tsu has quit [Ping timeout: 256 seconds]
karapetyan has joined #ruby
SeepingN has joined #ruby
karapetyan has quit [Ping timeout: 256 seconds]
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
<havenwood> >> require 'prime'; 1.upto(4).map { |n| x = Prime.lazy.take(100).find { |k| (k ** n + n).prime? }; (x ? n ** x + x : 0) + 100 }.map(&:chr).join # Slown
<ruby[bot]> havenwood: # => "good" (https://eval.in/1041089)
<havenwood> We need a #map_select ;-P
<havenwood> Yay for #filter alias in 2.6!
wsylvest has joined #ruby
wsylvest has quit [Client Quit]
amar__ has joined #ruby
iamnix has joined #ruby
amar___ has joined #ruby
alireza1 has quit [Ping timeout: 260 seconds]
graphene has quit [Remote host closed the connection]
amar_ has quit [Ping timeout: 268 seconds]
krawchyk has quit [Quit: krawchyk]
graphene has joined #ruby
amar__ has quit [Ping timeout: 256 seconds]
alex`` has quit [Ping timeout: 256 seconds]
dviola has quit [Quit: WeeChat 2.2]
pastorinni has quit []
alex`` has joined #ruby
a1ph4g33k has joined #ruby
a1ph4g33k has left #ruby [#ruby]
pr0ton_ has joined #ruby
pr0ton has quit [Ping timeout: 240 seconds]
pr0ton_ is now known as pr0ton
codymj has quit [Quit: Leaving]
al2o3-cr has quit [Quit: WeeChat 2.2]
jenrzzz has quit [Ping timeout: 240 seconds]
pr0ton has quit [Ping timeout: 240 seconds]
gr33n7007h has joined #ruby
gr33n7007h is now known as al2o3-cr
amar_ has joined #ruby
quarters has quit [Changing host]
quarters has joined #ruby
quarters has joined #ruby
noidedsuper has quit [Quit: Leaving]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
alireza1 has joined #ruby
amar___ has quit [Ping timeout: 256 seconds]
alireza1 has quit [Ping timeout: 240 seconds]
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hidir_de has quit [Ping timeout: 256 seconds]
monoprotic has joined #ruby
monoprotic has quit [Changing host]
monoprotic has joined #ruby
dstrunk has joined #ruby
megamos has joined #ruby
Alec has joined #ruby
shah^ has joined #ruby
jcarl43 has quit [Quit: WeeChat 2.2]
tty has quit [Quit: tty]
jcarl43 has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hidir_de has joined #ruby
<zenspider> anyone know if ruby's const lookup heuristic has been emulated anywhere? I need it for some static code analysis stuff I'm doing.
<lupine> someone tried once, but the necessary hardware achieved self-awareness and took itself off to orion's belt
jenrzzz_ has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
Caerus has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
orbyt_ has joined #ruby
shinnya has joined #ruby
<baweaver> banister may have, but he's not around looks like
crankharder has quit [Ping timeout: 268 seconds]
hidir_de has quit [Ping timeout: 256 seconds]
<zenspider> I can probably flub a good amount of it and still get good results... I'd just rather borrow than poke at it too much
<baweaver> >> def map_select(vs, &fn) vs.reduce([]) { |a, v| fn[v] ? (a<<fn[v]) : a } end; map_select([1,2,3]) { |v| v.even? && v * 2 } # havenwood
<ruby[bot]> baweaver: # => [4] (https://eval.in/1041093)
jenrzzz_ has quit [Ping timeout: 268 seconds]
schleppel has quit [Quit: Konversation terminated!]
venmx has quit [Ping timeout: 256 seconds]
pr0ton has joined #ruby
pr0ton has quit [Client Quit]
<baweaver> >> guard = -> *cs, &fn { -> v { cs.all? { |c| c === v } && fn[v] } }; def map_select(vs,&fn) vs.reduce([]) { |a, v| fn[v] ? (a<<fn[v]) : a } end; map_select([1,2,3], &guard[:even?.to_proc] { |v| v * 2 }) # havenwood
<ruby[bot]> baweaver: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
<baweaver> Guard functions :D
<baweaver> aw...
<baweaver> crashed bot
venmx has joined #ruby
<havenwood> #=> [4]
<baweaver> Ruby _really_ dislikes multiple `to_proc`s in the format of `&`....
<havenwood> baweaver: woot
<baweaver> Think I should add that as a bug?
alireza1 has joined #ruby
<baweaver> You might have something that can be used as a block inside a block that returns a block
<havenwood> baweaver: module MapSelect; refine Enumerable do; def map_select(&fn) reduce([]) { |a, v| fn[v] ? (a << fn[v]) : a } end end end
<havenwood> ship eet
pr0ton has joined #ruby
<baweaver> map_select([1,2,3], &guard.call(&:even?, &:zero?) { |v| v * 10 })
<baweaver> I'd argue that should be valid, but Ruby will flip out on it
<baweaver> If you sub in to_proc it'll work though. Probably just how YARV deals with `&`
<zenspider> you don't need to to_proc it yourself I don't think...
<zenspider> >> module Enumerable; def map_select(pred, &b); lazy.select(&pred).map(&b); end; end; (1..3).map_select(:even?) { |n| n * 2 }.to_a
<ruby[bot]> zenspider: # => [4] (https://eval.in/1041094)
<zenspider> maybe it should be called select_map instead?
<baweaver> fair
herbmillerjr has joined #ruby
ssolomon has joined #ruby
<havenwood> "I consider filter_map mostly a mistake so it is unlikely we will add a similar function to that." ~Jose Valim
alireza1 has quit [Ping timeout: 260 seconds]
<havenwood> I'm curious why they removed filter_map.
<havenwood> I've certainly wanted it in Ruby.
alfiemax_ has quit [Ping timeout: 264 seconds]
r29v has quit [Quit: r29v]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
iamnix has quit [Quit: ZZZzzz…]
alex`` has quit [Ping timeout: 260 seconds]
augcesar has quit [Quit: Connection closed for inactivity]
RougeR has joined #ruby
Slown has quit []
RougeR has quit [Changing host]
RougeR has joined #ruby
venmx has quit [Ping timeout: 244 seconds]
alfiemax has joined #ruby
amar_ has quit [Remote host closed the connection]
amar_ has joined #ruby
jp has quit [Ping timeout: 264 seconds]
jp has joined #ruby
ssolomon has quit [Remote host closed the connection]
<zenspider> havenwood: interesting. I wonder why
<Radar> havenwood: I believe they removed it because there is both filter + map and you can pipe one to the other.
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
amar_ has quit [Ping timeout: 260 seconds]
<Radar> (which I think is what that function did, but I am going to find the source to back that up)
<Radar> "Filters the enumerable and maps its elements in one pass." is the documentation for that function.
cthulchu_ has joined #ruby
<Radar> p.s. why are you people writing perl? You know this is #ruby right?
ellcs1 has quit [Ping timeout: 256 seconds]
lytol_ has quit [Remote host closed the connection]
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
<havenwood> So I guess it's just the basic principle of fused functions being edge cases and Stream sufficing for single-pass needs.
cthulchu has quit [Ping timeout: 260 seconds]
karapetyan has joined #ruby
megamos has quit [Ping timeout: 256 seconds]
Caerus has quit [Ping timeout: 256 seconds]
jp has quit [Ping timeout: 256 seconds]
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
karapetyan has quit [Ping timeout: 260 seconds]
dstrunk has joined #ruby
jp has joined #ruby
orbyt_ has joined #ruby
alireza1 has joined #ruby
unreal has quit [Ping timeout: 260 seconds]
subroot has joined #ruby
alireza1 has quit [Ping timeout: 256 seconds]
orbyt_ has quit [Quit: Textual IRC Client: www.textualapp.com]
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pr0ton has quit [Quit: pr0ton]
Lyubo1 has quit [Ping timeout: 256 seconds]
Lyubo1 has joined #ruby
graphene has quit [Remote host closed the connection]
unreal has joined #ruby
graphene has joined #ruby
dstrunk has joined #ruby
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
tdy has quit [Ping timeout: 260 seconds]
Sammitch has joined #ruby
<Sammitch> to which dark god must I make sacrifice to in order to have this page load? https://www.rubydoc.info/gems/chef/Chef/Platform
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
apeiros has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 240 seconds]
<havenwood> Sammitch: You can run it yourself: gem server
<Alec> Sammitch: your mother.
<lupine> or just run yardoc in $GEM_HOME/gems/chef-14.3.37 or so
<havenwood> Alec: be nice.
<Alec> or just be happy that she didn't charge extra... okay.
<Alec> Sammitch: it was too easy - I couldn't not take it - I of course don't actually know Sammitch's mother, nor her occupation.
<havenwood> !kick Alec "Be even nicer!"
Alec was kicked from #ruby by ruby[bot] ["Be even nicer!"]
<Sammitch> lol
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<havenwood> Sammitch: Running it locally with rdoc or yard is probably the best way. The chef docs take a while to parse even locally, so it'll probably eventually show up on that page.
<havenwood> Sammitch: With `gem server` just go in your browser to: http://0.0.0.0:8808/doc_root/chef-14.3.37/Chef.html
<Sammitch> oooof I just want find one property and/or method T_T
<Sammitch> yum info yardoc
r29v has joined #ruby
jcarl43 has quit [Quit: WeeChat 2.2]
Freshnuts has joined #ruby
<havenwood> Sammitch: brew install yardoc
<havenwood> Sammitch: gem install**
<havenwood> Sammitch: err, yeard?
<havenwood> I'm so failing at multi-tasking...
<havenwood> Sammitch: The yard gem ships with yardoc.
<havenwood> Sammitch: gem install yard && yardoc
<havenwood> what lupine said
<havenwood> I'ts just: require 'yard'; YARD::CLI::Yardoc.run(*ARGV)
<Sammitch> I already generated it with rdoc, am reading it with lynx, and am hating life. :I
<havenwood> ahh
alireza1 has joined #ruby
cthu| has joined #ruby
r29v has quit [Quit: r29v]
r29v has joined #ruby
apeiros has joined #ruby
Sammitch has left #ruby [#ruby]
alireza1 has quit [Ping timeout: 260 seconds]
cthulchu_ has quit [Ping timeout: 256 seconds]