<lightguard_jp>
fryguy: Okay, was thinking it was something like that. Thanks
tvw has quit []
tvw has joined #ruby
<Somelauw>
fryguy: Yes, but I got stuck on the question asking me "to add a source", because I could not find an option to use "imap". When starting sup-config again. I get the same error. I can probably delete my config.
realDAB has joined #ruby
<Somelauw>
fryguy: I could not choose between "mbox file", "maildir directory" and "Get me out of here!". I just want a gmail accounts without making a local copy of the files. I just want all e-mails to be on imap and only be downloaded when I need them.
nfk has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
lindenle has quit [Quit: This computer has gone to sleep]
Kricir has quit [Remote host closed the connection]
<fryguy>
Somelauw: sup doesn't support imap, you'll need to use offlineimap to get local maildir
nomenkun has joined #ruby
jbueza has quit [Quit: Leaving.]
<Somelauw>
fryguy: that's a pity. I have about 3 GIG of e-mails. I can't download all of those.
ckrailo has quit [Quit: Computer has gone to sleep.]
platzhirsch has joined #ruby
TheFuzzball has joined #ruby
<fryguy>
Somelauw: how did you expect sup to make them searchable without downloading them?
TheFuzzball has quit [Max SendQ exceeded]
v0n has quit [Ping timeout: 264 seconds]
<platzhirsch>
zipruby allows me to open .zip files, zlib allows me to open .gz files. Is there a way/library to open both formats?
banjara has quit [Quit: Leaving.]
TheFuzzball has joined #ruby
<Somelauw>
fryguy: I don't know. Maybe by building a small database of words and what emails contains them. Does it skip attachments when downloading?
ckrailo has joined #ruby
<fryguy>
been a long time since i've used/configured offlineimap, not sure if you can convince it to skip some types of mimetype attachments or not
nomenkun has quit [Ping timeout: 264 seconds]
nbouscal has quit [Quit: Computer has commenced electric sheep tracking protocol.]
swordsmanz_ has joined #ruby
<Somelauw>
Then maybe I'll stick to mutt
dayepa1 has joined #ruby
<Somelauw>
fryguy: or by indirectly calling imap's search function. I'm not that familiar with the protocols.
locriani has quit [Remote host closed the connection]
locriani has joined #ruby
ukd1 has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
pencilcheck has quit [Remote host closed the connection]
twopugs has joined #ruby
EPIK has joined #ruby
twopugs has quit [Client Quit]
twopugs has joined #ruby
nezumi has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
twopugs has quit [Client Quit]
nfk has quit [Quit: yawn]
vlad_starkov has quit [Ping timeout: 248 seconds]
Shirakawasuna has joined #ruby
DanKnox_away is now known as DanKnox
GeissT has joined #ruby
Mars` has quit [Ping timeout: 246 seconds]
burlyscudd has joined #ruby
iamjarvo has joined #ruby
cj3kim has joined #ruby
jimg has joined #ruby
troker has quit [Quit: troker]
arubin has joined #ruby
marr has quit [Ping timeout: 240 seconds]
sambao21 has joined #ruby
yekta has quit [Quit: yekta]
nbouscal has joined #ruby
Somelauw has quit [Quit: WeeChat 0.3.8]
crazymykl has quit [Quit: Konversation terminated!]
alainus has joined #ruby
burlyscudd has quit [Ping timeout: 248 seconds]
jimg has quit [Ping timeout: 246 seconds]
julweber_ has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
<alainus>
I'm using json.PARSE( ) to parse a json response. The problem is the server is apparently not behaving right so sometimes it throws a date before the json response for some reason, breaking the parser. How can I use json.PARSE() only when it's a valid json response ???
nomenkun has joined #ruby
julweber has quit [Ping timeout: 246 seconds]
<pontiki_>
alainus: you could wrap it in an begin-rescue block
scrollback has quit [Remote host closed the connection]
scrollback has joined #ruby
nowthatsamatt has joined #ruby
cj3kim has quit [Ping timeout: 276 seconds]
iamjarvo has quit [Ping timeout: 256 seconds]
tkuchiki has joined #ruby
realDAB has quit [Quit: realDAB]
emergion has quit [Quit: Computer has gone to sleep.]
nomenkun has quit [Ping timeout: 248 seconds]
hogeo has joined #ruby
lethan has joined #ruby
dmiller_ has joined #ruby
ericmathison has quit [Ping timeout: 246 seconds]
ericmathison has joined #ruby
emergion has joined #ruby
pipework has joined #ruby
generalissimo has joined #ruby
ukd1 has joined #ruby
bigkm has joined #ruby
bigkm has quit [Max SendQ exceeded]
dmiller has quit [Ping timeout: 245 seconds]
devoldmx has quit [Ping timeout: 260 seconds]
DonRichie has quit [Ping timeout: 256 seconds]
devoldmx has joined #ruby
DonRichie has joined #ruby
emergion has quit [Ping timeout: 260 seconds]
buzzybron has joined #ruby
krainbol_ has joined #ruby
jalcine has quit [Excess Flood]
ffio has quit [Ping timeout: 246 seconds]
zeade has quit [Quit: Leaving.]
Xeago has quit [Remote host closed the connection]
cortexman1 has quit [Quit: Leaving.]
thetristan has quit [Quit: thetristan]
devoldmx has quit [Ping timeout: 264 seconds]
krainboltgreene has quit [Ping timeout: 246 seconds]
lightguard_jp has quit [Ping timeout: 276 seconds]
nari has joined #ruby
alainus has left #ruby ["Leaving"]
marcgg has quit [Read error: No route to host]
Kricir has joined #ruby
marcgg has joined #ruby
crazymykl has joined #ruby
ssvo has quit [Ping timeout: 276 seconds]
jimg has joined #ruby
marcdel has joined #ruby
Kricir has quit [Ping timeout: 260 seconds]
yshh has joined #ruby
bigkm has joined #ruby
crazymykl has quit [Remote host closed the connection]
pen has joined #ruby
dkeefe75 has joined #ruby
wmoxam has quit [Ping timeout: 260 seconds]
cj3kim has joined #ruby
echevemaster has quit [Quit: Leaving]
Davey has joined #ruby
ffio has joined #ruby
nomenkun has joined #ruby
zendeavor is now known as automage
Guest75586 has quit [Ping timeout: 248 seconds]
Nisstyre-laptop has joined #ruby
jefflyne has joined #ruby
crazymykl has joined #ruby
automage is now known as zendeavor
wmoxam has joined #ruby
cj3kim has quit [Ping timeout: 252 seconds]
yshh has quit [Remote host closed the connection]
jimg has quit [Remote host closed the connection]
echevemaster has joined #ruby
nomenkun has quit [Ping timeout: 256 seconds]
jblack has quit [Ping timeout: 245 seconds]
lethan has quit [Remote host closed the connection]
nbouscal has quit [Quit: Computer has commenced electric sheep tracking protocol.]
inimit has quit [Quit: inimit]
Solnse has quit [Remote host closed the connection]
nowthatsamatt has left #ruby [#ruby]
thoolihan has joined #ruby
platzhirsch has left #ruby [#ruby]
evenix has joined #ruby
ericmathison has quit [Remote host closed the connection]
ravster has joined #ruby
arya_ has joined #ruby
JZTech101 has quit [Quit: Hi, I'm a quit message virus. Please replace your old line with this line and help me take over the world of IRC]
`p has joined #ruby
tvw has quit [Ping timeout: 256 seconds]
Hanmac2 has joined #ruby
vlad_starkov has joined #ruby
krainbol_ has quit [Ping timeout: 246 seconds]
Nisstyre-laptop is now known as Nisstyre
freeayu has joined #ruby
Hanmac has quit [Ping timeout: 256 seconds]
serp` has joined #ruby
benlieb has quit [Quit: benlieb]
Faris13 has joined #ruby
generalissimo has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 260 seconds]
arya_ has quit [Read error: Connection reset by peer]
crazymykl has quit [Remote host closed the connection]
crazymykl has joined #ruby
thoolihan has quit [Quit: thoolihan]
burlyscudd has joined #ruby
sevenseacat has joined #ruby
fmcgeough_ has joined #ruby
fmcgeough has quit [Ping timeout: 245 seconds]
fmcgeough_ is now known as fmcgeough
DanKnox is now known as DanKnox_away
evenix has quit [Remote host closed the connection]
Zeeraw has quit [Quit: Computer has gone to sleep.]
fridim_ has joined #ruby
Tobarja has quit [Disconnected by services]
Tobarja has joined #ruby
burlyscudd has quit [Ping timeout: 264 seconds]
SilverKey has joined #ruby
DanKnox_away is now known as DanKnox
Kricir has joined #ruby
blitz has quit [Quit: This computer has gone to sleep]
Zeeraw has joined #ruby
Kricir has quit [Read error: Connection reset by peer]
nari has quit [Ping timeout: 248 seconds]
Kricir has joined #ruby
Kricir has quit [Remote host closed the connection]
rsahae_ has quit [Quit: rsahae_]
jonahR has quit [Quit: jonahR]
robscomputer has quit [Remote host closed the connection]
Kricir has joined #ruby
robscomputer has joined #ruby
nomenkun has joined #ruby
rsahae_ has joined #ruby
rsahae_ has quit [Client Quit]
Nisstyre has quit [Quit: Leaving]
rsahae has joined #ruby
djbkd has quit [Quit: Leaving]
rsahae has quit [Client Quit]
hamakn has joined #ruby
arya_ has joined #ruby
jimg has joined #ruby
ukd1 has quit [Remote host closed the connection]
Davey has quit [Remote host closed the connection]
crazymykl has quit [Ping timeout: 246 seconds]
hamakn has quit [Read error: Connection reset by peer]
Kricir has quit [Ping timeout: 248 seconds]
crazymykl has joined #ruby
hamakn has joined #ruby
nomenkun has quit [Ping timeout: 256 seconds]
robscomputer has quit [Ping timeout: 256 seconds]
jpsirois has joined #ruby
agjacome has joined #ruby
jonathanwallace has quit [Quit: WeeChat 0.4.0]
ttt has joined #ruby
jimg has quit [Ping timeout: 264 seconds]
jonathanwallace has joined #ruby
Ripp__ has quit [Ping timeout: 256 seconds]
dmiller_ has quit [Remote host closed the connection]
pkh has quit [Ping timeout: 246 seconds]
jmimi has joined #ruby
yshh has joined #ruby
Davey has joined #ruby
dmiller has joined #ruby
Spooner has quit [Quit: Leaving]
jalcine- has joined #ruby
jalcine- has quit [Excess Flood]
brandon has joined #ruby
brandon is now known as Guest34627
serp` has quit [Quit: serp`]
matthalliday has joined #ruby
dmiller has quit [Remote host closed the connection]
Kruppe has quit [Remote host closed the connection]
rupee has quit [Ping timeout: 246 seconds]
evenix has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
crazymykl has quit [Ping timeout: 246 seconds]
nari has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sambao21 has quit [Quit: Computer has gone to sleep.]
<flaccid>
epitron: its embedded thing this, but alas i didn't design the software
Soliah has joined #ruby
chriskk has quit [Quit: chriskk]
hogeo has quit [Remote host closed the connection]
jimg has quit [Remote host closed the connection]
adeponte has joined #ruby
ColKurtz has quit [Quit: sleeping]
<pontiki>
epitron: that was an excellent talk :)
<pontiki>
and a super fun con
<epitron>
sevenseacat: it's just a metapackage of pry and its plugins
<epitron>
pontiki: \/
<epitron>
\o/
jimg has joined #ruby
brianpWins has quit [Ping timeout: 256 seconds]
freeayu__ has joined #ruby
jorge has quit [Ping timeout: 245 seconds]
grillermo has quit [Quit: bandtastic.me]
freeayu has quit [Ping timeout: 248 seconds]
adeponte has quit [Ping timeout: 256 seconds]
haxrbyte has joined #ruby
cha1tanya has joined #ruby
cha1tanya has joined #ruby
haxrbyte_ has joined #ruby
Guga_ has quit [Quit: ~]
Kricir has joined #ruby
inimit has quit [Ping timeout: 245 seconds]
haxrbyte has quit [Ping timeout: 257 seconds]
nomenkun has joined #ruby
kenneth has quit [Quit: kenneth]
moos3 has quit [Quit: Computer has gone to sleep.]
Kricir has quit [Ping timeout: 260 seconds]
<zendeavor>
popl: i said eff it and setup rvm and started doing everything through that
yshh has quit [Remote host closed the connection]
jimg has quit [Remote host closed the connection]
mikemac has quit [Ping timeout: 260 seconds]
<popl>
I was just considering doing --user-install
nomenkun has quit [Ping timeout: 256 seconds]
krainboltgreene has joined #ruby
kofno has joined #ruby
twoism has quit [Remote host closed the connection]
williscool has joined #ruby
Kruppe has quit [Remote host closed the connection]
thesheff17 has joined #ruby
danslo has quit [Read error: Connection reset by peer]
alpaca_taichou has joined #ruby
danslo has joined #ruby
<ravster>
hey all
otherj has joined #ruby
<zendeavor>
popl: lol, rvm will warn you about that
<zendeavor>
or gem does, i can't remember which
<zendeavor>
probably rvm
vlad_starkov has joined #ruby
<ravster>
I'm thinking of manually uninterning an object refernce, so that it gets cleared by the garbage collector. How would I do that? I don't know if unintern is the ruby terminology for what I want, I come from a lisp background.
<popl>
zendeavor: I don't know what the best practice is.
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
bamdad has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
ferdev has quit [Quit: ferdev]
redgirl has quit [Quit: This computer has gone to sleep]
pen has quit [Remote host closed the connection]
weldan has joined #ruby
wallerdev has quit [Quit: wallerdev]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
lkba has quit [Ping timeout: 256 seconds]
zeroXten has quit [Quit: leaving]
bamdad has left #ruby [#ruby]
cj3kim has quit [Read error: Connection reset by peer]
Trynemjoel has quit [Quit: Trynemjoel]
cj3kim has joined #ruby
jbueza has quit [Quit: Leaving.]
scrollback has quit [Remote host closed the connection]
scrollback has joined #ruby
jimg has quit [Remote host closed the connection]
noname001 has joined #ruby
kpmjf has joined #ruby
dkannan has quit [Quit: dkannan]
tvw has joined #ruby
timonv has quit [Remote host closed the connection]
sk87 has joined #ruby
freerobby has joined #ruby
kpmjf has quit [Quit: ##namespace]
kpmjf has joined #ruby
jonahR has quit [Quit: jonahR]
havenwood has quit [Remote host closed the connection]
PhatBaja has joined #ruby
freerobby has quit [Ping timeout: 256 seconds]
zeromodulus has quit [Remote host closed the connection]
trepidaciousMBR has joined #ruby
b0oh has joined #ruby
b0oh has quit [Client Quit]
PhatBaja has quit [Ping timeout: 245 seconds]
blaxter_ has joined #ruby
twinkleHood has joined #ruby
dkannan has joined #ruby
Soliah has quit [Quit: Soliah]
elaptics`away is now known as elaptics
AlbireoX has joined #ruby
Spami has joined #ruby
Spami has joined #ruby
<twinkleHood>
Hey, so I'm looking at a class method, and the first line goes "item = new", what does that instantiate? :)
Trynemjoel has joined #ruby
<sevenseacat>
test it and see?
locriani has quit [Remote host closed the connection]
crumblebee has joined #ruby
locriani has joined #ruby
colonolG1on has quit [Quit: Lost terminal]
ferdev has joined #ruby
diogenesofsinope has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mikewintermute has joined #ruby
mist has quit [Quit: leaving]
mklappstuhl has joined #ruby
pen has joined #ruby
pen has quit [Read error: Connection reset by peer]
tonini has quit [Ping timeout: 248 seconds]
ferdev has quit [Client Quit]
pen has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
browndawg has joined #ruby
mrmist has joined #ruby
locriani has quit [Ping timeout: 264 seconds]
tonini has joined #ruby
timonv has joined #ruby
locriani has joined #ruby
Lennier has joined #ruby
rsmarsha has joined #ruby
arya_ has joined #ruby
<rsmarsha>
hey all, noob question here. :) I have ruby guard installed it and seemed to work the first time around, since a reboot it doesn't work. Is there something I need to do to automate it?
lewis has quit [Remote host closed the connection]
<sevenseacat>
define 'doesnt work'
<rsmarsha>
it can't find the guard command
jorge has joined #ruby
byprdct has joined #ruby
<Lennier>
hi folks
<sevenseacat>
does anything ruby-related work?
crumblebee has quit [Remote host closed the connection]
<byprdct>
Hola!
crumblebee has joined #ruby
<rsmarsha>
it's about the only thing i have. :) I can see ruby running though
pootler_ has quit [Ping timeout: 246 seconds]
burlyscudd has joined #ruby
realDAB has joined #ruby
<sevenseacat>
are you using something like rvm and you installed guard into a different gemset than you're currently using?
pootler has quit [Ping timeout: 248 seconds]
vlad_starkov has joined #ruby
<rsmarsha>
not rvm, just install with gem install, will check about the sets
jorge has quit [Ping timeout: 246 seconds]
<Lennier>
i'm still learning the basics of ruby and got stuck
<rsmarsha>
I can see it in gem list --local
<Lennier>
i try to parse url
vlad_starkov has quit [Remote host closed the connection]
egoleo has joined #ruby
<Lennier>
into a hash that contains, protocol, domain, directory
<egoleo>
hello
<zendeavor>
rsmarsha: the command isn't in your $PATH?
<Lennier>
how can i do it without regex
vlad_starkov has joined #ruby
<rsmarsha>
ah that could be it, will be right back
<zendeavor>
rsmarsha: try to run it from the absolute path
yshh has quit [Remote host closed the connection]
<egoleo>
please i am trying to setup verboice with passenger and i keep getting OpenSSL::SSL::SSLError (hostname does not match the server certificate) whenever i login to verboice. any ideas please?
<rsmarsha>
will do, once i find what that is hehe
<Lennier>
sevenseacat: thanks!
LennyLinux has joined #ruby
mrmist is now known as mist
mengu has joined #ruby
thisirs has joined #ruby
Kricir has joined #ruby
blaxter_ is now known as blaxter
shaunbak_ has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
pranny1 has quit [Quit: Leaving.]
pen has quit [Read error: Connection reset by peer]
pranny has joined #ruby
sevenseacat has quit [Quit: Leaving.]
burlyscudd has quit [Ping timeout: 256 seconds]
pen has joined #ruby
<rsmarsha>
zendeavor: path as in /usr/local/lib/ruby/gems/2.0.0/gems/guard-1.8.1/bin ?
<twinkleHood>
Hm, so I'm still looking at this 'item = new" line, I can't actually run the code in my current environment, and a line like this is sorta hard to google. Anyone got a clue as to how it works?
marcdel has joined #ruby
<egoleo>
please i am trying to setup verboice with passenger and i keep getting OpenSSL::SSL::SSLError (hostname does not match the server certificate) whenever i login to verboice. any ideas please?
_Andres has joined #ruby
<zendeavor>
rsmarsha: likely, if the guard command is in there and you can run it with that absolute path
<rsmarsha>
guard is in there but can't run it
Kricir has quit [Ping timeout: 256 seconds]
<rsmarsha>
ah i can
<rsmarsha>
lol
<rsmarsha>
thanks, will try adding that to my path
<rsmarsha>
although i want all gems to be in the path i guess
<zendeavor>
rsmarsha: i'm new here, don't take my advice as gospel
ntus1017 has joined #ruby
<rsmarsha>
on a mac if anyone has done this before?
<rsmarsha>
np zendeavor all help is appreciated :)
<zendeavor>
of course
<zendeavor>
i just don't know if it's appropriate to start appending such a pathname to your PATH
diogenesofsinope has joined #ruby
fixl has joined #ruby
harrymoreno has quit [Quit: harrymoreno]
byprdct has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
julweber has joined #ruby
arya_ has joined #ruby
Astral__ has joined #ruby
staafl_alt has joined #ruby
huttan_ has joined #ruby
pranny1 has joined #ruby
nazty has joined #ruby
veer has joined #ruby
locriani_ has joined #ruby
_veer has quit [Disconnected by services]
veer is now known as Guest64986
<twinkleHood>
rsmarsha: Okay, so I'm no expert, but that pathediting makes me itchy. It just... feels bad.
jonahR has joined #ruby
Guest64986 is now known as _veer
_veer has quit [Changing host]
_veer has joined #ruby
jds_ has quit [Ping timeout: 246 seconds]
banjara1 has joined #ruby
mklappst_ has joined #ruby
wargasm1 has joined #ruby
yxhuvud has joined #ruby
JohnE has quit [Ping timeout: 256 seconds]
yonahw_ has joined #ruby
Gnubie has joined #ruby
jefflyne has joined #ruby
dayepa has joined #ruby
bnagy_ has joined #ruby
ichilton_ has joined #ruby
skinny_much_ has joined #ruby
io_syl_ has joined #ruby
emergion has joined #ruby
ericwood_ has joined #ruby
mlue_ has joined #ruby
ptotterm has joined #ruby
popl has quit [Quit: We must make an idol of our fear, and call it God.]
tommyvyo_ has joined #ruby
Blue_Ice_ has joined #ruby
Blue_Ice_ has joined #ruby
Blue_Ice_ has quit [Changing host]
wildcard1 has joined #ruby
rtl_ has joined #ruby
statarb3 has quit [Quit: Leaving]
pkrzywicki has joined #ruby
arya_ has quit []
crazysim_ has joined #ruby
ebouchut has quit [Ping timeout: 256 seconds]
crazed- has joined #ruby
mumblet has joined #ruby
rippa has joined #ruby
mrmist has joined #ruby
mumblet is now known as Guest85577
arya_ has joined #ruby
rsahae has joined #ruby
bier_ has joined #ruby
mrmist has quit [Quit: leaving]
pranny has quit [*.net *.split]
locriani has quit [*.net *.split]
mist has quit [*.net *.split]
mklappstuhl has quit [*.net *.split]
staafl has quit [*.net *.split]
noname001 has quit [*.net *.split]
Astral_ has quit [*.net *.split]
threesome has quit [*.net *.split]
rsmarsha has quit [*.net *.split]
yxhuvud2 has quit [*.net *.split]
banjara has quit [*.net *.split]
yonahw has quit [*.net *.split]
sayan has quit [*.net *.split]
io_syl has quit [*.net *.split]
codecop has quit [*.net *.split]
axeman- has quit [*.net *.split]
tommyvyo has quit [*.net *.split]
dayepa1 has quit [*.net *.split]
chxane has quit [*.net *.split]
wargasm has quit [*.net *.split]
aedorn has quit [*.net *.split]
nignaztic has quit [*.net *.split]
[0x1a] has quit [*.net *.split]
mathnode has quit [*.net *.split]
joast has quit [*.net *.split]
ericwood has quit [*.net *.split]
Tarential has quit [*.net *.split]
erichmenge has quit [*.net *.split]
xefi_ has quit [*.net *.split]
wildcard0 has quit [*.net *.split]
huttan has quit [*.net *.split]
jbw has quit [*.net *.split]
ptman has quit [*.net *.split]
MrZYX has quit [*.net *.split]
Guest30905 has quit [*.net *.split]
billiam has quit [*.net *.split]
crazysim has quit [*.net *.split]
Blue_Ice has quit [*.net *.split]
ichilton has quit [*.net *.split]
mumblerit has quit [*.net *.split]
bier has quit [*.net *.split]
mlue has quit [*.net *.split]
defrag has quit [*.net *.split]
Muz has quit [*.net *.split]
bnagy has quit [*.net *.split]
crazedpsyc has quit [*.net *.split]
rtl has quit [*.net *.split]
skinny_much has quit [*.net *.split]
Guest85577 is now known as mumblerit
khushildep has joined #ruby
crazysim_ is now known as crazysim
Lennier has quit [Quit: Lennier]
axeman- has joined #ruby
Guedes0 has joined #ruby
Astral_ has joined #ruby
GeissT_ has joined #ruby
adkron_ has joined #ruby
crazed- has quit [Excess Flood]
crazedpsyc has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
mrmist has joined #ruby
AlSquire has joined #ruby
mrmist is now known as mist
matthewrobbins has quit [Read error: Operation timed out]
GeissT has quit [Ping timeout: 276 seconds]
adkron has quit [Ping timeout: 276 seconds]
Muz has joined #ruby
DrCode has quit [Remote host closed the connection]
Astral__ has quit [Ping timeout: 276 seconds]
havenwood has joined #ruby
mathnode has joined #ruby
codecop has joined #ruby
jbw has joined #ruby
defrag has joined #ruby
threesome has joined #ruby
aedorn has joined #ruby
chxane has joined #ruby
Tarential has joined #ruby
DrCode has joined #ruby
billiam has joined #ruby
DestinyAwaits has joined #ruby
DestinyAwaits has quit [Changing host]
DestinyAwaits has joined #ruby
sayan has joined #ruby
byprdct has joined #ruby
freerobby has joined #ruby
pkh has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
PhatBaja has joined #ruby
ebouchut has joined #ruby
LennyLinux has quit [Remote host closed the connection]
freerobby has quit [Ping timeout: 246 seconds]
Shirakawasuna has quit [Ping timeout: 248 seconds]
havenwood has quit [Remote host closed the connection]
gyre007 has joined #ruby
hamed_r has quit [Quit: Leaving]
PhatBaja has quit [Ping timeout: 245 seconds]
havenwood has joined #ruby
jimg has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
persand has quit [Quit: persand]
rezzack has quit [Quit: Leaving.]
jimg has quit [Ping timeout: 240 seconds]
obs has quit [Quit: Saliendo]
jds_ has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
lele has quit [Ping timeout: 256 seconds]
matthewrobbins has joined #ruby
Guedes0 has quit [Ping timeout: 248 seconds]
realDAB has quit [Quit: realDAB]
rsmarsha has joined #ruby
<rsmarsha>
Hmm starting to wonder if i should just remove ruby and reinstall it and the gems with RVM lol
kevinykchan has quit [Ping timeout: 246 seconds]
<rsmarsha>
can't get the gems to be recognised in my PATH
alpaca_taichou has joined #ruby
nari has quit [Ping timeout: 245 seconds]
swordsmanz has quit [Quit: swordsmanz]
lele has joined #ruby
chxane has quit [Read error: Connection reset by peer]
rsahae has quit [Read error: Connection reset by peer]
MrZYX|off has joined #ruby
MrZYX|off is now known as MrZYX
rsahae__ has joined #ruby
freeayu3 has quit [Ping timeout: 276 seconds]
mneorr has joined #ruby
jds_ has quit [Ping timeout: 240 seconds]
dmiller has joined #ruby
razi has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pen has quit [Read error: Connection reset by peer]
predator117 has quit [Ping timeout: 246 seconds]
persand has joined #ruby
pen has joined #ruby
ntus1017 has quit [Remote host closed the connection]
Guga_ has joined #ruby
ferdev has joined #ruby
pootler has joined #ruby
awaage has joined #ruby
crumblebee has quit [Ping timeout: 260 seconds]
burlyscudd has joined #ruby
dmiller has quit [Ping timeout: 276 seconds]
MrZYX is now known as MrZYX|off
rsahae__ has quit [Quit: rsahae__]
Asher has quit [Ping timeout: 246 seconds]
Kricir has joined #ruby
alpaca_taichou has quit [Remote host closed the connection]
LennyLinux has joined #ruby
krainboltgreene has quit [Quit: krainboltgreene]
LennyLinux has quit [Remote host closed the connection]
pootler has quit [Ping timeout: 248 seconds]
thisirs has quit [Remote host closed the connection]
burlyscudd has quit [Ping timeout: 241 seconds]
DaniG2k has joined #ruby
viszu has joined #ruby
rking1 has joined #ruby
rking1 has quit [Client Quit]
Kricir has quit [Ping timeout: 264 seconds]
jimg has joined #ruby
GeissT_ has quit [Ping timeout: 246 seconds]
awaage has left #ruby [#ruby]
chichou has joined #ruby
Lennier has joined #ruby
relix has joined #ruby
pen has quit [Ping timeout: 246 seconds]
<mathnode>
Is there a shortcut in ruby, to immediately assign the subject of a test, i.e. an if statement, straight to a variable.
lkba has joined #ruby
gildo has quit [Ping timeout: 260 seconds]
persand has quit [Quit: persand]
<mathnode>
if File.exist?('/home/me/myfile') my-file-variable = what-I-checked-for
rdark has quit [Quit: leaving]
tonini has quit [Ping timeout: 248 seconds]
statarb3 has joined #ruby
statarb3 has joined #ruby
v0n has joined #ruby
emergion has joined #ruby
nari has joined #ruby
pkh has quit [Ping timeout: 248 seconds]
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
rsmarsha has quit [Read error: Connection reset by peer]
<ghr>
mathnode in that example what do you want the variable to contain? A boolean or the String file path?
<mathnode>
ghr, in that loose example, the file path I tested for.
jds_ has joined #ruby
RonScagz has joined #ruby
jorge has joined #ruby
<ghr>
file = 'Path/to/file'
<ghr>
x = File.exist?(file) ? file : ''
lessless has joined #ruby
<lessless>
will this drop decimal part if max is larger then ten: max = rand() + rand(min..5) and max = max.floor if max > 10 ?
<ghr>
or I guess: `x = File.exist?(file) ? file : nil`
<lessless>
max = rand() + rand(min..10) and max = max.floor if max >
predator117 has joined #ruby
<lessless>
max = rand() + rand(min..10) and max = max.floor if max > 10 :)))
rdark has joined #ruby
<mathnode>
ghr, what I am thinking about is, back in the day (OS/360 days), program space was small
<mathnode>
ghr, so to set a variable for a file that might not even exist, before even checking it might have been deemed wasteful. I was wondering if any modern languages had a way around this.
<mathnode>
Not that it's an issue anymore. I think 16 petabytes of ram costs the same as a coffee.
vlad_starkov has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
bamdad has joined #ruby
<ghr>
mathnode I can't see anything that does what you're after in File or FileUtils
<bamdad>
Hi
<bamdad>
I'm getting this :
<bamdad>
expected FeaturedClient to be a kind of FeaturedClient
<bamdad>
in rspec :-s
tk_ has joined #ruby
vlad_starkov has joined #ruby
<bamdad>
Oops asserting against string, fixed now :D
freerobby has joined #ruby
afd__ has quit [Read error: No route to host]
PhatBaja has joined #ruby
Zeeraw has joined #ruby
freerobby has quit [Ping timeout: 252 seconds]
jorge has quit [Remote host closed the connection]
<shellox>
hey, have anyone managed to get nokogiri running on ubuntu 12.04 with libxml 2.9.0?
<shellox>
has*
h8R has quit [Quit: Leaving]
dkannan has quit [Quit: dkannan]
pedda has joined #ruby
Spooner has joined #ruby
tonini has joined #ruby
gildo has joined #ruby
redgirl has joined #ruby
awaage has quit [Quit: awaage]
mklappst_ has quit [Remote host closed the connection]
anderson has joined #ruby
dkannan has joined #ruby
tomoyuki28jp has joined #ruby
Kelet_ is now known as Kelet
trepidaciousMBR_ has joined #ruby
browndawg has left #ruby [#ruby]
haxrbyte_ has joined #ruby
Zeeraw has quit [Quit: Computer has gone to sleep.]
haxrbyte has quit [Remote host closed the connection]
trepidaciousMBR_ has quit [Client Quit]
trepidaciousMBR has quit [Ping timeout: 264 seconds]
burlyscudd has joined #ruby
erry has quit [Changing host]
erry has joined #ruby
Kricir has joined #ruby
yacks has quit [Quit: Leaving]
profil has joined #ruby
vlad_sta_ has joined #ruby
burlyscudd has quit [Ping timeout: 240 seconds]
Trynemjoel has quit [Quit: Trynemjoel]
<profil>
Hey guys. I am writing som erb templates. I want to get rid of the whitespace produced when I have written the code nicely. The output consists of both newlines and tabs but I want it all on one line, how do I do this? if I try to use "-%>" I get "syntax error, expected ;"
vlad_starkov has quit [Ping timeout: 245 seconds]
moofy has joined #ruby
Xeago_ has quit [Read error: Connection reset by peer]
gregorg has quit [Remote host closed the connection]
Kricir has quit [Ping timeout: 264 seconds]
<moofy>
What would be the best way to iterate through an array, joining the strings in it with a comma, but not adding one to the last value?
Xeago has joined #ruby
<moofy>
using something like array.each { |values| value + "," } puts one at the end
<pwnfactory>
moofy: array.join(',')
<profil>
moofy: lol, thats exactly what I am doing. I am using each_with_index and then checking if index == 0
<moofy>
ah
Xeago has quit [Read error: Connection reset by peer]
<pwnfactory>
moofy: ah, no i see what you're trying to do now, nevermind
<orion>
Hi. I have a Hash with a bunch of fields in it, and one of the fields is a Time. I would like to group all my Hash entries together by year. How can I go about doing this?
<ahawkins>
anyone used the sequel library before? I can't figure out how to join a table with conditions without overwriting the result.
cj3kim has quit [Remote host closed the connection]
devoldmx has quit [Remote host closed the connection]
ffio_ has joined #ruby
ffio has quit [Ping timeout: 256 seconds]
Hanmac has joined #ruby
krz has quit [Quit: krz]
Asher has joined #ruby
persand has quit [Read error: Connection reset by peer]
cmarques has joined #ruby
leonid__ has joined #ruby
jorge has joined #ruby
kofno has quit [Remote host closed the connection]
geggam has joined #ruby
leonid_ has quit [Ping timeout: 248 seconds]
obs has joined #ruby
wmoxam has joined #ruby
anay has joined #ruby
jorge has quit [Ping timeout: 240 seconds]
cmarques has quit [Ping timeout: 246 seconds]
milardovich has joined #ruby
krandi has quit [Ping timeout: 246 seconds]
dmiller has joined #ruby
allanm has quit [Read error: Connection reset by peer]
bamdad has quit [Quit: bamdad]
chrisja has joined #ruby
jmimi has joined #ruby
mklappstuhl has joined #ruby
KevinSjoberg has joined #ruby
freeayu has joined #ruby
Zeeraw has joined #ruby
Neomex has joined #ruby
dmiller has quit [Ping timeout: 252 seconds]
niceguyjames has joined #ruby
burlyscudd has joined #ruby
Neomex has quit [Client Quit]
eka has joined #ruby
Kricir has joined #ruby
zets has quit []
MrZYX|off is now known as MrZYX
burlyscudd has quit [Ping timeout: 245 seconds]
haxrbyte_ has quit [Remote host closed the connection]
cj3kim has joined #ruby
Kricir has quit [Ping timeout: 264 seconds]
mikecmpbll has joined #ruby
elentras has joined #ruby
threesome has quit [Ping timeout: 248 seconds]
<KevinSjoberg>
Is there a more concise way of doing "ATTRIBUTES.map { |a| public_send(a) }"? What I'm doing is returning a array of values for certain attributes in a class.
cj3kim has quit [Ping timeout: 252 seconds]
coderhut_ has joined #ruby
akemrir has joined #ruby
<lessless>
in rspec, how to test that model has certain attributes?
wmoxam has quit [Ping timeout: 276 seconds]
johnnybelate has quit [Quit: leaving]
mikewintermute has joined #ruby
mikewintermute has quit [Client Quit]
Lennier has joined #ruby
<Lennier>
hi folks
profil has left #ruby [#ruby]
<Lennier>
a quick question: what does this =~ operator mean?
<KevinSjoberg>
lessless: Either you use a third party such as shoulda-matchers (https://github.com/thoughtbot/shoulda-matchers) or you just do a simple assertion such as "expect(model).to respond_to(:attribute)".
<KevinSjoberg>
lessless: That will do a regular expression match.
<KevinSjoberg>
oops: I meant Lennier.
vlad_starkov has quit [Ping timeout: 252 seconds]
lsmola has quit [Ping timeout: 264 seconds]
moos3 has joined #ruby
julweber has quit [Remote host closed the connection]
redgirl has quit [Ping timeout: 252 seconds]
wmoxam has joined #ruby
otherj has joined #ruby
vlad_starkov has joined #ruby
dhruvasagar has quit [Ping timeout: 246 seconds]
bamdad has joined #ruby
wmoxam has quit [Ping timeout: 246 seconds]
<Lennier>
KevinSjoberg, thanks!
freerobby has joined #ruby
haxrbyte has joined #ruby
jibi has quit [Ping timeout: 248 seconds]
julweber has joined #ruby
vlad_starkov has quit [Ping timeout: 246 seconds]
philcrissman_ has joined #ruby
huoxito has joined #ruby
freerobby has quit [Ping timeout: 246 seconds]
lsmola has joined #ruby
cj3kim has joined #ruby
DireFog has joined #ruby
snearch has joined #ruby
<DireFog>
hello, I have a small question of using backslashes in, e.g., gsub expressions: 'a%b\c\'"d'.gsub(/('|"|\\|\%)/, '\\\\\1')
<DireFog>
why do I have to put five backslashes there?
KhalilC has joined #ruby
<DireFog>
(2.0.0-p247)
osvico has joined #ruby
dkannan has quit [Quit: dkannan]
optimusprimem has quit [Ping timeout: 245 seconds]
cj3kim has quit [Read error: Connection reset by peer]
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
devoldmx has joined #ruby
<MrZYX>
DireFog: what's the desired output string?
<MrZYX>
(if you'd puts it)
<DireFog>
as expected: a\%b\\c\'\"d
tkuchiki has joined #ruby
<DireFog>
well, as intended
<MrZYX>
I'd do 'a%b\c\'"d'.gsub(/('|"|\\|%)/) { "\\#{$1}" } then
<Hanmac>
DireFog: so '\\\\\1' is truly parsed as '\\\\' + '\1' and '\\\\' will be parsed though string-escaping and gsub as '\' and '\1' will be parsed in my sample as 2, thats why you need 5 \
niceguyjames has quit [Quit: Computer has gone to sleep.]
wsterling has joined #ruby
DaniG2k has quit [Quit: Leaving.]
devoldmx has joined #ruby
Zeeo has joined #ruby
postmodern has quit [Quit: Leaving]
burlyscudd has joined #ruby
ttt has quit [Remote host closed the connection]
Kricir has joined #ruby
Jackneill has joined #ruby
viszu has joined #ruby
PhatBaja has joined #ruby
milardovich has quit [Remote host closed the connection]
haxrbyte_ has joined #ruby
haxrbyte has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
Xeago has quit [Remote host closed the connection]
sambao21 has joined #ruby
Kricir has quit [Ping timeout: 240 seconds]
burlyscudd has quit [Ping timeout: 240 seconds]
cj3kim has joined #ruby
PhatBaja has quit [Ping timeout: 245 seconds]
amarraja has quit [Read error: Operation timed out]
iamjarvo has joined #ruby
TMM has quit [Quit: Bye]
TMM has joined #ruby
TMM has quit [Changing host]
TMM has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
tacos1de_ has joined #ruby
robbyoconnor has quit [Read error: No route to host]
kobain has joined #ruby
robbyoconnor has joined #ruby
tacos1de has quit [Ping timeout: 240 seconds]
tonini has quit [Ping timeout: 248 seconds]
ananthakumaran1 has joined #ruby
cj3kim has quit [Ping timeout: 264 seconds]
hoyang has quit [Read error: Connection reset by peer]
wsterling has quit [Remote host closed the connection]
tomzx_mac has joined #ruby
swordsmanz has joined #ruby
ananthakumaran has quit [Ping timeout: 245 seconds]
Judge has joined #ruby
ali__ has joined #ruby
ali__ has left #ruby [#ruby]
<Judge>
hi @ all :)
codecop has quit [Remote host closed the connection]
jimg has joined #ruby
kevinfagan has quit [Excess Flood]
kevinfagan has joined #ruby
kevinfagan has quit [Max SendQ exceeded]
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
kevinfagan has joined #ruby
jprovazn has quit [Quit: Odcházím]
kevinfagan has quit [Max SendQ exceeded]
anay has quit [Remote host closed the connection]
milardovich has joined #ruby
kevinfagan has joined #ruby
kevinfagan has quit [Max SendQ exceeded]
anay has joined #ruby
kevinfagan has joined #ruby
DonRichie has quit [Read error: Connection reset by peer]
kevinfagan has quit [Max SendQ exceeded]
kevinfagan has joined #ruby
DonRichie has joined #ruby
kevinfagan has quit [Max SendQ exceeded]
kevinfagan has joined #ruby
kevinfagan has quit [Max SendQ exceeded]
kevinfagan has joined #ruby
Asher1 has joined #ruby
kevinfagan has quit [Max SendQ exceeded]
kevinfagan has joined #ruby
kevinfagan has quit [Max SendQ exceeded]
kevinfagan has joined #ruby
kevinfagan has quit [Max SendQ exceeded]
Asher has quit [Ping timeout: 240 seconds]
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
anay has quit [Ping timeout: 245 seconds]
jimg has quit [Ping timeout: 246 seconds]
sheeny has joined #ruby
kevinfagan has joined #ruby
kevinfagan has quit [Max SendQ exceeded]
browndawg has joined #ruby
<sheeny>
Hi all, is there a way to get a range but the opposite way? so I can obiously do 0..4 but can i have it so its the other way around so instead of the outcome being 0,1,2,3,4 i can have 4,3,2,1,0?
milardovich has quit [Quit: Leaving]
<sheeny>
I thought I would be able to do 4..0 but apparently not
kevinfagan has joined #ruby
ferr has joined #ruby
hoyang has joined #ruby
generalissimo has joined #ruby
hoyang has quit [Max SendQ exceeded]
Maior has left #ruby [#ruby]
vlad_starkov has joined #ruby
tonini has joined #ruby
hoyang has joined #ruby
<Hanmac>
sheeny: 4.downto(0)
freerobby has joined #ruby
sailias has joined #ruby
<sheeny>
Hanmac: Thanks, works a treat, is there a reason the reversable hasnt been implemented?
jinie_ has quit [Read error: Operation timed out]
vlad_starkov has quit [Remote host closed the connection]
cdnsteve has joined #ruby
<Hanmac>
its because Range only uses the succ method ... that may be "succ" but there are objects there a succ makes sense but an prev does not
<cdnsteve>
hello ruby-ers :)
ferr has quit [Ping timeout: 252 seconds]
jinie_ has joined #ruby
eerlkrc4 has joined #ruby
cha1tanya has joined #ruby
freerobby has quit [Ping timeout: 256 seconds]
eerlkrc4 has left #ruby [#ruby]
<sheeny>
Ah
<sheeny>
thanks
sheeny has quit [Quit: Page closed]
haxrbyte has joined #ruby
LennyLinux has joined #ruby
angusigu1ss has joined #ruby
wmoxam has joined #ruby
amarraja has joined #ruby
DireFog has left #ruby ["OMG pwnies!"]
tatsuya__ has joined #ruby
haxrbyte_ has quit [Ping timeout: 246 seconds]
cj3kim has joined #ruby
angusiguess has quit [Ping timeout: 240 seconds]
cj3kim has quit [Read error: Connection reset by peer]
razi has quit [Quit: Leaving.]
brianherman has joined #ruby
tatsuya_o has quit [Ping timeout: 264 seconds]
vigintas_ has joined #ruby
niceguyjames has joined #ruby
vigintas has quit [Ping timeout: 264 seconds]
akemrir has quit [Quit: WeeChat 0.4.1]
vigintas_ has quit [Read error: Connection reset by peer]
camilasan has quit [Remote host closed the connection]
jpsirois has joined #ruby
andikr has quit [Remote host closed the connection]
tatsuy___ has joined #ruby
coderhut_ has quit [Ping timeout: 250 seconds]
tomzx_mac has quit [Ping timeout: 268 seconds]
coderhut has quit [Ping timeout: 250 seconds]
vigintas has joined #ruby
cdnsteve has quit [Remote host closed the connection]
tonini has quit [Ping timeout: 248 seconds]
tatsuya__ has quit [Ping timeout: 264 seconds]
moos3 has quit [Quit: Computer has gone to sleep.]
_Andres has joined #ruby
TIJ has quit [Ping timeout: 246 seconds]
bklane has joined #ruby
ananthakumaran1 has quit [Quit: Leaving.]
moos3 has joined #ruby
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
niklasb has joined #ruby
tonini has joined #ruby
samuel02 has quit [Remote host closed the connection]
MHI has joined #ruby
predator117 has quit [Remote host closed the connection]
YaNakilon has quit [Ping timeout: 252 seconds]
predator117 has joined #ruby
boblu has quit [Ping timeout: 264 seconds]
DaniG2k has joined #ruby
noop has quit [Ping timeout: 264 seconds]
Asher1 has quit [Ping timeout: 248 seconds]
danslo has joined #ruby
Astral__ has joined #ruby
jinie_ has quit [Ping timeout: 241 seconds]
jinie_ has joined #ruby
YaNakilon has joined #ruby
havenwood has joined #ruby
niceguyjames has quit [Quit: Computer has gone to sleep.]
Astral_ has quit [Ping timeout: 256 seconds]
elaptics is now known as elaptics`away
niceguyjames has joined #ruby
ravster has joined #ruby
predator117 has quit [Ping timeout: 245 seconds]
Kricir has joined #ruby
burlyscudd1 has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
Ripp__ has quit [Remote host closed the connection]
PhatBaja has joined #ruby
atno has joined #ruby
elaptics`away is now known as elaptics
anay has joined #ruby
chiel has joined #ruby
girija has left #ruby ["Ex-Chat"]
freeayu has quit [Remote host closed the connection]
<puppeh>
so just pop and push should be enough, without GC
_JamieD_ has joined #ruby
codecop has joined #ruby
<heftig>
puppeh: it's a tree, actually
emergion has joined #ruby
angusiguess has joined #ruby
JZTech101 has joined #ruby
rickruby has joined #ruby
MrThePlague|Away has quit [Client Quit]
MrThePlague has joined #ruby
MrThePlague has quit [Changing host]
MrThePlague has joined #ruby
nari has quit [Ping timeout: 268 seconds]
jimg has joined #ruby
cj3kim has quit [Ping timeout: 251 seconds]
<heftig>
i.e. you create a reference to the current top of the stack by making a proc, and can save that proc somewhere for later execution after leaving the method, or even pass it to another thread
<DaniG2k>
omg
<DaniG2k>
30 mins left at work -_-
RobW_ has joined #ruby
<DaniG2k>
I'm gonna die
<heftig>
puppeh: if the stack frame would be destroyed immediately after return, that wouldn't work
subbyyy has joined #ruby
Evixion has joined #ruby
matchaw has quit [Ping timeout: 260 seconds]
jimg has quit [Ping timeout: 248 seconds]
matchaw has joined #ruby
pedestrian has joined #ruby
sondr3 is now known as away_sondr3
krz has joined #ruby
sayan has quit [Ping timeout: 264 seconds]
matthewrobbins has quit [Ping timeout: 248 seconds]
_bart has joined #ruby
AlbireoX has quit [Remote host closed the connection]
alup has quit [Quit: Leaving]
tatsuya_o has joined #ruby
mityaz has joined #ruby
<_bart>
Hi
atmosx has joined #ruby
<_bart>
I'm really missing a macro when writing a ruby C extension
<atmosx>
hi
<_bart>
I know how to convert Fixnums and Numbers to integers and doubles. But how do I convert Ruby floats to C floats?
dagobah has quit [Remote host closed the connection]
<atmosx>
never mind I figure it out
freerobby has joined #ruby
<waxjar>
the parenthesis instead of curly braces on the %a ?
cj3kim has joined #ruby
PhatBaja has joined #ruby
ferdev has joined #ruby
verto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
verto has joined #ruby
tommyvyo_ has quit [Quit:]
freerobby has quit [Ping timeout: 268 seconds]
devoldmx3 has joined #ruby
relix has joined #ruby
salientKnight has joined #ruby
<salientKnight>
hey all
cj3kim has quit [Ping timeout: 245 seconds]
dhruvasagar has quit [Ping timeout: 268 seconds]
PhatBaja has quit [Ping timeout: 245 seconds]
<waxjar>
hi salientKnight
<salientKnight>
I am new to Ruby and hitting a wall with the install I guess... when I load my new controller page, I get "axconfig: unable to open axports file /etc/ax25/axports (No such file or directory)
<salientKnight>
(in /home/daniell/.gem/ruby/1.9.1/gems/turbolinks-1.2.0/lib/assets/javascripts/turbolinks.js.coffee)" I removed the turbolinks gem and recreated the project and the controller, but the error wont go away ... can anyone help? I could not find anything on google.
milardovich has quit [Quit: Leaving]
<Hanmac>
_bart: NUM2DBL + DBL2NUM
devoldmx has quit [Ping timeout: 245 seconds]
pkrzywicki has quit [Read error: Operation timed out]
Davey has joined #ruby
threesome has joined #ruby
sayan has joined #ruby
niceguyjames has quit [Quit: Computer has gone to sleep.]
carloslopes has quit [Remote host closed the connection]
JZTech101 has quit [Ping timeout: 264 seconds]
pedestrian has quit [Quit: pedestrian]
carloslopes has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
pedestrian has joined #ruby
fomatin has quit [Quit: Computer has gone to sleep.]
AlbireoX has joined #ruby
pwnfactory has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
TheFuzzball has joined #ruby
anay has joined #ruby
<AntelopeSalad>
if i were to do: rvm --create 2.0.0 , do i need to include the -p195 at the end?
gildo has quit [Ping timeout: 246 seconds]
<MrZYX>
if your RVM is up-to-date yes
<MrZYX>
the latest release is p247
[0x1a] has joined #ruby
<AntelopeSalad>
ok, so the -pxxx is a very important detail for when creating new projects?
<MrZYX>
no
<AntelopeSalad>
i've never seen such a suffix before on a version number, i thought they would just bump the version if they have a new version
burlyscudd1 has joined #ruby
apeiros has joined #ruby
PhatBaja has joined #ruby
thecommongeek has quit [Quit: Leaving]
Zeeo has quit [Ping timeout: 260 seconds]
burlyscudd1 has quit [Ping timeout: 248 seconds]
sambao21 has joined #ruby
harrymoreno has joined #ruby
fomatin has joined #ruby
PhatBaja has quit [Ping timeout: 245 seconds]
DestinyAwaits has left #ruby ["Leaving"]
sambao21 has quit [Client Quit]
brennanM_ has joined #ruby
cdnsteve has quit [Remote host closed the connection]
mahmoudimus has joined #ruby
brennanMKE has quit [Ping timeout: 245 seconds]
mikemac has quit [Quit: Konversation terminated!]
inoperable has joined #ruby
mklappstuhl has joined #ruby
brennanMKE has joined #ruby
crazymykl has joined #ruby
jibi has quit [Quit: .]
greenarrow has joined #ruby
otherj has quit []
brennanM_ has quit [Ping timeout: 276 seconds]
AlbireoX has quit [Remote host closed the connection]
robscomputer_ has quit [Ping timeout: 268 seconds]
chridal has joined #ruby
<chridal>
So I am using RSpec, but I would like the tests to run automatically everytime I save the spec or main file. I am suspecting rspec/autotest does not offer this functionality?
fomatin has quit [Quit: Computer has gone to sleep.]
MrThePlague has quit [Read error: Operation timed out]
mikemac has joined #ruby
crazymykl has quit [Ping timeout: 246 seconds]
<AntelopeSalad>
chridal: you might want to look into using guard
<chridal>
AntelopeSalad: Thanks! Will check it out.
saarinen has joined #ruby
robscomputer has joined #ruby
robscomputer has quit [Remote host closed the connection]
<AntelopeSalad>
i'm new to ruby too, but it seems guard was made for such a task. i don't use rspec but i'm 99% sure they had an extension to work with rspec when i browsed their repo
vlad_starkov has quit [Read error: Connection reset by peer]
paradoja has quit [Ping timeout: 248 seconds]
yacks has joined #ruby
pedestrian has quit [Quit: pedestrian]
<popl>
effbiai: that's awful similar to the error you had before
<effbiai>
yep
MrThePlague has quit [Ping timeout: 264 seconds]
<popl>
*awfully
<MrZYX>
so whatever you did to cause it, you did it again
<effbiai>
the first one i got rid of by deleting my /usr/local/rubysomething
<effbiai>
no, cuz gem env still works :)
<effbiai>
now it's bundle who whines
<platzhirsch1>
banister: do you have any idea, why I receive an awful lot of Ruby warnings when using pry with pry-debugger and binding.pry? There was a pretty old issue regarding this problem I guess
<banister>
platzhirsch1: can u give an example of the warnings
vlad_starkov has joined #ruby
matthalliday has joined #ruby
<platzhirsch1>
banister: .../pry/command.rb:33: warning: instance variable @match not initialized
<banister>
platzhirsch1: so you're runnig your program with warnings on?
<banister>
platzhirsch1: what pry version?
<platzhirsch1>
banister: I don't think so. pry-0.9.12.2
tonini has quit [Read error: Connection reset by peer]
<banister>
platzhirsch1: well one app you're using pry on has warnings on
<platzhirsch1>
I thought I had a global warning option activated somewhere
freerobby1 has joined #ruby
chichou has quit [Remote host closed the connection]
alexwh has left #ruby [#ruby]
rsahae has joined #ruby
<platzhirsch1>
ah ok, that might be the case, dunno which one, but sounds reasonable
<banister>
i think we got rid of most of the warnings on HEAD
<banister>
but i think u'd find a lot of ruby libs generating those kind of warnings if u have the warning switch on
freerobby has quit [Read error: Connection reset by peer]
twoism has quit [Remote host closed the connection]
twoism has joined #ruby
rsahae has quit [Read error: Connection reset by peer]
burlyscudd has quit [Ping timeout: 245 seconds]
rsahae__ has joined #ruby
rsahae__ has quit [Client Quit]
ehaliewicz has joined #ruby
wsterling has joined #ruby
awaage has joined #ruby
wmoq has joined #ruby
<wmoq>
hi im new to programming and ruby, and I have some questions about some things I am unable to grasp: what is the difference between a variable, a $global variable a @ variable and a @@ variable, i am unsure when to use what.. : /
browndawg has joined #ruby
wsterling has quit [Ping timeout: 268 seconds]
colonolGron has joined #ruby
r0bgleeson has quit [Ping timeout: 252 seconds]
rsahae has joined #ruby
<havenwood>
wmoq: scope
<Mendon>
wmoq: A local variable (no precursor) is only available within that method - you can't access it from outside. An instance variable (@something) is available from anywhere inside that class - so any methods in that class can use it.
ciziar has joined #ruby
<Mendon>
Er, anywhere inside that -instance- of the class.
workmad3 has quit [Ping timeout: 264 seconds]
<Mendon>
So if you do Object.new, set an instance variable on it, then build another object, that new object can't access the first's instance variable.
vlad_starkov has quit [Remote host closed the connection]
<Mendon>
wmoq: @@ is a class variable - it's a variable that any instance of that class can use and access. Consider it a global variable but just for that class. Be careful with these.
<Mendon>
wmoq: $ is a true global variable - any ruby code within your whole program can access it.
Rix has quit [Quit: No One Lives Forever]
<Mendon>
wmoq: You should probably avoid those.
<Morrolan>
What's the bias against class-wide variables, anyway? :)
mosheee has quit [Ping timeout: 256 seconds]
CaptainJet has joined #ruby
vlad_starkov has joined #ruby
<MrZYX>
childs modify them
<Mendon>
Morrolan: Globals of any kind are generally a bad thing - it breaks the encapsulation of the object.
<wmoq>
hmmm
<banister>
Morrolan: cos they're not just class-wide, they're 'hierarchy-wide'
<Morrolan>
banister & MrZYX - Oh, I see.
<wmoq>
Mendon: when you say whole program you mean any method can use that variable?
<wmoq>
what is the difference between @ and @@ ?
<Mendon>
wmoq: For a global? Yes - and without passing it. It's just available to be used.
<wmoq>
instance and class?
<Mendon>
wmoq: @ is instance-wide, @@ is class-wide.
<wmoq>
what do you mean by 'passing it'
boblu has joined #ruby
<wmoq>
instance means that if i have 2 objects they do not share the variable
twoism has quit [Ping timeout: 268 seconds]
<wmoq>
correct?
<Mendon>
wmoq: Right.
<wmoq>
and @@ does share it
<Mendon>
wmoq: Indeed.
<wmoq>
:)
<wmoq>
thanks
jimg has joined #ruby
<wmoq>
feel a little saner now
sepp2k1 has joined #ruby
<Mendon>
wmoq: It's better practice to pass those variables as an argument to some function when you need to do that though.
<havenwood>
wmoq: An local variable is local to the method. Use local variables if you can. You should get by only ever creating local or instance variables.
<wmoq>
Mendon: thats what i was going to ask next
<wmoq>
why are these things possible, isent it oop that you would pass everything as arguments?
subbyyy has quit [Read error: Connection reset by peer]
whowantstolivef1 has joined #ruby
MrThePlague has joined #ruby
MrThePlague has quit [Changing host]
PhatBaja has joined #ruby
MrThePlague has joined #ruby
<Mendon>
wmoq: Flexibility is good in a language.
<wmoq>
:)
<wmoq>
ok
<havenwood>
wmoq: You **can** use only global methods, but yeah, you want to select a narrow scoped variable.
norm__ has joined #ruby
fivethre1o has joined #ruby
<havenwood>
global variables*
r0bgleeson has joined #ruby
Randomage2 has joined #ruby
sepp2k has quit [Ping timeout: 240 seconds]
DanKnoxz has joined #ruby
<wmoq>
i also do not understand return properly, where does it return whatever I am doing? like if i have a class and inside it i have a method called monkey which puts "foobar", and then i have a return "barfoo" and run x=classname.new and then x.monkey i just get foobar
harrymoreno has quit [Ping timeout: 246 seconds]
<wmoq>
where does it get returned? i guess im thinking wrong because im expecting it to print to screen
DanKnoxz is now known as DanKnox
Gugster has joined #ruby
yshh_ has joined #ruby
harrymoreno has joined #ruby
drago777 has joined #ruby
pietr0_ has joined #ruby
Jb has joined #ruby
fred_ has joined #ruby
brennanM_ has joined #ruby
jimg has quit [Ping timeout: 245 seconds]
fred_ is now known as Guest19851
machuga- has joined #ruby
boblu has quit [Ping timeout: 245 seconds]
TheMoonMaster_ has joined #ruby
moshee- has joined #ruby
elektronaut_ has joined #ruby
yo61_ has joined #ruby
alo1 has joined #ruby
ozzloy_ has joined #ruby
wereHamster has joined #ruby
Guest13234 has joined #ruby
katherin1m13 has joined #ruby
erry_ has joined #ruby
ccooke_ has joined #ruby
Sp4rKy has quit [Ping timeout: 276 seconds]
vlad_starkov has quit [Remote host closed the connection]
jpun_ has joined #ruby
hexbit_ has joined #ruby
raddazong has joined #ruby
awaage has left #ruby [#ruby]
Skelz0r_ has joined #ruby
broquain1 has joined #ruby
Patteh_ has joined #ruby
Gate_ has joined #ruby
DefV_ has joined #ruby
emdub_ has joined #ruby
norm has quit [Ping timeout: 248 seconds]
niftylettuce has quit [Ping timeout: 248 seconds]
DanKnox_away has quit [Ping timeout: 248 seconds]
mephux_ has quit [Ping timeout: 248 seconds]
elektronaut has quit [Ping timeout: 248 seconds]
bhaak_ has joined #ruby
norm__ is now known as norm
shaman42_ has joined #ruby
elektronaut_ is now known as elektronaut
Elfix_113 has joined #ruby
kvodlecks has joined #ruby
kenichi_ has joined #ruby
Sargun_ has joined #ruby
Rix has joined #ruby
effbiai_ has joined #ruby
bakedb has joined #ruby
robwilliamsukio has joined #ruby
MarcWebe1 has joined #ruby
TheMoonMaster has quit [Disconnected by services]
TheMoonMaster_ is now known as TheMoonMaster
awwaiid_ has joined #ruby
rblackwe has joined #ruby
machuga has quit [Ping timeout: 248 seconds]
moshee has quit [Ping timeout: 248 seconds]
gkunno has quit [Ping timeout: 248 seconds]
dawkirst_ has joined #ruby
brennanMKE has quit [Ping timeout: 248 seconds]
Randomage has quit [Ping timeout: 248 seconds]
Jb___ has quit [Ping timeout: 248 seconds]
jpun has quit [Ping timeout: 248 seconds]
pietr0 has quit [Ping timeout: 248 seconds]
emmanuelux has joined #ruby
katherinem13 has quit [Ping timeout: 248 seconds]
wereHams1er has quit [Ping timeout: 248 seconds]
yo61 has quit [Ping timeout: 248 seconds]
kenichi has quit [Ping timeout: 248 seconds]
Eiam has quit [Ping timeout: 248 seconds]
ozzloy has quit [Ping timeout: 248 seconds]
fred has quit [Ping timeout: 248 seconds]
thomas` has quit [Ping timeout: 248 seconds]
alo1_ has quit [Ping timeout: 248 seconds]
tr4656_ has quit [Ping timeout: 248 seconds]
robwilliamsuk has quit [Ping timeout: 248 seconds]
angelixd has quit [Ping timeout: 248 seconds]
Guga_ has quit [Ping timeout: 248 seconds]
yshh has quit [Ping timeout: 248 seconds]
eka has quit [Ping timeout: 248 seconds]
effbiai has quit [Ping timeout: 248 seconds]
robwilliamsukio is now known as robwilliamsuk
sirecote_ has joined #ruby
peterhel1berg has joined #ruby
Gate has quit [Ping timeout: 248 seconds]
froy has quit [Ping timeout: 248 seconds]
ccooke has quit [Ping timeout: 248 seconds]
fivethreeo has quit [Ping timeout: 248 seconds]
Koshian__ has quit [Ping timeout: 248 seconds]
Skelz0r has quit [Ping timeout: 248 seconds]
Patteh has quit [Ping timeout: 248 seconds]
DefV has quit [Ping timeout: 248 seconds]
drago777- has quit [Ping timeout: 248 seconds]
sirecote has quit [Ping timeout: 248 seconds]
madhatter has quit [Ping timeout: 248 seconds]
broquaint has quit [Ping timeout: 248 seconds]
mnemon has quit [Ping timeout: 248 seconds]
hexbit has quit [Ping timeout: 248 seconds]
Elfix has quit [Ping timeout: 248 seconds]
companion has quit [Ping timeout: 248 seconds]
shaman42 has quit [Ping timeout: 248 seconds]
emdub has quit [Ping timeout: 248 seconds]
avelldiroll has quit [Ping timeout: 248 seconds]
bhaak has quit [Ping timeout: 248 seconds]
whowantstolivefo has quit [Ping timeout: 248 seconds]
dawkirst has quit [Ping timeout: 248 seconds]
bakedb_ has quit [Ping timeout: 248 seconds]
Quadlex has quit [Ping timeout: 248 seconds]
voodoofish has quit [Ping timeout: 248 seconds]
Sargun has quit [Ping timeout: 248 seconds]
rippa has quit [Ping timeout: 248 seconds]
awwaiid has quit [Ping timeout: 248 seconds]
rblackwe_ has quit [Ping timeout: 248 seconds]
Guest57220 has quit [Ping timeout: 248 seconds]
MarcWeber has quit [Ping timeout: 248 seconds]
effbiai_ is now known as effbiai
ArnaudR has quit [Ping timeout: 248 seconds]
samu has quit [Ping timeout: 248 seconds]
mocfive has quit [Ping timeout: 248 seconds]
blast_hardcheese has quit [Ping timeout: 248 seconds]
peterhellberg has quit [Ping timeout: 248 seconds]
sirecote_ is now known as sirecote
devoldmx3 has quit [Ping timeout: 248 seconds]
companion_ has joined #ruby
r0bby has quit [Read error: Connection reset by peer]
moshee has joined #ruby
mnemon has joined #ruby
r0bby has joined #ruby
companion_ is now known as companion
companion has quit [Changing host]
companion has joined #ruby
<Mendon>
wmoq: There's an implicit return in ruby - if you don't explicitly return with "return" it just returns the last value of the function.
PhatBaja has quit [Ping timeout: 245 seconds]
gildo has quit [Ping timeout: 240 seconds]
daniel_hinojosa has joined #ruby
Koshian__ has joined #ruby
mocfive has joined #ruby
DonRichie has quit [Quit: Verlassend]
Guest57220 has joined #ruby
bhaak_ is now known as bhaak
gkunno has joined #ruby
erry has quit [Ping timeout: 620 seconds]
erry_ is now known as erry
dmiller has quit [Ping timeout: 245 seconds]
workmad3 has joined #ruby
banjara1 has quit [Quit: Leaving.]
tr4656 has joined #ruby
Sp4rKy has joined #ruby
axeman- has quit [Ping timeout: 245 seconds]
wmoq has quit [Ping timeout: 250 seconds]
froy has joined #ruby
avelldiroll has joined #ruby
sguselnikov has joined #ruby
axeman- has joined #ruby
ciziar has quit [Quit: Computer has gone to sleep.]
sguselnikov has quit [Client Quit]
samu has joined #ruby
Niamkik_ has quit [Ping timeout: 276 seconds]
ismlages has quit [Ping timeout: 276 seconds]
Niamkik has joined #ruby
vlad_starkov has joined #ruby
osvico has quit []
whowantstolivef1 has quit [Quit: quit]
angelixd has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
elektronaut has quit [Ping timeout: 276 seconds]
nbouscal has quit [Ping timeout: 276 seconds]
robert__ has joined #ruby
matrixise has quit [Ping timeout: 276 seconds]
robert__ has quit [Changing host]
robert__ has joined #ruby
eka has joined #ruby
elektronaut has joined #ruby
thomas` has joined #ruby
helvete has joined #ruby
skinny_much_ has quit [Read error: Connection reset by peer]
tonini has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
halfie_ has joined #ruby
Kudos_ has joined #ruby
Nahra_ has joined #ruby
three18ti has joined #ruby
pietr0_ has quit [Ping timeout: 276 seconds]
jericon has quit [Ping timeout: 276 seconds]
chrisja has quit [Remote host closed the connection]
fbernier has quit [Ping timeout: 276 seconds]
felixjet__ has quit [Ping timeout: 276 seconds]
coaster has quit [Ping timeout: 276 seconds]
bhaak has quit [Ping timeout: 276 seconds]
ptotterm has quit [Ping timeout: 276 seconds]
hoyang has quit [Ping timeout: 276 seconds]
Kudos has quit [Ping timeout: 276 seconds]
Zelest has quit [Remote host closed the connection]
afd__ has quit [Ping timeout: 276 seconds]
halfie has quit [Ping timeout: 276 seconds]
coaster has joined #ruby
mupkoo has quit [Ping timeout: 276 seconds]
halfie_ is now known as halfie
Nahra has quit [Remote host closed the connection]
matrixise has quit [Ping timeout: 276 seconds]
Muz has quit [Remote host closed the connection]
Kudos_ is now known as Kudos
Kudos has joined #ruby
Kudos has quit [Changing host]
Muz_ has joined #ruby
hoyang has joined #ruby
mupkoo has joined #ruby
jocellyn has joined #ruby
rsahae_ has joined #ruby
mupkoo has quit [Remote host closed the connection]
<jocellyn>
Hello, is there any equivalent for this channel but for much bigger noobs? I am new to programming and want to chat about stuff, find some friends and ask silly questions and I am not feeling so comfortable doing it here, with so many pro people… thanks, Susanna
trautwein has quit [Ping timeout: 248 seconds]
marcgg has quit [Read error: Connection reset by peer]
<blob>
jocellyn: try #ruby on efnet
eka has joined #ruby
marcgg has joined #ruby
brianherman has quit [Read error: Connection reset by peer]
<jocellyn>
ok thanks :)
havenwood has quit [Remote host closed the connection]
axeman- has quit [Remote host closed the connection]
<KevinSjoberg>
Do a simple "ls -l" on the src and dest directories.
<KevinSjoberg>
RobW_: See above message.
<MagmaRules>
ty wmoxam
marcgg has quit [Ping timeout: 248 seconds]
<wmoxam>
MagmaRules: IMO, installing a package manager (be it Macports, Homebrew or Fink) is generally useful
<KevinSjoberg>
wmoxam, MagmaRules: To be fair, rvm is overkill unless you need the few things it's good at. I'd recommend rbenv (through Homebrew) or chruby (https://github.com/postmodern/chruby).
<MagmaRules>
wmoxam: yeah i just installed homebew
<havenwood>
chruby + ruby-install ftw
sailias has quit [Ping timeout: 240 seconds]
* wmoxam
shrugs
mljsimone is now known as mljsimone|away
<havenwood>
MagmaRules: +1 what wmoxam said, more important you pick a package manager than which one
<wmoxam>
I use rbenv & Homebrew but have nothing against recommending rvm or macports. All are great tools
<havenwood>
my preferred route: brew install chruby ruby-install
rd34 has joined #ruby
marcgg has joined #ruby
<KevinSjoberg>
wmoxam: I do agree. I'm not saying he's doing it wrong, I'm just saying rvm is a lot meatier than the alternatives.
Zelest has joined #ruby
rd34 has quit [Client Quit]
haxrbyte has quit [Remote host closed the connection]
nomenkun has quit [Remote host closed the connection]
<MagmaRules>
ill look into rbenv =)
<havenwood>
KevinSjoberg: RVM even supports installing Rubies with RVM and managing them with chruby.
<MagmaRules>
=)
timonv has joined #ruby
<KevinSjoberg>
havenwood: Yep, I know. But people often choose RVM just because it's common, not because they need the features it provides. Therefor a lot of Rubyist would suffice with chruby, rbenv in combination with ruby-install.
jds_ has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
evenix_ has joined #ruby
<havenwood>
A ThoughtBot fellow did a chruby writeup recently, but he used ruby-build and it is slicker and lighter with ruby-install: http://pbrisbin.com/posts/chruby
hogeo_ has joined #ruby
jds_ has joined #ruby
evenix has quit [Ping timeout: 264 seconds]
<MagmaRules>
Agreed i picked rvm because its what i remember using last time i used ruby full time and it was recommended to me. Didn't even check the alternatives. Doing that now to learn a little bit more =)
<havenwood>
KevinSjoberg: chruby was late to the game but does it right, imho
<KevinSjoberg>
havenwood: Agreed :)
hogeo has quit [Ping timeout: 248 seconds]
<havenwood>
RVM2 being in Ruby instead of Shell is interesting.
mityaz has quit [Quit: See ya!]
trautwei has joined #ruby
codenapper has quit [Ping timeout: 240 seconds]
mklappstuhl has quit [Remote host closed the connection]
jimg has joined #ruby
wildcard1 is now known as wildcard0
iaj has quit [Ping timeout: 252 seconds]
angusigu1ss has joined #ruby
_bart has joined #ruby
<havenwood>
For a lot of use cases it makes sense though, since Ruby is often available. And for a project as ambitious in scope as RVM it sure is nice to be in Ruby instead of Bash.
katherin1m13 is now known as katherinem13
<havenwood>
Ruby installer written in Ruby requires Ruby. Rubies all the way down.
jds_ has quit [Read error: Connection reset by peer]
rsahae has joined #ruby
jocellyn has quit [Quit: Leaving.]
jds_ has joined #ruby
xardas has joined #ruby
xardas has quit [Changing host]
xardas has joined #ruby
angusiguess has quit [Ping timeout: 252 seconds]
jimg has quit [Ping timeout: 268 seconds]
jds__ has joined #ruby
jds_ has quit [Read error: Connection reset by peer]
trautwei has quit [Ping timeout: 252 seconds]
matthewrobbins has quit [Quit: matthewrobbins]
iaj has joined #ruby
harrymoreno has quit [Ping timeout: 252 seconds]
postmodern has joined #ruby
harrymoreno has joined #ruby
brennanM_ has joined #ruby
ldnunes has quit [Quit: Leaving]
<djbkd>
anybody have a suggested/recommended/idiomatic method of returning the modified array instead of the deleted item from Array#delete ?
<djbkd>
do i wrap Array#delete in a lambda?
arya_ has quit [Ping timeout: 248 seconds]
arya_ has joined #ruby
burlyscudd has joined #ruby
rsahae has quit [Quit: rsahae]
brennanMKE has quit [Ping timeout: 252 seconds]
Yakko has joined #ruby
evenix_ has quit [Ping timeout: 268 seconds]
rsahae_ has joined #ruby
_ffio_ is now known as ffio
evenix has joined #ruby
<matled>
djbkd: you could do a.tap { |b| b.delete(v) }, not sure if I'd really recommend that
kayloos has joined #ruby
kirun has quit [Quit: Client exiting]
JumpMast3r has quit [Quit: JumpMast3r]
end_guy has quit [Remote host closed the connection]
<RobW_>
KevinSjoberg: Turned out it was copying but another process was deleting it after.
wsterling has joined #ruby
burlyscudd has quit [Ping timeout: 252 seconds]
<KevinSjoberg>
RobW_: I see.
<RobW_>
Ha, yeah. Thanks for lending a hand anyways.
robscomputer has quit [Ping timeout: 268 seconds]
headius has quit [Quit: headius]
<popl>
djbkd: what are you trying to do?
apeiros has quit [Remote host closed the connection]
<havenwood>
djbkd: You could monkey patch :P class Array; def del this; self.delete this; self end end
robscomputer has joined #ruby
<havenwood>
[1,2,3].del 2; #=> [1, 3]
elux has quit [Quit: Bye!]
end_guy has joined #ruby
nomenkun has joined #ruby
wsterling has quit [Ping timeout: 264 seconds]
devoldmx has quit [Ping timeout: 245 seconds]
MagmaRules has quit [Quit: MagmaRules]
devoldmx has joined #ruby
codecop has quit [Remote host closed the connection]
JZTech101 has quit [Ping timeout: 264 seconds]
<havenwood>
#tap seems reasonable
<havenwood>
djbkd: Why not just return the modified array in a separate statement????
robscomputer has quit [Remote host closed the connection]
sepp2k1 has quit [Quit: Leaving.]
io_syl has joined #ruby
<havenwood>
sorry for the multiple ?'s, key repeat too fast >.>
sepp2k has joined #ruby
colonolGron has quit [Quit: Lost terminal]
robscomputer has joined #ruby
evenix has quit [Remote host closed the connection]
<havenwood>
nice for arrow-keying around but maybe set a bit tooo extreme
wmoxam has quit [Ping timeout: 264 seconds]
<djbkd>
sorry for the delay, thanks
<djbkd>
how to explain without a novel..
kayloos has quit [Remote host closed the connection]
<djbkd>
working with an erb template w/ puppet
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<djbkd>
populating an array of ip addresses, and i want to pop the ip address of the "local" host
<djbkd>
if i do my_puppet_array.delete("$::ipaddress") it returns the deleted element back into the erb template
<djbkd>
so....that ip addr could move around based on whatever host is compiling the erb template
spider-mario has quit [Remote host closed the connection]
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
<djbkd>
i haven't read the source code so i'm not sure why #delete would return the element instead of the modified array
sailias has joined #ruby
JZTech101 has joined #ruby
Niamkik has quit [Quit: Disconnecting from stoned server.]