apeiros_ changed the topic of #ruby to: Ruby 2.0.0-p0: http://ruby-lang.org (Ruby 1.9.3-p392) || Paste >3 lines of text on http://gist.github.com
Faris9 has joined #ruby
thams has quit [Client Quit]
kpshek has joined #ruby
yugui_zzz is now known as yugui
mockra has quit [Remote host closed the connection]
Kristo has joined #ruby
Kristo has quit [Remote host closed the connection]
Kristo has joined #ruby
Kristo has quit [Excess Flood]
Ontolog_ is now known as Ontolog
Kristo has joined #ruby
Kristo has quit [Client Quit]
g0bl1n_ has joined #ruby
sambio has joined #ruby
sambio has quit [Changing host]
sambio has joined #ruby
freerobby has joined #ruby
kostya27 has left #ruby ["Leaving"]
dallasm_ has quit [Remote host closed the connection]
huoxito has joined #ruby
hamakn has quit [Ping timeout: 260 seconds]
strayson has joined #ruby
arya has quit [Ping timeout: 248 seconds]
arya has joined #ruby
timmow has joined #ruby
statarb3 has joined #ruby
hiroyuki has quit [Read error: Connection reset by peer]
idkazuma has quit [Remote host closed the connection]
freerobby has quit [Ping timeout: 256 seconds]
m8 has quit [Quit: Sto andando via]
heliumsocket has joined #ruby
freeayu has joined #ruby
rsahae has quit [Quit: rsahae]
mando has joined #ruby
timmow has quit [Ping timeout: 252 seconds]
dmiller has quit [Read error: Operation timed out]
sambio has quit []
mikepack has quit [Remote host closed the connection]
jonahR has quit [Quit: jonahR]
arya has quit [Ping timeout: 248 seconds]
rsahae has joined #ruby
ZachBeta has quit [Quit: Computer has gone to sleep.]
c0rn has quit [Quit: Computer has gone to sleep.]
Xeago has joined #ruby
tomsthumb has quit [Quit: Leaving.]
pcarrier has quit [Quit: Computer has gone to sleep.]
maletor has quit [Quit: Computer has gone to sleep.]
Pougnet has quit [Quit: Lost terminal]
hogeo has joined #ruby
c0rn has joined #ruby
mattbl has joined #ruby
mando has quit [Remote host closed the connection]
julian-delphiki has quit [Quit: Leaving]
yshh_ has quit [Remote host closed the connection]
rellin has quit [Ping timeout: 245 seconds]
zastern has quit [Remote host closed the connection]
Faris9 has quit [Ping timeout: 252 seconds]
tommyvyo has joined #ruby
knapper_tech has quit [Ping timeout: 252 seconds]
pavilionXP has joined #ruby
<markalanevans> Hey folks, im just playing around w/ processes.
tealmage has joined #ruby
<markalanevans> at some point in my script after i have fired off a bunch of processes, i want to wait for them all.
<markalanevans> But while i'm waiting, i would like to have something printing out saying which ones i'm waiting for...
thams has joined #ruby
adamjleonard has quit [Quit: Leaving...]
<markalanevans> So perhaps i need to create one more process that runs as a watching process and so i would fire off all my worker processes. Then start a watcher process that waits for all my workers and prints out a list those pids that haven't finished yet. Once all those have died, kill the watcher and all can go on?
Ontolog has quit [Remote host closed the connection]
tommyvyo has quit [Quit:]
tealmage has quit [Ping timeout: 256 seconds]
ephemerian has quit [Quit: Leaving.]
ukd1 has quit [Remote host closed the connection]
butblack has joined #ruby
tjbiddle_ has joined #ruby
knapper_tech has joined #ruby
peta_ has quit [Quit: peta_]
tjbiddle has quit [Ping timeout: 245 seconds]
tjbiddle_ is now known as tjbiddle
arya_ has joined #ruby
agent_white has quit [Quit: leaving]
rking has quit [Quit: Attempt to fix charset]
rking has joined #ruby
bigmac has quit [Ping timeout: 245 seconds]
jdunck has quit [Read error: Operation timed out]
hmarr has quit []
mando has joined #ruby
LnL has quit [Quit: LnL]
insulator has quit [Quit: insulator]
djwonk has joined #ruby
enriclluelles has quit [Remote host closed the connection]
rawng has quit [Quit: WeeChat 0.4.1-dev]
butblack has quit [Quit: butblack]
ZachBeta has joined #ruby
<havenwood> markalanevans: The XPool, IChannel, IProcess family of inter-process communication gems are really interesting to look at: https://github.com/robgleeson/xpool#readme
r0bby is now known as robbyoconnor
yshh has joined #ruby
<markalanevans> checking now
<havenwood> markalanevans: ichannel is kinda the simplest abstraction of them
<havenwood> markalanevans: IChannel: https://github.com/robgleeson/ichannel#readme
<markalanevans> cool. Thanks havenwood.
<markalanevans> really appreciate the pointers.
mando has quit [Remote host closed the connection]
matayam has joined #ruby
<havenwood> markalanevans: Also: https://github.com/havenwood/ifuture#readme
cloke has quit [Read error: Operation timed out]
<markalanevans> nice. your own little project?
<havenwood> markalanevans: yup :D
jpcamara has joined #ruby
<markalanevans> nice
cloke has joined #ruby
<havenwood> markalanevans: I contributed a little feature to xpool, but ifuture is a pet project that just uses ichannel for ipc to implement futures on processes.
statarb3 has quit [Ping timeout: 245 seconds]
<havenwood> markalanevans: Kinda cool to run a block in another process and be able to retrieve the result though!
LnL has joined #ruby
jpfuentes2 has joined #ruby
freerobby has joined #ruby
elux has quit [Quit: Leaving...]
mfridh has quit [Read error: Operation timed out]
hakunin_ has joined #ruby
_nitti has joined #ruby
benlieb has joined #ruby
Axsuul has quit [Ping timeout: 264 seconds]
c0rn has quit [Quit: Computer has gone to sleep.]
nari has joined #ruby
hakunin has quit [Ping timeout: 256 seconds]
BSaboia has quit [Read error: Connection reset by peer]
rickruby has joined #ruby
timmow has joined #ruby
Kruppe has joined #ruby
bradleyprice has joined #ruby
ariedler has joined #ruby
_nitti has quit [Ping timeout: 246 seconds]
security has joined #ruby
freerobby has quit [Ping timeout: 252 seconds]
Voodoofish430 has quit [Quit: Leaving.]
megha has quit [Ping timeout: 255 seconds]
dagnachew has quit [Quit: WeeChat 0.4.0]
Hanmac1 has joined #ruby
cloke has quit [Quit: cloke]
dhruvasagar has joined #ruby
timmow has quit [Ping timeout: 252 seconds]
love_color_text has joined #ruby
arya_ has quit []
rickruby has quit [Ping timeout: 246 seconds]
Hanmac2 has quit [Ping timeout: 264 seconds]
pioz has joined #ruby
Xeago has quit [Remote host closed the connection]
c0rn has joined #ruby
robscomp_ has quit [Remote host closed the connection]
LnL has quit [Quit: LnL]
jnoob22 has quit [Remote host closed the connection]
LnL has joined #ruby
matayam has quit [Remote host closed the connection]
pac1 has quit [Quit: I got it one line of code at a time]
hamakn has joined #ruby
balr0g has joined #ruby
heliumsocket has quit [Quit: heliumsocket]
emmanuelux has quit [Remote host closed the connection]
chrishough has quit [Quit: chrishough]
arya_ has joined #ruby
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
pavilionXP has quit [Read error: Connection reset by peer]
kristofers has quit []
hamakn has quit [Ping timeout: 240 seconds]
Nisstyre-laptop has quit [Quit: Leaving]
<xybre> I'm drawing a complete blank, given a string how can I get a list of all the offsets of a given substring or regex match?
<havenwood> xybre: offsets?
moos3 has quit [Quit: Computer has gone to sleep.]
paper has quit [Read error: Connection reset by peer]
heliumsocket has joined #ruby
paper has joined #ruby
zastern has joined #ruby
<xybre> havenwood: indexes, rather
<xybre> Like string.index(offset) gives me the first index
<xybre> Wow why I did I type offset again.
<xybre> string.index(substring)
randomautomator has quit [Ping timeout: 256 seconds]
Rix has quit [Ping timeout: 256 seconds]
<xybre> I could just save that index, and do string[(last_index + substring.length)..-1].index(substring) and iterate over it, but I'm sure there's an easier way.
pioz has quit [Quit: This computer has gone to sleep]
<havenwood> xybre: Maybe something involving checking #index in a #scan block?
matayam has joined #ruby
benlieb has quit [Quit: benlieb]
<havenwood> xybre: Or possibly StringScanner?: http://ruby-doc.org/stdlib-2.0/libdoc/strscan/rdoc/StringScanner.html
kofno has quit [Remote host closed the connection]
heliumsocket has quit [Quit: heliumsocket]
<xybre> havenwood: should still only give me the first index of the match, even then, if the expression is regular, or we're matching a substring
jekotia_ has joined #ruby
jekotia_ has quit [Client Quit]
<havenwood> xybre: Well, #scan will match each instance and inside the scan block you can iteratively check indexes.
marcdel has quit []
wargasm has quit [Ping timeout: 264 seconds]
dhruvasagar has quit [Ping timeout: 245 seconds]
<havenwood> indices?
virtuose has quit [Ping timeout: 245 seconds]
<havenwood> Hrm, plural of index is indexes or indices?
jekotia has quit [Ping timeout: 245 seconds]
Rix has joined #ruby
<xybre> havenwood: according to grammarist.com either is correct
<havenwood> xybre: Whew...
matayam has quit [Remote host closed the connection]
kofno has joined #ruby
* xybre will try scan with a block
<havenwood> xybre: Like: scan(/regex here/).with_object [
<xybre> havenwood: hmm, doesn't work in Ruby 2.0, scan returns an array
<havenwood> xybre: Sorry, i accidentally hit enter
c0rn has quit [Quit: Computer has gone to sleep.]
<havenwood> xybre: pass a block
<havenwood> scan do
virtuose has joined #ruby
LnL has quit [Quit: LnL]
<zastern> Why do I sometimes want to use a proc instead of a method?
jpfuentes2 has joined #ruby
Domon has joined #ruby
Matip has quit [Read error: Connection reset by peer]
Nisstyre-laptop has joined #ruby
thams has quit [Quit: thams]
Matip has joined #ruby
bonty_ssh has joined #ruby
<havenwood> xybre: E.g.: array = []; 'shannon'.scan(/n/) { |letter| array << $~.offset(0).first }; array #=> [3, 4, 6]
hogeo_ has joined #ruby
<havenwood> xybre: Or pass #with_index?
hogeo has quit [Read error: Connection reset by peer]
erichmenge is now known as epochwolf_
<havenwood> hrm.
epochwolf_ is now known as erichmenge
<havenwood> zastern: If you can use a method, you should.
<zastern> havenwood: when can't you?
banjara has quit [Quit: Leaving.]
<xybre> havenwood: sorry got distracted with running rspec from within ruby on the fly
mando has joined #ruby
io_syl has quit [Read error: Operation timed out]
IceDragon has quit [Quit: Space~~~]
Guedes has quit [Remote host closed the connection]
moos3 has joined #ruby
Vivekananda has joined #ruby
ZachBeta has quit [Quit: Computer has gone to sleep.]
bonty_ssh has quit [Ping timeout: 264 seconds]
kpshek has quit [Ping timeout: 248 seconds]
<havenwood> zastern: Methods are named closures while procs and lambdas are anonymous closures. So, for example you can pass a lambda as an argument and call it later. Also proc non-local returns may be needed. Lambdas are kinda similar to methods if I'm remembering right, with local return and strict arity.
<havenwood> zastern: I prolly said that all wrong...
eka has quit [Quit: Computer has gone to sleep.]
<zastern> I don't think I know enough about programming to get it yet :)
soulofpeace has joined #ruby
kofno has quit [Remote host closed the connection]
<havenwood> zastern: Basically, if a method works - use that. If you need to pass it around, use lambda. If you are having tenet's correspondence principle issues (omgwtfbbq) proc.
<zastern> I don't know what the last sentence means :)
<zastern> But the first two make sense
ZachBeta has joined #ruby
dallasm_ has joined #ruby
tvw has quit [Ping timeout: 240 seconds]
<Vivekananda> hi everyone
djwonk has quit []
rsahae has quit [Quit: rsahae]
<Vivekananda> I have a very stupid basic ruby question. :(. Just point me to more reading if you dont want to tell me what is wrong. I am making a silly mistake of inheritance and dont know the syntax well
<havenwood> zastern: ^ <- explain it much better than I can.
LaPetiteFromage has joined #ruby
<Vivekananda> First part works and second does not :(
browndawg has joined #ruby
sambio has joined #ruby
<xybre> havenwood: Your method does indeed work. I just swear there's got to be a better way.
<havenwood> Vivekananda: flavour or flavor, pick on! :P
<havenwood> Vivekananda: Are you British or aren't you?!
<Vivekananda> Well I am from India and that is how we learnt english
ttt has joined #ruby
<havenwood> xybre: There is usually a better way than my way. :P
<xybre> havenwood: Haha, hey at least it works. I assumed it would be simple, I'm kind of surprised I can't think of a better way than essentially stepping through a string in a loop.
arya has joined #ruby
marcdel has joined #ruby
deric_skibotn has quit [Ping timeout: 256 seconds]
browndawg has quit [Ping timeout: 252 seconds]
LnL has joined #ruby
strayson has quit [Ping timeout: 256 seconds]
jgrevich has quit [Quit: jgrevich]
arya_ has quit [Ping timeout: 248 seconds]
tjbiddle_ has joined #ruby
browndawg has joined #ruby
kofno has joined #ruby
sleetdrop has joined #ruby
huoxito has quit [Ping timeout: 258 seconds]
rupee has quit [Quit: Leaving]
freerobby has joined #ruby
tjbiddle has quit [Ping timeout: 256 seconds]
tjbiddle_ is now known as tjbiddle
indyrl has quit [Read error: Connection reset by peer]
brhelwig has quit [Remote host closed the connection]
NiteRain has quit [Ping timeout: 264 seconds]
nateberkopec has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
butblack has joined #ruby
freerobby has quit [Ping timeout: 256 seconds]
timmow has joined #ruby
tealmage has joined #ruby
mechcozmo has quit [Quit: mechcozmo]
moos3 has joined #ruby
tealmage has quit [Read error: Connection reset by peer]
tealmage has joined #ruby
brianherman has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
emocakes has joined #ruby
timmow has quit [Ping timeout: 252 seconds]
brhelwig has joined #ruby
dhruvasagar has joined #ruby
bradhe has quit [Remote host closed the connection]
fivetwentysix has joined #ruby
voodoofish has quit [Quit: Leaving]
mattbl has joined #ruby
shevy has quit [Ping timeout: 252 seconds]
pitzips has quit [Ping timeout: 252 seconds]
nezumi has joined #ruby
kenneth has quit [Quit: kenneth]
jbueza has quit [Quit: Leaving.]
_veer has joined #ruby
kenneth has joined #ruby
jamesfung14 has quit [Ping timeout: 258 seconds]
brianherman has quit [Quit: Leaving]
<fivetwentysix> wat is modruby.net?
<havenwood> markalanevans: P.S., Storimer's book on Threads just came out! (And it includes a free copy of his Processes book!): http://www.workingwithrubythreads.com/?utm_source=jstorimer.com&utm_medium=blog&utm_campaign=bookspage
<havenwood> markalanevans: Process book was awesome. I look forward to Thread book.
<havenwood> Ruby Threads, Ruby Processes**
rickruby has joined #ruby
radic has joined #ruby
heliumsocket has joined #ruby
<havenwood> fivetwentysix: Looks like a retail placeholder page in japanese.
pitzips has joined #ruby
heliumsocket has quit [Client Quit]
<fivetwentysix> so strange
baroquebobcat has joined #ruby
<havenwood> Really though, everyone go buy Jesse's book on Threads!
g0bl1n_ has quit [Ping timeout: 252 seconds]
<havenwood> He has three so far, processes, sockets, and just released threads.
heliumsocket has joined #ruby
<havenwood> I was tempted to pay for the two-hour one-on-one, but I don't know what to discuss...
radic_ has quit [Ping timeout: 255 seconds]
thinkdevcode has joined #ruby
dhruvasagar has quit [Ping timeout: 240 seconds]
mercwithamouth has quit [Ping timeout: 252 seconds]
pitzips has quit [Ping timeout: 264 seconds]
shevy has joined #ruby
chrishunt has quit [Quit: ZzZzZz...]
chrishunt has joined #ruby
ehaliewicz has quit [Remote host closed the connection]
Guest31337 has joined #ruby
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
havenwood has quit [Remote host closed the connection]
rellin has joined #ruby
psyprus has quit [Ping timeout: 258 seconds]
chandankumar has joined #ruby
psyprus has joined #ruby
dallasm_ has quit [Remote host closed the connection]
etcetera has quit []
Guest31337 has quit [Remote host closed the connection]
generalissimo has joined #ruby
rickruby has quit [Remote host closed the connection]
bradhe has joined #ruby
Banistergalaxy has quit [Ping timeout: 252 seconds]
mando has quit [Remote host closed the connection]
Banistergalaxy has joined #ruby
lktp has joined #ruby
nalaginrut has joined #ruby
pitzips has joined #ruby
bradleyprice has quit [Remote host closed the connection]
bradleyprice has joined #ruby
<lktp> Does anyone have any experience with bundles not working…and Factory_girl requiring 1.9.2 when its running 1.9.2?
ZachBeta has quit [Quit: Computer has gone to sleep.]
GoGoGarrett has joined #ruby
<queequeg1> Howdy, I'm working on converting a roguelike map file into an array of integers. https://gist.github.com/davidvgus/5368924
casheew has quit [Read error: Connection reset by peer]
<queequeg1> I'm almost there, but I'm trying to do it in one line.
casheew has joined #ruby
<queequeg1> can I get the strings converted inside the map block?
Morkel has quit [Quit: Morkel]
ntzrmtthihu777 has joined #ruby
mercwithamouth has joined #ruby
jamie_ca_ has joined #ruby
browndawg has quit [Ping timeout: 264 seconds]
<ntzrmtthihu777> hallo, issue with rake./usr/bin/ld: obj/Clock.cpp.b6a14323b444908ec32e4e2ecc793229.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
<ntzrmtthihu777> attempting to install rbSFML
baroquebobcat has quit [Quit: baroquebobcat]
<bnagy> queequeg1: how big do you want your ints? Looks like split("\n") and pack will work for you
browndawg has joined #ruby
SirFunk has quit [Quit: ZNC - http://znc.in]
<queequeg1> I'm only working on character sized ints.
<queequeg1> I will look at pack, thanks.
GoGoGarrett has quit [Remote host closed the connection]
<bnagy> uh wait.. those are 11 bit binary numbers, or am I crazy?
jekotia has joined #ruby
<queequeg1> actually I just want to call to_i on all of the members of the array I create with split.
jbueza has joined #ruby
jekotia has quit [Client Quit]
<bnagy> then use to_i(2)
tomsthumb has joined #ruby
wargasm has joined #ruby
hakunin_ has quit [Ping timeout: 256 seconds]
<queequeg1> sorry, what is the (2) on the end for?
ananthakumaran has joined #ruby
<bnagy> tells it to treat it as a binary string
<queequeg1> You mean like this: mstring.split.map {|line| line.split("").each {|a| a.to_i(2)}}
urbanmonk has joined #ruby
<bnagy> eh? Oh you want each cell?
<queequeg1> Yeah
PragCypher has joined #ruby
<queequeg1> Each cell is a tile on my map.
<queequeg1> map meaning game map.
<queequeg1> That is what I'm using the two dimensional array for.
<bnagy> try s.each_line.map {|l| l.split('').map(&:to_i)}
<queequeg1> Yay!
<queequeg1> That is what I was trying to do.
<queequeg1> Thanks.
emocakes has quit [Ping timeout: 248 seconds]
<queequeg1> I was trying to use a block on the end.
<bnagy> that would have worked as well, but you just needed map not each
<bnagy> my code is just the same as yours but with a syntax shortcut
<queequeg1> Well, I can bang my head against my keyboard for hours sometimes. Thanks for the correction.
<bnagy> and you don't need to_i(2) when it's only a 1 or 0, cause it's the same in all bases :) I thought you wanted to convert the whole line as a binary number
freerobby has joined #ruby
tylersmith has quit [Quit: tylersmith]
butblack has quit [Quit: butblack]
hakunin has joined #ruby
thinkdevcode has quit [Remote host closed the connection]
pcarrier has joined #ruby
g0bl1n_ has joined #ruby
NiteRain has joined #ruby
ffranz has quit [Quit: Leaving]
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
jdunck has joined #ruby
forced_request has quit [Read error: Connection reset by peer]
zastern has quit [Remote host closed the connection]
G has quit [Quit: leaving]
timmow has joined #ruby
grenierm has quit [Quit: grenierm]
freerobby has quit [Ping timeout: 252 seconds]
mercwithamouth has quit [Ping timeout: 246 seconds]
strayson has joined #ruby
moted has quit [Quit: moted]
<queequeg1> I might not have been communicating well, but you got me there anyway.
rickmasta has joined #ruby
kenneth has quit [Quit: kenneth]
jonahR has joined #ruby
urbanmonk has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
timmow has quit [Ping timeout: 252 seconds]
brhelwig has quit [Remote host closed the connection]
SirFunk has joined #ruby
brhelwig has joined #ruby
huoxito has joined #ruby
kofno has quit [Remote host closed the connection]
ariedler has quit [Remote host closed the connection]
LaPetiteFromage has quit [Quit: LaPetiteFromage]
banjara has joined #ruby
Nisstyre-laptop has quit [Ping timeout: 276 seconds]
mercwithamouth has joined #ruby
ggun has quit [Ping timeout: 256 seconds]
dmiller has joined #ruby
Nisstyre-laptop has joined #ruby
mando has joined #ruby
arya has quit [Ping timeout: 240 seconds]
mattbl has quit [Quit: Leaving]
16SAA533U is now known as rcs
JohnBat26 has joined #ruby
Nisstyre-laptop has quit [Ping timeout: 256 seconds]
arya has joined #ruby
thone has quit [Ping timeout: 252 seconds]
jonahR has quit [Quit: jonahR]
strayson has quit [Remote host closed the connection]
thone has joined #ruby
JoeTheGuest_ is now known as JoeTheGuest
celinedior has joined #ruby
JoeTheGuest has quit [Changing host]
JoeTheGuest has joined #ruby
JoeTheGuest has quit [Changing host]
JoeTheGuest has joined #ruby
postmodern has quit [Quit: Leaving]
postmodern has joined #ruby
jpcamara has quit [Quit: Leaving.]
jhn has joined #ruby
mneorr has joined #ruby
love_color_text has quit [Remote host closed the connection]
sleetdro_ has joined #ruby
io_syl has joined #ruby
mneorr has quit [Ping timeout: 240 seconds]
justsee has quit [Ping timeout: 256 seconds]
sleetdrop has quit [Ping timeout: 240 seconds]
sleetdro_ is now known as sleetdrop
JStoker has quit [Quit: JStoker is gone :(]
thone has quit [Read error: Operation timed out]
mercwithamouth has quit [Ping timeout: 245 seconds]
rezzack has joined #ruby
bigkevmcd has quit [Ping timeout: 246 seconds]
dmiller has quit [Read error: Operation timed out]
chrishunt has quit [Remote host closed the connection]
Nisstyre-laptop has joined #ruby
chandankumar has quit [Quit: Leaving]
chrishunt has joined #ruby
thone has joined #ruby
mattbl has joined #ruby
brhelwig has quit [Remote host closed the connection]
reset has quit [Ping timeout: 264 seconds]
grenierm has joined #ruby
mercwithamouth has joined #ruby
rickruby has joined #ruby
Rumsteak has joined #ruby
Igneous has joined #ruby
<right1> anyone want to help me here
<right1> might be a total waste of time
cschneid has quit [Ping timeout: 246 seconds]
<right1> i have a little script that i use for net:http to do requests and was wondering how i could reduce redundancies in it and make it more ruby-like
rickruby has quit [Ping timeout: 260 seconds]
rickmasta has quit [Quit: Leaving...]
randomautomator has joined #ruby
<Vivekananda> how do I open the class Class for modificaton?
<xybre> Vivekananda: You probably don't want to do that.
huoxito has quit [Ping timeout: 258 seconds]
<Vivekananda> xybre, yep I wish the question did not ask me to . But it does
<Vivekananda> :(
sleetdrop has quit [Ping timeout: 240 seconds]
<Vivekananda> It is tryingg to teach me metaprogramming and open classes but making me create-- attr_accessor_with_history :bar
zastern has joined #ruby
<Vivekananda> is a method which tracks all history along with regular accessor things
<Vivekananda> :)
c0rn has joined #ruby
pitzips has quit [Quit: Leaving]
<xybre> Vivekananda: Ah, I see. Try building a module and then extending Class or Module instead?
<Igneous> Any idea what this could possibly mean? The script loads fine as the same user, in the same cwd under irb.. Not quite sure what status 6 is in regards to rlm_load_protect, but that's where it's getting it. http://dpaste.com/1055560/plain/
<Vivekananda> xybre, I need to tell you I barely know the R of ruby. Started not 4 days ago
brianpWins has joined #ruby
mercwithamouth has quit [Ping timeout: 248 seconds]
<Vivekananda> so building is module means same as :) maneuvering the ISS
<Igneous> oops, rb_load_protect rather
dmiller has joined #ruby
sleetdrop has joined #ruby
JStoker has joined #ruby
JStoker has quit [Remote host closed the connection]
bradleyprice has quit [Remote host closed the connection]
basex has joined #ruby
freerobby has joined #ruby
sleetdrop has quit [Client Quit]
GoGoGarrett has joined #ruby
dmiller has quit [Ping timeout: 256 seconds]
ZachBeta has joined #ruby
dhruvasagar has joined #ruby
timmow has joined #ruby
freerobby has quit [Ping timeout: 256 seconds]
sleetdrop has joined #ruby
cschneid has joined #ruby
mattbl has quit [Quit: Leaving]
maletor has joined #ruby
timmow has quit [Ping timeout: 252 seconds]
sleetdrop has quit [Client Quit]
g0bl1n_ has quit [Ping timeout: 260 seconds]
kofno has joined #ruby
JStoker has joined #ruby
<xibalba> Vivekananda, any prior programming expierience?
maletor has left #ruby [#ruby]
<Vivekananda> xibalba, yep
<Vivekananda> I know modules
<Vivekananda> java
<xibalba> i just started picking up ruby too, but i use to do some C++ about 10 years ago so it hasn't been too difficult
<Vivekananda> and perl but I have no clue of ruby. also I thought that to modify a "Class" code you had to open the file where the code is written to modify it
<Vivekananda> no it is not that difficult but more like I dont know the syntax
<xibalba> got a buddy who's teaching me too, he's heavy into Ruby
<Vivekananda> and some things new to do like the ruby way
<Vivekananda> I am doing this from an online course actually
<Vivekananda> and the bad profs gave bad questions :(
tealmage has quit [Remote host closed the connection]
IrishGringo has joined #ruby
huoxito has joined #ruby
mercwithamouth has joined #ruby
etcetera has joined #ruby
kofno has quit [Ping timeout: 256 seconds]
Nigel_ has joined #ruby
Hanmac1 has quit [Ping timeout: 264 seconds]
stoicsquirrel has joined #ruby
Nigel_ is now known as G
arya has quit [Ping timeout: 240 seconds]
Domon has quit [Remote host closed the connection]
thone has quit [Ping timeout: 255 seconds]
mando has quit [Remote host closed the connection]
browndawg has quit [Quit: Leaving.]
dayepa has quit [Read error: Connection reset by peer]
wallerdev has quit [Quit: wallerdev]
thone has joined #ruby
dayepa has joined #ruby
jamie_ca_ has quit [Quit: Computer has gone to sleep.]
mando has joined #ruby
mercwithamouth has quit [Ping timeout: 252 seconds]
generalissimo has quit [Remote host closed the connection]
s2013 has joined #ruby
mercwithamouth has joined #ruby
arya has joined #ruby
banjara has quit [Quit: Leaving.]
thone has quit [Ping timeout: 252 seconds]
thone has joined #ruby
sleetdrop has joined #ruby
stoicsquirrel has left #ruby [#ruby]
rakl has joined #ruby
<rakl> is it possible to access the index of the current element in #reduce ?
markalanevans has quit [Quit: markalanevans]
arya has quit [Ping timeout: 256 seconds]
<shevy> Vivekananda some things are common to most programming languages
mose has quit [Read error: Operation timed out]
mose has joined #ruby
<Vivekananda> shevy, yep. Execution is what I am trying to learn
mantovani has quit [Read error: Operation timed out]
<Vivekananda> so right now have to know what class - eval does
<Vivekananda> and how or even why to use it
<shevy> dunno
<shevy> it is eval so I dont use it
<shevy> :)
ehellman has joined #ruby
<shevy> 5.number
<shevy> NoMethodError: undefined method `number' for 5:Fixnum
katherinem13 has quit [Read error: Operation timed out]
<shevy> Fixnum.class_eval { def number; self; end }
<shevy> 5.number # => 5
<shevy> there you go Vivekananda
katherinem13 has joined #ruby
smt has quit [Read error: Connection reset by peer]
mantovani has joined #ruby
smt has joined #ruby
thams has joined #ruby
arya has joined #ruby
tommyvyo has joined #ruby
noop has joined #ruby
<TTilus> rakl: not directly, but you can of course reduce element-index pairs
<rakl> ah I wanted each_with_index and reduce to have a baby
cantonic has joined #ruby
mando has quit [Remote host closed the connection]
<TTilus> rakl: arr.each_with_index.reduce { |reduct, (ele ment, index)| ... }
<TTilus> rakl: if i remember it correctly
grenierm_ has joined #ruby
<TTilus> rakl: order of args might be different
<TTilus> rakl: and s/ele ment/element/
<rakl> not sure how that is working.. how are you chaining reduce onto a method that takes a block?
Animawish has joined #ruby
<TTilus> Vivekananda: is it a ruby intro what you are taking or something else?
<Vivekananda> well it is supposed to be
<Vivekananda> :)
<Vivekananda> ruby on rails
<Vivekananda> in cloud computing
<Vivekananda> SAAS actually
<TTilus> Vivekananda: O.o and class_eval
kushalkhandelwal has quit [Remote host closed the connection]
tjbiddle_ has joined #ruby
<TTilus> Vivekananda: srsly?!
hamakn has joined #ruby
kushalkhandelwal has joined #ruby
<Vivekananda> TTilus, I wont understand the irony coz not too familiar with ruby. Care to elaborate
KazW has joined #ruby
<TTilus> Vivekananda: thats distorted beyond any words
grenierm has quit [Ping timeout: 256 seconds]
grenierm_ is now known as grenierm
<TTilus> Vivekananda: ive done my fair share of about dozen of langs
<Vivekananda> :(
<Vivekananda> not understanding still :(
<TTilus> Vivekananda: and i can assure you that you wont need it
<Vivekananda> it might be very true
freakazoid0223 has quit [Ping timeout: 256 seconds]
<TTilus> Vivekananda: its heavy duty metaprogramming tool which is nothing mut useless and dangerous before you know your way around ruby and many other things blindfolded
tjbiddle has quit [Ping timeout: 258 seconds]
tjbiddle_ is now known as tjbiddle
mercwithamouth has quit [Ping timeout: 264 seconds]
<TTilus> Vivekananda: introducing newcomers to it is just so wrong
<Vivekananda> TTilus, pm
<TTilus> words escape me
<Vivekananda> sorry I did not ask first
mercwithamouth has joined #ruby
speaking1ode has joined #ruby
<speaking1ode> whati s the project to build a ruby interpreter in javascript?
<speaking1ode> sapphire or something
bricker`LA has joined #ruby
tommyvyo has quit [Quit:]
etcetera has quit []
brhelwig has joined #ruby
divout has joined #ruby
zeade has quit [Quit: Leaving.]
<Quadlex> speaking1ode: Decaf? Ruby in Webkit?
brhelwig has quit [Read error: Connection reset by peer]
brhelwig has joined #ruby
<speaking1ode> something named after another mineral/gem i believe
<speaking1ode> javascript implementation of the ruby interpreter
<speaking1ode> came up in here a couple of days ago along with emscripten and a discussion about 'langauge porting'
angusiguess has quit [Ping timeout: 264 seconds]
supergiantrobot_ has quit [Read error: Operation timed out]
supergiantrobot_ has joined #ruby
zastern has quit [Read error: Connection reset by peer]
Nisstyre-laptop has quit [Quit: Leaving]
zastern has joined #ruby
freerobby has joined #ruby
tommyvyo has joined #ruby
huoxito has quit [Ping timeout: 258 seconds]
Domon has joined #ruby
yeban has quit [Ping timeout: 240 seconds]
etcetera has joined #ruby
chandankumar has joined #ruby
timmow has joined #ruby
freerobby has quit [Ping timeout: 258 seconds]
banjara has joined #ruby
havenwood has joined #ruby
djbutterchicken has joined #ruby
havenwood has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
kaichanvong has quit [Ping timeout: 260 seconds]
apeiros has joined #ruby
timmow has quit [Ping timeout: 252 seconds]
thone has quit [Read error: Operation timed out]
etcetera has quit [Ping timeout: 264 seconds]
zastern has quit [Remote host closed the connection]
tommyvyo has quit [Quit:]
feedbackloop has quit [Quit: Leaving]
Nahra has quit [Ping timeout: 260 seconds]
pcarrier has quit [Quit: Computer has gone to sleep.]
Hanmac1 has joined #ruby
yacks has quit [Ping timeout: 245 seconds]
knapper_tech has quit [Ping timeout: 258 seconds]
hamakn has quit [Remote host closed the connection]
brhelwig has quit [Remote host closed the connection]
kofno has joined #ruby
hamakn has joined #ruby
codecop has joined #ruby
etcetera has joined #ruby
chandankumar has quit [Quit: Leaving]
thone has joined #ruby
yashshah- has joined #ruby
zastern has joined #ruby
kofno has quit [Ping timeout: 258 seconds]
zastern has quit [Remote host closed the connection]
kenneth has joined #ruby
ntzrmtthihu777 has quit [Quit: leaving]
andikr has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
angusiguess has joined #ruby
uris has quit [Quit: Leaving]
krz has joined #ruby
luckyruby has joined #ruby
yacks has joined #ruby
artofraw has joined #ruby
mockra has joined #ruby
etcetera has quit []
adzuci has quit [Ping timeout: 255 seconds]
chandankumar has joined #ruby
hamakn has quit [Remote host closed the connection]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
mockra has quit [Remote host closed the connection]
jdunck has quit [Quit: Computer has gone to sleep.]
Opettaja has joined #ruby
thone_ has joined #ruby
aganov has joined #ruby
braoru has joined #ruby
apeiros has quit [Remote host closed the connection]
kenneth has quit [Quit: kenneth]
angusiguess has quit [Ping timeout: 264 seconds]
nomenkun has joined #ruby
thone has quit [Ping timeout: 276 seconds]
Chinorro has joined #ruby
fir_ed has joined #ruby
freeayu__ has joined #ruby
freeayu has quit [Ping timeout: 256 seconds]
thone has joined #ruby
celinedior has quit [Quit: celinedior]
artofraw has quit [Remote host closed the connection]
thone_ has quit [Ping timeout: 260 seconds]
ph^ has joined #ruby
tealmage has joined #ruby
apeiros has joined #ruby
ananthakumaran has joined #ruby
momomomomo has joined #ruby
tealmage has quit [Ping timeout: 258 seconds]
thone has quit [Ping timeout: 264 seconds]
thone has joined #ruby
apeiros has quit [Remote host closed the connection]
randomautomator has quit [Read error: Connection reset by peer]
dhruvasagar has quit [Ping timeout: 276 seconds]
noop_ has joined #ruby
agarie has quit [Read error: Connection reset by peer]
agarie has joined #ruby
jdunck has joined #ruby
hamakn has joined #ruby
workmad3 has joined #ruby
freeayu3 has joined #ruby
jonahR has joined #ruby
noop has quit [Ping timeout: 255 seconds]
robscomputer_ has joined #ruby
paper has quit [Remote host closed the connection]
freeayu__ has quit [Ping timeout: 264 seconds]
jonahR has quit [Client Quit]
thone has quit [Ping timeout: 246 seconds]
thone has joined #ruby
freerobby has joined #ruby
robscomputer_ has quit [Remote host closed the connection]
momomomomo has quit [Ping timeout: 252 seconds]
robscomputer_ has joined #ruby
Astralum has joined #ruby
arya_ has joined #ruby
paper has joined #ruby
timmow has joined #ruby
Chinorro has quit [Ping timeout: 276 seconds]
bigkevmcd has joined #ruby
freerobby has quit [Ping timeout: 258 seconds]
arya has quit [Ping timeout: 260 seconds]
Chinorro has joined #ruby
Nahra` has quit [Ping timeout: 240 seconds]
Opettaja has quit [Quit: WeeChat 0.3.8]
Kruppe has quit [Remote host closed the connection]
timmow has quit [Ping timeout: 252 seconds]
pcarrier has joined #ruby
chandankumar has quit [Quit: Leaving]
momomomomo has joined #ruby
a_a_g has joined #ruby
Opettaja has joined #ruby
tagrudev has joined #ruby
momomomomo has quit [Client Quit]
kofno has joined #ruby
thone has quit [Ping timeout: 260 seconds]
ehellman has quit []
bricker`LA has quit [Read error: Connection reset by peer]
Vainoharhainen has joined #ruby
drumond19 has joined #ruby
bricker`LA has joined #ruby
jonahR has joined #ruby
drumond19 is now known as eee19
a_a_g has quit [Quit: Leaving]
kofno has quit [Ping timeout: 276 seconds]
rippa has joined #ruby
Vivekananda has quit [Quit: Leaving]
hamed_r has joined #ruby
angusiguess has joined #ruby
heliumsocket has quit [Quit: heliumsocket]
mercwithamouth has quit [Ping timeout: 256 seconds]
thone has joined #ruby
chandankumar has joined #ruby
<Mon_Ouie> speaking1ode: Opal
pcarrier has quit [Read error: Connection reset by peer]
choobie has joined #ruby
<speaking1ode> Mon_Ouie: thanks
Morkel has joined #ruby
angusiguess has quit [Ping timeout: 246 seconds]
Morkel has quit [Client Quit]
GoGoGarrett has quit [Remote host closed the connection]
Morkel has joined #ruby
<speaking1ode> Mon_Ouie: that looks like it compiles ruby t javascript tho
Morkel_ has joined #ruby
rickruby has joined #ruby
thams has quit [Quit: thams]
Morkel has quit [Ping timeout: 256 seconds]
Morkel_ is now known as Morkel
rburton- has joined #ruby
monkegjinni has joined #ruby
bonty_ssh has joined #ruby
dayepa__ has joined #ruby
clocKwize has joined #ruby
Hanmac has quit [Quit: Leaving.]
bradhe has quit [Remote host closed the connection]
dayepa_ has quit [Ping timeout: 245 seconds]
bonty_ssh has quit [Ping timeout: 258 seconds]
keymone has joined #ruby
workmad3 has quit [Ping timeout: 276 seconds]
tealmage has joined #ruby
paper has quit [Remote host closed the connection]
monkegjinni has quit [Read error: Connection reset by peer]
nomenkun has quit [Remote host closed the connection]
monkegjinni has joined #ruby
lukeholder has joined #ruby
tealmage has quit [Ping timeout: 264 seconds]
pduin has joined #ruby
codecop has quit [Remote host closed the connection]
filipe has joined #ruby
dhruvasagar has joined #ruby
puppeh has joined #ruby
monkegji_ has joined #ruby
monkegji_ has quit [Remote host closed the connection]
monkegjinni has quit [Read error: No route to host]
monkegjinni has joined #ruby
wesside has quit [Quit: Computer has gone to sleep.]
Hanmac has joined #ruby
lukeholder has quit [Quit: Computer has gone to sleep.]
rawler has quit [Ping timeout: 240 seconds]
kushalkhandelwal has quit [Remote host closed the connection]
rawler has joined #ruby
amaya_the has joined #ruby
kushalkhandelwal has joined #ruby
celinedior has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
hamakn_ has joined #ruby
d34th4ck3r has joined #ruby
freerobby has joined #ruby
randomautomator has joined #ruby
yeban has joined #ruby
d34th4ck3r has quit [Ping timeout: 248 seconds]
kushalkhandelwal has quit [Remote host closed the connection]
rakl has quit [Quit: sleeping]
kushalkhandelwal has joined #ruby
timmow has joined #ruby
freerobby has quit [Ping timeout: 258 seconds]
Guest__ has joined #ruby
arturaz has joined #ruby
amaya_the has quit [Quit: ChatZilla 0.9.89 [Firefox 19.0.2/20130307023931]]
randomautomator has quit [Ping timeout: 264 seconds]
Ontolog has joined #ruby
Edward_ has joined #ruby
kaichanvong has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
ehellman has joined #ruby
rickruby has quit [Remote host closed the connection]
timmow has quit [Ping timeout: 252 seconds]
fir_ed has quit [Ping timeout: 256 seconds]
akam-it has joined #ruby
cads has joined #ruby
droppedonmyhead has quit [Quit: droppedonmyhead]
vlad_starkov has joined #ruby
kushalkhandelwal has quit [Remote host closed the connection]
jdunck has quit [Quit: Computer has gone to sleep.]
filipe has quit [Ping timeout: 248 seconds]
kushalkhandelwal has joined #ruby
bradhe has joined #ruby
arya_ has quit [Ping timeout: 256 seconds]
thone has quit [Ping timeout: 246 seconds]
arya has joined #ruby
thone has joined #ruby
browndawg has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
mafolz has joined #ruby
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
headius has quit [Quit: headius]
wesside has joined #ruby
hemanth has joined #ruby
Guest__ is now known as shellox
kofno has joined #ruby
vlad_starkov has quit [Ping timeout: 252 seconds]
tjbiddle has quit [Quit: tjbiddle]
fivetwentysix_ has joined #ruby
fivetwentysix has quit [Ping timeout: 264 seconds]
fivetwentysix_ is now known as fivetwentysix
kofno has quit [Ping timeout: 258 seconds]
bradhe has quit [Ping timeout: 256 seconds]
kushalkhandelwal has quit [Remote host closed the connection]
d34th4ck3r has joined #ruby
d34th4ck3r has quit [Client Quit]
ant384 has joined #ruby
kushalkhandelwal has joined #ruby
Opettaja has quit [Quit: WeeChat 0.3.8]
filipe has joined #ruby
ephemerian has joined #ruby
hamakn_ has quit [Remote host closed the connection]
mfridh has joined #ruby
backjlack has joined #ruby
danneu has quit [Ping timeout: 252 seconds]
paper has joined #ruby
hamakn has joined #ruby
emocakes has joined #ruby
kornnflake_ has quit [Read error: Connection refused]
mahmoudimus has joined #ruby
malou_ has quit [Ping timeout: 256 seconds]
basex has quit [Quit: basex]
andy_fc has joined #ruby
Macaveli has joined #ruby
kushalkhandelwal has quit [Remote host closed the connection]
kornnflake has joined #ruby
s2013 has quit []
kushalkhandelwal has joined #ruby
timonv has joined #ruby
timonv has quit [Read error: Connection reset by peer]
puppeh has quit [Ping timeout: 264 seconds]
timonv has joined #ruby
timonv has quit [Read error: Connection reset by peer]
timonv has joined #ruby
unflores has joined #ruby
puppeh has joined #ruby
browndawg has left #ruby [#ruby]
<marwinism> sinatra let's me do get '/foo' do .. and url.com/foo does that. Anyone know about a similar solution in that god damn language PHP? Or what is it called so I can google it?
kushalkhandelwal has quit [Remote host closed the connection]
kushalkhandelwal has joined #ruby
h8R has joined #ruby
callmeivan has quit [Ping timeout: 252 seconds]
kushalkhandelwal has quit [Remote host closed the connection]
kushalkhandelwal has joined #ruby
yacks has quit [Ping timeout: 240 seconds]
<Hanmac> marwinism: i think you are asking in the wrong channel, this is for ruby, not for php
justsee has joined #ruby
justsee has joined #ruby
tealmage has joined #ruby
Ontolog has quit [Remote host closed the connection]
<marwinism> Hanmac: I know! But coders are coders. I don't know any coders that only speak one language. We are all nerds and have infinite knowledge! ^^
GhostingCoder011 has joined #ruby
ph^ has quit [Remote host closed the connection]
Al__ has joined #ruby
kushalkhandelwal has quit [Remote host closed the connection]
mneorr has joined #ruby
<Hanmac> i know many programming languages, but i also dont know how to do that in php ... marwinism you may look for REST Server, it may what you want
kushalkhandelwal has joined #ruby
jhn has quit [Ping timeout: 252 seconds]
<marwinism> Hanmac: It was worth a shot :) I'll pop into another more accurate channel, I'll have a look at REST Server, thanks.
callmeivan has joined #ruby
<Boohbah> >> p -17.77777777777777*9/5+32
<eval-in> Boohbah => 1.0658141036401503e-14 ... (http://eval.in/16101)
<Boohbah> >> p -17.777777777777777*9/5+32
<eval-in> Boohbah => 0.0 ... (http://eval.in/16102)
<Boohbah> heh
tealmage has quit [Ping timeout: 248 seconds]
timonv has quit [Read error: Connection reset by peer]
kushalkhandelwal has quit [Remote host closed the connection]
hmarr has joined #ruby
kushalkhandelwal has joined #ruby
brianpWins has quit [Quit: brianpWins]
platzhirsch has joined #ruby
<platzhirsch> I have here a syntax I don't get: method1 :"@#{name}", value
<tobiasvl> :"@#{name}" is a symbol (starts with :)
<tobiasvl> constisting of @ and the contents of the variable name
<platzhirsch> tobiasvl: ah I thought about that too, so the string is converted, like a call to_sym
statarb3 has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
tvw has joined #ruby
<Hanmac> platzhirsch: BUT the : before is not needed ... the methods you are using instance_variable_get also works with strings
kushalkhandelwal has quit [Remote host closed the connection]
paper has quit [Remote host closed the connection]
kushalkhandelwal has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
entr0py_ has joined #ruby
bricker`LA has quit [Read error: No route to host]
platzhirsch has quit [Ping timeout: 252 seconds]
freerobby has joined #ruby
maxmanders has joined #ruby
pi3r has joined #ruby
predator217 has quit [Ping timeout: 260 seconds]
oneirophren has joined #ruby
predator117 has joined #ruby
swex has joined #ruby
emocakes_ has joined #ruby
lmf40 has joined #ruby
swex_ has quit [Ping timeout: 256 seconds]
GhostingCoder011 has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
fivetwentysix has quit [Quit: fivetwentysix]
alup has joined #ruby
<kseifried> wow
freerobby has quit [Ping timeout: 252 seconds]
<kseifried> deviled eggs
timmow has joined #ruby
<kseifried> thats the shit
Zai00 has joined #ruby
kushalkhandelwal has quit [Remote host closed the connection]
<kseifried> like egg salad sandwich but without the bullshit bread.lettuce
platzhirsch has joined #ruby
emocakes has quit [Ping timeout: 252 seconds]
kushalkhandelwal has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
<platzhirsch> I have a class attribute with name type and a method type, both return different values. How can I access both of them from the outside? obj.type and obj.type() both only returns the content of the method
<platzhirsch> I have set a attr_reader for :type
predator117 has quit [Ping timeout: 258 seconds]
predator117 has joined #ruby
arya has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby
Bry8Star has quit [Ping timeout: 276 seconds]
timmow has quit [Ping timeout: 252 seconds]
yacks has joined #ruby
chandankumar has quit [Quit: Leaving]
kushalkhandelwal has quit [Remote host closed the connection]
Macaveli has quit [Ping timeout: 245 seconds]
<shevy> platzhirsch what do you mean "return the content of the method", how does that work?
kushalkhandelwal has joined #ruby
<shevy> and what is a "class attribute"
<platzhirsch> shevy: sorry, I really just meant the return value
<shevy> ok
<shevy> so your method returns something
<platzhirsch> with class attribute I mean attribute of the respective class instance
<shevy> you mean an @instance variable?
<platzhirsch> shevy: yes
<shevy> obj.type and obj.type() is the same by the way
<shevy> for a class method, you would use something like: class Foo; def self.test; puts 'hello world'; end; end; Foo.test # => "hello world"
<shevy> using an @instance variable on an instance is simple, for a class it is a bit more annoying
arya has joined #ruby
kushalkhandelwal has quit [Remote host closed the connection]
<shevy> especially on a module
<shevy> module Foo; @test = 'foo'; end
elaptics`away is now known as elaptics
<shevy> Foo.instance_variables # => ["@test"]
browndawg has joined #ruby
kushalkhandelwal has joined #ruby
<platzhirsch> I have defined my attributes with attr_reader and and the method simply with def type .. "dataset" .. end
kofno has joined #ruby
chussenot has joined #ruby
duosrx has joined #ruby
paper has joined #ruby
bradhe has joined #ruby
<shevy> platzhirsch why?
Bry8Star has joined #ruby
<shevy> attr_reader :foo is the same as doing def foo; @foo; end
<platzhirsch> shevy: because I am working with tire.rb to work with elasticsearch
<platzhirsch> and they require to set a type variable
browndawg has quit [Client Quit]
<shevy> I don't mean why you set a type variable
<platzhirsch> but my domain model has a type as well, so I ran into name clash
<shevy> I mean why you use def type and attr_reader both
<shevy> platzhirsch I think it would be easier if you could show code that exhibits a specific problem :)
<shevy> right now I dont even know what problem you mean when you write "name clash"
<platzhirsch> shevy: you are right ;)
<shevy> because in ruby, name clashes normally dont happen
<shevy> module Foo; end; module Foo; end <-- will just overwrite or extend the already existing module Foo
kushalkhandelwal has quit [Remote host closed the connection]
rickruby has joined #ruby
kushalkhandelwal has joined #ruby
<shevy> ok so you pash a hash as argument to Dataset.new
<shevy> oops
<shevy> you pass a hash as argument to Dataset.new
kofno has quit [Ping timeout: 245 seconds]
<shevy> that part works?
<shevy> you can always use require 'pp'; pp self, after the @attributes part
browndawg has joined #ruby
bradhe has quit [Ping timeout: 255 seconds]
<platzhirsch> shevy: yes that works just fine, it is the code example given by the tire library
niceguyjames has joined #ruby
<platzhirsch> interestingly, the output of to_indexed_json shows me the type value as set by my hash
pyrac has joined #ruby
kushalkhandelwal has quit [Remote host closed the connection]
wesside has quit [Quit: Computer has gone to sleep.]
kushalkhandelwal has joined #ruby
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
rickruby has quit [Ping timeout: 260 seconds]
average is now known as below_average
chandankumar has joined #ruby
below_average is now known as average
tevio has joined #ruby
timmow has joined #ruby
chandankumar has left #ruby [#ruby]
rdark has joined #ruby
tevio has quit [Remote host closed the connection]
zomgbie has joined #ruby
chandankumar has joined #ruby
timmow has quit [Remote host closed the connection]
GhostingCoder011 has joined #ruby
timmow has joined #ruby
Macaveli has joined #ruby
kushalkhandelwal has quit [Remote host closed the connection]
kushalkhandelwal has joined #ruby
jacobw has joined #ruby
timonv has joined #ruby
slainer68 has joined #ruby
kushalkhandelwal has quit [Remote host closed the connection]
thernull has joined #ruby
kushalkhandelwal has joined #ruby
fivetwentysix has joined #ruby
hekin has joined #ruby
statarb3 has quit [Read error: Connection reset by peer]
soulofpeace has quit [Ping timeout: 258 seconds]
statarb3 has joined #ruby
vlad_starkov has joined #ruby
rezzack has quit [Quit: Leaving.]
blacktulip has joined #ruby
Opettaja has joined #ruby
hamakn has quit [Remote host closed the connection]
soulofpeace has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
hamakn has joined #ruby
wallclockbuilder has joined #ruby
sambio has quit []
polymar has joined #ruby
polymar has quit [Remote host closed the connection]
polymar has joined #ruby
niceguyjames has quit [Quit: Computer has gone to sleep.]
nomenkun has joined #ruby
nomenkun_ has joined #ruby
average has quit [Quit: leaving]
niceguyjames has joined #ruby
Skofo has joined #ruby
Skofo has quit [Read error: Connection reset by peer]
fivetwentysix has quit [Quit: fivetwentysix]
Opettaja has quit [Quit: WeeChat 0.3.8]
thecreators has joined #ruby
nomenkun has quit [Ping timeout: 256 seconds]
kushalkhandelwal has quit [Remote host closed the connection]
hmarr has quit []
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_sta_ has joined #ruby
piotr_ has joined #ruby
kushalkhandelwal has joined #ruby
fivetwentysix has joined #ruby
security is now known as megha
MrZYX|off is now known as MrZYX
akam-it has quit [Ping timeout: 258 seconds]
mneorr has quit [Remote host closed the connection]
fivetwentysix_ has joined #ruby
paper has quit [Remote host closed the connection]
fivetwentysix has quit [Ping timeout: 260 seconds]
fivetwentysix_ is now known as fivetwentysix
paper has joined #ruby
arya_ has joined #ruby
kushalkhandelwal has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
kushalkhandelwal has joined #ruby
arya has quit [Ping timeout: 260 seconds]
callmeivan_ has joined #ruby
tootooroo has quit [Quit: Brain.sys has encountered a problem and needs to close. We are sorry for the inconvenience.]
arya has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
callmeivan has quit [Ping timeout: 245 seconds]
callmeivan_ is now known as callmeivan
jean-louis has joined #ruby
tootooroo has joined #ruby
m8 has joined #ruby
hmarr has joined #ruby
senayar has joined #ruby
hekin has quit [Quit: hekin]
kushalkhandelwal has quit [Remote host closed the connection]
kushalkhandelwal has joined #ruby
marcdel has quit []
nopolitica has quit [Quit: leaving]
mneorr has joined #ruby
freerobby has joined #ruby
eka has joined #ruby
zigomir has joined #ruby
<bnagy> did I miss the daily "Vivekanada is too lazy to do his own homework" ?
duosrx has quit [Ping timeout: 258 seconds]
hendriklouw has joined #ruby
rellin has quit [Ping timeout: 248 seconds]
security has joined #ruby
jlebrech has joined #ruby
megha has quit [Ping timeout: 260 seconds]
security is now known as megha
akam-it has joined #ruby
enriclluelles has joined #ruby
jean-lou` has joined #ruby
freerobby has quit [Ping timeout: 258 seconds]
slainer68 has quit [Read error: Connection reset by peer]
slainer68 has joined #ruby
kushalkhandelwal has quit [Remote host closed the connection]
hmarr has quit []
kushalkhandelwal has joined #ruby
<bnagy> (reads scrollback) ...seems so. Flawless victory.
GhostingCoder011 has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
jean-louis has quit [Ping timeout: 246 seconds]
pskosinski has joined #ruby
akam-it has quit [Ping timeout: 258 seconds]
<Hanmac> bnagy do you want to read my test cases? there is also not meta inside ;P
<bnagy> you're writing test cases now?
<bnagy> what the hell is going on with the world? :'(
duosrx has joined #ruby
rburton- has quit [Quit: Linkinus - http://linkinus.com]
emergion has joined #ruby
RagingDave has joined #ruby
kushalkhandelwal has quit [Remote host closed the connection]
yashshah__ has joined #ruby
kushalkhandelwal has joined #ruby
<JonnieCache> all sorts of hate for class_eval going on this morning
kofno has joined #ruby
BizarreCake has joined #ruby
<JonnieCache> personally i love it
<Hanmac> bnagy yeah, but no documentions ;P ... look at this: https://github.com/OpenRubyRMK/game-engine/blob/master/data/scripts/2.0/tests/test_states.rb
bradhe has joined #ruby
emergion has quit [Client Quit]
robscomp_ has joined #ruby
yashshah- has quit [Ping timeout: 252 seconds]
robustus has quit [Ping timeout: 255 seconds]
<bnagy> Hanmac: your coding style burns my eyes :)
<bnagy> you DO include the useless parens, but you DON'T add the spaces that would make it readable :)
yashshah__ has quit [Read error: Connection reset by peer]
robustus has joined #ruby
<Hanmac> yeah like this is totaly valid ruby code ;P "a" . gsub "b" , "c"
bradhe has quit [Ping timeout: 240 seconds]
kofno has quit [Ping timeout: 258 seconds]
yashshah__ has joined #ruby
robscomputer_ has quit [Ping timeout: 264 seconds]
adambeynon has joined #ruby
chussenot has quit [Ping timeout: 251 seconds]
grenzr has joined #ruby
arya has quit [Ping timeout: 264 seconds]
<grenzr> Hey all - in ruby 1.9.3, is there a way of reading a class variable on an instantiated class rather than on the uninstantiated one as per class_variable_get ?
chussenot has joined #ruby
monkegjinni has quit [Remote host closed the connection]
<bnagy> reference the object's class and go from there?
kushalkhandelwal has quit [Remote host closed the connection]
andy_fc has quit [Quit: andy_fc]
<grenzr> i guess its ok to do that since the variable IS a class variable and hence all instances of it would have the same definition anyway eh
<tobiasvl> Hanmac: your code looks like python :P
<shevy> tobiasvl HAHAHAH :)
<shevy> Hanmac DO NOT ACCEPT THIS INSULT
kushalkhandelwal has joined #ruby
tevio has joined #ruby
<tobiasvl> :)
Chinorro has quit [Remote host closed the connection]
maxmanders has joined #ruby
gener1c has joined #ruby
apeiros has joined #ruby
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
MrZYX is now known as MrZYX|off
Chinorro has joined #ruby
soulofpeace has quit [Ping timeout: 256 seconds]
pagios has joined #ruby
paper has quit [Remote host closed the connection]
Shaobing has joined #ruby
soulofpeace has joined #ruby
maxmanders has quit [Ping timeout: 246 seconds]
emocakes_ has quit [Quit: emocakes_]
MrZYX|off is now known as MrZYX
postmodern has quit [Quit: Leaving]
sepp2k has joined #ruby
hamed_r has quit [Quit: Leaving]
jean-lou` has quit [Ping timeout: 264 seconds]
arya has joined #ruby
troessner has joined #ruby
maxmanders has joined #ruby
<mpajor_op5> Is there a gem for ruby that allows me to calculate the avg. ping time between two ip-addresses? eg. "ping is 10.2ms from IP A to IP B", geocoder perhaps?
maxmanders has quit [Max SendQ exceeded]
akam-it has joined #ruby
maxmanders has joined #ruby
Shaobing has left #ruby [#ruby]
emocakes has joined #ruby
arya has quit [Ping timeout: 260 seconds]
freeayu3 has quit [Ping timeout: 246 seconds]
kushalkhandelwal has quit [Remote host closed the connection]
kushalkhandelwal has joined #ruby
<JonnieCache> i would just popen the OS' ping tool and parse the output
pmros has joined #ruby
<JonnieCache> thats what its there for
<pmros> hi
<pmros> what canvas for ruby do you suggest me?
<pmros> I need nodes, drag and drop, point, edges... you know
<pmros> maybe qt?
<pmros> any better alternative?
jprovazn has joined #ruby
<pmros> thanks in advance
emocakes has quit [Quit: emocakes]
tealmage has joined #ruby
lktp has quit [Quit: This computer has gone to sleep]
freeayu3 has joined #ruby
sayan has joined #ruby
jokke_ has joined #ruby
<jokke_> hey
<jokke_> i'm trying to read and write to a file, but for some reason the file get's emptied even if i don't write to it
<jokke_> i open it with File.open(filename, "w+") do |file|
kushalkhandelwal has quit [Remote host closed the connection]
<jokke_> then i read lines from it with file.each_line do |line|
<jokke_> but i don't write to it
<jokke_> still it wipes the file..
<MrZYX> open with r if you don't write to it?
kushalkhandelwal has joined #ruby
<jokke_> i want to write to it eventually
hmarr has joined #ruby
<jokke_> but first i need to know why it gets wiped
tealmage has quit [Ping timeout: 256 seconds]
<pagios> append
<jokke_> pagios: no, i want to add something to the middle of the file
<jokke_> here's what i'm trying to do: https://gist.
<jokke_> oh
Al__ has quit [Read error: Operation timed out]
Domon has quit [Remote host closed the connection]
shyrka has joined #ruby
<jokke_> you get the gist? :)
<MrZYX> well, w+ is documented to behave that way http://ruby-doc.org/core-2.0/IO.html#method-c-new
<MrZYX> you probably need to open with append and seek to the start
<jokke_> hm
<jokke_> ok
<jokke_> i'll give it a try
maxmanders has quit [Ping timeout: 255 seconds]
Al__ has joined #ruby
<shyrka> I'm trying to build a gem called rubywmq but it cannot find includes in /opt/mqm/inc and /opt/mqm/lib64. I am using the RVM environment a and can manually build the gem from git sources with --include arguments. My question is....how on earth do I manually install the subsequent build of the gem into my RVM environment?
<pmros> bye
pmros has quit [Quit: Konversation terminated!]
<MrZYX> jokke_: actually you can open it with File.open("foo", File::RDWR)
camilasan has joined #ruby
Animawish has quit [Read error: Connection reset by peer]
ExxKA has joined #ruby
ctr546454 has joined #ruby
Domon has joined #ruby
dhruvasagar has quit [Ping timeout: 245 seconds]
<jokke_> MrZYX: thank you very much. Works beautifully!
paper has joined #ruby
casheew has quit [Read error: Connection reset by peer]
moshef has joined #ruby
dhruvasagar has joined #ruby
predator117 has quit [Ping timeout: 264 seconds]
moshef has quit [Client Quit]
predator117 has joined #ruby
casheew has joined #ruby
pskosinski has quit [Quit: pskosinski]
pskosinski has joined #ruby
freerobby has joined #ruby
wallcloc_ has joined #ruby
kushalkhandelwal has quit [Remote host closed the connection]
shyrka has left #ruby [#ruby]
kushalkhandelwal has joined #ruby
<csmrfx> left, nm
e-dard has left #ruby [#ruby]
<csmrfx> well, if no more patience than 5 minutes, it's probably not important
wallclockbuilder has quit [Ping timeout: 258 seconds]
freerobby has quit [Ping timeout: 258 seconds]
thebastl has joined #ruby
fivetwentysix has quit [Ping timeout: 255 seconds]
staafl has joined #ruby
yacks has quit [Ping timeout: 264 seconds]
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
BSaboia has joined #ruby
btaitelb has quit [Quit: btaitelb]
butblack has joined #ruby
arya has joined #ruby
kushalkhandelwal has quit [Read error: Connection reset by peer]
kushalkhandelwal has joined #ruby
rickmasta has joined #ruby
peta_ has joined #ruby
maxmanders has joined #ruby
haxrbyte has quit [Read error: Connection reset by peer]
kofno has joined #ruby
fr0wrd9 has joined #ruby
bradhe has joined #ruby
platzhirsch has quit [Read error: Connection reset by peer]
platzhirsch1 has joined #ruby
sayan has quit [Ping timeout: 258 seconds]
kofno has quit [Ping timeout: 258 seconds]
haxrbyte has joined #ruby
Guedes0 is now known as Guedes
Guedes has quit [Changing host]
Guedes has joined #ruby
bradhe has quit [Ping timeout: 246 seconds]
rickmasta has quit [Quit: Leaving...]
butblack has quit [Quit: butblack]
akam-it has quit [Remote host closed the connection]
chandankumar has quit [Read error: Connection reset by peer]
teolicy has joined #ruby
binaryplease has joined #ruby
akam-it has joined #ruby
<teolicy> Hi. Coming from Python, I'm looking for a virtualenv/pip equivalent that doesn't require being permanently loaded in my shell.
perlea has joined #ruby
<teolicy> I like the idea of sourcing a special 'activate' file and deactivating/terminating the shell at will.
<teolicy> I saw sandbox, but it hasn't been maintained in a long time.
<teolicy> How should I try out a few gems in a manner I can easily reverse?
<tobiasvl> what is virtualenv/pip? hard to find an equivalent to a python tool for non-python people
<teolicy> (my OSX based ruby installation is a mess of sudo gem installs I've accumulated over the years… sorry)
kushalkhandelwal has quit [Remote host closed the connection]
butblack has joined #ruby
<tobiasvl> teolicy: oh okay i see what you might mean
<tobiasvl> would https://rvm.io fit the bill?
kushalkhandelwal has joined #ruby
<teolicy> virtualenv creates an independent interpreter environment in a directory. You can 'activate' this interpreter by sourcing a special file (that largely puts this directory's bin first in your PATH), and use pip (a package installer) to install stuff into this interpreter.
<teolicy> Deleting the directory makes it all go away.
PhilK has quit [Ping timeout: 264 seconds]
LnL has quit [Quit: LnL]
<teolicy> tobiasvl: Well, the one line installation script from rvm.io just gave me a usage message :( ($ \curl -L https://get.rvm.io | bash -s stable --rails --autolibs=enabled)
<tobiasvl> usage of what?
<teolicy> rvm-installer.
PhilK has joined #ruby
<tobiasvl> seems to be a good page for you
<teolicy> Yes, well, I don't like virtualenvwrapper, I want just virtualenv.
<teolicy> If something like that exists in ruby.
ehellman has quit []
butblack has quit [Ping timeout: 246 seconds]
arya has quit [Ping timeout: 248 seconds]
andy_fc has joined #ruby
bluOxigen has joined #ruby
<tobiasvl> i don't know what the difference is. i don't really know anything about python. but from the usage printout it just seems like -s is deprecated? try following the usage instructions maybe
<teolicy> I've no idea why anyone would want virtualenvwrapper to put all their environments in one place. I LIKE my environments being in the same directory as the project itself (in a revision-control ignored hidden directory).
<pagios> ok i would like to start with ruby web programming (graphical interface) where should i start
kushalkhandelwal has quit [Remote host closed the connection]
<Rumsteak> What is the cleaner way for a simple multi-line string in Ruby ? No need for interpolation, no need for special chars, just need multi line to make the string more readable.
<teolicy> tobiasvl: Thanks, I'll hack around to figure something out.
pyrac has quit [Quit: pyrac]
jpcamara has joined #ruby
kushalkhandelwal has joined #ruby
<ccooke> Rumsteak: here document ?
<tobiasvl> Rumsteak: heredocs are probably the easiest. <<-EOS string bla bla bla bla EOS
<apeiros> Rumsteak: the string literals are: "foo", 'foo', %{foo}, %q{foo}, %Q{foo} and here-docs
haxrbyte_ has joined #ruby
fivetwentysix has joined #ruby
fivetwentysix has quit [Client Quit]
maxmanders has quit [Ping timeout: 258 seconds]
<apeiros> all of them will keep a literal newline, though. so if you don't want newlines, you can use 2 other tricks combined: \ for continuation, and that two "foo" strings are concatenated:
<Rumsteak> ccooke: tobiasvl : maybe here docs are overkill because actually I want just 2 lines :)
camilasan has quit [Remote host closed the connection]
yacks has joined #ruby
<Rumsteak> apeiros: mmh ok
<ccooke> Rumsteak: So just use single quotes over two lines?
wallcloc_ has quit [Remote host closed the connection]
<apeiros> ah, also a sad thing: all of them will also retain indentation :(
maxmanders has joined #ruby
maxmanders has quit [Max SendQ exceeded]
haxrbyte has quit [Ping timeout: 258 seconds]
bluOxigen has quit [Ping timeout: 256 seconds]
<Rumsteak> mmh I wonder what is less dirtiest between \ and heredoc :p
<Rumsteak> maybe i'll go with \
maxmanders has joined #ruby
<apeiros> they differ in the result
<pagios> i need some guidance, i would like to develop a small ruby software that runs locally on my webserver, software will provide 1) authentication 2) fire up some commands on the shell and monitor their status can that be done easily on ruby or should i look somewhere else?
<apeiros> if you don't want a newline in your string, you can't use the heredoc
<Rumsteak> apeiros: I think I could do with a new line for my current case
bluOxigen has joined #ruby
fivetwentysix has joined #ruby
<Rumsteak> if I strictly follow github's ruby styleguide saying "Use %() for single-line strings which require both interpolation and embedded double-quotes. For multi-line strings, prefer heredocs." I should go with heredoc
<Rumsteak> ok I will try both and see what my eyes prefer
vlad_sta_ has quit [Remote host closed the connection]
staafl has quit [Ping timeout: 264 seconds]
teolicy has quit [Quit: teolicy]
<jokke_> didn't File.join '', 'foo', '' use to get me "/foo/"?
<jokke_> how can i append a trailing slash if needed?
shevy has quit [Ping timeout: 264 seconds]
LnL has joined #ruby
t_p has joined #ruby
akam-it has quit [Remote host closed the connection]
<tobiasvl> it does here
<jokke_> i need the trailing slash for rsync
<tobiasvl> >> File.join '', 'foo', ''
<eval-in> tobiasvl => "/foo/" (http://eval.in/16121)
<jokke_> ah
<jokke_> never mind
<jokke_> i did expand path
<jokke_> which removed it again
kushalkhandelwal has quit [Remote host closed the connection]
<tobiasvl> hehe
akam-it has joined #ruby
kushalkhandelwal has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
jlebrech has quit [Read error: Connection reset by peer]
tealmage has joined #ruby
akam-it has quit [Remote host closed the connection]
akam-it has joined #ruby
fivetwentysix has quit [Quit: fivetwentysix]
monkegjinni has joined #ruby
vlad_starkov has joined #ruby
Matip has quit [Quit: Leaving]
tealmage has quit [Ping timeout: 258 seconds]
davetherat has joined #ruby
kseifried has quit [Read error: Connection reset by peer]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
kseifried has joined #ruby
kseifried has quit [Changing host]
kseifried has joined #ruby
kushalkhandelwal has quit [Remote host closed the connection]
monkegjinni has quit [Remote host closed the connection]
kushalkhandelwal has joined #ruby
lukeholder has joined #ruby
shevy has joined #ruby
Domon has quit [Remote host closed the connection]
keymone has quit [Quit: keymone]
d34th4ck3r has joined #ruby
echevemaster is now known as echevemaster-afk
freerobby has joined #ruby
jpcamara has quit [Quit: Leaving.]
kushalkhandelwal has quit [Remote host closed the connection]
Drewch has quit [Ping timeout: 245 seconds]
kushalkhandelwal has joined #ruby
camilasan has joined #ruby
IrishGringo has quit [Remote host closed the connection]
<jokke_> how can i test a string if it contains just letters _including_ weird ones like öäüß etc?
<charliesome> jokke_: [[:alpha:]]
<jokke_> charliesome: that includes numbers
<charliesome> aw seriously
robbyoconnor has quit [Ping timeout: 248 seconds]
<tobiasvl> does it really? isn't that :alnum: ?
<tobiasvl> (alphanumeric)
<jokke_> oh
freerobby has quit [Ping timeout: 252 seconds]
hamakn has quit [Remote host closed the connection]
<jokke_> sorry. stupid me :)
fivetwentysix has joined #ruby
Mattix has joined #ruby
nkr has joined #ruby
<apeiros> ugh, my ri is broken
casheew has quit [Read error: Connection reset by peer]
<apeiros> * /ÄÄ:alnum:ÅÅ/ - Alphabetic and numeric character
casheew has joined #ruby
<apeiros> that looks wrong :)
<pagios> anyone ? ;/
<apeiros> and my pry is broken too?
casheew has quit [Read error: Connection reset by peer]
pyrac has joined #ruby
<apeiros> in ruby, \p{L} works fine, but in pry, it breaks…
<apeiros> ping Banistergalaxy
Al__ has quit [Read error: Connection reset by peer]
<apeiros> ^ /\p{L}/ breaks in my pry 0.9.12 with `SyntaxError: (eval):2: invalid character property name {L}: /\p{L}/`
casheew has joined #ruby
BSaboia has quit [Ping timeout: 256 seconds]
axxT has joined #ruby
maxmanders has joined #ruby
maxmanders has quit [Max SendQ exceeded]
vlad_starkov has quit [Remote host closed the connection]
casheew has quit [Read error: Connection reset by peer]
maloik has joined #ruby
<maloik> Anyone happen to know anything about generating a Certificate Signing Request via Ruby's OpenSSL module? Apparently the one I'm creating isn't valid but I'm having trouble figuring out why
maxmanders has joined #ruby
tommyvyo has joined #ruby
<JonnieCache> apeiros: he's going by his old nick paper now apparently
soulofpeace has quit [Ping timeout: 264 seconds]
<JonnieCache> or at least he was the other day
<csmrfx> paper_?
tealmage has joined #ruby
Spooner_ has joined #ruby
maxmanders has quit [Client Quit]
casheew has joined #ruby
shellox has quit [Quit: Computer has gone to sleep.]
ctr546454 has quit [Quit: Linkinus - http://linkinus.com]
kofno has joined #ruby
paper has quit [Ping timeout: 258 seconds]
rvchangue has quit [Read error: Operation timed out]
tealmage has quit [Ping timeout: 264 seconds]
<pagios> i need some guidance, i would like to develop a small ruby software that runs locally on my webserver, software will provide 1) authentication 2) fire up some commands on the shell and monitor their status can that be done easily on ruby or should i look somewhere else?
<JonnieCache> i think you could do that with ease in pretty much any language
<JonnieCache> but yeah it would be easy in ruby
schickung has joined #ruby
danneu has joined #ruby
grenzr has quit [Quit: grenzr]
DrShoggoth has quit [Ping timeout: 245 seconds]
staafl has joined #ruby
angusiguess has joined #ruby
arya has joined #ruby
jnoob22 has joined #ruby
codecop has joined #ruby
b0oh has joined #ruby
moshef has joined #ruby
b0oh has left #ruby [#ruby]
Macaveli has quit [Ping timeout: 248 seconds]
nalaginrut has quit [Ping timeout: 258 seconds]
fivetwentysix has quit [Quit: fivetwentysix]
danneu has quit [Quit: WeeChat 0.3.8]
knapper_tech has joined #ruby
echevemaster-afk has quit [Remote host closed the connection]
<jokke_> is there a regular expression that won't match anything ever?
huoxito has joined #ruby
<jokke_> i'm thinking of adding a default value for a blacklist regex
<MrZYX> that sounds like you want a whitelist instead
<MrZYX> invert your regex and check that it matches
<jokke_> Can i invert regexes?
<jokke_> hey
<jokke_> ofcourse!
<jokke_> [^.]*
<jokke_> shouldnt match anything
<jokke_> oh it does
<jokke_> empty string
sleetdrop has quit [Ping timeout: 264 seconds]
teddyp1cker has joined #ruby
<jokke_> huh
<JonnieCache> i doubt you can make a regex which doesnt match anything
<jokke_> it matches everything :D
<supki> what about /.\A/ ?
PragCypher has quit [Quit: Leaving]
<JonnieCache> porbably because [.^] == .
<JonnieCache> i would guess
<jokke_> yeah, makes sense i guess
<jokke_> well it has to work only on filenames
chandankumar has joined #ruby
Czupa has joined #ruby
carloslopes has joined #ruby
binaryplease has quit [Quit: WeeChat 0.4.0]
<MrZYX> maybe tell more about your actual problem
binaryplease has joined #ruby
<jokke_> ah never mind
<jokke_> i'm overdoing it
Al__ has joined #ruby
jcrawford has quit [Ping timeout: 246 seconds]
sebastianb has quit [Ping timeout: 246 seconds]
bradhe has joined #ruby
yugui is now known as yugui_zzz
arya has quit [Ping timeout: 248 seconds]
teddyp1cker has left #ruby ["Konversation terminated!"]
<Rumsteak> I would like to do a triple equality like : Color.r(pixel) == Color.g(pixel) == Color.b(pixel), but it is not valid ruby syntax. Is there any way to have a nice readable triple equality ?
mikecmpbll has joined #ruby
echevemaster has joined #ruby
kushalkhandelwal has quit [Remote host closed the connection]
jpcamara has joined #ruby
bradhe has quit [Ping timeout: 264 seconds]
arya has joined #ruby
kushalkhandelwal has joined #ruby
Zai00 has quit [Quit: Zai00]
Edward_ has quit [Ping timeout: 258 seconds]
<tobiasvl> hmm
<MrZYX> [Color.r(pixel), Color.g(pixel), Color.b(pixel)].uniq.size == 1 if the the call is expensive, if not I think I'd prefer a == b && b == c
<tobiasvl> [Color.r(pixel), Color.g(pixel), Color.b(pixel)].uniq.length == 1
<tobiasvl> hehe
<MrZYX> :D
<Rumsteak> lol, thanks ^^will use a == b && b == c then :D
lukeholder has quit [Quit: Computer has gone to sleep.]
G________ has joined #ruby
rudisimo has joined #ruby
G________ is now known as RubNoob
divout has quit [Remote host closed the connection]
hogeo_ has quit [Remote host closed the connection]
jcrawford has joined #ruby
tommyvyo has quit [Quit:]
predator117 has quit [Ping timeout: 260 seconds]
freerobby has joined #ruby
sebastianb has joined #ruby
paper has joined #ruby
Zai00 has joined #ruby
echevemaster is now known as echevemaster-afk
freeayu__ has joined #ruby
RubNoob is now known as jekhokie
freeayu3 has quit [Ping timeout: 246 seconds]
dustint has joined #ruby
camilasan has quit [Remote host closed the connection]
solidoodlesuppor has joined #ruby
freerobby has quit [Ping timeout: 252 seconds]
swex has quit [Read error: Connection reset by peer]
swex has joined #ruby
predator117 has joined #ruby
<ExxKA> Hey Guys
camilasan has joined #ruby
<ExxKA> I get an error in a library I use and I am not sure about how to attack it. What would you do? "NoMethodError - undefined method `slice' for #<ActiveSupport::HashWithIndifferentAccess:0x0000000205df50>:"
<ExxKA> I have very little ruby experience
<maloik> ExxKA: best idea is to put the code in a gist
<Hanmac> ExxKa slice is an array method, that thing is not an array
statarb3 has quit [Quit: Leaving]
<ExxKA> maloik, Hanmac - It's not my code. It's the stripe payment gateway in the activemerchant library
<MrZYX> you're probably passing it a hash or something where it expects an array or a string
kf8a has joined #ruby
<ExxKA> Should I assume that I am supplying the wrong parameters or have I got the wrong version of ActiveSupport or some other library?
<ExxKA> MrZYX, right
<MrZYX> the first one, most likely
<ExxKA> Okay
camilasan has quit [Remote host closed the connection]
<ExxKA> Thank you guys
m8 has quit [Quit: Sto andando via]
hamakn has joined #ruby
BSaboia has joined #ruby
emocakes has joined #ruby
Gonzih has joined #ruby
d34th4ck3r has quit [Ping timeout: 252 seconds]
echevemaster-afk has quit [Read error: Connection reset by peer]
paper has quit [Remote host closed the connection]
hamakn has quit [Ping timeout: 256 seconds]
Neandre has joined #ruby
mark_locklear has quit [Quit: Leaving]
arya has quit [Ping timeout: 248 seconds]
paper has joined #ruby
gaahrdner has joined #ruby
Al__ has quit [Quit: Al__]
divout has joined #ruby
Nahra` has joined #ruby
arya has joined #ruby
tealmage has joined #ruby
camilasan has joined #ruby
<Rumsteak> is it okay to write [0, 9, 2, 13, 5].select { |e| e % 2 == 1 }.map{ |e| e + 2 } rather than [0, 9, 2, 13, 5].reduce([]) { |acc, e| acc + (e % 2 == 1 ? [e + 2] : []) } ? If one prefers readability over efficiency
v0n has joined #ruby
jetblack has quit [Ping timeout: 256 seconds]
jonahR has quit [Quit: jonahR]
pyrac has quit [Ping timeout: 264 seconds]
arya_ has joined #ruby
<jokke_> can i somehow read just a single character from stdin without waiting for a newline?
jpcamara has left #ruby [#ruby]
<apeiros> $stdin.getc
<apeiros> but!
<wuest> Rumsteak: why not .select(&:odd?)
tealmage has quit [Ping timeout: 264 seconds]
<apeiros> your input device is probably buffering
<jokke_> hm
jetblack has joined #ruby
<apeiros> jokke_: see io/console for how to disable input buffering
Gonzih has quit [Ping timeout: 258 seconds]
<jokke_> ok
<apeiros> (under ri IO)
nateberkopec has joined #ruby
andy_fc has quit [Ping timeout: 248 seconds]
<wuest> Yeah, I think all modern consoles are cooked by default nowadays
LaPetiteFromage has joined #ruby
arya has quit [Ping timeout: 248 seconds]
<Rumsteak> wuest: ok I can shorten the select part with a dedicated method. But I mean, select + map iterates 2 times, whereas reduce iterates one time, right ? So reduce is faster
jkamenik has joined #ruby
huoxito has quit [Quit: Leaving]
fr0wrd9 has quit [Remote host closed the connection]
<wuest> Rumsteak: bench it? I suspect that the difference is going to be pretty slim for most cases.
drago777 has quit [Ping timeout: 246 seconds]
<MrZYX> Rumsteak: on 2.0 you could also use a lazy enumerator
maloik has left #ruby [#ruby]
duosrx has quit [Remote host closed the connection]
<Rumsteak> wuest: ok so most rubyists would do select+map for better readability (that's what I wanted to do but I wanted to be sure, I am new to ruby)
<Rumsteak> MrZYX: interesting point
<pagios> is web programming easy with ruby?
<marwinism> define "easy"
<ddd> and define web programming
<Rumsteak> :)
ZachBeta has quit [Quit: Computer has gone to sleep.]
drago777 has joined #ruby
<ddd> \its easy as hell if you know ruby already, and want to use the rails framework, or ramaze. difficult to some relative of difficult if you don't know ruby and don't want to use one of the existing frameworks and want to write your own.
keymone has joined #ruby
yfeldblum has quit [Ping timeout: 256 seconds]
<ddd> or are you talking writing service endpoints?
<ddd> web programming is more than just pretty websites and RESTful web apps
freerobby has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
moshef has quit [Quit: moshef]
freerobby has quit [Client Quit]
<Rumsteak> ddd: about this subject, I wanted to do a proof of concept : a ruby app tapping images from Twitter API and giving these images one by to the browser with html5. Something very minimalist and basic. What ruby framework should I use to ease that ? Rails or Sinatra or something else ?
<Rumsteak> one by one*
droppedonmyhead has joined #ruby
<ddd> rails might be a bit heavy. I'd say sinatra or ramaze
bradhe has joined #ruby
pagios has quit [Quit: Leaving]
hmarr has quit []
<Rumsteak> I thought so too
sambao21 has joined #ruby
jonathanwallace has joined #ruby
preyalone has joined #ruby
<preyalone> How can a Ruby script detect when it's running in a Cygwin shell vs a Command Prompt?
arya has joined #ruby
<ddd> i've worked with manveru who wrote ramaze and he's really good. I like his framework so *I* would probably start there over sinatra, but i'm jaded due to knowing him and having exposure to ramaze previously
Al__ has joined #ruby
Hanmac has quit [Ping timeout: 246 seconds]
freerobby has joined #ruby
csaunders has joined #ruby
ExxKA has quit [Quit: This computer has gone to sleep]
skum has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
ToApolytoXaos has joined #ruby
<ddd> ';
v0n has quit [Read error: Operation timed out]
Vainoharhainen has quit [Ping timeout: 240 seconds]
preyalone has quit [Ping timeout: 245 seconds]
Proshot has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
dhruvasagar has quit [Ping timeout: 276 seconds]
emocakes has quit [Quit: emocakes]
Skylab has joined #ruby
<Rumsteak> ddd: anyway both framework seem minimalist, I like that
tootubular has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<ddd> yep
<ddd> rails is good, opinionated but good. its also very heavy handed. if thats not what you want or need, i'd go with one of the other two
puppeh has quit [Ping timeout: 256 seconds]
alup has quit [Ping timeout: 246 seconds]
<Rumsteak> ddd: I want to learn RoR too so I will also have to do the POC in Rails just to see if it is doable.
pavilionXP has joined #ruby
<platzhirsch1> ddd: any ideas on what requirements are that tell you to use RoR instead of Sinatra?
<platzhirsch1> just got curious
luckyruby has quit [Read error: Connection reset by peer]
<ddd> platzhirsch1: unwillingness to do all the behind the scenes grunt-work for one :)
<platzhirsch1> ^^
Elhu has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
<Rumsteak> basically when scaffolding in Rails, I will have to skip activerecord generation because my Tweet class will be filled with a call to twitter API. That should do it
kushalkhandelwal has quit [Remote host closed the connection]
alup has joined #ruby
mnemon has quit [Remote host closed the connection]
kushalkhandelwal has joined #ruby
diegok has quit [Quit: ZNC - http://znc.sourceforge.net]
yfeldblum has joined #ruby
<ddd> Rumsteak: don;'t use scaffolding, *especially* if you don't know what you're doing. even if you do, you shouldn't be. main reason being that what scaffolding outputs is a bare bones scaffold but covering each of the different format types it supports. if you don't need xml you have to strip that out, if you don't need json you have to do the same, or even html if you wanted to use the others. not to mention that it RARELY if EVER outputs exactly what you need, ...
<ddd> ... and you spend more time ripping out code than putting code in just to get started
diegok has joined #ruby
mnemon has joined #ruby
Nahra` has quit [Ping timeout: 258 seconds]
luckyruby has joined #ruby
<ddd> and if you don't know rails, you don't have a clear understanding of what its doing in the first place. Also, the rails team has stated multiple times that scaffolding is for demoing or producing a fast and *dirty* app
Al__ has quit [Quit: Al__]
<JonnieCache> i learned rails by looking at and manipulating the scaffold code. its not a bad way to learn
<JonnieCache> you should never use it in real projects though
<ddd> JonnieCache: learning yes, using for prod no
<ddd> right
jonahR has joined #ruby
fumbe has joined #ruby
<Rumsteak> ddd and JonnieCache : thanks for the insights I think you're right
<ddd> np
<JonnieCache> you cant just generate it and leave it though. you need to look at everything and generates it and learn *why* its there
<Rumsteak> I was thinking of scaffolding because with all those rails "first time" tuto :)
david_ has joined #ruby
<ddd> yeah thats the point. first time tutorials
<ddd> when you finally get confident enough at what you're doing with rails, you'll find you'll not be using it
<ddd> much much faster to create your own CRUD methods
<ddd> ect
justsee has quit [Ping timeout: 255 seconds]
EPIK has quit [Ping timeout: 256 seconds]
workmad3 has joined #ruby
polymar has quit [Remote host closed the connection]
hmarr has joined #ruby
codenapper has joined #ruby
freerobby has quit [Quit: Leaving.]
jerius has joined #ruby
jlebrech has joined #ruby
Chinorro has quit [Read error: Connection reset by peer]
puppeh has joined #ruby
flujan has joined #ruby
breakingthings has joined #ruby
thone_ has joined #ruby
thone has quit [Ping timeout: 245 seconds]
nezumi has quit [Ping timeout: 264 seconds]
wallerdev has joined #ruby
huoxito has joined #ruby
freerobby has joined #ruby
<shevy> ddd you write so much in IRC man :D
mwlang has joined #ruby
<shevy> you know what I really find odd in ruby?
<shevy> constants
<ddd> shevy: hehe. I enjoy discussing ruby, rails, coding in general, options for people.
<mwlang> I'm curious. Why is it Date.today is undefined for Date:Class until I do "require 'date'" ?
<ddd> and *I* look at irc, being almost real-time, like a phone
mercwithamouth has joined #ruby
<ddd> because date is in stdlib and not automatically included iirc
<tobiasvl> mwlang: you should get "uninitialized constant Date", not that Date.today is undefined?
david_ has quit [Ping timeout: 245 seconds]
<mwlang> tobiasvl: NoMethodError: undefined method `today' for Date:Class
alup has quit [Quit: Leaving]
<mwlang> ddd: I'm not familiar with std lib vs iirc --any documentation you can point me to to read up on this?
<ddd> hrmm. there's a base Date class in core correct? the require 'date' pulls in extensions to that class correct?
<ddd> mwlang: ruby-lang.org/documentation
<ddd> iirc put a /core or /stdlib at the end of that to access either of the doc trees
<ddd> let me verify my belief here. i *think* there's a base Date class in core, and the require pulls in date extensions of which .today is one
<tobiasvl> probably true. i don't have a Date class in my core here though ...
<ddd> nope its ruby-lang.org/core and /stdlib
<ddd> sorry about that
<ddd> tobiasvl: what ver?
<tobiasvl> 1.8.7 :P
<tobiasvl> so
<tobiasvl> pay no regard to me
<mwlang> ddd: I think you may be right about the base class thing…weird thing is its not really explicitly documented on the Date class rocs.
<mwlang> (crazy auto-spell! ugh!)
<ddd> http://www.ruby-doc.org/core-1.9.3/ and http://www.ruby-doc.org/stdlib-1.9.3/, you hav eto manually change the url. they don't have links to previous
<ddd> thats.. weird. not like everyone is switched over to 2.0
<shevy> not me
<shevy> 1.8.7 until I die
<mwlang> heh…I'm on 2.0
momomomomo has joined #ruby
chussenot has quit [Quit: chussenot]
<mwlang> I jumped from 1.8.7 to 2.0 and this Date.today thing consistently trips me up in each project encounter.
<shevy> what trips me up, all the time, is encoding
<mwlang> and I add "require 'date"" to get the functionality back.
<ddd> shevy: yeah that gets me constantly
tealmage has joined #ruby
knapper_tech has quit [Ping timeout: 264 seconds]
MrZYX is now known as MrZYX|off
generali_ has joined #ruby
<shevy> software confuses me
<shevy> so many project source builds need python 2
<shevy> but not python 3!
<shevy> like latest firefox
kf8a has quit [Quit: Computer has gone to sleep.]
<mwlang> ddd: thanks for the pointer about the two different document trees…never even noticed that since I always come into the docs through Google. i.e. "Ruby 2.0 Date Class" etc.
BSaboia__ has joined #ruby
BSaboia__ has quit [Client Quit]
<ddd> funny thing is, 1.9.3 doesn't seem to even have #today
perlea has quit [Remote host closed the connection]
<ddd> or at least its not in the official stdlib docs
kushalkhandelwal has quit [Remote host closed the connection]
kushalkhandelwal has joined #ruby
<ddd> nor is it listed in 2.0's stdlib docs for Date
<shevy> I am glad that 2.0 is out now
<shevy> if only so that 1.9.x can DIE
<ddd> to_(date|datetime|_s|_time) yes
<ddd> shevy: hehe 1.9 is fine. far better than 1.8
tealmage has quit [Ping timeout: 240 seconds]
<ddd> and 2.x needs time to mature
rippa has joined #ruby
<mwlang> ddd: #today is listed in 2.0's stdlb docs…http://ruby-doc.org/stdlib-2.0/libdoc/date/rdoc/Date.html#method-c-today
<mwlang> also there for 1.9.3…am I missin' something?
DrShoggoth has joined #ruby
chrishunt has quit [Quit: ZzZzZz...]
strayson has joined #ruby
<ddd> er? I'm looking right at the docs http://www.ruby-doc.org/stdlib-2.0/libdoc/date/rdoc/Date.html and I'm not seeing it in the Methods list
tommyvyo has joined #ruby
chrishunt has joined #ruby
<ddd> ahh, I'm looking for #today in the list. Its at ::today
<mwlang> scroll down to "julian day number" section then look to the left in the gray sidebar (they're roughly on the same line visually"
chandankumar has quit [Ping timeout: 264 seconds]
<ddd> yeah. me misreading.
<mwlang> need more coffee. ;-)
<ddd> definitely hehe
<ddd> thanks for pointing that out for me
<ddd> both the coffee and the location ;)
sambao21 has joined #ruby
<shevy> ddd are you on rubygems?
dmiller has joined #ruby
forlin has joined #ruby
<mwlang> today is a class level method rather than instance level, so I guess that's the differentiator to the "::" and "#" prefixes on method names.
<ddd> on in what way? the channel? yes
cmarques has joined #ruby
<ddd> and i'm also on the site as a gem creator
wolcanus has joined #ruby
kushalkhandelwal has quit [Remote host closed the connection]
wolcanus has quit [Remote host closed the connection]
wolcanus has joined #ruby
<ddd> http://rubygems.org/gems/dtf which needs craploads of work done
kushalkhandelwal has joined #ruby
jpfuentes2 has joined #ruby
<mwlang> Interesting, There's a Date class with 100 methods defined prior to requiring 'date' After requiring, that list jumps to 132 methods
Animawish has joined #ruby
senayar has quit [Ping timeout: 240 seconds]
Animawish has quit [Client Quit]
<ddd> mwlang: I believe i'm correct that a baseline Date is loaded, but that require 'date' is needed to get the helper methods. I just don't know how to prove it to you from the docs
mmitchell has joined #ruby
adamjleonard has joined #ruby
jtharris has joined #ruby
<mwlang> ddd: thanks -- I'm just "curious george" about it and googling around to try to find the answer.
ctp_ has joined #ruby
<ddd> hehe cool
ariedler has joined #ruby
Kruppe has joined #ruby
smt has quit [Read error: Connection reset by peer]
rippa has quit [Ping timeout: 240 seconds]
krz has quit [Quit: krz]
tzanger has left #ruby [#ruby]
kushalkhandelwal has quit [Remote host closed the connection]
ctp has quit [Ping timeout: 264 seconds]
interactionjaxsn has joined #ruby
kushalkhandelwal has joined #ruby
osvico has quit []
chandankumar has joined #ruby
wolcanus_ has joined #ruby
interact_ has joined #ruby
niceguyjames has quit [Quit: Computer has gone to sleep.]
niceguyjames has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
arya has quit [Ping timeout: 248 seconds]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
frem has joined #ruby
interactionjaxsn has quit [Ping timeout: 258 seconds]
kushalkhandelwal has quit [Remote host closed the connection]
wolcanus has quit [Ping timeout: 258 seconds]
ananthakumaran has joined #ruby
sailias has joined #ruby
kushalkhandelwal has joined #ruby
freerobby has quit [Quit: Leaving.]
elux has joined #ruby
<jokke_> hey, i wan't to use rspec-expectations in a test file but get undefined method should..
noop__ has joined #ruby
<jokke_> do i have to include it somehow?
hiyakashi has joined #ruby
<ddd> add it to spec/spec_helper.rb
<jokke_> add it how?
arya has joined #ruby
<ddd> require it in there
<jokke_> ah ok
<ddd> read the documentation
ariedler has quit [Remote host closed the connection]
kushalkhandelwal has quit [Remote host closed the connection]
Czupa has quit [Read error: Connection reset by peer]
hendriklouw_ has joined #ruby
hendriklouw has quit [Ping timeout: 246 seconds]
hendriklouw_ is now known as hendriklouw
moshef has joined #ruby
freerobby has joined #ruby
kushalkhandelwal has joined #ruby
strayson has quit [Remote host closed the connection]
<jokke_> well the thing is, i can't put it into spec/spec_helper.rb This is a "homework assignment" from my uni and they don't use rspec. So i want to have everything in one file at least.
noop_ has quit [Ping timeout: 260 seconds]
<jokke_> because i'm supposed to turn in a test file.
thebastl has quit [Remote host closed the connection]
<jokke_> The collecting of the files is automated and files or dirs other than required will be ignored.
<jokke_> requiring it in the test file won't work. (It requires it just fine but i still get the no method error)
kushalkhandelwal has quit [Remote host closed the connection]
paper has quit [Read error: Connection reset by peer]
kushalkhandelwal has joined #ruby
haxrbyte_ has quit [Read error: Connection reset by peer]
<ddd> well, thats the place to do it. thats how its done. you can even put your requires in a file and 'load' it in spec/spec_helper and just remember to # the load line out before turning in your homework.
paper has joined #ruby
hoornet has joined #ruby
<ddd> just because your uni doesn't use it, doesn't somehow change how you're supposed to do things if *you* want to use it.
mklappstuhl has quit [Ping timeout: 258 seconds]
wargasm1 has joined #ruby
spider-mario has joined #ruby
wargasm has quit [Ping timeout: 246 seconds]
<jokke_> meh
<csmrfx> ruby > uni
<csmrfx> jokke_: the idea is: one thing per file
<jokke_> sure i get that
dhruvasagar has joined #ruby
<jokke_> i'm not arguing it _shouldnt_ be done like that. I'm just wondering if it _can't_ be done like i need to.
<csmrfx> of course it can
<csmrfx> if nothing else helps, refactor rspec 8P
kushalkhandelwal has quit [Remote host closed the connection]
<csmrfx> but, why bother
<jokke_> :D
newUser1234 has joined #ruby
kushalkhandelwal has joined #ruby
wallerdev has quit [Quit: wallerdev]
<jokke_> lol, maybe i'll just create the directory structure and the file when the testfile is ran
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
thecreators has quit [Quit: thecreators]
wesside has joined #ruby
bhaarat has joined #ruby
thecreators has joined #ruby
thecreators has quit [Read error: Connection reset by peer]
whowantstolivefo has quit [Ping timeout: 256 seconds]
ariedler has joined #ruby
_nitti has joined #ruby
moshef has quit [Quit: moshef]
wallerdev has joined #ruby
timmow_ has joined #ruby
knapper_tech has joined #ruby
axl_ has joined #ruby
momomomomo has quit [Quit: momomomomo]
<shevy> jokke_ I like your nick
troessner has quit [Quit: Leaving]
kushalkhandelwal has quit [Remote host closed the connection]
interact_ has quit [Remote host closed the connection]
<paper> jokke_: my guess is you're dutch, they're the only ones i know who have weird names like 'joke' and 'freek'
kushalkhandelwal has joined #ruby
ant384 has left #ruby [#ruby]
mechcozmo has joined #ruby
mechcozmo has quit [Client Quit]
acrussell has joined #ruby
mikecmpbll has joined #ruby
timmow_ has quit [Ping timeout: 252 seconds]
jlast has joined #ruby
dhruvasagar has quit [Ping timeout: 256 seconds]
interactionjaxsn has joined #ruby
<shevy> he has from .de so he must be from northern germany!
akashj87 has joined #ruby
kushalkhandelwal has quit [Remote host closed the connection]
kushalkhandelwal has joined #ruby
mklappstuhl has joined #ruby
<jokke_> you're all wrong
pduin has quit [Remote host closed the connection]
ffranz has joined #ruby
schickung has quit [Quit: schickung]
sayan_ has joined #ruby
wesside has quit [Remote host closed the connection]
pduin has joined #ruby
asteve has joined #ruby
wesside has joined #ruby
kushalkhandelwal has quit [Remote host closed the connection]
flujan has left #ruby [#ruby]
etcetera has joined #ruby
kushalkhandelwal has joined #ruby
aganov has quit [Quit: aganov]
celinedior has quit [Quit: celinedior]
yannis has joined #ruby
tagrudev has quit [Remote host closed the connection]
Akuma has quit [Ping timeout: 245 seconds]
yshh has quit [Remote host closed the connection]
blaxter has quit [Ping timeout: 256 seconds]
freerobby has quit [Quit: Leaving.]
platzhirsch1 has quit [Quit: Leaving.]
platzhirsch has joined #ruby
arturaz has quit [Ping timeout: 258 seconds]
thone_ has quit [Ping timeout: 252 seconds]
amacleod has joined #ruby
thone has joined #ruby
soulofpeace has joined #ruby
maxmanders has joined #ruby
DonRichie has joined #ruby
maxmanders has quit [Max SendQ exceeded]
chussenot has joined #ruby
pioz has joined #ruby
mneorr has quit [Remote host closed the connection]
maxmanders has joined #ruby
maxmanders has quit [Max SendQ exceeded]
sambao21 has quit [Quit: Computer has gone to sleep.]
v0n has joined #ruby
tealmage has joined #ruby
luckyruby has quit [Remote host closed the connection]
kushalkhandelwal has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
sayan_ has quit [Quit: Leaving]
kushalkhandelwal has joined #ruby
maxmanders has joined #ruby
sayan_ has joined #ruby
maxmanders has quit [Max SendQ exceeded]
maxmanders has joined #ruby
freeayu has joined #ruby
freeayu__ has quit [Ping timeout: 246 seconds]
thone_ has joined #ruby
sayan_ is now known as sayan
enebo has joined #ruby
sayan has quit [Changing host]
sayan has joined #ruby
kushalkhandelwal has quit [Remote host closed the connection]
tootubular has quit [Quit: tootubular]
rickruby has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
kushalkhandelwal has joined #ruby
thone has quit [Ping timeout: 258 seconds]
evenix has joined #ruby
Asher has quit [Quit: Leaving.]
<bhaarat> what would class Foo def initialize(&block) yield self end end do?
Bry8Star has quit [Ping timeout: 276 seconds]
sambao21 has joined #ruby
binaryplease has quit [Ping timeout: 252 seconds]
<hoelzro> it would allow you to specify a block to new
<hoelzro> but I don't know it that will actually work?
<paper> bhaarat: this: Foo.new { puts "hey baby!" } #=> "hey baby!"
thone has joined #ruby
thone_ has quit [Ping timeout: 252 seconds]
<paper> bhaarat: it cna be used for config i guess: Foo.new { |foo| foo.x = 10; foo.y = 30 }; foo.x #=> 10; foo.y #=> 30
<bhaarat> I'm looking at this code and trying to make sense how it works: https://github.com/qrush/motion-layout/blob/master/lib/motion-layout/layout.rb#L3 how to use it is shown here https://github.com/qrush/motion-layout
<paper> err, assuming u set foo = Foo.new { ... }
_nitti has quit [Remote host closed the connection]
kushalkhandelwal has quit [Remote host closed the connection]
<bhaarat> interesting. I'm new to ruby. it feels like the wild west. so many patterns
jonahR has quit [Quit: jonahR]
Nahra` has joined #ruby
_nitti has joined #ruby
kushalkhandelwal has joined #ruby
maxmanders has quit [Ping timeout: 248 seconds]
mando has joined #ruby
axl_ has quit [Quit: axl_]
d2dchat has joined #ruby
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
rickruby has quit [Ping timeout: 256 seconds]
bean has joined #ruby
uris has joined #ruby
slainer68 has quit [Remote host closed the connection]
<withnale> is there a way to create a method for creating an object using a hash, which called the attribute accessors to set up the object?
<paper> withnale: of course
fivetwentysix has joined #ruby
newUser1234 has quit [Ping timeout: 245 seconds]
jbueza has quit [Quit: Leaving.]
teddyp1cker has joined #ruby
_nitti has quit [Ping timeout: 255 seconds]
thone_ has joined #ruby
thone has quit [Ping timeout: 245 seconds]
senayar has joined #ruby
tomsthumb has quit [Quit: Leaving.]
slainer68 has joined #ruby
Bry8Star has joined #ruby
akashj87 has quit [Read error: Connection reset by peer]
fivetwentysix has quit [Ping timeout: 252 seconds]
akashj87 has joined #ruby
codezombie has joined #ruby
A124|afk has quit [Quit: Leaving.]
ttt has quit [Remote host closed the connection]
A124 has joined #ruby
mneorr has joined #ruby
fivetwentysix has joined #ruby
thone_ has quit [Ping timeout: 240 seconds]
codezombie has quit [Client Quit]
stoic_squirrel has joined #ruby
thone has joined #ruby
awestroke has joined #ruby
chussenot has quit [Ping timeout: 252 seconds]
freerobby has joined #ruby
cbot_ has joined #ruby
Skylab has quit [Quit: Skylab]
momomomomo has joined #ruby
newUser1234 has joined #ruby
skum has quit [Quit: Leaving...]
teddyp1cker has left #ruby ["Konversation terminated!"]
_nitti has joined #ruby
fivetwentysix has quit [Ping timeout: 260 seconds]
bradhe has joined #ruby
Morkel has quit [Ping timeout: 264 seconds]
grenzr has joined #ruby
tjbiddle has joined #ruby
carloslopes has quit [Remote host closed the connection]
tylersmith has joined #ruby
<grenzr> Hey all… in Ruby 1.9.3 test::unit::assertions .. how can I assert that something that returns true equals something that returns false…? for example assert(test == false) passes… if I try assert_equal(<expression that returns true>, <expression that returns false>) also passes...
thone has quit [Ping timeout: 248 seconds]
<grenzr> assert(true == false) even sorry
<apeiros> assert_equal false, expression
apeiros has quit [Remote host closed the connection]
<grenzr> ok so .. this seems to pass: assert_equal false, 1 == 1
bradhe has quit [Ping timeout: 256 seconds]
soulofpeace has quit [Ping timeout: 246 seconds]
tylersmith has quit [Client Quit]
<amacleod> Been a while since I used test::unit, but that assertion seems like it should cause a failure.
<grenzr> indeed
<grenzr> now i'm worried that all my tests are flawed
<grenzr> I'm sure its probably a misunderstanding of something somewhere
<grenzr> but still..
<amacleod> Is that assert_equal line in the right context? That is, does test::unit treat it as "inside a test"?
ssvo has quit [Ping timeout: 260 seconds]
<grenzr> I'm doing it inside a test_ method if thats what you mean?
<amacleod> Again, my knowledge of test::unit is scanty, but that sounds like a good start.
thone has joined #ruby
ssvo has joined #ruby
soulofpeace has joined #ruby
clocKwize has quit [Quit: clocKwize]
<amacleod> Does test::unit automatically treat every method whose name starts with "test_" as a test method?
<grenzr> ok i think i've found the problem
<grenzr> very odd tho ...
<grenzr> i'm using the rr mocking lib
DonRichie has quit [Quit: Verlassend]
<grenzr> and i put that assert_equal inside a stubbed method
<amacleod> Oh. That sounds ill-advised.
heliumsocket has joined #ruby
<grenzr> but how is that affecting assert_equal tho? don't quite understand
jbueza has joined #ruby
fivetwentysix has joined #ruby
<grenzr> if i do assert_equal false, 1==1 inside of that then it should still work no?
noop__ has quit [Quit: Leaving]
<amacleod> assert_equal might make certain assumptions about its environment.
bradhe has joined #ruby
pskosinski has quit [Quit: pskosinski]
bradhe has quit [Read error: Connection reset by peer]
dmiller has quit [Ping timeout: 248 seconds]
chrishough has joined #ruby
bradhe has joined #ruby
freakazoid0223 has joined #ruby
DonRichie has joined #ruby
<amacleod> Also (and this is kind of a matter of opinion) it is better to keep all your assertions at the same level, by which I mean they should all be in the test method itself, not in anything called by the test method.
<amacleod> That's just a matter of visibility to humans, though, not a technical issue.
pskosinski has joined #ruby
<grenzr> yeah i guess i was using the stubbed method to trigger a test to ensure at that particular stage something happened
<grenzr> it does say in the rr docs that you can do that
heliumsocket has quit [Client Quit]
haxrbyte has joined #ruby
<amacleod> "ensure something happened" sounds like a fixture. :-D So a lot depends on how test::unit does assertions.
<amacleod> My first guess would be that it raises a specific kind of exception.
momomomomo has quit [Quit: momomomomo]
pcarrier has joined #ruby
<amacleod> in which case it should be fine to put your assertions as far down the call chain as you feel like.
_nitti has quit [Remote host closed the connection]
<grenzr> well I'm testing that at a particular stage an object was added to a Set
haxrbyte_ has joined #ruby
<grenzr> and later removed from that set at a later stage
<grenzr> or at least thats what i was trying to do :)
<amacleod> Ah, k. Sounds sensible enough.
axl_ has joined #ruby
<grenzr> so i wanted to use stubs as triggers really
bradhe has quit [Ping timeout: 240 seconds]
<grenzr> test triggers that is
mellow888 has joined #ruby
<mellow888> hi
heliumsocket has joined #ruby
<mellow888> question here
<mellow888> i have a couple of sockets
pskosinski has quit [Quit: pskosinski]
haxrbyte has quit [Ping timeout: 240 seconds]
<mellow888> and each of them has a time when they should sleep
pskosinski has joined #ruby
<mellow888> how do i go through them in a list and decide which sockets have finished sleeping?
<amacleod> Hmmm. You can't just do something like def test_foo(); mySet = SetType.new(); assert(mySet.empty?); mySet << "foo"; assert_equal(1, mySet.length); mySet.remove!("foo"); assert_equal(0, mySet.length); end
<mellow888> I thought of creating a class which has the socket and a counter in miliseconds, and an amoutn of time it should have passed between the comparisson and the counter
momomomomo has joined #ruby
predator117 has quit [Ping timeout: 245 seconds]
heliumsocket has quit [Client Quit]
jamesfung14 has joined #ruby
predator117 has joined #ruby
timmow_ has joined #ruby
jlebrech has quit [Quit: Leaving]
flexd has quit [Ping timeout: 252 seconds]
pskosinski has quit [Client Quit]
wolcanus_ has quit [Remote host closed the connection]
pskosinski has joined #ruby
wolcanus has joined #ruby
etcetera has quit []
gyre007 has joined #ruby
tvw has quit []
baroquebobcat has joined #ruby
ckrailo has joined #ruby
cads has quit [Ping timeout: 256 seconds]
<grenzr> maybe rr stubbing actually swallows exceptions .. so assert_equal("hello", Object.new) clearly should fail but it just can't cos it swallows exceptions?
Xeago has joined #ruby
<grenzr> i bet thats whats happening
robscomp_ has quit [Remote host closed the connection]
paper is now known as banisterfiend
arya_ has joined #ruby
g0bl1n_ has joined #ruby
tomsthumb has joined #ruby
timmow_ has quit [Ping timeout: 252 seconds]
dmiller has joined #ruby
sayan has quit [Read error: Connection reset by peer]
enebo has quit [Read error: Connection reset by peer]
enebo has joined #ruby
<grenzr> thats proven now .. i just did assert_equal(1,2) and then did a puts immediately afterwards and it didn't output the puts message… then did assert_equal(1,1) and it did output the puts .. but both times it passed the unit test
<grenzr> exception swallowing ahoy!
Kruppe has quit [Ping timeout: 240 seconds]
acrussell has left #ruby [#ruby]
arya has quit [Ping timeout: 248 seconds]
platzhirsch has left #ruby [#ruby]
ctp has joined #ruby
tubbo has left #ruby [#ruby]
arya_ has quit [Ping timeout: 248 seconds]
troessner has joined #ruby
kushalkhandelwal has quit [Remote host closed the connection]
etcetera has joined #ruby
ctp has quit [Client Quit]
br4ndon has joined #ruby
mneorr_ has joined #ruby
sambio has joined #ruby
ctp_ has quit [Ping timeout: 245 seconds]
devdazed has quit [Ping timeout: 264 seconds]
<amacleod> grenzr, there ya go. :)
<grenzr> i've found a better way now anyway .. but yeah thanks :)
workmad3 has joined #ruby
_nitti has joined #ruby
groktar has joined #ruby
ctp has joined #ruby
devdazed has joined #ruby
xardas has joined #ruby
kamsky has joined #ruby
jprovazn has quit [Quit: Leaving]
mneorr has quit [Ping timeout: 256 seconds]
jamie_ca_ has joined #ruby
ctp has quit [Client Quit]
apeiros has joined #ruby
<kamsky> hello guys, I got something in mind and I dont know if it's even possible, so I wanted to check with you first
ctp has joined #ruby
Morkel has joined #ruby
<apeiros> everything is possible
carloslopes has joined #ruby
<kamsky> so I got a 3D printer driver written in C, and my boss is asking me to redo the entire current crappy GUI that manages the printer (move axes, print, etc). So I though abt doing it in Ruby
jerius_ has joined #ruby
Ontolog has joined #ruby
<kamsky> so, is it possible to "embed" the C code within Ruby, or somehow interact with it?
pduin has quit [Remote host closed the connection]
bradhe has joined #ruby
<apeiros> yes, C code can be embedded in ruby
tylersmith has joined #ruby
<kamsky> sweet
<apeiros> it's called "native extension". there are quite a few gems out there which do that.
<apeiros> see rmagick, nokogiri and a couple of others
<hoelzro> https://github.com/hoelzro/ruby-keepass # shameless plug
<banisterfiend> apeiros: what did u think of that include_from hack
<kamsky> apeiros: ok, I'll look em up, any suggestion in particular?
<apeiros> hoelzro: oh, good plug! that's actually of interest to me. I hope I remember when it becomes actual.
jerius has quit [Ping timeout: 260 seconds]
jerius_ is now known as jerius
<hoelzro> apeiros: your interest, you mean?
malte_ has joined #ruby
malte_ has quit [Client Quit]
<apeiros> hoelzro: when we evaluate whether we use keepass in the company
<hoelzro> ah ha
<hoelzro> well, it still needs write support ;)
<apeiros> wah? :(
hendriklouw has quit [Quit: hendriklouw]
<hoelzro> other than that, it works fine
<banisterfiend> hoelzro: are you doing more ruby or more perl stuff these days? cos you seem quite knowledgeable/productive in ruby already
<hoelzro> Perl
braoru has quit [Quit: Leaving]
<hoelzro> I've just written that one gem
<hoelzro> I just have a *really* good memory =)
<apeiros> well, should we use keypass, I'd probably contribute if something I need is missing :)
<apeiros> our OSS process is still broken, though :(
<hoelzro> apeiros: that's what the wink was for =)
<hoelzro> frown town
ctp has quit [Quit: Leaving...]
randomautomator has joined #ruby
Fuzai has joined #ruby
<banisterfiend> hoelzro: do you use moose in perl?
pskosinski has quit [Ping timeout: 245 seconds]
yshh has joined #ruby
<hoelzro> banisterfiend: if I can help it, yes
<Fuzai> is there any kind of internal counter to a do loop that can be viewed? or do I need to setup a counter variable every time?
carloslopes has quit [Ping timeout: 248 seconds]
<banisterfiend> hoelzro: isn't it a whole object system built on top of perl? does it have some performance issues?
<amacleod> Fuzai, I seem to remember there is each_with_index
<hoelzro> banisterfiend: it is, and it has some compile time overhead
<Fuzai> ty i'll look that up now
<hoelzro> but I haven't really had an issue with that aspect of it
<apeiros> withnale: you're welcome, btw…
<banisterfiend> hoelzro: ah ok. Can you explain tome the difference between a ruby mixin and a moose role ?
* apeiros loves people asking questions and then not reacting for hours
<amacleod> Fuzai, yeah.. myStuff.each_with_index { |element, i| element.set_badge!(i) } # or so
<Fuzai> ok ty
nomenkun_ has quit [Remote host closed the connection]
<hoelzro> banisterfiend: they're very similar, but when you consume a role, you may rename methods, I believe
<hoelzro> also, the methods that are required by the role are enforced at compile time
freerobby has quit [Quit: Leaving.]
forlin has quit [Remote host closed the connection]
<hoelzro> so if Enumerable where a role, and each weren't included in the consuming class, it would result in a compilation failure
<hoelzro> s/where/were/
jdunck has joined #ruby
awestroke has quit [Remote host closed the connection]
<banisterfiend> hoelzro: do 'roles' stack on top of one another like mixins? (i.e they get added to the ancestor chain) or do they somehow get baked directly into the class
<banisterfiend> role methods*
yshh has quit [Ping timeout: 245 seconds]
<hoelzro> banisterfiend: well, they are sort of both
freerobby has joined #ruby
<hoelzro> you can inspect a class and see which roles it consumes
workmad3 has quit [Ping timeout: 248 seconds]
urbanmonk has joined #ruby
<hoelzro> but as far as the internals go, I think they are officially baked in
tk_ has joined #ruby
jkamenik has quit [Quit: Leaving.]
mattbl has joined #ruby
wolcanus has quit [Remote host closed the connection]
MTXsCript01 has joined #ruby
_nitti has quit [Remote host closed the connection]
ctp has joined #ruby
puppeh has quit [Remote host closed the connection]
matchaw has quit [Ping timeout: 245 seconds]
<banisterfiend> hoelzro: do they have any advantages over mixins? i mean would you prfer mixins were more like roles? or the difference is so minimal you cgaf ?
MTXsCript01 has quit [Client Quit]
MTXsCript01 has joined #ruby
<hoelzro> hmm
<hoelzro> there's a thread on that somewhere...
MTXsCript01 has quit [Client Quit]
* hoelzro asks #perl
tjbiddle has quit [Quit: tjbiddle]
<banisterfiend> hoelzro: if i had a class that defined a method 'hello' and i import a role onto that class that also defined 'hello', which method gets predecence?
<banisterfiend> precedence*
<hoelzro> the class'
<hoelzro> oh!
<hoelzro> method advice
kpshek has joined #ruby
<hoelzro> that's a good feature
<hoelzro> not specific to roles, but nice
Apathetic has joined #ruby
Hanmac1 is now known as Hanmac
<Apathetic> hi, what's a good boook to get started with Ruby
<hoelzro> if I have a role called LogSubmissions
<hoelzro> Apathetic: The Ruby Programming Language
<Apathetic> okay
<Apathetic> hi, what's a good boook to get started with The Ruby Programming Language
<banisterfiend> Apathetic: that's assuming you already know how to program
<banisterfiend> Apathetic: "learn english" i guess
<banisterfiend> :P
<Apathetic> oh, that's the name of the book?
<hoelzro> package LogSubmissions { use feature 'say'; use Moose::Role; requires 'submit'; before submit => sub { say q{I'm submitting something!}; } }
<banisterfiend> yeah
<Apathetic> xD
mikepack has joined #ruby
<hoelzro> Apathetic: that's the title of the book
jrn has joined #ruby
nezumi has joined #ruby
<Apathetic> will check it out
<hoelzro> banisterfiend: that role, when mixed in to a class, will print "I'm submitting something" before the original submit() is called
<banisterfiend> hoelzro: pretty cool
danbeck has joined #ruby
<hoelzro> *very* cool
<hoelzro> you also have after, and around
zigomir has quit [Quit: zigomir]
momomomomo has quit [Quit: momomomomo]
Vivekananda has joined #ruby
<banisterfiend> hoelzro: the equivalent ruby (without building a separate library wth nicer syntax to do it) would be to use the included hook i guess, and then wrap the method u want with before/after
<jrn> hi, I have a RackApplication and run it via Apache2 with Passenger. class RackApplication \n def call(env)\n # ... . In the config.ru I run it with "run RackApplication", but sadly it cannot find the call method. What to do?
brennanMKE has joined #ruby
<amacleod> Apathetic, might also want to check out _Programming Ruby_ (aka "pickaxe") http://amzn.com/1934356085
<banisterfiend> hoelzro: i wonder if something like moose would take off in ruby, i guess rails already has a number of those features
sambio has quit [Ping timeout: 245 seconds]
matchaw has joined #ruby
uris has quit [Quit: Leaving]
<hoelzro> I heard about that a while ago
<amacleod> Pickaxe doesn't have Matz on the author line, though.
<banisterfiend> hoelzro: cute
Ontolog has quit [Remote host closed the connection]
pskosinski has joined #ruby
<hoelzro> but that's probably more so the attribute initialization
<hoelzro> anyway, I'm outta here
<hoelzro> later all
carlyle has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
<banisterfiend> hoelzro: cya
yannis has quit [Read error: Operation timed out]
niceguyjames has quit [Quit: Computer has gone to sleep.]
drale2k has joined #ruby
yannis has joined #ruby
carlyle has quit [Remote host closed the connection]
keymone has quit [Quit: keymone]
_nitti has joined #ruby
ryannielson has joined #ruby
niceguyjames has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
jonathanwallace has quit [Quit: WeeChat 0.3.9.2]
chussenot has joined #ruby
chrishough has quit [Quit: chrishough]
mikepack has quit [Remote host closed the connection]
Axsuul has joined #ruby
Al__ has joined #ruby
jonathanwallace has joined #ruby
drale2k has quit [Ping timeout: 256 seconds]
carloslopes has joined #ruby
chrishough has joined #ruby
lessless has joined #ruby
mikepack has joined #ruby
eykosioux has joined #ruby
g0bl1n_ has quit [Quit: Ex-Chat]
chussenot has quit [Ping timeout: 252 seconds]
psyprus has quit [Changing host]
psyprus has joined #ruby
puppeh has joined #ruby
ariedler has quit [Remote host closed the connection]
workmad3 has joined #ruby
etcetera has quit []
lmf40 has quit [Remote host closed the connection]
mahmoudimus has joined #ruby
carlyle has joined #ruby
mockra has joined #ruby
zomgbie has quit [Ping timeout: 245 seconds]
nicoulaj has joined #ruby
entr0py_ has quit [Remote host closed the connection]
undersc0re97 has joined #ruby
Voodoofish430 has joined #ruby
nari has quit [Ping timeout: 255 seconds]
etcetera has joined #ruby
tylersmith has quit [Quit: tylersmith]
puppeh has quit [Remote host closed the connection]
similian has joined #ruby
freeayu has quit [Remote host closed the connection]
<jokke_> how should i test with rspec that two methods do the same thing? (after having tested one of them)
filipe has quit [Remote host closed the connection]
davetherat has quit [Read error: Connection reset by peer]
davetherat has joined #ruby
<jokke_> first i tested '#length' and even with :shared => true and then in '#size' trying it_should_behave_like '#length' gives me Could not find shared examples "#length" (ArgumentError)
similian has left #ruby [#ruby]
yannis has quit [Read error: Connection timed out]
<JonnieCache> should_behave_like doesnt do what you think it does
octarine has quit []
<JonnieCache> look up the docs
sayan has joined #ruby
maxmanders has joined #ruby
ariedler has joined #ruby
stkowski has joined #ruby
gaahrdner has quit [Remote host closed the connection]
<jokke_> ah ok
<jokke_> hm
maxmanders has quit [Max SendQ exceeded]
gaahrdner has joined #ruby
wolcanus has joined #ruby
maxmanders has joined #ruby
maxmanders has quit [Max SendQ exceeded]
Al__ has quit [Ping timeout: 256 seconds]
btaitelb has joined #ruby
seme has joined #ruby
kristofers has joined #ruby
maxmanders has joined #ruby
robscomputer_ has joined #ruby
wolcanus has quit [Read error: No route to host]
wolcanus has joined #ruby
zeade has joined #ruby
ctp has quit [Remote host closed the connection]
urbanmonk has quit [Quit: urbanmonk]
maxmanders has quit [Client Quit]
ctp has joined #ruby
dmiller has quit [Ping timeout: 252 seconds]
Al__ has joined #ruby
buibex has joined #ruby
freerobby has quit [Quit: Leaving.]
gaahrdner has quit [Ping timeout: 252 seconds]
freerobby has joined #ruby
haxrbyte_ has quit [Ping timeout: 256 seconds]
Akuma has joined #ruby
dmiller has joined #ruby
timonv has quit [Remote host closed the connection]
ctp has quit [Client Quit]
seme has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 256 seconds]
niceguyjames has quit [Quit: Textual IRC Client: www.textualapp.com]
sayan has quit [Read error: Connection reset by peer]
Guest73208 has quit [Read error: Connection reset by peer]
hoornet has quit [Read error: Connection reset by peer]
tjbiddle has joined #ruby
tjbiddle has quit [Remote host closed the connection]
banisterfiend has quit [Read error: Connection reset by peer]
drale2k has joined #ruby
banisterfiend has joined #ruby
theRoUS has joined #ruby
dmiller has quit [Ping timeout: 260 seconds]
tjbiddle has joined #ruby
Al___ has joined #ruby
ji0n has joined #ruby
jkamenik has joined #ruby
Al__ has quit [Ping timeout: 252 seconds]
timmow has quit [Ping timeout: 252 seconds]
rdark has quit [Quit: leaving]
lkba has quit [Ping timeout: 264 seconds]
workmad3 has quit [Ping timeout: 264 seconds]
hmarr has quit []
swex has quit [Ping timeout: 258 seconds]
swex has joined #ruby
pi3r has quit [Quit: Leaving]
deric_skibotn has joined #ruby
stoic_squirrel has quit [Quit: Textual IRC Client: www.textualapp.com]
mercwithamouth has joined #ruby
enebo has quit [Quit: enebo]
rickmasta has joined #ruby
sayan has joined #ruby
thams has joined #ruby
unflores has quit [Quit: unflores]
mikepack has quit [Remote host closed the connection]
arya has joined #ruby
mikepack has joined #ruby
knapper_tech has quit [Ping timeout: 240 seconds]
jhn has joined #ruby
gaahrdner has joined #ruby
chrishough has quit [Quit: chrishough]
chandankumar has quit [Quit: Leaving]
beneggett has joined #ruby
hiyakash_ has joined #ruby
theRoUS has quit [Ping timeout: 245 seconds]
Sigma00 has quit [Quit: ZNC - http://znc.in]
ji0n has quit [Ping timeout: 256 seconds]
matchaw has quit [Read error: Connection reset by peer]
banisterfiend has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
Sigma00 has joined #ruby
_nitti has quit [Remote host closed the connection]
rakl has joined #ruby
matchaw has joined #ruby
jokke_ has quit [Quit: WeeChat 0.3.6]
hiyakashi has quit [Ping timeout: 260 seconds]
MrZYX|off is now known as MrZYX
bluOxigen has quit [Ping timeout: 258 seconds]
markalanevans has joined #ruby
markalanevans has quit [Remote host closed the connection]
carlyle has quit [Remote host closed the connection]
chrishough has joined #ruby
_nitti_ has joined #ruby
MrZYX is now known as MrZYX|off
tealmage has quit [Remote host closed the connection]
markalanevans has joined #ruby
camilasan has quit [Remote host closed the connection]
carlyle has joined #ruby
bradleyprice has joined #ruby
stoic_squirrel has joined #ruby
havenwood has joined #ruby
sayan has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
Ontolog has joined #ruby
etcetera has quit []
MrZYX|off is now known as MrZYX
Ontolog_ has joined #ruby
pyrac has joined #ruby
piotr_ has quit [Ping timeout: 258 seconds]
soulofpeace has quit [Ping timeout: 260 seconds]
rupee has joined #ruby
hmarr has joined #ruby
freerobby has quit [Client Quit]
slainer68 has quit [Remote host closed the connection]
asteve has quit [Quit: Computer has gone to sleep.]
moted has joined #ruby
br4ndon has quit [Ping timeout: 245 seconds]
brennanMKE has quit [Remote host closed the connection]
Neandre has quit [Ping timeout: 258 seconds]
Ontolog has quit [Ping timeout: 245 seconds]
Elhu has quit [Quit: Computer has gone to sleep.]
enriclluelles has quit [Remote host closed the connection]
Guest80478 has joined #ruby
tealmage has joined #ruby
etcetera has joined #ruby
cantonic has quit [Quit: cantonic]
pioz has quit [Quit: This computer has gone to sleep]
ehellman has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
foobArrrr has quit [Read error: Connection reset by peer]
djbutterchicken has quit [Read error: Connection reset by peer]
chandankumar has joined #ruby
<Igneous> does anyone know what I need to do to get encdb/transdb in $LOADED_FEATURES? I'm wrestling some C code that embeds ruby, and the only thing $LOADED_FEATURES has in it is enumerator.so
mafolz has quit [Quit: mafolz]
urbanmonk has joined #ruby
basex has joined #ruby
Czupa has joined #ruby
havenwood has quit [Remote host closed the connection]
rovalent has joined #ruby
brianpWins has joined #ruby
rovalent has quit [Client Quit]
heliumsocket has joined #ruby
cantonic has joined #ruby
sayan has joined #ruby
grenzr has quit [Ping timeout: 252 seconds]
jamesfung14 has quit [Ping timeout: 255 seconds]
a_a_g has joined #ruby
Zai00_ has joined #ruby
Zai00_ has quit [Client Quit]
ravigehlot has joined #ruby
jeebster has joined #ruby
security has joined #ruby
megha has quit [Ping timeout: 245 seconds]
etcetera has quit []
sayan has quit [Read error: Connection reset by peer]
Zai00 has quit [Ping timeout: 264 seconds]
Xeago has quit [Remote host closed the connection]
tylersmith has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
ariedler has quit [Remote host closed the connection]
basex has quit [Quit: basex]
pandawarrior has joined #ruby
tenmilestereo has joined #ruby
<pandawarrior> hello, any good tutorial on how to test (any) restful web service?
urbanmonk has quit [Quit: urbanmonk]
br4ndon has joined #ruby
d34th4ck3r has joined #ruby
frem has quit [Ping timeout: 240 seconds]
rsahae has joined #ruby
otters` has joined #ruby
marcdel has joined #ruby
bluefish has joined #ruby
heliumsocket has quit [Quit: heliumsocket]
patronus has joined #ruby
<bluefish> Im looking to match two strings and return a score, I don't care about order, just the percentage of character matches.. I was looking at the 'string_score' gem but it cares about order.. as can seen by my test https://gist.github.com/ebbflowgo/5373615 ... any suggestions on a better approach?
basex has joined #ruby
smigg has joined #ruby
jamesfung14 has joined #ruby
workmad3 has joined #ruby
jgrevich has joined #ruby
br4ndon has quit [Ping timeout: 246 seconds]
c0rn has joined #ruby
<amacleod> bluefish, you will probably have to write your own.
interactionjaxsn has quit [Remote host closed the connection]
heliumsocket has joined #ruby
mercwithamouth has quit [Ping timeout: 245 seconds]
interactionjaxsn has joined #ruby
saispo has joined #ruby
fivetwentysix has quit [Quit: fivetwentysix]
dummies_freelanc has joined #ruby
louism2_ has joined #ruby
saispo has quit [Client Quit]
<bluefish> amacleod: I'll start on that, if anyone has a suggestion let me know
saispo has joined #ruby
<amacleod> bluefish, my main suggestion: define very specifically (for yourself) what you mean by score.
hiyakash_ has quit [Quit: お前は知りすぎた]
buibex has quit [Remote host closed the connection]
<amacleod> From there you can write tests and write code that satisfies the tests.
<bluefish> amacleod: yeah, I'll have to see what works best, there is some art in this..
interactionjaxsn has quit [Ping timeout: 245 seconds]
pioz has joined #ruby
sayan has joined #ruby
pioz has quit [Client Quit]
<amacleod> If performance is not a concern, you could do something like sort each string and then iterate over the master string's sorted letters, scanning the string-under-test for matches and counting them.
kirun has joined #ruby
<louism2_> Hey everyone, I am trying to convert cents to dollars with two trailing decimal points for cents. I am running into issues when a I try to convert 1110 cents to dollars. I can't get the converted amount to have more than one zero at the end (i.e. 11.1 when I want 11.10). How could I do this? Thanks.
gaahrdner has quit [Remote host closed the connection]
jekhokie has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
gaahrdner has joined #ruby
<troessner> louism2_, there are a lot of ways, but probably the best would be to use the "money" gem
<elaptics> louism2_: that's usually just a formatting issue. How are you working with the numbers?
<MrZYX> >> "%.2f" % 11.1
<eval-in> MrZYX => "11.10" (http://eval.in/16146)
sambao21 has quit [Quit: Computer has gone to sleep.]
tealmage has quit [Remote host closed the connection]
Catbuntu has joined #ruby
skattyadz has joined #ruby
_nitti_ has quit [Remote host closed the connection]
niko__ has joined #ruby
dmiller has joined #ruby
<louism2_> Thanks everyone, I'm doing it in a rails app where there are helpers that format it for you. I just want to figure it out for myself
Guest80478 has quit [Remote host closed the connection]
mrsolo has joined #ruby
gaahrdner has quit [Ping timeout: 255 seconds]
nil1511 has joined #ruby
hoornet has joined #ruby
hoornet has left #ruby [#ruby]
hiroyuki has joined #ruby
h8R has quit [Ping timeout: 258 seconds]
jonathanwallace has quit [Ping timeout: 252 seconds]
dmiller has quit [Ping timeout: 245 seconds]
Rumsteak has quit [Quit: Rumsteak]
predator117 has quit [Ping timeout: 255 seconds]
etcetera has joined #ruby
louism2_ has quit [Quit: Leaving]
enebo has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
milanfan has joined #ruby
predator117 has joined #ruby
jamesfung14 has quit [Quit: Leaving]
milanfan has quit [Client Quit]
wyhaines has joined #ruby
wyhaines has quit [Remote host closed the connection]
sixty4k has joined #ruby
bean has quit [Ping timeout: 264 seconds]
pavilionXP has quit [Ping timeout: 258 seconds]
ToApolytoXaos has quit [Quit: Leaving]
troessner has quit [Quit: Leaving]
Neomex has joined #ruby
havenwood has joined #ruby
sayan has quit [Ping timeout: 240 seconds]
Neomex has quit [Client Quit]
pioz has joined #ruby
Neomex has joined #ruby
tethra has quit [Remote host closed the connection]
spoonman has quit [Quit: WeeChat 0.4.0]
guns has joined #ruby
ariedler has joined #ruby
Xeago has joined #ruby
otters` has left #ruby [#ruby]
Al___ has quit [Quit: Al___]
mityaz has joined #ruby
tevio has quit [Remote host closed the connection]
bonty_ssh has joined #ruby
alvaro_o has joined #ruby
mellow888 has quit [Quit: http://www.kiwiirc.com/ - A hand-crafted IRC client]
pandawarrior has left #ruby [#ruby]
kimteq has quit [Remote host closed the connection]
pioz has quit [Quit: This computer has gone to sleep]
vlad_starkov has joined #ruby
david___ has joined #ruby
bonty_ssh has quit [Ping timeout: 240 seconds]
pyrac has quit [Quit: pyrac]
gr4yscale has joined #ruby
ariedler has quit [Ping timeout: 276 seconds]
<Vivekananda> I was trying to solve another question which requires me to modify the class Class and create a attr_accessor_with_history method. hints were to use class_eval. I am new and want to know why and how to use that. Also why would I use that instead of just writing a method in a subclssed object.
benlieb has joined #ruby
<Vivekananda> any pointers would be lovely
<Vivekananda> I had dozed off yesterday so wanting to do it today
heliumsocket has quit [Quit: heliumsocket]
momomomomo has joined #ruby
security is now known as megha
asteve has joined #ruby
banjara has quit [Quit: Leaving.]
Asher has joined #ruby
etcetera has quit []
browndawg has quit [Quit: Leaving.]
generali_ has quit [Remote host closed the connection]
buibex has joined #ruby
browndawg has joined #ruby
generalissimo has joined #ruby
foobArrr has joined #ruby
browndawg has quit [Client Quit]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
kushalkhandelwal has joined #ruby
chandankumar has quit [Quit: Leaving]
kuzushi_ has joined #ruby
evenix has quit [Read error: Connection reset by peer]
kemist has joined #ruby
amacleod_ has joined #ruby
evenix has joined #ruby
ravigehlot has quit [Read error: Connection reset by peer]
ravigehlot_ has joined #ruby
kemist_ has joined #ruby
<bluefish> I am ebbflowgo..
eykosioux has quit [Read error: No route to host]
eykosiou_ has joined #ruby
mattbl has quit [Quit: Leaving]
kushalkhandelwal has quit [Remote host closed the connection]
nil1511 has quit [Ping timeout: 276 seconds]
kushalkhandelwal has joined #ruby
panzi has joined #ruby
momomomomo has quit [Quit: momomomomo]
eykosiou_ has quit [Read error: No route to host]
amacleod has quit [Ping timeout: 245 seconds]
kuzushi has quit [Ping timeout: 245 seconds]
eykosioux has joined #ruby
interact_ has joined #ruby
david___ has quit [Ping timeout: 245 seconds]
BizarreCake has quit [Ping timeout: 246 seconds]
<panzi> is there a way to exclude certain attributes from being serialized for a serialized column?
alvaro_o has quit [Quit: Ex-Chat]
kemist has quit [Ping timeout: 252 seconds]
rubious has quit [Remote host closed the connection]
bluefish has quit [Quit: Page closed]
eldariof has joined #ruby
etcetera has joined #ruby
kemist_ has quit [Ping timeout: 252 seconds]
kushalkhandelwal has quit [Remote host closed the connection]
buibex has quit [Ping timeout: 264 seconds]
mark_locklear has joined #ruby
kushalkhandelwal has joined #ruby
dustint has left #ruby ["Leaving"]
Neomex has quit [Quit: Neomex]
mark_locklear has quit [Remote host closed the connection]
banjara has joined #ruby
timonv has joined #ruby
GhettoCode has joined #ruby
kushalkhandelwal has quit [Remote host closed the connection]
kushalkhandelwal has joined #ruby
<apeiros> panzi: you're lacking context
<MrZYX> isn't it always rails in that case?
<apeiros> MrZYX: I'd assume so. but I prefer forcing people to ask proper questions :-)
<apeiros> Vivekananda: attr_* methods are in the Module class. just reopen it and add the method there.
ravigehlot_ has left #ruby [#ruby]
<apeiros> class Module; def attr_with_history … end; end
<panzi> apeiros: I've a model that has a serialized column. some of the attributes of the serialized object should be transient (e.g. because they are recursive) and not serialized. how do I make sure these attributes are not serialized?
<panzi> oh, I'm in #ruby, not in #rails
<panzi> sorry
<Vivekananda> apeiros: Reopening would be creating a class Class and adding it there or is there a way I can reopen the already written class Class
<apeiros> Vivekananda: opening a class that already exists doesn't create a new one.
kushalkhandelwal has quit [Remote host closed the connection]
<apeiros> >> class Foo; def self.bar; "blubb"; end; end; class Foo; def self.baz; "blabb"; end; end; p Foo.bar
<eval-in> apeiros => "blubb" ... (http://eval.in/16147)
shadoi1 has joined #ruby
kushalkhandelwal has joined #ruby
Sigma00 has quit [Quit: ZNC - http://znc.in]
<MrZYX> >> class String; def shift; slice!(1..-1); end; "blub".shift
<eval-in> MrZYX => /tmp/execpad-e1936d026f29/source-e1936d026f29:3: syntax error, unexpected end-of-input, expecting keyword_end (http://eval.in/16148)
<MrZYX> ew
<apeiros> lol
generalissimo has quit [Remote host closed the connection]
<MrZYX> class String; def shift; slice!(1..-1); end; end; "blub".shift
guiocavalcanti has joined #ruby
<Vivekananda> :)
Sigma00 has joined #ruby
<MrZYX> okay, I stop it
<apeiros> pesky syntax errors! lurking in the dark corners of your code! :)
kushalkhandelwal has quit [Remote host closed the connection]
kushalkhandelwal has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
elaptics is now known as elaptics`away
nil1511 has joined #ruby
ariedler has joined #ruby
knapper_tech has joined #ruby
reset has joined #ruby
kushalkhandelwal has quit [Remote host closed the connection]
jrendell has joined #ruby
kushalkhandelwal has joined #ruby
kpshek has quit []
rvchangue has joined #ruby
nil1511 has quit [Ping timeout: 260 seconds]
ph^ has joined #ruby
lessless has quit [Remote host closed the connection]
kushalkhandelwal has quit [Remote host closed the connection]
braoru has joined #ruby
kushalkhandelwal has joined #ruby
kenneth has joined #ruby
kpshek has joined #ruby
timonv has quit [Remote host closed the connection]
jrendell has quit [Ping timeout: 252 seconds]
kushalkhandelwal has quit [Read error: Connection reset by peer]
wolcanus has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
kushalkhandelwal has joined #ruby
Catbuntu has quit [Quit: RARING]
wolcanus has joined #ruby
sambao21 has joined #ruby
mark_locklear has joined #ruby
kushalkhandelwal has quit [Remote host closed the connection]
breakingthings has quit []
bean has joined #ruby
kushalkhandelwal has joined #ruby
Sigma00 has quit [Quit: ZNC - http://znc.in]
dankest has joined #ruby
louism2__ has joined #ruby
Sigma00 has joined #ruby
wsterling has joined #ruby
<louism2__> Hey everyone, I am trying to include a module in a class and use that modules methods inside a class method but I can't seem to get it to work. https://gist.github.com/louism2/5374059
_maes_ has joined #ruby
breakingthings has joined #ruby
kushalkhandelwal has quit [Remote host closed the connection]
<apeiros> louism2__: include Mod adds the instance methods as instance methods
<apeiros> you can't call them from class methods.
kushalkhandelwal has joined #ruby
<apeiros> you have to use `extend Mod` to add instance methods as class methods.
gaahrdner has joined #ruby
jonathanwallace has joined #ruby
jfredee has joined #ruby
Uranio has joined #ruby
tk_ has quit [Quit: ばいばい]
gaahrdner has quit [Read error: Connection reset by peer]
m8 has joined #ruby
gaahrdner has joined #ruby
rburton- has joined #ruby
ph^ has quit [Remote host closed the connection]
<Vivekananda> apeiros: while searching for class eval I accidentaly got the sollution to the problem itself. I am trying to understand how it works but having trouble in the class_eval and how it works. http://paul-wong-jr.blogspot.com/2012/04/ruby-metaprogramming-with-classeval.html
slainer68 has joined #ruby
Mattix has quit [Ping timeout: 256 seconds]
jokke has quit [Ping timeout: 252 seconds]
kushalkhandelwal has quit [Remote host closed the connection]
braoru has quit [Ping timeout: 260 seconds]
Arzaga has joined #ruby
rsahae has quit [Quit: rsahae]
kushalkhandelwal has joined #ruby
kpshek has quit []
theRoUS has quit [Ping timeout: 256 seconds]
rious615 has joined #ruby
a_a_g has quit [Quit: This computer has gone to sleep]
<louism2__> apeiros: I am calling them inside the class method as Class.new.method
<louism2__> does that not work?
dhruvasagar has joined #ruby
ehellman has quit [Ping timeout: 246 seconds]
Sigma00 has quit [Quit: ZNC - http://znc.in]
kushalkhandelwal has quit [Remote host closed the connection]
kushalkhandelwal has joined #ruby
Sigma00 has joined #ruby
pcarrier has quit [Quit: Computer has gone to sleep.]
<apeiros> louism2__: as said, no. you can't use an instance method from within a class method. you can only use class methods.
sambao21 has quit [Quit: Computer has gone to sleep.]
<apeiros> instance method need an instance in order to work. hence the name "instance method".
<louism2__> apeiros: I get that. So why doesn't Model.new.module_method work?
<louism2__> it is being called on an instance of the class
rious615 has left #ruby [#ruby]
_nitti has joined #ruby
sambao21 has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
chrishough has quit [Quit: chrishough]
deric_skibotn has quit [Ping timeout: 252 seconds]
_maes_ has quit [Ping timeout: 248 seconds]
kushalkhandelwal has quit [Remote host closed the connection]
entr0py_ has joined #ruby
kirun has quit [Ping timeout: 252 seconds]
kushalkhandelwal has joined #ruby
kpshek has joined #ruby
entr0py_ has quit [Remote host closed the connection]
grenzr has joined #ruby
Arzaga has quit [Ping timeout: 258 seconds]
pkrnj has joined #ruby
havenwood has quit [Remote host closed the connection]
cmarques has quit [Ping timeout: 255 seconds]
stoic_squirrel has quit [Quit: Textual IRC Client: www.textualapp.com]
havenwood has joined #ruby
timonv has joined #ruby
drfreeze has quit [Ping timeout: 264 seconds]
<louism2__> apeiros: silence?
drfreeze has joined #ruby
thams has quit [Quit: thams]
pioz has joined #ruby
danman has joined #ruby
hiyakashi has joined #ruby
kushalkhandelwal has quit [Remote host closed the connection]
Morkel has quit [Read error: Connection reset by peer]
kushalkhandelwal has joined #ruby
Morkel has joined #ruby
deric_skibotn has joined #ruby
Ruby has joined #ruby
Ruby has quit [Client Quit]
d34th4ck3r has quit [Read error: Connection reset by peer]
havenwood has quit [Ping timeout: 255 seconds]
etcetera has quit []
Mattix has joined #ruby
guiocavalcanti has quit [Read error: Connection timed out]
<apeiros> louism2__: "why doesn't x work" isn't really a question I can help with. provide context, provide code. if you included the module into the model, the method should work. that's all I can say with the current problem description.
pioz has quit [Quit: This computer has gone to sleep]
kushalkhandelwal has quit [Remote host closed the connection]
kushalkhandelwal has joined #ruby
chandankumar has joined #ruby
gr4yscale has quit [Quit: Computer has gone to sleep.]
tevio has joined #ruby
panzi has left #ruby [#ruby]
banisterfiend has joined #ruby
kushalkhandelwal has quit [Read error: Connection reset by peer]
guiocavalcanti has joined #ruby
ariedler has quit [Remote host closed the connection]
kushalkhandelwal has joined #ruby
axl_ has quit [Quit: axl_]
heliumsocket has joined #ruby
<Vivekananda> apeiros: in my problems I am trying to look for two things. 1. look for where attr_accessor is defined by using - ri Class.attr_reader but it is not there.
<louism2__> apeiros: posted that the first time
kirun has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
ph^ has joined #ruby
ph^ has quit [Remote host closed the connection]
Nimsical has joined #ruby
eee19 has quit [Ping timeout: 258 seconds]
kushalkhandelwal has quit [Remote host closed the connection]
generalissimo has joined #ruby
enebo has quit [Ping timeout: 256 seconds]
banisterfiend has quit [Read error: Connection reset by peer]
sambao21 has joined #ruby
eee19 has joined #ruby
banisterfiend has joined #ruby
kushalkhandelwal has joined #ruby
enebo has joined #ruby
<Vivekananda> 2. trying to see where instance methods are defined and how. in this example - http://stackoverflow.com/questions/9658724/ruby-metaprogramming-class-eval/9658775#9658775 .--- one answer says "You execute this on class level, not in object level. The variable @bar_history is not available in a Foo-object, but in the Foo-class." . Isnt class already an object of class and hence foo is also an object of class. should it not i
<Vivekananda> nherit the methods ?
<Vivekananda> sorry a little confused
etcetera has joined #ruby
cmarques has joined #ruby
havenwood has joined #ruby
<apeiros> Vivekananda: with `class Foo; end; foo = Foo.new`, foo is an instance of the class Foo. the class Foo is an instance of the class Class
<apeiros> but that does not make foo an instance of class Class.
kushalkhandelwal has quit [Remote host closed the connection]
Nimsical has quit [Ping timeout: 248 seconds]
kpshek has quit []
kushalkhandelwal has joined #ruby
wolcanus has quit [Remote host closed the connection]
ariedler has joined #ruby
stkowski has quit [Quit: stkowski]
axl_ has joined #ruby
Uranio has quit [Quit: while you reading this, a kitty dies]
altivec has joined #ruby
kushalkhandelwal has quit [Remote host closed the connection]
mengu has quit [Ping timeout: 256 seconds]
chussenot has joined #ruby
mercwithamouth has joined #ruby
kushalkhandelwal has joined #ruby
jgrevich has quit [Quit: jgrevich]
psyprus has quit [Read error: Connection reset by peer]
timmow has joined #ruby
psyprus has joined #ruby
angusiguess has quit [Ping timeout: 260 seconds]
d2dchat has quit [Remote host closed the connection]
stoic_squirrel has joined #ruby
<apeiros> Vivekananda: also inheritance and instantiation are not the same. inheritance is about superclass/ancestors. instantiation is about the class of an object.
memristor has joined #ruby
Mchl has quit [Read error: Operation timed out]
nil1511 has joined #ruby
kushalkhandelwal has quit [Remote host closed the connection]
kushalkhandelwal has joined #ruby
mikepack has joined #ruby
shirokuro11 has joined #ruby
Arzaga has joined #ruby
shirokuro11 has quit [Remote host closed the connection]
timmow has quit [Ping timeout: 252 seconds]
mark_locklear has quit [Remote host closed the connection]
jgrevich has joined #ruby
arietis has joined #ruby
eykosioux has quit [Remote host closed the connection]
Mchl has joined #ruby
Spooner_ has quit [Remote host closed the connection]
eykosioux has joined #ruby
chrishough has joined #ruby
havenwood has quit [Remote host closed the connection]
kushalkhandelwal has quit [Read error: Connection reset by peer]
braoru has joined #ruby
c0rn has joined #ruby
wolcanus has joined #ruby
kushalkhandelwal has joined #ruby
nil1511 has quit [Read error: Connection reset by peer]
Spooner has joined #ruby
rezzack has joined #ruby
frem has joined #ruby
louism2__ has quit [Quit: Leaving]
dummies_freelanc has quit [Quit: Leaving.]
etcetera has quit []
kpshek has joined #ruby
chussenot has quit [Ping timeout: 245 seconds]
kushalkhandelwal has quit [Read error: Connection reset by peer]
eykosioux has quit [Ping timeout: 256 seconds]
Czupa has quit [Read error: Connection reset by peer]
momomomomo has joined #ruby
kushalkhandelwal has joined #ruby
etcetera has joined #ruby
timonv has quit [Remote host closed the connection]
memristor has quit [Read error: Connection reset by peer]
mikepack has quit [Remote host closed the connection]
kushalkhandelwal has quit [Remote host closed the connection]
rsahae has joined #ruby
brunoro has joined #ruby
mando has quit [Remote host closed the connection]
rsahae has quit [Client Quit]
brunoro has quit [Client Quit]
psyprus has quit [Ping timeout: 258 seconds]
Davey has quit [Quit: Computer has gone to sleep.]
kushalkhandelwal has joined #ruby
brunoro has joined #ruby
brunoro has quit [Client Quit]
geggam has joined #ruby
Faris9 has joined #ruby
basex has quit [Quit: basex]
marti1125 has joined #ruby
chussenot has joined #ruby
kushalkhandelwal has quit [Remote host closed the connection]
pcarrier has joined #ruby
<marti1125> Hi!
<banisterfiend> marti1125: HI!!!!!!!!!!!!!!!!!!
memristor has joined #ruby
<marti1125> a bot?
<marti1125> XD
ariedler has quit [Remote host closed the connection]
kushalkhandelwal has joined #ruby
<injekt> banisterfiend is basically a bot
<banisterfiend> :))
GhettoCode has quit [Quit: Computer has gone to sleep.]
wreckimnaked has joined #ruby
<MrZYX> he passes the extended turing test though
Iszak has joined #ruby
<apeiros> lets say banisterfiend is a biochemical automaton with some interesting choices of chemical input compounds
sambao21 has quit [Quit: Computer has gone to sleep.]
<marti1125> could you tell me what is irc channel of ruby on rails?
ffranz has quit [Ping timeout: 246 seconds]
<apeiros> #rubyonrails - as stated on rubyonrails.org
enebo has quit [Quit: enebo]
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
<marti1125> thanks!
d2dchat has joined #ruby
d2dchat has quit [Remote host closed the connection]
kushalkhandelwal has quit [Remote host closed the connection]
pcarrier has quit [Client Quit]
basex has joined #ruby
pcarrier has joined #ruby
kushalkhandelwal has joined #ruby
rsahae has joined #ruby
heliumsocket has quit [Quit: heliumsocket]
staafl has quit [Read error: Connection reset by peer]
arietis has quit [Quit: Computer has gone to sleep.]
ariedler has joined #ruby
br4ndon has joined #ruby
rakl has quit [Quit: sleeping]
rsahae has quit [Client Quit]
kushalkhandelwal has quit [Remote host closed the connection]
pcarrier has quit [Client Quit]
angusiguess has joined #ruby
kushalkhandelwal has joined #ruby
Banistergalaxy has quit [Ping timeout: 256 seconds]
blacktul_ has joined #ruby
cads has joined #ruby
notVert has joined #ruby
Arzaga has quit [Quit: Computer has gone to sleep.]
basex has quit [Quit: basex]
mneorr_ has quit [Remote host closed the connection]
blacktulip has quit [Ping timeout: 264 seconds]
ariedler has quit [Remote host closed the connection]
rsahae has joined #ruby
pkrnj has quit [Quit: Computer has gone to sleep.]
benlieb has quit [Quit: benlieb]
etcetera has quit []
Vert has quit [Ping timeout: 252 seconds]
motto has joined #ruby
benlieb has joined #ruby
ph^ has joined #ruby
kirun has quit [Ping timeout: 264 seconds]
m8 has quit [Disconnected by services]
pkrnj has joined #ruby
sambao21 has joined #ruby
ariedler has joined #ruby
chussenot has quit [Quit: chussenot]
ariedler has quit [Remote host closed the connection]
ffranz has joined #ruby
kushalkhandelwal has quit [Remote host closed the connection]
mengu has joined #ruby
ariedler has joined #ruby
rburton- has quit [Quit: Linkinus - http://linkinus.com]
kushalkhandelwal has joined #ruby
DrShoggoth has quit [Ping timeout: 264 seconds]
ariedler has quit [Remote host closed the connection]
timonv has joined #ruby
pcarrier has joined #ruby
asteve has left #ruby ["["Textual IRC Client: www.textualapp.com"]"]
pcarrier has quit [Client Quit]
divout has quit [Quit: Leaving.]
divout has joined #ruby
jdolitsky has joined #ruby
altivec has quit [Quit: Textual IRC Client: www.textualapp.com]
divout has quit [Client Quit]
etcetera has joined #ruby
divout has joined #ruby
eykosioux has joined #ruby
dmiller has joined #ruby
GhettoCode has joined #ruby
theRoUS has quit [Ping timeout: 248 seconds]
Guedes is now known as Guedes_out
kpshek has quit []
ph^ has quit [Remote host closed the connection]
ryannielson has quit [Quit: ryannielson]
cantonic has quit [Quit: cantonic]
pcarrier has joined #ruby
eykosioux has quit [Ping timeout: 245 seconds]
csaunders has quit [Quit: Computer has gone to sleep.]
kpshek has joined #ruby
akashj87 has quit [Quit: nn]
mneorr has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
Arzaga has joined #ruby
timonv has quit [Remote host closed the connection]
dmiller has quit [Ping timeout: 252 seconds]
pcarrier has quit [Client Quit]
pcarrier has joined #ruby
psyprus has joined #ruby
motto is now known as m8
m8 is now known as Guest64412
dmiller has joined #ruby
snearch has joined #ruby
kemist has joined #ruby
Guest64412 is now known as m8
m8 has quit [Changing host]
m8 has joined #ruby
pcarrier has quit [Client Quit]
hmarr has quit [Ping timeout: 252 seconds]
eldariof has quit []
gyre007 has quit [Ping timeout: 256 seconds]
buibex has joined #ruby
sayan has joined #ruby
memristor has quit [Read error: Connection reset by peer]
Davey has joined #ruby
bluOxigen has joined #ruby
kirun has joined #ruby
Arzaga has quit [Quit: Computer has gone to sleep.]
dallasm has joined #ruby
axl_ has quit [Ping timeout: 276 seconds]
br4ndon has quit [Ping timeout: 264 seconds]
axl_ has joined #ruby
Skofo has joined #ruby
kemist has quit [Remote host closed the connection]
memristor has joined #ruby
tootubular has joined #ruby
rismoney has joined #ruby
jnoob22 has quit [Remote host closed the connection]
ariedler has joined #ruby
dmiller has quit [Ping timeout: 264 seconds]
jeebster has quit [Quit: Leaving.]
brennanMKE has joined #ruby
thams has joined #ruby
brennanMKE has quit [Remote host closed the connection]
brennanM_ has joined #ruby
psyprus has quit [Ping timeout: 258 seconds]
psyprus has joined #ruby
mityaz has quit [Quit: See ya!]
guiocavalcanti has quit [Remote host closed the connection]
guiocavalcanti has joined #ruby
Skofo has quit [Quit: Leaving]
_veer has quit [Ping timeout: 258 seconds]
ph^ has joined #ruby
Skofo has joined #ruby
GhettoCode has quit [Quit: Computer has gone to sleep.]
_veer has joined #ruby
mando has joined #ruby
banisterfiend has quit [Remote host closed the connection]
atno has quit [Remote host closed the connection]
atno has joined #ruby
pandawarrior has joined #ruby
Morkel has quit [Quit: Morkel]
cmarques has quit [Ping timeout: 245 seconds]
kpshek has quit []
Bry8Star has quit [Remote host closed the connection]
pcarrier has joined #ruby
mneorr has quit [Remote host closed the connection]
grenzr has quit [Quit: grenzr]
pcarrier has quit [Client Quit]
Spooner has quit [Remote host closed the connection]
Bry8Star has joined #ruby
ariedler has quit [Remote host closed the connection]
eykosioux has joined #ruby
pcarrier has joined #ruby
pcarrier has quit [Client Quit]
ariedler has joined #ruby
pcarrier has joined #ruby
banisterfiend has joined #ruby
_veer has quit [Ping timeout: 245 seconds]
yshh has joined #ruby
Sicp has joined #ruby
_nitti has quit [Remote host closed the connection]
_veer has joined #ruby
_veer has quit [Changing host]
_veer has joined #ruby
pcarrier has quit [Client Quit]
_nitti has joined #ruby
pcarrier has joined #ruby
Sicp has quit [Changing host]
Sicp has joined #ruby
pcarrier has quit [Client Quit]
enebo has joined #ruby
ninegrid has quit [Ping timeout: 252 seconds]
eykosioux has quit [Ping timeout: 245 seconds]
ph^ has quit [Remote host closed the connection]
marti1125 has quit [Ping timeout: 245 seconds]
jfredee has quit [Read error: Connection reset by peer]
pcarrier has joined #ruby
Alaude has joined #ruby
Neomex has joined #ruby
Neomex has quit [Client Quit]
Alaude has left #ruby [#ruby]
Akuma has quit [Ping timeout: 252 seconds]
pitzips has joined #ruby
jokke has joined #ruby
thone_ has joined #ruby
DrShoggoth has joined #ruby
chandankumar has quit [Ping timeout: 255 seconds]
pcarrier has quit [Client Quit]
jkamenik has quit [Quit: Leaving.]
forrest has joined #ruby
jrn has quit [Quit: Verlassend]
thone has quit [Ping timeout: 256 seconds]
jeebster has joined #ruby
banister_ has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
mlr_ has joined #ruby
mlr_ is now known as mlr
mlr has left #ruby [#ruby]
kamsky has quit [Remote host closed the connection]
wreckimnaked has quit [Ping timeout: 240 seconds]
Nisstyre-laptop has joined #ruby
psyprus has quit [Remote host closed the connection]
psyprus has joined #ruby
jonathanwallace has quit [Quit: WeeChat 0.3.9.2]
trautwein has joined #ruby
codenapper has quit [Read error: Operation timed out]
threesome has quit [Read error: Connection reset by peer]
dazoakley has joined #ruby
dazoakley has quit [Client Quit]
ndngvr has joined #ruby
dazoakley has joined #ruby
jonathanwallace has joined #ruby
reset has quit [Ping timeout: 252 seconds]
dazoakley has quit [Client Quit]
trautwein has quit [Ping timeout: 256 seconds]
Elhu has joined #ruby
Akuma has joined #ruby
codenapper has joined #ruby
trautwein has joined #ruby
Elhu has quit [Client Quit]
trautwei has joined #ruby
trautwei has quit [Client Quit]
dallasm has quit [Remote host closed the connection]
pcarrier has joined #ruby
Nisstyre-laptop has quit [Read error: Connection reset by peer]
yours_truly has joined #ruby
codenapper has quit [Ping timeout: 256 seconds]
trautwein has quit [Ping timeout: 248 seconds]
tenmilestereo has quit [Quit: Leaving]
snearch has quit [Read error: Connection reset by peer]
danman has quit [Quit: danman]
csmrfx has left #ruby ["cyas"]
psyprus has quit [Read error: Connection reset by peer]
nicoulaj has quit [Remote host closed the connection]
braoru has quit [Ping timeout: 252 seconds]
Nisstyre has quit [Disconnected by services]
perun0 has quit [Ping timeout: 245 seconds]
Nisstyre has joined #ruby
yours_truly is now known as Nisstyre-laptop
Nisstyre-laptop has quit [Changing host]
Nisstyre-laptop has joined #ruby
ninegrid has joined #ruby
Uranio has joined #ruby
rudisimo has quit [Quit: Leaving.]
workmad3 has joined #ruby
tootubular has quit [Quit: tootubular]
Astral_ has joined #ruby
<greenarrow> Could anyone help me out, I'm making a request to an API and getting an error code with this as it's response http://i.imgur.com/29RtIkk.png
<greenarrow> How would i add that to the header?
smigg has quit [Remote host closed the connection]
cmarques has joined #ruby
Astralum has quit [Ping timeout: 248 seconds]
bradleyprice has quit [Read error: Connection reset by peer]
bradleyprice has joined #ruby
enriclluelles has joined #ruby
pcarrier has quit [Quit: Computer has gone to sleep.]
pcarrier has joined #ruby
stkowski has joined #ruby
<xibalba> trying to follow this ruby code in a book i'm reading. however when i execute irb19, and put in the following
<xibalba> a = [ 3.14159, "pie", 99 ] \n a.type I get the error -:3:in `<main>': undefined method `type' for [3.14159, "pie", 99]:Array (NoMethodError)
<Hanmac> xibalba: "type" is very outdated, use "class"
<xibalba> oh i guess i'm reading the 1.8 book
axl_ has quit [Quit: axl_]
perun0 has joined #ruby
v0n has quit [Ping timeout: 264 seconds]
robscomp_ has joined #ruby
<Hanmac> xibalba: its more before 1.8.7 which will die in the next months ... so it may be 1.8.6 or before which is already dead
robscomputer_ has quit [Read error: Connection reset by peer]
<xibalba> is the 1.9 pragmatic programmers guide available online for free/
pcarrier has quit [Client Quit]
knapper_tech has quit [Ping timeout: 246 seconds]
psyprus has joined #ruby
pandawarrior has quit [Quit: Leaving.]
pandawarrior has joined #ruby
<Hanmac> hm it doesnt look like that
stoic_squirrel has quit [Quit: Textual IRC Client: www.textualapp.com]
shortcutmedia has joined #ruby
busybox42 has quit [Quit: leaving]
yshh has quit [Remote host closed the connection]
busybox42 has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
arya_ has joined #ruby
carloslopes has quit [Remote host closed the connection]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
Nahra` has quit [Remote host closed the connection]
jonathanwallace has quit [Ping timeout: 256 seconds]
<xibalba> im going off of this one, which i think is bit out dated, http://lethalnetworks.com/ruby/
robscomputer_ has joined #ruby
veinofstars has quit [Ping timeout: 256 seconds]
robscomp_ has quit [Ping timeout: 240 seconds]
Nahra has joined #ruby
brennanM_ has quit [Remote host closed the connection]
arya has quit [Ping timeout: 248 seconds]
lktp has joined #ruby
shortcutmedia has quit [Ping timeout: 245 seconds]
Iszak has quit [Quit: Textual IRC Client: www.textualapp.com]
<xibalba> Hanmac, can you check this out ; http://pastebin.ubuntu.com/5702797/
<xibalba> i can see you can set an array index to another array
<xibalba> but when i do a[1] = a, why does the index come out as 1, [...]
shortcutmedia has joined #ruby
<xibalba> what's that mean?
threesome has joined #ruby
ariedler has quit [Remote host closed the connection]
<Hanmac> [...] means recrusion
busybox42 has quit [Quit: leaving]
<Hanmac> in ruby its possible that an object can include itself or point to itself
busybox42 has joined #ruby
<Xeago> Hanmac: in which language is that not possible?
volte_ has quit [Ping timeout: 245 seconds]
<xibalba> Hanmac, would that be infinetly recursive?
<Xeago> xibalba: yes
<Hanmac> Xeago i dont know? maybe php does not show it that nicely?
solidoodlesuppor has quit [Remote host closed the connection]
<xibalba> ok, seems like it'd be easy to get into an infinite loop scenario w/that
shadoi1 has quit [Quit: Leaving.]
mikepack has joined #ruby
brianpWins has quit [Quit: brianpWins]
shadoi has joined #ruby
perun0 has quit [Ping timeout: 276 seconds]
postmodern has joined #ruby
psyprus has quit [Ping timeout: 258 seconds]
carlyle has quit [Remote host closed the connection]
bradleyprice has quit [Remote host closed the connection]
baphled_ has joined #ruby
eykosioux has joined #ruby
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
pcarrier has joined #ruby
elux has quit [Quit: Leaving...]
guns has quit [Quit: guns]
baphled_ has quit [Ping timeout: 246 seconds]
<xibalba> how does this work?
<xibalba> list.
<xibalba> append(Song.new('title1', 'artist1', 1)).
<xibalba> append(Song.new('title2', 'artist2', 2)).
sayan has quit [Read error: Connection reset by peer]
eykosioux has quit [Ping timeout: 245 seconds]
<xibalba> since it's calling the same method on the same object does it know to call the method twice on the same object?
baphled_ has joined #ruby
<amacleod_> xibalba, it works because append returns the list itself.
<xibalba> ohhhh
fermion has quit [Quit: Textual IRC Client: www.textualapp.com]
<xibalba> list.append (first call returns 'this' or 'self) then self.append() again
<xibalba> basically
niko__ has quit [Remote host closed the connection]
adamjleonard has quit [Quit: Leaving...]
divout has quit [Remote host closed the connection]
<xibalba> interesting
dmerrick has joined #ruby
<amacleod_> yeah. It's kinda like foo = list.append(x); foo.append(y);
arya_ has quit [Ping timeout: 248 seconds]
fermion has joined #ruby
wolcanus has quit [Remote host closed the connection]
<xibalba> ok, self seems equivlent's to C++'s `this`
<amacleod_> Sort of.
mrwalker has joined #ruby
Ontolog_ is now known as Ontolog
carlyle has joined #ruby
sailias has quit [Ping timeout: 258 seconds]
codezombie has joined #ruby
dankest has quit [Ping timeout: 248 seconds]
veinofstars has joined #ruby
dankest has joined #ruby
jtharris has quit [Quit: WeeChat 0.4.0]
bhaarat has quit [Quit: bhaarat]
volte has joined #ruby
perun0 has joined #ruby
arya has joined #ruby
hmarr has joined #ruby
frem has quit [Ping timeout: 260 seconds]
psyprus has joined #ruby
_veer has quit [Ping timeout: 245 seconds]
braoru has joined #ruby
_veer has joined #ruby
_veer has quit [Changing host]
_veer has joined #ruby
oneirophren has quit [Quit: Lost terminal]
<amacleod_> One interesting thing is that self is assigned a value even in the "top level".
ph^ has joined #ruby
kimteq has joined #ruby
tomku has quit [Ping timeout: 240 seconds]
timonv has joined #ruby
tomku has joined #ruby
<yxhuvud> amacleod_: turtles all the way down.
<amacleod_> Turtles, and the occasional elephant.
bigmac has joined #ruby
<nezumi> One turtle and 4 elephants.
<amacleod_> Well, in Discworld, it's elephants all the way down.
<banister_> amacleod_: this blog post explains top-level in depth, it's a heart breaking work of staggering genius http://banisterfiend.wordpress.com/2010/11/23/what-is-the-ruby-top-level/
<amacleod_> Fascinating!
bluOxigen has quit [Ping timeout: 264 seconds]
ph^ has quit [Ping timeout: 256 seconds]
jacobbednarz has joined #ruby
mrwalker has quit [Ping timeout: 256 seconds]
<yxhuvud> banister: is the toplevel or the blog post a work of a genious? :PÅ
timonv has quit [Ping timeout: 252 seconds]
bhaarat has joined #ruby
<banister_> yxhuvud: actually the top level itself is pretty clever but maybe weirder than it needs to be
hmarr has quit []
<amacleod_> That last code sample gave me the shivers.
nezumi has quit [Ping timeout: 264 seconds]
deric_skibotn has quit [Ping timeout: 252 seconds]
bhaarat has quit [Client Quit]
RobW has joined #ruby
<RobW> Is there a way to get a gem library directory from the command line?
<banister_> RobW: gem which GEM_NAME
<RobW> banister_ That gives me the executable, but I'm looking for the library/ gem source/ downloaded repo
<RobW> Sorry, I'm not familar with exactly what it should be called
pkrnj has quit [Quit: Computer has gone to sleep.]
breakingthings has quit []
<banister_> RobW: it's in the same directory tree, just a level or two up
oneirophren has joined #ruby
bean has quit [Quit: Computer has gone to sleep.]
<banister_> RobW: for example:
<banister_> [34] pry(main)> .gem which pry
<banister_> /Users/johnmair/.rvm/gems/ruby-2.0.0-p0/gems/pry-1.0.0.pre1/lib/pry.rb
<banister_> RobW: the actual pry code is just in lib/
interact_ has quit [Remote host closed the connection]
Uranio has quit [Quit: while you reading this, a kitty dies]
<RobW> banister_: It doesn't seem to be consistant, depending on whether you're using RVM or default Ruby (on my mac)
alanp has quit [Read error: Connection reset by peer]
<RobW> Asking for a Grunt task
alanp has joined #ruby
<banister_> RobW: well, that's an environment path problem u have to resolve yourself :P
<RobW> Where I'd like to copy out some scaffolding files from a gem's source.
ariedler has joined #ruby
<banister_> RobW: in pry, use: gem-cd GEM_NAME
<banister_> let me show u
amacleod_ has quit [Quit: Leaving]
knapper_tech has joined #ruby
sayan has joined #ruby
stacky has joined #ruby
bean has joined #ruby
btaitelb has quit [Quit: btaitelb]
forrest has quit [Quit: Leaving]
echevemaster has joined #ruby
robscomp_ has joined #ruby
robscomputer_ has quit [Ping timeout: 260 seconds]
<RobW> banister_: Thank you, that was seriously informative.
<RobW> Don't think I can use pry or irb with Grunt, but that will help with my general Ruby learning.
robscomp_ has quit [Read error: Connection reset by peer]
ggun has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
robscomputer_ has joined #ruby
Faris9 has quit [Ping timeout: 245 seconds]
perun0 has quit [Ping timeout: 256 seconds]
<RobW> Also, showterm is awesome. I've never seen it before.
<banister_> RobW: yeah it's cool
pcarrier has quit [Quit: Computer has gone to sleep.]
sayan has quit [Excess Flood]
shortcutmedia has quit [Remote host closed the connection]
sayan has joined #ruby
bean has quit [Quit: Computer has gone to sleep.]
shadoi has quit [Read error: Connection reset by peer]
shadoi has joined #ruby
ph^ has joined #ruby
dmiller has joined #ruby
Yakko has joined #ruby
etcetera has quit []
angusiguess has quit [Ping timeout: 245 seconds]
ph^ has quit [Remote host closed the connection]
cmarques has quit [Ping timeout: 256 seconds]
cbot_ has quit [Ping timeout: 276 seconds]
Nisstyre-laptop has quit [Quit: Leaving]
TomJ has joined #ruby
TomJ has joined #ruby
rsahae has quit [Quit: rsahae]
pcarrier has joined #ruby
jlast has quit [Remote host closed the connection]
carlyle has quit [Remote host closed the connection]
btaitelb has joined #ruby
Dreamer3 has joined #ruby
lktp has quit [Quit: This computer has gone to sleep]
pitzips has quit [Quit: Leaving]
enebo has quit [Ping timeout: 264 seconds]
dmerrick has quit [Remote host closed the connection]
perun0 has joined #ruby
andikr has quit [Read error: Connection reset by peer]
jonathanwallace has joined #ruby
nateberkopec has quit [Quit: Leaving...]
jamie_ca_ has quit [Quit: Computer has gone to sleep.]
ggun has quit [Quit: Leaving]
Faris has joined #ruby
shinobi_one has left #ruby [#ruby]
newUser1234 has quit [Remote host closed the connection]
rakl has joined #ruby
danbeck has quit [Quit: danbeck]
newUser1234 has joined #ruby
rsahae has joined #ruby
mercwithamouth has quit [Ping timeout: 260 seconds]
perun0 has quit [Ping timeout: 260 seconds]
RobW has left #ruby [#ruby]
EPIK has joined #ruby
r3d3 has joined #ruby
braoru has quit [Remote host closed the connection]
newUser1234 has quit [Ping timeout: 256 seconds]
Nisstyre-laptop has joined #ruby
mmitchell has quit [Remote host closed the connection]
_nitti has quit [Remote host closed the connection]
mando has quit [Remote host closed the connection]
jgrevich has quit [Ping timeout: 252 seconds]
stacky has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Ping timeout: 256 seconds]
BSaboia has quit [Read error: Connection reset by peer]
carloslopes has joined #ruby
jerius has quit [Ping timeout: 252 seconds]
jacobbednarz has quit [Quit: Computer has gone to sleep.]
rsahae has quit [Quit: rsahae]
hmarr has joined #ruby
eykosioux has joined #ruby
rsahae has joined #ruby
kirun has quit [Quit: Client exiting]
ehaliewicz has joined #ruby
alex__c2022 has joined #ruby
stacky has joined #ruby
jgrevich has joined #ruby
perun0 has joined #ruby
eykosioux has quit [Ping timeout: 255 seconds]
carloslopes has quit [Ping timeout: 276 seconds]
jekotia has joined #ruby
mercwithamouth has joined #ruby
alex__c2022 has quit [Ping timeout: 245 seconds]
jonahR has joined #ruby
shadoi1 has joined #ruby
idkazuma has joined #ruby
shadoi has quit [Ping timeout: 245 seconds]
gaahrdner has quit [Remote host closed the connection]
Guedes has joined #ruby
Guedes has quit [Changing host]
Guedes has joined #ruby
Nanuq has quit [Read error: Operation timed out]
mercwithamouth has quit [Ping timeout: 240 seconds]
mercwithamouth has joined #ruby
RagingDave has quit [Quit: Ex-Chat]
Nanuq has joined #ruby
m8 has quit [Quit: Sto andando via]
yshh has joined #ruby
lkba has joined #ruby
pskosinski has quit [Ping timeout: 256 seconds]
nwertman has joined #ruby
pandawarrior has quit [Quit: Leaving.]
Guedes has quit [Remote host closed the connection]
tomsthumb has quit [Quit: Leaving.]
rsahae has quit [Quit: rsahae]
tootubular has joined #ruby
mercwithamouth has quit [Ping timeout: 245 seconds]
nezumi has joined #ruby
mengu has quit [Quit: This computer has gone to sleep]
yshh has quit [Ping timeout: 245 seconds]
memristor has quit [Read error: Connection reset by peer]
mahmoudimus has joined #ruby
br4ndon has joined #ruby
xardas has quit [Quit: ChatZilla 0.9.90 [Firefox 19.0.2/20130307023931]]
br4ndon has quit [Client Quit]
br4ndon has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
mahmoudi_ has joined #ruby
rsahae has joined #ruby
pandawarrior has joined #ruby
rburton- has joined #ruby
angusiguess has joined #ruby
fir_ed has joined #ruby
mahmoudimus has quit [Ping timeout: 245 seconds]
predator217 has joined #ruby
codecop has quit [Quit: Išeinu]
shadoi1 has quit [Ping timeout: 255 seconds]
jonathanwallace has quit [Ping timeout: 255 seconds]
yfeldblum has joined #ruby
oneirophren has quit [Ping timeout: 245 seconds]
benlieb has quit [Quit: benlieb]
benlieb has joined #ruby
Mon_Ouie has quit [Ping timeout: 245 seconds]
jbueza has quit [Quit: Leaving.]
mahmoudimus has joined #ruby
guiocavalcanti has quit [Remote host closed the connection]
mvangala_ has quit [Remote host closed the connection]
guiocavalcanti has joined #ruby
rburton- has quit [Quit: Linkinus - http://linkinus.com]
predator117 has quit [Ping timeout: 252 seconds]
chxane has quit [Quit: Leaving]
mahmoudi_ has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
peta_ has quit [Quit: peta_]
guiocavalcanti has quit [Remote host closed the connection]
beneggett has quit [Ping timeout: 246 seconds]
Xeago_ has joined #ruby
Spooner has joined #ruby
nkr has quit [Quit: Linkinus - http://linkinus.com]
<Vivekananda> anyone here
Spooner has quit [Remote host closed the connection]
mvangala has joined #ruby
Xeago has quit [Ping timeout: 264 seconds]
bradhe has quit [Remote host closed the connection]
droppedonmyhead has quit [Quit: droppedonmyhead]
ner0x has joined #ruby
marty_mcfly has joined #ruby
lupine has quit [Excess Flood]
wsterling has quit [Read error: Connection reset by peer]
bhaarat has joined #ruby
wsterling has joined #ruby
xibalba has quit [Quit: Quit Msg]
sixty4k has quit [Quit: Computer has gone to sleep.]
Sicp has quit [Ping timeout: 245 seconds]
wreckimnaked has joined #ruby
tootubular has quit [Quit: tootubular]
moted_ has joined #ruby
moted has quit [Ping timeout: 252 seconds]
moted_ is now known as moted
vlad_starkov has quit [Remote host closed the connection]
lupine has joined #ruby
lupine has quit [Max SendQ exceeded]
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
pkrnj has joined #ruby
geggam has quit [Ping timeout: 276 seconds]
mrsolo has quit [Quit: Leaving]
mikepack has quit [Remote host closed the connection]
heliumsocket has joined #ruby
lupine has joined #ruby
geggam has joined #ruby
perun0 has quit [Ping timeout: 246 seconds]
arya has quit [Ping timeout: 248 seconds]
lupine has quit [Max SendQ exceeded]
ARCADIVS has joined #ruby
Proshot has quit [Quit: Leaving]
mercwithamouth has joined #ruby
skattyadz has quit [Quit: skattyadz]
eykosioux has joined #ruby
Sicp has joined #ruby
hiroyuki_ has joined #ruby
arya has joined #ruby
pandawarrior has quit [Quit: Leaving.]
lupine has joined #ruby
Nisstyre-laptop has quit [Read error: Connection reset by peer]
lupine has quit [Max SendQ exceeded]
eykosioux has quit [Ping timeout: 276 seconds]
hiroyuki has quit [Ping timeout: 256 seconds]
xibalba has joined #ruby
hmarr has quit []
codezombie has quit [Quit: Linkinus - http://linkinus.com]
_nitti has joined #ruby
skattyadz has joined #ruby
thams has quit [Quit: thams]
love_color_text has joined #ruby
marty_mcfly has quit [Ping timeout: 240 seconds]
BSaboia has joined #ruby
jdolitsky has quit [Quit: Leaving]
thams has joined #ruby
perun0 has joined #ruby
brianpWins has joined #ruby
brianpWins has quit [Remote host closed the connection]
sepp2k has quit [Read error: Connection reset by peer]
hmarr has joined #ruby
heliumsocket has quit [Quit: heliumsocket]
_nitti has quit [Ping timeout: 256 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
perun0 has quit [Ping timeout: 240 seconds]
wreckimnaked has quit [Ping timeout: 255 seconds]
tomsthumb has joined #ruby
buibex has quit [Remote host closed the connection]
feedbackloop has joined #ruby
nalaginrut has joined #ruby
skattyadz has quit [Quit: skattyadz]
vlad_starkov has joined #ruby
lupine has joined #ruby
banister_ has quit [Read error: Connection reset by peer]
geggam has quit [Remote host closed the connection]
pcarrier has quit [Quit: Computer has gone to sleep.]
tealmage has joined #ruby
banisterfiend has joined #ruby
r3d3 has quit [Ping timeout: 256 seconds]
rellin has joined #ruby
Heero has joined #ruby
Heero has joined #ruby