havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.2, 2.3.5 & 2.2.8: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
hutch34 has joined #ruby
Devalo has joined #ruby
eckhardt has joined #ruby
ForeignBiscuit has joined #ruby
eckhardt has quit [Client Quit]
<raynold> ahh it's a wonderful day
cajone has joined #ruby
eckhardt has joined #ruby
DTZUZO has quit [Ping timeout: 248 seconds]
<zenspider> no it isn't
ResidentBiscuit has quit [Ping timeout: 255 seconds]
Ropeney has joined #ruby
<zenspider> matthewd: I disagree with your advice to not test private methods. Sometimes you really need to. I suggest making them public in the test file so you don't need send
jphase has joined #ruby
idefine has quit [Remote host closed the connection]
jphase_ has joined #ruby
Rodya_ has quit [Remote host closed the connection]
jphase has quit [Ping timeout: 252 seconds]
jphase has joined #ruby
Technodrome has joined #ruby
Silthias1 has joined #ruby
jphase_ has quit [Ping timeout: 252 seconds]
brendan- has quit [Quit: Textual IRC Client: www.textualapp.com]
Rodya_ has joined #ruby
Silthias has quit [Ping timeout: 248 seconds]
jphase has quit [Ping timeout: 246 seconds]
blackmesa1 has quit [Ping timeout: 252 seconds]
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
TinkerTyper has quit [Read error: Connection reset by peer]
Rodya_ has quit [Remote host closed the connection]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
imode has quit [Ping timeout: 246 seconds]
guacamole has quit [Quit: Textual IRC Client: www.textualapp.com]
TinkerTyper has joined #ruby
Rodya_ has joined #ruby
Rodya_ has quit [Remote host closed the connection]
tolerablyjake has quit [Quit: Textual IRC Client: www.textualapp.com]
hutch34 has quit [Ping timeout: 252 seconds]
mostlybadfly has joined #ruby
enterprisey has joined #ruby
wald0 has quit [Quit: Lost terminal]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
marr has quit [Ping timeout: 264 seconds]
hutch34 has joined #ruby
Rodya_ has joined #ruby
Technodrome has joined #ruby
Devalo has quit [Ping timeout: 248 seconds]
Rodya_ has quit [Remote host closed the connection]
cagomez has quit [Ping timeout: 240 seconds]
hutch34 has quit [Ping timeout: 264 seconds]
jphase has joined #ruby
idefine has joined #ruby
fclausen has joined #ruby
jphase has quit [Ping timeout: 258 seconds]
Rodya_ has joined #ruby
jphase_ has joined #ruby
hutch34 has joined #ruby
jphase has joined #ruby
idefine has quit [Ping timeout: 248 seconds]
charliesome_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
lxsameer has quit [Ping timeout: 246 seconds]
jphase_ has quit [Ping timeout: 255 seconds]
hutch34 has quit [Ping timeout: 246 seconds]
VladGh has quit [Ping timeout: 248 seconds]
bmurt has joined #ruby
jphase has quit [Ping timeout: 246 seconds]
VladGh has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
knight33 has joined #ruby
whippythellama has quit [Ping timeout: 255 seconds]
hutch34 has joined #ruby
hutch34 has quit [Ping timeout: 255 seconds]
fullstack has quit [Ping timeout: 252 seconds]
fullstack has joined #ruby
hutch34 has joined #ruby
jphase has joined #ruby
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
jphase_ has joined #ruby
shinnya has quit [Ping timeout: 258 seconds]
jxv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
imode has joined #ruby
__Yiota has joined #ruby
jphase has quit [Ping timeout: 252 seconds]
jphase has joined #ruby
hutch34 has quit [Ping timeout: 252 seconds]
jphase_ has quit [Ping timeout: 252 seconds]
duckpuppy has quit [Ping timeout: 240 seconds]
jphase has quit [Ping timeout: 252 seconds]
Technodrome has joined #ruby
hutch34 has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
whippythellama has joined #ruby
jameser has joined #ruby
cosimou has quit [Ping timeout: 248 seconds]
hutch34 has quit [Ping timeout: 255 seconds]
cosimo_ has joined #ruby
jphase has joined #ruby
hutch34 has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
thomasv314 has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mikecmpbll has quit [Quit: inabit. zz.]
uZiel has joined #ruby
hutch34 has quit [Ping timeout: 255 seconds]
d^sh has quit [Ping timeout: 248 seconds]
d^sh has joined #ruby
rhyselsmore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
uZiel has quit [Ping timeout: 248 seconds]
hutch34 has joined #ruby
wnd has quit [Ping timeout: 240 seconds]
jxv has joined #ruby
wnd has joined #ruby
mim1k has joined #ruby
hutch34 has quit [Ping timeout: 252 seconds]
govg has quit [Ping timeout: 260 seconds]
Ropeney has joined #ruby
Ropeney has quit [Client Quit]
sepp2k has quit [Quit: Leaving.]
mim1k has quit [Ping timeout: 240 seconds]
thomasv314 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hutch34 has joined #ruby
Azure has quit [Read error: Connection reset by peer]
Azure has joined #ruby
govg has joined #ruby
jxv_ has joined #ruby
jxv has quit [Ping timeout: 252 seconds]
hutch34 has quit [Ping timeout: 246 seconds]
__Yiota has joined #ruby
idefine has joined #ruby
govg has quit [Ping timeout: 246 seconds]
alfiemax has joined #ruby
govg has joined #ruby
gizmore|2 has joined #ruby
hutch34 has joined #ruby
thomasv314 has joined #ruby
gizmore has quit [Ping timeout: 240 seconds]
Cohedrin_ has quit [Read error: Connection reset by peer]
govg has quit [Ping timeout: 246 seconds]
alnewkirk has joined #ruby
hutch34 has quit [Ping timeout: 264 seconds]
bruno- has joined #ruby
Cohedrin_ has joined #ruby
Devalo has joined #ruby
nowhereman has quit [Read error: Connection reset by peer]
nowhereman has joined #ruby
alnewkirk has quit [Ping timeout: 252 seconds]
hutch34 has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
hutch34 has quit [Ping timeout: 240 seconds]
alfiemax has quit [Ping timeout: 260 seconds]
orbyt_ has joined #ruby
alfiemax has joined #ruby
hutch34 has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
jameser has quit [Ping timeout: 255 seconds]
gusrub has quit [Remote host closed the connection]
gusrub has joined #ruby
jameser has joined #ruby
hutch34 has joined #ruby
fullstack has quit [Ping timeout: 240 seconds]
ap4y2 has quit [Quit: WeeChat 1.9.1]
ap4y1 has joined #ruby
jameser has quit [Ping timeout: 240 seconds]
erlend has quit [Ping timeout: 240 seconds]
fullstack has joined #ruby
erlend has joined #ruby
hutch34 has quit [Ping timeout: 255 seconds]
Devalo has quit [Ping timeout: 252 seconds]
jameser has joined #ruby
kies has quit [Ping timeout: 258 seconds]
ap4y1 has quit [Ping timeout: 248 seconds]
hutch34 has joined #ruby
bambanx has quit [Quit: Leaving]
alex`` has joined #ruby
<zanoni> question - I have a method with a conditional statement in it. I'd like that conditional to be optional. Is there a way to go about that? I tried a few things, assigning it to a proc and also a variable.
<Radar> ?gist zanoni
<ruby[bot]> zanoni: https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<Radar> Show us your code, please.
<basket> zanoni: Do you have some code to show?
<Radar> basket: TOO SLOW
<basket> I'm slow
<Radar> :D
<zanoni> I'll put it into a gist and pop the link, probably later, thanks!
hutch34 has quit [Ping timeout: 240 seconds]
ap4y1 has joined #ruby
xuanrui has joined #ruby
mjolnird has quit [Quit: Leaving]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hutch34 has joined #ruby
dviola has quit [Quit: WeeChat 1.9.1]
Rodya_ has quit [Remote host closed the connection]
oncall-pokemon has joined #ruby
hutch34 has quit [Ping timeout: 264 seconds]
alfiemax has quit [Remote host closed the connection]
duderonomy has joined #ruby
hutch34 has joined #ruby
Guest20488 has quit [Quit: Leaving]
hutch34 has quit [Ping timeout: 255 seconds]
gusrub has quit [Remote host closed the connection]
whippythellama has quit [Quit: WeeChat 1.4]
cschneid_ has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
hutch34 has joined #ruby
cschneid_ has quit [Ping timeout: 252 seconds]
zanoni has quit [Ping timeout: 240 seconds]
hutch34 has quit [Ping timeout: 240 seconds]
Freshnuts has joined #ruby
uZiel has joined #ruby
ap4y1 has quit [Quit: WeeChat 1.9.1]
tastytf has joined #ruby
hutch34 has joined #ruby
uneeb has joined #ruby
alfiemax has joined #ruby
shinnya has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
uneeb has quit [Read error: Connection reset by peer]
ap4y1 has joined #ruby
rajno has joined #ruby
rajnoT has quit [Ping timeout: 240 seconds]
ap4y has quit [Ping timeout: 248 seconds]
hutch34 has joined #ruby
gix has quit [Ping timeout: 260 seconds]
jrabe has quit [Ping timeout: 248 seconds]
gix has joined #ruby
jrabe has joined #ruby
hutch34 has quit [Ping timeout: 264 seconds]
Cohedrin_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
QualityAddict has quit [Quit: Leaving]
alfiemax has quit [Remote host closed the connection]
idefine has quit [Remote host closed the connection]
mim1k has joined #ruby
troys_ is now known as troys
kies has joined #ruby
troys is now known as troys_
troys_ is now known as troys
<matthewd> zenspider: Ah, interesting
troys is now known as troys_
troys_ is now known as troys
mim1k has quit [Ping timeout: 248 seconds]
<matthewd> "Don't.. but here's how" was certainly a nod to "sometimes you do need to" -- but having the test just 'fix' the visibility sounds much more pleasant when you do need to get intimate
ap4y1 has quit [Quit: WeeChat 1.9.1]
Cohedrin_ has joined #ruby
alex`` has quit [Ping timeout: 240 seconds]
quobo has quit [Quit: Connection closed for inactivity]
idefine has joined #ruby
idefine has quit [Ping timeout: 240 seconds]
anjen has joined #ruby
Xiti has quit [Quit: Xiti]
rabajaj has joined #ruby
govg has joined #ruby
Dimik has quit [Ping timeout: 240 seconds]
idefine has joined #ruby
Xiti has joined #ruby
eckhardt has joined #ruby
Rodya_ has joined #ruby
ap4y has joined #ruby
dkam has quit [Quit: Be back later ...]
idefine has quit [Ping timeout: 248 seconds]
dkam has joined #ruby
idefine has joined #ruby
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
dkam has quit [Ping timeout: 240 seconds]
idefine has quit [Ping timeout: 260 seconds]
Devalo has joined #ruby
rhyselsmore has joined #ruby
triston has joined #ruby
hutch34 has joined #ruby
triston has quit [Max SendQ exceeded]
triston has joined #ruby
triston has quit [Max SendQ exceeded]
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
triston has joined #ruby
triston has left #ruby [#ruby]
triston has joined #ruby
idefine has joined #ruby
triston has quit [Max SendQ exceeded]
uZiel has quit [Remote host closed the connection]
uZiel has joined #ruby
bruno- has quit [Ping timeout: 248 seconds]
mim1k has joined #ruby
quiller has quit [Ping timeout: 248 seconds]
bruno- has joined #ruby
alfiemax has joined #ruby
mim1k has quit [Ping timeout: 248 seconds]
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
hutch34 has quit [Ping timeout: 258 seconds]
idefine has quit [Remote host closed the connection]
oleo has quit [Quit: Leaving]
idefine has joined #ruby
Devalo has quit [Ping timeout: 248 seconds]
alfiemax has quit [Ping timeout: 240 seconds]
jxv_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has joined #ruby
idefine has quit [Ping timeout: 240 seconds]
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eckhardt has joined #ruby
bmurt has joined #ruby
CrazyEddy has quit [Ping timeout: 240 seconds]
quiller has joined #ruby
troys has quit [Quit: Bye]
DTZUZO has joined #ruby
xuanrui has quit [Ping timeout: 248 seconds]
zautomata has joined #ruby
Rodya_ has quit [Quit: Leaving...]
zautomata has quit [Client Quit]
Silthias has joined #ruby
LocaMocha has joined #ruby
LocaMocha has quit [Max SendQ exceeded]
xuanrui has joined #ruby
shinnya has quit [Ping timeout: 252 seconds]
Silthias1 has quit [Ping timeout: 248 seconds]
cschneid_ has joined #ruby
pilne has quit [Quit: Quitting!]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dkam has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
cschneid_ has quit [Ping timeout: 258 seconds]
dkam has quit [Client Quit]
alfiemax has quit [Remote host closed the connection]
thomasv314 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oncall-pokemon has quit [Quit: Connection closed for inactivity]
eckhardt has joined #ruby
milardovich has joined #ruby
LocaMocha has joined #ruby
biberu has joined #ruby
xuanrui has quit [Ping timeout: 258 seconds]
ShekharReddy has joined #ruby
ozcanesen has joined #ruby
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
aupadhye has joined #ruby
dkam has joined #ruby
alfiemax has joined #ruby
anjen has quit [Quit: anjen]
uZiel has joined #ruby
dkam has quit [Ping timeout: 246 seconds]
cschneid_ has joined #ruby
ramfjord has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cschneid_ has quit [Ping timeout: 255 seconds]
ramfjord has quit [Ping timeout: 248 seconds]
xuanrui has joined #ruby
dkam has joined #ruby
ramfjord has joined #ruby
mtkd has joined #ruby
anisha has joined #ruby
dinfuehr has quit [Ping timeout: 248 seconds]
dkam has quit [Ping timeout: 252 seconds]
dinfuehr has joined #ruby
anisha has quit [Read error: Connection reset by peer]
anisha_ has joined #ruby
ramfjord has quit [Ping timeout: 252 seconds]
ozcanesen has quit [Quit: ozcanesen]
cschneid_ has joined #ruby
apeiros_ has quit [Remote host closed the connection]
milardovich has quit [Remote host closed the connection]
apeiros_ has joined #ruby
milardovich has joined #ruby
djbkd has joined #ruby
cschneid_ has quit [Ping timeout: 258 seconds]
apeiros_ has quit [Ping timeout: 248 seconds]
milardovich has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fclausen has quit [Ping timeout: 248 seconds]
jxv has joined #ruby
konsolebox has joined #ruby
conta has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_aeris_ has quit [Ping timeout: 248 seconds]
DTZUZO has quit [Ping timeout: 248 seconds]
Immune has quit [Ping timeout: 248 seconds]
Xiti has quit [Read error: Connection reset by peer]
Xiti has joined #ruby
jxv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_aeris_ has joined #ruby
CrazyEddy has joined #ruby
Technodrome has joined #ruby
CrazyEddy has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
CrazyEddy has joined #ruby
andikr has joined #ruby
cschneid_ has joined #ruby
alex`` has joined #ruby
cdg has quit [Ping timeout: 252 seconds]
bruno- has quit [Ping timeout: 240 seconds]
ap4y has quit [Quit: WeeChat 1.9.1]
hutch34 has joined #ruby
cschneid_ has quit [Ping timeout: 252 seconds]
hs366 has joined #ruby
madbytes has joined #ruby
apeiros_ has joined #ruby
hutch34 has quit [Ping timeout: 252 seconds]
<madbytes> I'm getting the error "Bundler could not find compatible versions for gem 'ruby'". The gemfile says it needs > 2.2.0 but when i do "ruby -v" i already have ruby 2.3.5p376.
<madbytes> where is the bundler command looking for the ruby gem :
<madbytes> :/
alfiemax has quit [Remote host closed the connection]
ioggstream has joined #ruby
Hexafox[I] has joined #ruby
hutch34 has joined #ruby
dkam has joined #ruby
hutch34 has quit [Ping timeout: 258 seconds]
alex`` has quit [Quit: WeeChat 1.9.1]
djbkd has quit []
hutch34 has joined #ruby
<matthewd> madbytes: Check you're using the latest bundler
<madbytes> matthewd: Bundler version 1.16.0.pre.3
<matthewd> Hmm.. I was hoping an upgrade might at least get us a better error
hutch34 has quit [Ping timeout: 246 seconds]
claudiuinberlin has joined #ruby
<matthewd> Does the Gemfile say it needs > 2.2, or does it say it needs 2.2?
xco has joined #ruby
<xco> hi, can someone please help me understand what {}.tap is doing here? what is it? https://gist.github.com/anonymous/b3ada24f42df08188bca49ca88d1c6d8
blackmesa1 has joined #ruby
<matthewd> xco: `{}` is a hash. `.tap` is a method call.
<xco> yes, i know that. why {}? where did that hash come from?
<xco> matthewd: i look here and there’s not #tap https://ruby-doc.org/core-2.2.0/Hash.html
<madbytes> matthewd: https://pastebin.com/raw/ngVtYQLs This is what i see.
<ruby[bot]> madbytes: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
<matthewd> xco: Hash inherits Object
cdg has joined #ruby
<matthewd> madbytes: `bundle env` to make sure you're running the ruby version you think you are
<matthewd> madbytes: That "ruby" gem looks unfamiliar, and maybe relevant?
blackmesa1 has quit [Ping timeout: 252 seconds]
<madbytes> matthewd: ahh, i'm not running the ruby version i need. how do i change it? i've a .ruby_version file on the folder with the correct updated version.
<madbytes> i also got rbenv installed, if thats an help.
djbkd has joined #ruby
<matthewd> Check `gem env`
<matthewd> If that's right and just bundler is wrong, `gem install bundler` should fix it
<madbytes> nah, even gem env shows older version
<madbytes> i've 2.4.2 installed on the system
<matthewd> What about `ruby -v`?
mjolnird has joined #ruby
cdg has quit [Ping timeout: 252 seconds]
<madbytes> matthewd: zsh: command not found: ruby :s
Devalo has joined #ruby
Devalo has quit [Remote host closed the connection]
<matthewd> Well thar's yer problem ;)
Devalo has joined #ruby
<matthewd> Either rbenv isn't active, or is trying to defer to system ruby, or.. something?
djbkd has quit [Client Quit]
<madbytes> okay now i get ruby 2.0.0 on "ruby -v".
<madbytes> but still not the version i want
Cohedrin_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<matthewd> `rbenv versions` ?
<madbytes> it shows "* 2.4.2 (set by /usr/local/share/metasploit-framework/.ruby-version)"
<madbytes> i installed 2.4.2 via "rbenv install" command.
<madbytes> rbenv didn't show me the 2.0.0 version, though.
MrBusiness has quit [Quit: https://www.youtube.com/watch?v=xIIqYqtR1lY -- Suicide is Painless - Johnny Mandel]
<matthewd> That's probably "system"
<matthewd> `which -a ruby` perhaps?
<matthewd> Is rbenv definitely active in your current shell?
<madbytes> yeah, /usr/bin/ruby
<madbytes> how do i confirm, it is??
<madbytes> rbenv commands are workign fine
<matthewd> Hmm.. `which rbenv`
hutch34 has joined #ruby
<madbytes> usr/local/bin/rbenv
<madbytes> "/usr/local/bin/rbenv"
Devalo has quit [Ping timeout: 248 seconds]
<matthewd> Sounds like you haven't reloaded your shell after adding the 'eval "$(rbenv init -)"' bit to .zshrc
<madbytes> oh YES, you were right. phew
aufi has joined #ruby
postmodern has quit [Quit: Leaving]
<madbytes> gem env shows the correct version now
<madbytes> but not, bundle env
<madbytes> it still shows older vesion
rhyselsmore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hutch34 has quit [Ping timeout: 240 seconds]
<matthewd> Okay, so `gem install bundler` should fix that
megamosaren has joined #ruby
<madbytes> uhm, not actually.... i still see `bundle env` showing older version after `gem install bundler`
<madbytes> i even upgraded it to latest version.
<matthewd> Huh. The one belonging to the system ruby must be appearing earlier in your $PATH for some reason.
<madbytes> oh, i did `. ~/.zshrc` again and then, it worked!
<madbytes> phew, thanks a ton matthewd. You are a savior!
milardovich has joined #ruby
Devalo has joined #ruby
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
xco has quit [Ping timeout: 246 seconds]
mikecmpbll has joined #ruby
xco has joined #ruby
mikecmpbll has quit [Client Quit]
alex`` has joined #ruby
Devalo has quit [Ping timeout: 255 seconds]
Dimik has joined #ruby
ramfjord has joined #ruby
hutch34 has joined #ruby
Dimik has quit [Ping timeout: 248 seconds]
morfin has joined #ruby
<morfin> hello
xco has quit [Ping timeout: 258 seconds]
mtkd has quit [Read error: Connection reset by peer]
^mtkd has joined #ruby
rgr_ has joined #ruby
hutch34 has quit [Ping timeout: 255 seconds]
<morfin> if i have test which has 'it_behaves_like "PoolCrawler Engine"' how can i run specific test from this behaves like?
raatiniemi has quit [Ping timeout: 240 seconds]
<morfin> this is rspec again..
Devalo has joined #ruby
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
fullstack has quit [Ping timeout: 240 seconds]
alnewkirk has joined #ruby
raatiniemi has joined #ruby
blackmesa1 has joined #ruby
tvw has joined #ruby
hutch34 has joined #ruby
alfiemax has joined #ruby
alfiemax has quit [Remote host closed the connection]
MrBismuth has quit [Read error: Connection reset by peer]
fullstack has joined #ruby
Devalo has quit [Ping timeout: 240 seconds]
Freshnuts has quit [Quit: Leaving]
alnewkirk has quit [Ping timeout: 240 seconds]
hutch34 has quit [Ping timeout: 264 seconds]
mikecmpbll has joined #ruby
alfiemax_ has joined #ruby
guille-moe has joined #ruby
dkam has quit [Ping timeout: 255 seconds]
MrBusiness has joined #ruby
dkam has joined #ruby
hutch34 has joined #ruby
CrazyEddy has quit [Ping timeout: 240 seconds]
yCrazyEdd has joined #ruby
hutch34 has quit [Ping timeout: 264 seconds]
hutch34 has joined #ruby
ldepandis has joined #ruby
<morfin> how do you specify if there is 2 arguments but only one mandatory(should be either timestamp or height)?
hutch34 has quit [Ping timeout: 255 seconds]
alfiemax_ has quit [Remote host closed the connection]
mim1k has joined #ruby
xuanrui has quit [Quit: Leaving]
hutch34 has joined #ruby
stan has joined #ruby
jxv has joined #ruby
jxv has quit [Client Quit]
quobo has joined #ruby
raynold has quit [Quit: Connection closed for inactivity]
mim1k has quit [Ping timeout: 246 seconds]
hutch34 has quit [Ping timeout: 258 seconds]
mim1k has joined #ruby
Beams has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has joined #ruby
claudiuinberlin has joined #ruby
Burgestrand has joined #ruby
huyderman has joined #ruby
hutch34 has joined #ruby
fullstack has quit [Ping timeout: 264 seconds]
ldepandis has quit [Ping timeout: 264 seconds]
fullstack has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
universa1 has quit [Ping timeout: 255 seconds]
universa1 has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
Guest28041 has joined #ruby
hutch34 has joined #ruby
tvw has quit [Remote host closed the connection]
blackmesa1 has quit [Ping timeout: 252 seconds]
Devalo has joined #ruby
Devalo has quit [Remote host closed the connection]
ur5us has joined #ruby
hutch34 has quit [Ping timeout: 252 seconds]
InfinityFye has joined #ruby
Devalo has joined #ruby
imode has quit [Ping timeout: 240 seconds]
<dminuoso> morfin: trivial way is using an opts hash, and asserting that its not empty.
nofxx has quit [Remote host closed the connection]
Devalo has quit [Ping timeout: 240 seconds]
voodoofish430 has quit [Ping timeout: 240 seconds]
voodoofish430 has joined #ruby
hutch34 has joined #ruby
cabotto has joined #ruby
uZiel has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hutch34 has quit [Ping timeout: 264 seconds]
Devalo has joined #ruby
Devalo has quit [Remote host closed the connection]
creat has quit [Ping timeout: 255 seconds]
Devalo has joined #ruby
Serpent7776 has joined #ruby
creat has joined #ruby
hutch34 has joined #ruby
Devalo has quit [Ping timeout: 248 seconds]
xco has joined #ruby
hutch34 has quit [Ping timeout: 255 seconds]
marr has joined #ruby
xco has quit [Ping timeout: 260 seconds]
Technodrome has joined #ruby
xco has joined #ruby
hutch34 has joined #ruby
<morfin> and if you have shared examples you specify expectations in every spec using it?
astrobunny has joined #ruby
hutch34 has quit [Ping timeout: 246 seconds]
xco has quit [Ping timeout: 260 seconds]
xco has joined #ruby
cschneid_ has joined #ruby
stan has quit [Read error: Connection reset by peer]
<morfin> how do i specify different expectations for every spec using shared examples?
idefine has joined #ruby
<morfin> just let every value and use that?
stan has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mark_66 has joined #ruby
bruno- has joined #ruby
hutch34 has joined #ruby
cschneid_ has quit [Ping timeout: 258 seconds]
idefine has quit [Ping timeout: 240 seconds]
alfiemax has quit [Remote host closed the connection]
xco has quit [Ping timeout: 248 seconds]
im0nde has joined #ruby
astrobunny has quit [Remote host closed the connection]
hutch34 has quit [Ping timeout: 246 seconds]
astrobunny has joined #ruby
__Yiota has joined #ruby
cdg has joined #ruby
<Hexafox[I]> Are data types in ruby just classes?
xco has joined #ruby
ramfjord has quit [Ping timeout: 248 seconds]
astrobunny has quit [Remote host closed the connection]
hutch34 has joined #ruby
cdg has quit [Ping timeout: 252 seconds]
xco has quit [Ping timeout: 246 seconds]
Devalo has joined #ruby
n13z has quit [Remote host closed the connection]
Devalo has quit [Remote host closed the connection]
hutch34 has quit [Ping timeout: 246 seconds]
Devalo has joined #ruby
Devalo has quit [Remote host closed the connection]
<Burgestrand> Hexafox[I] probably in the way you're thinking yes, to be pedantic the classes are also objects
<Burgestrand> >> 1.class
<ruby[bot]> Burgestrand: # => Fixnum (https://eval.in/885654)
<Burgestrand> >> true.class
<ruby[bot]> Burgestrand: # => TrueClass (https://eval.in/885655)
xco has joined #ruby
<Burgestrand> >> nil.class
<ruby[bot]> Burgestrand: # => NilClass (https://eval.in/885656)
<Burgestrand> (… and then…)
<Burgestrand> >> 1.class.class
* Burgestrand kicks @ruby[bot]
OnkelTem has joined #ruby
n13z has joined #ruby
voodoofish430 has quit [Ping timeout: 255 seconds]
adlerdias has joined #ruby
hutch34 has joined #ruby
<OnkelTem> Hi all. Guys I wonder what I do wrong on a clean debian jessie system that I can't install one gem
<OnkelTem> I installed ruby (2.1.6) and rubygem from the repository. Now when I install say 'compass', it just doesn't work
<OnkelTem> I do: `gem install compass`, then it builds extensions, then then it just doesn't run
voodoofish430 has joined #ruby
<dminuoso> "it doesn't run" is by far the most helpful error description.
<OnkelTem> dminuoso: yeah, sorry. https://apaste.info/R9fx
<Hexafox[I]> Burgestrand, So if I wanted to make a method that can only be run on one data type I should add it to the class?
charliesome has joined #ruby
hutch34 has quit [Ping timeout: 255 seconds]
<Burgestrand> Hexafox[I] "data type" is a bit ambiguous to me, but my answer to your question is another question: why don't you try it and see? :)
<dminuoso> Hexafox[I]: Yes.
<dminuoso> Hexafox[I]: *Yes to your original question.
<Burgestrand> Hexafox[I] https://eval.in/885662
<Hexafox[I]> Ah, thanks
<Hexafox[I]> I never knew you could use p instead of puts
<tobiasvl> well, they're not the same
<dminuoso> Hexafox[I]: `p a` is basically `puts a.inspect`
<dminuoso> technically its a bit more, since p can take multiple arguments, and it will do that for each.
<Hexafox[I]> Oh, interesting
Devalo has joined #ruby
<Hexafox[I]> I never liked puts on its own because it makes it hard to see arrays.
<dminuoso> def p(*args); args.each { |arg| puts arg.inspect }; end # something along those lines.
hutch34 has joined #ruby
zanoni has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Devalo has quit [Ping timeout: 240 seconds]
xco has quit [Ping timeout: 248 seconds]
hutch34 has quit [Ping timeout: 240 seconds]
Xeago has quit [Ping timeout: 246 seconds]
jphase has quit [Remote host closed the connection]
xco has joined #ruby
MrBusiness has quit [Quit: https://www.youtube.com/watch?v=xIIqYqtR1lY -- Suicide is Painless - Johnny Mandel]
hutch34 has joined #ruby
xco has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
cabotto has quit [Remote host closed the connection]
Xeago has joined #ruby
hutch34 has quit [Ping timeout: 264 seconds]
<ioggstream> anybody interested in https://bugs.ruby-lang.org/issues/14035
<ioggstream> ?
fclausen has joined #ruby
rabajaj has quit [Quit: Leaving]
faces has quit [Ping timeout: 258 seconds]
facest has joined #ruby
xco has joined #ruby
Devalo has joined #ruby
hutch34 has joined #ruby
fclausen has quit [Ping timeout: 248 seconds]
kies has quit [Ping timeout: 240 seconds]
facest has quit [Ping timeout: 252 seconds]
ldnunes has joined #ruby
ramfjord has quit [Ping timeout: 252 seconds]
<matthewd> ioggstream: You've offered no discussion of why that might be desirable
im0nde has quit [Ping timeout: 240 seconds]
Devalo has quit [Ping timeout: 258 seconds]
hutch34 has quit [Ping timeout: 246 seconds]
<ioggstream> matthewd: right. Other languages expect file uris to be in traditional format instead of minimal.
<matthewd> ioggstream: (apart from the claim of "canonical form", which, like the current commenter, seems unsupported by my reading of the RFCs)
<ioggstream> matthewd: iiuc reading https://tools.ietf.org/html/rfc8089#appendix-B the traditional format is file:///etc/hosts
<ioggstream> respect to a minimal one file:/etc/hosts
<matthewd> The very section of the spec that you quoted inline states: the "file" URI scheme is defined so that no authority [means] the end-user's machine
cschneid_ has joined #ruby
<ioggstream> I'm not saying that file:/etc/hosts is broken, rather that is not the prevalent serialization of file uri
<matthewd> So any implementation mis-parsing file:/etc/hosts is non-conformant
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
im0nde has joined #ruby
tcopeland has quit [Quit: tcopeland]
hutch34 has joined #ruby
ur5us has quit [Remote host closed the connection]
<matthewd> You're saying it should use the traditional form because "other languages expect" it
maattdd has joined #ruby
cschneid_ has quit [Ping timeout: 258 seconds]
<ioggstream> matthewd: not really, it's because it's the "most common format is use today"
<ioggstream> the ability to confront serialized and deserialized uri between different languages is a bonus to me
hutch34 has quit [Ping timeout: 246 seconds]
<matthewd> You've made a bug report, showing that you consider the current behaviour to be unexpected, and identifying a "fix". That sure sounds like a claim of brokenness to me.
<ioggstream> matthewd: can I change that request to be an enhancement ;) ?
xco has quit [Ping timeout: 246 seconds]
<ioggstream> marked feature
GodFather has joined #ruby
<ioggstream> matthewd: do you think "misc is better?"
<matthewd> I'd be more concerned with the body, tbh -- instead of claiming/implying the current behaviour is in some way wrong, yes contrast it with your suggested behaviour, but focus on why that would be desirable
<matthewd> "Its values might be string-equal with other-implementation-X" doesn't seem terribly compelling to me, but it's not my call
milardovich has quit [Remote host closed the connection]
hutch34 has joined #ruby
<ioggstream> matthewd: ok, I'm modifying the ticket. Thank you very much for your time! Further feedback is very welcome too :D
milardovich has joined #ruby
xco has joined #ruby
DTZUZO has joined #ruby
cabotto has joined #ruby
<ioggstream> matthewd: I'll change the ticket with the following requisite: URI(uri_s).to_s == uri_s that imho is reasonable
hutch34 has quit [Ping timeout: 255 seconds]
<ioggstream> is that fine for you?
milardovich has quit [Ping timeout: 255 seconds]
Devalo has joined #ruby
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
xco has quit [Ping timeout: 255 seconds]
cabotto has quit [Ping timeout: 255 seconds]
bigkevmcd has joined #ruby
Devalo has quit [Ping timeout: 248 seconds]
xco has joined #ruby
<matthewd> ioggstream: That's already widely untrue
<ioggstream> matthewd: why?
im0nde_ has joined #ruby
<matthewd> >> require 'uri'; URI('HTTP://example.com').to_s
<ruby[bot]> matthewd: # => "http://example.com" (https://eval.in/885704)
<matthewd> But more than case, e.g. default ports
im0nde has quit [Ping timeout: 240 seconds]
im0nde_ is now known as im0nde
tastytf has quit [Ping timeout: 258 seconds]
<matthewd> And you were previously implying that URI("file:/etc/hosts") should be canonicalized to "file:///etc/hosts"
<ioggstream> matthewd: imho file:/// should be the canonical form, but I'm trying to accomodate to your pov :D
<matthewd> Right. Currently, the minimal form is being used as the ruby-canonical form. AFAICS, you need to present an argument for changing that.
erlend has quit [Ping timeout: 240 seconds]
<ioggstream> yes. the real argument is that file:/// is the most common format in use according to
Devalo has joined #ruby
<ioggstream> and it may improve interoperaability tests (which usually rely on string comparison)
<matthewd> Counter-argument: they said "in use today", implying they anticipate some probability of that situation changing
alfiemax has joined #ruby
alex`` has quit [Quit: WeeChat 1.9.1]
<matthewd> ... and I just now realised that the commenter on your bug report *is* "they"
Devalo has quit [Ping timeout: 252 seconds]
<ioggstream> matthewd: "they" actually wrote that appendix-B ;)
<morfin> i did not know there is RFC for that path
<matthewd> Yeah. Which makes his statement that there's no recognised canonical representation pretty... canonical.
xco has quit [Ping timeout: 255 seconds]
alex`` has joined #ruby
Devalo has joined #ruby
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
<apeiros_> "I just now realised that the commenter on your bug report *is* "they [RFC author]" 😅
apeiros_ is now known as apeiros
<apeiros> friggin tail! begone!
alfiemax has quit [Remote host closed the connection]
Devalo has quit [Ping timeout: 248 seconds]
Heero__ has quit [Quit: Connection closed for inactivity]
xco has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xco has quit [Ping timeout: 260 seconds]
Devalo has joined #ruby
bigkevmcd has quit [Quit: Outta here...]
xco has joined #ruby
bruno- has quit [Ping timeout: 248 seconds]
tastytf has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Devalo has quit [Ping timeout: 248 seconds]
bruno- has joined #ruby
alfiemax has joined #ruby
xco has quit [Ping timeout: 240 seconds]
xco has joined #ruby
xco has quit [Ping timeout: 240 seconds]
tcopeland has joined #ruby
cabotto has joined #ruby
alfiemax has quit [Remote host closed the connection]
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xco has joined #ruby
Burgestrand has quit [Quit: Closing time!]
<dminuoso> apeiros the sorcerer.
xco has quit [Ping timeout: 240 seconds]
<dminuoso> I played that game.
nadir has quit [Quit: Connection closed for inactivity]
xco has joined #ruby
aloy has quit [Quit: WeeChat 1.9.1]
__Yiota has joined #ruby
HTTP_____GK1wmSU has joined #ruby
aloy has joined #ruby
xco has quit [Ping timeout: 246 seconds]
HTTP_____GK1wmSU has left #ruby [#ruby]
rgr_ has quit [Quit: rgr_]
xco has joined #ruby
milardovich has joined #ruby
aloy has quit [Quit: WeeChat 1.9.1]
xco has quit [Ping timeout: 240 seconds]
zautomata has joined #ruby
aloy has joined #ruby
tvw has joined #ruby
synthroid has joined #ruby
milardovich has quit [Ping timeout: 248 seconds]
jxweng has joined #ruby
blackmesa1 has joined #ruby
jxweng has quit [Client Quit]
xco has joined #ruby
xco has quit [Ping timeout: 240 seconds]
zautomata has quit [Ping timeout: 248 seconds]
Devalo has joined #ruby
xco has joined #ruby
jottr has joined #ruby
John___ has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fclausen has joined #ruby
ferr1 has joined #ruby
scorpiosec has joined #ruby
xco has quit [Ping timeout: 240 seconds]
Devalo has quit [Ping timeout: 255 seconds]
ldepandis has joined #ruby
cabotto has quit [Remote host closed the connection]
cabotto has joined #ruby
ramfjord has joined #ruby
schaary has joined #ruby
fclausen has quit [Ping timeout: 248 seconds]
Devalo has joined #ruby
__Yiota has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
<schaary> how can I compute the first day of the last month?
xco has joined #ruby
Devalo has quit [Ping timeout: 248 seconds]
Braindead has joined #ruby
Bacta has joined #ruby
<Bacta> Anyone know what the situation is with FactoryGirl? Are there any forks available? I don't want to start referring to it as FactoryBot.
Braindead has quit [Ping timeout: 252 seconds]
<latemus> i followed the example for readline history blank-line exclusion as shown in the docs here ==> ruby-doc.org/stdlib-1.9.3/libdoc/readline/rdoc/Readline.html but the code from the example breaks history altogether, here's my code ==> http://termbin.com/3xxt
<apeiros> schaary: last month of what? or last = previous?
<apeiros> also vanilla ruby or with rails?
<latemus> (i can't see why history is broken)
<schaary> apeiros: previous month
<schaary> ruby - not railr
<schaary> not rails
workmad3 has quit [Ping timeout: 246 seconds]
milardovich has joined #ruby
jphase has joined #ruby
<apeiros> schaary: previous_month = Date.today << 1; Date.civil(previous_month.year, previous_month.month, 1)
bmurt has joined #ruby
GodFather_ has joined #ruby
Braindead has joined #ruby
<apeiros> and if you want it purely mathematical: t = Date.today; y,m = (t.year*12+t.month-2).divmod(12); Date.civil(y,m+1,1)
bruno- has quit [Ping timeout: 255 seconds]
GodFather_ has quit [Remote host closed the connection]
Braindead is now known as Guest12059
<latemus> why does 'Date.today << 1;' work, ri Date.today says nothing about push
nadir has joined #ruby
<latemus> nor about arrays
<apeiros> << is not push
<apeiros> ri Date#<<
<apeiros> &ri Date#<<
<latemus> thanks
Guest12059 has left #ruby [#ruby]
<apeiros> Array#<< is *similar* to push (it's not the same either, though)
<apeiros> >> 16 << 1
<ruby[bot]> apeiros: # => 32 (https://eval.in/885839)
milardovich has quit [Ping timeout: 248 seconds]
<apeiros> as an example of yet another meaning for `<<`
xco has quit [Ping timeout: 252 seconds]
duckpuppy has joined #ruby
Devalo has joined #ruby
Devalo has quit [Remote host closed the connection]
<apeiros> Bacta: require 'factory_bot'; FactoryGirl = FactoryBot
<apeiros> also, let me play the tinies violin for you…
<apeiros> *tiniest
Devalo has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
ldepandis has quit [Read error: Connection reset by peer]
Devalo has quit [Ping timeout: 240 seconds]
apparition has joined #ruby
blackmesa1 has quit [Quit: WeeChat 1.9.1]
mson has joined #ruby
hutch34 has joined #ruby
* dminuoso pokes apeiros with a big stick
<dminuoso> can you tell me
<dminuoso> why I have no ri documentation at all?
<Bacta> This is programming. Not a Black Lives Matter rally
Psybur has joined #ruby
<apeiros> !kick bacta keep your mysognism/racism elsewhere
Bacta was kicked from #ruby by ruby[bot] [keep your mysognism/racism elsewhere]
alfiemax has joined #ruby
<apeiros> dminuoso: I have no idea?
<dminuoso> Why not?
<apeiros> you don't use rvm, right?
<dminuoso> Nope :(
<apeiros> there I'd bet on missing rvm docs generate
<dminuoso> Just plain chruby/ruby-install
<apeiros> might be a separate step with chruby too
<dminuoso> I have a theory.
<dminuoso> Perhaps I did install with --disable-install-rdoc...
<dminuoso> ;o
<apeiros> 😂
<apeiros> that *might* be the reason
Bacta has joined #ruby
<Bacta> Obviously no love here for Japanese Rubyists :(
fmcgeough has joined #ruby
<dminuoso> Just like there's no love for English speaking developers in the Ruby source code.
<dminuoso> Seems fair.
jphase has quit [Remote host closed the connection]
<apeiros> Bacta: you know exactly that that's unwarranted. if you want to argue, do it in #ruby-banned. if you try here again, you'll be permabanned.
Devalo has joined #ruby
Devalo has quit [Remote host closed the connection]
<Bacta> Great. Someone new to add to my ignore list.
jphase has joined #ruby
<Bacta> dminuoso: How so?
alfiemax has quit [Ping timeout: 255 seconds]
Devalo has joined #ruby
John___ has quit [Ping timeout: 258 seconds]
<apeiros> Bacta: I don't care. just don't complain if you miss a warning about your behavior and then "unexpectedly" get kicked/banned.
cdg has joined #ruby
Devalo has quit [Remote host closed the connection]
<Bacta> What behavivour? In Tokyo this is considered reasonable
Devalo has joined #ruby
fullstack has quit [Ping timeout: 255 seconds]
fullstack has joined #ruby
<apeiros> no. and I told you -> #ruby-banned if you want to discuss. last warning.
Devalo has quit [Ping timeout: 240 seconds]
cdg_ has joined #ruby
danieli has joined #ruby
danieli has quit [Changing host]
danieli has joined #ruby
jphase has quit [Ping timeout: 260 seconds]
brendan- has joined #ruby
Fire-Dragon-DoL has quit [Ping timeout: 258 seconds]
sepp2k has joined #ruby
claudiuinberlin has joined #ruby
cdg has quit [Ping timeout: 252 seconds]
Fire-Dragon-DoL has joined #ruby
scorpiosec has quit [Ping timeout: 246 seconds]
jphase has joined #ruby
<dminuoso> apeiros: Hah. Would appear to be the reason.
<dminuoso> Well, just used this as an excuse to upgrade from 2.4.1 to 2.4.2 :)
<morfin> so JRuby use bunch of external things for JSON, YAML etc
shinnya has joined #ruby
<Bacta> Is there still a case for JRuby?
<morfin> i use it only with HBase =)
<morfin> for now
TinkerTyper has quit [Read error: Connection reset by peer]
<morfin> Bacta, you would consider using Java 8 instead?
<Bacta> If performance is an issue it's an option - that and Scala
workmad3 has joined #ruby
<Bacta> But if it's Ruby I've only ever run MRIs
skydiver has joined #ruby
<morfin> i heard Java 8 is way faster than older ones =)
tastytf has quit [Ping timeout: 264 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<morfin> well, for most projects we use MRI but there is bunch of issues with GC
<morfin> and i do not want to install GCC 6 just to build older versions =(
<Bacta> Ruby 2x kinda blows things out of the water when it comes to GC but I'm guessing you guys aren't on 1x anymore?
jphase has quit [Remote host closed the connection]
Devalo has joined #ruby
^mtkd has quit [Ping timeout: 248 seconds]
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
mtkd has joined #ruby
Bacta has quit [Quit: Leaving]
lxsameer has joined #ruby
Guest28041 has quit [Ping timeout: 260 seconds]
milardovich has joined #ruby
__Yiota has joined #ruby
FrostCandy has joined #ruby
FrostCandy has quit [Client Quit]
Burgestrand has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
Devalo has quit [Ping timeout: 260 seconds]
<morfin> fun is that GC segfault interpreter if you build with GCC 7 =)
<morfin> i have to use 2.4.1
idefine has joined #ruby
megamosaren has quit [Ping timeout: 255 seconds]
DLSteve_ has joined #ruby
alfiemax_ has joined #ruby
alfiemax_ has quit [Remote host closed the connection]
quiller has quit [Ping timeout: 240 seconds]
sepp2k has quit [Remote host closed the connection]
idefine has quit [Ping timeout: 240 seconds]
aupadhye has quit [Ping timeout: 255 seconds]
madbytes has quit [Quit: Connection closed for inactivity]
quiller has joined #ruby
chouhoulis has joined #ruby
alan_w has joined #ruby
jgt has joined #ruby
hs366 has quit [Quit: Leaving]
alfiemax has joined #ruby
jameser has joined #ruby
lxsameer has quit [Quit: WeeChat 1.9.1]
chouhoulis has quit [Remote host closed the connection]
jrafanie has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zautomata has joined #ruby
alfiemax has quit [Ping timeout: 252 seconds]
rabajaj has joined #ruby
sepp2k has joined #ruby
Hexafox[I] has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
cabotto has quit [Remote host closed the connection]
fullstack has quit [Ping timeout: 246 seconds]
cabotto has joined #ruby
cabotto has quit [Remote host closed the connection]
milardovich has quit []
cabotto has joined #ruby
Devalo has joined #ruby
fullstack has joined #ruby
fclausen has joined #ruby
Rapture has joined #ruby
charliesome has joined #ruby
bonhoeffer has joined #ruby
Devalo has quit [Ping timeout: 240 seconds]
fclausen has quit [Ping timeout: 248 seconds]
Devalo has joined #ruby
Devalo has quit [Remote host closed the connection]
idefine has joined #ruby
Devalo has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
polishdub has joined #ruby
idefine has quit [Ping timeout: 240 seconds]
Devalo has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
jameser has joined #ruby
shinnya has quit [Ping timeout: 240 seconds]
im0nde_ has joined #ruby
jameser has quit [Client Quit]
claudiuinberlin has joined #ruby
im0nde has quit [Ping timeout: 246 seconds]
im0nde_ is now known as im0nde
mikecmpbll has quit [Quit: inabit. zz.]
mikecmpbll has joined #ruby
jxv has joined #ruby
ahrs has quit [Remote host closed the connection]
ahrs has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
Devalo has joined #ruby
jxv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alex`` has quit [Ping timeout: 252 seconds]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jxv has joined #ruby
Burgestrand has quit [Quit: Good bye and have a nice day!]
Devalo has quit [Remote host closed the connection]
nowhereman has quit [Ping timeout: 248 seconds]
workmad3 has joined #ruby
Devalo has joined #ruby
Immune has joined #ruby
milardovich has joined #ruby
iNs has quit [Ping timeout: 248 seconds]
Devalo has quit [Ping timeout: 255 seconds]
nadir has quit [Quit: Connection closed for inactivity]
John___ has joined #ruby
alfiemax has quit [Remote host closed the connection]
iNs has joined #ruby
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
im0nde has quit [Quit: im0nde]
jrafanie has joined #ruby
apeiros has quit [Remote host closed the connection]
bonhoeffer has quit [Ping timeout: 240 seconds]
knight33 has joined #ruby
chouhoulis has joined #ruby
Technodrome has joined #ruby
milardovich has quit [Remote host closed the connection]
DTZUZO has quit [Ping timeout: 248 seconds]
Devalo has joined #ruby
cschneid_ has joined #ruby
enterprisey has quit [Ping timeout: 260 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
synthroid has quit [Remote host closed the connection]
conta has quit [Ping timeout: 246 seconds]
rabajaj has quit [Quit: Leaving]
rabajaj has joined #ruby
mikecmpbll has joined #ruby
ramfjord has joined #ruby
megamosaren has joined #ruby
kculpis has quit [Ping timeout: 258 seconds]
rabajaj has quit [Quit: Leaving]
milardov_ has joined #ruby
aufi has quit [Quit: Leaving]
ramfjord has quit [Ping timeout: 248 seconds]
Siyfion has joined #ruby
apparition has quit [Quit: Bye]
synthroid has joined #ruby
cgfbee has quit [Ping timeout: 248 seconds]
apeiros has joined #ruby
shinnya has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
alfiemax has joined #ruby
synthroid has quit [Ping timeout: 248 seconds]
jamesaxl has joined #ruby
cgfbee has joined #ruby
oleo has joined #ruby
InfinityFye has quit [Quit: Leaving]
synthroid has joined #ruby
jgt has quit [Quit: WeeChat 1.4]
megamosaren has quit [Ping timeout: 240 seconds]
dinfuehr has quit [Ping timeout: 248 seconds]
enterprisey has joined #ruby
dinfuehr has joined #ruby
zautomata has quit [Ping timeout: 255 seconds]
aphprentice has joined #ruby
megamosaren has joined #ruby
FastJack has joined #ruby
alfiemax has quit [Remote host closed the connection]
alex`` has joined #ruby
sidoniuns has joined #ruby
DTZUZO has joined #ruby
pmunt_ has joined #ruby
Serpent7776 has quit [Quit: Leaving]
gustavo_ has joined #ruby
enterprisey has quit [Ping timeout: 258 seconds]
pmunt has quit [Ping timeout: 248 seconds]
milardov_ has quit [Remote host closed the connection]
jgt has joined #ruby
madbytes has joined #ruby
edward__ has quit [Ping timeout: 264 seconds]
dn` has quit [Read error: Connection reset by peer]
rippa has joined #ruby
megamosaren has quit [Ping timeout: 260 seconds]
dn` has joined #ruby
gil_ has quit [Ping timeout: 255 seconds]
Ltem has joined #ruby
webnanners has quit [Ping timeout: 255 seconds]
nunchuck has quit [Ping timeout: 255 seconds]
mikecmpbll has quit [Read error: Connection reset by peer]
herbmillerjr has joined #ruby
dviola has joined #ruby
thomasv314 has joined #ruby
megamosaren has joined #ruby
mikecmpbll has joined #ruby
hahuang65 has quit [Ping timeout: 258 seconds]
edward__ has joined #ruby
enterprisey has joined #ruby
webnanners has joined #ruby
gil_ has joined #ruby
raynold has joined #ruby
claudiuinberlin has joined #ruby
[Butch] has joined #ruby
brw has quit [Quit: Off to listen to some tunes...]
kies has joined #ruby
orbyt_ has joined #ruby
orbyt_ has quit [Client Quit]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Devalo has quit [Remote host closed the connection]
megamosaren has quit [Ping timeout: 240 seconds]
Devalo has joined #ruby
ozcanesen has joined #ruby
Siyfion has quit [Quit: Textual IRC Client: www.textualapp.com]
fclausen has joined #ruby
enterprisey has quit [Remote host closed the connection]
<morfin> how do you think would it be better to write parser with Ruby instead of let's say PHP? Nokogiri + Faradey + HTTPClient(as backend for Faradey) + maybe something else
claudiuinberlin has joined #ruby
uZiel has joined #ruby
shinnya has quit [Ping timeout: 255 seconds]
uZiel has quit [Remote host closed the connection]
fclausen has quit [Ping timeout: 248 seconds]
prutheus has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<prutheus> Hey. I have following code, which uses an eval function but this is not good. How to change this code to not use eval?
<prutheus> eval "results = indicator_hnd.run #{args[0].to_s unless args.empty?}" \ "#{', ' + args[1].to_s if args.length > 1}" \ "#{', ' + args[2].to_s if args.length > 2}" \ "#{', ' + args[3].to_s if args.length > 3}" \ "#{', ' + args[4].to_s if args.length > 4}" \ "#{', ' + args[5].to_s if args.length > 5}"
xuanrui has joined #ruby
FastJack has quit [Ping timeout: 258 seconds]
gusrub has joined #ruby
megamosaren has joined #ruby
cabotto has quit []
kies has quit [Ping timeout: 240 seconds]
lxsameer has joined #ruby
lxsameer is now known as Guest22696
<matthewd> prutheus: It sounds like the contents of 'args' is expecting to be evaled
<prutheus> it must be sssssssolved like that, right?
<matthewd> I don't know where args is coming from, or how it's being constructed
GodFather has quit [Ping timeout: 260 seconds]
Devalo has quit [Remote host closed the connection]
<Harzilein> prutheus: i think mean something like indicator_hnd.run *(args.take_while { |e| !e.empty? }.map{ |e| e.to_s })
<Harzilein> +you
ferr1 has quit [Quit: WeeChat 1.9.1]
<Harzilein> oh, wait
<Harzilein> hmm
<matthewd> It's more like `indicator_hnd.run(*args.map {|v| eval(v.to_s) })` -- which doesn't particularly improve the situation
mikecmpbll has quit [Ping timeout: 246 seconds]
<Harzilein> yeah, i get that now
<Harzilein> it's slightly more sane to read
Beams has quit [Quit: .]
<Harzilein> i had a similar special thing in a templating context, i just made a parser for the expected ruby subset
<matthewd> The real question is whether args needs the eval at all, or whether this is purely a super-convoluted way to hand-implement a splat
<Harzilein> if those args are just strings with variable names in them, there's an easier way of course
<Harzilein> prutheus: can you explain your actual intent a bit more?
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sidoniuns has quit [Quit: Leaving]
mim1k has quit [Ping timeout: 258 seconds]
mfb2 has joined #ruby
vstemen has left #ruby ["Leaving"]
mson has quit [Quit: Connection closed for inactivity]
z64 has joined #ruby
orbyt_ has joined #ruby
mfb2 has quit [Client Quit]
mark_66 has quit [Remote host closed the connection]
<tyil> Im trying to run jekyll in a docker container, but I get the error "jekyll 3.5.2 | Error: Permission denied @ rb_sysopen - /dev/core"; would anyone have some info on why it does this and how to solve it?
uZiel has joined #ruby
guille-moe has quit [Ping timeout: 252 seconds]
ramfjord has joined #ruby
dviola has quit [Quit: WeeChat 1.9.1]
Nicmavr has joined #ruby
Nicmavr is now known as Guest5410
fantazo has joined #ruby
thomasv314 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jxv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SeepingN has joined #ruby
<matthewd> tyil: That really sounds like an OS-level issue
thomasv314 has joined #ruby
marxarelli|afk is now known as marxarelli
<tyil> yes it does
<matthewd> tyil: Maybe try strace?
<tyil> I guess I could strace from within the docker container
<matthewd> Yeah. I think it's going to be a "docker doesn't have access to $X" issue, where $X is some low level thing... but I consequently have no idea on the details.
zautomata has joined #ruby
skydiver has quit [Quit: WeeChat 1.9.1]
alnewkirk has joined #ruby
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ikopico> Hello, can anyone please share a snippet for running executable scripts on a host over SSH using net/ssh's channels?
selim has quit [Ping timeout: 260 seconds]
jxv has joined #ruby
<matthewd> ikopico: What do you have so far?
workmad3 has quit [Quit: Lost terminal]
selim has joined #ruby
andikr has quit [Remote host closed the connection]
Guest5410 has quit [Changing host]
Guest5410 has joined #ruby
Guest5410 is now known as Kestrel-029
milardovich has joined #ruby
jgt has quit [Ping timeout: 246 seconds]
BTRE has quit [Quit: Leaving]
rajno has quit [Ping timeout: 252 seconds]
Cohedrin_ has joined #ruby
Cohedrin_ has quit [Read error: Connection reset by peer]
milardovich has quit [Remote host closed the connection]
Cohedrin_ has joined #ruby
milardovich has joined #ruby
ShekharReddy has quit [Quit: Connection closed for inactivity]
ronenshvayg has joined #ruby
kapil___ has joined #ruby
<ronenshvayg> :wave:
<havenwood> o/
alnewkirk has quit [Ping timeout: 260 seconds]
<ronenshvayg> Can anyone please share a snippet for running a script (any executable) using Net::SSH's channels and getting the output?
imode has joined #ruby
alnewkirk has joined #ruby
<SeepingN> sure hold on
milardovich has quit [Ping timeout: 264 seconds]
<SeepingN> msg ronenshvayg
<SeepingN> oops
BTRE has joined #ruby
edward__ has quit [Ping timeout: 246 seconds]
SeepingN has quit [Excess Flood]
kies has joined #ruby
SeepingN has joined #ruby
hahuang65 has joined #ruby
hahuang65 has quit [Client Quit]
megamosaren has quit [Ping timeout: 255 seconds]
enterprisey has joined #ruby
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
ronenshvayg has quit [Quit: Page closed]
hxegon has joined #ruby
hxegon has quit [Client Quit]
hxegon has joined #ruby
fullstack has quit [Ping timeout: 240 seconds]
fullstack has joined #ruby
Cohedrin_ has quit [Read error: Connection reset by peer]
Cohedrin_ has joined #ruby
alex`` has quit [Ping timeout: 252 seconds]
claw has quit [Quit: No Ping reply in 180 seconds.]
nogic has joined #ruby
jrafanie has joined #ruby
claw has joined #ruby
GodFather has joined #ruby
alnewkirk has quit [Ping timeout: 240 seconds]
ayonkhan has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
troys has joined #ruby
rajno has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
elisaado has left #ruby ["WeeChat 1.9.1"]
GodFather has quit [Quit: Ex-Chat]
jinie has joined #ruby
kies has quit [Ping timeout: 255 seconds]
nunchuck has joined #ruby
nogic has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
dmtd has joined #ruby
nixbug has joined #ruby
orbyt_ has joined #ruby
jxv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Devalo has joined #ruby
Technodrome has joined #ruby
orbyt_ has quit [Client Quit]
hahuang65 has joined #ruby
nixbug has quit [Client Quit]
kies has joined #ruby
milardovich has joined #ruby
nowhereman has joined #ruby
megamosaren has joined #ruby
jxv has joined #ruby
Rapture has joined #ruby
conta1 has joined #ruby
conta2 has joined #ruby
fantazo has quit [Quit: Verlassend]
conta1 has quit [Ping timeout: 240 seconds]
Guest22696 has quit [Quit: WeeChat 1.9.1]
Azure has quit [Ping timeout: 240 seconds]
lxsameer has joined #ruby
lxsameer is now known as Guest70354
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
herbmillerjr has quit [Ping timeout: 248 seconds]
biberu has quit []
fclausen has joined #ruby
ldepandis has joined #ruby
claudiuinberlin has joined #ruby
banisterfiend has joined #ruby
jxv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
biberu has joined #ruby
jphase has joined #ruby
fclausen has quit [Ping timeout: 248 seconds]
banisterfiend has left #ruby ["Textual IRC Client: www.textualapp.com"]
jxv has joined #ruby
jgt has joined #ruby
jxv has quit [Client Quit]
ramfjord has quit [Remote host closed the connection]
RedNifre has joined #ruby
<RedNifre> Good evening!
jxv has joined #ruby
Dimik has joined #ruby
alex`` has joined #ruby
c_nick has joined #ruby
<RedNifre> Say that you get two deliveries per month, say on the 12th and 26th (is it th?). How to best calculate a countdown in days for that? I can only think of clumsy solutions involving if statements at the month break.
<c_nick> how can i call ruby on button click in sinatra ?
eckhardt has joined #ruby
LocaMocha has quit [Ping timeout: 248 seconds]
jenrzzz has joined #ruby
cdg has joined #ruby
fullstack has quit [Ping timeout: 246 seconds]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<baweaver> RedNifre: clarify what you mean by countdown
ioggstream has quit [Ping timeout: 258 seconds]
fullstack has joined #ruby
<SeepingN> (26-12)*24*60*60 seconds ?
cdg_ has quit [Ping timeout: 246 seconds]
enterprisey has quit [Ping timeout: 264 seconds]
cdg has quit [Ping timeout: 246 seconds]
troys is now known as troys_
ForeignBiscuit is now known as ResidentBiscuit
alex`` has quit [Quit: WeeChat 1.9.1]
claudiuinberlin has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<RedNifre> a countdown in days that changes at midnight, which I can display on my raspberry pi's lcd.
<baweaver> > one_day = 24*60*60; now = Time.now; ten_d_ago = now - (10*one_day); {now: now, 10_ago: ten_d_ago, days_until: (now - ten_d_ago) / one_day} # RedNifre
<RedNifre> well, it's less a ruby problem and more a "how to write elegant code" problem
<RedNifre> baweaver the relevant days are the 12. and the 26.
<RedNifre> ...of each month
<baweaver> ...
<baweaver> >> one_day = 24*60*60; now = Time.now; ten_d_ago = now - (10*one_day); {now: now, 10_ago: ten_d_ago, days_until: (now - ten_d_ago) / one_day} # RedNifre
<ruby[bot]> baweaver: # => /tmp/execpad-ecb2b67264c2/source-ecb2b67264c2:2: trailing `_' in number ...check link for more (https://eval.in/886164)
<baweaver> Anyways, basically that
<baweaver> probably mad about 10_ago
alex`` has joined #ruby
c_nick has quit [Ping timeout: 264 seconds]
<RedNifre> well, i don't see how it's related to my problem.
conta2 has quit [Quit: conta2]
<RedNifre> ...but i guess I'll go with the if statement at the month edge or maybe just substract the count of days this month if the current day is after the second date.
c_nick has joined #ruby
<apeiros> Date is day based
<apeiros> Date.civil(year, month, day) - Date.today # => days remaining
<RedNifre> That technique would require three Date.civil, no?
<apeiros> one per date you want a countdown for
<RedNifre> You would need the two of the current month and the first of the next month, then substract Date.today and pick the first that isn't negative.
adlerdias has quit [Quit: adlerdias]
<RedNifre> Meh, I'll just irb it out until I'm happy with the code...
ek926m has joined #ruby
<apeiros> o0
<apeiros> oh, I think I understand now
Neptu has quit [Ping timeout: 240 seconds]
<RedNifre> apeiros it's not a difficult problem to solve, It's only difficult to solve it in an elegant way.
<apeiros> you can use << 1 to move a Date by 1 month
<apeiros> as long as it's not >28th day of the month, that should be unproblematic
Technodrome has joined #ruby
<RedNifre> How to get the number of days in the current month?
VeryBewitching has joined #ruby
<apeiros> have a lookup table (date might have one)
milardovich has quit [Remote host closed the connection]
<apeiros> switch 28 to 29 if it's february and a leap year (Date#leap?)
<RedNifre> how do I list the methods of something again in irb?
<apeiros> .methods
<apeiros> but use pry and the `ls` command
herbmillerjr has joined #ruby
<RedNifre> huh?
c_nick has quit [Quit: ciaos]
ek926m has quit [Quit: Leaving]
ek926m has joined #ruby
enterprisey has joined #ruby
<apeiros> pry is a replacement for irb
ek926m has quit [Remote host closed the connection]
<RedNifre> ah, I'll look it up then.
<RedNifre> Is there an FP style way to find the first non negative number in a list? like list.find(>= 0) or something short like that, or do I have to go with a block with a parameter like { |x| x >= 0 } ?
<havenwood> RedNifre: &:negative?
orbyt_ has joined #ruby
* RedNifre is pondering.
nadir has joined #ruby
<havenwood> RedNifre: If you don't mind the inversion of: reject(&:negative?)
<RedNifre> okay, so how do I get not negative? 0 is neither
<RedNifre> ah!
<RedNifre> nah, reject returns a list
<havenwood> oh, you wanted first
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<RedNifre> hm, I guess find(complement(&:negative?)) or something like that is no longer worth the hassle.
<havenwood> RedNifre: find with a block
<havenwood> RedNifre: sorry, i should have read what you were asking more carefully - you said it clearly
<RedNifre> yeah, I'll go with the block, doing it point-free style isn't worth it it seems.
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tvw has quit [Remote host closed the connection]
knight33 has joined #ruby
jrafanie has joined #ruby
duckpuppy has quit [Ping timeout: 240 seconds]
anisha_ has quit [Quit: This computer has gone to sleep]
xuanrui has quit [Read error: Connection reset by peer]
haylon has quit [Changing host]
haylon has joined #ruby
Guest70354 has quit [Quit: WeeChat 1.9.1]
lxsameer has joined #ruby
thomasv314 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alnewkirk has joined #ruby
thomasv314 has joined #ruby
kitikonti has joined #ruby
<apeiros> >> [-2,-3,5,-4,15].find(&:positive?)
<ruby[bot]> apeiros: # => 5 (https://eval.in/886174)
<apeiros> @ RedNifre ^
enterprisey has quit [Ping timeout: 248 seconds]
Technodrome has joined #ruby
<havenwood> >> [-1, 0, 1].find(&:positive?)
<ruby[bot]> havenwood: # => 1 (https://eval.in/886175)
kitikonti has quit [Ping timeout: 240 seconds]
<havenwood> I think RedNifre wanted `0` to be found.
<apeiros> hm
kitikonti has joined #ruby
<apeiros> too bad natural? isn't a thing
mathys has joined #ruby
<havenwood> that'd be nice
charliesome has joined #ruby
<havenwood> >> class Numeric; def natural?; zero? || positive? end end; 0.natural?
charliesome has quit [Client Quit]
<ruby[bot]> havenwood: # => true (https://eval.in/886176)
<apeiros> I'd change order of methods
<apeiros> positive? is infinitely more likely than zero :)
<havenwood> good point, the most-common case is non-zero
<havenwood> unless you have infinite zeros
<havenwood> [0].cycle
techn1cs_ has quit [Remote host closed the connection]
jxv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jxv has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
uZiel has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
enterprisey has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
|ifei5g00d has quit [Ping timeout: 255 seconds]
jxv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jxv has joined #ruby
|ifei5g00d has joined #ruby
claudiuinberlin has joined #ruby
dionysus69 has quit [Ping timeout: 248 seconds]
Devalo has quit [Remote host closed the connection]
|ifei5g00d has quit [Ping timeout: 248 seconds]
konsolebox has quit [Ping timeout: 248 seconds]
jxv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
|ifei5g00d has joined #ruby
<VeryBewitching> Is there anything I should be aware of when having a carriage return in my symbol list? ie. %i(one two three)?
<VeryBewitching> Does Ruby treat the carriage return like a space?
<basket> VeryBewitching: Did you try it at a REPL?
<VeryBewitching> It seems to work, just wondering if there's a gotcha somewhere
<Papierkorb> VeryBewitching: line feeds are whitespace
<basket> No, it just treats it like a space
chmurifree has quit [Ping timeout: 240 seconds]
<VeryBewitching> Papierkorb: I did not, and thanks basket :D
troys_ is now known as troys
konsolebox has joined #ruby
Macaveli has joined #ruby
<eam> >> %i( weird that this is ok ( ) ).inspect
<ruby[bot]> eam: # => "[:weird, :that, :this, :is, :ok, :\"(\", :\")\"]" (https://eval.in/886179)
<eam> >> %i(but this isn't ( ( ).inspect
<ruby[bot]> eam: # => /tmp/execpad-990605aa3966/source-990605aa3966:2: unterminated string meets end of file ...check link for more (https://eval.in/886180)
Cohedrin_ has quit [Read error: Connection reset by peer]
<Papierkorb> eam: it counts braces in the body. Use different kinds of braces instead: `%i[ ( ]`
<Papierkorb> >> %i[ \ ]
<ruby[bot]> Papierkorb: # => [:" "] (https://eval.in/886181)
<Papierkorb> And you can also do that :P
<eam> yeah not needing it solved more pointing out how odd it is
rhyselsmore has joined #ruby
<eam> as in the first case, the ( ) become symbols
<adaedra> Yeah, all % literals, when used with open/close symbols count the number of delimitors inside too
imode has quit [Ping timeout: 240 seconds]
Cohedrin_ has joined #ruby
snickers has joined #ruby
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
<adaedra> >> %(So you can have string litterals with (parenthesis) inside and () as delimitors without escaping.)
<ruby[bot]> adaedra: # => "So you can have string litterals with (parenthesis) inside and () as delimitors without escaping." (https://eval.in/886182)
<adaedra> Way better than good ol' `"`!
wnd has quit [Excess Flood]
<eam> the rules around delimiters also differ between quote types, which is odd
<eam> >> % like_this ;
<ruby[bot]> eam: # => "like_this" (https://eval.in/886183)
wnd has joined #ruby
<adaedra> they do?
<eam> >> %i but_not_this ;
<ruby[bot]> eam: # => /tmp/execpad-a8e0f6fe803c/source-a8e0f6fe803c:2: unterminated string meets end of file ...check link for more (https://eval.in/886184)
ayonkhan has quit [Quit: Textual IRC Client: www.textualapp.com]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<adaedra> it's any non-alphanumeric char
<eam> nope, it's any character
<adaedra> nope
<eam> see the first example
<eam> almost any character, I should say
<eam> >> %?like this?
<ruby[bot]> eam: # => "like this" (https://eval.in/886185)
<adaedra> space is not alphanumeric, so it's working as delimitor
<eam> that's what I mean
mathys has quit [Ping timeout: 255 seconds]
<eam> it's a delimitor for % but not %i
<adaedra> alphanums after % indicate the "kind" of % litteral
<Papierkorb> >> %​unicode sucks​
<ruby[bot]> Papierkorb: # => /tmp/execpad-e649038a04ba/source-e649038a04ba:2: invalid multibyte char (UTF-8) ...check link for more (https://eval.in/886186)
<adaedra> %w => Array, %i => String array, %q => String, etc.
<eam> >> %unicode is lame? No u
<Papierkorb> symbol ary*
<ruby[bot]> eam: # => /tmp/execpad-434728cedaa9/source-434728cedaa9:2: unknown type of %string ...check link for more (https://eval.in/886187)
Puffball has quit [Remote host closed the connection]
snickers has quit [Client Quit]
<Papierkorb> eam: zero width char: ​​
mathys has joined #ruby
<eam> oh haha
<adaedra> The rule is actually quite simple
<adaedra> >> % % % % % #
<ruby[bot]> adaedra: # => "%" (https://eval.in/886188)
<jolamb> Are there any tools to make refactoring ERuby templates easier? Preferably that integrate nicely with emacs?
Devalo has joined #ruby
shwouchk has quit [Quit: Connection closed for inactivity]
<eam> >> % %%%%%%% %%%% % %%%%% %%%% % %%%%%%% %%%% % %%%%% %%%% % %%%%%%% %%%% % %%%%% %%%% % %%%%%%% %%%% % %%%%% %%%% % %%%%%%% %%%% % %%%%% %%%% % %%%%%%% %%%% % %%%%% %%%% % %%%%%%% %%%% % %%%%% %%%% % %%%%%%% %%%% % %%%%% %%%% % %%%%%%% %%%% % %%%%% %%%% % %%%%%%% %%%% % %%%%% %%%% % %%%%%%% %%%% % %%%%% %%%% % %%%%%%% %%%% % %%%%% %%%% % %%%%%%% %%%% % %%%%% %%%% % %%%%%%% %%%% % %%%%% %%%% % %%%%%%% %%%% %
<ruby[bot]> eam: # => /tmp/execpad-46f68f84af18/source-46f68f84af18:3: syntax error, unexpected keyword_rescue ...check link for more (https://eval.in/886189)
<eam> %%%%% %%%% % %%%%%%% %%%% % %%%%% %%%% % %%%%%%% %%%% % %%%%% %%%% % %%%%%%% %%%% % %%%%% %%%% % %%%%%%% %%%% % %%%%% %%%% % %%%%%%% %%%% % %%%%% %%%% # %%%
<eam> whoops too long
<adaedra> tools that would refactor HTML, maybe?
<eam> >> % %%%%%% %%%% % %%%%% %%%% # % is versatile
<ruby[bot]> eam: # => "%" (https://eval.in/886192)
chmurifree has joined #ruby
<jolamb> I'd like to extract complex logic into a helper lib, e.g. https://github.com/openshift/sprint_tools/blob/master/templates/releases_overview.erb#L67-L138
<adaedra> eam: not too much with the bot, please
<eam> ya
<jolamb> adaedra: it's not the HTML that's the problem :D
Puffball has joined #ruby
<adaedra> ah, in that case no idea :D
<adaedra> I abandonned erb some time ago now
ta has quit [Remote host closed the connection]
<jolamb> adaedra: what's a good alternative?
<adaedra> haml / slim
<Papierkorb> HAML
<adaedra> (but that's a preference)
<jolamb> adaedra: note that I inherited this code, I wouldn't have made anything like this willingly :P
jrafanie has joined #ruby
<adaedra> we won't judge :D
mathys has quit [Quit: Leaving]
cdg has joined #ruby
<Papierkorb> jolamb: There's a Erb-to-haml tool too. But i've never tried it
<Papierkorb> So no idea if it's any good
<jolamb> Papierkorb: adaedra: it's not really the er
<jolamb> er
<jolamb> erb that's a problem though
<jolamb> it's the huge blocks of logic that should be refactored out
<adaedra> ah
<jolamb> sorry about the stutter, "b" is right next to "enter" on this typematrix kb and my muscle memory has never quite adjusted
<adaedra> it
<adaedra> s ok
<jolamb> lol
thomasv314 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jolamb> I guess I just need to do this the old-fashioned way, by moving logic out chunk-by-chunk to see what breaks :/
<adaedra> Good thing you have good test coverage
jxv has joined #ruby
<jolamb> adaedra: That's just mean
<jolamb> you've obviously spotted the missing tests :(
<Papierkorb> We're not gonna judge. but jeez
<adaedra> I'm double sorry if you don't have tests
<adaedra> First because what I said
cdg_ has joined #ruby
<adaedra> Second because.... well, you don't have tests
|ifei5g00d has quit [Ping timeout: 255 seconds]
<adaedra> (Maybe it's time to add some?)
<adaedra> Is that the thing you have to refactor, jolamb?
jphase has quit [Remote host closed the connection]
<jolamb> adaedra: yeah
<adaedra> ooof
<jolamb> it is Reliable Code that has Gotten Us This Far
<jolamb> but....
milardovich has joined #ruby
hutch34 has quit [Ping timeout: 258 seconds]
<jolamb> it's very modification-hostile
fclausen has joined #ruby
|ifei5g00d has joined #ruby
<adaedra> It reminds me of PHP
<Papierkorb> jolamb: Mh I think I'd start splitting that thing into partials. Just to have smaller chunks you can then (hopefully) easier refactor
cdg has quit [Ping timeout: 252 seconds]
<Papierkorb> And then part by part pull things out, and do a few improvement passes until it's bearable overall
<adaedra> There's way too much logic in this file
<jolamb> adaedra: that's the dadgum truth
ta has joined #ruby
<Papierkorb> Hence why I'd split that thing into partials first :P
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Papierkorb> Doesn't improve the overall quality (or not by itself), but makes it more "consumable". Crazy code that fits on your screen is better than crazy code that doesn't
<adaedra> But once you've refactored this big bad boy, your satisfaction levels will likely reach their maximum
rhyselsmore has quit [Ping timeout: 240 seconds]
<adaedra> If you're looking at refactoring tools, I think RubyMine is the one that should give you the best, but even with that I wouldn't raise too many hopes
<adaedra> It may help you with the split to partials phase
<jolamb> adaedra: roger that
<adaedra> stop calling me roger
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<adaedra> Anyway, I wish you courage
<jolamb> thanks
tvw has joined #ruby
ta has quit [Ping timeout: 255 seconds]
FastJack has joined #ruby
<jolamb> adaedra: Papierkorb: any recommendations on unit-testing libraries for non-rails code?
<adaedra> Papierkorb: I've seen code that fits in my screen many times that would terrify me
<adaedra> rspec
<Papierkorb> jolamb: I really liked rspec3 the most
<havenwood> jolamb: minitest
thomasv314 has joined #ruby
<Papierkorb> adaedra: Yeah I didn't say it made it good, but just more bearable to some extent, to let you focus a bit more. No doubt that you can create amazing shit code where that still doesn't help :P
orbyt_ has joined #ruby
<eam> I wish the ruby builtin Process class allowed for more rich interactions
<eam> like enumerating, parent/child relationships
<jolamb> havenwood: why minitest over rspec3?
ldnunes has quit [Quit: Leaving]
<havenwood> jolamb: It's already in the stdlib. It's simpler. It *just works*. It lets you combine test and spec styles as you wish. It's faster.
<jolamb> havenwood: that all sounds pretty good
<jolamb> downsides?
<Papierkorb> less expressive
<Papierkorb> Also the subject/let stuff with context/describe blocks is really great once you get the hang of it
Devalo has quit [Remote host closed the connection]
<havenwood> An aside, but this Rspec 2-to-3 converter is fantastic: https://github.com/yujinakayama/transpec
RedNifre has quit [Ping timeout: 255 seconds]
jxv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> eam: that's be really nice
<havenwood> that'd**
ta has joined #ruby
thomasv3_ has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<eam> I think it doesn't because it was written originally to wrap the posix libc interfaces and libc doesn't actually provide those things. But, you know, ruby could do better
<Papierkorb> Process is a mess
<eam> posix apis for interacting with processes are a mess
alex`` has quit [Quit: WeeChat 1.9.1]
thomasv314 has quit [Ping timeout: 258 seconds]
<eam> here's a fun question that really upsets people: why is /bin/ps on your OSX laptop setuid root?
milardovich has quit [Read error: Connection reset by peer]
milardovich has joined #ruby
hutch34 has joined #ruby
<Papierkorb> because their proc fs has funny permissions?
<eam> does OSX have /proc?
<eam> (so then, how does it work?)
<Papierkorb> isn't that UNIX?
<eam> nope
jxv has joined #ruby
<eam> proc is a nonstandard thing and the unixes that do implement it generally do so differently
anjen has joined #ruby
jxv has quit [Client Quit]
postmodern has joined #ruby
gil_ has quit [Quit: ZNC 1.6.5 - http://znc.in]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
scorpiosec has joined #ruby
<adaedra> No /proc on macOS
thomasv3_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<adaedra> On FreeBSD, it exist but not mounted by default
kapil___ has quit [Quit: Connection closed for inactivity]
mozzarella has joined #ruby
biberu has quit []
<adaedra> Just checked, if ps is not setuid under macOS there are some information it can't get about process of other users (CPU time, Mem usage, Time, Status, ...)
gil_ has joined #ruby
<adaedra> (it's also seeable with other process monitors like htop which require root to work correctly)
<Papierkorb> doesn't mac os use capabilities?
<adaedra> I'm not sure it applies to single binaries
scorpiosec has quit [Quit: No Ping reply in 180 seconds.]
gusrub has quit [Remote host closed the connection]
morfin has quit []
scorpiosec has joined #ruby
milardovich has quit [Remote host closed the connection]
synthroid has quit []
bmurt has joined #ruby
Ropeney has joined #ruby
eckhardt has joined #ruby
<eam> it looks like it uses entitlements
<eam> I assumed it worked the way freebsd used to (open /dev/kmem and read it) but there's a lot more to it on osx
TinkerTyper has joined #ruby
knight33 has quit [Quit: Textual IRC Client: www.textualapp.com]
cpruitt has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
ta has quit [Remote host closed the connection]
scorpiosec_ has joined #ruby
milardovich has joined #ruby
enterprisey has quit [Ping timeout: 240 seconds]
ta has joined #ruby
|ifei5g00d has quit [Ping timeout: 255 seconds]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 264 seconds]
scorpiosec_ has quit [Remote host closed the connection]
|ifei5g00d has joined #ruby
ta has quit [Remote host closed the connection]
Ltem has quit [Quit: Leaving]
ta has joined #ruby
milardovich has quit [Ping timeout: 258 seconds]
VeryBewitching has quit [Quit: Konversation terminated!]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
scorpiosec has quit [Read error: Connection reset by peer]
Psybur has quit [Ping timeout: 260 seconds]
kitikonti has quit [Quit: Textual IRC Client: www.textualapp.com]
anjen has quit [Quit: anjen]
alnewkirk has quit [Ping timeout: 240 seconds]
gusrub has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
madbytes has quit [Quit: Connection closed for inactivity]
bvcosta has joined #ruby
marxarelli is now known as marxarelli|afk
hahuang65 has quit [Ping timeout: 258 seconds]
|ifei5g00d has quit [Ping timeout: 255 seconds]
ozcanesen has quit [Quit: ozcanesen]
[Butch] has quit [Quit: I'm out . . .]
jrafanie has quit [Ping timeout: 248 seconds]
|ifei5g00d has joined #ruby
orbyt_ has joined #ruby
alfiemax has joined #ruby
chouhoul_ has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has quit [Ping timeout: 252 seconds]
FrostCandy has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
chouhoulis has quit [Ping timeout: 240 seconds]
<FrostCandy> I've been looking all over and cant figure this out - how do I post an array to a uri? Every example I've found fails. responce.body = {'d'=>['1','2','3']}.to_json for example fails. Anyone have an example that works ?
chouhoul_ has quit [Ping timeout: 248 seconds]
<elomatreb> Depends on your encoding. JSON is simple, in x-www-form-urlencoded arrays look like d[]=1&d[]=2&d[]=3
troys is now known as troys_
Azure has joined #ruby
tcopeland has quit [Quit: tcopeland]
nofxx has joined #ruby
<FrostCandy> do you have a http.post example I could look at ? I don't really knwo what you mean. are you saying the to_json method doesn't encode the same way all the time?
<FrostCandy> currently im using the Net::HTTP.new
<FrostCandy> but nothing works.
mim1k has joined #ruby
alfiemax has joined #ruby
aloy has quit [Ping timeout: 240 seconds]
nofxx has quit [Remote host closed the connection]
<apeiros> FrostCandy: what he says is that it depends on how the service you call expects it
<apeiros> there's more than one standard way to do it and there are infinite non-standard ways
GodFather has joined #ruby
aloy has joined #ruby
<FrostCandy> Oh, ya I see, so there are several ways I could send it with ruby methods like URI.encode_www_form(params) vs something else and somethign else ?
|ifei5g00d has quit [Ping timeout: 260 seconds]
bruno- has joined #ruby
<apeiros> yupp
mim1k has quit [Ping timeout: 258 seconds]
<FrostCandy> ok, so is there a way i coudld puts out what I'm sending after encoding?
<FrostCandy> oh nm i see
nofxx has joined #ruby
<FrostCandy> Ok, do you know off hand what method woudl encode with id=1,2,3 instead of how URI.encode_www_form does it - id=1&id=2&id=3?
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
<FrostCandy> if not i could write my own method for that i suppose
|ifei5g00d has joined #ruby
thomasv314 has joined #ruby
DTZUZO has quit [Ping timeout: 248 seconds]
lxsameer has quit [Quit: WeeChat 1.9.1]
mostlybadfly has joined #ruby
ap4y has joined #ruby
brendan- has quit [Quit: Textual IRC Client: www.textualapp.com]
ap4y has quit [Client Quit]
AndBobsYourUncle has joined #ruby
DLSteve_ has quit [Quit: All rise, the honorable DLSteve has left the channel.]
Cohedrin_ has quit [Read error: Connection reset by peer]
hutch34 has quit [Ping timeout: 255 seconds]
troys_ is now known as troys
Cohedrin_ has joined #ruby
safetypin has joined #ruby
ap4y has joined #ruby
<FrostCandy> fyi to_query is a nice idomatic way to do it for id[0]=1, id[1]=2
<FrostCandy> rather id[]=1,id[]=2
<elomatreb> Depending on what you're interacting with you can do a lot, but not all implementations support everything
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
dkam has quit [Ping timeout: 264 seconds]
<elomatreb> If you can get away with just using JSON for the transport like that, you should. (I think your issue earlier might have been that you didn't set the appropriate Content-Type on your request?)
alnewkirk has joined #ruby
safetypin has quit [Ping timeout: 248 seconds]
|ifei5g00d has quit [Ping timeout: 240 seconds]
bvcosta has quit [Remote host closed the connection]
alnewkirk has quit [Ping timeout: 240 seconds]
bvcosta has joined #ruby
bvcosta has quit [Read error: Connection reset by peer]
|ifei5g00d has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
<FrostCandy> application/json was the content type. maybe there was a way to use a json string as a parameter, then break that down later.
<FrostCandy> oh well sounds like a tomorrow job.
fullstack has quit [Ping timeout: 255 seconds]
FrostCandy has quit []
scorpiosec has joined #ruby
gusrub has quit [Remote host closed the connection]
fullstack has joined #ruby
<scorpiosec> hey anyone knows this error
<scorpiosec> Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-n2sW0b/pycrypto/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-FMB1nr-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-n2sW0b/pycrypto/
dmtd has quit [Quit: Connection closed for inactivity]
<elomatreb> Maybe you should ask in a python channel? :P
cpruitt has left #ruby [#ruby]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
safetypin has joined #ruby
alfiemax has quit [Ping timeout: 248 seconds]
vee__ has quit [Ping timeout: 248 seconds]
thomasv314 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has joined #ruby
ivanskie has joined #ruby
safetypin has quit [Client Quit]
ycycling has joined #ruby
tcopeland has joined #ruby
apeiros has quit [Ping timeout: 248 seconds]
Psybur has joined #ruby
marxarelli|afk is now known as marxarelli
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tvw has quit [Ping timeout: 258 seconds]
vee__ has joined #ruby
<latemus> lol
|ifei5g00d has quit [Ping timeout: 248 seconds]
vee__ has quit [Ping timeout: 240 seconds]
fclausen has quit [Ping timeout: 248 seconds]
alfiemax has quit [Remote host closed the connection]
milardovich has joined #ruby
jxv has joined #ruby
alfiemax has joined #ruby
ap4y has quit [Quit: WeeChat 1.9.1]
cschneid_ has quit [Remote host closed the connection]
cschneid_ has joined #ruby
kernelPaniq has quit [Ping timeout: 246 seconds]
milardovich has quit [Ping timeout: 252 seconds]
kernelPaniq has joined #ruby
alfiemax has quit [Ping timeout: 255 seconds]
d5sx43 has joined #ruby
cschneid_ has quit [Ping timeout: 240 seconds]
|ifei5g00d has joined #ruby
maattdd has quit [Ping timeout: 246 seconds]
d5sx43 has quit [Client Quit]
vee__ has joined #ruby
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ap4y has joined #ruby
LenPayne has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
|ifei5g00d has quit [Ping timeout: 248 seconds]
marr has quit [Ping timeout: 240 seconds]
scorpiosec has quit [Ping timeout: 260 seconds]
Psybur has quit [Ping timeout: 240 seconds]
orbyt_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vee__ has quit [Ping timeout: 240 seconds]
hutch34 has joined #ruby
alveric2 has joined #ruby
pryorda has quit [Ping timeout: 252 seconds]
ivanskie has quit [Quit: Textual IRC Client: www.textualapp.com]
polishdub has quit [Quit: leaving]
alveric1 has quit [Ping timeout: 240 seconds]
safetypin has joined #ruby
Dimik has quit [Ping timeout: 252 seconds]
mim1k has joined #ruby
moei has quit [Quit: Leaving...]
cdg has joined #ruby
cdg has quit [Read error: Connection reset by peer]
vee__ has joined #ruby
jottr has quit [Ping timeout: 255 seconds]
pryorda has joined #ruby
mim1k has quit [Ping timeout: 258 seconds]
cdg_ has quit [Ping timeout: 258 seconds]
troys is now known as troys_
fclausen has joined #ruby
safetypin has quit [Quit: ZZZzzz…]
alfiemax has joined #ruby
jottr has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Ropeney has joined #ruby
modin has quit [Ping timeout: 240 seconds]
<latemus> how can i do something like .inspect to an an object of the class 'Object'
Cork has quit [Ping timeout: 258 seconds]
Ropeney has quit [Client Quit]
|ifei5g00d has joined #ruby
wald0 has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
alfiemax has quit [Ping timeout: 248 seconds]
hutch34 has quit [Ping timeout: 255 seconds]
mim1k has joined #ruby