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
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Freshnuts has quit [Quit: Leaving]
cagomez has quit [Read error: Connection reset by peer]
cagomez has joined #ruby
cagomez has quit [Ping timeout: 276 seconds]
mynameisdebian has joined #ruby
zachk has quit [Quit: Leaving]
ogres has quit [Quit: Connection closed for inactivity]
mynameisdebian has quit [Ping timeout: 260 seconds]
tdy has quit [Ping timeout: 240 seconds]
lubekpl has joined #ruby
lubekpl has quit [Ping timeout: 260 seconds]
Mrgoose has quit [Ping timeout: 276 seconds]
_aeris_ has quit [Remote host closed the connection]
redlegion has quit [Max SendQ exceeded]
Mrgoose has joined #ruby
redlegion has joined #ruby
_aeris_ has joined #ruby
rax_ has joined #ruby
rax_ has quit [Quit: Leaving]
white_lilies has quit [Quit: WeeChat 2.1]
rax_ has joined #ruby
quazimodo has joined #ruby
redlegion has quit [Max SendQ exceeded]
<quazimodo> hey al
<quazimodo> question:
redlegion has joined #ruby
<quazimodo> given a set s1 and set s2, what's the nicer syntax in rpspec for ``` expect(s1).to_not be_intersect(s2)
<quazimodo> be_intersect is ... weird
AJA4350 has quit [Remote host closed the connection]
<quazimodo> i need a predicate thingo, like.... 'intersect_with'
Emmanuel_Chanel has quit [Ping timeout: 264 seconds]
mynameisdebian has joined #ruby
redlegion has quit [Remote host closed the connection]
rax_ has quit [Quit: Leaving]
redlegion has joined #ruby
mynameisdebian has quit [Ping timeout: 260 seconds]
quazimodo has quit [Ping timeout: 264 seconds]
jrafanie has joined #ruby
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
emerson has quit [Remote host closed the connection]
Some-body_ has joined #ruby
graphene has quit [Read error: Connection reset by peer]
DarthGandalf has quit [Ping timeout: 240 seconds]
Some-body_ is now known as DarthGandalf
graphene has joined #ruby
houhoulis has joined #ruby
jp has quit [Ping timeout: 264 seconds]
alyptik has joined #ruby
bruce_lee has quit [Remote host closed the connection]
alyptik is now known as jp
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
tdy has joined #ruby
Emmanuel_Chanel has joined #ruby
Emmanuel_Chanel has quit [Max SendQ exceeded]
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
mynameisdebian has joined #ruby
sameerynho has quit [Ping timeout: 240 seconds]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mynameisdebian has quit [Ping timeout: 265 seconds]
Puffball has quit [Read error: Connection reset by peer]
redlegion has quit [Max SendQ exceeded]
jamesaxl has quit [Quit: WeeChat 2.2]
redlegion has joined #ruby
Puffball has joined #ruby
mynameisdebian has joined #ruby
sauvin has quit [Ping timeout: 244 seconds]
mynameisdebian has quit [Ping timeout: 260 seconds]
sauvin has joined #ruby
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
alfiemax has joined #ruby
Mrgoose has quit [Ping timeout: 256 seconds]
Mrgoose has joined #ruby
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
scrptktty has quit [Quit: Connection closed for inactivity]
houhoulis has quit [Ping timeout: 268 seconds]
alfiemax has quit [Ping timeout: 244 seconds]
houhoulis has joined #ruby
konsolebox has quit [Ping timeout: 248 seconds]
konsolebox has joined #ruby
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
apparition has joined #ruby
r29v has joined #ruby
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
r29v has quit [Quit: r29v]
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
mynameisdebian has joined #ruby
mynameisdebian has quit [Ping timeout: 260 seconds]
braincrash has quit [Quit: bye bye]
kapil___ has joined #ruby
quobo has quit [Quit: Connection closed for inactivity]
braincrash has joined #ruby
donofrio_ has joined #ruby
houhoulis has quit [Remote host closed the connection]
donofrio has quit [Ping timeout: 276 seconds]
Tempesta has joined #ruby
minimal_life has joined #ruby
quazimodo has joined #ruby
apparition has quit [Quit: Bye]
ghormoon has quit [Ping timeout: 256 seconds]
ghormoon has joined #ruby
Puffball has quit [Remote host closed the connection]
minimal_life has quit [Quit: I am functioning within established parameters.]
Guest88931 has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
Nicmavr is now known as Guest67691
mynameisdebian has joined #ruby
eGGshke has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gix has joined #ruby
mynameisdebian has quit [Ping timeout: 260 seconds]
gix- has quit [Ping timeout: 264 seconds]
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
Puffball has joined #ruby
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
jtdowney has quit [Quit: jtdowney]
jtdowney has joined #ruby
mynameisdebian has joined #ruby
donofrio_ has quit [Remote host closed the connection]
graphene has quit [Remote host closed the connection]
mynameis_ has joined #ruby
RougeR has quit [Ping timeout: 264 seconds]
graphene has joined #ruby
DTZUZO has joined #ruby
mynameisdebian has quit [Ping timeout: 265 seconds]
lubekpl has joined #ruby
lubekpl has quit [Ping timeout: 240 seconds]
donofrio has joined #ruby
donofrio_ has joined #ruby
donofrio has quit [Ping timeout: 268 seconds]
Gnarly has joined #ruby
redlegion has quit [Max SendQ exceeded]
Tempesta has quit [Quit: See ya!]
redlegion has joined #ruby
ryzokuken has joined #ruby
duderonomy has joined #ruby
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
graphene has quit [Remote host closed the connection]
alfiemax has joined #ruby
graphene has joined #ruby
ged has quit [Read error: Connection reset by peer]
ged has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dendazen has joined #ruby
dendazen has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dendazen has joined #ruby
dendazen has quit [Client Quit]
dviola has quit [Quit: WeeChat 2.2]
donofrio__ has joined #ruby
donofrio_ has quit [Ping timeout: 276 seconds]
donofrio has joined #ruby
redlegion has quit [Max SendQ exceeded]
donofrio__ has quit [Ping timeout: 240 seconds]
redlegion has joined #ruby
Dimik has quit [Ping timeout: 256 seconds]
Gnarly has quit [Read error: Connection reset by peer]
Gnarly has joined #ruby
schneider has joined #ruby
alfiemax has quit [Remote host closed the connection]
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
mistym has quit [Ping timeout: 245 seconds]
mistym has joined #ruby
mistym has quit [Changing host]
mistym has joined #ruby
alfiemax has joined #ruby
Puppet_ has quit [Quit: Leaving]
mynameisdebian has joined #ruby
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
lomex has joined #ruby
alfiemax has quit [Remote host closed the connection]
mynameis_ has quit [Ping timeout: 265 seconds]
darkhanb has joined #ruby
schleppel has joined #ruby
alem0lars has joined #ruby
edwardly has quit [Ping timeout: 264 seconds]
lunarkitty7 has quit [Ping timeout: 256 seconds]
Gnarly has quit [Remote host closed the connection]
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
xall has joined #ruby
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
lomex has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jmcgnh has quit [Remote host closed the connection]
schneider has quit [Ping timeout: 256 seconds]
<quazimodo> so
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
schneider has joined #ruby
foldit has joined #ruby
foldit has quit [Client Quit]
schneider has quit [Ping timeout: 264 seconds]
RougeR has joined #ruby
RougeR has quit [Changing host]
RougeR has joined #ruby
jerome__ has joined #ruby
<jerome__> from rails-5.2 framework just try to rails generate something give directly an error (permission denied to create an dir inside /run/user/1000/spring-504)
<jerome__> why first it try to create a directory there ? that is not relative to rails job has to do... why just not stay inside his directory of the web site ?
redlegion has quit [Max SendQ exceeded]
\void has quit [Quit: So long, and thanks for all the fish.]
schneider has joined #ruby
redlegion has joined #ruby
foldit has joined #ruby
schneider has quit [Ping timeout: 264 seconds]
foldit has quit [Read error: Connection reset by peer]
schneider has joined #ruby
lubekpl has joined #ruby
quazimodo has quit [Ping timeout: 240 seconds]
mynameisdebian has quit [Remote host closed the connection]
quazimodo has joined #ruby
lubekpl has quit [Ping timeout: 260 seconds]
schneider has quit [Ping timeout: 260 seconds]
<jerome__> foudn my error: mixing environment due to bad login process: su http is wrong, su - http is good.
schneider has joined #ruby
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
quobo has joined #ruby
reber has joined #ruby
reber__ has joined #ruby
graphene has quit [Remote host closed the connection]
schneider has quit [Ping timeout: 244 seconds]
graphene has joined #ruby
Mike11 has joined #ruby
schneider has joined #ruby
schneider has quit [Ping timeout: 276 seconds]
schneider has joined #ruby
sameerynho has joined #ruby
biberu has joined #ruby
foldit has joined #ruby
schneider has quit [Ping timeout: 256 seconds]
foldit has quit [Client Quit]
foldit has joined #ruby
schneider has joined #ruby
quazimodo has quit [Ping timeout: 260 seconds]
quazimodo has joined #ruby
redlegion has quit [Max SendQ exceeded]
sagax has joined #ruby
redlegion has joined #ruby
schneider has quit [Ping timeout: 268 seconds]
User458764 has joined #ruby
xall has quit [Quit: xall]
schneider has joined #ruby
jmcgnh has joined #ruby
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
alex`` has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
schneider has quit [Ping timeout: 248 seconds]
schneider has joined #ruby
schneider has quit [Ping timeout: 260 seconds]
snickers has joined #ruby
schneider has joined #ruby
schneider has quit [Client Quit]
maryo has joined #ruby
shinnya has quit [Ping timeout: 244 seconds]
jamesaxl has joined #ruby
graphene has quit [Remote host closed the connection]
Mike11 has quit [Ping timeout: 256 seconds]
graphene has joined #ruby
redlegion has quit [Remote host closed the connection]
redlegion has joined #ruby
conta has joined #ruby
sphenxes has joined #ruby
sphenxes has quit [Max SendQ exceeded]
sphenxes has joined #ruby
Mike11 has joined #ruby
venmx has joined #ruby
Mike11 has quit [Max SendQ exceeded]
Mike11 has joined #ruby
Mike11 has quit [Max SendQ exceeded]
sphenxes has quit [Quit: Leaving]
RougeR has quit [Quit: Leaving]
redlegion has quit [Max SendQ exceeded]
Mike11 has joined #ruby
c0mrad3 has joined #ruby
redlegion has joined #ruby
Mike11 has quit [Max SendQ exceeded]
Guest67691 has quit [Changing host]
Guest67691 has joined #ruby
Guest67691 is now known as Kestrel-029
milanj has quit [Quit: This computer has gone to sleep]
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
jerome__ has quit [Quit: THE END]
beefjoe has joined #ruby
ssariyar has joined #ruby
InfinityFye has joined #ruby
mikecmpbll has joined #ruby
foldit has quit [Quit: 0x1189e503e]
dellavg has joined #ruby
maryo has quit [Ping timeout: 268 seconds]
InfinityFye has left #ruby [#ruby]
sspreitz has quit [Ping timeout: 256 seconds]
sspreitz has joined #ruby
beefjoe has quit [Remote host closed the connection]
Mike11 has joined #ruby
beefjoe has joined #ruby
amar has joined #ruby
beefjoe has quit [Remote host closed the connection]
ssariyar has quit [Quit: Leaving]
ssariyar has joined #ruby
sepp2k has joined #ruby
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
nowhere_man has quit [Ping timeout: 256 seconds]
ssariyar has quit [Ping timeout: 244 seconds]
ssariyar has joined #ruby
alex`` has quit [Quit: WeeChat 2.1]
alex`` has joined #ruby
reber__ has quit [Quit: Leaving]
alem0lars has quit [Ping timeout: 248 seconds]
shinnya has joined #ruby
alex`` has quit [Ping timeout: 244 seconds]
snickers has quit [Ping timeout: 240 seconds]
tty has quit [Quit: tty]
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
alex`` has joined #ruby
e2 has joined #ruby
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
plutes has quit [Ping timeout: 252 seconds]
lomex has joined #ruby
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
sspreitz has quit [Ping timeout: 256 seconds]
samosaphile has joined #ruby
clemens3 has joined #ruby
sspreitz has joined #ruby
AJA4350 has joined #ruby
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
Alina-malina has quit [Ping timeout: 268 seconds]
ssariyar has quit [Remote host closed the connection]
Alina-malina has joined #ruby
psychicist__ has joined #ruby
milanj has joined #ruby
karapetyan has joined #ruby
beefjoe has joined #ruby
lomex has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
beefjoe has quit [Ping timeout: 256 seconds]
amar_ has joined #ruby
User458764 has joined #ruby
amar__ has joined #ruby
conta has quit [Quit: conta]
amar___ has joined #ruby
amar has quit [Ping timeout: 276 seconds]
amar_ has quit [Ping timeout: 260 seconds]
amar__ has quit [Ping timeout: 260 seconds]
quazimodo has quit [Ping timeout: 260 seconds]
quazimodo has joined #ruby
shinnya has quit [Quit: ZNC - http://znc.in]
shinnya has joined #ruby
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
amar_ has joined #ruby
amar___ has quit [Ping timeout: 268 seconds]
alfiemax has joined #ruby
alfiemax has quit [Remote host closed the connection]
beefjoe has joined #ruby
amar has joined #ruby
amar_ has quit [Ping timeout: 260 seconds]
alem0lars has joined #ruby
c0mrad3 has quit [Quit: Connection closed for inactivity]
donofrio has quit [Read error: Connection reset by peer]
donofrio has joined #ruby
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
solene has joined #ruby
solene has left #ruby ["WeeChat 2.1"]
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
graphene has quit [Remote host closed the connection]
Kestrel-029 has quit [Ping timeout: 256 seconds]
graphene has joined #ruby
konsolebox has quit [Max SendQ exceeded]
za1b1tsu has joined #ruby
quazimodo has quit [Ping timeout: 268 seconds]
konsolebox has joined #ruby
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
lomex has joined #ruby
qolq has joined #ruby
dstrunk has joined #ruby
DLSteve has joined #ruby
beefjoe has quit [Ping timeout: 276 seconds]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
milanj has quit [Quit: This computer has gone to sleep]
arif_vidfot has joined #ruby
shinnya has quit [Ping timeout: 276 seconds]
<arif_vidfot> hi
DLSteve has joined #ruby
<SCHAPiE> hello
amar_ has joined #ruby
User458764 has joined #ruby
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
amar has quit [Ping timeout: 276 seconds]
<arif_vidfot> hi
<apeiros> moin
<arif_vidfot> facebook
donofrio has quit [Quit: Leaving]
<elomatreb> If you say so
Asher has quit [Ping timeout: 268 seconds]
<arif_vidfot> ok
donofrio has joined #ruby
redlegion has quit [Max SendQ exceeded]
soniya29 has joined #ruby
redlegion has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<arif_vidfot> has joined #ruby
<apeiros> arif_vidfot: what's up with your nonsensical messages?
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
User458764 has joined #ruby
lomex has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
amar_ has quit [Remote host closed the connection]
amar has joined #ruby
arif_vidfot has quit [Ping timeout: 240 seconds]
psychicist__ has quit [Ping timeout: 240 seconds]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
psychicist__ has joined #ruby
amar has quit [Ping timeout: 260 seconds]
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
guille-moe has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Nicmavr has joined #ruby
Nicmavr is now known as Guest97613
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
houhoulis has joined #ruby
beefjoe has joined #ruby
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
guille-moe has quit [Ping timeout: 240 seconds]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
redlegion has quit [Max SendQ exceeded]
Guest97613 has quit [Quit: ZNC 1.7.0 - https://znc.in]
alem0lars has quit [Quit: Leaving]
redlegion has joined #ruby
Kestrel-029 has joined #ruby
Kestrel-029 is now known as Guest81839
Guest81839 has quit [Changing host]
Guest81839 has joined #ruby
Guest81839 is now known as Nicmavr
soniya29 has quit [Ping timeout: 256 seconds]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
alem0lars has joined #ruby
ldepandis has joined #ruby
Asher has joined #ruby
za1b1tsu has quit [Ping timeout: 248 seconds]
tdy has quit [Quit: WeeChat 2.1]
tdy has joined #ruby
redlegion has quit [Max SendQ exceeded]
za1b1tsu has joined #ruby
Asher has quit [Ping timeout: 260 seconds]
redlegion has joined #ruby
milanj has joined #ruby
za1b1tsu has quit [Ping timeout: 276 seconds]
za1b1tsu has joined #ruby
za1b1tsu has quit [Ping timeout: 265 seconds]
_aeris_ has quit [Ping timeout: 250 seconds]
jottr_ has joined #ruby
_aeris_ has joined #ruby
jottr_ has quit [Ping timeout: 245 seconds]
konsolebox has quit [Quit: .]
psychicist__ has quit [Ping timeout: 240 seconds]
dstrunk has quit [Quit: Textual IRC Client: www.textualapp.com]
tdy has quit [Ping timeout: 260 seconds]
Mike11 has quit [Quit: Leaving.]
subroot has joined #ruby
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
kapil___ has joined #ruby
tdy has joined #ruby
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
beefjoe has quit [Ping timeout: 244 seconds]
conta has joined #ruby
alfiemax has joined #ruby
tdy has quit [Ping timeout: 256 seconds]
<sagax> hi ;D
rippa has joined #ruby
graphene has quit [Remote host closed the connection]
<havenwood> sagax: hi!
graphene has joined #ruby
c0ncealed2 has quit [Read error: Connection reset by peer]
c0ncealed2 has joined #ruby
mynameisdebian has joined #ruby
xenops has joined #ruby
za1b1tsu has joined #ruby
dviola has joined #ruby
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
banisterfiend has joined #ruby
za1b1tsu has quit [Ping timeout: 240 seconds]
<sagax> how to work with "rake" in ruby code?
<sagax> without terminal
<sagax> i read source https://github.com/ruby/rake/blob/master/lib/rake/application.rb but don't understand, how to make "rake" in code
<apeiros> Rake::Task['some:task'].invoke
<havenwood> sagax: that's ^ what you're looking for, yeah?
qolq is now known as qolq3
nfsnobody has quit [Changing host]
nfsnobody has joined #ruby
<sagax> i want get all tasks name
<sagax> and after run this tasks
qolq3 is now known as qolq
<havenwood> sagax: Rake::Task.tasks
<sagax> cool, thanks
<sagax> why i can't found this, uff
<havenwood> sagax: Rake::Task.tasks.each(&:invoke).map(&:name)
<sagax> &: at this time it's hard for me
<sagax> i don't use this syntax "&:"
<havenwood> sagax: It's just a bit of syntactic sugar to simplify your code to make it more readable. It's not easy but it's simple.
<apeiros> the & and : are separte
<havenwood> sagax: [1, 2, 3].map { |s| s.to_s }
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> sagax: a simpler and faster way to write that is:
<havenwood> sagax: [1, 2, 3].map &:to_s
<havenwood> sagax: :to_s.class #=> Symbol
<havenwood> sagax: The ampersand calls Symbol#to_proc, and passes that proc as a block to the method.
<havenwood> the Array#map method*
<havenwood> sagax: When you find that you do a block `{ |x|` and then inside the block do `x.meth`, instead just write: &:x
mynameisdebian has quit [Remote host closed the connection]
<havenwood> &:meth***
<havenwood> Uhg, I need more coffee. Unacceptable error rate!
<havenwood> >> :puts.to_proc
<ruby[bot]> havenwood: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
<havenwood> ah, right - eval.in top level is funky
* havenwood goes in search of coffee...
<sagax> thanks
<apeiros> na, eval.in just sometimes randomly bugs out
<apeiros> the reported error is actually in ruboto handling that error in eval.in
<havenwood> ah
<apeiros> >> :puts.to_proc
<ruby[bot]> apeiros: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
<apeiros> sometimes you can run it a couple of times and suddenly it won't bug out
<apeiros> no idea. but I really should fix the bug in ruboto to properly report eval.in's failure :D
<sagax> how to send output from `some command` to stdout? without printf
* apeiros blinks
<apeiros> $stdout holds the IO instance for stdout
<apeiros> see IO docs for all available methods.
guille-moe has joined #ruby
jamiejackson has joined #ruby
conta has quit [Quit: conta]
<jamiejackson> (i asked this yesterday, but had to leave just after i posted.) i'm trying to iterate over a hash inline to build a string: https://gist.github.com/jamiejackson/176cf94c7b1766fd7f0f92601ab16586
<jamiejackson> i could build the string into a variable first, but i'm curious about the inline syntax
<apeiros> jamiejackson: ruby isn't php. all code isn't a template. printing inside string interpolation doesn't end up in the string.
<apeiros> use map instead of each, don't print. join the result of the .map.
<apeiros> you can experiment with those things in irb (or better yet, pry - but irb ships with ruby, while pry is a 3rd party gem).
<sagax> i found
banisterfiend has joined #ruby
<sagax> STDOUT.write
<jamiejackson> i've been trying that, too. i'll post what i've got in a minute
<havenwood> apeiros: Your blinking reminds me of: Was ist Liebe? Was ist Schöpfung? Was ist Sehnsucht? Was ist Stern? – so fragt der letzte Mensch und blinzelt.
<sagax> thanks, i read IO docs and found
<havenwood> haha
MzrE has joined #ruby
alfiemax has quit [Remote host closed the connection]
<sagax> my english very bad
<sagax> sorry
Azure has quit [Read error: Connection reset by peer]
<sagax> you can joke without stop
<apeiros> sagax: hm? we were not making fun of you
Azure has joined #ruby
alem0lars has quit [Ping timeout: 240 seconds]
<sagax> no problem
alfiemax has joined #ruby
<apeiros> and no worries about bad english. it's normal that not everybody can fluently write english.
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
User458764 has joined #ruby
foldit has joined #ruby
<jamiejackson> i got it going, apeiros, thx
<apeiros> 👍🏻
banisterfiend has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
scrptktty has joined #ruby
venmx has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
Zaab1t has joined #ruby
redlegion has quit [Max SendQ exceeded]
Emmanuel_Chanel has joined #ruby
redlegion has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
User458764 has joined #ruby
samosaphile has quit [Ping timeout: 252 seconds]
TinkerT has quit [Read error: Connection reset by peer]
User458764 has quit [Client Quit]
TinkerT has joined #ruby
karapetyan has quit [Remote host closed the connection]
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
guille-moe has quit [Ping timeout: 256 seconds]
karapetyan has joined #ruby
akaiiro has joined #ruby
houhoulis has quit [Remote host closed the connection]
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
orbyt_ has joined #ruby
banisterfiend has joined #ruby
Es0teric has joined #ruby
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
Es0teric_ has joined #ruby
DTZUZO has quit [Ping timeout: 240 seconds]
Es0teric has quit [Ping timeout: 244 seconds]
jottr_ has joined #ruby
yokel has quit [Ping timeout: 244 seconds]
Mike11 has joined #ruby
sphenxes has joined #ruby
sphenxes has quit [Max SendQ exceeded]
\void has joined #ruby
yokel has joined #ruby
claudiuinberlin has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
oct2pus has joined #ruby
amar has joined #ruby
Puffball has quit [Read error: Connection reset by peer]
Puffball has joined #ruby
amar has quit [Ping timeout: 276 seconds]
foldit has quit [Read error: Connection reset by peer]
beefjoe has joined #ruby
beefjoe has quit [Remote host closed the connection]
banisterfiend has joined #ruby
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
tty has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrm has left #ruby ["ERC (IRC client for Emacs 26.1)"]
banisterfiend has joined #ruby
icantc has quit [Quit: Leaving]
<sagax> strange, but with v5 ActiveRecord i don't have "ActiveRecord::Base.connection.create_database" and "ActiveRecord::Migrator.migrate"
<apeiros> ?rails sagax
<ruby[bot]> sagax: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<sagax> no rails
<sagax> just activerecord
<sagax> i already identified
<sagax> but i don't use rails, just activerecord
alfiemax has quit [Ping timeout: 264 seconds]
<apeiros> ?ar sagax
<ruby[bot]> sagax: For activerecord/arel questions, please join #RubyOnRails, since they're maintained as a part of it. Note: you need to be identified with NickServ, see /msg NickServ HELP
<sagax> ok
beefjoe has joined #ruby
SeepingN has joined #ruby
alfiemax has joined #ruby
conta has joined #ruby
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
beefjoe has quit [Remote host closed the connection]
alem0lars has joined #ruby
beefjoe has joined #ruby
pwnd_nsfw has joined #ruby
Es0teric_ has quit [Quit: Computer has gone to sleep.]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pwnd_nsfw` has quit [Ping timeout: 276 seconds]
beefjoe has quit [Ping timeout: 265 seconds]
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
beefjoe has joined #ruby
<JJonah> i'm creating refinements that upgrade many of the Enumerable methods in the same way: https://eval.in/1040378. is there a good away to avoid duplication here? using metapromming (or by any other method)?
conta has quit [Quit: conta]
jasmith has joined #ruby
banisterfiend has joined #ruby
<apeiros> JJonah: oy, don't do that. leave argument normalization to the user of your method.
<apeiros> it's easy enough to put a & in front of your argument.
<apeiros> (re smart_block)
<apeiros> also it probably doesn't work the way you want anyway, unless you patched in an Array#to_proc
<JJonah> apeiros: i did indeed path Array
<JJonah> patch*
<JJonah> it works well, i have lots of tests
<apeiros> ok. then still the earlier part.
<JJonah> apeiros: yeah, that's fair enough, but this is more experimental / for fun. also, it's fully backwards compatible with normal calling conventions.
redlegion has quit [Max SendQ exceeded]
<elomatreb> If it's refinement-based it's fine though? Use it if you want to
redlegion has joined #ruby
<JJonah> apeiros: but eg what i'm doing allows stuff `map(:join, '-')`. it gets much uglier if i force the proc conversion in userland: `map(&[:join, '-'])`
<apeiros> JJonah: I see. I misinterpreted your code as I did not expect Array#to_proc to be present and assumed it to be meant for the first arg.
<apeiros> in that case, what elomatreb said
<JJonah> cool. in any case, the wisdom of the refinement is valid but separate debate. my original question about how to avoid code duplication in situtations like this still stands.
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros> I don't think you can sensibly reduce that code further
<JJonah> apeiros: ok cool, i'll continue as i am
banisterfiend has joined #ruby
SeepingN has quit [Ping timeout: 244 seconds]
Zaab1t has quit [Quit: Zaab1t]
alem0lars has quit [Ping timeout: 244 seconds]
banisterfiend has quit [Client Quit]
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
Zaab1t has joined #ruby
plutes has joined #ruby
shinnya has joined #ruby
banisterfiend has joined #ruby
beefjoe has quit [Ping timeout: 260 seconds]
beefjoe has joined #ruby
Dbugger has joined #ruby
tdy has joined #ruby
Dbugger has quit [Client Quit]
fmccann has quit [Ping timeout: 240 seconds]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Dbugger has joined #ruby
banisterfiend has joined #ruby
claudiuinberlin has joined #ruby
zapata has quit [Read error: Connection reset by peer]
zapata has joined #ruby
banisterfiend has quit [Client Quit]
kapil___ has quit [Quit: Connection closed for inactivity]
banisterfiend has joined #ruby
banisterfiend has quit [Client Quit]
fmccann has joined #ruby
alfiemax has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: inabit. zz.]
karapetyan has quit [Remote host closed the connection]
Tharbakim has quit [Ping timeout: 256 seconds]
Tharbakim has joined #ruby
Tharbakim has quit [Changing host]
Tharbakim has joined #ruby
Es0teric has joined #ruby
Dbugger has quit [Remote host closed the connection]
Zaab1t has quit [Quit: Zaab1t]
reaVer has joined #ruby
Dbugger has joined #ruby
Caerus has joined #ruby
_icantc has joined #ruby
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
dr3w_ has joined #ruby
kss has joined #ruby
kss has quit [Quit: leaving]
kss has joined #ruby
InfinityFye has joined #ruby
alex`` has quit [Ping timeout: 276 seconds]
InfinityFye has left #ruby [#ruby]
kss has left #ruby [#ruby]
<baweaver> apeiros: ohoho
<baweaver> There's a gem for that
<apeiros> 😂
kristofers has joined #ruby
<apeiros> of course
<baweaver> stuff.map(&Ze.join('-'))
byte512 has quit [Quit: Bye.]
<baweaver> Why Ze? Obnoxious french accent "the"
jamiejackson has quit [Ping timeout: 276 seconds]
<baweaver> This works too: "DEADBEEF".chars.each_slice(2).map(&Ze.join.to_i(16))
<baweaver> The nice thing with screwing with method_missing is that you can grab the args and block too :D
<Zarthus> baweaver: searching "gem ze ruby" finds "baweaver/xf"
<baweaver> Mind I haven't put it on GH yet.
<Zarthus> because it writes.. "Fine ... all ze features"
<baweaver> It was a 20m hack
gothicsouth has joined #ruby
<baweaver> Ah, I suppose I did do that.
<baweaver> So many two letter names :D
alex`` has joined #ruby
<baweaver> Managed to nab 'yet' for something fun for later.
<baweaver> Also title slide for the conference talk is ready: https://twitter.com/keystonelemur/status/1020953200524869632
<Zarthus> do you make those designs?
<Zarthus> Xf had a similar picture in the README I found quite appealing
alfiemax has joined #ruby
<baweaver> Yep. Need to redo it though now that I know how to do vector illustrations
<baweaver> Qo has one too
<baweaver> That one really needs help
gothicsouth has quit [Client Quit]
<baweaver> Most all of the designs are from "An Illustrated Guide to Ruby"
<baweaver> and this talk may well be a hint of things to come, as well as some good practice :)
gothicsouth has joined #ruby
vipaca has joined #ruby
gothicsouth has quit [Client Quit]
vipaca is now known as Guest40532
alfiemax has quit [Ping timeout: 240 seconds]
tdy has quit [Ping timeout: 240 seconds]
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
<sagax> how to run script with required all from Gemfile ?
<apeiros> iirc see Bundler.require
<baweaver> bundle exec?
<apeiros> lol, or that :D
<sagax> i don't know, maybe
<sagax> will try
dellavg has quit [Ping timeout: 260 seconds]
alex`` has quit [Ping timeout: 240 seconds]
byte512 has joined #ruby
alex`` has joined #ruby
jottr_ has quit [Ping timeout: 240 seconds]
potatocloud77 has joined #ruby
banisterfiend has joined #ruby
potatocloud77 has left #ruby [#ruby]
potatocloud77 has joined #ruby
Guest40532 has quit [Quit: Textual IRC Client: www.textualapp.com]
BTRE has quit [Quit: Leaving]
reber has quit [Remote host closed the connection]
beefjoe has quit [Ping timeout: 260 seconds]
potatocloud77 has left #ruby [#ruby]
biberu has quit []
BTRE has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
lomex has joined #ruby
redlegion has quit [Max SendQ exceeded]
tdy has joined #ruby
redlegion has joined #ruby
Axy has joined #ruby
Axy has quit [Changing host]
Axy has joined #ruby
karapetyan has joined #ruby
Mia has quit [Ping timeout: 244 seconds]
Dbugger has quit [Quit: Leaving]
karapetyan has quit [Ping timeout: 240 seconds]
karapetyan has joined #ruby
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
ur5us has joined #ruby
alfiemax has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
alfiemax_ has joined #ruby
lomex has quit [Quit: Textual IRC Client: www.textualapp.com]
alfiemax has quit [Ping timeout: 244 seconds]
alfiemax_ has quit [Ping timeout: 240 seconds]
Es0teric has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<JJonah> most of the Enumerable methods have a version that returns an Enumerator when no block is given. Eg, https://eval.in/1040390. What is the use case for this? I'm having trouble imagining a situation where I'd use the behavior...
subroot has quit [Read error: Connection reset by peer]
karapetyan has quit [Remote host closed the connection]
banisterfiend has joined #ruby
amar has joined #ruby
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
schleppel has quit [Quit: Konversation terminated!]
amar has quit [Ping timeout: 244 seconds]
konsolebox has joined #ruby
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
cosmopaladin has joined #ruby
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
r29v has joined #ruby
kristofers has quit [Remote host closed the connection]
megamos has joined #ruby
Es0teric has joined #ruby
oct2pus has quit [Ping timeout: 240 seconds]
clemens3 has quit [Ping timeout: 256 seconds]
Es0teric has quit [Ping timeout: 240 seconds]
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
cosmopaladin has quit [Quit: Leaving]
redlegion has quit [Max SendQ exceeded]
jamesaxl has quit [Quit: WeeChat 2.2]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
redlegion has joined #ruby
hidir_de has joined #ruby
amar has joined #ruby
k0mpa has joined #ruby
oct2pus has joined #ruby
hidir_de has quit [Ping timeout: 256 seconds]
BTRE has quit [Ping timeout: 244 seconds]
Azure has quit [Ping timeout: 264 seconds]
Azure has joined #ruby
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
karapetyan has joined #ruby
BTRE has joined #ruby
karapetyan has quit [Ping timeout: 240 seconds]
duderonomy has quit [Ping timeout: 276 seconds]
tdy has quit [Ping timeout: 240 seconds]
megamos has quit [Quit: Leaving]
orbyt_ has joined #ruby
alex`` has quit [Ping timeout: 264 seconds]
jrafanie has joined #ruby
alex`` has joined #ruby