apeiros changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.3.1; 2.2.5; 2.1.10: https://www.ruby-lang.org || Paste >3 lines of text on https://gist.github.com || Rails questions? Ask on #RubyOnRails || logs @ https://irclog.whitequark.org/ruby/
johnmilton has joined #ruby
nitric has quit [Ping timeout: 244 seconds]
whathapp_ has joined #ruby
<hiro`> So things actually seem to be working now, which is nice.
whathappens has quit [Read error: Connection reset by peer]
axl__ has left #ruby [#ruby]
pwnd_nsfw has joined #ruby
whathappens has joined #ruby
nando293921 has joined #ruby
whathapp_ has quit [Read error: Connection reset by peer]
pwnd_nsfw` has quit [Ping timeout: 248 seconds]
axl_ has joined #ruby
whathappens has quit [Read error: Connection reset by peer]
whathapp_ has joined #ruby
whathapp_ has quit [Read error: Connection reset by peer]
Ropeney has joined #ruby
postmodern has joined #ruby
whathappens has joined #ruby
JoshS has quit [Quit: Leaving]
hiro` has quit [Quit: Page closed]
whathappens has quit [Read error: Connection reset by peer]
whathappens has joined #ruby
axl_ has quit [Client Quit]
whathappens has quit [Read error: Connection reset by peer]
whathappens has joined #ruby
jcao219 has joined #ruby
sp_ has joined #ruby
CloCkWeRX has joined #ruby
jarred has joined #ruby
sp_ has quit [Ping timeout: 272 seconds]
wldcordeiro has joined #ruby
whathappens has quit [Remote host closed the connection]
Devalo has joined #ruby
redpants has joined #ruby
ELF3RN4 has joined #ruby
coolboy has quit [Ping timeout: 248 seconds]
skweek has joined #ruby
ELF3RN4 has left #ruby [#ruby]
ELF3RN4 has joined #ruby
Devalo has quit [Ping timeout: 244 seconds]
_sfiguser has quit [Ping timeout: 248 seconds]
shinnya has quit [Ping timeout: 248 seconds]
Dimik has quit []
lel has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
jcao219 has quit [Ping timeout: 244 seconds]
replay has quit [Quit: Textual IRC Client: www.textualapp.com]
ElFerna has joined #ruby
skweek has quit [Ping timeout: 272 seconds]
tsabx is now known as DotsAreLegion
FINbit has joined #ruby
hutch34 has joined #ruby
nadir has joined #ruby
ElFerna has quit [Quit: Textual IRC Client: www.textualapp.com]
ruby[bot] has quit [Remote host closed the connection]
ElFerna has joined #ruby
ruby[bot] has joined #ruby
sneakers has quit [Ping timeout: 244 seconds]
FINbit has quit [Ping timeout: 248 seconds]
leea has joined #ruby
JakFrist[WVU] has joined #ruby
_sfiguser has joined #ruby
Guest38 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 272 seconds]
hutch34 has quit [Read error: Connection reset by peer]
kobain has joined #ruby
ELF3RN4 has quit [Quit: ELF3RN4]
ElFerna has quit [Quit: Textual IRC Client: www.textualapp.com]
tuxaddicted has joined #ruby
ElFerna has joined #ruby
Ebok has quit [Quit: Leaving]
alaibe has joined #ruby
tuxaddicted has quit [Quit: leaving]
jhooker has joined #ruby
boogeyman has quit [Quit: bb]
tuxaddicted has joined #ruby
dminuoso has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alaibe has quit [Ping timeout: 252 seconds]
Azure has quit [Quit: Oops.]
leea has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nankyokusei has joined #ruby
ajsharma has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jhooker has quit [Ping timeout: 272 seconds]
dminuoso has quit [Ping timeout: 264 seconds]
jhooker has joined #ruby
nankyokusei has quit [Ping timeout: 244 seconds]
Bellthoven has joined #ruby
olivierjanss has quit [Ping timeout: 265 seconds]
colstrom has quit [Ping timeout: 265 seconds]
troter__________ has quit [Ping timeout: 265 seconds]
Expanse has quit [Ping timeout: 265 seconds]
charliesome has joined #ruby
jwheare has quit [Ping timeout: 250 seconds]
dmnd has quit [Read error: Connection reset by peer]
RTFM[away] has joined #ruby
RTFM[away] has quit [Changing host]
RTFM[away] has joined #ruby
ElFerna has quit [Quit: ElFerna]
amitchellbullard has quit [Ping timeout: 265 seconds]
Iacobus has quit [Ping timeout: 272 seconds]
elvin_ has joined #ruby
colstrom has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
leea has joined #ruby
dmnd has joined #ruby
leea has quit [Read error: Connection reset by peer]
olivierjanss has joined #ruby
konnigun has joined #ruby
troter__________ has joined #ruby
jwheare has joined #ruby
Toledo-fqdn is now known as Sonicblaze
leea has joined #ruby
Sonicblaze has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
JakFrist[WVU] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Expanse has joined #ruby
Sonicblaze has joined #ruby
zipace has joined #ruby
amitchellbullard has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Iacobus has joined #ruby
Sonicblaze is now known as croberts
AndyBotwin has joined #ruby
wpostma has joined #ruby
AndyBotwin has quit [Read error: Connection reset by peer]
AndyBotwin has joined #ruby
boogeyman has joined #ruby
tmtwd has joined #ruby
lifted_ has joined #ruby
DotsAreLegion is now known as tsabx
aryaching has quit [Quit: Bye]
Azure has joined #ruby
jhooker has quit [Quit: Leaving]
charliesome has joined #ruby
ur5us has quit [Remote host closed the connection]
charliesome has quit [Client Quit]
Coldblackice has joined #ruby
ur5us has joined #ruby
zeroDi has quit [Quit: WeeChat 1.5]
ajsharma has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
prawnzy has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 272 seconds]
charliesome has joined #ruby
ur5us has joined #ruby
tuxaddicted has quit [Quit: leaving]
tuxaddicted has joined #ruby
tuxaddicted has quit [Client Quit]
lifted_ has quit [Ping timeout: 252 seconds]
babblebre has joined #ruby
lifted_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
symm- has quit [Ping timeout: 244 seconds]
tuxaddicted has joined #ruby
tuxaddicted has quit [Client Quit]
Coldblackice has quit []
tuxaddicted has joined #ruby
pwnd_nsfw` has joined #ruby
Azure has quit [Remote host closed the connection]
djbkd has joined #ruby
dminuoso has joined #ruby
pwnd_nsfw has quit [Ping timeout: 248 seconds]
konnigun has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
leea has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sneakerhax has joined #ruby
A_Drone has joined #ruby
cdg has joined #ruby
A_Drone has quit [Remote host closed the connection]
dminuoso has quit [Ping timeout: 265 seconds]
safetypin has joined #ruby
optiz0r has quit [Ping timeout: 264 seconds]
cyphase has quit [Ping timeout: 244 seconds]
A_Drone has joined #ruby
cdg has quit [Read error: Connection reset by peer]
cdg has joined #ruby
konnigun has joined #ruby
dtscode has joined #ruby
wpostma has quit [Quit: This computer has gone to sleep]
cyphase has joined #ruby
Bellthoven has quit []
dtscode has quit [Client Quit]
finisherr has quit [Quit: finisherr]
dtscode has joined #ruby
c355e3b has quit [Quit: Connection closed for inactivity]
duderonomy has quit [Ping timeout: 272 seconds]
wpostma has joined #ruby
A_Drone has quit [Remote host closed the connection]
A_Drone has joined #ruby
axl_ has joined #ruby
axl_ has quit [Client Quit]
ekinmur has joined #ruby
charliesome has joined #ruby
gnufied has quit [Ping timeout: 248 seconds]
A_Drone has quit [Remote host closed the connection]
lifted_ has quit [Quit: lifted_]
wpostma has quit [Quit: This computer has gone to sleep]
tyang has joined #ruby
djbkd has quit [Remote host closed the connection]
tyang has quit [Read error: Connection reset by peer]
A_Drone has joined #ruby
moneylotion has quit [Ping timeout: 260 seconds]
arescorpio has joined #ruby
A_Drone has quit [Remote host closed the connection]
xentity1x has joined #ruby
A_Drone has joined #ruby
lifted_ has joined #ruby
safetypin has quit [Quit: ZZZzzz…]
wpostma has joined #ruby
moneylotion has joined #ruby
skweek has joined #ruby
A_Drone has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
A_Drone has joined #ruby
ajsharma has quit [Read error: Connection reset by peer]
cdg has quit [Remote host closed the connection]
gnufied has joined #ruby
charliesome has joined #ruby
ramfjord has quit [Ping timeout: 252 seconds]
mvxlr has joined #ruby
wpostma has quit [Quit: This computer has gone to sleep]
<mvxlr> hey guys, does anyone knows of a simillar library in ruby to the stuff the java folks can do with http://www.joda.org/joda-time/ ?
A_Drone has quit [Remote host closed the connection]
<mvxlr> namely i need to take a start of month date, advance it X months into the future
<mvxlr> and then check if date D falls within that range
charliesome has quit [Client Quit]
<mvxlr> not too complicated but I do want it to be precise (leap years, leap seconds... and co) so I want some smarts into the gem
A_Drone has joined #ruby
<matthewd> I don't know of anything in that area apart from ActiveSupport
A_Drone has quit [Remote host closed the connection]
<matthewd> (which does "make dates etc easier", but isn't specifically a feature match for any other library)
charliesome has joined #ruby
<konnigun> hi mvxlr, yep I think DateTime/ActiveSupport can do the trick, you might also want to check out Chronic: https://github.com/mojombo/chronic
<mvxlr> found http://www.kurtisrainboltgreene.name/time-lord/ looking into that and into ActiveSupport & chronic as well
<mvxlr> thanks guys
A_Drone has joined #ruby
xcesariox has quit [Quit: Textual IRC Client: www.textualapp.com]
<mvxlr> it's a rails project, so if I can do one gem less then i'm happy
<dtscode> are there any good resources for the ruby.h api?
s2013 has quit [Quit: Textual IRC Client: www.textualapp.com]
duderonomy has joined #ruby
A_Drone has quit [Remote host closed the connection]
GodFather has quit [Ping timeout: 248 seconds]
FINbit has joined #ruby
Devalo has joined #ruby
<mvxlr> in case anyone was wondering: this is very much possible: Date.current.beginning_of_month + 12.months
<mvxlr> not external gem beyond activesupport is requried.
<mvxlr> yay :)
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Robtop__ has joined #ruby
FINbit has quit [Ping timeout: 264 seconds]
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
AndyBotwin has quit [Quit: Leaving]
wpostma has joined #ruby
astrobun_ has joined #ruby
Devalo has quit [Ping timeout: 248 seconds]
redpants has quit [Ping timeout: 264 seconds]
wpostma has quit [Client Quit]
pwnd_nsfw` has quit [Ping timeout: 272 seconds]
g3funk is now known as braidn
harai has quit [Ping timeout: 265 seconds]
A_Drone has joined #ruby
A_Drone has quit [Remote host closed the connection]
A_Drone has joined #ruby
alaibe has joined #ruby
raeoks has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
skweek has quit [Ping timeout: 248 seconds]
safetypin has joined #ruby
joelwallis has joined #ruby
brendan- has joined #ruby
ruby-lang872 has joined #ruby
<ruby-lang872> Hello I remember there was a short form words.group_by { |w| w }
<ruby-lang872> where u can replace { |w| w } with something cleaner. Does anyone know or am I retarded.
dminuoso has joined #ruby
<havenwood> ruby-lang872: group_by(&:itself)
<ruby-lang872> oh yeah! thanks!
alaibe has quit [Ping timeout: 264 seconds]
nankyokusei has joined #ruby
leea has joined #ruby
ruby-lang872 has quit [Client Quit]
A_Drone has quit [Remote host closed the connection]
A_Drone has joined #ruby
dminuoso has quit [Ping timeout: 272 seconds]
shakes has joined #ruby
nankyokusei has quit [Ping timeout: 252 seconds]
nando294021 has joined #ruby
nando293921 has quit [Ping timeout: 252 seconds]
harfangk has joined #ruby
braincrash has quit [Quit: bye bye]
zacts has quit [Ping timeout: 265 seconds]
shakes has quit [Quit: Leaving]
jackjackdripper has quit [Quit: Leaving.]
pwnd_nsfw has joined #ruby
Robtop__ has quit [Ping timeout: 272 seconds]
lifted_ has quit [Ping timeout: 272 seconds]
ur5us has quit [Ping timeout: 252 seconds]
ekinmur has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has joined #ruby
gusrub has joined #ruby
brent__ has joined #ruby
ramfjord has joined #ruby
aupadhye has joined #ruby
amclain has quit [Quit: Leaving]
optiz0r has joined #ruby
braincrash has joined #ruby
craigp_ has quit [Ping timeout: 244 seconds]
rakm has joined #ruby
dviola has quit [Quit: WeeChat 1.5]
abernstein has joined #ruby
pabloh has joined #ruby
tmtwd has quit [Ping timeout: 264 seconds]
gix has quit [Ping timeout: 264 seconds]
toretore has quit [Ping timeout: 248 seconds]
ResidentBiscuit has quit [Ping timeout: 272 seconds]
gix has joined #ruby
djbkd has joined #ruby
skweek has joined #ruby
ARCADIVS has joined #ruby
Puffball has joined #ruby
tmtwd has joined #ruby
Velizar has quit [Quit: Velizar]
vdamewood has quit [Quit: Life beckons.]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lifted_ has joined #ruby
dminuoso has joined #ruby
craigp_ has joined #ruby
babblebre has quit [Quit: Connection closed for inactivity]
elenatanasoiu has joined #ruby
FINbit has joined #ruby
RTFM[away] has quit [Ping timeout: 264 seconds]
dminuoso has quit [Ping timeout: 248 seconds]
joelwallis has quit [Ping timeout: 252 seconds]
elenatanasoiu has quit [Ping timeout: 244 seconds]
astrobun_ has quit [Remote host closed the connection]
FINbit has quit [Ping timeout: 244 seconds]
astrobunny has joined #ruby
moei has quit [Quit: Leaving...]
astrobun_ has joined #ruby
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
blackwind_123 has quit [Read error: Connection reset by peer]
zacts has joined #ruby
A_Drone has quit [Remote host closed the connection]
astrobunny has quit [Ping timeout: 265 seconds]
blackwind_123 has joined #ruby
A_Drone has joined #ruby
gizmore has joined #ruby
nettoweb has joined #ruby
astrobun_ has quit [Ping timeout: 265 seconds]
elvin_ has quit [Quit: Textual IRC Client: www.textualapp.com]
gusrub has quit [Remote host closed the connection]
nettoweb has quit [Client Quit]
jenrzzz has joined #ruby
blackgoat has quit [Quit: WeeChat 1.5]
safetypin has quit [Quit: Textual IRC Client: www.textualapp.com]
jarred has quit [Quit: Connection closed for inactivity]
SteenJobs has joined #ruby
A_Drone has quit [Remote host closed the connection]
A_Drone has joined #ruby
A_Drone has quit [Remote host closed the connection]
A_Drone has joined #ruby
jooni has joined #ruby
gnufied has quit [Ping timeout: 272 seconds]
jcao219 has joined #ruby
craigp_ has quit [Ping timeout: 264 seconds]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
leea has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 264 seconds]
leea has joined #ruby
raeoks has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
tmtwd has quit [Ping timeout: 265 seconds]
Devalo has joined #ruby
tonini has joined #ruby
nettoweb has joined #ruby
pawnbox has joined #ruby
nettoweb has quit [Client Quit]
raeoks has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jhack has quit []
moei has joined #ruby
pawnbox has quit [Remote host closed the connection]
<zotherst1> any popular for downloading torrents in ruby?
<zotherst1> gem*
raeoks has joined #ruby
zipace has quit [Ping timeout: 264 seconds]
duncannz has quit [Ping timeout: 244 seconds]
<zotherst1> torrents\magnet files...
zapata has quit [Quit: WeeChat 1.5]
Devalo has quit [Remote host closed the connection]
astrobunny has joined #ruby
pwnd_nsfw` has joined #ruby
alaibe has joined #ruby
tmtwd has joined #ruby
A_Drone has quit [Ping timeout: 265 seconds]
pwnd_nsfw has quit [Ping timeout: 272 seconds]
astrobunny has quit [Remote host closed the connection]
jaguarmagenta has joined #ruby
astrobunny has joined #ruby
alaibe has quit [Ping timeout: 272 seconds]
rakm has joined #ruby
dminuoso has joined #ruby
raeoks has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nankyokusei has joined #ruby
dminuoso has quit [Ping timeout: 252 seconds]
mvxlr has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nankyokusei has quit [Ping timeout: 272 seconds]
dminuoso has joined #ruby
eljimbo has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
eljimmy has quit [Ping timeout: 244 seconds]
ichkv has joined #ruby
duncannz has joined #ruby
A_Drone has joined #ruby
dminuoso has quit [Ping timeout: 264 seconds]
blaxter has joined #ruby
nando294021 has quit [Ping timeout: 244 seconds]
A_Drone has quit [Ping timeout: 265 seconds]
konnigun has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
conta has joined #ruby
mvxlr has joined #ruby
sepp2k has quit [Quit: Leaving.]
johnny56 has quit [Ping timeout: 265 seconds]
A_Drone has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
lifted_ has quit [Quit: lifted_]
JoshS has joined #ruby
tmtwd has quit [Ping timeout: 248 seconds]
johnny56 has joined #ruby
Burgestrand has joined #ruby
tmtwd has joined #ruby
SteenJobs has joined #ruby
jcao219 has quit [Ping timeout: 272 seconds]
samof76 has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
PlasmaStar has quit [Ping timeout: 272 seconds]
saneax is now known as saneax-_-|AFK
nofxx has quit [Ping timeout: 248 seconds]
PlasmaStar has joined #ruby
nofxx has joined #ruby
astrobunny has quit [Remote host closed the connection]
brendan- has joined #ruby
astrobunny has joined #ruby
skweek has quit [Ping timeout: 252 seconds]
astrobun_ has joined #ruby
Dimik has joined #ruby
astrobun_ has quit [Remote host closed the connection]
astrobun_ has joined #ruby
dionysus69 has joined #ruby
voids has joined #ruby
conta has quit [Ping timeout: 252 seconds]
astrobunny has quit [Ping timeout: 252 seconds]
tsabx has quit [Ping timeout: 240 seconds]
arescorpio has quit [Quit: Leaving.]
astrobun_ has quit [Ping timeout: 252 seconds]
A_Drone has quit [Ping timeout: 272 seconds]
dtscode has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
dtscode has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
f0rpaxe has quit [Ping timeout: 272 seconds]
ponga has joined #ruby
beawesomeinstead has quit [Ping timeout: 265 seconds]
poikon has quit [Ping timeout: 265 seconds]
nadir has quit [Ping timeout: 272 seconds]
jenrzzz has quit [Ping timeout: 272 seconds]
sethetter has joined #ruby
f0rpaxe has joined #ruby
poikon has joined #ruby
Ropeney has quit [Quit: Textual IRC Client: www.textualapp.com]
beawesomeinstead has joined #ruby
nadir has joined #ruby
A_Drone has joined #ruby
Ropeney has joined #ruby
mikeiniowa has quit [Ping timeout: 244 seconds]
dtscode has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
jenrzzz has joined #ruby
dtscode has joined #ruby
A_Drone has quit [Ping timeout: 265 seconds]
last_staff has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
harai has joined #ruby
emilkarl has joined #ruby
tmtwd has quit [Ping timeout: 265 seconds]
jaguarmagenta has quit [Remote host closed the connection]
elenatanasoiu has joined #ruby
pawnbox has joined #ruby
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
Silthias1 has quit [Ping timeout: 252 seconds]
dionysus69 has quit [Ping timeout: 244 seconds]
elenatanasoiu has quit [Ping timeout: 244 seconds]
tjbiddle has joined #ruby
dminuoso has joined #ruby
ichkv1 has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
ichkv has quit [Ping timeout: 265 seconds]
jaequery has joined #ruby
aufi has joined #ruby
prawnzy has joined #ruby
ur5us has quit [Ping timeout: 264 seconds]
h1fuelcell has joined #ruby
leea has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pabloh has quit [Quit: Leaving]
jenrzzz has quit [Ping timeout: 248 seconds]
ta_ has quit [Remote host closed the connection]
Asher has quit [Ping timeout: 272 seconds]
dminuoso has quit [Ping timeout: 264 seconds]
mvxlr has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lxsameer has joined #ruby
Puffball has quit [Remote host closed the connection]
jphase has quit [Remote host closed the connection]
symm- has joined #ruby
Asher has joined #ruby
bocaneri has joined #ruby
Silthias has joined #ruby
ICantCook has quit [Quit: bye]
gusrub has joined #ruby
Livecodingtv_Ale has joined #ruby
<elastix> hi guys I have an array = [1,2,3,4,5]
mvxlr has joined #ruby
<elastix> if the array contains elements bigger than 2 I need to set a flag to true... how can I do that?
dminuoso has joined #ruby
emilkarl has quit [Read error: Connection reset by peer]
leea has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
h1fuelcell has quit [Remote host closed the connection]
craigp_ has joined #ruby
emilkarl has joined #ruby
andikr has joined #ruby
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Puffball has joined #ruby
jarred has joined #ruby
astrobunny has joined #ruby
mark_66 has joined #ruby
conta has joined #ruby
craigp_ has quit [Ping timeout: 272 seconds]
xentity1x has quit [Ping timeout: 265 seconds]
abernstein has quit [Quit: abernstein]
gusrub has quit [Quit: Leaving]
zotherst1 has quit [Ping timeout: 264 seconds]
brent__ has quit [Quit: Connection closed for inactivity]
zotherst1 has joined #ruby
abernstein has joined #ruby
dminuoso has quit [Remote host closed the connection]
tjbiddle has quit [Quit: tjbiddle]
howdoi has joined #ruby
alaibe has joined #ruby
boogeyman has quit [Quit: bb]
ta_ has joined #ruby
toretore has joined #ruby
alaibe has quit [Ping timeout: 264 seconds]
nankyokusei has joined #ruby
elastix has quit [Quit: elastix]
TomyWork has joined #ruby
anquegi has joined #ruby
nankyokusei has quit [Ping timeout: 272 seconds]
dminuoso has joined #ruby
wnd has quit [Excess Flood]
wnd has joined #ruby
devmagpie has joined #ruby
h1fuelcell has joined #ruby
raeoks has joined #ruby
pragmatism has quit [Quit: Connection.close!]
rippa has joined #ruby
mvxlr has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
leea has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aganov has joined #ruby
raeoks has quit [Client Quit]
yardenbar has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
h1fuelce_ has joined #ruby
wugy has joined #ruby
h1fuelcell has quit [Ping timeout: 272 seconds]
boogeyman has joined #ruby
faces has quit []
DoubleMalt has quit [Ping timeout: 248 seconds]
antgel has joined #ruby
biberu has joined #ruby
<zotherst1> elastix array = [1,2,3,4,5];array.each{|x| x > 2 ? (p "true"): nil}
gingray has joined #ruby
mvxlr has joined #ruby
<nofxx> why not .each { |x| p 'true' if x > 2 }
Ropeney has quit [Quit: Textual IRC Client: www.textualapp.com]
dionysus69 has joined #ruby
eGGshke has joined #ruby
<apeiros> why do you suppress those poor falses? I'm for `p x > 2`!
<apeiros> funny method where you don't know for which values "true" was emitted…
* dminuoso slaps nofxx with a big Italian baguette
<dminuoso> Serves you right.
<apeiros> italian baguette…
<dminuoso> Are you jealous?
<apeiros> of your identity crisis?
<apeiros> french, italian, french, italian…
<dminuoso> I cant tell the difference. They have the same flag.
<dminuoso> red white and something.
<dminuoso> well and blue. green is like blue with yellow.
<apeiros> I thought colorblindness was mainly red/green, not blue/green? :-p
<dminuoso> Not sure, I don't have a Master in eyeology.
<apeiros> maybe you should practice your lookamancy
Burgestrand has joined #ruby
bluOxigen has joined #ruby
pandaant has joined #ruby
sneakerhax has quit [Ping timeout: 272 seconds]
djbkd has quit [Quit: My people need me...]
bluOxigen has quit [Ping timeout: 248 seconds]
bluOxigen has joined #ruby
<nofxx> apeiros, dminuoso europe's map: draw a horizontal line, up is dutch down is france
<nofxx> and that's it
gizless has joined #ruby
gizmore has quit [Ping timeout: 272 seconds]
zapata has joined #ruby
<apeiros> dutch ain't a country :-p
<dminuoso> nofxx: That's what Ive been telling people for a long time. There really are not that many countries.
submitnine has joined #ruby
<nofxx> apeiros, for him, and the line... and all those dutch states like netherlands
<apeiros> got it. spain is french. belgium is dutch. is germany dutch or french?
JoshS has quit [Read error: Connection reset by peer]
fivmo has joined #ruby
JoshS has joined #ruby
saneax-_-|AFK is now known as saneax
fivmo has quit [Client Quit]
<nofxx> nobody remembers portugal... endless fun, the ISIS kalifate map... did you notice they colored all europe BUT portugal?
<nofxx> it's like...nah... nevermind
jaguarmagenta has joined #ruby
<apeiros> portuwhat?
elenatanasoiu has joined #ruby
<dminuoso> apeiros: port wine.
ocbtec has joined #ruby
alaibe has joined #ruby
<nofxx> apeiros, you can thank 'em for a lot of candies, lot of deserts are portuguese in fact. and poetry, but who cares about poetry?
<apeiros> that I know. but I don't know any portu gals
h1fuelce_ has quit [Remote host closed the connection]
jaguarmagenta has quit [Ping timeout: 252 seconds]
h1fuelcell has joined #ruby
<nofxx> apeiros, hah... neither. We have an endless joke war with portugal, like the classic 'portugal made a submarine so damn well engineered it never sunk'
samof76 has quit [Ping timeout: 248 seconds]
<nofxx> they do the same but the dumb guy is always a brazilian
ferr has joined #ruby
claudiuinberlin has joined #ruby
Dimik has quit [Ping timeout: 248 seconds]
<apeiros> for some reason we have that with austrians
<apeiros> my favorite though - austrian: "why do you swiss people always make fun of us? I mean we even have the same colors in our flag" - swiss: "sure, sure. but we have a +, you a -"
kimegede has joined #ruby
minimalism has quit [Quit: minimalism]
teclator has quit [Ping timeout: 272 seconds]
h1fuelcell has quit [Remote host closed the connection]
h1fuelcell has joined #ruby
jsrn_ has joined #ruby
djbkd has joined #ruby
cloaked1 has quit [Ping timeout: 272 seconds]
h1fuelcell has quit [Remote host closed the connection]
prawnzy has quit [Remote host closed the connection]
tomphp has joined #ruby
etehtsea has joined #ruby
capitainIsh has joined #ruby
Puffball has quit [Read error: Connection reset by peer]
teclator has joined #ruby
h1fuelcell has joined #ruby
Kruppe has quit [Ping timeout: 256 seconds]
craigp_ has joined #ruby
h1fuelcell has quit [Remote host closed the connection]
watersoul has quit [Ping timeout: 272 seconds]
nofxx has quit [Ping timeout: 265 seconds]
Kruppe has joined #ruby
emilkarl has quit [Quit: Textual IRC Client: www.textualapp.com]
h1fuelcell has joined #ruby
_sfiguser has quit [Ping timeout: 264 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
flying has joined #ruby
sp_ has joined #ruby
ur5us has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
Beams has joined #ruby
tomphp has joined #ruby
tbboin has joined #ruby
<ruurd> we have that with people from Belgium
_sfiguser has joined #ruby
symm- has quit [Quit: Leaving...]
sp_ has quit [Ping timeout: 264 seconds]
eggoez has quit [Ping timeout: 252 seconds]
eggoez has joined #ruby
bsrd has joined #ruby
sp_ has joined #ruby
raeoks has joined #ruby
alexherbo2 has quit [Quit: WeeChat 1.5]
pawnbox has quit [Remote host closed the connection]
nankyokusei has joined #ruby
pawnbox has joined #ruby
JoshS has quit [Read error: Connection reset by peer]
<maloik> you make fun of us just the same ruurd
<maloik> ;-)
JoshS has joined #ruby
<ruurd> maloik it seems to me that Belgians pay us back to the same extent :-) and deserved in some respect I think :-)
sp_ has quit [Ping timeout: 264 seconds]
aidalgol has joined #ruby
SesMan has joined #ruby
<hanmac> in germany you can make jokes about your other half ;P
etehtsea has quit [Quit: Textual IRC Client: www.textualapp.com]
pawnbox has quit [Ping timeout: 252 seconds]
nankyokusei has quit [Ping timeout: 272 seconds]
djbkd has quit [Remote host closed the connection]
duncannz has quit [Remote host closed the connection]
Snowy has joined #ruby
programmerq has quit [Ping timeout: 276 seconds]
Dobler has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
postmodern has quit [Quit: Leaving]
h1fuelcell has quit [Remote host closed the connection]
craigp_ has quit [Ping timeout: 265 seconds]
y2mq37 has quit [Ping timeout: 248 seconds]
h1fuelcell has joined #ruby
frankiee_ has quit [Ping timeout: 248 seconds]
Dysp has joined #ruby
Guest79002 has quit [Ping timeout: 240 seconds]
dtscode has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
tvw has joined #ruby
dtscode has joined #ruby
<Dysp> Mjello. I could use some advice.
<Dysp> Sometimes the test fails, sometimes it passes.
erlingur_ has joined #ruby
<dminuoso> Dysp: Needs a stack trace for a test failure.
Affix has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 272 seconds]
<Dysp> I dont think you need it, tbh.
Affix is now known as Guest87490
<Dysp> The test that fails never should past this code
marr has joined #ruby
<ciawal> we don't know where the undefined value error is happening
<Dysp> What goes wrong downstream (?) is because the code flow continues where it shouldn't
<Dysp> Read the test.
<ciawal> nah
<ciawal> if you won't help us, why should I help you?
<Dysp> I am not trying to be offensive :)
<Dysp> I know why the "value" method doesn't work
<Dysp> It's not the question I am asking
<Dysp> Maybe better formulated: Why isn't the exception catching the wrongful request?
TvL2386 has joined #ruby
<Dysp> And even better.. Why does it catch it sometimes and sometimes not?
<apeiros> Dysp: point is, you ask us for help, somebody tells you what they need for that, and you refuse.
<apeiros> I understand why ciawal drops it at that point and stops bothering.
<Dysp> I think the problem is the way I responded.
<Dysp> It sounded arrogant
<Dysp> Wasn't on purpose
<apeiros> yes, you think. but you're here because you couldn't figure it out.
<ciawal> perhaps it's succeeding when you're running it in the correct pwd
<apeiros> so maybe you're wrong.
<ciawal> where @kincom_file is the correct relative path
<ciawal> and failing otehrwise as @file exists but is nil
<Dysp> But the backtrace still doesn't matter.
<apeiros> k
<ciawal> you don't know what the problem is, so how do you know that?
<Dysp> Guesswork! :P
<dminuoso> To claim that the explanation for your problem is that Ruby is exibiting broken code flow is quite ballsy.
<apeiros> then enjoy figuring it out
<dminuoso> Refusing to show us the stack trace so that we can understand the behavior just makes it impossible to give you any advice.
<Dysp> Okay, okay, everybody calm down :p
<dminuoso> I got better things to do.
<apeiros> I for one am not inclined to try helping somebody who flat out refuses to provide information because they think they know better.
<Dysp> Alright, updated.
<Dysp> You are all way better than me
<Dysp> No question about it. Otherwise I wouldn't come here.
<ciawal> did you check what I said?
naftilos76 has joined #ruby
jenrzzz has joined #ruby
<Dysp> Never came down to it, because of the sudden outbreak of fire in the channel
<Dysp> ciawal: pwd?
<dminuoso> Dysp: At any rate ciawal makes a valid point - regardless whether it's the source of your issue. If you want relative paths to the current file, use __FILE__
<dminuoso> Don't use "./foo/bar"
<dminuoso> They will depend on the current working directory.
<Dysp> Do you have any articles I can read about the subject? Because you are indeed right.
<Dysp> I just didn't know how to do it properly when I began and so it catched on.
<Dysp> The same when 'loading' the library. I have a big file which require_relatives like a baws. But it doesn't seem like the right way.
<dminuoso> Dysp: Also, you should have included the file /xercise/loading/excel/_kincom.rb in the gist as well. With the stacktrace and that file added, this would have been probably very obvious.
<Dysp> Yes, I could, but that is still not the root of the problem.
<dminuoso> Dysp: Let's agree that you are not the authority to tell us what the root of the problem is.
<dminuoso> Because if you were, you wouldn't be here.
<Dysp> This line should raise an exception and thus the other code should never be used: raise ArgumentError, "No file has been loaded." if !instance_variable_defined?(:@file)
<ciawal> have you even checked what I said yet
tuxaddicted has quit [Quit: leaving]
<Dysp> And my problem is that it sometimes raises an exception and sometimes does not, thus producing the failure, because the code is used
<dminuoso> Dysp: Okay, this requires some Ruby stuff.
<dminuoso> Dysp: Give me a moment prep an eval.in for this.
<Dysp> And please respond in a non-technical way, I am by far not as much into programming as you are.
<Dysp> ciawal: No. What is "pwd"?
AnoHito has joined #ruby
<ciawal> the directory you are in
<Dysp> Ah.
moneylotion has quit [Ping timeout: 260 seconds]
<dminuoso> Dysp: No actually, just show us these files please.
moneylotion has joined #ruby
<Dysp> What do you need?
<Dysp> _kincmo?
<ciawal> just check what I said
<dminuoso> Dysp: Yes.
<Dysp> ciawal: I just did. I don't think that is the error due to the way I run tests.
<dminuoso> Dysp: "I dont think" means you dont know.
<dminuoso> Dysp: stop guessing.
alaibe has quit [Quit: WeeChat 1.5]
<ciawal> you should add a print of the @file variable before your assertion
<Dysp> Alrighty.
<dminuoso> Stop thinking, it doesn't seem to work.
<dminuoso> Just debug it.
<ciawal> if it's nil when it fails, I'm right
AnoHito_ has quit [Ping timeout: 264 seconds]
<dminuoso> ciawal: the issue is that he has a require which has a side effect on the current class apparently.
<dminuoso> ciawal: and he is hiding that code.
<Dysp> dminuoso: I like that you want to help me, but you need to calm down on your offensiveness. I get that I pissed you off at some point, but acting the way you are right now is not a sufficient way of communicating.
watersoul has joined #ruby
<Dysp> But, yes, moment.
<dminuoso> Dysp: No I mean it without any offense intended. With debugging, it's often better to stop thinking and guessing.
<Dysp> Then say it like that :)
<Dysp> Should be updated now. Let me know if you need something else
dionysus69 has quit [Ping timeout: 272 seconds]
blackwind_123 has quit [Ping timeout: 264 seconds]
AnoHito_ has joined #ruby
<ciawal> when you say this sometimes fails, sometimes passes
<ciawal> what do you mean
<ciawal> if you run the test 10 times in a row what happens
<Dysp> Exactly
<Dysp> Then it passes x amount of times
<Dysp> and fails y amount
<Dysp> I can try running it 10 times
<ciawal> where x is 10 and y is 0?
<Dysp> Haha, no :)
<Dysp> Like, variating amount of each variable
blackwind_123 has joined #ruby
<ciawal> how are you running the tests
<Dysp> I am quite sure the wrong way
<Dysp> Let me run it 10 times for a start
AnoHito has quit [Ping timeout: 248 seconds]
<Dysp> Now it actually keeps passing, like 5 times in a row. Didn't change anything.
<ciawal> ;)
<Dysp> But regarding how I test.. Probably the wrong way.
<Dysp> This is the first thing I've ever built, so I've been learning throughout.
<Dysp> I manually load a test file
<Dysp> I should probably use rake or something like that
lucast has quit [Ping timeout: 265 seconds]
<ciawal> just tell me what you do to run the test
<Dysp> You are welcome to examine my repository, then you can probably see for yourself instead of me trying to use technical terms I don't understand well
<Dysp> Ha, it failed
<Dysp> Like the 9th time
<ciawal> are you running in a terminal?
<Dysp> Yes.
<ciawal> then just pastebin the terminal contents if you can't answer
<Dysp> I do "ruby tests.rb"
lucast has joined #ruby
<Dysp> tests.rb is a file I made that loads and runs all the tests.
<Dysp> And it's powershell, windows.
<ciawal> run only this failing test
<ciawal> 10 times
<Dysp> I am.
<Dysp> I just did.
<Dysp> I manually comment out tests I don't want to be run
craigp_ has joined #ruby
<Dysp> Pasted the tests file
<ciawal> did you add a print of @file?
dtscode has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
aidalgol has quit [Quit: zZzZzZzzz]
<Dysp> No, not yet. I should do that, yes.
dtscode has joined #ruby
Devalo has joined #ruby
<Dysp> But. That is probably where my lack of knowledge becomes a problem. I am not even sure I can do what I am trying to do here.
tuxaddicted has joined #ruby
<Dysp> I am trying to create an interface, where I can use method chaining.
jsrn__ has joined #ruby
<Dysp> I want to be able to run Loading.file(FILE).excel(:TYPE) and then let the interface handle the request.
<Dysp> Problem is that if I then run Loading.excel(:TYPE) that shouldn't be a valid request, because no file is loaded and thus the failure you see.
jenrzzz has quit [Ping timeout: 248 seconds]
<Dysp> (Cannot load anything from nothing)-
Snickers has joined #ruby
<Dysp> The exception should catch that no file is loaded in @file. However, I don't even know if you can load something when an instance of the class isn't even created.
<Dysp> That is where I think the problem is. But I was told not to think.,
<Dysp> ;)
<Dysp> I mean, @file is an instance variable, right? And if there isn't any instance, how can I check if it exists? But then I tried it out and it passed.. some times. And now I am here.
jsrn_ has quit [Ping timeout: 248 seconds]
blackgoat has joined #ruby
Devalo has quit [Ping timeout: 265 seconds]
zotherst1 has quit [Quit: WeeChat 1.5]
samof76 has joined #ruby
pawnbox has joined #ruby
hiro` has joined #ruby
<maloik> I find the structure of that code quite weird. Why not call it Loader like your other classes, and use `new` instead of `file`?
<maloik> Loader.new(file).excel(:type) instead of Loading.file(file).excel(:type)
<Dysp> It probably is weird, no doubt about it.
<Dysp> I could call it loader. I think I will do that.
jaguarmagenta has joined #ruby
<maloik> the file method should be how you initialize that too, imo
<hiro`> Hey. Started using rbenv last night. Got a strange bug though (or what seems like one). I'm in a project that specifies 2.2 in the .ruby-version file. I didn't have that version installed so I rbenv installed 2.2.5. But rbenv is still insisting that I don't have 2.2 installed.
ramfjord has quit [Ping timeout: 272 seconds]
<maloik> it becomes easier to reason about... "what is an instance of the class Loader" has an answer, but "instance of Loading" becomes harder to reason about
<maloik> just my 2cts
dtscode has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<Dysp> I appreciate it
<Dysp> Still battling the thing you said about .new
dtscode has joined #ruby
TvL2386 has quit [Remote host closed the connection]
<toretore> anything that requires you to "do one thing before you can do the other" is a code smell
h1fuelcell has quit [Remote host closed the connection]
<maloik> if you go that way, excel becomes an instance method as well
<maloik> so your chaining problem goes away
<toretore> or said differently, "lets you do something in the wrong order"
<Dysp> yes, toretore. Agreed. But how do I solve this issue?
<toretore> do what maloik said
<Dysp> maloik: I wan't chaining.
<toretore> screw chaining
<maloik> :D
<Dysp> :D
<toretore> focus on correctness first
<maloik> Loader.new(file).excel(:type) is the same as what you're doing, you could call it "chaining" but it's more correct and easier to reason about
<hiro`> In fact
<maloik> it requires you to "chain" because you need an object to call excel on
<hiro`> When I check the ruby version with ruby -v, I just get the rbenv error about not having version 2.2 installed.
<maloik> (but chaining the way you describe it here sounds a whole lot like functional programming)
<Dysp> But it doesn't matter that the actual instance that is created isn't of class Loader?
<Dysp> Loader class merely points to KincomLoader for instance
jaguarmagenta has quit [Ping timeout: 248 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
frankiee_ has joined #ruby
dtscode has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
workmad3 has joined #ruby
<maloik> Dysp: this may help: https://gist.github.com/edubkendo/7779568
Livecodingtv_Ale has quit [Quit: ChatZilla 0.9.92 [Firefox 50.0/20161003155957]]
<Dysp> I hate duck typing
<Dysp> I just don't get it :D
TinkerTyper has quit [Ping timeout: 240 seconds]
<maloik> then you don't hate duck typing, you hate the fact that you don't get duck typing
<Dysp> (I will read it)
<Dysp> Yes.
<maloik> google around, I'm sure your code will end up better for it
<Dysp> You are so absolutely correct. I've tried to grasp the idea so many times
<Dysp> And ducks are my favorite animal
<Dysp> It's not fair
astrobunny has quit [Remote host closed the connection]
xduba has joined #ruby
hiro` has quit [Quit: Page closed]
<ljarvis> !duck
<ljarvis> hmm
voids has quit [Ping timeout: 240 seconds]
<dminuoso> Dysp: So, have you found the issue?
prawnzy has joined #ruby
<Dysp> dminuoso: No. I don't think I have, but instead followed the advice that maloik made.
<dminuoso> Because I think I found your culprit.
<Dysp> Please elaborate!
<dminuoso> Dysp: Tell me, what does class << self do?
<Dysp> Eh, it defines the following methods as class methods
<Dysp> ?
<Dysp> :)
<Dysp> Instead of writing self.method
<dminuoso> Dysp: No, it opens the singleton class for whatever self is at that point.
<dminuoso> At any rate
<ljarvis> technically what they said is true though.. :D
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<dminuoso> Dysp: Look at that line.
<dminuoso> Look at it closely.
<dminuoso> Until your eyeballs fall out.
<Dysp> But I understand, dminuoso. I was also what I thought would be the problem; but I don't know exactly how Singleton classes work. I just figured it had something to do with that.
<Dysp> Will stare at it for hours
<Dysp> It feels like hours already.
<Dysp> Your point with that line?
charliesome has joined #ruby
<dminuoso> Dysp: Is there any chance that test_interface is run before test_exceptions? :-)
<Dysp> As per how the test is written by me (the intention), then no.
<Dysp> But as far as I don't know how testing actually workings, then of course. Quite possibly
prawnzy has quit [Ping timeout: 265 seconds]
<dminuoso> Dysp: Not an expert in Minitest, but I'd say that is your issue. It seems like a race condition based on shared state across multiple tests.
<Dysp> But I can deduce that @file is being set through the set and because it is a singleton class(?), then @file is suddenly not nil producing the failure.
<Dysp> second set = test
<toretore> Dysp: singleton = global. it will retain state from previous calls when you call it again (@file in your case). singleton = evil. don't use singletons.
pawnbox has quit [Remote host closed the connection]
<Dysp> I will never touch a singleton again
<Dysp> :P
<dminuoso> Dysp: "Class level methods" are always methods defined on your classes singleton class.
<Dysp> Lesson of the day: Don't fuck around with class methods
<dminuoso> Dysp: No, it's not class methods that is the problem.
<toretore> will you provide information when asked for the next time you ask others to give their time and effort in order to help you with a problem?
<dminuoso> But class-level state the way you are testing.
<dminuoso> Dysp: Either you need to provide some tear down mechanism, or ensure that you get different classes for each test.
<ljarvis> D:
<Dysp> toretore: I would like to counter that and ask you if the answer to my question was'nt in fact in the code provided and the code asked for was irrelevant?
aries_liuxueyang has quit [Quit: No Ping reply in 180 seconds.]
<Dysp> Which I tried to point out, thus producing hell fire.
<dminuoso> minitest is multithreaded right?
<dminuoso> Is so, you have a heck of race conditions there.
pawnbox has joined #ruby
<Dysp> This is way beyond my understanding of Ruby and minitest
<ljarvis> just have Loading.file return a proxy object
<ljarvis> solved
<dminuoso> ^-
<Dysp> :D
<Dysp> I've changed it now
<toretore> Dysp: not relevant. it's very arrogant to ask others to help you and then refuse to give them the information they ask for in return
aries_liuxueyang has joined #ruby
JeanCarloMachado has joined #ruby
<ljarvis> also pass filenames to your loader classes, not open file descriptors
<dminuoso> Dysp: Without the stack trace we had no way of understanding the error.
<Dysp> This is what I changed it to.
<dminuoso> Dysp: Nope, still not good.
<Dysp> I tried to explain the error and that the trace not was of importance, because I knew what produced the error.
<dminuoso> oh wait!
<Dysp> but my reply was not well formulated, I see that.
<dminuoso> Dysp: no this works.
<dminuoso> Yeah.
<Dysp> Yeah!
<Dysp> Thank you so much for your help.
tlaxkit has joined #ruby
<dminuoso> Dysp: Next time don't argue about what we need and don't need.
<ljarvis> Dysp: you don't need the self in the initialize method anymore, initialize can't return anything else
<dminuoso> Dysp: Feel free to ask *why* we need it if you think differently.
<Dysp> ljarvis: True
<ljarvis> and please close your file somewhere
<ljarvis> it's killing me
<dminuoso> ljarvis: initialize can return all it wants, but we actually use #new from the outside :p
<ljarvis> dminuoso: i was waiting for a pedant to come along!
<dminuoso> :P
<Dysp> dminuoso: Isn't that also a semi-arrogant response to give? Like "WHY YOU NEED DAT?"
<Dysp> ljarvis: Please elaborate. I have been thinking alot about optimization and the fact that I open files all along and never close them
<Dysp> In a small scale system that wouldn't do much, but I guess it would kill the memory at some point?
<ljarvis> Dysp: only open them when you want to read them
<ljarvis> then close them when you're done
<Dysp> And when closing, it removes it from memory?
maloik has quit [Remote host closed the connection]
<Dysp> Is my understanding correct?
Wizznt has joined #ruby
maloik has joined #ruby
<ljarvis> no, it closes the open file handle though
<ljarvis> ya don't want dangling file handles
<Dysp> I have also been thinking about all the instances that are made throughout the life of a program
<ljarvis> (in theory it closes by itself at some point), but this is just good programming
<Dysp> Where do they go?
<Dysp> I mean, it must pile up somewhere
<Dysp> Narnia?
<toretore> Dysp: there are only two correct responses to a request for information when you are asking for help: 1) yes, here it is 2) i can not legally share it
stamina has joined #ruby
<Dysp> Is it Narnia, ljarvis ?
<ljarvis> it's somewhere less magical
<Dysp> :(
<Dysp> toretore: I don't agree, but I can respect that is the way of the channel.
<toretore> you are wrong
<Dysp> Sometimes you have to accept people being wrong in their opinions.
<Dysp> I work with patients. They don't understand anything.
_joes__ has quit [Quit: Connection closed for inactivity]
<Dysp> "No, you cannot take 5 pills at one time to compensate that you forgot to bring the pills with you on your 5 day trip".
<Dysp> ljarvis: I am still waiting in eager anticipation
<ljarvis> Dysp: you want to go down that rabbit hole?
<Dysp> Now it is slowly turning into something magical again
<ljarvis> it's where rabbit's go to die
<apeiros> are we still discussing why people seeking help should provide information helpers ask for? o0
<ljarvis> no
<Dysp> Nah, we are beyond that now.
<apeiros> good
<Dysp> We are lurking into a magical place where objects (and rabbits) go to die.
<Dysp> Is there any short answer, ljarvis ?
<Dysp> Or is it something more suitable for bed time reading?
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
<ljarvis> Dysp: sure. They stick around until they're not needed and swept up by a garbage collector
ur5us has quit [Remote host closed the connection]
<Dysp> Is "not needed" defined by time past?
<apeiros> no. by "nothing references it anymore"
<ljarvis> no :)
ur5us has joined #ruby
<ljarvis> and thus begins the journey of the ruby GC
<Dysp> But if I define a @variable = 20
<Dysp> when will @variable ever not be = 20?
<ljarvis> defined where?
h1fuelcell has joined #ruby
<Dysp> Lets say IRB for instance?
<apeiros> Dysp: when either the object which contains the @variable is no longer referenced, or when you assign another value than 20 to @variable
mrBen2k2k2k has joined #ruby
<ljarvis> if you open IRB and type @variable = 20, then idle for 10 years and type @variable, it will still be 20, yes
<apeiros> i.e. "variable goes out of scope", and "variable gets another value assigned" are the two ways to stop referencing an object.
<Dysp> I see. If the block ends the variable goes down the rabbit hole.
<Dysp> It makes sense. Thank you.
c355e3b has joined #ruby
<Dysp> ljarvis: Quick question; how to close a file?
<ljarvis> &ri File#close
<apeiros> better than manually closing is to use block-form of open
<ljarvis> ^ literally just typing that
ur5us has quit [Ping timeout: 248 seconds]
<apeiros> beat you!
<ljarvis> if the files are small, you can read the contents into memory too with File.read() which opens, reads, closes
<ljarvis> there are many other convenience methods in File, so check them out
<ljarvis> (i should point out that you can do that if the files are large too, you just shouldn't)
h1fuelcell has quit [Ping timeout: 272 seconds]
zukin has joined #ruby
<Dysp> I am opening excel files
mrBen2k2k2k has quit [Remote host closed the connection]
<ljarvis> yeah ok better not then..
ichkv1 has quit [Remote host closed the connection]
<apeiros> most excel files I deal with are pretty small too
mrBen2k2k2k has joined #ruby
<Dysp> Varies
toretore has quit [Ping timeout: 272 seconds]
<Dysp> But they are not huge.
<Dysp> But for my use, I don't think it matters much.
Azure has joined #ruby
mrBen2k2k2k has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 264 seconds]
nando293921 has joined #ruby
saneax is now known as saneax-_-|AFK
mvxlr has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso> Dysp: Asking "Can you explain why you are interested in XYZ?" is not arrogant.
x0f has quit [Ping timeout: 264 seconds]
ramfjord has joined #ruby
<dminuoso> Or "Im curious why this file might be helpful to you"
ocbtec has quit [Quit: leaving]
x0f has joined #ruby
JesseH has quit [Ping timeout: 240 seconds]
mvxlr has joined #ruby
saneax-_-|AFK is now known as saneax
ocbtec has joined #ruby
cloaked1 has joined #ruby
zukin has quit [Ping timeout: 248 seconds]
nankyokusei has joined #ruby
ramfjord has quit [Ping timeout: 252 seconds]
mvxlr has quit [Client Quit]
rodfersou has joined #ruby
eizua has joined #ruby
nankyokusei has quit [Ping timeout: 244 seconds]
j3ll3 has joined #ruby
Rickmasta has quit [Quit: Textual IRC Client: www.textualapp.com]
j3ll3 has quit [Client Quit]
j3ll3 has joined #ruby
mvxlr has joined #ruby
JesseH has joined #ruby
ARCADIVS has quit [Quit: ARCADIVS]
zukin has joined #ruby
nettoweb has joined #ruby
capitainIsh has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
capitainIsh has joined #ruby
nettoweb has quit [Client Quit]
gnufied has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
TvL2386 has joined #ruby
xduba is now known as tsabx
vasilakisfil has joined #ruby
capitainIsh has quit [Client Quit]
yeticry has quit [Ping timeout: 264 seconds]
yeticry has joined #ruby
JeanCarloMachado has quit [Ping timeout: 244 seconds]
GodFather has joined #ruby
johnmilton has quit [Remote host closed the connection]
Snowy is now known as SnowyLUNCK
_sfiguser has quit [Remote host closed the connection]
<Dysp> dminuoso: Noted
Aquazi has joined #ruby
emilkarl has joined #ruby
mvxlr has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blaxter has quit [Quit: foo]
mvxlr has joined #ruby
nettoweb has joined #ruby
Guest35374 has quit [Read error: Connection reset by peer]
yqfvwal has joined #ruby
ldnunes has joined #ruby
nuck has joined #ruby
nuck is now known as Guest58009
JeanCarloMachado has joined #ruby
flak has joined #ruby
rippa has quit [Ping timeout: 272 seconds]
gnufied has quit [Ping timeout: 248 seconds]
gnufied has joined #ruby
gnufied has quit [Max SendQ exceeded]
lifted has quit [Remote host closed the connection]
Burgestrand has joined #ruby
zipace has joined #ruby
jenrzzz has joined #ruby
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
samof76 has quit [Ping timeout: 248 seconds]
frankiee_ has quit [Ping timeout: 248 seconds]
andikr has quit [Remote host closed the connection]
tuxaddicted has quit [Ping timeout: 244 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
Devalo has joined #ruby
Akuma has quit [Quit: So long sukkas!]
Akuma has joined #ruby
dionysus69 has joined #ruby
elenatanasoiu has quit [Ping timeout: 252 seconds]
Devalo has quit [Ping timeout: 244 seconds]
tuxaddicted has joined #ruby
lifted has joined #ruby
jaguarmagenta has joined #ruby
elenatanasoiu has joined #ruby
h1fuelcell has joined #ruby
bigkevmcd has quit [Read error: Connection reset by peer]
flak has quit [Read error: Connection reset by peer]
workmad3 has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
face has joined #ruby
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rbr has quit [Read error: Connection reset by peer]
h1fuelcell has quit [Remote host closed the connection]
gnufied has joined #ruby
jaguarmagenta has quit [Ping timeout: 265 seconds]
Prira has quit [Remote host closed the connection]
brendan- has joined #ruby
Bounga has joined #ruby
elenatanasoiu has quit [Ping timeout: 265 seconds]
rippa has joined #ruby
mvxlr has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rbr has joined #ruby
Prira has joined #ruby
zukin has quit [Ping timeout: 264 seconds]
johnmilton has joined #ruby
johnmilton has quit [Read error: Connection reset by peer]
voids has joined #ruby
raeoks has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bruce_lee has quit [Ping timeout: 248 seconds]
bruce_lee has joined #ruby
zukin has joined #ruby
johnmilton has joined #ruby
tuxaddicted has quit [Quit: Reconnecting]
tuxaddicted has joined #ruby
faces has joined #ruby
tuxaddicted has quit [Client Quit]
tuxaddicted has joined #ruby
tsabx has quit [Ping timeout: 240 seconds]
naftilos76 has quit [Quit: Αποχώρησε]
face has quit [Ping timeout: 264 seconds]
h1fuelcell has joined #ruby
yardenbar has quit [Ping timeout: 244 seconds]
h1fuelcell has quit [Remote host closed the connection]
face has joined #ruby
7ITAAQS4S has joined #ruby
voids has quit [Ping timeout: 276 seconds]
tbboin has quit [Remote host closed the connection]
bruce_lee has quit [Read error: Connection reset by peer]
faces has quit [Ping timeout: 252 seconds]
bruce_lee has joined #ruby
lel has quit [Read error: Connection reset by peer]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
nando293921 has quit [Ping timeout: 264 seconds]
face has quit [Remote host closed the connection]
face has joined #ruby
synthroid has joined #ruby
Bounga has quit [Remote host closed the connection]
Bounga has joined #ruby
prawnzy has joined #ruby
SesMan has joined #ruby
anquegi has quit [Remote host closed the connection]
thatsnotjack has quit [Ping timeout: 244 seconds]
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SnowyLUNCK has quit [Remote host closed the connection]
gingray has quit [Ping timeout: 244 seconds]
prawnzy has quit [Ping timeout: 248 seconds]
sdothum has joined #ruby
jcao219 has joined #ruby
neohunter has quit [Ping timeout: 272 seconds]
pawnbox has quit [Remote host closed the connection]
Madplatypus has quit [Quit: Connection closed for inactivity]
brendan- has joined #ruby
tyang has joined #ruby
SnowyLUNCK has joined #ruby
SnowyLUNCK is now known as Snowy
tuxaddicted has quit [Ping timeout: 248 seconds]
ruby-lang927 has joined #ruby
ruby-lang927 has quit [Client Quit]
pandaant has quit [Remote host closed the connection]
teclator has quit [Ping timeout: 272 seconds]
GinoManWorks has joined #ruby
aupadhye has quit [Quit: Leaving]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
elenatanasoiu has joined #ruby
<fbt> I wonder what was the point of the inconsistency in some languages of “some functions take arguments after a space but some only do so in brackets”
<fbt> Ruby is not the only one here
aries_liuxueyang has quit [Ping timeout: 265 seconds]
<fbt> But really, why allow 'puts "foo"' instead of puts("foo")?
aries_liuxueyang has joined #ruby
<Snowy> can you give an example? i'm not aware of any inconsistency in ruby.
<Snowy> the only time i'm aware that brackets are required is when there are multiple function calls leading to ambiguity
yardenbar has joined #ruby
<fbt> Ah, so any method can take arguments both ways?
<fbt> I was somehow sure that wasn't the case
blackgoat has quit [Quit: WeeChat 1.5]
sandelius has joined #ruby
kegster has quit [Quit: Shiner, TX makes good beer.]
harfangk has joined #ruby
zirpu has joined #ruby
zukin has quit [Ping timeout: 265 seconds]
anquegi has joined #ruby
anquegi has quit [Remote host closed the connection]
zukin has joined #ruby
anquegi has joined #ruby
<Snowy> that's correct by my understanding (with 4 years using rubY0
boogeyman has quit [Quit: bb]
<Snowy> but if you wanted to print the result of a method it'd be ambiguous:
<Snowy> print some_method, "foo", "bar"
<Snowy> which function are foo and bar being passed to?
<Snowy> so you need to wrap one of them in brackets, which can be written as:
<apeiros> fbt: why allow methods to be called without parens - because it reduces noise.
<apeiros> and Snowy is correct. parens are only required when it'd be ambiguous without.
<Snowy> print(some_method "foo", "bar)
<Snowy> or
<Snowy> print some_method("foo", "bar")
<apeiros> or when precedence would cause ruby to interpret it differently
<apeiros> foo :bar { "baz!" } # invalid, because the block is tied to :bar by precedence, and objects don't take blocks
<apeiros> foo(:bar) { "baz!" } # valid, because now precedence has been established explicitly through parens
nh_cham has quit [Ping timeout: 252 seconds]
yardenbar has quit [Ping timeout: 244 seconds]
<apeiros> also re terminology IMO use () parens, [] brackets, {} (curly-)braces ;-)
<fbt> Ah, () are parens, not brackets, yeah
<fbt> Anyway. I'll try sticking with just using parens always and see how that goes
<fbt> Just looks better to me .-.
anquegi has quit [Remote host closed the connection]
anquegi has joined #ruby
lucasb_ has joined #ruby
blackwind_123 has quit [Ping timeout: 265 seconds]
ramfjord has joined #ruby
yardenbar has joined #ruby
Alayde has quit [Ping timeout: 244 seconds]
stamina has quit [Ping timeout: 248 seconds]
nankyokusei has joined #ruby
rajdesai has joined #ruby
jonyijoe has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 252 seconds]
7ITAAQS4S has quit [Remote host closed the connection]
jonyijoe has joined #ruby
emilkarl has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhoulis has joined #ruby
<Aquazi> is 2.1.6 still the recommended version of ruby to start with'
yardenbar has quit [Ping timeout: 264 seconds]
<Aquazi> ?
last_staff has quit [Quit: going AWNOL]
<Aquazi> or 2.2.5?
<Dysp> Start with? Like to begin to learn?
<ineb> i would start with the newest possible version
<fbt> I just went with the one available in my distro's repos
<fbt> Which happens to be the latest one
nankyokusei has quit [Ping timeout: 265 seconds]
<Dysp> I would also pick the latest one if I were to learn it. Why spend time on learning an older version? The only reason I see to use an older version is if you work with something written in another version.
<dminuoso> Aquazi: The recommended version is always the newest version.
jonyijoe has quit [Remote host closed the connection]
<dminuoso> Aquazi: Go with 2.3.1
jonyijoe has joined #ruby
<dminuoso> Aquazi: If you only have something older that's fine too, don't worry too much about it.
<dminuoso> The changes in the past couple versions were minor
<Aquazi> i was thinking about gems compatibility ecc
coolboy has joined #ruby
<dminuoso> Aquazi: Don't worry about it.
pwnd_nsfw` has joined #ruby
<dminuoso> Aquazi: As long as you go with any version that is supported (check the topic) you will be fine for sure.
Filiphe has joined #ruby
<Aquazi> thx
<Dysp> Why isn't there a command line to update Ruby, btw?
SteenJobs has joined #ruby
emilkarl has joined #ruby
<dminuoso> Dysp: It is not Ruby's job to manage itself on every system outthere.
<Dysp> I understand that and I am happy it isn't enforced, but why not add the option? What would the cons be?
<dminuoso> Dysp: Either install Ruby through your package management system (apt, yum, homebrew, whatever floats your boat) or deal with it manually using ruby-install / chruby. The last options is generally preferred, as you are guaranteed the most recent version and can easily maintain multiple Rubies as well.
<dminuoso> Dysp: Complexity.
<Dysp> Yes, alright.
<dminuoso> Dysp: I think Java is a real exception here.
<dminuoso> But then again they have Oracle behind then.
<Dysp> It's interesting. I wonder if it is even profitable to maintain a programming language
<apeiros> fbt: so you'll write `class Foo; attr_reader(:bar); end`?
pawnbox has joined #ruby
jcao219 has quit [Ping timeout: 244 seconds]
<dminuoso> Dysp: Considering that both Sun and Oracle are not inheritently bad at business, surely Java must have profits in them.
tyang has quit [Ping timeout: 264 seconds]
<Dysp> I was thinking more of Ruby
<Dysp> What drives the development
anquegi has quit [Remote host closed the connection]
ramortegui has joined #ruby
coolboy has quit [Remote host closed the connection]
<dminuoso> Dysp: Rubys development is mostly driven by a handful of people. They probably have the backing of the companies they work at.
<fbt> apeiros, yeah, why not
<apeiros> fbt: because I haven't seen anybody do that. but of course, you're free to do so :)
konnigun has joined #ruby
<Dysp> dminuoso: I see. It's lovely, though.
jugband has joined #ruby
jugband is now known as murilo
samof76 has joined #ruby
Immune has quit [Ping timeout: 244 seconds]
pawnbox has quit [Ping timeout: 272 seconds]
anquegi has joined #ruby
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tyang has joined #ruby
pawnbox has joined #ruby
gregf_ has joined #ruby
Immune has joined #ruby
murilo has quit [Ping timeout: 265 seconds]
boogeyman has joined #ruby
jonyijoe has quit [Remote host closed the connection]
Silthias has left #ruby [#ruby]
brendan- has joined #ruby
jonyijoe has joined #ruby
ekinmur has joined #ruby
rajdesai has quit [Remote host closed the connection]
rajdesai has joined #ruby
lxsameer has quit [Quit: WeeChat 1.5]
jonyijoe has quit [Ping timeout: 265 seconds]
lifted has quit [Quit: lifted]
bsrd has quit [Quit: WeeChat 1.5]
FINbit has joined #ruby
SesMan has joined #ruby
zukin has quit [Ping timeout: 244 seconds]
rajdesai has quit [Ping timeout: 272 seconds]
tvw has quit []
tvw has joined #ruby
malconis has joined #ruby
lifted has joined #ruby
Bellthoven has joined #ruby
ben_ has joined #ruby
Snickers has quit [Ping timeout: 244 seconds]
SteenJobs has quit [Quit: SteenJobs]
Alayde has joined #ruby
thatsnotjack has joined #ruby
fmcgeough has joined #ruby
zatherz_ has joined #ruby
zatherz has quit [Ping timeout: 265 seconds]
Bellthoven has quit [Client Quit]
fuzzyhorns has joined #ruby
Bellthoven has joined #ruby
gregf_ has quit [Ping timeout: 240 seconds]
<Aquazi> I just can't install that fuckin rails, no matter the procedure
<Aquazi> tried every fix online about SSL, it just won't work
<Aquazi> (win 7)
nando293921 has joined #ruby
lifted has quit [Quit: lifted]
bsrd has joined #ruby
lifted has joined #ruby
lifted_ has joined #ruby
<lifted> I’m starting to love Rails… i’ve been writing code 5 days a week for the last 40 days in RoR and it’s pretty great for frontend stuff. that being said, for my heavy lifting im REALLY considering offloading it to a Docker cloud running Python APIs for my resource intensive stuff… thoughts??
stan has joined #ruby
<ljarvis> lifted: that sounds like a very specific use-case, I'm not sure what anyone here could offer you. You could also use smaller Ruby frameworks to power the APIs for heavy lifting stuff. I'm not really sure what you want
kus_ubuntui686 has joined #ruby
<dminuoso> lifted: ?rails
* dminuoso sighs
gregf_ has joined #ruby
<ineb> what are your reasons to switch from ruby to python?
<dminuoso> Does eye cancer suffice?
<ljarvis> now now
patarr has joined #ruby
Alayde has left #ruby ["WeeChat 1.1.1"]
<dminuoso> lifted: sorted(set(range(2,n+1)).difference(set((p * f) for p in range(2,int(n**0.5) + 2) for f in range(2,(n/p)+1))))
jenrzzz has joined #ruby
<dminuoso> Tell me this does not give you eye cancer.
frankiee_ has joined #ruby
<hanmac> yeah it does look fishy
nh_cham2 has joined #ruby
nh_cham2 has quit [Client Quit]
<ljarvis> can we stay on topic? happy to debate ruby vs python in #ruby-offtopic
yeticry has quit [Ping timeout: 265 seconds]
nh_cham2 has joined #ruby
nh_cham2 has quit [Client Quit]
<apeiros> dminuoso: other way round. bot is supposed to answer when spoken to.
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<apeiros> +only
x0f has quit [Ping timeout: 265 seconds]
<dminuoso> apeiros: ?
<ljarvis> ?rails apeiros
<ruby[bot]> apeiros: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<ljarvis> ^
<dminuoso> Im getting confused.
<dminuoso> Too many bots on this network.
ben_ has quit []
<dminuoso> Each with his own syntax.
<ljarvis> I can't disagree with that one
nh_cham2 has joined #ruby
<ljarvis> they're taking over
Jameser has joined #ruby
Devalo has joined #ruby
<apeiros> lets implement a standard for bot invocations!
<dminuoso> unified bot language.
<apeiros> hanmac can certainly aid us with the obligatory xkcd ref
nh_cham2 has quit [Client Quit]
jonyijoe has joined #ruby
<dminuoso> apeiros: https://xkcd.com/927/
<dminuoso> this one?
<apeiros> of course :)
jenrzzz has quit [Ping timeout: 248 seconds]
Dysp has quit [Quit: Page closed]
brendan- has joined #ruby
ChiefAlexander has joined #ruby
Akuma has quit [Read error: Connection reset by peer]
Akuma has joined #ruby
yeticry has joined #ruby
<lucasb_> one bot to rule them all
Devalo has quit [Ping timeout: 244 seconds]
sagax has quit [Ping timeout: 244 seconds]
<lifted> ineb: long processing time due to high-memory usage (garbage collection) with scraping a LOT of data… then also lots of ActiveRecord stuff...
<lifted> dminuso: that’s so disgusting lol
gregf_ has quit [Ping timeout: 240 seconds]
x0f has joined #ruby
GodFather has quit [Ping timeout: 265 seconds]
borodin has quit [Remote host closed the connection]
jaguarmagenta has joined #ruby
bsrd has quit [Quit: WeeChat 1.5]
yeticry has quit [Remote host closed the connection]
ta_ has quit [Remote host closed the connection]
x0f has quit [Ping timeout: 248 seconds]
yeticry has joined #ruby
x0f has joined #ruby
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
jaguarmagenta has quit [Ping timeout: 265 seconds]
Snowy_ has joined #ruby
murilo has joined #ruby
Filiphe has quit [Remote host closed the connection]
yqfvwal has quit [Quit: Leaving]
GodFather has joined #ruby
Kruppe has quit [Quit: ZNC - http://znc.in]
jeffreylevesque has joined #ruby
<jeffreylevesque> what is the current ruby version
Bellthoven has quit []
Snickers has joined #ruby
Kruppe has joined #ruby
ctp has joined #ruby
Snowy has quit [Ping timeout: 272 seconds]
M-mistake has quit [Quit: node-irc says goodbye]
<apeiros> jeffreylevesque: on your machine? or newest stable? that'd be "see topic" :-p
ichkv has joined #ruby
SteenJobs has joined #ruby
centrx has joined #ruby
Bounga has quit [Remote host closed the connection]
fmcgeough has quit [Quit: fmcgeough]
jphase has joined #ruby
kimegede has quit [Quit: Leaving...]
nettoweb has joined #ruby
skweek has joined #ruby
axl_ has joined #ruby
eGGshke has quit [Remote host closed the connection]
samof76 has quit [Ping timeout: 264 seconds]
nando293921 has quit [Ping timeout: 252 seconds]
hutch34 has joined #ruby
LastWhisper____ has joined #ruby
prawnzy has joined #ruby
Renich has joined #ruby
lifted has quit [Quit: lifted]
teclator has joined #ruby
naftilos76 has joined #ruby
anquegi has quit []
RTFM[away] has joined #ruby
lifted has joined #ruby
shinnya has joined #ruby
prawnzy has quit [Ping timeout: 244 seconds]
lugzer has joined #ruby
lugzer has quit [Remote host closed the connection]
lugzer has joined #ruby
tsabx has joined #ruby
ccmcdee-e7 has joined #ruby
gingray has joined #ruby
dionysus70 has joined #ruby
ekinmur has quit [Quit: Textual IRC Client: www.textualapp.com]
dionysus69 has quit [Ping timeout: 252 seconds]
dionysus70 is now known as dionysus69
lifted has quit [Quit: lifted]
kobain has joined #ruby
banisterfiend has joined #ruby
ccmcdee-e7 has quit [Ping timeout: 264 seconds]
Snowy_ is now known as LDJFIO
lifted has joined #ruby
fmcgeough has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
lifted has quit [Client Quit]
emilkarl has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gregf__ has joined #ruby
wldcordeiro has quit [Ping timeout: 264 seconds]
marsjaninzmarsa has quit [Quit: ZNC 1.7.x-git-487-cbf5c38 - http://znc.in]
emilkarl has joined #ruby
marsjaninzmarsa has joined #ruby
dminuoso has quit [Ping timeout: 264 seconds]
borodin has joined #ruby
matp_ is now known as matp
Joufflu has joined #ruby
Joufflu has quit [Max SendQ exceeded]
marsjaninzmarsa is now known as marsjanin
lifted has joined #ruby
borodin has quit [*.net *.split]
marsjanin has quit [*.net *.split]
gingray has quit [*.net *.split]
nettoweb has quit [*.net *.split]
yeticry has quit [*.net *.split]
Jameser has quit [*.net *.split]
kus_ubuntui686 has quit [*.net *.split]
stan has quit [*.net *.split]
lifted_ has quit [*.net *.split]
zatherz_ has quit [*.net *.split]
pawnbox has quit [*.net *.split]
pwnd_nsfw` has quit [*.net *.split]
sdothum has quit [*.net *.split]
face has quit [*.net *.split]
Prira has quit [*.net *.split]
gnufied has quit [*.net *.split]
JeanCarloMachado has quit [*.net *.split]
Guest58009 has quit [*.net *.split]
ocbtec has quit [*.net *.split]
c355e3b has quit [*.net *.split]
jsrn__ has quit [*.net *.split]
flying has quit [*.net *.split]
ponga has quit [*.net *.split]
eljimbo has quit [*.net *.split]
jooni has quit [*.net *.split]
cyphase has quit [*.net *.split]
croberts has quit [*.net *.split]
Expanse has quit [*.net *.split]
olivierjanss has quit [*.net *.split]
colstrom has quit [*.net *.split]
Xeago has quit [*.net *.split]
Qommand0r has quit [*.net *.split]
webhat has quit [*.net *.split]
armyriad has quit [*.net *.split]
jrafanie has quit [*.net *.split]
unreal has quit [*.net *.split]
zacstewart has quit [*.net *.split]
nebben has quit [*.net *.split]
zirpu has quit [*.net *.split]
Rutix has quit [*.net *.split]
canton7 has quit [*.net *.split]
iMadper has quit [*.net *.split]
meatchicken has quit [*.net *.split]
Satyajit has quit [*.net *.split]
na_belom_kone has quit [*.net *.split]
bauruine has quit [*.net *.split]
ndrst has quit [*.net *.split]
cred has quit [*.net *.split]
hogetaro has quit [*.net *.split]
bronson has quit [*.net *.split]
BytesAndCoffee has quit [*.net *.split]
madsa_ has quit [*.net *.split]
majoh has quit [*.net *.split]
ElderFain has quit [*.net *.split]
etehtsea has joined #ruby
pwnd_nsfw` has joined #ruby
ElderFain has joined #ruby
ElderFain has joined #ruby
ElderFain has quit [Changing host]
ocbtec has joined #ruby
ndrst has joined #ruby
zirpu has joined #ruby
yazdmich has joined #ruby
armyriad has joined #ruby
majoh has joined #ruby
Prira has joined #ruby
iMadper has joined #ruby
Xeago has joined #ruby
canton7 has joined #ruby
face has joined #ruby
jsrn__ has joined #ruby
meatchicken has joined #ruby
cyphase has joined #ruby
na_belom_kone has joined #ruby
kus_ubuntui686 has joined #ruby
kus_ubuntui686 has quit [Max SendQ exceeded]
zatherz_ has joined #ruby
unreal has joined #ruby
bronson has joined #ruby
hogetaro has joined #ruby
eljimbo has joined #ruby
jooni has joined #ruby
jrafanie has joined #ruby
pawnbox has joined #ruby
bauruine has joined #ruby
stan has joined #ruby
flying has joined #ruby
Jameser has joined #ruby
gingray has joined #ruby
zacstewart has joined #ruby
ndrst is now known as Guest19692
Rutix has joined #ruby
Rutix has quit [Changing host]
Rutix has joined #ruby
nuck has joined #ruby
yeticry has joined #ruby
nettoweb has joined #ruby
gnufied has joined #ruby
nuck is now known as Guest76247
kus_ubuntui686 has joined #ruby
kus_ubuntui686 has quit [Max SendQ exceeded]
Qommand0r has joined #ruby
Sonicblaze has joined #ruby
madsa has joined #ruby
nebben has joined #ruby
marsjaninzmarsa has joined #ruby
gnufied has quit [Max SendQ exceeded]
ctp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lifted_ has joined #ruby
dminuoso has joined #ruby
ghostlight has quit [Ping timeout: 264 seconds]
nekomune has quit [Ping timeout: 240 seconds]
machty has quit [Ping timeout: 272 seconds]
discopatrick has quit [Ping timeout: 240 seconds]
c355e3b has joined #ruby
funnel has quit [Ping timeout: 276 seconds]
sdothum has joined #ruby
gnufied has joined #ruby
JeanCarloMachado has joined #ruby
yeticry has quit [Ping timeout: 244 seconds]
murilo has quit [Read error: Connection reset by peer]
funnel has joined #ruby
ponga has joined #ruby
yeticry has joined #ruby
saneax is now known as saneax-_-|AFK
<zatherz_> this is a piece from my parser based on Parslet
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hutch34 has quit [Quit: WeeChat 1.5]
olivierjanss has joined #ruby
discopatrick has joined #ruby
machty has joined #ruby
<ljarvis> >> call = 1; if false; call = nil; end; puts call
<ruby[bot]> ljarvis: # => 1 ...check link for more (https://eval.in/655731)
sepp2k has joined #ruby
<zatherz_> yeah I tested that, it's some weirdness with the Parslet classes I am pretty sure
<ljarvis> ah
<ljarvis> yeah sounds pretty dumb
<zatherz_> how the fuck would that even work
<zatherz_> the `if false` block should never be ran
<ljarvis> did you try a different variable name?
nando293921 has joined #ruby
tsabx has quit [Quit: .]
<zatherz_> ljarvis: it works if I do `xcall = call` then use `xcall`
<zatherz_> what the fuck
yardenbar has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
j3ll3 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<zatherz_> I'm so confused
ramfjord has joined #ruby
<apeiros> lvar vs. method
<zatherz_> why does it work if I do `xcall = call` and then use xcall?
<apeiros> I think you just shadowed a method with an lvar. and no, the actual assignment doesn't need to be executed, it just needs to be "seen" by ruby
<ljarvis> yeah they probably have a call method somewhere, so the second time it's called it's nil
<ljarvis> because xcall didn't change
<zatherz_> wait
mrBen2k2k2k has joined #ruby
<zatherz_> it needs to be just "seen"?
<ljarvis> it retains the original method call value
<apeiros> yes
<zatherz_> how does that work
<apeiros> >> if false; x = nil; end; x
<ruby[bot]> apeiros: # => nil (https://eval.in/655733)
SteenJobs has quit [Quit: SteenJobs]
<apeiros> note how you don't get an exception
<apeiros> >> def x; "hi there!"; end; if false; x = nil; end; x
<zatherz_> why does that work though
<ruby[bot]> apeiros: # => nil (https://eval.in/655734)
nekomune has joined #ruby
<apeiros> because lvars are not a hash
<zatherz_> >> if false; x = nil; puts "will this print?"; end; x
<ruby[bot]> zatherz_: # => nil (https://eval.in/655735)
<apeiros> the last code is what almost certainly happens in your case.
<zatherz_> ah wait, I think I'm getting it
tlaxkit has quit [Quit: tlaxkit]
Expanse has joined #ruby
<hanmac> local variables are set when the code is parsed, not when the code is excecuted
tvw has quit [Read error: Connection reset by peer]
jugband has joined #ruby
jugband is now known as murilo
colstrom has joined #ruby
<zatherz_> that sounds terrible :/
murilo has left #ruby [#ruby]
nh_cham has joined #ruby
* apeiros sobs
jenrzzz has quit [Ping timeout: 265 seconds]
<apeiros> it's terrible if you have conditionally defined lvars
yannj has joined #ruby
<apeiros> the rest is just you vs. faster code.
lifted has quit [Quit: lifted]
<zatherz_> this seems like a pretty important thing, I'm surprised that it wasn't in the tutorial I was learning from
<zatherz_> especially coming from lua
Guest19692 is now known as ndrst
<apeiros> namely: any sane language will not look up lvars by name. the name is for us puny humans. and in order to use faster access to lvars, it'll reserve them upfront.
<zatherz_> so, is the best workaround to just use the `xcall = call` stuff?
lifted has joined #ruby
tyang has quit [Ping timeout: 264 seconds]
programmerq has joined #ruby
<apeiros> I'd use a better name. but yes. don't shadow methods.
<ineb> i remember when this behaviour suprised me aswell
submitnine has quit [Remote host closed the connection]
<zatherz_> what I'm gonna do instead is use parslet's transforms stuff to not have to do this in the first place
axl_ has quit [Quit: axl_]
<zatherz_> basically, parslet will return an array of hashes if it finds multiple nodes marked as the same thing, but it'll only return a hash (not an array with a single element that's a hash) if there's only one element
wldcordeiro has joined #ruby
<zatherz_> actually, I can't do that, so I'll just do something like `call_lvar = call`
lifted has quit [Client Quit]
nankyokusei has joined #ruby
jphase has quit [Remote host closed the connection]
<matthewd> `call = call()` or `call = self.call` work too
lidenbrock has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 252 seconds]
<zatherz_> matthewd: call = call() is great, thanks!
emilkarl has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
skweek has quit [Ping timeout: 252 seconds]
<ljarvis> why would a variable name ever be called call D:
SteenJobs has joined #ruby
lifted has joined #ruby
techietrash has left #ruby ["Textual IRC Client: www.textualapp.com"]
<ljarvis> why would a variable ever be named call D: *
<zatherz_> ljarvis: I'm writing a recursive command parser and `call` is the name of the command call node
ghostlight has joined #ruby
lifted has quit [Client Quit]
nankyokusei has quit [Ping timeout: 265 seconds]
dminuoso has quit [Remote host closed the connection]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
luong has joined #ruby
j3ll3 has joined #ruby
antgel has quit [Ping timeout: 244 seconds]
dionysus69 has quit [Ping timeout: 265 seconds]
ferr has quit [Quit: WeeChat 1.5]
luong has quit [Client Quit]
miguelfernandes has joined #ruby
jphase has joined #ruby
yardenbar has quit [Ping timeout: 265 seconds]
DoubleMalt has joined #ruby
programmerq has left #ruby ["WeeChat 1.5"]
abernstein has quit [Quit: abernstein]
luong has joined #ruby
aganov has quit [Remote host closed the connection]
brendan- has joined #ruby
<LastWhisper____> hey guys if i have an array of objects, and the objects have different classes "Johnsons" and "Jimmies" can i do an array.map to only find Johnsons ?
ccmcdee-sfc has joined #ruby
Emmanuel_Chanel has joined #ruby
skweek has joined #ruby
naftilos76 has quit [Quit: Αποχώρησε]
synthroid has quit [Remote host closed the connection]
<lucasb_> LastWhisper____: array.grep(Johnson)
sepp2k has quit [Read error: Connection reset by peer]
<luong> Which protocol that fog use to transfer file to AWS?
vasilakisfil has quit [Ping timeout: 265 seconds]
maddmaxx has joined #ruby
Renich has quit [Ping timeout: 244 seconds]
jonyijoe has quit []
emilkarl has joined #ruby
<luong> I use sftp to upload avatars to my own server but it's very slow to connect. So, how can I handle this?
<LastWhisper____> ty lucasb_
troulouliou_div2 has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
jgnagy has joined #ruby
jgnagy has quit [Client Quit]
SteenJobs has joined #ruby
bkxd has joined #ruby
emilkarl has quit [Quit: Textual IRC Client: www.textualapp.com]
Renich has joined #ruby
Aquazi has quit [Read error: Connection reset by peer]
mhoogkamer has joined #ruby
nando293921 has quit [Ping timeout: 265 seconds]
yqfvwal has joined #ruby
Guest38_ has joined #ruby
Oclair has quit [Ping timeout: 264 seconds]
LDJFIO has quit [Remote host closed the connection]
Oclair has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
brendan- is now known as bmurt-
synthroid has joined #ruby
LDJFIO has joined #ruby
bmurt- is now known as brendan-
frankiee_ has quit [Read error: Connection reset by peer]
nankyokusei has joined #ruby
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sepp2k has joined #ruby
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
LDJFIO has quit [Ping timeout: 264 seconds]
ctp has joined #ruby
dionysus69 has joined #ruby
kimegede has joined #ruby
mark_66 has quit [Remote host closed the connection]
luong has quit [Ping timeout: 272 seconds]
djbkd has joined #ruby
bkxd has quit [Ping timeout: 264 seconds]
tyang has joined #ruby
stamina has joined #ruby
jackjackdripper has joined #ruby
Jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kimegede has quit [Quit: Leaving...]
h1fuelcell has joined #ruby
conta has quit [Ping timeout: 244 seconds]
xentity1x has joined #ruby
shinnya has quit [Ping timeout: 265 seconds]
rodfersou is now known as rodfersou|lunch
miqlas-H has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
ramfjord has quit [Ping timeout: 264 seconds]
etehtsea has quit [Ping timeout: 244 seconds]
amclain has joined #ruby
Chair has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
TvL2386 has quit [Ping timeout: 244 seconds]
babblebre has joined #ruby
devmagpie has quit [Quit: devmagpie]
Coldblackice has joined #ruby
aufi has quit [Quit: Leaving]
symm- has joined #ruby
cred has joined #ruby
M-shine has quit [Quit: node-irc says goodbye]
tvw has joined #ruby
DoubleMalt has quit [Ping timeout: 272 seconds]
jaguarmagenta has joined #ruby
suchness has joined #ruby
nettoweb has joined #ruby
<suchness> Anyone know if it's possible using "Mail" to get rid of an emails history? If I reply to someone, their original message is stuck in my reply, I want to strip everything out of each email (including a signature if I can) so only the exact message sent is left.
pawnbox has quit [Ping timeout: 272 seconds]
abernstein has joined #ruby
antgel has joined #ruby
<matthewd> suchness: https://github.com/github/email_reply_parser might help
abernstein has quit [Client Quit]
erlingur_ has quit [Ping timeout: 264 seconds]
barajasfab has joined #ruby
h1fuelcell has quit [Remote host closed the connection]
h1fuelcell has joined #ruby
jaguarmagenta has quit [Ping timeout: 256 seconds]
jsrn__ has quit [Quit: Leaving]
djbkd has quit []
pawnbox has joined #ruby
fivmo has joined #ruby
fivmo has left #ruby [#ruby]
jonyijoe has joined #ruby
Devalo has joined #ruby
TvL2386 has joined #ruby
rkoller has joined #ruby
[Butch] has joined #ruby
Renich has quit [Ping timeout: 272 seconds]
Renich has joined #ruby
NTrash has joined #ruby
workmad3 has quit [Ping timeout: 265 seconds]
jackjackdripper has quit [Quit: Leaving.]
craigp_ has quit [Ping timeout: 272 seconds]
Chair has quit [Ping timeout: 244 seconds]
abernstein has joined #ruby
yannj has quit [Ping timeout: 265 seconds]
ccmcdee-sfc has left #ruby ["WeeChat 1.5"]
ziprar has joined #ruby
zipace has quit [Disconnected by services]
prawnzy has joined #ruby
flying has quit []
mhoogkamer has quit [Ping timeout: 264 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pragmaticus has joined #ruby
pragmaticus has quit [Changing host]
pragmaticus has joined #ruby
whathappens has joined #ruby
lifted has joined #ruby
jcao219 has joined #ruby
workmad3 has joined #ruby
prawnzy has quit [Ping timeout: 252 seconds]
lifted has quit [Client Quit]
ctp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lifted has joined #ruby
miqlas-H has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
blackwind_123 has joined #ruby
yqfvwal has quit [Ping timeout: 244 seconds]
wrkrcoop has joined #ruby
wrkrcoop has left #ruby [#ruby]
lifted has quit [Client Quit]
JakFrist[WVU] has joined #ruby
stamina has quit [Ping timeout: 264 seconds]
lucasb_ has quit [Quit: leaving]
SeepingN has joined #ruby
leea has joined #ruby
x0f has quit [Ping timeout: 252 seconds]
lifted has joined #ruby
JakFrist[WVU] has quit [Client Quit]
fuzzyhorns has quit [Quit: Leaving.]
ctp has joined #ruby
h1fuelcell has quit [Remote host closed the connection]
h1fuelcell has joined #ruby
ziprar has quit [Ping timeout: 272 seconds]
raeoks has joined #ruby
lifted has quit [Client Quit]
Uranio has joined #ruby
lifted has joined #ruby
chouhoulis has quit [Ping timeout: 244 seconds]
nando293921 has joined #ruby
miguelfernandes has quit [Remote host closed the connection]
lifted has quit [Client Quit]
h1fuelcell has quit [Ping timeout: 256 seconds]
Aquazi has joined #ruby
borodin has joined #ruby
TPug has joined #ruby
jcao219 has quit [Ping timeout: 244 seconds]
ramfjord has joined #ruby
yqfvwal has joined #ruby
yqfvwal has quit [Max SendQ exceeded]
SteenJobs has quit [Quit: SteenJobs]
yqfvwal has joined #ruby
yqfvwal has quit [Max SendQ exceeded]
yqfvwal has joined #ruby
Beams has quit [Quit: .]
antgel has quit [Ping timeout: 256 seconds]
SteenJobs has joined #ruby
raeoks has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mtkd has quit [Ping timeout: 265 seconds]
whathappens has quit [Remote host closed the connection]
NTrash has quit [Quit: Konversation terminated!]
TPug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nettoweb has quit [Read error: Connection reset by peer]
nitric has joined #ruby
mtkd has joined #ruby
nettoweb has joined #ruby
rakm has joined #ruby
TPug has joined #ruby
whathappens has joined #ruby
skweek has quit [Ping timeout: 272 seconds]
nh_cham has quit [Ping timeout: 264 seconds]
lifted has joined #ruby
nettoweb1 has joined #ruby
nettoweb has quit [Ping timeout: 265 seconds]
cschneid_ has joined #ruby
tax has joined #ruby
fuzzyhorns has joined #ruby
TinkerTyper has joined #ruby
lifted has quit [Client Quit]
ctp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sonOfRa has joined #ruby
<sonOfRa> Is there some comprehensive guide for the ruby native API that lists functions, their arguments, and their uses?
jphase has quit [Ping timeout: 264 seconds]
vasilakisfil has joined #ruby
lifted_ has quit [Remote host closed the connection]
raeoks has joined #ruby
lifted has joined #ruby
hypercube32 has quit [Quit: Leaving]
lugzer has quit [Quit: Be back later ...]
cjbischo_ has joined #ruby
NTrash has joined #ruby
NTrash has quit [Client Quit]
claudiuinberlin has quit [Remote host closed the connection]
NTrash has joined #ruby
NTrash has quit [Client Quit]
conta has joined #ruby
jobat_ has joined #ruby
cjbischof_ has quit [Ping timeout: 252 seconds]
<sonOfRa> Currently I'm just staring at the different files in /usr/include/ruby/**, but that's a bit of a drag
NTrash has joined #ruby
NTrash has quit [Client Quit]
NTrash has joined #ruby
<sonOfRa> ghr, that looks like the ruby API. I'm writing a native extension, so I'd need to look at the C API
yannj has joined #ruby
<ghr> ah, sorry :)
jonyijoe has quit [Remote host closed the connection]
ctp has joined #ruby
prawnzy has joined #ruby
fuzzyhorns has quit [Quit: Leaving.]
jaequery has joined #ruby
rcvalle has joined #ruby
fuzzyhorns has joined #ruby
rodfersou|lunch is now known as rodfersou
nofxx has joined #ruby
pwnd_nsfw has joined #ruby
centrx has quit []
AlphaAtom has joined #ruby
gregf__ has quit [Ping timeout: 240 seconds]
pwnd_nsfw` has quit [Ping timeout: 272 seconds]
Devalo has quit [Remote host closed the connection]
ctp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
erlingur_ has joined #ruby
FINbit has quit [Ping timeout: 264 seconds]
yannj has quit [Ping timeout: 265 seconds]
elenatanasoiu has quit [Ping timeout: 264 seconds]
ChiefAlexander has quit [Read error: Connection reset by peer]
troulouliou_div2 has quit [Remote host closed the connection]
Uranio has quit [Quit: while you read this, a kitty dies]
nankyokusei has quit [Remote host closed the connection]
ChiefAlexander has joined #ruby
jobat_ has quit [Ping timeout: 240 seconds]
Dimik has joined #ruby
last_staff has joined #ruby
last_staff has quit [Excess Flood]
SteenJobs has quit [Quit: SteenJobs]
last_staff has joined #ruby
<sonOfRa> konnigun, that looks good, thank you!
vdamewood has joined #ruby
nando293921 has quit [Ping timeout: 264 seconds]
<konnigun> glad to help :)
kt2 has quit [Ping timeout: 265 seconds]
TinkerTyper has quit [Read error: Connection reset by peer]
rkoller has quit [Quit: Textual IRC Client: www.textualapp.com]
elastix has joined #ruby
konnigun has quit [Quit: Textual IRC Client: www.textualapp.com]
synthroid has quit [Remote host closed the connection]
tenderlove has quit [Read error: No route to host]
tenderlove has joined #ruby
TinkerTyper has joined #ruby
ichkv has quit [Remote host closed the connection]
whathappens has quit [Remote host closed the connection]
_sfiguser has joined #ruby
claudiuinberlin has joined #ruby
sneakers has joined #ruby
Dobler has joined #ruby
GodFather has quit [Ping timeout: 265 seconds]
Dobler has quit [Client Quit]
whathapp_ has joined #ruby
djbkd has joined #ruby
claudiuinberlin has quit [Ping timeout: 264 seconds]
marxarelli has joined #ruby
ocbtec has quit [Quit: leaving]
thatsnotjack has quit [Ping timeout: 272 seconds]
JeanCarloMachado has quit [Ping timeout: 272 seconds]
nando293921 has joined #ruby
nankyokusei has joined #ruby
devmagpie has joined #ruby
abernstein_ has joined #ruby
Puffball has joined #ruby
claudiuinberlin has joined #ruby
tyang has quit [Ping timeout: 264 seconds]
Puffball has quit [Remote host closed the connection]
SteenJobs has joined #ruby
abernstein has quit [Ping timeout: 272 seconds]
abernstein_ is now known as abernstein
spudowiar has joined #ruby
TinkerTyper has quit [Ping timeout: 244 seconds]
spudowiar has quit [Client Quit]
SteenJobs has quit [Ping timeout: 244 seconds]
Puffball has joined #ruby
jrafanie has quit [Quit: Textual IRC Client: www.textualapp.com]
tyang has joined #ruby
TinkerTyper has joined #ruby
SteenJobs has joined #ruby
jrafanie has joined #ruby
behemot has joined #ruby
jaguarmagenta has joined #ruby
zipace has joined #ruby
Zarthus has quit [Ping timeout: 272 seconds]
Zarthus has joined #ruby
skweek has joined #ruby
epistrephein has joined #ruby
nettoweb1 has quit [Read error: Connection reset by peer]
funnel has quit [Ping timeout: 272 seconds]
nettoweb has joined #ruby
epistrephein has quit [Remote host closed the connection]
funnel has joined #ruby
epistrephein has joined #ruby
LDJFIO_ has joined #ruby
dviola has joined #ruby
jaiks has joined #ruby
Puffball has quit [Ping timeout: 252 seconds]
jaguarmagenta has quit [Ping timeout: 265 seconds]
devmagpie has quit [Quit: devmagpie]
epistrephein has quit [Client Quit]
jackjackdripper has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
jackjackdripper1 has joined #ruby
Puffball has joined #ruby
jackjackdripper1 has quit [Read error: Connection reset by peer]
jackjackdripper has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
jackjackdripper has joined #ruby
jackjackdripper1 has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
jackjackdripper1 has quit [Read error: Connection reset by peer]
jackjackdripper has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
jackjackdripper1 has joined #ruby
epistrephein has joined #ruby
sandelius has joined #ruby
jackjackdripper1 has quit [Read error: Connection reset by peer]
epistrephein has quit [Client Quit]
jackjackdripper has joined #ruby
Guest38_ has left #ruby ["Textual IRC Client: www.textualapp.com"]
jackjackdripper has quit [Read error: Connection reset by peer]
<sandelius> is it possible to unshift in a set?
jackjackdripper1 has joined #ruby
jackjackdripper1 has quit [Read error: Connection reset by peer]
jackjackdripper has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
nettoweb1 has joined #ruby
stamina has joined #ruby
stamina has quit [Client Quit]
workmad3 has quit [Ping timeout: 265 seconds]
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
minimalism has joined #ruby
leea has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
elastix has quit [Quit: elastix]
thatsnotjack has joined #ruby
lxsameer has joined #ruby
<tubbo> sandelius: !try
Puffball has quit [Ping timeout: 256 seconds]
<tubbo> aww
nettoweb has quit [Ping timeout: 252 seconds]
<tubbo> sandelius: if it responds to unshift, it should work... `Set.new.respond_to? :unshift`
<tubbo> i think it's an Enumerable so you can do that
<sandelius> tubbo unshift is not part of the set class, I was asking a work around
TomyWork has quit [Ping timeout: 240 seconds]
<tubbo> oh ok
<sandelius> nopp
JoshS has quit [Quit: Leaving]
<tubbo> sandelius: Set.new(your_set.to_a.unshift('something'))? haha
replay has joined #ruby
<sandelius> @tubbo haha then hide under the bed :)
<tubbo> sandelius: http://ruby-doc.org/stdlib-2.3.1/libdoc/set/rdoc/Set.html -> " An Enumerable object can be converted to Set using the to_set method."
<tubbo> so you could use to_set on that array
<tubbo> your_set.to_a.unshift('val').to_set
<havenwood> >> Set[:x].merge Set[1, 2, 3]
<ruby[bot]> havenwood: # => uninitialized constant Set (NameError) ...check link for more (https://eval.in/655860)
<havenwood> right, right
mrmortondk has joined #ruby
<havenwood> #=> #<Set: {:x, 1, 2, 3}>
LastWhisper____ has joined #ruby
<sandelius> havenwood that's a good idea, still need to create a new set just to unshift an item :/
<havenwood> but Set is unordered
<havenwood> sandelius: it isn't a thing because it isn't ordered
lucasb_ has joined #ruby
jaiks has quit [Ping timeout: 252 seconds]
<sandelius> havenwood gahh back to .unique on array then
<havenwood> sandelius: Arrays are ordered so adding to the beginning or end makes sense.
chouhoulis has joined #ruby
erlingur_ has quit [Ping timeout: 264 seconds]
<sandelius> I'm really excited about Guilds
ben_ has joined #ruby
eizua has quit [Quit: Leaving]
nankyokusei has quit [Remote host closed the connection]
nankyokusei has joined #ruby
replay has left #ruby ["Textual IRC Client: www.textualapp.com"]
chouhoulis has quit [Remote host closed the connection]
synthroid has joined #ruby
chouhoulis has joined #ruby
SteenJobs has joined #ruby
nankyokusei has quit [Ping timeout: 244 seconds]
Satyajit has joined #ruby
synthroi_ has joined #ruby
synthroid has quit [Remote host closed the connection]
nullniverse has quit [Ping timeout: 264 seconds]
Renich has quit [Quit: leaving]
nalik89 has joined #ruby
chouhoul_ has joined #ruby
chouhoulis has quit [Ping timeout: 264 seconds]
x0f has joined #ruby
leea has joined #ruby
TvL2386 has quit [Quit: Ex-Chat]
jaiks has joined #ruby
wldcordeiro has quit [Quit: WeeChat 1.4]
wldcordeiro has joined #ruby
vuoto has joined #ruby
claudiuinberlin has quit [Remote host closed the connection]
nettoweb has joined #ruby
LDJFIO_ is now known as Snowy
<suchness> matthewd: Thanks1
suchness has quit []
NTrash has quit [Quit: Konversation terminated!]
nettoweb1 has quit [Ping timeout: 244 seconds]
NTrash has joined #ruby
jaiks has quit [Ping timeout: 244 seconds]
bronson has quit [Read error: Connection reset by peer]
bronson has joined #ruby
bronson has quit [Read error: Connection reset by peer]
NTrash has quit [Client Quit]
bronson has joined #ruby
tonini has quit [Quit: Connection closed for inactivity]
bronson has quit [Read error: Connection reset by peer]
vdamewood has quit [Ping timeout: 256 seconds]
bronson has joined #ruby
redpants has joined #ruby
bronson has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
bronson has joined #ruby
nfk has joined #ruby
devmagpie has joined #ruby
rodferso1 has joined #ruby
devmagpie has quit [Client Quit]
boogeyman has quit [Quit: bb]
kobain has quit [Ping timeout: 252 seconds]
Ishido has joined #ruby
cjbischof_ has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
rodfersou has quit [Ping timeout: 272 seconds]
bronson has quit [Read error: Connection reset by peer]
cjbischo_ has quit [Ping timeout: 252 seconds]
AndrewIsHere has joined #ruby
vdamewood has joined #ruby
bronson has joined #ruby
boogeyman has joined #ruby
yqfvwal has quit [Ping timeout: 256 seconds]
whathapp_ has quit [Remote host closed the connection]
magellanicloud has joined #ruby
whathappens has joined #ruby
kimegede has joined #ruby
claudiuinberlin has joined #ruby
claudiuinberlin has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
Immune has quit [Ping timeout: 244 seconds]
chouhoulis has joined #ruby
whathappens has quit [Remote host closed the connection]
zeroDi has joined #ruby
jcao219 has joined #ruby
whathappens has joined #ruby
A124 has quit [Quit: '']
todd_dsmw has joined #ruby
chouhoul_ has quit [Ping timeout: 264 seconds]
capitainIsh has joined #ruby
existensil has quit [Quit: WeeChat 0.4.2]
Immune has joined #ruby
chouhoulis has quit [Remote host closed the connection]
whathapp_ has joined #ruby
chouhoulis has joined #ruby
whathappens has quit [Ping timeout: 264 seconds]
whathapp_ has quit [Read error: Connection reset by peer]
existensil has joined #ruby
whathappens has joined #ruby
johnmilton has quit [Remote host closed the connection]
vdamewood has quit [Ping timeout: 265 seconds]
tyang has quit [Ping timeout: 264 seconds]
anisha has joined #ruby
mhoogkamer has joined #ruby
whathappens has quit [Read error: Connection reset by peer]
whathappens has joined #ruby
redpants has quit [Ping timeout: 256 seconds]
ur5us has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
skweek has quit [Ping timeout: 256 seconds]
igniting has joined #ruby
bmurt has joined #ruby
jcao219 has quit [Ping timeout: 244 seconds]
Devalo has joined #ruby
vasilakisfil has quit [Remote host closed the connection]
johnmilton has joined #ruby
A124 has joined #ruby
lxsameer has quit [Quit: WeeChat 1.5]
whathappens has quit [Read error: Connection reset by peer]
tyang has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
whathappens has joined #ruby
whathappens has quit [Read error: Connection reset by peer]
djbkd has quit [Read error: Connection reset by peer]
whathappens has joined #ruby
conta has quit [Ping timeout: 252 seconds]
kegster has joined #ruby
djbkd has joined #ruby
Devalo has quit [Remote host closed the connection]
whathappens has quit [Read error: Connection reset by peer]
conta has joined #ruby
skweek has joined #ruby
bmurt has quit [Quit: Textual IRC Client: www.textualapp.com]
jrafanie has quit [Quit: Textual IRC Client: www.textualapp.com]
whathappens has joined #ruby
dionysus70 has joined #ruby
capitainIsh has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
eljimbo has quit [Read error: No route to host]
eljimbo has joined #ruby
dionysus69 has quit [Ping timeout: 272 seconds]
dionysus70 is now known as dionysus69
whathappens has quit [Read error: Connection reset by peer]
whathappens has joined #ruby
nofxx has quit [Ping timeout: 272 seconds]
mhoogkamer has quit [Ping timeout: 244 seconds]
conta has quit [Ping timeout: 265 seconds]
leea has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ChiefAlexander has quit [Remote host closed the connection]
ChiefAlexander has joined #ruby
lucasb_ has quit [Quit: leaving]
kimegede has quit [Quit: Linkinus - http://linkinus.com]
sandelius has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dviola has quit [Quit: WeeChat 1.5]
JesseH has quit [Ping timeout: 265 seconds]
djbkd has quit [Remote host closed the connection]
vdamewood has joined #ruby
djbkd has joined #ruby
synthroi_ has quit [Remote host closed the connection]
kobain has joined #ruby
craigp_ has joined #ruby
tvw has quit [Remote host closed the connection]
_djbkd has joined #ruby
_djbkd has quit [Read error: Connection reset by peer]
vuoto has quit [Remote host closed the connection]
djbkd has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
whathappens has quit [Read error: Connection reset by peer]
whathappens has joined #ruby
Wizznt has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
bluOxigen has quit [Ping timeout: 252 seconds]
bluOxigen has joined #ruby
djbkd has quit [Remote host closed the connection]
h1d has joined #ruby
polyidus has joined #ruby
conta has joined #ruby
arashb has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
h1d has quit [Client Quit]
whathappens has quit [Remote host closed the connection]
djbkd has joined #ruby
JesseH has joined #ruby
ihre has quit [Quit: [-j DROP]]
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
LastWhisper____ has joined #ruby
LastWhisper____ has quit [Client Quit]
Devalo has joined #ruby
ChiefAlexander_ has joined #ruby
AndrewIsHere has quit []
djbkd has quit [Remote host closed the connection]
twalla has joined #ruby
mrmortondk has quit [Quit: Textual IRC Client: www.textualapp.com]
ChiefAlexander has quit [Ping timeout: 264 seconds]
hiro_ has joined #ruby
jaguarmagenta has joined #ruby
Devalo has quit [Ping timeout: 256 seconds]
conta has quit [Ping timeout: 252 seconds]
zipace has quit [Read error: Connection reset by peer]
<hiro_> Hey everyone, I've been trying to resolve my version / dependency management hell. I uninstalled rvm and installed rbenv. One issue I'm still having is that when I try to run 'gem install bundler', I get this error: 'incompatible marshal file format (can't be read)'. Can anyone tell me what it means?
SteenJobs has quit [Quit: SteenJobs]
spligak has joined #ruby
<tubbo> hiro_: probably using a really old version of rubygems...can you make sure the `gem` binary is coming from the right place by typing `which gem`?
<hiro_> Also, when I try bundle (with my current version of bundler), I get a message telling me I can't install to system rubygems and asking for my password. But on the rbenv docs it says: 'You don't need sudo to install gems'.
Guest73 has joined #ruby
jaguarmagenta has quit [Ping timeout: 244 seconds]
<havenwood> ?rbenv hiro
<ruby[bot]> havenwood: I don't see no hiro, whom should I tell about rbenv?
<hiro_> tubbo: it's coming from /home/me/.rbenv/shims/gem
<havenwood> ?rbenv
<ruby[bot]> Missing command under rbenv? Did you try `rbenv rehash`?
<hiro_> which seems like the right place
<tubbo> seems ok to me
Guest73 has quit [Client Quit]
<tubbo> hiro_: but your rbenv might still be selecting the system ruby
<hiro_> I think it is
<tubbo> especially if you haven't installed any other versions of ruby on the machine
<hiro_> this is the problem I was having with rvm before I nuked it
<tubbo> i think you can do `rbenv local 2.3.1` or whatever to generate a .ruby-version in the current dir
<hiro_> at least, I tihnk it was
<hiro_> tubbo: I've done that
<tubbo> cool
soulisson has joined #ruby
<tubbo> try doing `cd .` to make sure it's being used
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
vdamewood has quit [Ping timeout: 265 seconds]
<hiro_> still the same
<tubbo> hiro_: so did you install any other versions of ruby on your machine/
<tubbo> ?*(
<hiro_> I've installed a couple with rbenv since I installed it last night
<tubbo> ok
<havenwood> hiro_: Have you already run `rbenv rehash`? What do you get for `gem -v` and `which -a gem`?
<tubbo> ^
<tubbo> also ruby -v
<hiro_> havenwood: I tried that and it produced no output in the shell
<hiro_> I'm not sure if it worked or not
<tubbo> yeah that's usually what happens when it works
<tubbo> rbenv rehash that is
<hiro_> gem -v: 2.4.5.1
<tubbo> havenwood: TIL about which -a :)
<hiro_> which -a gem: me/.rbenv/shims/gem & /usr/bin/gem
blackgoat has joined #ruby
SteenJobs has joined #ruby
djbkd has joined #ruby
workmad3 has joined #ruby
<tubbo> hiro_: can you try a `gem update --system`? usually, if gem has problems, it's solved by just upgrading rubygems.
<hiro_> is it worth trying to uninstall the system ruby or gem?
<tubbo> no
<tubbo> makes more sense to upgrade rubygems in place. usually can't hurt, is almost always faster and more reliable.
SteenJobs has quit [Client Quit]
<hiro_> gem is trying to update from the server at work
cibs has quit [Ping timeout: 268 seconds]
synthroid has joined #ruby
<hiro_> which it can't do
<hiro_> since I'm at home
<tubbo> wat
<tubbo> hiro_: well that might be *one* reason why you're having trouble, your sources sound screwed up
capitainIsh has joined #ruby
<tubbo> did you take https://rubygems.org out of the sources list or something?
<hiro_> not intentionally, but I did update ubuntu recently
nadir has joined #ruby
cibs has joined #ruby
synthroi_ has joined #ruby
synthroid has quit [Remote host closed the connection]
<tubbo> not *that* sources list...i meant the one in rubygems :) only way i was able to reliably remove rubygems.org from the sources list in rubygems was to run a gem server on the same box and modify the firewall to redirect rubygems.org -> localhost
<tubbo> so that way when the app looked in rubygems.org, it was really pointing to the loopback interface and the local server
polyidus has quit [Quit: Gone]
<hiro_> I don't think I've modified it or even thought about it ever, tbh
claudiuinberlin has quit []
<hiro_> Is there a way to un-screw-up my gem sources?
OnyxRaven has joined #ruby
leea has joined #ruby
nettoweb1 has joined #ruby
nettoweb has quit [Ping timeout: 252 seconds]
<hiro_> download and reinstall?
<hiro_> smash my laptop and start again?
<OnyxRaven> i’m getting a weird issue where i’m getting ‘Ignoring gem-version’ because its extensions are not built on a bunch of gems (that arent in my Gemfile), but everything still works - and those gems all still work on the project they’re actually defined on (which also gets those errors).
soulisson has left #ruby ["Leaving"]
<OnyxRaven> I recently had to uninstall and reinstall ruby (2.1.9) because of brew upgrading readline. I use rbenv
<OnyxRaven> Is there some way to resolve those warnings?
Immune has quit [Ping timeout: 264 seconds]
nankyokusei has joined #ruby
nettoweb1 has quit [Ping timeout: 272 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<hiro_> OnyxRaven: have you tried rebuilding the gems?
<OnyxRaven> yep
<havenwood> OnyxRaven: I'd probably `gem pristine --all` and see if there are still any warnings. If there are, see where those gems are and if you still want those gems at all.
<OnyxRaven> doing gem pristine like it suggests doesnt seem do solve it
<havenwood> If they're just lingering from an unused old install, uninstall them.
<OnyxRaven> I tried gem pristine —all and it didnt work either
Snowy has quit [Remote host closed the connection]
nalik89 is now known as nullwork
nankyokusei has quit [Ping timeout: 264 seconds]
<OnyxRaven> there were no gems installed (rbenv uninstall blew them all away as I expected), so this is from a ‘fresh’ install
eljimmy has joined #ruby
<OnyxRaven> and these are the versions in the Gemfile.lock
erlingur_ has joined #ruby
nando293921 has quit [Ping timeout: 265 seconds]
bkxd has joined #ruby
pawnbox has quit [Remote host closed the connection]
<havenwood> OnyxRaven: Are you using a Bundler "remembered" --path or something?
<OnyxRaven> i dont think so...
<havenwood> Maybe check: bundle config
pawnbox has joined #ruby
<havenwood> OnyxRaven: Can you Gist the error?
<OnyxRaven> bundle config just has the coc/mit/test lines
<OnyxRaven> yep, one sec
vdamewood has joined #ruby
eljimbo has quit [Ping timeout: 256 seconds]
Coldblackice has quit [Ping timeout: 264 seconds]
<hiro_> So given that I can't update RubyGems, is it worth trying to reinstall?
SteenJobs has joined #ruby
nettoweb has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
SteenJobs has quit [Client Quit]
ramfjord has quit [Quit: Lost terminal]
eljimmy has quit [Ping timeout: 252 seconds]
ramfjord has joined #ruby
mtkd has quit [Ping timeout: 256 seconds]
Madplatypus has joined #ruby
SteenJobs has joined #ruby
raeoks has quit [Quit: Textual IRC Client: www.textualapp.com]
bluOxigen has quit [Ping timeout: 264 seconds]
SteenJobs has quit [Client Quit]
mtkd has joined #ruby
eljimmy has joined #ruby
moneylotion has quit [Ping timeout: 260 seconds]
SteenJobs has joined #ruby
skweek has quit [Ping timeout: 256 seconds]
OnyxRaven has quit [Ping timeout: 265 seconds]
elastix has joined #ruby
bkxd has quit [Ping timeout: 264 seconds]
jcao219 has joined #ruby
jxf has quit [Ping timeout: 244 seconds]
AlphaAtom has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jooni has quit [Ping timeout: 272 seconds]
charliesome has joined #ruby
eljimmy has quit [Ping timeout: 265 seconds]
eljimmy has joined #ruby
jxf has joined #ruby
_sfiguser has quit [Ping timeout: 252 seconds]
Torkable has joined #ruby
leea has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
synthroi_ has quit []
tvw has joined #ruby
dionysus69 has quit [Ping timeout: 264 seconds]
JeanCarloMachado has joined #ruby
tyang has quit [Ping timeout: 264 seconds]
moneylotion has joined #ruby
jeffreylevesque has quit [Ping timeout: 244 seconds]
leea has joined #ruby
rodferso1 has quit [Quit: leaving]
leea has quit [Client Quit]
NTrash has joined #ruby
ta_ has joined #ruby
lifted has quit [Read error: Connection reset by peer]
_sfiguser has joined #ruby
arashb has quit [Ping timeout: 264 seconds]
<_sfiguser> hello all, when i do map(&:to_i) ehat's the meaning of &: ?
<_sfiguser> and what's the meaning of ":" when i do "my_array.inject(:+)" ?
harfangk has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
symm- has quit [Ping timeout: 244 seconds]
y2mq37 has joined #ruby
davix has joined #ruby
<matthewd> _sfiguser: :to_i and :+ are Symbol literals
y2mq37 has quit [Max SendQ exceeded]
y2mq37 has joined #ruby
Sonicblaze is now known as croberts
chouhoulis has quit [Ping timeout: 252 seconds]
j3ll3 has quit [Quit: Textual IRC Client: www.textualapp.com]
ldnunes has quit [Quit: Leaving]
shinnya has joined #ruby
whathappens has joined #ruby
symm- has joined #ruby
dagda1 has joined #ruby
leea has joined #ruby
dagda1 has quit [Client Quit]
erlingur_ has quit [Ping timeout: 272 seconds]
johnmilton has quit [Ping timeout: 244 seconds]
skweek has joined #ruby
Snowy has joined #ruby
wldcordeiro has quit [Ping timeout: 252 seconds]
<baweaver> Reduce just happens to have a very odd syntax.
jeffreylevesque has joined #ruby
<baweaver> When you see &symbol it means symbol.to_proc
<_sfiguser> i want to change all elements of an array to int, they are string... i did m.each { |x| x = x.to_i }
<_sfiguser> but doesn't work why ?
<_sfiguser> how cna i effectively change the elements of the array in the each ?
<_sfiguser> matthewd, ok and what do they do ?
vdamewood has quit [Quit: Life beckons.]
pawnbox has quit [Remote host closed the connection]
ramortegui has quit [Quit: Ex-Chat]
bsrd has joined #ruby
Snowy has quit [Read error: Connection reset by peer]
Snowy has joined #ruby
Snickers has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zeroDi has quit [Ping timeout: 265 seconds]
LastWhisper____ has joined #ruby
<_sfiguser> how can i baweaver what's .to_proc ?
<baweaver> ....was that a question or a mix or a what?
pawnbox has joined #ruby
<baweaver> Also just ask questions in open channel
<baweaver> if people are on they'll answer.
Contigi has quit [Read error: Connection reset by peer]
whathappens has quit [Read error: Connection reset by peer]
<baweaver> &ri Enumerable
<baweaver> read that
whathappens has joined #ruby
Contigi has joined #ruby
wldcordeiro has joined #ruby
zukin has joined #ruby
aries_liuxueyang has quit [Quit: No Ping reply in 180 seconds.]
RTFM[away] has quit [Ping timeout: 264 seconds]
wldcordeiro has quit [Client Quit]
aries_liuxueyang has joined #ruby
wldcordeiro has joined #ruby
johnmilton has joined #ruby
pwnd_nsfw` has joined #ruby
pawnbox has quit [Ping timeout: 244 seconds]
y2mq37 has quit [Read error: Connection reset by peer]
pwnd_nsfw has quit [Ping timeout: 256 seconds]
SCHAAP137 has joined #ruby
jackjackdripper has quit [Ping timeout: 252 seconds]
jackjackdripper1 has joined #ruby
zeroDi has joined #ruby
xentity1x has quit [Ping timeout: 264 seconds]
marxarelli is now known as marxarelli|afk
leea has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
NTrash has quit [Ping timeout: 255 seconds]
NTrash_ has joined #ruby
borodin has quit [Remote host closed the connection]
last_staff has quit [Quit: last_staff]
jackjackdripper has joined #ruby
<havenwood> _sfiguser: To understand `&` in that context you need to understand Symbol#to_proc and blocks.
<havenwood> >> :+.class
<ruby[bot]> havenwood: # => Symbol (https://eval.in/655907)
<havenwood> >> :+.to_proc.call 1, 2
<ruby[bot]> havenwood: # => 3 (https://eval.in/655908)
jackjackdripper1 has quit [Ping timeout: 256 seconds]
<havenwood> _sfiguser: Symbol#to_proc is a method you can call on a Symbol to return a Proc corresponding to a Method by the same name as the Symbol.
<meatchicken> In rspec - how do I make a method on an obj return a specific value?
moneylotion has quit [Ping timeout: 260 seconds]
<meatchicken> allow(obj).to receive(:method).and_return(:value) seems to be the way
postmodern has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<havenwood> _sfiguser: When the Method corresponding to the Symbol only takes one argument you can use it like you showed to pass that Proc as a block. The `&` both calls #to_proc and passes it as a block parameter instead of an argument parameter.
<havenwood> >> :abs2.to_proc.call 6
<ruby[bot]> havenwood: # => 36 (https://eval.in/655910)
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> _sfiguser: If you just use #to_proc it won't know it's a block:
<havenwood> >> [1, 2, 3].map :abs2.to_proc
<ruby[bot]> havenwood: # => wrong number of arguments (given 1, expected 0) (ArgumentError) ...check link for more (https://eval.in/655911)
konnigun has joined #ruby
<havenwood> _sfiguser: See ^ how it thinks it's an argument not a block?
<havenwood> >> [1, 2, 3].map &:abs2.to_proc
<ruby[bot]> havenwood: # => [1, 4, 9] (https://eval.in/655912)
tvw has quit [Remote host closed the connection]
johnmilton has quit [Ping timeout: 252 seconds]
<havenwood> _sfiguser: Here ^ it knows it's a block, but you can drop the #to_proc since & does that for you.
<havenwood> >> [1, 2, 3].map &:abs2
<ruby[bot]> havenwood: # => [1, 4, 9] (https://eval.in/655913)
twalla has quit [Ping timeout: 264 seconds]
johnmilton has joined #ruby
jaguarmagenta has joined #ruby
moneylotion has joined #ruby
<havenwood> _sfiguser: It's the same thing when you `inject(:+)`, except that method calls #to_proc on the Symbol you provide and passes it as a block automatically, that's how #inject was implemented. An `inject(&:+)` ends up at the same place.
elenatanasoiu has joined #ruby
konnigun has quit [Client Quit]
biberu has quit [Read error: Connection reset by peer]
leea has joined #ruby
pawnbox has joined #ruby
jarred has quit [Quit: Connection closed for inactivity]
jaguarmagenta has quit [Ping timeout: 244 seconds]
skweek has quit [Ping timeout: 256 seconds]
Ishido has quit [Remote host closed the connection]
leea has quit [Read error: Connection reset by peer]
[Butch] has quit [Quit: I'm out . . .]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
moneylotion has quit [Ping timeout: 260 seconds]
pawnbox has quit [Ping timeout: 265 seconds]
behemot has quit [Ping timeout: 272 seconds]
FINbit has joined #ruby
malcolmva has quit [Ping timeout: 244 seconds]
ben_ has quit [Ping timeout: 252 seconds]
moneylotion has joined #ruby
elenatanasoiu has quit [Ping timeout: 265 seconds]
gnufied has quit [Ping timeout: 252 seconds]
ruby_ has joined #ruby
fmcgeough has quit [Read error: Connection reset by peer]
fmcgeough has joined #ruby
whathappens has quit [Ping timeout: 265 seconds]
NTrash_ has quit [Quit: Konversation terminated!]
NTrash has joined #ruby
maddmaxx has quit [Quit: Going offline, see ya! (www.adiirc.com)]
howdoi has quit [Quit: Connection closed for inactivity]
nankyokusei has joined #ruby
whathappens has joined #ruby
malcolmva has joined #ruby
elastix has quit [Quit: elastix]
brianpWins has joined #ruby
NTrash has quit [Quit: Konversation terminated!]
<_sfiguser> how can i assign all the multiples of a number less then a number with a one liner in ruby ?
NTrash has joined #ruby
nankyokusei has quit [Ping timeout: 264 seconds]
sepp2k has quit [Read error: Connection reset by peer]
NTrash has quit [Client Quit]
whathappens has quit [Ping timeout: 265 seconds]
<havenwood> _sfiguser: What does that mean? What do you have and what do you want? Like: I have `[3, 24, 4]` and I want `[3, 42, 4]`.
<_sfiguser> havenwood, i want all multiples of 3 but less than 30
<_sfiguser> so they are
<havenwood> _sfiguser: Gisting a few examples of expected input and desired output will get your questions answered more quickly!
gingray has quit [Ping timeout: 264 seconds]
<_sfiguser> 3, 6, 9 , 12, 15, 18, 21, 24, 27
<havenwood> _sfiguser: and you want?
SCHAAP137 has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 252 seconds]
ChiefAlexander_ has quit [Remote host closed the connection]
<havenwood> _sfiguser: Sound like you want to map, but it's hard to tell without seeing what you want returned.
moneylotion has quit [Ping timeout: 260 seconds]
whathappens has joined #ruby
bsrd has quit [Quit: WeeChat 1.5]
moneylotion has joined #ruby
na_belom_kone has quit [Read error: No route to host]
<baweaver> Anyone else seeing rubygems ssl erroring?
<baweaver> Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://api.rubygems.org/specs.4.8.gz)
na_belom_kone has joined #ruby
<Nilium> Working for me.
<baweaver> odd.
<Nilium> If you do a curl -v for it, what does it think the cert is for?
<Nilium> Are you at an airport? In a hotel?
<baweaver> work
nando293921 has joined #ruby
<Nilium> Does your office MITM things?
<baweaver> It shouldn't
<Nilium> It's pretty common
<baweaver> * Server certificate: l.ssl.fastly.net
<baweaver> Never had this problem before
Rutix has quit [Read error: Connection reset by peer]
Rutix has joined #ruby
Rutix has quit [Changing host]
Rutix has joined #ruby
jhack has joined #ruby
<Nilium> Yeah, nothing I can reproduce from here.
marxarelli|afk is now known as marxarelli
GodFather has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
erlingur_ has joined #ruby
ResidentBiscuit has joined #ruby
Rutix`away has joined #ruby
Rutix`away has joined #ruby
Rutix`away has quit [Changing host]
Rutix has quit [Ping timeout: 272 seconds]
nofxx has joined #ruby
zukin has quit [Ping timeout: 256 seconds]
ResidentBiscuit has quit [Remote host closed the connection]
blackmesa has joined #ruby
cschneid_ has quit [Remote host closed the connection]
abernstein has quit [Quit: abernstein]
<havenwood> baweaver: Hrm, someone mentioned a "certificate verify failed" in #rubygems this morning.
<baweaver> 2.1.2, for some reason I was running an old version
kingkong- has quit [Remote host closed the connection]
pragmatism has joined #ruby
kingkong- has joined #ruby
SteenJobs has joined #ruby
lifted has joined #ruby
bathtub_shark has quit [Remote host closed the connection]
erlingur_ has quit [Ping timeout: 272 seconds]
erlingur_ has joined #ruby
bathtub_shark has joined #ruby
<zenspider> baweaver: you still having that ?
Akuma has quit [Quit: So long sukkas!]
<baweaver> haven't tried recently
<baweaver> switched over to 2.3 again
<baweaver> must have been testing something in that tab
SteenJobs has quit [Ping timeout: 272 seconds]
patarr has quit [Quit: patarr]
pawnbox has joined #ruby
pwnd_nsfw has joined #ruby
capitainIsh has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
pwnd_nsfw` has quit [Ping timeout: 272 seconds]
<zenspider> git is going to be the death of me
djbkd has quit [Read error: Connection reset by peer]
pawnbox has quit [Ping timeout: 256 seconds]
dviola has joined #ruby
djbkd has joined #ruby
ur5us has quit [Remote host closed the connection]
marr has quit [Ping timeout: 265 seconds]
ur5us has joined #ruby
nando293921 has quit [Ping timeout: 264 seconds]
gizmore has joined #ruby
capitainIsh has joined #ruby
Bellthoven has joined #ruby
gizless has quit [Ping timeout: 272 seconds]
ur5us has quit [Ping timeout: 265 seconds]
im0b has quit [Ping timeout: 244 seconds]
whathappens has quit [Ping timeout: 252 seconds]
caw has quit [Ping timeout: 265 seconds]
whathappens has joined #ruby
skweek has joined #ruby
djbkd has quit [Remote host closed the connection]
symm- has quit [Quit: Leaving...]
jcao219 has quit [Ping timeout: 272 seconds]
djbkd has joined #ruby
conta has joined #ruby
djbkd has quit [Client Quit]
jcao219 has joined #ruby
im0b has joined #ruby
h1fuelcell has joined #ruby
caw has joined #ruby
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
prawnzy has quit [Remote host closed the connection]
conta has quit [Ping timeout: 264 seconds]
SCHAAP137 has joined #ruby
<_sfiguser> hello all i want to do a switch case with a numerica variable telling... when x < 0 then do something, when x>0 do something else do something
<_sfiguser> why it doesnt work this way ? and can't find examples like this online ?
jackjackdripper has quit [Quit: Leaving.]
tuxaddicted has joined #ruby
pawnbox has joined #ruby
<havenwood> _sfiguser: What version of Ruby? (Since the newer ones have neat ways.) You might be searching for the wrong thing. Try "if statement in Ruby" or something like that.
frankiee_ has joined #ruby
pawnbox has quit [Ping timeout: 252 seconds]
Akuma has joined #ruby
wldcordeiro has quit [Ping timeout: 272 seconds]
nettoweb has joined #ruby
jcao219 has quit [Ping timeout: 264 seconds]
Aquazi has quit [Quit: Leaving]
erlingur_ has quit [Ping timeout: 244 seconds]
ur5us has joined #ruby
Akuma has quit [Client Quit]
whathapp_ has joined #ruby
Akuma has joined #ruby
wpostma has joined #ruby
whathappens has quit [Ping timeout: 265 seconds]
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
jcao219 has joined #ruby
whathappens has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
whathapp_ has quit [Read error: Connection reset by peer]
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mesamoo has quit [Quit: Konversation terminated!]
magellanicloud has quit [Quit: Leaving]
cloaked1 has quit [Quit: cloaked1]