havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.3.1; 2.2.5; 2.1.9: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || logs @ http://irclog.whitequark.org/ruby/
jaguarmagenta has joined #ruby
idefine_ has quit [Ping timeout: 246 seconds]
<graft> seems unlikely rails would help me here since it's downstream of rack
<graft> on the other hand, this bug makes no sense
idefine__ has quit [Ping timeout: 250 seconds]
s00pcan has joined #ruby
rbennacer has joined #ruby
cjbottaro has joined #ruby
idefine has quit [Remote host closed the connection]
nrd_pxs has quit [Quit: leaving]
idefine has joined #ruby
idefine has quit [Remote host closed the connection]
jaguarmagenta has quit [Ping timeout: 240 seconds]
ropeney has joined #ruby
blackmes1 has quit [Ping timeout: 276 seconds]
Xeago_ has joined #ruby
ruby-lang235 has joined #ruby
<ruby-lang235> hai guys
<ruby-lang235> volrac.com
<ruby-lang235> http://volrac.com
<ruby-lang235> !help
<ruby[bot]> ruby-lang235: You can find a list of my commands on http://ruby-community.com/ruboto/commands and my factoids on http://ruby-community.com/ruboto/facts
amclain has quit [Quit: Leaving]
Guest43 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<graft> da fuk
RegulationD has joined #ruby
iddk has joined #ruby
<iddk> !help
<ruby[bot]> iddk: You can find a list of my commands on http://ruby-community.com/ruboto/commands and my factoids on http://ruby-community.com/ruboto/facts
hahuang65 has quit [Ping timeout: 250 seconds]
rbennacer has quit [Remote host closed the connection]
northrup has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hahuang65 has joined #ruby
ellistaa has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
<ellistaa> if i run exec ruby in terminal it seems to start a ruby process, how can i end that process without killing the processs?
rkazak has joined #ruby
freerobby has quit [Quit: Leaving.]
rojomisin has quit [Ping timeout: 250 seconds]
discounted has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
bronson has quit [Remote host closed the connection]
Limix has quit [Quit: Limix]
zacstewart has quit [Ping timeout: 244 seconds]
ta_ has quit [Read error: Connection reset by peer]
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
spider-mario has quit [Remote host closed the connection]
hxegon is now known as hxegon_afk
ellistaa has quit [Quit: ellistaa]
Limix has joined #ruby
jsaak has quit [Ping timeout: 276 seconds]
jsaak has joined #ruby
ta_ has joined #ruby
agent_white has quit [Quit: donewithworkGoinHome]
rbennacer has joined #ruby
yfeldblu_ has joined #ruby
ellistaa has joined #ruby
marr has quit [Remote host closed the connection]
kus has joined #ruby
dikaio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kus has quit [Max SendQ exceeded]
ellistaa has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 250 seconds]
ellistaa has joined #ruby
ellistaa has quit [Client Quit]
Guest38 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ellistaa has joined #ruby
<Arcaire> graft: We still see people running Ruby 1.9 or Ruby 1.8
<Arcaire> 2.2 is fine
ta_ has quit [Read error: Connection reset by peer]
kalz has quit [Quit: exit]
kalzz has quit [Quit: exit]
tristanp_ has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
blur3d has joined #ruby
Guest43 has joined #ruby
ellistaa has quit [Client Quit]
Guest43 has quit [Client Quit]
skolman_ has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ellistaa has joined #ruby
Xeago_ has quit [Ping timeout: 260 seconds]
ellistaa has quit [Read error: Connection reset by peer]
ellistaa has joined #ruby
ta_ has joined #ruby
ellistaa has quit [Client Quit]
terminal_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rbennacer has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
bronson has joined #ruby
`tim` has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
<ruby-lang235> 0.0
GodFather has quit [Remote host closed the connection]
nando293921 has joined #ruby
GodFather has joined #ruby
Limix has quit [Ping timeout: 276 seconds]
zeroDivisible has joined #ruby
oncall-pokemon has joined #ruby
freerobby has joined #ruby
johnny56_ has quit [Ping timeout: 264 seconds]
rodfersou|afk is now known as rodfersou
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
freerobby1 has joined #ruby
johnny56_ has joined #ruby
n008f4g_ has quit [Ping timeout: 276 seconds]
freerobby has quit [Read error: Connection reset by peer]
brianpWins has quit [Ping timeout: 260 seconds]
CloCkWeRX has quit [Ping timeout: 246 seconds]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chipotle has quit [Quit: cheerio]
<iddk> !help
<iddk> asdfadf
<iddk> help
rodfersou has quit [Quit: leaving]
<havenwood> iddk: Please don't spam the bot.
rbennacer has joined #ruby
iddk has quit [Quit: Page closed]
rbennace_ has joined #ruby
chipotle has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
brianpWins has joined #ruby
whathappens has quit [Remote host closed the connection]
ta_ has quit [Read error: Connection reset by peer]
rbennacer has quit [Ping timeout: 244 seconds]
whathappens has joined #ruby
hays_ has quit [Quit: No Ping reply in 180 seconds.]
bronson has quit [Remote host closed the connection]
<zacts> so is 2.3.* an unstable / testing branch of ruby?
whathapp_ has joined #ruby
<zacts> (i.e. are the odd minor versioned 2.3.* unstable, whereas the even numbered minor versions 2.2.* are stable?)
<zacts> of ruby
<havenwood> zacts: 2.3.1 is the latest stable Ruby.
hays has joined #ruby
saneax_AFK is now known as saneax
<havenwood> zacts: Nope.
<zacts> oh, so all features in 2.3.1 will always remain in future versions?
<zacts> so I should be using 2.3.1 on my local laptop versus 2.2.5
ta_ has joined #ruby
<havenwood> zacts: Because you're a Christmas behind on 2.2.5.
<zacts> heh, I see cool
<zacts> I'll use 2.3.1 then
dn` has quit [Read error: Connection reset by peer]
tjohnson has quit [Quit: Connection closed for inactivity]
whathappens has quit [Ping timeout: 260 seconds]
ruby-lang235 has quit [Ping timeout: 250 seconds]
CloCkWeRX has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
mjuszczak has quit []
whathappens has joined #ruby
zeroDivisible has quit [Ping timeout: 260 seconds]
tvon has joined #ruby
dikaio has joined #ruby
kareeoleez has joined #ruby
blaxter has quit [Read error: Connection reset by peer]
Logico has quit [Quit: Saindo]
whippythellama has quit [Quit: WeeChat 1.5]
whathapp_ has quit [Ping timeout: 244 seconds]
akitada has joined #ruby
ur5us has joined #ruby
kareeoleez has quit [Ping timeout: 252 seconds]
rcvalle has quit [Quit: rcvalle]
yfeldblum has joined #ruby
yfeldblu_ has quit [Ping timeout: 252 seconds]
benlieb has quit [Quit: benlieb]
bronson has joined #ruby
Limix has joined #ruby
zacstewart has joined #ruby
chouhoulis has quit [Remote host closed the connection]
whathappens has quit [Quit: Leaving...]
rkazak has joined #ruby
nettoweb has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
trinaldi has joined #ruby
Limix has quit [Quit: Limix]
nettoweb has quit [Client Quit]
devbug has quit [Quit: ZZZzzz…]
edavis has joined #ruby
nettoweb has joined #ruby
nettoweb has quit [Client Quit]
shadowdf has quit [Ping timeout: 260 seconds]
Guest43 has joined #ruby
Guest43 has quit [Client Quit]
ta_ has quit [Read error: Connection reset by peer]
rkazak has quit [Quit: Sleep.....ing....]
weemsledeux has joined #ruby
jhack has joined #ruby
dopamean_ has quit [Quit: WeeChat 1.3]
bluOxigen has quit [Ping timeout: 252 seconds]
nanoz has joined #ruby
ta_ has joined #ruby
rkazak has joined #ruby
zacstewart has quit [Ping timeout: 252 seconds]
elifoster has quit [Ping timeout: 244 seconds]
Coldblackice has quit [Ping timeout: 276 seconds]
cdg has quit [Remote host closed the connection]
pawnbox has joined #ruby
benlieb has joined #ruby
cdg has joined #ruby
jhack has quit [Quit: jhack]
ensyde has joined #ruby
elifoster has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
pawnbox has quit [Ping timeout: 240 seconds]
cdg has quit [Ping timeout: 252 seconds]
Limix has joined #ruby
symm- has quit [Ping timeout: 276 seconds]
Coldblackice has joined #ruby
emilford has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
jaguarmagenta has joined #ruby
crystal7_ has joined #ruby
ta_ has joined #ruby
crystal77 has quit [Read error: Connection reset by peer]
trinaldi has quit [Quit: zzz]
diegoaguilar has joined #ruby
jhack has joined #ruby
jhack has quit [Client Quit]
jaguarmagenta has quit [Ping timeout: 252 seconds]
crystal7_ has quit [Read error: Connection reset by peer]
crystal77 has joined #ruby
solocshaw has quit [Ping timeout: 276 seconds]
flashpoint9 has joined #ruby
xcesariox has joined #ruby
crystal77 has quit [Read error: Connection reset by peer]
crystal7_ has joined #ruby
zacstewart has joined #ruby
Es0teric has joined #ruby
Yiota_ has joined #ruby
discounted has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
crystal7_ has quit [Read error: Connection reset by peer]
crystal77 has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
SilverKey has joined #ruby
SilverKey has quit [Client Quit]
<pipework> havenwood: We need to start a new naming convention for ruby so we can easily 'include' apostrophes. users_.oranges for a single user's oranges, users__oranges, etc.
govg has joined #ruby
<pipework> Remove the uncertainty of plurality or ownership!
ta_ has quit [Read error: Connection reset by peer]
<zacts> ruby.json_for_versioning_here
Yiota_ has quit [Ping timeout: 250 seconds]
<zacts> :-P
Infinite_187 has quit [Ping timeout: 260 seconds]
discounted has joined #ruby
howdoico1 has joined #ruby
ta_ has joined #ruby
crystal77 has quit [Ping timeout: 246 seconds]
CloCkWeRX has quit [Ping timeout: 244 seconds]
mjuszczak has joined #ruby
Ebok has joined #ruby
ramfjord_ has quit [Ping timeout: 246 seconds]
crystal77 has joined #ruby
GodFather has quit [Ping timeout: 260 seconds]
emilford has quit [Ping timeout: 252 seconds]
malcolmva has quit [Ping timeout: 250 seconds]
discounted has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
dikaio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dikaio has joined #ruby
discounted has joined #ruby
benlieb has quit [Quit: benlieb]
crystal77 has quit [Read error: Connection reset by peer]
crystal77 has joined #ruby
crdpink has joined #ruby
seitensei has quit [Quit: "For a good time, try: 'curl -L http://bit.ly/10hA8iC | bash' ;)"]
discounted has quit [Client Quit]
zacstewart has quit [Ping timeout: 240 seconds]
crdpink2 has quit [Ping timeout: 250 seconds]
crystal77 has quit [Read error: Connection reset by peer]
crystal77 has joined #ruby
Infinite_182 has joined #ruby
tax has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
malcolmva has joined #ruby
ta_ has joined #ruby
crystal77 has quit [Read error: Connection reset by peer]
crystal7_ has joined #ruby
urbanmonk has quit [Quit: urbanmonk]
Infinite_182 has quit [Ping timeout: 250 seconds]
syndikate has joined #ruby
<syndikate> Hello guys
rojomisin has joined #ruby
<havenwood> syndikate: Happy Ruby to you!
<syndikate> same to you havenwood
<syndikate> I am stuck with a small problem
<havenwood> syndikate: Pray tell?
mattp_ has quit [Ping timeout: 240 seconds]
<syndikate> I have a function with a case statement inside, I have defined a variable before the case statement, and initialising it in one of the case when clause, but it is unavailable in the next case where clause
<syndikate> havenwood, what is that am doing wrong here..
<baweaver> ?gist
<ruby[bot]> https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
crystal7_ has quit [Read error: Connection reset by peer]
<baweaver> if you paste your code there, it'll be a lot easier to help
mattp_ has joined #ruby
crystal77 has joined #ruby
<syndikate> Oh sorry, hold on
<baweaver> not a problem
<bazz_> if I have an [ ["1","a"],["2","b"] ] is to possible to sort it based on one of the "sub-members" specifically ?? for instance by "1" and "2" array members
howdoico1 has quit [Quit: WeeChat 1.4]
<baweaver> bazz_ what have you tried?
crystal77 has quit [Read error: Connection reset by peer]
<bazz_> I'm not sure if I'm implementing the "connections properly" mind if I invest you into greater detail?
crystal77 has joined #ruby
<baweaver> &ri Enumerable#sort_by
<baweaver> that should do it
<bazz_> I don't see how that answers the multi-dimensional aspect
<bazz_> hm I got it~
<bazz_> so i would do .. array.sort_by { |a, b| b }
KensoDev has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<baweaver> won't work bazz_
<baweaver> but close
KensoDev has joined #ruby
<syndikate> havenwood, baweaver have pasted above
<bazz_> I am pseudo-coding
<bazz_> I'll let you know if my real code fails
<baweaver> I'm real answering :D
<bazz_> haha!
<baweaver> >> [[1, ?a], [2, ?b]].sort_by(&:last)
<ruby[bot]> baweaver: # => [[1, "a"], [2, "b"]] (https://eval.in/564831)
<baweaver> or just use the index
<bazz_> I need a better array example that shows the difference
<bazz_> [[1,"z"], [2, "a"]]
htmldrum has quit [Ping timeout: 252 seconds]
<bazz_> >> [[1,"z"], [2, "a"]].sort_by(&:first)
<ruby[bot]> bazz_: # => [[1, "z"], [2, "a"]] (https://eval.in/564832)
<bazz_> nice
<bazz_> that is using syntax I am unfamiliar with
<bazz_> &:first
htmldrum has joined #ruby
<bazz_> specifically the amp
<baweaver> if you want to sort by an arbitrary index, just use the array accessor
<baweaver> symbol to proc
<baweaver> it's shorthand for:
<bazz_> send?
<baweaver> >> [[1,"z"], [2, "a"]].sort_by { |a| a.first }
<ruby[bot]> baweaver: # => [[1, "z"], [2, "a"]] (https://eval.in/564833)
ta_ has quit [Read error: Connection reset by peer]
<baweaver> effectively
<bazz_> o. nice
<baweaver> >> [[1,"z"], [2, "a"]].sort_by { |a| a[0] }
<ruby[bot]> baweaver: # => [[1, "z"], [2, "a"]] (https://eval.in/564834)
<baweaver> also works
<bazz_> do you mind if I ask for high-level advice form you? It requires some minutes
<baweaver> now then, syndikate... What are you trying to do?
<baweaver> bazz_ might take me some minutes to answer
<bazz_> oh yes, help syndikate I'll be OK
<bazz_> baweaver, I'll write down the thoughts anyways
* baweaver is also cooking food :D
<bazz_> o, nvrmnd then
<bazz_> Enjoy your food :)
<baweaver> na, don't worry about it
CloCkWeRX has joined #ruby
<bazz_> OK xD
<baweaver> just means I take a few more clicks to answer
<bazz_> Are you familiar with Redis? ZSets?
<baweaver> vaguely
<baweaver> I know it's a KV store that runs Lua
Coldblackice has quit [Ping timeout: 250 seconds]
<baweaver> syndikate line 7 does something that'll break it
<baweaver> syndikate but in any case, what's the expected input and output?
<syndikate> baweaver, actullay I initialise $myVar = nil
<syndikate> so that is a typo
ta_ has joined #ruby
crystal77 has quit [Read error: Connection reset by peer]
<syndikate> baweaver, so when I try to do the add function it fails
crystal7_ has joined #ruby
<baweaver> syndikate because right now I think you might need to solve this a different way, but seeing your expected input and output would help with that.
<baweaver> syndikate or a problem description if you have one
saneax is now known as saneax_AFK
<syndikate> baweaver, okay how do I do it? What I am trying to do is create a class instance and then run various methods of that class using switch
htmldrum has quit [Ping timeout: 244 seconds]
<baweaver> syndikate do you have an example of a line I can see?
<syndikate> Sure, hold on
<bazz_> baweaver, I spent a couple minutes writing my scenario but it's a bit too much for the chatroom .. and a code example would be too time-consuming, I'll trust myself to handle it. Thanks for your help thus far
<baweaver> bazz_ we'll be about if you need some advice.
braincrash has quit [Quit: bye bye]
nanoz has quit [Quit: <3]
blackgoat has quit [Quit: WeeChat 1.4]
Eiam_ has joined #ruby
rojomisi1 has joined #ruby
JesseH2 has quit [Quit: Leaving]
JesseH has joined #ruby
saneax_AFK is now known as saneax
JesseH has quit [Changing host]
JesseH has joined #ruby
rojomisin has quit [Ping timeout: 240 seconds]
crdpink2 has joined #ruby
crdpink has quit [Ping timeout: 276 seconds]
braincrash has joined #ruby
arescorpio has joined #ruby
godzillaenlacasa has quit [Quit: ZZZZZ....]
Limix has quit [Quit: Limix]
xMopxShell has quit [Ping timeout: 246 seconds]
<bazz_> >> [[2,"a"], [1, "z"]].sort_by { |a, b| a }
<ruby[bot]> bazz_: # => [[1, "z"], [2, "a"]] (https://eval.in/564843)
lxsameer has joined #ruby
<bazz_> >> [[2,"a"], [1, "z"]].sort_by { |a, b| b }
<ruby[bot]> bazz_: # => [[2, "a"], [1, "z"]] (https://eval.in/564844)
mlehrer_ has joined #ruby
mlehrer has quit [Ping timeout: 244 seconds]
camilasan has quit [Read error: Connection reset by peer]
gix has quit [Ping timeout: 252 seconds]
xMopxShell has joined #ruby
emilford has joined #ruby
camilasan has joined #ruby
yqt has quit [Ping timeout: 260 seconds]
dikaio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ta_ has quit [Read error: Connection reset by peer]
TheWhip has quit [Remote host closed the connection]
dikaio has joined #ruby
ta_ has joined #ruby
<baweaver> so it does splat without parens
gix has joined #ruby
bronson has joined #ruby
emilford has quit [Ping timeout: 250 seconds]
mjuszczak has quit []
rkazak has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
Sammichmaker has quit [Ping timeout: 250 seconds]
Moosashi has joined #ruby
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Moosashi has quit [Quit: Moosashi]
Devalo has joined #ruby
yfeldblum has quit [Remote host closed the connection]
`tim` has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
nofxx has quit [Ping timeout: 244 seconds]
Devalo has quit [Ping timeout: 250 seconds]
Moosashi has joined #ruby
Limix has joined #ruby
Mia has quit [Read error: Connection reset by peer]
Es0teric has quit [Remote host closed the connection]
ta_ has joined #ruby
chipotle has quit [Ping timeout: 276 seconds]
drewo has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
Moosashi has quit [Quit: Moosashi]
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fedexo has joined #ruby
justin_pdx has joined #ruby
ensyde has quit [Ping timeout: 250 seconds]
SilverKey has joined #ruby
cjbottaro has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
godzillaenlacasa has joined #ruby
justin_pdx has quit [Client Quit]
Moosashi has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
dikaio has quit [Quit: Textual IRC Client: www.textualapp.com]
AccordLTN has joined #ruby
justin_pdx has joined #ruby
Rickmasta has quit [Read error: Connection reset by peer]
jaguarmagenta has joined #ruby
dikaio has joined #ruby
Rickmasta has joined #ruby
yfeldblum has joined #ruby
Rickmasta has quit [Client Quit]
benlieb has joined #ruby
Rickmasta has joined #ruby
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ta_ has joined #ruby
Limix has quit [Read error: Connection reset by peer]
jaguarmagenta has quit [Ping timeout: 252 seconds]
hhee has joined #ruby
Rickmasta has quit [Read error: Connection reset by peer]
brent__ has joined #ruby
nofxx has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
godzillaenlacasa has quit [Quit: ZZZZZ....]
<brent__> hello. i'm doing a small problem that involves factorials and am getting a stack level too deep
<brent__> i was using a recursive method
Guest43 has joined #ruby
htmldrum has joined #ruby
Guest43 has quit [Client Quit]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
TheWhip has joined #ruby
saramic has joined #ruby
shinnya has joined #ruby
jenrzzz has joined #ruby
bobbycvi has quit [Quit: ...]
ICantCook has quit [Ping timeout: 244 seconds]
RegulationD has joined #ruby
Rickmasta has joined #ruby
Yiota_ has joined #ruby
ICantCook has joined #ruby
Moosashi has quit [Quit: Moosashi]
chipotle has joined #ruby
Limix has joined #ruby
RegulationD has quit [Ping timeout: 260 seconds]
Yiota_ has quit [Ping timeout: 240 seconds]
shinnya has quit [Ping timeout: 260 seconds]
fedexo has quit [Ping timeout: 250 seconds]
TheWhip has quit [Remote host closed the connection]
d0lph1n98 has joined #ruby
hk238 has joined #ruby
rbennace_ has quit [Remote host closed the connection]
duncannz has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
rbennacer has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
kareeoleez has joined #ruby
idefine has joined #ruby
idefine has quit [Remote host closed the connection]
ta_ has joined #ruby
d0lph1n98 has quit [Ping timeout: 260 seconds]
chipotle has quit [Ping timeout: 240 seconds]
emilford has joined #ruby
SilverKey has quit [Quit: Halted.]
rbennacer has quit [Ping timeout: 260 seconds]
pelegreno has quit [Remote host closed the connection]
pelegreno has joined #ruby
Guest43 has joined #ruby
pelegreno has quit [Remote host closed the connection]
pelegreno has joined #ruby
fedexo has joined #ruby
emilford has quit [Ping timeout: 276 seconds]
hhee has left #ruby ["Leaving"]
Guest43 has quit [Ping timeout: 276 seconds]
northrup has joined #ruby
Ebok has quit [Quit: This computer has gone to sleep]
Xeago_ has joined #ruby
Vile` has quit [Ping timeout: 260 seconds]
grenierm has joined #ruby
pelegreno has quit [Remote host closed the connection]
pelegreno has joined #ruby
chipotle has joined #ruby
CausaMortis has joined #ruby
dopie has quit [Quit: Lost terminal]
Xeago_ has quit [Ping timeout: 276 seconds]
drusepth has quit [Ping timeout: 250 seconds]
sarbs has quit [Ping timeout: 252 seconds]
vdamewood has joined #ruby
d0lph1n98 has joined #ruby
gambl0re has joined #ruby
<gambl0re> hello?
<havenwood> brent__: Ruby disables Tail Call Optimization (TCO) by default in favor or trace instructions.
<havenwood> gambl0re: Hi.
pelegreno has quit [Remote host closed the connection]
<Radar> gambl0re: hello, friend.
TheWhip has joined #ruby
pelegreno has joined #ruby
freerobby1 has quit [Quit: Leaving.]
yfeldblum has quit [Remote host closed the connection]
<havenwood> brent__: You can compile Ruby with TCO or enable it just for some code.
<havenwood> brent__: Or we could show you how to do it without recursion.
chipotle has quit [Ping timeout: 260 seconds]
<havenwood> brent__: Here's an example or enabling TCO for code loaded with #require_relative: https://gist.github.com/havenwood/3c5a5e1476c811460992
<Radar> woah
<brent__> havenwood
<brent__> i swapped for inject
<brent__> but still seemed too long, it's a codewars problem i was doing
<brent__> how would you do it?
crystal7_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
scepticulous has joined #ruby
<brent__> the problem was given n, find the # of trailing zeros of the n!
<brent__> i ended up caving, and looking at the solutions, looks like you had to use an algorithm i wasn't familiar with to get it to pass quick enough
ta_ has quit [Read error: Connection reset by peer]
cpup has quit [Ping timeout: 240 seconds]
troys has joined #ruby
htmldrum has quit [Ping timeout: 260 seconds]
cpup has joined #ruby
znz_jp has quit [Quit: kill -QUIT $$]
troys is now known as troys_
vStone has joined #ruby
benlieb has quit [Quit: benlieb]
saneax is now known as saneax_AFK
<vStone> is '@must_be_an_array = [@must_be_an_array].flatten' generally accepted code to make sure something is always an array?
<Radar> brent__: trailing zeros of what? Do you have an example?
<Radar> >> a = [1,2,3]; a = [*a]
<ruby[bot]> Radar: # => [1, 2, 3] (https://eval.in/564897)
<Radar> vStone: ^
<Radar> >> a = 1; a = [*a]
<ruby[bot]> Radar: # => [1] (https://eval.in/564898)
znz_jp has joined #ruby
<brent__> zeros(12) = 2 # 1 * 2 * 3 .. 12 = 479001600
<brent__> that has 2 trailing zeros 4790016(00)
<vStone> excellent, thanks
ta_ has joined #ruby
Limix has quit [Quit: Limix]
bronson has joined #ruby
vStone has left #ruby ["<3"]
discounted has joined #ruby
<Radar> >> 479001600.to_s.split("").reverse.take_while { |e| e == "0" }.count
<ruby[bot]> Radar: # => 2 (https://eval.in/564900)
<Radar> brent__: ^
<Radar> Someone can probably write that neater than I can
moeabdol has joined #ruby
sauvin has joined #ruby
<brent__> Rader, yeah i had something like that
firstdayonthejob has joined #ruby
Moosashi has joined #ruby
kareeoleez has quit [Remote host closed the connection]
<havenwood> >> 479001600.to_s[/0*\z/].size
<ruby[bot]> havenwood: # => 2 (https://eval.in/564901)
<brent__> factorial.to_s.chars.reverse.each { |el| el == 0 ? zeros += 1 : break }
htmldrum has joined #ruby
discounted has quit [Client Quit]
<brent__> that was w/ facotiral being made via #reduce and it seemed to be taking too long
smathy is now known as smathy_afk
bronson has quit [Ping timeout: 252 seconds]
iooner has quit [Quit: http://www.iooner.me]
<Arcaire> havenwood's solution is 15% faster or so
<Arcaire> if you care
<brent__> i may try it with that
<brent__> see if it will work
terminalrecluse has joined #ruby
iooner has joined #ruby
terminalrecluse has quit [Client Quit]
troys_ is now known as troys
troys has quit [Quit: Bye]
discounted has joined #ruby
shout-user28 has joined #ruby
moeabdol has quit [Ping timeout: 260 seconds]
<brent__> still timed out
<brent__> w/ havenwoods regex
<Arcaire> What timed out?
<brent__> the formula it was looking for was: zeros = 0 ; zeros += n /= 5 while n >= 1
saneax_AFK is now known as saneax
<Arcaire> wtf lol
<brent__> it was a codewars challenge
<brent__> so the tests timed out
<brent__> right, still don't really understand how that algorithm works
terminalrecluse has joined #ruby
roadt__ has joined #ruby
tildes_ has joined #ruby
<Arcaire> That's slower than havenwood's solution, but only because it has to calculate the factorial.
zeroDivisible has joined #ruby
saramic has quit [Remote host closed the connection]
<brent__> i did havenwoods regex w/ (1..n).reduce(:*) || 0
<brent__> and it was timing out
saramic has joined #ruby
<brent__> is that faster than the solution it was looking for?
roadt_ has joined #ruby
saramic has quit [Read error: No route to host]
ruby-lang290 has joined #ruby
saramic has joined #ruby
<brent__> take into account, the solution they wanted never calculated the factorial of n
<brent__> they just did those calcs on n
ta_ has quit [Read error: Connection reset by peer]
roadt__ has quit [Ping timeout: 246 seconds]
<Arcaire> They didn't want the factorial though, only the trailing zeros.
<Arcaire> To be completely honest I have no idea how it works mathematically because I'm trash at math.
zacstewart has joined #ruby
<Arcaire> Programmatically this is it expanded: https://eval.in/564920
<brent__> the difference speed wise between finidng the factorial and using regex is .11sec vs .08sec
scepticulous has quit [Ping timeout: 240 seconds]
<Arcaire> yep
<Arcaire> 564920 just basically divides it by 5
<brent__> for z(1000)
<Arcaire> which is apparently sufficient to calculate the trailing zeros
<brent__> apparently
<brent__> math
<Arcaire> i don't have to math thankfully
<Arcaire> and when i do it's my gf proving i'm bad at math
dionysus69 has joined #ruby
<brent__> i don't know how you get started to look for a solution like that
saramic has quit [Remote host closed the connection]
<Arcaire> some people have lots of time but little responsibility
ta_ has joined #ruby
<brent__> seems so
<brent__> is that speed diference actually significant?
<Arcaire> Not for what you're doing.
saramic has joined #ruby
<Arcaire> If you were a bank infrastructure, yes.
emilford has joined #ruby
zacstewart has quit [Ping timeout: 276 seconds]
duderonomy has joined #ruby
<brent__> cool
jaguarmagenta has joined #ruby
justin_pdx has quit [Quit: justin_pdx]
saramic has quit [Remote host closed the connection]
saramic has joined #ruby
ruby-lang290 has quit [Ping timeout: 250 seconds]
saramic has quit [Read error: Connection reset by peer]
emilford has quit [Ping timeout: 246 seconds]
saramic has joined #ruby
CausaMortis has quit [Ping timeout: 250 seconds]
shout-user28 has quit [Remote host closed the connection]
<shevy> yay
<shevy> brent__ the bank!
PedramT has joined #ruby
<brent__> the big banks, especially
<brent__> wont' stand for those delays
d0nn1e has quit [Ping timeout: 252 seconds]
roadt_ has quit [Ping timeout: 276 seconds]
Guest64287 has quit [Changing host]
Guest64287 has joined #ruby
Guest64287 has joined #ruby
Guest64287 is now known as rc0r
sorryiamnew has joined #ruby
<Arcaire> lmao
<sorryiamnew> can someone please point me to the documentation for #hash method?
<Arcaire> >fix securerandom functionality
<sorryiamnew> it seems that it can be called for any object
<Arcaire> >status: rejected
<Arcaire> sorryiamnew: it can! :D
dionysus69 has quit [Ping timeout: 276 seconds]
nickjj has quit [Read error: Connection reset by peer]
<sorryiamnew> Thank you :)
<matt_d> sorryiamnew: just about :)
nickjj has joined #ruby
Keltia has quit [Read error: Connection reset by peer]
aiguu_ has joined #ruby
Keltia has joined #ruby
<Arcaire> >i did a presentation to 32C3 about this
<Arcaire> >no you're still wrong
<Arcaire> gooooooooooooood stuff who needs cves when we have this MAINTENANCE
arescorpio has quit [Quit: Leaving.]
shibly has joined #ruby
shibly has left #ruby [#ruby]
last_staff has joined #ruby
<Arcaire> that php security guy has even weighed in
<Arcaire> you know you done goofed when php > your language
lvn has joined #ruby
Prawnzy has joined #ruby
yfeldblum has joined #ruby
terminalrecluse has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ramfjord has joined #ruby
ledestin has quit [Ping timeout: 244 seconds]
pietr0 has quit [Quit: pietr0]
dikaio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
TheWhip_ has joined #ruby
pawnbox_ has joined #ruby
kareeoleez has joined #ruby
justin_pdx has joined #ruby
pawnbox has quit [Ping timeout: 244 seconds]
TheWhip has quit [Ping timeout: 246 seconds]
AccordsLTN has joined #ruby
AccordsLTN has quit [Client Quit]
kareeoleez has quit [Remote host closed the connection]
Eiam_ has quit [Ping timeout: 276 seconds]
AccordLTN has quit [Ping timeout: 246 seconds]
malcolmva has quit [Ping timeout: 246 seconds]
kareeoleez has joined #ruby
dikaio has joined #ruby
moeabdol has joined #ruby
rbennacer has joined #ruby
tax has quit [Ping timeout: 260 seconds]
dionysus69 has joined #ruby
TheWhip has joined #ruby
Spami has joined #ruby
smathy_afk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
PedramT has quit [Remote host closed the connection]
TheWhip_ has quit [Ping timeout: 246 seconds]
EdwardIII has quit [Ping timeout: 246 seconds]
EdwardIII has joined #ruby
skade has joined #ruby
jordanm has quit [Ping timeout: 276 seconds]
d0nn1e has joined #ruby
malcolmva has joined #ruby
pawnbox_ has quit [Remote host closed the connection]
justin_pdx has quit [Quit: justin_pdx]
ta_ has quit [Read error: Connection reset by peer]
PedramT has joined #ruby
TheWhip has quit [Remote host closed the connection]
ta_ has joined #ruby
aufi has joined #ruby
RegulationD has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
scepticulous has joined #ruby
kareeole_ has joined #ruby
pawnbox has joined #ruby
TheWhip has joined #ruby
PedramT has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 250 seconds]
kareeoleez has quit [Ping timeout: 260 seconds]
PedramT has joined #ruby
kareeole_ is now known as kareeoleez
rkazak has joined #ruby
sorryiamnew has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
RegulationD has quit [Ping timeout: 244 seconds]
PedramT has quit [Remote host closed the connection]
al2o3-cr has joined #ruby
pLaToOn has joined #ruby
<pLaToOn> moin
dikaio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jordanm has joined #ruby
raeoks has joined #ruby
PedramT has joined #ruby
jud has joined #ruby
jud has quit [Changing host]
jud has joined #ruby
pelegreno has quit [Remote host closed the connection]
pelegreno has joined #ruby
dionysus69 has joined #ruby
tildes_ has quit [Ping timeout: 276 seconds]
emilford has joined #ruby
PedramT has quit [Remote host closed the connection]
emilkarl has joined #ruby
emilford has quit [Ping timeout: 252 seconds]
jaguarmagenta has quit [Remote host closed the connection]
codecop has joined #ruby
htmldrum has quit [Ping timeout: 276 seconds]
firstdayonthejob has quit [Ping timeout: 276 seconds]
toretore has joined #ruby
govg has quit [Ping timeout: 244 seconds]
tvw has joined #ruby
lkba has joined #ruby
htmldrum has joined #ruby
djbkd has joined #ruby
ponga has joined #ruby
Moosashi has quit [Quit: Moosashi]
anisha has joined #ruby
PedramT has joined #ruby
ponga has left #ruby [#ruby]
discounted has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
govg has joined #ruby
discounted has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Moosashi has joined #ruby
dikaio has joined #ruby
lkba_ has joined #ruby
elifoster has quit [Quit: sleep]
pawnbox has quit [Remote host closed the connection]
dikaio has quit [Client Quit]
pawnbox has joined #ruby
lkba has quit [Ping timeout: 252 seconds]
Coldblackice has joined #ruby
aganov has joined #ruby
sjums_ is now known as sjums
biberu has joined #ruby
dikaio has joined #ruby
hahuang61 has joined #ruby
hahuang65 has quit [Ping timeout: 260 seconds]
Phanes has quit [K-Lined]
Phanes has joined #ruby
Phanes has quit [Changing host]
Phanes has joined #ruby
Phanes has quit [K-Lined]
bronson has joined #ruby
devbug has joined #ruby
ljames has quit [Ping timeout: 260 seconds]
rbennacer has quit [Ping timeout: 260 seconds]
bronson has quit [Ping timeout: 252 seconds]
Alina-malina has quit [Ping timeout: 260 seconds]
tagaulap has joined #ruby
dopie has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
Amnez777 has quit [Ping timeout: 276 seconds]
PedramT has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
lvn has quit [Remote host closed the connection]
hahuang65 has joined #ruby
andikr has joined #ruby
grenierm has quit [Quit: grenierm]
zenspider has quit [Ping timeout: 276 seconds]
saramic has quit []
PedramT has joined #ruby
hahuang61 has quit [Ping timeout: 250 seconds]
Dimik has quit []
pawnbox has quit [Remote host closed the connection]
Seich_ has quit [Ping timeout: 250 seconds]
djbkd has quit [Remote host closed the connection]
vdamewood has quit [Ping timeout: 276 seconds]
rbennacer has joined #ruby
pawnbox has joined #ruby
jimmybomb has joined #ruby
<jimmybomb> hey guys, just wondering this is more about api design. if i have a url like api/item. and lets say i want to bulk update multiple items, is it better to have an endpoint like so "Post api/item/bulk-update" and post gazilion item in the body or is it better to do a gazilion async calls using promises to "put /api/item/x" ?
TheWhip has quit [Remote host closed the connection]
Seich has joined #ruby
antgel has joined #ruby
isxek has joined #ruby
grenierm has joined #ruby
rbennacer has quit [Ping timeout: 244 seconds]
htmldrum has quit [Ping timeout: 276 seconds]
nerium has joined #ruby
Xeago_ has joined #ruby
emilford has joined #ruby
dopie has quit [Ping timeout: 250 seconds]
Prawnzy has quit [Remote host closed the connection]
moeabdol has quit [Ping timeout: 260 seconds]
Coldblackice has quit [Ping timeout: 260 seconds]
bluOxigen has joined #ruby
CausaMortis has joined #ruby
PedramT has quit [Remote host closed the connection]
<canton7> are you an idealist or a pragmatist? :P
emilford has quit [Ping timeout: 276 seconds]
zenspider has joined #ruby
<jimmybomb> im an idealist
<jimmybomb> but programming is so hard im fine with anything
discounted has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rbennacer has joined #ruby
mark_66 has joined #ruby
mikecmpbll has joined #ruby
htmldrum has joined #ruby
lsmola has joined #ruby
Devalo has joined #ruby
Snowy has joined #ruby
igam has joined #ruby
<aiguu_> @canton7: Why not have `POST|PUT /api/items` be bulk update, and `POST /api/items/:id` be a single update.
igam has quit [Remote host closed the connection]
igam` has joined #ruby
hahuang65 has quit [Ping timeout: 276 seconds]
<canton7> sure, that works
PedramT has joined #ruby
Devalo has quit [Ping timeout: 250 seconds]
infra-red has joined #ruby
infra-red has quit [Remote host closed the connection]
<jimmybomb> @alguu_: yeah but is that better than having multiple async call ?
moeabdol has joined #ruby
Xeago_ has quit [Read error: Connection reset by peer]
discounted has joined #ruby
htmldrum has quit [Ping timeout: 276 seconds]
rbennacer has quit [Ping timeout: 246 seconds]
Couch has joined #ruby
jaruga___ has joined #ruby
roshanavand has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
rbennacer has joined #ruby
PedramT has quit [Remote host closed the connection]
dafull97 has left #ruby [#ruby]
PedramT has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
skade has joined #ruby
dikaio has quit [Quit: Textual IRC Client: www.textualapp.com]
lubekpl has joined #ruby
pawnbox_ has joined #ruby
PedramT has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ur5us has quit [Remote host closed the connection]
PedramT has joined #ruby
pawnbox has quit [Ping timeout: 250 seconds]
rbennacer has quit [Ping timeout: 252 seconds]
hahuang65 has joined #ruby
evidex has joined #ruby
Moosashi has quit [Quit: Moosashi]
yfeldblum has quit [Remote host closed the connection]
<syndikate> Hey guys, how do I unit test a console input/output application?
Azure has quit [Ping timeout: 260 seconds]
rbennacer has joined #ruby
elaptics`away is now known as elaptics
Azure has joined #ruby
mikecmpbll has joined #ruby
<apeiros> you don't. that's a systemtest.
<syndikate> I have this small test program which prints lines of output, is there a way to test that?
<apeiros> and you'd probably test it by running it with given outputs and compare expected outputs
ledestin has joined #ruby
<apeiros> errr
<apeiros> and you'd probably test it by running it with given inputs and compare expected outputs
rbennacer has quit [Ping timeout: 260 seconds]
discounted has quit [Quit: Textual IRC Client: www.textualapp.com]
nofxx has quit [Ping timeout: 260 seconds]
nofxx has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
<syndikate> That's what I did
<syndikate> but I am asked to write tests
<syndikate> I see minitest, test-unit etc
<apeiros> …
<apeiros> "by running it" -> "via an automated test"
<apeiros> I thought that was obvious
PedramT has quit [Remote host closed the connection]
<syndikate> Yeah, I think I understood that part. My confusion was when I write the test for a function which provides lines of output, how do I verify that
<apeiros> assert_equal "expected output", actual_output
grenierm has quit [Quit: grenierm]
PedramT has joined #ruby
<apeiros> or are you saying you don't know how to shell out in ruby and capture the stdout/stderr of the shelled out command?
xcesariox has joined #ruby
<syndikate> Maybe, coz for single line outputs I can write assert_equal "expect this, function_call
<syndikate> but for multiline output I can't figure
<apeiros> so you don't know how to write a string with multiple lines in it in ruby?
pawnbox_ has quit [Ping timeout: 260 seconds]
<syndikate> No, I don't know how to test that
Moosashi has joined #ruby
<syndikate> My program returns it correctly
<apeiros> …
<apeiros> assert_equal "wow\nmultiple\nlines", expected_output
<apeiros> there's absolutely no difference
<apeiros> a string with multiple lines is still a string. and you can still test it with assert_equal.
TheWhip has joined #ruby
<syndikate> yes, I had one more question, but I guess I need to work a bit more, Ty.
roshanavand has quit [Ping timeout: 276 seconds]
troulouliou_div2 has joined #ruby
<syndikate> Ah yes, so this was the actual trouble
<syndikate> When I call the function, it actually calls another function which prints the output
<syndikate> So, assert is never recieving the output
minimalism has quit [Quit: minimalism]
<syndikate> That second function prints stuff line by line, and I can not think of a way to assert that as it is never returned
drptbl has joined #ruby
<apeiros> syndikate: for future reference - you do realize that "testing a function" is *not* "testing an input/output application", yes?
<apeiros> (also it's methods in ruby, not functions)
brent__ has quit [Quit: Connection closed for inactivity]
RegulationD has joined #ruby
platzhirsch has joined #ruby
Yiota has joined #ruby
<apeiros> if you want to test a method which prints output, you can do that by stubbing/mocking the IO it prints to. in this case, probably $stdout. just make sure you don't interfere with your test-framework.
davedev24 has joined #ruby
<syndikate> Oh okay, methods. actually no I am not much aware of testing. Could you explain that a bit more
nerium has quit [Quit: nerium]
<apeiros> io = StringIO.new; sut = TestSubject.new(io); sut.method_which_prints_to_io; assert_equal "expected output", io.string
<apeiros> this assumes that you can pass in the io to which the method prints.
kp666 has quit [Ping timeout: 246 seconds]
dANOKELOFF has joined #ruby
<apeiros> if you have to actually modify $stdout, then it's a bit more messy, but still same principle. `$stdout = io; method_which_prints_to_stdout; $stdout = STDOUT; …assert…`
<syndikate> Okay, just as a side note, theoretically how is testing of a function done then? Not by checking outputs?
emilkarl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zapata has quit [Ping timeout: 260 seconds]
<apeiros> methods
<syndikate> yes, sorry methods
RegulationD has quit [Ping timeout: 260 seconds]
<apeiros> theoretically? by comparing expected behavior with actual behavior.
Azure has quit [Remote host closed the connection]
<syndikate> So that behavior, is output, right?
Yiota has quit [Ping timeout: 276 seconds]
<apeiros> in ruby, there's 5 basic types of behavior: return value, yielded value(s), raised exception, thrown value, side effects
<apeiros> output to an IO falls into the side effects category
<apeiros> other side effects: modifications on the file system, changes to a database, etc.
davedev24 has quit []
ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Xeago_ has joined #ruby
yfeldblum has joined #ruby
pandaant has joined #ruby
<apeiros> and when you test side effects, you have to decide whether you do a unit test, which is isolated, or a system test, which makes use of the external systems (db, filesystem, webservice etc.)
djbkd has joined #ruby
kp666 has joined #ruby
zapata has joined #ruby
<apeiros> if you do a unit test, you isolate the test by using a test double (stubbing or mocking the test dependency, in your case the IO)
<apeiros> oh, failed to mention one important class of side effects: modifying the state of your application.
<syndikate> Oh okay, these were all unknown to me, I thought testing means validating output
PedramT has quit [Remote host closed the connection]
<syndikate> Could you please help me figure with an example how I can write unit test for this function then? I know you have already explained, but I want to have a bit more clarity
fedexo has quit [Ping timeout: 250 seconds]
<syndikate> method*
gdp has joined #ruby
<syndikate> So, do I print the lines and make the method return true?
lkba_ has quit [Ping timeout: 244 seconds]
<apeiros> I've already provided you an example. two even.
PedramT has joined #ruby
<syndikate> Yes, I saw it. So this is my final doubt, once I print everything I make the function return true, is that how it should be?
elaptics is now known as elaptics`away
djbkd has quit [Ping timeout: 252 seconds]
elaptics`away is now known as elaptics
<apeiros> I do not know what your method does. so how am I supposed to judge whether `true` is a sensible return value for it?
htmldrum has joined #ruby
<apeiros> I generally consider a status value, self or nil as sensible return values for methods with side effects. status values being an information on whether the side effect was applicable or failed. but depending on the specifics, I much rather have an exception instead.
emilford has joined #ruby
<syndikate> Oh okay
<tobiasvl> also you don't have to return true itself for the return value to be truthy
<tobiasvl> depending on what you test for
govg has quit [Quit: leaving]
<syndikate> Currently I get a nil
pawnbox has joined #ruby
<apeiros> if the method is supposed to just print stuff, then nil is IMO fine.
mrgrieves has joined #ruby
<apeiros> c.f. Kernel#puts, which returns nil too.
<apeiros> *cf.
<ujjain> This is my test https://gist.github.com/anonymous/77ebf42fa77ed3ec843d2f50b4f6bab7, but even though @timeout_exception is working during running of the code, it's empty during the test. So how can I test if this variable is set?
emilford has quit [Ping timeout: 260 seconds]
jaguarmagenta has joined #ruby
htmldrum has quit [Ping timeout: 276 seconds]
emilkarl has joined #ruby
<apeiros> ujjain: @ivars are scoped to the object they belong to. you can't just write @ivar anywhere and expect it to be the same as somewhere else.
blackmes1 has joined #ruby
<apeiros> you'll have to read it from the object it's stored in.
jaguarmagenta has quit [Ping timeout: 252 seconds]
sleetdrop has joined #ruby
igam` has quit [Ping timeout: 260 seconds]
<ujjain> apeiros, hmm, how do I do that exactly? I have class bla def something that has @timeout_exception printed fine.
gamov has joined #ruby
<apeiros> ujjain: I'm sorry, I don't teach ruby 101. please read a book on ruby's object model.
<ujjain> ok, I'm sorry.
igam` has joined #ruby
aupadhye has joined #ruby
platzhirsch has left #ruby [#ruby]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
KensoDev has quit [Ping timeout: 240 seconds]
akem has joined #ruby
jenrzzz has joined #ruby
PedramT has quit [Remote host closed the connection]
Alina-malina has joined #ruby
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
Amnez777 has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
Amnez777 has quit [Changing host]
Amnez777 has joined #ruby
saneax is now known as saneax_AFK
johnny56 has joined #ruby
emilkarl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
TheWhip has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
joonty has joined #ruby
johnny56_ has quit [Ping timeout: 264 seconds]
zacstewart has joined #ruby
madgen has joined #ruby
sleetdrop has quit [Quit: Textual IRC Client: www.textualapp.com]
nisstyre has quit [Changing host]
nisstyre has joined #ruby
roadt_ has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
Caerus|Away is now known as Caerus
devbug has quit [Quit: ZZZzzz…]
binaryplease has joined #ruby
zacstewart has quit [Ping timeout: 250 seconds]
Xiti` has joined #ruby
roshanavand has joined #ruby
yfeldblum has quit [Ping timeout: 276 seconds]
emilkarl has joined #ruby
<shevy> ujjain class Foo; @bar = 5; end will be different from: @bar = 5 without any classes, and also different from: class Foo; def initialize; @bar = 5; end; end
devbug has joined #ruby
<ujjain> ah ok, I just found http://www.sitepoint.com/understanding-object-model/. Do other programming languages like python have the same behaviour?
<ujjain> it's not just scoping, right?
<shevy> a simple way to test for it could be via reader methods; and default the @ivars to nil when they are not initialized
<shevy> I am not completely sure how python does it. They don't use a special @ symbol but use "self.foo =" or something like that right? not sure
Xiti has quit [Ping timeout: 246 seconds]
<ujjain> ah ok, I see.
banister has quit [Ping timeout: 252 seconds]
<shevy> I guess the most common way is the "class Foo; def initialize; @bar = 5; end; end" variant
mikecmpbll has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
<shevy> for the second variant, I sometimes do something such as: module Foo; @config = YAML.load_file('path/to/lots/of/config/values.yml') ... like when I need a per-project config file
roshanavand has quit [Client Quit]
<ujjain> I'm trying to find out if @expectedException is in @messages, but the result is 4 instead of my expected 1. puts @messages.select{|m| m.include? "#{@expectedException}"}
bronson has joined #ruby
nando293921 has quit [Ping timeout: 250 seconds]
<shevy> hmm that looks weird
<ujjain> I don't know how you can even let gherkins tests check for variables though. I know that $bar and $foo worked fine for me, but not sure they were the solution.
<shevy> do you know the content of @messages?
digneety has joined #ruby
<shevy> aha
<shevy> ok so if the global variables work, it must be a scope issue
<shevy> can you put the code that works with the global variables on a gist?
<shevy> or the smallest, reproducible variant
bronson has quit [Ping timeout: 252 seconds]
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> not reproducible ;)
Yiota has joined #ruby
FooMunki has joined #ruby
joonty has quit [Ping timeout: 240 seconds]
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maokomioko has joined #ruby
Yiota has quit [Ping timeout: 260 seconds]
pLaToOn has quit [Quit: Leaving]
sigurding has joined #ruby
pawnbox has joined #ruby
d0lph1n98 has quit [Ping timeout: 244 seconds]
enslavedtuna has joined #ruby
<enslavedtuna> Time.mktime('1987-01-09T00:00:00+00:00')
<enslavedtuna> => 1987-01-01 00:00:00 UTC
<enslavedtuna> why does it lose the day when converting a string to timestamp?
<apeiros> interesting that you didn't get an outright exception
djbkd has joined #ruby
<apeiros> enslavedtuna: I presume you didn't bother to actually look the answer up in the docs?
rbennacer has joined #ruby
<apeiros> >> '1987-01-09T00:00:00+00:00'.to_i
<ruby[bot]> apeiros: # => 1987 (https://eval.in/565043)
<apeiros> ^ would be the reason. combined with how Time.mktime is supposed to be used.
marr has joined #ruby
<enslavedtuna> oh i was thrown of because i thought it did month correctly, but that was just because my example used 01 as it's month! I'll look up the correct usage, thanks
solars has joined #ruby
<toretore> you're looking for Time.iso8601
djbkd has quit [Ping timeout: 240 seconds]
<apeiros> remember to `require 'time'` for that one.
d0lph1n98 has joined #ruby
blaxter has joined #ruby
Moosashi has quit [Quit: Moosashi]
workmad3 has joined #ruby
govg has joined #ruby
joonty has joined #ruby
saneax_AFK is now known as saneax
emilford has joined #ruby
madgen has quit [Ping timeout: 240 seconds]
PedramT has joined #ruby
blackmes1 has quit [Ping timeout: 240 seconds]
Moosashi has joined #ruby
devbug has quit [Quit: Lances at dawn!]
lessless has joined #ruby
<lessless> is it possible to a rescue in the enumerator block similar to how it is used in the methods?
<apeiros> you can rescue anywhere
<apeiros> also, "is it possible" -> just try in pry (or irb)
<heftig> well, you can't do "do rescue end" but you can do "do begin rescue end end"
<apeiros> um, yeah, "valid syntax implied".
emilford has quit [Ping timeout: 276 seconds]
sangeet has joined #ruby
TheWhip has joined #ruby
<heftig> apeiros: I wonder if `do begin ... rescue ... end end` is common enough for `do ... rescue ... end` to be considered
<sangeet> hello
yfeldblum has joined #ruby
* Caerus greets #ruby
<Caerus> :D
<apeiros> heftig: you could run an analysis over github and/or popular gems?
<sangeet> facing issue with installing carrierwave-base64 gem. Any help ?
sgambino has joined #ruby
<sangeet> bump !!!
<sangeet> !!
<shevy> Caerus!
<apeiros> sangeet: "facing issue" is your idea of a problem description?
<apeiros> also spammy "bump!!" and "!!" messages are not welcome.
<Caerus> gem install carrierwave-base64?
Ispira has quit [Quit: Connection closed for inactivity]
sangeet has quit []
<apeiros> ujjain: ruby convention is 2 spaces
<apeiros> other than that, yes
nofxx has quit [Ping timeout: 260 seconds]
<Caerus> hi shevy
<ujjain> thanks apeiros
<Caerus> whew carrierwave-base64 has 10 gem dependencies :o
<Caerus> *9* + itself
rbennacer has quit [Ping timeout: 276 seconds]
PedramT has quit [Remote host closed the connection]
PedramT has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
Gasher has joined #ruby
<enslavedtuna> toretore: That works great, thank you!
CausaMortis has quit [Ping timeout: 246 seconds]
rbennacer has joined #ruby
nullFxn has quit [Remote host closed the connection]
nullFxn has joined #ruby
duncannz has quit [Quit: Leaving]
<shevy> oh this sangeet person
<shevy> is this like find waldo
<shevy> usually ensure should go into begin/rescue/end clause
Pupeno has joined #ruby
<shevy> stackoverflow is really convenient :)
<shevy> I think Ox0dea or jhass told me what the share link is good for :P
CausaMortis has joined #ruby
rbennacer has quit [Ping timeout: 260 seconds]
joonty has quit [Ping timeout: 276 seconds]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
der-landgraf has quit [Quit: WeeChat 1.4]
dionysus69 has quit [Ping timeout: 244 seconds]
CausaMortis has quit [Client Quit]
CausaMortis has joined #ruby
rbennacer has joined #ruby
nofxx has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
mtkd has quit [Ping timeout: 252 seconds]
mtkd has joined #ruby
<Caerus> I need an opinion. Would you say WEB REST API has completely overtaken SOAP? or is there a case where a WEB SOAP Service would still be relevant/needed?
blackgoat has joined #ruby
blackgoat has quit [K-Lined]
rbennacer has quit [Ping timeout: 240 seconds]
<Caerus> I might be confused because the terms seem to overlap, I'm by no means versed in this matter so sorry in advance if it's dumb :P
glcx has joined #ruby
<Ox0dea> Caerus: What is WEB?
glcx has quit [Remote host closed the connection]
ur5us has joined #ruby
<Sebastia1Thorn> well, same same but different kind of. When i build stuff i build rest
sgambino has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
<Caerus> I guess web is redundant xD
<Ox0dea> I just didn't understand the all-caps.
madgen has joined #ruby
<Sebastia1Thorn> Ox0dea: i was just googleing for that one :D
edwinvdgraaf has joined #ruby
rojomisi1 has quit [Ping timeout: 260 seconds]
gamov has quit [Quit: gamov]
emilkarl is now known as emilkarl[away]
<Caerus> my bad, I guess it would be better to just do some more research about SOAP and REST.
ixti has quit [Quit: WeeChat 1.4]
ferr has joined #ruby
<Sebastia1Thorn> in my experience, SOAP is more used for enterprise software, where many 3rd party applications connect to it
<Caerus> it seems obsolete to me but since I have limited knowledge about I cant be sure it actually is.
rbennacer has joined #ruby
<Caerus> Ox0dea, lol @ gif
raeoks has quit [Ping timeout: 276 seconds]
PedramT has quit [Remote host closed the connection]
tvw has quit []
nofxx has quit [Ping timeout: 260 seconds]
nofxx has joined #ruby
n008f4g_ has joined #ruby
voidDotClass has joined #ruby
<voidDotClass> How do I convert a Date to unix milliseconds?
anisha has quit [Read error: Connection reset by peer]
anisha has joined #ruby
djbkd has joined #ruby
sdothum has joined #ruby
<Caerus> voidDotClass, afaik ruby has no Date class. date = Time.now .That being said. I believe you could do date.to_i to get nix format
djbkd has quit [Ping timeout: 240 seconds]
skade has joined #ruby
mjuszczak has joined #ruby
<Ox0dea> Caerus: Of course Ruby has a Date class.
<Ox0dea> voidDotClass: `date.to_time.to_i` will get you there.
<Caerus> woot
<Caerus> i always get an error
<voidDotClass> Caerus, thanks
<Caerus> doing date = Date.now, voidDotClass read Ox0dea's
blackmes1 has joined #ruby
janelleb_ has joined #ruby
<Ox0dea> >> require 'date'; Date.today.to_time.to_i
<ruby[bot]> Ox0dea: # => 1462320000 (https://eval.in/565068)
<Ox0dea> Nailed it.
<voidDotClass> Caerus, if i have an incoming date coming in as unix milliseconds, and i want to save that to a db column in rails, any ideas what the best way to do that is?
<Caerus> lmao omg
* Caerus cratered
<voidDotClass> ?
<Ox0dea> voidDotClass: I bet your choice of database has a tailor-made column type for dates and times.
<hanmac> depends on the database i would use Timestamp type
comforte has joined #ruby
<Caerus> <--- confusing other unsuspecting newbies since joining #ruby \o/
emilford has joined #ruby
<comforte> Hey, what's a small ruby installation actually in size on a disk? I am just using python and it's like 80M... like java :)
<voidDotClass> yeah it has a date column which i'm using
rbennacer has quit [Ping timeout: 276 seconds]
<voidDotClass> question is how to convert the timestamp into the date
<apeiros> voidDotClass, Ox0dea: mind you, Time#to_i will give you seconds, not milliseconds. but I hope you know how to get one from the other.
digneety has quit [Ping timeout: 276 seconds]
<voidDotClass> apeiros, yep, *1000
<Ox0dea> voidDotClass: Time has #to_date and Time.at accepts a Unix timestamp.
<apeiros> voidDotClass: and Time.at is the reverse
<arahael> connor_goodwolf: you can get that down to about ~26MB fairly easily,
<Ox0dea> apeiros: o/
<apeiros> Ox0dea: sniper!
<hanmac> hm did Time#to_f return the miliseconds or the nanoseconds?
janelleb has quit [Disconnected by services]
<Ox0dea> I'm seeing microseconds here.
janelleb_ has quit [Quit: leaving]
<shevy> I'm seeing dead people!
blackmes1 has quit [Ping timeout: 260 seconds]
<shevy> I guess nanoseconds may only be useful for laser people
jaguarmagenta has joined #ruby
emilford has quit [Ping timeout: 250 seconds]
<apeiros> to_f is still seconds
mjuszczak has quit []
GodFather has joined #ruby
<Ox0dea> >> Time.new.to_f
<ruby[bot]> Ox0dea: # => 1462358355.1393492 (https://eval.in/565069)
<Ox0dea> With some microsecond-y goodness as well.
<Ox0dea> Er, no, I guess those are nanoseconds.
<apeiros> yes, it includes a fractional part. yet still seconds ;-)
<apeiros> and iirc only milliseconds are precise, the microseconds can already deviate. but that's from memory, so might be wrong.
Azure has joined #ruby
Azure has quit [Read error: Connection timed out]
jaguarmagenta has quit [Ping timeout: 240 seconds]
<apeiros> Time#usec if you want the fractional part precisely.
mdw has joined #ruby
Devalo has joined #ruby
<syndikate> Hey again, so I have figured and is capturing stdio and comparing now
Azure has joined #ruby
* Caerus double-checks...
<apeiros> ah, it was nanoseconds which Time#to_f can't represent: "Note that IEEE 754 double is not accurate enough to represent the number of nanoseconds since the Epoch"
<Caerus> "Beginning Ruby 2nd edition" only references Time class when introducing date and time :(
<Caerus> oh well
PedramT has joined #ruby
neanderslob has quit [Remote host closed the connection]
zeroDivisible has quit [Ping timeout: 276 seconds]
<Ox0dea> Caerus: That's probably because Time is in core, whereas Date is part of the standard library.
<Ox0dea> Still, quite an oversight. :/
mjuszczak has joined #ruby
xcesariox has joined #ruby
arahael has left #ruby ["WeeChat 1.0.1"]
joonty has joined #ruby
<workmad3> Ox0dea: hmm... I thought Date was in core too, but DateTime wasn't, and there are extensions to Date in stdlib too
<Caerus> yeah, it's struck me as weird because I have some programming background but I thought it was the ruby way, I would have eventually stumbled upon it tho, haven't really browsed stdlib.
<Caerus> thanks for the clarification
Madplatypus has quit [Quit: Connection closed for inactivity]
<Ox0dea> >> Date rescue $! # workmad3
<ruby[bot]> Ox0dea: # => #<NameError: uninitialized constant Date ...check link for more (https://eval.in/565070)
<workmad3> ah, ok :)
<apeiros> workmad3: Date used to be in stdlib. not sure how it is now since the rewrite of it in C
<apeiros> apparently it's still in stdlib (having caught up with the backlog :D)
n008f4g_ has quit [Ping timeout: 260 seconds]
* workmad3 goes back to writing bash
lxsameer has quit [Quit: WeeChat 1.4]
<apeiros> that sounds like fun
* apeiros goes back to seed the mssql db
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sigurding has quit [Quit: sigurding]
skade has quit [Quit: Computer has gone to sleep.]
<workmad3> apeiros: yeah... writing a script to separate a couple of apps that were sharing a database (the decision was made years ago, taken this long for it to finally be sorted)
skade has joined #ruby
sigurding has joined #ruby
skade has quit [Client Quit]
skade has joined #ruby
skade has quit [Client Quit]
charliesome has joined #ruby
Ishido has joined #ruby
skade has joined #ruby
skade has quit [Client Quit]
Gasher has quit [Ping timeout: 252 seconds]
Devalo has quit [Ping timeout: 250 seconds]
voidDotClass has quit [Ping timeout: 276 seconds]
Moosashi has quit [Quit: Moosashi]
rbennacer has joined #ruby
Xeago_ has quit [Remote host closed the connection]
shadowdf has joined #ruby
idefine has joined #ruby
Meeh has quit [Quit: Screw u guys, I'm going home!]
ropeney has joined #ruby
Gasher has joined #ruby
ropeney has quit [Client Quit]
shadowdf has left #ruby [#ruby]
rbennacer has quit [Ping timeout: 252 seconds]
idefine has quit [Ping timeout: 260 seconds]
Pupeno has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
PedramT has quit [Remote host closed the connection]
PedramT has joined #ruby
Pupeno has joined #ruby
Bloomer has joined #ruby
bronson has joined #ruby
ur5us has joined #ruby
rbennacer has joined #ruby
madgen has quit [Ping timeout: 260 seconds]
Pupeno_ has joined #ruby
voidDotClass has joined #ruby
gnufied has joined #ruby
voidDotClass has quit [Client Quit]
mdw has quit [Quit: Sleeping Zzzzz]
voidDotClass has joined #ruby
stef204 has joined #ruby
Pupeno_ has quit [Read error: Connection reset by peer]
voidDotClass has quit [Client Quit]
bahar has quit [Ping timeout: 260 seconds]
voidDotClass has joined #ruby
Pupeno has quit [Ping timeout: 246 seconds]
voidDotClass has quit [Client Quit]
voidDotClass has joined #ruby
ur5us has quit [Ping timeout: 250 seconds]
bronson has quit [Ping timeout: 252 seconds]
fsvehla has joined #ruby
mjuszczak has quit []
stef204 has quit [Remote host closed the connection]
stef204 has joined #ruby
PedramT has quit [Remote host closed the connection]
emilkarl[away] is now known as emilkarl
PedramT has joined #ruby
freerobby has joined #ruby
jaiks has joined #ruby
rbennacer has quit [Ping timeout: 240 seconds]
johnmilton has joined #ruby
madgen has joined #ruby
deadnull_ has joined #ruby
flashpoint9 has joined #ruby
jaiks has quit [Client Quit]
PedramT has quit [Remote host closed the connection]
rodfersou has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
Meeh has joined #ruby
sepp2k has joined #ruby
djbkd has joined #ruby
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
yardenbar has joined #ruby
ldnunes has joined #ruby
djbkd has quit [Ping timeout: 260 seconds]
<shevy> code written by the old egyptians
IrishGringo has joined #ruby
emilford has joined #ruby
TomyLobo has joined #ruby
sgambino has joined #ruby
emilkarl has quit [Quit: Textual IRC Client: www.textualapp.com]
emilford has quit [Ping timeout: 246 seconds]
flashpoint9 has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
blackmes1 has joined #ruby
joonty has quit [Ping timeout: 276 seconds]
CausaMortis has quit [Read error: Connection reset by peer]
CausaMortis has joined #ruby
blackmes1 has quit [Ping timeout: 246 seconds]
deadnull_ is now known as _deadnull
freerobby has joined #ruby
Bloomer has quit []
mrgrieves has quit [Ping timeout: 244 seconds]
skade has joined #ruby
godzillaenlacasa has joined #ruby
cgfbee has quit [Remote host closed the connection]
skade has quit [Client Quit]
Xeago_ has joined #ruby
PedramT has joined #ruby
hanmac has quit [Ping timeout: 276 seconds]
sigurding has quit [Quit: sigurding]
PedramT has quit [Remote host closed the connection]
madgen has quit [Ping timeout: 276 seconds]
shadeslayer has quit [Ping timeout: 276 seconds]
dcope has quit [Ping timeout: 276 seconds]
PedramT has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
freerobby has quit [Quit: Leaving.]
* Caerus wakes up from keyboard nap \o/
<Caerus> 512 ram makes OS page a lot hehe, even linux.
<Caerus> see ya later #ruby
<Ox0dea> What year is it?
PedramT has quit [Remote host closed the connection]
<Caerus> i'm poor :P
PedramT has joined #ruby
<Caerus> Ox0dea, you have a good day kind sire, I'm off to sleep.
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> Caerus: Bon voyage, mon amie!
_deadnull is now known as deadnull_
skade has joined #ruby
Caerus is now known as Caerus|Away
stan has quit [Remote host closed the connection]
joonty has joined #ruby
GinoMan2440_ has quit [Ping timeout: 276 seconds]
minimalism has joined #ruby
mrgrieves has joined #ruby
cgfbee has joined #ruby
stan has joined #ruby
synthroid has joined #ruby
hanmac has joined #ruby
Ishido has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Pupp3tm4st3r has joined #ruby
nofxx has quit [Ping timeout: 276 seconds]
Ishido has joined #ruby
sigurding has joined #ruby
nadir has joined #ruby
roshanavand has joined #ruby
carella has joined #ruby
akahn has quit [Quit: Connection closed for inactivity]
dcope has joined #ruby
mdw has joined #ruby
jaguarmagenta has joined #ruby
lxsameer has joined #ruby
Vile` has joined #ruby
soc42 has joined #ruby
maokomioko has quit [Quit: Textual IRC Client: www.textualapp.com]
shadeslayer has joined #ruby
jaguarmagenta has quit [Ping timeout: 276 seconds]
rbennacer has joined #ruby
pawnbox has quit [Remote host closed the connection]
RegulationD has joined #ruby
pawnbox has joined #ruby
maokomioko has joined #ruby
rbennacer has quit [Ping timeout: 246 seconds]
RegulationD has quit [Ping timeout: 260 seconds]
solocshaw has joined #ruby
deadnul__ has joined #ruby
djbkd has joined #ruby
deadnull_ has quit [Ping timeout: 260 seconds]
GodFather has quit [Ping timeout: 260 seconds]
crystal77 has joined #ruby
<scepticulous> I think the time when 'even linux' was appropriate is gone, isnt it ?
djbkd has quit [Ping timeout: 246 seconds]
skade has quit [Quit: Computer has gone to sleep.]
maokomioko has quit [Quit: Textual IRC Client: www.textualapp.com]
colegatron has quit [Remote host closed the connection]
swills has quit [Ping timeout: 260 seconds]
akem has quit [Read error: Connection reset by peer]
zacstewart has joined #ruby
emilford has joined #ruby
<adaedra> Ox0dea: you should replace the last 'e' with a space here.
<Ox0dea> adaedra: You're being serious, and I just don't get it.
lxsameer has quit [Ping timeout: 276 seconds]
<Ox0dea> Is it correct that you plenk for marks of punctuation consisting of more than one "piece"?
carella has quit [Remote host closed the connection]
A124 has quit [Quit: '']
<adaedra> yep.
<adaedra> But I'm saying shit; the e can actually be correct. (But can also not be, I don't know Caerus enough to tell.)
JakFrist has joined #ruby
emilford has quit [Ping timeout: 246 seconds]
zacstewart has quit [Ping timeout: 244 seconds]
rodfersou has quit [Quit: Changing server]
idefine has joined #ruby
rbennacer has joined #ruby
rodfersou has joined #ruby
A124 has joined #ruby
skade has joined #ruby
rbennacer has quit [Ping timeout: 260 seconds]
<Takumo> Hi all, I'm trying to installa gem (sass/compass) which has native extensions on an Alpine linux docker container
nerium has joined #ruby
<Takumo> however libffi is giving me the error: achine `x86_64-alpine-linux' not recognized
<Takumo> how do I pass build options to specify the target etc?
<Takumo> ah its compass
malconis has joined #ruby
malconis has quit [Remote host closed the connection]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
futilegames has joined #ruby
Vile` has quit [Ping timeout: 276 seconds]
GinoMan2440 has joined #ruby
chouhoulis has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
GodFather has joined #ruby
nullwarp has quit [Quit: ZNC - http://znc.in]
flashpoint9 has joined #ruby
Ishido has quit [Remote host closed the connection]
Ebok has joined #ruby
akkmaxon has joined #ruby
malconis has joined #ruby
Dysp has joined #ruby
Ishido has joined #ruby
akkmaxon has quit [Client Quit]
PedramT has quit [Remote host closed the connection]
norc has joined #ruby
<norc> Greetings #ruby
nullwarp has joined #ruby
sgambino has joined #ruby
ramortegui has joined #ruby
cdg has joined #ruby
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
<lubekpl> norc: greetings traveler!
<norc> So. Are there any Ruby/Ruby-like implementations suitable for embedding into other languages?
<apeiros> mruby
futilegames has quit [Quit: futilegames]
ChiefAlexander has joined #ruby
JakFrist has quit [Ping timeout: 244 seconds]
<norc> apeiros: Sweet. By Matz too, don't know how I missed this.
PedramT has joined #ruby
<Dysp> Mjello. Anyone with knowledge of RubyXL? I am trying to iterate over rows until it is empty and then write. I'm inexperienced with both RubyXL and loops, so help would be appreciated.
<norc> Dysp: Please tell us your actual problem. :)
<norc> Oh.
<Dysp> My best try so far. I am definetly not understand how it works. And the tutorials/guides on RubyXL are sparse.
<Dysp> The code breaks with "nomethoderror" when it arrives at an empty cell
<Dysp> Undefined method '[]' for nil:NilClass
deavid has quit [Quit: No Ping reply in 180 seconds.]
<Dysp> empty row*
<norc> Dysp: Which line on?
<Dysp> 6
<norc> Dysp: Also note, the Ruby way to test whether a variable is nil is Object#nil?
<norc> >> "abc".nil?
<ruby[bot]> norc: # => false (https://eval.in/565202)
deavid has joined #ruby
mjuszczak has joined #ruby
futilegames has joined #ruby
<Dysp> norc: Thank you. Changing the line to if val.nil? == false
<Dysp> Doesn't really change anything
IrishGringo has quit [Ping timeout: 246 seconds]
<norc> Dysp: Use "unless val.nil?" or "if !val.nil?"
<norc> Dysp: It is just style, not a functional change.
akem has joined #ruby
bronson has joined #ruby
<Dysp> Yeah. Hm. I dunno how to attack this.
<norc> Dysp: The problem can only arise when your block is yielded so that row is nil.
<norc> Now the real question is why that happens.
<norc> It basically tries to execute the following:
<norc> >> nil[0]
<ruby[bot]> norc: # => undefined method `[]' for nil:NilClass (NoMethodError) ...check link for more (https://eval.in/565204)
<Dysp> Hm.
emilford has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
<Dysp> norc: Part of my problem is that I don't know what "worksheet" actually holds. It's an array with huuuuge values.
bronson has quit [Ping timeout: 252 seconds]
umdstu has joined #ruby
<norc> Dysp: I would byebug/pry into it and explore it interactively to figure out the problem
mostlybadfly has quit [Quit: Connection closed for inactivity]
<Dysp> I am using pry - how would you do it with Pry?
IrishGringo has joined #ruby
<norc> What does workbook[0] return?
lxsameer has joined #ruby
<norc> Does it return a Workbook object?
<norc> A Worksheet?
<umdstu> no matter how many times I build ruby with openssl, it never seems to actually be included in the final ruby build. always “cannot load such file”
<umdstu> ruby-2.2.2 and openssl-1.0.1
<Dysp> workbook[0] returns a worksheet
<Dysp> worksheet[0] returns row 0
futilegames has quit [Ping timeout: 244 seconds]
sfr^ has joined #ruby
PedramT has quit [Read error: Connection reset by peer]
PedramT has joined #ruby
mdw has quit [Quit: cya! http://www.somerobots.com]
tlaxkit has joined #ruby
<Dysp> norc: Basicly what I wanna do is iterate through column A until it hits an empty cell - and then write my data. While I normally can solve these newbie-problems, this problem is a combination of areas I poorly understand. Loops & RubyXL API. If it was just one thing that was wrong, it would be easier to solve.
<Dysp> Too many variables in my misunderstanding ^^
TomyLobo has quit [Read error: Connection reset by peer]
<norc> Dysp: Think of them as just arrays.
codecop has quit [Remote host closed the connection]
PedramT has quit [Remote host closed the connection]
TheWhip has quit [Remote host closed the connection]
futilegames has joined #ruby
TheWhip has joined #ruby
moeabdol has quit [Ping timeout: 276 seconds]
<norc> Dysp: Also note that "puts obj.to_s" is redundant. puts will implicitly call to_s no matter what you pass to it.
<norc> So you can just use "puts val"
<Dysp> Ah okay
<Dysp> Coolio
<norc> Anyhow, the code looks fine at first glance.
<Dysp> But it doesn't work and I don't know why not.
Ishido has quit [Remote host closed the connection]
<Dysp> Damn programming. So hard.
TomyLobo has joined #ruby
djbkd has joined #ruby
drptbl_ has joined #ruby
<norc> Dysp: Does access through [] work properly? i.e. worksheet[0][0]
andikr has quit [Remote host closed the connection]
eljimmy has quit [Quit: This computer has gone to sleep]
Ishido has joined #ruby
<Dysp> norc: Yes. I guess.
TheWhip has quit [Ping timeout: 246 seconds]
rodfersou has quit [Quit: leaving]
tvon has quit [Quit: Peace out, y'all!]
GodFather has quit [Ping timeout: 276 seconds]
drptbl has quit [Ping timeout: 276 seconds]
<norc> Dysp: Well the best thing you can try is throwing this into your pry: worksheet.each.with_index { |row, i| p i, row }
djbkd has quit [Ping timeout: 250 seconds]
<norc> Try to identify the offending row.
ramfjord has joined #ruby
rodfersou has joined #ruby
swills has joined #ruby
rbennacer has joined #ruby
<Dysp> I don't understand what you just wrote.
rbennacer has quit [Remote host closed the connection]
PedramT has joined #ruby
rodfersou has quit [Client Quit]
rbennacer has joined #ruby
<norc> Dysp: .each returns an Enumerator object which can be chained with other things like .with_index to inject an index into the block.
<norc> Dysp: "p obj" is basically "puts obj.inspect"
diegoviola has joined #ruby
Elvin has joined #ruby
<Dysp> *Looking Enumerables up*
<norc> Dysp: *Enumerator
<Dysp> :D
<norc> Dysp: Though Enumerable methods return Enumerator objects.
<norc> If you are familiar with Iterators from say C++ they are the same concept.
PedramT has quit [Remote host closed the connection]
futilegames has quit [Quit: futilegames]
<Dysp> Just going to ask you if it was iterators
<Dysp> Due to a google search
<Dysp> Problem is - I am new to everything. Ruby is my first programming language.
<Dysp> So even when people answer my basic questions, they tend to introduce several new terms I have to look up and understand.
<norc> Dysp: The idea is simple. If your class has some sort of container semantics and implements the method #each, yielding each successive element, then you can include the module "Enumerable" and get all the methods for free.
<Dysp> But I am getting there. Slowly.
jonathanwallace_ has quit [Ping timeout: 244 seconds]
moos3 has quit [Quit: Lost terminal]
ChiefAlexander has quit [Remote host closed the connection]
freerobby has joined #ruby
<Dysp> See, here is what I mean. You think you are answering a question with a simple answer, but you are in fact not (no offence, I really do appreciate help and getting these kind of answer provokes me to look up terminology I do not comprehend).
ChiefAlexander has joined #ruby
jonathanwallace_ has joined #ruby
<Dysp> I have a sense of what a class is. A container I dont know of. The word "semantics" I need to look up, because english is not my first language. Method I get. Yield is something I understand poorly.
<norc> Dysp: Oh, I kind of stepped over your remark that Ruby is your first programming language, my apologies mate.
<Dysp> etc etc. Oh well, no time for whine. Google awaits. Thank you so much for your help ^^
moeabdol has joined #ruby
ramfjord has quit [Ping timeout: 250 seconds]
<norc> Dysp: Once you grasp the concept of Enumerators, you understood one of the core concepts of Ruby (these are basically one of the most common Ruby things around)
`tim` has joined #ruby
<hanmac> Dysp: like a Bookshelf object can have a #each method (and Enumerable) to iterate over the Book objects inside of it.
<Dysp> Indeed! And that is my next step. I will go through some more guides and videos to get a grasp of things
bsharitt has joined #ruby
<Dysp> I shall return! But now. Off work I am. Thank you for your attention
PedramT has joined #ruby
Xeago_ has quit [Remote host closed the connection]
Dysp has quit [Quit: Page closed]
Xeago_ has joined #ruby
duckpuppy has joined #ruby
carella has joined #ruby
Veejay has left #ruby ["WeeChat 0.4.2"]
<norc> Ox0dea: By the way, what happened to your suggestion to Enumerable#any? and the like for things like ary.any?(Fixnum)
<shevy> did he suggest to ruby core?
Limix has joined #ruby
Xeago__ has joined #ruby
Limix has quit [Client Quit]
sfr^ has left #ruby ["Textual IRC Client: www.textualapp.com"]
Xeago_ has quit [Ping timeout: 260 seconds]
Xeago__ has quit [Remote host closed the connection]
<norc> A feature request including patches implementing it were made if memory serves right.
fmcgeough has joined #ruby
moeabdol has quit [Quit: WeeChat 1.4]
mrgrieves has quit [Quit: leaving]
vitinho has joined #ruby
solocshaw has quit [Ping timeout: 276 seconds]
mrgrieves has joined #ruby
bsharitt has quit [Remote host closed the connection]
SilverKey has joined #ruby
skade has joined #ruby
zacstewart has joined #ruby
bsharitt has joined #ruby
tax has joined #ruby
mrgrieves has quit [Client Quit]
GodFather has joined #ruby
Xeago_ has joined #ruby
Xeago_ has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
whippythellama has joined #ruby
chouhoulis has quit [Remote host closed the connection]
freerobby has joined #ruby
mrgrieves has joined #ruby
chouhoulis has joined #ruby
elusiveother has left #ruby ["Leaving"]
kfpratt has joined #ruby
idefine_ has joined #ruby
rojomisin has joined #ruby
sigurding has quit [Quit: sigurding]
idefine_ has quit [Read error: Connection reset by peer]
GodFather has quit [Ping timeout: 240 seconds]
idefine_ has joined #ruby
chouhoulis has quit [Ping timeout: 276 seconds]
idefine has quit [Ping timeout: 276 seconds]
idefine_ has quit [Remote host closed the connection]
idletask has quit [Ping timeout: 246 seconds]
idletask has joined #ruby
idefine has joined #ruby
JesseH2 has joined #ruby
Ispira has joined #ruby
rojomisin has quit [Ping timeout: 244 seconds]
openstruct has joined #ruby
n008f4g_ has joined #ruby
dhollinger has joined #ruby
CloCkWeRX has left #ruby [#ruby]
patientj has joined #ruby
idefine has quit [Remote host closed the connection]
chopin has joined #ruby
noService has joined #ruby
xcesariox has quit [Read error: Connection reset by peer]
lxsameer has quit [Ping timeout: 276 seconds]
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nofacade has joined #ruby
M-mistake has quit [Quit: node-irc says goodbye]
eljimmy has joined #ruby
M-mistake has joined #ruby
idefine has joined #ruby
idefine has quit [Remote host closed the connection]
enslavedtuna has left #ruby [#ruby]
enslavedtuna has joined #ruby
agent_white has joined #ruby
madgen has joined #ruby
Robtop__ has joined #ruby
M-mistake has quit [Quit: node-irc says goodbye]
PedramT has quit [Remote host closed the connection]
idefine has joined #ruby
M-mistake has joined #ruby
PedramT has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 250 seconds]
kareeoleez has quit [Remote host closed the connection]
openstruct has quit []
ta_ has quit [Read error: Connection reset by peer]
ldnunes has quit [Quit: Leaving]
ta_ has joined #ruby
TheWhip has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
idefine_ has joined #ruby
idefine has quit [Remote host closed the connection]
bronson has joined #ruby
aganov has quit [Remote host closed the connection]
djbkd has joined #ruby
solocshaw has joined #ruby
7F1AA241K has joined #ruby
idefine_ has quit [Read error: Connection reset by peer]
ldnunes has joined #ruby
idefine has joined #ruby
madgen has quit [Ping timeout: 276 seconds]
mjuszczak has quit []
polysics has joined #ruby
FilipeChagas has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
idefine has quit [Remote host closed the connection]
GodFather has joined #ruby
ta_ has joined #ruby
PedramT has quit [Ping timeout: 276 seconds]
statu has joined #ruby
idefine has joined #ruby
SilverKey has quit [Quit: Halted.]
djbkd has quit [Ping timeout: 250 seconds]
Xiti` has quit [Quit: Xiti`]
madgen has joined #ruby
norc has quit [Ping timeout: 250 seconds]
FooMunki has quit [Quit: FooMunki]
Xeago_ has joined #ruby
Xeago_ has quit [Remote host closed the connection]
chopin has quit [Remote host closed the connection]
FooMunki has joined #ruby
PedramT has joined #ruby
anisha has quit [Quit: Leaving]
LastWhisper____ has joined #ruby
cjbottaro has joined #ruby
ifsp has joined #ruby
jhack has joined #ruby
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
Xiti has joined #ruby
LastWhisper____ has quit [Ping timeout: 252 seconds]
davedev24 has joined #ruby
kies has quit [Ping timeout: 276 seconds]
mtkd has quit [Ping timeout: 260 seconds]
noService has quit [Ping timeout: 240 seconds]
bronson has quit [Remote host closed the connection]
mtkd has joined #ruby
vitinho has quit [Remote host closed the connection]
polishdub has joined #ruby
lubekpl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
antgel has quit [Ping timeout: 250 seconds]
lubekpl has joined #ruby
hobodave has joined #ruby
lubekpl has quit [Client Quit]
rippa has joined #ruby
boontdustie has joined #ruby
LastWhisper____ has joined #ruby
blur3d has quit [Quit: blur3d]
ravishankarjha has joined #ruby
FilipeChagas has quit [Quit: WeeChat 1.4]
comforte has quit [Ping timeout: 250 seconds]
blackmes1 has joined #ruby
SilverKey has joined #ruby
infra-red has joined #ruby
smathy has joined #ruby
PedramT has quit [Remote host closed the connection]
troulouliou_div2 has quit [Quit: Leaving]
PedramT has joined #ruby
Pupp3tm4st3r has quit [Remote host closed the connection]
n008f4g_ has quit [Ping timeout: 252 seconds]
infra-red has quit [Remote host closed the connection]
themightyabby has joined #ruby
blaxter has quit [Read error: Connection reset by peer]
troulouliou_div2 has joined #ruby
GnuYawk has joined #ruby
GnuYawk has quit [Changing host]
GnuYawk has joined #ruby
Xeago_ has joined #ruby
noService has joined #ruby
CausaMortis has quit [Ping timeout: 246 seconds]
SilverKey has quit [Quit: Halted.]
Xeago_ has quit [Remote host closed the connection]
yardenbar has quit [Ping timeout: 244 seconds]
<ravishankarjha> hi
<themightyabby> hi
godzillaenlacasa has quit [Quit: ZZZZZ....]
<ravishankarjha> who else is watching RailsConf?
<ule> ravishankarjha: streaming?
* bougyman not watching
<ravishankarjha> no dhh :(
SilverKey has joined #ruby
<ravishankarjha> any resource to learn threading?
idefine has quit [Remote host closed the connection]
skade has quit [Quit: Computer has gone to sleep.]
rhg331 has joined #ruby
<shevy> we need rubyconf!
rhg135 has quit [Ping timeout: 246 seconds]
noService has quit [Ping timeout: 260 seconds]
synthroid has quit [Remote host closed the connection]
cjbottaro has quit [Ping timeout: 250 seconds]
boontdustie has quit [Ping timeout: 260 seconds]
jonathanwallace_ has quit [Ping timeout: 244 seconds]
rojomisin has joined #ruby
n008f4g_ has joined #ruby
aufi has quit [Ping timeout: 246 seconds]
PedramT has quit [Remote host closed the connection]
<ravishankarjha> redDotRubyConf is coming in June
djbkd has joined #ruby
circ-user-TARuU has joined #ruby
circ-user-TARuU has left #ruby [#ruby]
<ravishankarjha> i'm waiting for announcement on Ruby 3.0
Phasee has joined #ruby
dopie has joined #ruby
jonathanwallace_ has joined #ruby
idefine has joined #ruby
amclain has joined #ruby
Maturin has quit [Quit: Leaving]
djbkd has quit [Ping timeout: 276 seconds]
scepticulous has quit [Ping timeout: 260 seconds]
PedramT has joined #ruby
GnuYawk has quit [Ping timeout: 260 seconds]
noService has joined #ruby
nofacade has quit [Ping timeout: 240 seconds]
cjbottaro has joined #ruby
<shevy> isn't that a bit early?
Maturin has joined #ruby
elifoster has joined #ruby
<havenwood> ravishankarjha: Wrong conference for Ruby 3. That'd be RubyConf.
<havenwood> ravishankarjha: 2020
<ravishankarjha> hmm.. but i'm optimistic :)
joonty has quit [Ping timeout: 246 seconds]
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Guest38 has joined #ruby
moeabdol has joined #ruby
Rutix has quit []
shibly has joined #ruby
skade has joined #ruby
shibly has left #ruby [#ruby]
jonathanwallace_ has quit [Ping timeout: 240 seconds]
Yiota has joined #ruby
Snowy has quit [Remote host closed the connection]
chouhoulis has joined #ruby
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
LoneHermit has joined #ruby
Yiota has quit [Ping timeout: 246 seconds]
carella has quit [Remote host closed the connection]
duderonomy has quit [Ping timeout: 276 seconds]
LoneHermit has quit [Remote host closed the connection]
bronson has joined #ruby
deadnul__ has quit [Quit: Bye]
ramfjord has joined #ruby
dANOKELOFF has quit [Quit: Ex-Chat]
dopie has quit [Quit: Lost terminal]
duderonomy has joined #ruby
carella has joined #ruby
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
bruce_lee has joined #ruby
davedev2_ has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
[Butch] has joined #ruby
Elvin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
synthroid has joined #ruby
soc42 has quit [Remote host closed the connection]
asker__ has joined #ruby
<asker__> hey guys, has anyone tried to setup swagger with rails ?
fsvehla has quit [Quit: fsvehla]
davedev24 has quit [Ping timeout: 260 seconds]
enslavedtuna has quit [Quit: Page closed]
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
northrup has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dmr8 has joined #ruby
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
<apeiros> ?rails asker__
<ruby[bot]> asker__: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
nando293921 has joined #ruby
ravishankarjha has quit [Remote host closed the connection]
ravishankarjha has joined #ruby
The_Phoenix has joined #ruby
VeryBewitching has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
saneax is now known as saneax_AFK
kareeoleez has joined #ruby
dmr8 has quit [Client Quit]
The_Phoenix has joined #ruby
RegulationD has joined #ruby
kareeoleez has quit [Ping timeout: 244 seconds]
whathappens has joined #ruby
ramfjord has quit [Ping timeout: 246 seconds]
solocshaw has quit [Remote host closed the connection]
solocshaw has joined #ruby
Couch has quit [Ping timeout: 240 seconds]
CausaMortis has joined #ruby
Yiota has joined #ruby
CausaMortis has quit [Max SendQ exceeded]
madgen has quit [Ping timeout: 252 seconds]
CausaMortis has joined #ruby
bnobu has joined #ruby
dmr8 has joined #ruby
gdp has quit [Quit: Leaving]
18WAAV85X has joined #ruby
nisstyre has quit [Ping timeout: 276 seconds]
18WAAV85X has quit [Remote host closed the connection]
djbkd has joined #ruby
madgen has joined #ruby
Ishido has quit [Remote host closed the connection]
skolman_ has joined #ruby
igam` has quit [Quit: long week end]
asker__ has quit [Quit: Page closed]
GnuYawk has joined #ruby
GnuYawk has quit [Changing host]
GnuYawk has joined #ruby
nisstyre has joined #ruby
Ishido has joined #ruby
SCHAAP137 has joined #ruby
rojomisin has quit [Ping timeout: 276 seconds]
madgen has quit [Ping timeout: 260 seconds]
kareeoleez has joined #ruby
CausaMortis has quit [Ping timeout: 252 seconds]
chadhs has joined #ruby
tlaxkit has quit [Quit: ¡Adiós!]
pawnbox has joined #ruby
kareeoleez has quit [Ping timeout: 260 seconds]
Maturin has left #ruby ["Leaving"]
nrd_pxs has joined #ruby
PedramT has quit [Remote host closed the connection]
Guest37414 has quit [Ping timeout: 276 seconds]
rbennacer has quit [Remote host closed the connection]
LastWhisper____ has quit [Ping timeout: 246 seconds]
kareeoleez has joined #ruby
ferr1 has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
gevans has joined #ruby
Rutix has joined #ruby
Rutix has quit [Changing host]
Rutix has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
robbyoconnor has quit [Ping timeout: 260 seconds]
kareeoleez has quit [Ping timeout: 246 seconds]
mark_66 has quit [Remote host closed the connection]
`tim` has joined #ruby
bsharitt has quit [Quit: Leaving]
mikecmpbll has quit [Ping timeout: 240 seconds]
godzillaenlacasa has joined #ruby
panpainter has joined #ruby
blackmes1 has quit [Ping timeout: 276 seconds]
xcesariox has joined #ruby
crayfishx has quit [Ping timeout: 250 seconds]
ta_ has joined #ruby
KervyN has quit [Ping timeout: 240 seconds]
Ebok has quit [Quit: This computer has gone to sleep]
idefine has quit [Remote host closed the connection]
CausaMortis has joined #ruby
scepticulous has joined #ruby
dellavg has quit [Ping timeout: 260 seconds]
pawnbox has quit [Remote host closed the connection]
panpainter is now known as panpainter_
madgen has joined #ruby
panpainter_ is now known as greyzenith
Coldblackice has joined #ruby
ramfjord has joined #ruby
Limix has joined #ruby
rcvalle has joined #ruby
joaumg has joined #ruby
tinylobsta has joined #ruby
A124 has quit [Quit: '']
bluOxigen_ has joined #ruby
bluOxigen has quit [Ping timeout: 244 seconds]
rbennacer has joined #ruby
A124 has joined #ruby
banister has joined #ruby
Guest37414 has joined #ruby
blaxter has joined #ruby
tinylobsta has quit [Quit: Leaving.]
kareeoleez has joined #ruby
pawnbox has joined #ruby
giz|work has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
GnuYawk has quit [Remote host closed the connection]
madgen has quit [Ping timeout: 276 seconds]
bluOxigen_ has quit [Remote host closed the connection]
Cohedrin has joined #ruby
jaruga___ has quit [Quit: jaruga___]
bluOxigen has joined #ruby
mtkd has quit [Ping timeout: 246 seconds]
drptbl_ has quit [Quit: My MAC has gone to sleep. zZz..]
A124 has quit [Quit: '']
A124 has joined #ruby
diegoaguilar has quit [Ping timeout: 276 seconds]
kareeoleez has quit [Ping timeout: 276 seconds]
mtkd has joined #ruby
madgen has joined #ruby
Ishido has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
idefine has joined #ruby
Ishido has joined #ruby
<shevy> hmm what was the simple way to split up an array into chunk-sizes of 80 elements each?
sarbs has joined #ruby
A124 has quit [Client Quit]
mtkd has quit [Read error: Connection timed out]
A124 has joined #ruby
charliesome has joined #ruby
<shevy> ah each slice
Guest37414 has quit [Ping timeout: 276 seconds]
mtkd has joined #ruby
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hobodave has quit [Quit: Computer has gone to sleep.]
idefine has quit [Ping timeout: 252 seconds]
pietr0 has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pandaant has quit [Remote host closed the connection]
charliesome has quit [Client Quit]
`tim` has joined #ruby
scepticulous has quit [Ping timeout: 250 seconds]
carella has quit [Remote host closed the connection]
hightower3 has quit [Remote host closed the connection]
sepp2k1 has joined #ruby
whathappens has quit [Remote host closed the connection]
sepp2k has quit [Ping timeout: 252 seconds]
roelof has joined #ruby
tinylobsta has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
kareeoleez has joined #ruby
sgambino has joined #ruby
symm- has joined #ruby
justin_pdx has joined #ruby
tinylobsta has quit [Client Quit]
Ishido has quit [Remote host closed the connection]
<pipework> roelof: Read it. Look for "got" and look at your code on line 7. You aren't getting what you think you're getting.
<roelof> yes, that I know but I do not see why im getting the wrong output
whathappens has joined #ruby
<roelof> at some way ruby makes a hash instead of a string
<pipework> roelof: investigate what `name` is.
Ishido has joined #ruby
rojomisin has joined #ruby
kareeoleez has quit [Ping timeout: 276 seconds]
<pipework> The test failure is telling you that name isn't what you think it is. That's how you read the test. Go fix it.
<pipework> Look at name after L3, puts it, do whatever you want to get at it. Pry if you like
<roelof> aha, name is a hash : hello(:name => 'dolly')
Limix has quit [Quit: Limix]
<roelof> so, I have to take the contents of :name first out
claw has quit [Ping timeout: 250 seconds]
<llua> and remove the additional whitespace around it
SilverKey has quit [Quit: Halted.]
Puffball has quit [Ping timeout: 252 seconds]
diegoaguilar has joined #ruby
Puffball has joined #ruby
yardenbar has joined #ruby
rojomisin has quit [Ping timeout: 252 seconds]
banister has joined #ruby
graft has quit [Quit: Lost terminal]
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
vF3hNGxc47h8 has joined #ruby
tinylobsta has joined #ruby
DoubleMalt has joined #ruby
GnuYawk has joined #ruby
GnuYawk has quit [Changing host]
GnuYawk has joined #ruby
carella has joined #ruby
carella has quit [Remote host closed the connection]
polysics has quit []
carella has joined #ruby
isxek has quit [Quit: Leaving]
mikecmpbll has joined #ruby
spiette has joined #ruby
<roelof> pipework: thanks, I got it working
<pipework> roelof: great! cheers
<roelof> next time first take a look what the input is , Another learning point
madgen has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Client Quit]
hahuang61 has joined #ruby
minimalism has quit [Quit: minimalism]
chadhs has quit [Quit: Textual IRC Client: www.textualapp.com]
kareeoleez has joined #ruby
mjuszczak has joined #ruby
minimalism has joined #ruby
mjuszczak has quit [Client Quit]
hahuang65 has quit [Ping timeout: 250 seconds]
skade has quit [Quit: Computer has gone to sleep.]
zacstewart has quit [Ping timeout: 252 seconds]
haylon has joined #ruby
<haylon> In my gemspec, can I specify a source per dependency, or should I do that in the Gemfile?
<apeiros> sources are not the concern of a gemspec
mjuszczak has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
charliesome has joined #ruby
mjuszczak has joined #ruby
kareeoleez has quit [Ping timeout: 260 seconds]
cjbottaro has quit [Ping timeout: 260 seconds]
sj has joined #ruby
lsmola has quit [Ping timeout: 246 seconds]
djbkd_ has joined #ruby
hxegon_afk is now known as hxegon
idefine has joined #ruby
tercenya has quit []
LastWhisper____ has joined #ruby
LastWhisper____ has quit [Read error: Connection reset by peer]
LastWhisper____ has joined #ruby
LastWhisper____ has quit [Read error: Connection reset by peer]
Ebok has joined #ruby
karapety_ has joined #ruby
blackmes1 has joined #ruby
aupadhye has quit [Ping timeout: 250 seconds]
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tercenya has joined #ruby
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
djbkd_ has quit [Ping timeout: 260 seconds]
<haylon> apeiros: I should do it in the Gemfile explicitly then
nanoz has joined #ruby
claw has joined #ruby
blackmes1 has quit [Ping timeout: 246 seconds]
kareeoleez has joined #ruby
tax has quit [Ping timeout: 260 seconds]
infra-red has joined #ruby
codecop has joined #ruby
b7u3f1ng3r has joined #ruby
Yxhuvud has quit [Ping timeout: 250 seconds]
rbennace_ has joined #ruby
rbennace_ has quit [Remote host closed the connection]
rbennacer has quit [Read error: Connection reset by peer]
rbennacer has joined #ruby
jonathanwallace_ has joined #ruby
yeticry has quit [Quit: leaving]
hobodave has joined #ruby
chouhoul_ has joined #ruby
whathappens has quit [Remote host closed the connection]
7F1AA241K has quit [Remote host closed the connection]
whathappens has joined #ruby
fsvehla has joined #ruby
chouhoulis has quit [Ping timeout: 246 seconds]
diegoaguilar has quit [Remote host closed the connection]
swills has quit [Quit: Leaving]
lubekpl has joined #ruby
zacstewart has joined #ruby
PedramT has joined #ruby
whathappens has quit [Remote host closed the connection]
fsvehla has quit [Quit: fsvehla]
infra-red has quit []
ta_ has quit [Read error: Connection reset by peer]
fsvehla has joined #ruby
zacstewart has quit [Ping timeout: 252 seconds]
blackmes1 has joined #ruby
PedramT has quit [Ping timeout: 240 seconds]
ferr has quit [Quit: WeeChat 1.4]
deadnull_ has joined #ruby
Elvin has joined #ruby
karapety_ has quit [Remote host closed the connection]
ta_ has joined #ruby
karapetyan has joined #ruby
roelof has quit [Ping timeout: 250 seconds]
karapetyan has quit [Read error: Connection reset by peer]
mwlang has joined #ruby
karapetyan has joined #ruby
mjuszczak has quit []
kaleido has joined #ruby
solocshaw has quit [Read error: Connection reset by peer]
solocshaw1 has joined #ruby
karapety_ has joined #ruby
freerobby has quit [Quit: Leaving.]
karapetyan has quit [Read error: Connection reset by peer]
<kaleido> x = 5 and i want to create server 1 - server5 based on whatever value x has
deadnull_ has quit [Quit: Bye]
karapety_ has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
<kaleido> im a noob but im also drawing a blank but it seems like it should be very simple
solocshaw1 is now known as solocshaw
whathappens has joined #ruby
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
blackmes1 has quit [Ping timeout: 246 seconds]
mjuszczak has joined #ruby
LastWhisper____ has joined #ruby
<apeiros> what do you mean by server1 - server5? strings? local variables? methods?
<kaleido> strings
<kaleido> sorry
`tim` has joined #ruby
<apeiros> kaleido: what have you tried so far?
jonathanwallace_ has quit [Ping timeout: 265 seconds]
tbeg has joined #ruby
<kaleido> staring at sublime text with a blank expression on my face, honestly. im trying to do this while on a series of conf calls
<apeiros> o0
<apeiros> on a series of conf calls?
<apeiros> it's an interview question?
elaptics is now known as elaptics`away
<kaleido> no, i promise im not cheating. i dont even do this for more than a hobby
davedev2_ has quit [Remote host closed the connection]
<apeiros> what ways do you know in ruby to iterate from 1 to x?
davedev24 has joined #ruby
tagaulap has quit [Quit: Connection closed for inactivity]
cjbottaro has joined #ruby
idefine has quit [Remote host closed the connection]
RegulationD has quit [Remote host closed the connection]
idefine has joined #ruby
tvsutton_ has quit [Quit: Quit]
ferr1 has quit [Quit: WeeChat 1.4]
jgt has joined #ruby
edwinvdgraaf has joined #ruby
<kaleido> im trying to write a very basic webpage that will generate tmsh commands for an f5
chopin has joined #ruby
<kaleido> could i (1..x).each do |yay|
SilverKey has joined #ruby
<apeiros> ok. that's a good start. and how do you append to an array?
jonathanwallace_ has joined #ruby
idefine_ has joined #ruby
<kaleido> .push?
davedev24 has quit [Ping timeout: 250 seconds]
greves has joined #ruby
<greves> hello, just trying to install the bourbon gem on windows and just installed ruby via the installer, getting this error message and nothing helpful from a quick google: C:\ruby\2.3.0\bin\ruby.exe: No such file or directory -- /cygdrive/c/ruby/2.3.0/bin/gem (LoadError)
<apeiros> kaleido: yes. and given `yay = 2`, how do you get "server2"?
zeroDivisible has joined #ruby
idefine has quit [Ping timeout: 252 seconds]
CausaMortis has quit [Ping timeout: 260 seconds]
lubekpl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nofacade has joined #ruby
<kaleido> servers = [] ; servers.push("server" + yay) ?
fsvehla has quit [Quit: fsvehla]
drusepth has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
<apeiros> the question was only concerned about the `"server" + yay` part. but that won't work because String#+ expects a String, and yay is an Integer
<apeiros> >> yay = 2; "server" + yay
<ruby[bot]> apeiros: # => no implicit conversion of Fixnum into String (TypeError) ...check link for more (https://eval.in/565525)
idefine_ has quit [Remote host closed the connection]
<apeiros> so if you want to use +, you have to convert yay to a String first
<kaleido> servers = [] ; servers.push("server" + yay.to_s) ?
<kaleido> or i have to do .to_s before the push?
<apeiros> ok. yes. now you're lacking the (1..x).each do |yay|
<apeiros> you do the to_s before the push in your code.
idefine has joined #ruby
<kaleido> do i have to create the empty array first or will a push create it?
tvsutton has joined #ruby
<apeiros> servers.push("server" + yay.to_s) -> execution order is `yay.to_s`, then `"server" + …`, then servers.push(…)`
<apeiros> kaleido: think about it - you call methods on objects. on which object would you call push on if it doesn't exist yet?
<kaleido> gotcha, but i need to create it outside of the block, or ill blow it away with every iteration
<apeiros> correct
<apeiros> so what's your final code?
gevans has quit [Read error: Connection reset by peer]
govg has quit [Ping timeout: 250 seconds]
aeterne has joined #ruby
<kaleido> servers = [] ; x = 5 ; (1..x).each do |yay| { yay.to_s ; server = "server" + yay ; servers.push("server")
<kaleido> i think
<apeiros> it's either `each do |yay|`, or `each { |yay|`
<apeiros> never both, do and {
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
<kaleido> ok, got it
<apeiros> and you're missing either the `end` or the `}`
karapetyan has quit [Remote host closed the connection]
<kaleido> oh crap
<apeiros> and last: servers.push(server)
<apeiros> servers.push("server") would just push the string "server", not the content of the variable `server`
<kaleido> right, cause its a variable now
idefine has quit [Ping timeout: 252 seconds]
karapetyan has joined #ruby
SilverKey has quit [Quit: Halted.]
<baweaver> >> string = 'nope'; a = []; a.push('string')
<ruby[bot]> baweaver: # => ["string"] (https://eval.in/565526)
drusepth has quit [Quit: Lost terminal]
<apeiros> kaleido: when you've shown me a finished version of the code, I'll show you an idiomatic solution.
djbkd has quit [Remote host closed the connection]
CausaMortis has joined #ruby
nisstyre has quit [Changing host]
nisstyre has joined #ruby
postmodern has joined #ruby
idefine has joined #ruby
djbkd has joined #ruby
synthroid has quit [Remote host closed the connection]
SilverKey has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
jgt has quit [Ping timeout: 260 seconds]
djbkd has joined #ruby
davedev24 has joined #ruby
skade has joined #ruby
hahuang61 has quit [Quit: WeeChat 1.4]
jonathanwallace_ has quit [Ping timeout: 276 seconds]
<kaleido> i changed names but its essentially the same
<apeiros> name.to_s won't change name
<apeiros> it returns a new object
<apeiros> so `name = name.to_s`
<kaleido> shoot
skade has quit [Excess Flood]
voidDotClass has quit [Ping timeout: 246 seconds]
<apeiros> and if client_id is an integer, you'll need to_s there too
akem has quit [Read error: Connection reset by peer]
<apeiros> anyway, here the idiomatic solution:
charliesome has joined #ruby
<apeiros> >> x = 3; servers = (1..x).map { |i| "server#{i}" }; servers
<ruby[bot]> apeiros: # => ["server1", "server2", "server3"] (https://eval.in/565547)
PedramT has joined #ruby
nertzy2 has quit [Read error: Connection reset by peer]
symm- has quit [Ping timeout: 246 seconds]
<apeiros> gtg
gamer_ has joined #ruby
dionysus69 has joined #ruby
SilverKe_ has joined #ruby
voidDotClass has joined #ruby
skade has joined #ruby
nertzy2 has joined #ruby
zacstewart has joined #ruby
chopin has quit [Remote host closed the connection]
SilverKey has quit [Read error: Connection reset by peer]
karapetyan has quit [Read error: Connection reset by peer]
Elvin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
synthroid has joined #ruby
LW___ has joined #ruby
borodin has quit [Ping timeout: 240 seconds]
Lycaonian has quit [Ping timeout: 240 seconds]
jonathanwallace_ has joined #ruby
jenrzzz_ has joined #ruby
e4xit has joined #ruby
GodFather has quit [Ping timeout: 246 seconds]
karapetyan has joined #ruby
LastWhisper____ has quit [Ping timeout: 265 seconds]
voidDotClass has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
karapety_ has joined #ruby
RegulationD has joined #ruby
ChiefAlexander has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
whathappens has quit [Remote host closed the connection]
charliesome has joined #ruby
noService has quit [Ping timeout: 260 seconds]
karapetyan has quit [Read error: No route to host]
charliesome has quit [Client Quit]
Asher has quit [Quit: Leaving.]
mjuszczak has quit []
Asher has joined #ruby
jonathanwallace_ has quit [Ping timeout: 260 seconds]
noService has joined #ruby
sp4rrow has joined #ruby
sp4rrow has quit [Client Quit]
CausaMortis has quit [Ping timeout: 250 seconds]
chouhoulis has joined #ruby
dionysus69 has quit [Ping timeout: 244 seconds]
chouhoulis has quit [Client Quit]
ChiefAlexander has quit [Ping timeout: 265 seconds]
whathappens has joined #ruby
jonathanwallace_ has joined #ruby
ChiefAlexander has joined #ruby
LW___ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nerium has quit [Quit: nerium]
whathapp_ has joined #ruby
mjuszczak has joined #ruby
flashpoint9 has joined #ruby
chouhoul_ has quit [Ping timeout: 252 seconds]
umdstu has quit [Quit: umdstu]
evidex has quit [Remote host closed the connection]
voidDotClass has joined #ruby
ldnunes has quit [Read error: Connection reset by peer]
whathappens has quit [Ping timeout: 240 seconds]
ldnunes has joined #ruby
cdg has quit [Remote host closed the connection]
hahuang65 has joined #ruby
Elvin has joined #ruby
x77686d has joined #ruby
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
`tim` has joined #ruby
freerobby has quit [Quit: Leaving.]
swills has joined #ruby
pglombardo has joined #ruby
troulouliou_div2 has quit [Remote host closed the connection]
Ebok has quit [Quit: This computer has gone to sleep]
whathapp_ has quit [Remote host closed the connection]
b7u3f1ng3r has left #ruby [#ruby]
<kaleido> apeiros: thank you very much again
b7u3f1ng3r has joined #ruby
synthroi_ has joined #ruby
Dysp has joined #ruby
kirun has joined #ruby
statu has quit [Remote host closed the connection]
<Dysp> What is the Rails channel?
<apeiros> ?rails
<ruby[bot]> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<Dysp> <3
<apeiros> it's well hidden
synthroid has quit [Ping timeout: 265 seconds]
<Dysp> Haha, I simply just tried rails
bnobu has quit [Ping timeout: 240 seconds]
jonathanwallace_ has quit [Ping timeout: 276 seconds]
crystal77 has joined #ruby
bnobu has joined #ruby
craysiii has quit [Remote host closed the connection]
rbennacer has quit [Remote host closed the connection]
failshell has joined #ruby
jonathanwallace_ has joined #ruby
mjuszczak has quit [Ping timeout: 244 seconds]
patientj has left #ruby [#ruby]
Phasee has quit [Quit: Leaving]
craysiii has joined #ruby
<shevy> yeah sorta weird
<shevy> there used to be #ruby-lang - now it is just #ruby
<shevy> and we have #rubyonrails - could just do it #rails and ask questions for railways!
swills has quit [Ping timeout: 265 seconds]
sp4rrow has joined #ruby
tinylobsta has quit [Quit: Leaving.]
<shevy> or #homebrew and ask how to make beer
mjuszczak has joined #ruby
tinylobsta has joined #ruby
tinylobsta has quit [Client Quit]
noService has quit [Ping timeout: 276 seconds]
PedramT has quit [Remote host closed the connection]
griffindy has joined #ruby
dhollinger has quit [Quit: WeeChat 1.4]
zeroDivisible has quit [Ping timeout: 260 seconds]
cpruitt has joined #ruby
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
PedramT has joined #ruby
whathappens has joined #ruby
`tim` has joined #ruby
yqt has joined #ruby
sarbs has quit [Max SendQ exceeded]
jonathanwallace_ has quit [Ping timeout: 276 seconds]
sarbs has joined #ruby
griffindy has quit [Ping timeout: 276 seconds]
Devalo has joined #ruby
Moosashi has joined #ruby
freerobby has joined #ruby
der-landgraf has joined #ruby
d0lph1n98 has quit [Ping timeout: 240 seconds]
jonathanwallace_ has joined #ruby
rbennacer has joined #ruby
n008f4g_ has quit [Ping timeout: 276 seconds]
bnobu has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bnobu has joined #ruby
jonathanwallace_ has quit [Ping timeout: 276 seconds]
n008f4g_ has joined #ruby
P4Titan has joined #ruby
Moosashi has quit [Read error: No route to host]
GnuYawk has quit [Remote host closed the connection]
<P4Titan> Hello all. Is there a particular reason that in ruby (though unlike C), if statements with conditions that return 0, still pass as true
noService has joined #ruby
Moosashi has joined #ruby
SilverKe_ has quit [Quit: Halted.]
mostlybadfly has joined #ruby
<apeiros> P4Titan: yes, the reason is that only false and nil are considered falsy
<havenwood> P4Titan: In Ruby only `nil` and `false` are falsey. Everything else is truthy.
<P4Titan> interesting
<P4Titan> I guess I just have to work with that then
yfeldblum has joined #ruby
<havenwood> >> 0.nonzero?
<ruby[bot]> havenwood: # => nil (https://eval.in/565579)
Ebok has joined #ruby
djbkd_ has joined #ruby
finisherr has joined #ruby
Silox| has joined #ruby
noService has quit [Ping timeout: 246 seconds]
noService has joined #ruby
<P4Titan> thanks
djbkd_ has quit [Ping timeout: 276 seconds]
whathappens has quit [Remote host closed the connection]
idefine_ has joined #ruby
IrishGringo has quit [Ping timeout: 276 seconds]
FooMunki has quit [Quit: FooMunki]
whathappens has joined #ruby
Moosashi has quit [Quit: Moosashi]
craysiii has quit [Remote host closed the connection]
FooMunki has joined #ruby
idefine has quit [Ping timeout: 244 seconds]
Devalo has quit [Remote host closed the connection]
jgt has joined #ruby
mjuszczak has quit []
toretore has quit [Ping timeout: 240 seconds]
karapety_ has quit [Remote host closed the connection]
jenrzzz_ has quit [Ping timeout: 244 seconds]
whathappens has quit [Remote host closed the connection]
al2o3-cr has quit [Ping timeout: 244 seconds]
ferr has joined #ruby
whathappens has joined #ruby
idefine_ has quit [Remote host closed the connection]
tbeg has quit [Quit: leaving]
IrishGringo has joined #ruby
idefine has joined #ruby
whathapp_ has joined #ruby
whathapp_ has quit [Read error: Connection reset by peer]
bdnelson has joined #ruby
whathapp_ has joined #ruby
emilford has quit [Ping timeout: 260 seconds]
whathappens has quit [Ping timeout: 252 seconds]
chopin has joined #ruby
whathapp_ has quit [Remote host closed the connection]
dikaio has joined #ruby
whathappens has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
Phasee has joined #ruby
bronson has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
ta__ has joined #ruby
tax has joined #ruby
<rubirc> hi guys, there is like this method called 'gem'
<rubirc> its really hard to google it up on what it does
<rubirc> maybe someone has a link or a suggestion what to google instead?
whathappens has quit [Remote host closed the connection]
bdnelson has quit [Quit: Textual IRC Client: www.textualapp.com]
solocshaw has quit [Ping timeout: 246 seconds]
bdnelson has joined #ruby
LastWhisper____ has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
chouhoulis has joined #ruby
<baweaver> ?
chouhoul_ has joined #ruby
craysiii has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
<rubirc> !
zacstewart has quit [Ping timeout: 244 seconds]
KervyN has joined #ruby
jhack has quit [Quit: jhack]
infra-red has joined #ruby
infra-red has quit [Client Quit]
chouhoul_ has quit [Remote host closed the connection]
whathappens has joined #ruby
chouhoul_ has joined #ruby
Dysp has quit []
chouhoulis has quit [Ping timeout: 240 seconds]
whathappens has quit [Remote host closed the connection]
<pipework> rubirc: it comes from bundler look there
whathappens has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
n008f4g_ has quit [Ping timeout: 260 seconds]
eregon_ is now known as eregon
chouhoulis has joined #ruby
<havenwood> pipework: it's from RubyGems though, so ships with Ruby
whathappens has quit [Remote host closed the connection]
emilford has joined #ruby
Gasher has quit [Ping timeout: 276 seconds]
<pipework> havenwood: Ah yeah I've seen that, I didn't know that was rubygems adding it though. Explains why I didn't really find where it was before in bundler's source. :D
giz|work has quit [Ping timeout: 260 seconds]
Authenticator has left #ruby [#ruby]
Ebok has quit [Quit: This computer has gone to sleep]
last_staff has quit [Quit: last_staff]
al2o3-cr has joined #ruby
blackmes1 has joined #ruby
dellavg has joined #ruby
SilverKey has joined #ruby
LoneHerm_ has joined #ruby
grenierm has joined #ruby
dikaio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bnobu has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Ebok has joined #ruby
n008f4g_ has joined #ruby
jaruga___ has joined #ruby
roshanavand_ has joined #ruby
synthroid has joined #ruby
tax has quit [Ping timeout: 240 seconds]
nerium has joined #ruby
bnobu has joined #ruby
synthroi_ has quit [Ping timeout: 244 seconds]
scepticulous has joined #ruby
Gasher has joined #ruby
codecop has quit [Remote host closed the connection]
roshanavand has quit [Ping timeout: 276 seconds]
roshanavand_ has quit [Ping timeout: 252 seconds]
<kaleido> is there a simple/elegant way to take a value from one array and make it the key, and a value from a second array and make it the value in a hash? the values will have the same index
<baweaver> &ri Enumerable#zip
<kaleido> baweaver: thanks :)
<baweaver> kaleido: take time to read through all of that document
Synthead has quit [Remote host closed the connection]
<baweaver> including the other methods
<baweaver> Enumerable is where a lot of the power of Ruby comes into play, and having a good understanding of it is well worth the time.
<kaleido> thank you, i will
firstdayonthejob has joined #ruby
chopin has quit [Ping timeout: 244 seconds]
GodFather has joined #ruby
nofxx has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
Synthead has joined #ruby
PedramT has quit []
dikaio has joined #ruby
idefine_ has joined #ruby
yqt has quit [Ping timeout: 244 seconds]
andromedian has joined #ruby
idefine has quit [Ping timeout: 252 seconds]
chopin has joined #ruby
stannard has quit [Remote host closed the connection]
sepp2k1 has quit [Read error: Connection reset by peer]
stannard has joined #ruby
cdg has joined #ruby
idefine_ has quit [Remote host closed the connection]
SilverKey has quit [Quit: Halted.]
Puffball has quit [Remote host closed the connection]
idefine_ has joined #ruby
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
djbkd has quit [Remote host closed the connection]
ledestin has joined #ruby
andromedian has quit [Ping timeout: 250 seconds]
sp4rrow has joined #ruby
nando293921 has quit [Ping timeout: 276 seconds]
yqt has joined #ruby
djbkd has joined #ruby
chopin has quit [Remote host closed the connection]
Puffball has joined #ruby
weemsledeux has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
dostoyev1ky is now known as dostoyevsky
djbkd has quit [Ping timeout: 260 seconds]
diegoviola is now known as dviola
grenierm has quit [Quit: grenierm]
idefine has joined #ruby
northrup has joined #ruby
jhack has joined #ruby
SilverKey has joined #ruby
giz|work has joined #ruby
TheWhip has quit [Ping timeout: 244 seconds]
idefine has quit [Remote host closed the connection]
roshanavand has joined #ruby
idefine_ has quit [Ping timeout: 260 seconds]
AlexRussia has joined #ruby
lxsameer has joined #ruby
Devalo has joined #ruby
karapetyan has joined #ruby
elifoster has quit [Ping timeout: 252 seconds]
stannard has quit [Remote host closed the connection]
bdnelson has quit [Quit: Textual IRC Client: www.textualapp.com]
pglombardo has quit []
Devalo has quit [Ping timeout: 250 seconds]
ur5us has joined #ruby
GinoMan2440 has quit [Ping timeout: 244 seconds]
chrisja has joined #ruby
karapetyan has quit [Ping timeout: 265 seconds]
chouhoulis has quit []
skolman_ has quit [Remote host closed the connection]
Moosashi has joined #ruby
stannard has joined #ruby
synthroid has quit []
chouhoulis has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
giz|work has quit [Ping timeout: 244 seconds]
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
emilford has quit [Ping timeout: 260 seconds]
idefine has joined #ruby
nofxx has quit [Ping timeout: 240 seconds]
eljimmy has quit [Quit: This computer has gone to sleep]
zacstewart has joined #ruby
roshanavand has quit [Quit: This computer has gone to sleep]
croberts has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
sdothum has joined #ruby
Moosashi has quit [Quit: Moosashi]
sp4rrow has joined #ruby
emilford has joined #ruby
ixti has joined #ruby
noService has quit [Ping timeout: 276 seconds]
LoneHerm_ has quit [Remote host closed the connection]
Shardik has joined #ruby
jaruga___ has quit [Quit: jaruga___]
idefine has quit [Ping timeout: 265 seconds]
yardenbar has quit [Ping timeout: 260 seconds]
greyzenith has quit [Remote host closed the connection]
roshanavand has joined #ruby
cpruitt has quit [Quit: cpruitt]
neanderslob has joined #ruby
x77686d has quit [Quit: x77686d]
giz|work has joined #ruby
skolman_ has joined #ruby
jaruga___ has joined #ruby
jaruga___ has quit [Client Quit]
scepticulous has quit [Ping timeout: 250 seconds]
<havenwood> >> $SAFE
<ruby[bot]> havenwood: # => 0 (https://eval.in/565619)
<havenwood> oops, wrong channel >.>
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
mikecmpbll has joined #ruby
Ispira has quit []
madgen has joined #ruby
noService has joined #ruby
djbkd has joined #ruby
zacstewart has quit [Ping timeout: 246 seconds]
hobodave has quit [Ping timeout: 276 seconds]
noService has quit [Client Quit]
jenrzzz has quit [Ping timeout: 252 seconds]
Ebok has quit [Quit: Leaving]
Lomex has joined #ruby
rbennacer has quit [Ping timeout: 244 seconds]
chouhoulis has quit [Ping timeout: 240 seconds]
roshanavand has quit [Read error: Connection reset by peer]
icedp has joined #ruby
nofxx has joined #ruby
roshanavand has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
elifoster has joined #ruby
banister has quit [Quit: Textual IRC Client: www.textualapp.com]
SilverKey has quit [Quit: Halted.]
godzillaenlacasa has quit [Quit: ZZZZZ....]
ldnunes has quit [Quit: Leaving]
flashpoint9 has joined #ruby
zacstewart has joined #ruby
nanoz has quit [Ping timeout: 276 seconds]
idefine has joined #ruby
andromedian has joined #ruby
<andromedian> what does def set_results_layout(default: :grid)
<andromedian> def set_results_layout(default: :grid) what does exactly (default: grid) does? Where I can read more in order to understand it?
<adaedra> between ( and ) are the function parameters
<adaedra> the form with key: value are called keyword arguments or "kwargs" for short. The latter should be a good thing to give Google for lot of resources on them.
Elvin has quit [Quit: Textual IRC Client: www.textualapp.com]
Spami has quit [Quit: This computer has gone to sleep]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
idefine has quit [Ping timeout: 240 seconds]
failshell has quit [Remote host closed the connection]
fmcgeough has quit [Quit: fmcgeough]
rodfersou has joined #ruby
e4xit has quit [Quit: Right I'm out!]
kareeoleez has quit [Remote host closed the connection]
mdw has joined #ruby
sp4rrow has joined #ruby
roshanavand has quit [Read error: Connection reset by peer]
roshanavand has joined #ruby
ramortegui has quit [Quit: Ex-Chat]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
carella has quit [Ping timeout: 276 seconds]
blackmes1 has quit [Ping timeout: 260 seconds]
bazz_ has quit [Read error: Connection reset by peer]
giz|work has quit [Ping timeout: 260 seconds]
whathappens has joined #ruby
_blizzy_ has joined #ruby
_blizzy_ has quit [Remote host closed the connection]
FooMunki has quit [Quit: FooMunki]
idefine has joined #ruby
whathapp_ has joined #ruby
vdamewood has joined #ruby
FooMunki has joined #ruby
djbkd_ has joined #ruby
VeryBewitching has quit [Quit: Konversation terminated!]
kareeoleez has joined #ruby
milesmatthias has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
idefine has quit [Remote host closed the connection]
idefine_ has joined #ruby
<andromedian> thanks adaedra I understand that is a keyword argument but is this consider like one? I guess I don't get the ruby code inside the argument
mdw has quit [Quit: Sleeping Zzzzz]
<adaedra> I don't understand your question
whathappens has quit [Ping timeout: 276 seconds]
idefine_ has quit [Remote host closed the connection]
n|9932 has joined #ruby
<adaedra> (default: :grid): your declaring a keyword argument `default` which has for default value `:grid`
<n|9932> ruby is confsing
<n|9932> confusing*
<adaedra> !badnick n|9932
n|9932 was kicked from #ruby by ruby[bot] [nickname is not suitable for this channel, see http://ruby-community.com/pages/user_rules]
djbkd_ has quit [Ping timeout: 246 seconds]
rhg331 is now known as rhg135
<andromedian> so default: is a ruby keyword that sets the default value for the argument if it is not passed?
<adaedra> no
whathapp_ has quit [Remote host closed the connection]
<adaedra> it defines a kwarg named default that has :grid as default argument
<adaedra> the naming in your sample is a bit confusing, let's go back to foobar.
whathappens has joined #ruby
<andromedian> I think I understand what you are saying but thanks for elaborating
<adaedra> given a method foo(bar: :baz)
flashpoint9 has quit [Remote host closed the connection]
<adaedra> you declare a kwarg `bar` which has a default value of :baz
madgen has quit [Ping timeout: 260 seconds]
<adaedra> inside the method, you get a variable `bar` which is the value of this argument
<adaedra> you can either call `foo(bar: :something)`, and then bar would be `:something`
<adaedra> or just `foo()`, then `bar` would be `:baz`
<adaedra> it's like foo(bar = :baz) with "classical" arguments
lxsameer has quit [Ping timeout: 240 seconds]
eljimmy has joined #ruby
whathappens has quit [Remote host closed the connection]
sepp2k has joined #ruby
FooMunki has quit [Quit: FooMunki]
moeabdol has quit [Ping timeout: 246 seconds]
<andromedian> and can I do foo(:something) ? or i need to do foo(bar: :something:)?
<adaedra> foo(bar: :something)
whathappens has joined #ruby
IrishGringo has quit [Ping timeout: 260 seconds]
<andromedian> ok thanks a lot! adaedra
<adaedra> it's the difference between old arguments and kwargs: you have to name the latter
<adaedra> but look them up, there's many good resources that explains them better than I would here
<adaedra> and don't hesitate to play with them
whathappens has quit [Remote host closed the connection]
skade has joined #ruby
haylon has quit [Quit: WeeChat 1.4]
x77686d has joined #ruby
Silox| has quit [Quit: Connection closed for inactivity]
YP-QMUL-W has joined #ruby
x77686d has quit [Client Quit]
diegoaguilar has joined #ruby
whathappens has joined #ruby
<andromedian> Thanks again adaedra
Ishido has quit [Remote host closed the connection]
lkba has joined #ruby
whathapp_ has joined #ruby
duckpuppy has quit [Ping timeout: 252 seconds]
Madplatypus has joined #ruby
gizmore has joined #ruby
IrishGringo has joined #ruby
mtkd has quit [Ping timeout: 244 seconds]
`tim` has joined #ruby
brent__ has joined #ruby
whathappens has quit [Ping timeout: 250 seconds]
mtkd has joined #ruby
kareeoleez has quit [Remote host closed the connection]
nofacade has quit [Ping timeout: 246 seconds]
madgen has joined #ruby
P4Titan has quit [Ping timeout: 265 seconds]
tjohnson has joined #ruby
x77686d has joined #ruby
stannard has quit [Remote host closed the connection]
tvon has joined #ruby
banister has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
rbennacer has joined #ruby
xlegoman has joined #ruby
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
jenrzzz has joined #ruby
oncall-pokemon has quit [Quit: Connection closed for inactivity]
claw has quit [Ping timeout: 252 seconds]
vF3hNGxc47h8 has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
IrishGringo has quit [Ping timeout: 240 seconds]
madgen has quit [Ping timeout: 265 seconds]
pawnbox has quit [Read error: Connection reset by peer]
troulouliou_div2 has joined #ruby
Moosashi has joined #ruby
djbkd has quit [Remote host closed the connection]
YP-QMUL-W has quit [Read error: Connection reset by peer]
elifoster has quit [Ping timeout: 265 seconds]
djbkd has joined #ruby
YP-QMUL-W has joined #ruby
Shardik has quit [Quit: Leaving]
djbkd has quit [Remote host closed the connection]
nando293921 has joined #ruby
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sp4rrow has joined #ruby
emilford has quit [Ping timeout: 250 seconds]
YP-QMUL-W has quit [Read error: Connection reset by peer]
`tim` has quit [Ping timeout: 246 seconds]
finisherr has quit [Quit: finisherr]
mikecmpbll has joined #ruby
Devalo has joined #ruby
j0n3 has quit [Quit: Leaving]
troulouliou_div2 has quit [Quit: Leaving]
idefine has joined #ruby
djbkd has joined #ruby
d0nn1e has quit [Ping timeout: 250 seconds]
johnmilton has quit [Remote host closed the connection]
d0nn1e has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
malconis has quit [Ping timeout: 276 seconds]
edwinvdgraaf has quit [Remote host closed the connection]
rbennacer has quit [Remote host closed the connection]
Devalo has quit [Ping timeout: 250 seconds]
sgambino has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> why are there so few games using ruby?
idefine has quit [Ping timeout: 276 seconds]
<workmad3> shevy: because game devs suck
rbennacer has joined #ruby
<weaksauce> scripting languages in general are not a big game maker's choice... you have to give away the source and it's a pain to package
<workmad3> weaksauce: well, if you want to bring reasons to the discussion, those are valid points :)
failshell has joined #ruby
polishdub has quit [Quit: Leaving]
* workmad3 is too tired for rational discussion and is going to bed
|2701 has quit [Quit: Connection closed for inactivity]
heyimwill has quit [Ping timeout: 260 seconds]
<baweaver> that and they don't handle well for intensive games
<baweaver> JRuby / Scala / Kotlin / Groovy would be better if you want something Ruby-like to make a game in
krasnus has quit [Ping timeout: 260 seconds]
<baweaver> MRI doesn't work well with it. See RPG Maker XP, MV, and MV Ace
emilford has joined #ruby
<baweaver> though they use a very screwy version of 1.9.2 to be fair
rbennace_ has joined #ruby
failshell has quit [Ping timeout: 252 seconds]
rbennacer has quit [Ping timeout: 250 seconds]
JesseH2 has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
|2701 has joined #ruby
roshanavand has quit [Quit: This computer has gone to sleep]
zacstewart has quit [Ping timeout: 260 seconds]
ravishankarjha has quit []
karapetyan has joined #ruby
Phasee has quit [Quit: Leaving]
zeroDivisible has joined #ruby
andromedian has quit [Quit: thanks adaedra]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
flashpoint9 has quit [Ping timeout: 250 seconds]
<shevy> workmad3 haha yeah I can relate to that :)
spiette has quit [Quit: :qa!]
karapetyan has quit [Ping timeout: 246 seconds]
zenlot6 has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
panpainter has joined #ruby
hahuang65 has quit [Quit: WeeChat 1.4]
rodfersou has quit [Quit: leaving]
hahuang65 has joined #ruby
zenlot has quit [Ping timeout: 276 seconds]
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
LastWhisper____ has quit [Ping timeout: 246 seconds]
ChiefAlexander has joined #ruby
robbyoconnor has joined #ruby
panpainter has quit [Remote host closed the connection]
dikaio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
roshanavand has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
sp4rrow has joined #ruby
whathapp_ has quit [Remote host closed the connection]
idefine has joined #ruby
diego1 has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
robbyoconnor has quit [Excess Flood]
claw has joined #ruby
agent_white has quit [Quit: leaving]
malconis has joined #ruby
idefine has quit [Ping timeout: 240 seconds]
dviola has quit [Ping timeout: 276 seconds]
ChiefAlexander has joined #ruby
whathappens has joined #ruby
whathapp_ has joined #ruby
dmr8 has quit [Ping timeout: 240 seconds]
skade has quit [Quit: Computer has gone to sleep.]
dmr8 has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
bronson has joined #ruby
dikaio has joined #ruby
malconis has quit [Ping timeout: 265 seconds]
n008f4g_ has quit [Ping timeout: 260 seconds]
whathappens has quit [Ping timeout: 250 seconds]
biberu has quit []
milesmatthias has quit [Remote host closed the connection]
croberts has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
voidDotClass has quit [Ping timeout: 246 seconds]
Prawnzy has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
bnobu has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sp4rrow has quit [Quit: Textual]
weemsledeux has joined #ruby
YP-QMUL-W has joined #ruby
dmr8 has quit [Quit: Leaving]
YP-QMUL-W has quit [Read error: Connection reset by peer]
diego1 is now known as dviola
jgt has quit [Ping timeout: 260 seconds]
danostrowski has joined #ruby
moeabdol has joined #ruby
grenierm has joined #ruby
rkazak has joined #ruby
voidDotClass has joined #ruby
citizentwo has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
kirun has quit [Quit: Client exiting]
milesmatthias has joined #ruby
failshell has joined #ruby
ivanskie has quit [Quit: Going offline, see ya! (www.adiirc.com)]
rbennace_ has quit [Remote host closed the connection]
milesmatthias has quit [Remote host closed the connection]
failshell has quit [Remote host closed the connection]
moeabdol has quit [Ping timeout: 244 seconds]
n008f4g_ has joined #ruby
dviola has quit [Quit: WeeChat 1.4]
danostrowski has quit [Quit: Textual IRC Client: www.textualapp.com]
firstdayonthejob has quit [Ping timeout: 260 seconds]
Vile` has joined #ruby
htmldrum has joined #ruby
Lomex has quit [Remote host closed the connection]
sepp2k has quit [Read error: Connection reset by peer]
Lomex has joined #ruby
benlieb has joined #ruby
dome22xl has joined #ruby
chrisja has quit [Quit: leaving]
jenrzzz_ has joined #ruby
cjbottaro has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Lomex has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 252 seconds]
GodFather has quit [Ping timeout: 276 seconds]
jenrzzz_ has quit [Ping timeout: 244 seconds]
cdg has quit [Remote host closed the connection]
djbkd_ has joined #ruby
QORRiE has joined #ruby
cdg has joined #ruby
ferr has quit [Quit: WeeChat 1.4]
rkazak has quit [Ping timeout: 244 seconds]
justin_pdx has quit [Quit: justin_pdx]
robbyoconnor has joined #ruby
djbkd_ has quit [Ping timeout: 246 seconds]
GodFather has joined #ruby
cdg has quit [Ping timeout: 246 seconds]
godzillaenlacasa has joined #ruby
flashpoint9 has joined #ruby
whathapp_ has quit [Remote host closed the connection]
roshanavand has quit [Quit: This computer has gone to sleep]
whathappens has joined #ruby
whathapp_ has joined #ruby
zacstewart has joined #ruby
ftj has joined #ruby
SparkMasterTape has joined #ruby
grenierm has quit [Quit: grenierm]
citizentwo has quit [Ping timeout: 252 seconds]
whathappens has quit [Ping timeout: 244 seconds]
citizentwo has joined #ruby
Shidash has quit [Ping timeout: 264 seconds]
jdjeffers has joined #ruby
<jdjeffers> Hello everyone. Would this be an appropriate place to ask about bundler and building gem native extensions?
Gasher has quit [Quit: Leaving]
Robtop__ is now known as pwnd_nsfw
failshell has joined #ruby
failshell has quit [Remote host closed the connection]
<dudepare> hi i'm fairly new, what does this statement mean?
<dudepare> def tag_name(tag_name); end
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ftj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dudepare> an empty function?
emilford has quit [Ping timeout: 265 seconds]
<benzrf> dudepare: yeah
blaxter has quit [Quit: KTHXBYE]
dudepare has quit [Quit: Leaving]
northrup has quit [Quit: My Mac has gone to sleep. ZZZzzz…]