apeiros changed the topic of #ruby to: Ruby 2.0.0-p195: http://ruby-lang.org (Ruby 1.9.3-p429) || Paste >3 lines of text on http://gist.github.com
stonevil has quit [Remote host closed the connection]
denken has joined #ruby
sivoais has joined #ruby
bradhe has quit [Remote host closed the connection]
osvico has joined #ruby
sqa_bm has joined #ruby
TheDick has quit [Quit: TheDick]
Michael__ has quit [Remote host closed the connection]
tjkrusinski has joined #ruby
digitalcake has quit [Quit: Leaving.]
TheDick has joined #ruby
cj3kim has joined #ruby
justsee has quit [Ping timeout: 240 seconds]
dmiller has joined #ruby
[[mandrix]] has joined #ruby
sqa_bm has quit [Ping timeout: 248 seconds]
_Amaan has joined #ruby
agent_white has quit [Quit: leaving]
DanKnox is now known as DanKnox_away
zeade has quit [Quit: Leaving.]
l33 has joined #ruby
dmiller has quit [Remote host closed the connection]
atyz has joined #ruby
sleep`sleep has quit [Read error: Connection reset by peer]
l33 has quit [Remote host closed the connection]
kobain has quit [Ping timeout: 240 seconds]
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
Mattx has quit [Ping timeout: 246 seconds]
helvete has joined #ruby
kobain has joined #ruby
atyz has quit [Read error: Connection reset by peer]
DonRichie has quit [Ping timeout: 256 seconds]
DonRichie has joined #ruby
nowthatsamatt has quit [Quit: nowthatsamatt]
slainer68 has joined #ruby
mikeg has quit [Quit: Leaving]
nwertman has quit [Quit: nwertman]
nwertman has joined #ruby
darthdeus has joined #ruby
freerobby has joined #ruby
<jkline> do people typically create a class around their RSpec tests?
digitalcake has joined #ruby
Ortuna has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
hamburgerath has quit [Ping timeout: 260 seconds]
io_syl has quit [Remote host closed the connection]
nwertman has quit [Client Quit]
tomsthumb has quit [Quit: Leaving.]
Davey has joined #ruby
malcolmva has quit [Quit: Leaving]
brotatos has joined #ruby
GeissT has joined #ruby
freerobby has quit [Ping timeout: 276 seconds]
Dummies_freelanc has joined #ruby
brotatos has left #ruby [#ruby]
Mattx has joined #ruby
niklasb has joined #ruby
helvete has quit [Quit: Leaving...]
io_syl has joined #ruby
Deece has joined #ruby
k-man has joined #ruby
slainer68 has quit [Ping timeout: 248 seconds]
chipotle has joined #ruby
Nisstyre-laptop has joined #ruby
graydot has quit [Quit: graydot]
passcod has joined #ruby
Azulinho has quit [Ping timeout: 248 seconds]
Gooder` has joined #ruby
_maes_ has joined #ruby
gyre007 has joined #ruby
guns has joined #ruby
jbueza has quit [Quit: Leaving.]
yshh has quit [Remote host closed the connection]
banjara has quit [Quit: Leaving.]
headius has joined #ruby
Deece has left #ruby [#ruby]
Gooder has quit [Ping timeout: 260 seconds]
djbkd has quit [Quit: Leaving]
jonathanwallace has joined #ruby
Cyrus has quit [Quit: Cyrus.close()]
<k-man> i'm trying to get dashing to work, when i try and run it it says execjs needs a JavaScript runtime. I installed therubyracer wich i believe is a supported js runtime for execjs? but it still gives the same error
rickruby has joined #ruby
Retistic has joined #ruby
<Retistic> se
tvw has quit []
headius has quit [Quit: headius]
<Retistic> is there way to declare a default sort_by order in an object, similar to sort?
justsee has quit [Ping timeout: 248 seconds]
scottmey has joined #ruby
generalissimo has joined #ruby
scottmey has quit [Client Quit]
scottmey has joined #ruby
nari has joined #ruby
terrellt has joined #ruby
kinginky has joined #ruby
nowthatsamatt has joined #ruby
malcolmva has joined #ruby
freerobby has joined #ruby
freerobby has quit [Client Quit]
niklasb has quit [Ping timeout: 248 seconds]
failshell has joined #ruby
jztech101_ has quit [Read error: Connection reset by peer]
pcarrier_ has quit [Ping timeout: 248 seconds]
Spooner has quit [Ping timeout: 264 seconds]
rakl has joined #ruby
keanehsiao has joined #ruby
kpshek has joined #ruby
hogeo has joined #ruby
Spooner has joined #ruby
DonRichie has quit [Quit: Verlassend]
cj3kim has quit [Remote host closed the connection]
nowthatsamatt has quit [Quit: nowthatsamatt]
ivanoats has quit [Ping timeout: 248 seconds]
kevinykchan has joined #ruby
banjara has joined #ruby
Spooner has quit [Client Quit]
wallerdev has joined #ruby
pcarrier_ has joined #ruby
krainboltgreene has joined #ruby
cjs226 has joined #ruby
cj3kim has joined #ruby
Michael has joined #ruby
yshh has joined #ruby
JZTech101 has joined #ruby
Michael is now known as Guest61077
kpshek has quit []
Nisstyre-laptop has quit [Quit: Leaving]
ColKurtz has quit [Quit: Textual IRC Client: www.textualapp.com]
justsee has joined #ruby
mixel has quit [Quit: mixel]
robscomputer_ has joined #ruby
arquebus has joined #ruby
falood has joined #ruby
robscomputer_ has quit [Read error: Operation timed out]
uxp has quit [Read error: Connection reset by peer]
Heero` has joined #ruby
uxp has joined #ruby
robscomputer has quit [Ping timeout: 256 seconds]
nowthatsamatt has joined #ruby
kobain has quit [Read error: Connection reset by peer]
ariedler has quit [Remote host closed the connection]
kofno has joined #ruby
Voodoofish430 has quit [Quit: Leaving.]
dhruvasagar has joined #ruby
cofin has joined #ruby
mfridh has quit [Read error: Connection reset by peer]
justsee has quit [Ping timeout: 252 seconds]
wsterling has joined #ruby
Heero has quit [Ping timeout: 256 seconds]
kobain has joined #ruby
ariedler has joined #ruby
chrishough has quit [Quit: chrishough]
Deece has joined #ruby
<Deece> What's the easiest way to deploy binaries of a particular ruby version? I'm building a dev environment for a team of developers who need 2.0. They use OSX.
Soliah has joined #ruby
lyanchih has joined #ruby
bradhe has joined #ruby
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
<jkline> Deece: try rvm
banjara has quit [Client Quit]
allaire has joined #ruby
<sebastianb> Deece: puppet is the easiest solution
bradhe has quit [Read error: Operation timed out]
GeissT has quit [Read error: Connection reset by peer]
tjkrusinski has quit [Ping timeout: 248 seconds]
<jkline> I agree with sebastianb that configuration management should be used, but I don't know what you mean by "deploy"
<jkline> I think configuration management and "get a particular version of ruby" are related, but orthoganal
GeissT has joined #ruby
yxhuvud has quit [Read error: Connection reset by peer]
nightfly has quit [Ping timeout: 256 seconds]
Hanmac has joined #ruby
apeiros has joined #ruby
bhaak has quit [Read error: Operation timed out]
yxhuvud has joined #ruby
kenneth has quit [Quit: kenneth]
apeiros_ has quit [Read error: Connection reset by peer]
bhaak has joined #ruby
niklasb has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
thomasfedb has quit [Ping timeout: 252 seconds]
Hanmac2 has quit [Ping timeout: 276 seconds]
lyanchih has quit [Quit: lyanchih]
lyanchih has joined #ruby
<jkline> I don't know if there is a packaged way to install ruby 2.0 on an OS X at the System level. rvm will install it for each user in their home directory, or at the system level.
ivanoats has joined #ruby
joelteon has quit [Quit: bye]
thomasfedb has joined #ruby
mocfive has quit [Remote host closed the connection]
joelteon has joined #ruby
dmiller has joined #ruby
nathan28 has joined #ruby
mmitchell has joined #ruby
jdunck has quit [Quit: Computer has gone to sleep.]
lucianosousa has joined #ruby
adkron_ has joined #ruby
<Deece> jkline: I'm happy for it to be installed at the user level, I just don't want everyone on my team to have to build ruby from source. surely there's a way to package an installation of it?
<Deece> I guess this is more a beef with OSX than ruby, though..
thomasle_ has quit [Remote host closed the connection]
mixel has joined #ruby
rupee has quit [Quit: Leaving]
<nathan28> Deece: building from source is mostly automated if you use RVM
<Deece> nathan28: yeah, it's just time consuming
<nathan28> 10-15 minutes on my prev. generation centrino
<nathan28> 5 on my xeon workstation, also prev. gen
dmiller has quit [Ping timeout: 248 seconds]
fuzzyhorns has quit [Remote host closed the connection]
phipes has joined #ruby
gyre007 has quit [Remote host closed the connection]
adkron has quit [Ping timeout: 252 seconds]
arquebus has left #ruby [#ruby]
tjkrusin1ki has joined #ruby
tjbiddle_ has joined #ruby
mikewintermute has quit [Quit: mikewintermute]
failshell has quit [Remote host closed the connection]
justsee has quit [Ping timeout: 276 seconds]
TheDick has quit [Quit: TheDick]
JZTech101 has quit [Ping timeout: 248 seconds]
generalissimo has quit [Remote host closed the connection]
tjbiddle has quit [Ping timeout: 256 seconds]
tjbiddle_ is now known as tjbiddle
cyong has joined #ruby
tomsthumb has joined #ruby
jkline has quit [Quit: jkline]
kenneth has joined #ruby
Vert has quit [Ping timeout: 252 seconds]
pr0ton has quit [Quit: pr0ton]
sambao21 has joined #ruby
phipes has left #ruby [#ruby]
freerobby has joined #ruby
scottmey has quit [Quit: scottmey]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
TheDick has joined #ruby
Proshot has left #ruby [#ruby]
jnoob22_ has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
bionhart has quit [Remote host closed the connection]
crazysim has quit [Quit: ZNC - http://znc.in]
adkron has joined #ruby
wsterling has quit [Remote host closed the connection]
jurbat has joined #ruby
adkron_ has quit [Ping timeout: 252 seconds]
sqa_bm has joined #ruby
<lectrick> TTilus: It makes sense for "a = 5" to return 5, because that's both the value of a and the RHS. It is unclear whether to return a hash or the RHS in hash[:key]=rhs, though, and it would be nice if you could somehow pick which happens.
DonVitoCorleone has quit [Quit: Ojsaaaaaaaaaaaaaaaaaaaaaaa]
Eaven has joined #ruby
timkohrumel has quit [Remote host closed the connection]
<lectrick> TTilus: Similarly, it is unclear (except by language designer decision) whether a.b=5 should return the new a, or a.b, or 5 (the latter 2 being equivalent)
adkron_ has joined #ruby
Guest61077 has quit [Remote host closed the connection]
ner0x has quit [Quit: Leaving]
<lectrick> It would be nice if you could choose this on a class by class basis or override the default
adkron has quit [Ping timeout: 248 seconds]
benlieb has quit [Quit: benlieb]
Tarential has quit [Excess Flood]
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
Tarential has joined #ruby
predator217 has quit [Ping timeout: 252 seconds]
krombr has quit [Remote host closed the connection]
adkron_ has quit [Ping timeout: 240 seconds]
Hanmac has quit [Ping timeout: 240 seconds]
predator117 has joined #ruby
statarb3 has joined #ruby
statarb3 has joined #ruby
Guga_ has quit [Quit: ~]
Hanmac has joined #ruby
havenwood has quit [Remote host closed the connection]
Cyrus has joined #ruby
rickruby has quit [Remote host closed the connection]
niklasb has quit [Ping timeout: 248 seconds]
TheDick has quit [Quit: TheDick]
cj3kim has quit [Remote host closed the connection]
adkron has joined #ruby
hogeo_ has joined #ruby
devoldmx3 has quit [Quit: Bye]
devoldmx has joined #ruby
ttt has joined #ruby
hogeo has quit [Ping timeout: 240 seconds]
seich- has quit [Ping timeout: 260 seconds]
nari has quit [Ping timeout: 248 seconds]
jeebster has quit [Quit: Leaving.]
bhaak has quit [Read error: Operation timed out]
bhaak has joined #ruby
justsee has quit [Ping timeout: 248 seconds]
Ortuna has quit [Quit: Textual IRC Client: www.textualapp.com]
igaiga has joined #ruby
igaiga has quit [Client Quit]
adkron_ has joined #ruby
digitalcake has quit [Quit: Leaving.]
adkron has quit [Ping timeout: 240 seconds]
keanehsiao has quit [Quit: Leaving...]
k-man has left #ruby ["WeeChat 0.4.0"]
Mon_Ouie has quit [Ping timeout: 252 seconds]
statarb3 has quit [Quit: Leaving]
wsterling has joined #ruby
adkron has joined #ruby
adkron_ has quit [Ping timeout: 276 seconds]
hogeo_ has quit [Remote host closed the connection]
rickruby has joined #ruby
cofin has quit [Quit: cofin]
Andreo_ has joined #ruby
nowthatsamatt has quit [Quit: nowthatsamatt]
Z_Mass has quit [Ping timeout: 252 seconds]
Eaven has quit [Remote host closed the connection]
ioNull has quit [Quit: Computer has gone to sleep.]
zeade has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
Andreo__ has quit [Ping timeout: 276 seconds]
nowthatsamatt has joined #ruby
r0bglees0n has joined #ruby
atno has quit [Ping timeout: 252 seconds]
freerobby has quit [Quit: Leaving.]
adkron_ has joined #ruby
Retistic has quit [Quit: Retistic]
seich- has joined #ruby
IrishGringo has joined #ruby
alvaro_o has joined #ruby
adkron has quit [Ping timeout: 240 seconds]
robert_ has quit [Ping timeout: 264 seconds]
_jgr has quit [Remote host closed the connection]
xcv has quit [Remote host closed the connection]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
swex_ has joined #ruby
robert_ has joined #ruby
robert_ has quit [Changing host]
robert_ has joined #ruby
bitZero__ has quit [Ping timeout: 245 seconds]
rakl has quit [Quit: sleeping]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
adkron has joined #ruby
bitZero__ has joined #ruby
digitalcake has joined #ruby
bionhart has joined #ruby
swex_ has quit [Remote host closed the connection]
Michael has joined #ruby
igaiga has joined #ruby
Michael is now known as Guest64295
adkron_ has quit [Ping timeout: 252 seconds]
nathan28 is now known as trollopotamus
robert_ has quit [Read error: Connection reset by peer]
bionhart has quit [Remote host closed the connection]
allaire has quit [Quit: allaire]
sailias has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
keanehsiao has joined #ruby
Guest64295 has quit [Remote host closed the connection]
igaiga has quit [Ping timeout: 252 seconds]
ioNull has joined #ruby
Hanmac2 has joined #ruby
Deece has quit [Ping timeout: 276 seconds]
DanKnox_away is now known as DanKnox
DanKnox is now known as DanKnox_away
bionhart has joined #ruby
n_blownapart has joined #ruby
Hanmac has quit [Ping timeout: 276 seconds]
prk has joined #ruby
zukin has joined #ruby
DanKnox_away is now known as DanKnox
nfk has quit [Quit: yawn]
DanKnox is now known as DanKnox_away
justsee has quit [Ping timeout: 252 seconds]
io_syl has quit [Read error: Operation timed out]
trollopotamus is now known as nathan28
cantonic_ has quit [Quit: cantonic_]
tomsthumb has quit [Quit: Leaving.]
hogeo_ has joined #ruby
keanehsiao has quit [Ping timeout: 252 seconds]
hogeo_ has quit [Remote host closed the connection]
beilabs has quit [Ping timeout: 252 seconds]
<n_blownapart> hi. in this paste: http://pastie.org/7986978 is there a way to use #inspect to identify the proc objects created?
nari has joined #ruby
ixti has joined #ruby
rakl has joined #ruby
robert_ has joined #ruby
robert_ has joined #ruby
robert_ has quit [Changing host]
Kricir has joined #ruby
mixel has quit [Quit: mixel]
tomzx_mac has quit [Ping timeout: 248 seconds]
nari has quit [Ping timeout: 248 seconds]
freerobby has joined #ruby
timkohrumel has joined #ruby
cj3kim has joined #ruby
devoldmx has quit [Remote host closed the connection]
guns has quit [Quit: guns]
atno has joined #ruby
atno has quit [Remote host closed the connection]
beilabs has joined #ruby
atno has joined #ruby
timkohrumel has quit [Ping timeout: 276 seconds]
chipotle has quit [Quit: cya]
alvaro_o has quit [Quit: Ex-Chat]
Kricir has quit [Remote host closed the connection]
Eaven has joined #ruby
atno__ has joined #ruby
beilabs has quit [Ping timeout: 256 seconds]
sqa_bm has quit [Remote host closed the connection]
atno has quit [Read error: No route to host]
sqa_bm has joined #ruby
nowthatsamatt has quit [Quit: nowthatsamatt]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
tylersmith has quit [Remote host closed the connection]
sqa_bm_ has joined #ruby
n_blownapart has quit [Remote host closed the connection]
hoyang has joined #ruby
sqa_bm has quit [Ping timeout: 252 seconds]
luckyruby has quit [Read error: Connection reset by peer]
splittingred has joined #ruby
ixti has quit [Quit: WeeChat 0.4.1]
nightfly has joined #ruby
atyz has joined #ruby
splittingred has quit [Client Quit]
splittingred has joined #ruby
clevermatt has quit [Remote host closed the connection]
kofno has quit [Remote host closed the connection]
splittingred has quit [Client Quit]
sqa_bm_ has quit [Remote host closed the connection]
Senjai has joined #ruby
Senjai has joined #ruby
Senjai has quit [Changing host]
clevermatt has joined #ruby
luckyruby has joined #ruby
true_techie has joined #ruby
pitzips has quit [Ping timeout: 276 seconds]
true_techie has quit [Client Quit]
prk has quit [Remote host closed the connection]
Z_Mass has joined #ruby
benlieb has joined #ruby
Levin_22 has joined #ruby
beilabs has joined #ruby
danslo has quit [Quit: danslo]
rezzack has quit [Quit: Leaving.]
havenwood has joined #ruby
Deece has joined #ruby
lewis has joined #ruby
io_syl has joined #ruby
lyanchih has quit [Quit: lyanchih]
justsee has quit [Ping timeout: 248 seconds]
lucianosousa has quit [Quit: lucianosousa]
tommyvyo has joined #ruby
<joshu> any way to run foreman on port 80? I'm doing this foreman start -p 80 but sudo is required and it won't work with it either as foreman is not found. I'm using rbenv btw
adkron_ has joined #ruby
mishke has quit [Quit: ZNC - http://znc.in]
igaiga has joined #ruby
lyanchih has joined #ruby
<havenwood> joshu: Does this work?: sudo $(rbenv which foreman) start -p 80
digitalcake has quit [Quit: Leaving.]
<joshu> havenwood hi different error now "exec: bundle: not found"
adkron has quit [Ping timeout: 252 seconds]
C0deMaver1ck has quit [Excess Flood]
C0deMaver1ck has joined #ruby
<havenwood> joshu: Maybe?: sudo bundle exec $(rbenv which foreman) start -p 80
C0deMaver1ck is now known as Guest69060
mmitchell has quit [Remote host closed the connection]
<joshu> no go unfortunately havenwood
<joshu> seems kind of stupid
<havenwood> joshu: Hrm. Really rbenv isn't supposed to be run with sudo.
nathan28 has quit [Quit: leaving]
k-man has joined #ruby
<joshu> ok i have a small ubuntu server locally I want to run a sinatra ruby app on using puma. locally i've started with foreman start
<joshu> should I not do the same on the server?
<havenwood> joshu: You could use Nginx as a reverse proxy, but yeah, I don't know of a rvm-sudo type thing for rbenv and rbenv doesn't support sudo.
tjkrusin1ki has quit [Quit: leaving]
Eaven has quit [Remote host closed the connection]
<havenwood> joshu: I think ideally just use nginx as a reverse proxy, pointing port 80 to whatever non-sudo port you have foreman running on.
<joshu> havenwood right I understand. thanks ;)
Senjai has quit [Ping timeout: 256 seconds]
igaiga has quit [Ping timeout: 252 seconds]
devoldmx has joined #ruby
Mattx has quit [Ping timeout: 248 seconds]
beilabs has quit [Ping timeout: 256 seconds]
yashshah has joined #ruby
Levin_22 has quit [Quit: Levin_22]
<havenwood> joshu: You could look at implementing an rvm-sudo style solution: https://gist.github.com/meskyanichi/2290928
zukin has quit [Quit: irssi]
Hanmac has joined #ruby
<havenwood> rvmsudo*
lyanchih has quit [Quit: lyanchih]
<joshu> havenwood looks like what you asked me to try or?
<havenwood> joshu: nah, you're right - basically you'd prolly land on same bundler issue
lyanchih has joined #ruby
_Amaan has quit [Read error: Connection reset by peer]
<joshu> havenwood no worries I thank you for your tenacity :P
Hanmac2 has quit [Ping timeout: 248 seconds]
<havenwood> joshu: not sure what the bundler warning is about, haven't run into something like eet
_Amaan has joined #ruby
wsterling has quit [Remote host closed the connection]
hogeo has joined #ruby
pinpin404 has quit [Quit: Screw you guys i'm going home ! KMP ! WeeChat 0.3.9.2]
darthdeus has quit [Quit: Leaving...]
Deece has left #ruby [#ruby]
hogeo has quit [Remote host closed the connection]
Davey has quit [Quit: Computer has gone to sleep.]
crazysim has joined #ruby
infecto has joined #ruby
<infecto> anyone have any decent light reading/illustrations on the benefits of meta-programming in ruby?
reset has quit [Ping timeout: 260 seconds]
tomsthumb has joined #ruby
beilabs has joined #ruby
adkron_ has quit [Ping timeout: 252 seconds]
Hanmac has quit [Quit: Leaving.]
<brendal> infecto: I would be interested in that myself because I don't think there are any
adkron has joined #ruby
yashshah has quit [Ping timeout: 240 seconds]
<infecto> I started reading about define_method and was having a difficult time understand its true potential.
Z_Mass has quit [Ping timeout: 276 seconds]
banghouse has quit [Remote host closed the connection]
Hanmac has joined #ruby
DomKM1 has joined #ruby
DomKM1 has quit [Client Quit]
DomKM has quit [Read error: No route to host]
lyanchih has quit [Quit: lyanchih]
<havenwood> being able to create a domain specific language
hogeo has joined #ruby
<havenwood> flexibility
krainboltgreene has quit [Quit: krainboltgreene]
freerobby has quit [Quit: Leaving.]
djwonk has joined #ruby
hogeo has quit [Read error: Connection reset by peer]
JesseH has left #ruby ["github.com/jessehorne"]
<havenwood> things like rake
brianpWins has quit [Quit: brianpWins]
<havenwood> depends i suppose on your definition of metaprogramming
hogeo has joined #ruby
djwonk has quit [Client Quit]
beilabs has quit [Ping timeout: 256 seconds]
<brendal> havenwood: I guess I'd have to try it to see the benefits. I think ruby's syntax it too complex to make anything maintainable.
djwonk has joined #ruby
zeade has quit [Quit: Leaving.]
Doc_X has quit [Read error: Connection reset by peer]
<havenwood> brendal: Rails is prolly the most common example. ActiveSupport etcetera monkeypatch galore.
rakl has quit [Quit: sleeping]
Doc_X has joined #ruby
<havenwood> brendal: E.g.,3.days or 4.to_ord
nazty has joined #ruby
hogeo has quit [Remote host closed the connection]
<brendal> havenwood: but those are just methods of number types
ivanoats has quit [Remote host closed the connection]
<havenwood> brendal: They are monkeypatched methods on a core class.
<havenwood> brendal: Ah, you mean example of real work dynamic method creation?
<havenwood> s/work/world
djwonk has quit [Client Quit]
Michael has joined #ruby
Senjai has joined #ruby
Senjai has joined #ruby
Senjai has quit [Changing host]
Michael is now known as Guest61939
Dreamer3 has quit [Quit: Leaving...]
<havenwood> brendal: I dunno. Sure is nice to have when you need it.
nignaztic has quit [Ping timeout: 252 seconds]
<brendal> havenwood: monkeypatches are cool. but that's the first time I've heard them called that. I think macros when I hear metaprogramming
hogeo has joined #ruby
eldariof has joined #ruby
infecto has quit [Quit: Leaving.]
<brendal> havenwood: what do you mean by s/work/world ?
<havenwood> brendal: mmm, yeah no macros in Ruby but such a dynamic lang that the line between metaprogramming and programming gets hard to acertain.
<k-man> with tinyTDS i can successfully get datat from my database, but i can't quite work out how to actually use the resulting datastructure. see: https://gist.github.com/jasonblewis/32b950727718ce9b1eb1
<havenwood> brendal: oh, just vim-style substitution - i meant to say 'real world' not 'real work'
rippa has joined #ruby
<k-man> how do i get the sales value in that example?
Guest61939 has quit [Ping timeout: 256 seconds]
<havenwood> k-man: What do you mean by getting the value? Do you want to map to an array of just the values? Or use the value in an expresion?
<havenwood> k-man: Can you give an example of the result?
<k-man> the result is in the paste
Cultofmetatron has joined #ruby
<k-man> i just want to use the value in an expression
jurbat has quit [Ping timeout: 241 seconds]
<k-man> sorry, i have dived in at the deep end of ruby
atno__ is now known as atno
jurbat has joined #ruby
<havenwood> k-man: ary.each { |e| puts e[0]['sales'] }
<havenwood> k-man: #puts being just an example
nowthatsamatt has joined #ruby
<havenwood> k-man: For just an array of the sales numbers: map { |e| e[0]['sales'] }
beilabs has joined #ruby
<k-man> ok
kil0byte has quit [Remote host closed the connection]
stonevil has joined #ruby
mjburgess has joined #ruby
freakazoid0223 has quit [Ping timeout: 256 seconds]
tylersmith has joined #ruby
timkohrumel has joined #ruby
Guedes has quit [Ping timeout: 252 seconds]
CyberMaN has quit [Ping timeout: 256 seconds]
tommyvyo has quit [Quit:]
<k-man> havenwood, so i think this shows how to get the value out: https://gist.github.com/jasonblewis/32b950727718ce9b1eb1
stonevil has quit [Ping timeout: 276 seconds]
sqa_bm has joined #ruby
tylersmith has quit [Ping timeout: 256 seconds]
icole has quit [Remote host closed the connection]
pcarrier_ has quit [Ping timeout: 252 seconds]
<k-man> thanks for your help
sqa_bm has quit [Read error: Operation timed out]
ariedler has quit [Remote host closed the connection]
Davey has joined #ruby
pcarrier_ has joined #ruby
<k-man> require 'tiny_tds' at the top of my job file in dashing gives me: /home/jason/.rvm/gems/ruby-1.9.3-p429/gems/backports-3.3.1/lib/backports/tools.rb:328:in `require': cannot load such file -- tiny_tds (LoadError)
<k-man> but i can require it in irb without problem
cj3kim has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
postmodern has quit [Ping timeout: 276 seconds]
ckrailo has joined #ruby
spider-mario has joined #ruby
clevermatt has quit [Remote host closed the connection]
kenneth has quit [Quit: kenneth]
yashshah has joined #ruby
pcarrier_ has quit [Client Quit]
_veer has joined #ruby
_veer has joined #ruby
_veer has quit [Changing host]
rburton- has joined #ruby
timkohrumel has quit [Remote host closed the connection]
ckrailo has quit [Client Quit]
ckrailo has joined #ruby
lewis has quit [Ping timeout: 252 seconds]
<k-man> oh, worked it out, i needed to add tiny_tds to the Gemfile
LBRapid has quit [Ping timeout: 256 seconds]
bakingbread has quit [Ping timeout: 256 seconds]
mmitchell has joined #ruby
LBRapid has joined #ruby
TomRone has quit [Ping timeout: 256 seconds]
eval-in has quit [Remote host closed the connection]
eval-in has joined #ruby
phite has quit [Remote host closed the connection]
nyuszika7h has quit [Ping timeout: 256 seconds]
Inside has quit [Ping timeout: 252 seconds]
phite has joined #ruby
nyuszika7h has joined #ruby
postmodern has joined #ruby
TomRone has joined #ruby
generalissimo has joined #ruby
mmitchell has quit [Ping timeout: 252 seconds]
haxrbyte_ has joined #ruby
haxrbyte has quit [Ping timeout: 248 seconds]
nowthatsamatt has quit [Ping timeout: 240 seconds]
spider-mario has quit [Read error: Connection reset by peer]
nari has joined #ruby
AgentWillyWonka has joined #ruby
rakl has joined #ruby
nowthatsamatt has joined #ruby
wsterling has joined #ruby
tomsthumb has quit [Quit: Leaving.]
ARCADIVS has quit [Quit: WeeChat 0.3.8]
Loaft has quit [Ping timeout: 246 seconds]
brianpWins has joined #ruby
timkohrumel has joined #ruby
wsterling has quit [Ping timeout: 252 seconds]
tonini has joined #ruby
kenneth has joined #ruby
cantonic has joined #ruby
talntid2 has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
tonini has quit [Client Quit]
ryan_turner is now known as ryan_turner_
girija has joined #ruby
IceDragon has quit [Quit: Space~~~]
ryan_turner_ is now known as ryan_turner
igaiga has joined #ruby
infecto has joined #ruby
nari has quit [Ping timeout: 240 seconds]
Hanmac has quit [Ping timeout: 252 seconds]
AlbireoX has quit [Ping timeout: 256 seconds]
rburton- has quit [Quit: Linkinus - http://linkinus.com]
igaiga has quit [Ping timeout: 252 seconds]
eldariof has quit [Ping timeout: 252 seconds]
tomsthumb has joined #ruby
Hanmac has joined #ruby
tjbiddle has joined #ruby
atno has quit [Remote host closed the connection]
dmiller has joined #ruby
girija has quit [Remote host closed the connection]
osvico has quit [Ping timeout: 252 seconds]
Eaven has joined #ruby
icole has joined #ruby
saarinen has joined #ruby
mjburgess has quit [Ping timeout: 252 seconds]
Eaven has quit [Remote host closed the connection]
atno has joined #ruby
r0bglees0n has quit [Ping timeout: 248 seconds]
justsee has joined #ruby
icecandy has quit [Read error: Connection reset by peer]
tjbiddle has quit [Quit: tjbiddle]
tomsthumb has quit [Quit: Leaving.]
icecandy has joined #ruby
ffio has joined #ruby
_ffio_ has quit [Ping timeout: 248 seconds]
dmiller has quit [Remote host closed the connection]
brendal has quit [Quit: Leaving]
cj3kim has quit [Remote host closed the connection]
devyn is now known as DEVYN
cj3kim has joined #ruby
timkohrumel has quit [Remote host closed the connection]
chxane has quit [Quit: Leaving]
codecop has joined #ruby
rburton- has joined #ruby
nari has joined #ruby
noop has joined #ruby
DEVYN is now known as purr
keanehsiao has joined #ruby
<keanehsiao> hi
<keanehsiao> May I ask. is there any gem that I can do with paypal direct payment?
huoxito has quit [Quit: Leaving]
wallerdev has quit [Quit: wallerdev]
hogeo has quit [Remote host closed the connection]
ggordan has quit [Remote host closed the connection]
generalissimo has quit [Remote host closed the connection]
Astralum has quit [Read error: Connection reset by peer]
Astralum has joined #ruby
bakingbread has joined #ruby
jprovazn has joined #ruby
hogeo_ has joined #ruby
benlieb has quit [Quit: benlieb]
akells` has quit [Remote host closed the connection]
nari has quit [Ping timeout: 256 seconds]
igaiga has joined #ruby
beneggett has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
lewis has joined #ruby
lyanchih has joined #ruby
braoru has joined #ruby
tjbiddle has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
kil0byte has joined #ruby
lyanchih has quit [Client Quit]
vlad_starkov has joined #ruby
JohnBat26 has joined #ruby
purr is now known as devyn
kinginky has quit [Quit: Leaving]
rakl has quit [Quit: gone]
vlad_sta_ has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
nomenkun has joined #ruby
kil0byte has quit [Remote host closed the connection]
thetristan has quit [Quit: thetristan]
tjbiddle_ has joined #ruby
kil0byte has joined #ruby
rakl has joined #ruby
lewis has quit [Remote host closed the connection]
tjbiddle has quit [Ping timeout: 252 seconds]
tjbiddle_ is now known as tjbiddle
osvico has joined #ruby
ivanoats has joined #ruby
yashshah has quit [Ping timeout: 248 seconds]
atyz has quit [Quit: Leaving...]
zigomir has joined #ruby
clevermatt has joined #ruby
hogeo has joined #ruby
randomlogin has quit [Quit: randomlogin]
vlad_sta_ has quit [Remote host closed the connection]
paissad has quit [Quit: This computer has gone to sleep]
vlad_starkov has joined #ruby
hogeo_ has quit [Ping timeout: 252 seconds]
paissad has joined #ruby
threesome has quit [Ping timeout: 256 seconds]
_Amaan has quit [Quit: _Amaan]
hoyang has quit [Quit: 离开]
vlad_sta_ has joined #ruby
ananthakumaran has joined #ruby
nari has joined #ruby
clevermatt has quit [Ping timeout: 256 seconds]
AlbireoX has joined #ruby
ananthakumaran has quit [Client Quit]
vlad_starkov has quit [Ping timeout: 276 seconds]
cyong has quit [Quit: Leaving.]
ericmathison has joined #ruby
igaiga has quit [Remote host closed the connection]
lyanchih has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
nomenkun has quit [Remote host closed the connection]
kofno has joined #ruby
hogeo_ has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
igaiga has joined #ruby
kofno has quit [Ping timeout: 252 seconds]
haxrbyte_ has quit [Read error: Connection reset by peer]
haxrbyte has joined #ruby
igaiga has quit [Remote host closed the connection]
hogeo has quit [Ping timeout: 276 seconds]
hogeo_ has quit [Read error: Connection reset by peer]
zastern has quit [Remote host closed the connection]
hogeo has joined #ruby
mvangala_ has quit [Read error: Connection reset by peer]
Davey has joined #ruby
lyanchih has quit [Quit: lyanchih]
mvangala has joined #ruby
corehook has joined #ruby
rburton- has quit [Quit: Leaving...]
ayaz has joined #ruby
hogeo_ has joined #ruby
diadara has joined #ruby
hogeo has quit [Ping timeout: 252 seconds]
diadara_ has joined #ruby
hakunin_ has quit [Remote host closed the connection]
workmad3 has joined #ruby
hakunin has joined #ruby
ananthakumaran has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
Cultofmetatron has joined #ruby
hogeo_ has quit [Read error: Connection reset by peer]
hogeo has joined #ruby
dyu has joined #ruby
Leighton has joined #ruby
<dyu> how is it possible that knife-github-cookbooks specifies its name as "knife-git" in the gemspec, but you do a `gem install knife-github-cooks` to install it and `gem install knife-git` fails because it says it can't find a gem with that name?
icole has quit [Remote host closed the connection]
igaiga has joined #ruby
darthdeus has joined #ruby
tagrudev has joined #ruby
lewis has joined #ruby
dmiller has joined #ruby
<workmad3> dyu: because it doesn't?
jbueza has joined #ruby
<workmad3> dyu: 's.name = "knife-github-cookbooks"' <-- that's the line in the gemspec both on github and in the gem file I just downloaded and unpacked
vlad_starkov has joined #ruby
zigomir has quit [Ping timeout: 276 seconds]
mogsy has quit [Read error: Operation timed out]
<dyu> oh
<dyu> sorry
<workmad3> dyu: incidentally, I'd recommend using berkshelf for managing cookbooks and specifying where they come from, rather than a knife plugin ;)
mogsy has joined #ruby
timkohrumel has joined #ruby
<dyu> got it. thanks!
pduin has joined #ruby
brianherman has quit [Read error: Connection reset by peer]
nari has quit [Ping timeout: 252 seconds]
hogeo has quit [Remote host closed the connection]
Davey has quit [Quit: Computer has gone to sleep.]
yashshah has joined #ruby
whowantstolivefo has joined #ruby
dmiller has quit [Ping timeout: 276 seconds]
r0bglees0n has joined #ruby
corehook has quit [Ping timeout: 256 seconds]
timkohrumel has quit [Ping timeout: 252 seconds]
toekutr has joined #ruby
igaiga has quit [Ping timeout: 256 seconds]
sleep`sleep has joined #ruby
infecto has quit [Quit: Leaving.]
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
osvico has quit [Ping timeout: 252 seconds]
ehaliewicz has quit [Ping timeout: 248 seconds]
toekutr is now known as ehaliewicz
krz has joined #ruby
eka has joined #ruby
corehook has joined #ruby
akells` has joined #ruby
igaiga has joined #ruby
alexmreis has joined #ruby
akells` has quit [Read error: Operation timed out]
nomenkun has joined #ruby
eka has quit [Ping timeout: 252 seconds]
eka has joined #ruby
workmad3 has quit [Read error: Operation timed out]
hogeo has joined #ruby
xardas has joined #ruby
hogeo_ has joined #ruby
xardas has quit [Changing host]
xardas has joined #ruby
KillerFox has quit [Ping timeout: 248 seconds]
xardas has quit [Read error: Connection reset by peer]
tjbiddle_ has joined #ruby
igaiga has quit [Remote host closed the connection]
Eaven has joined #ruby
rdark has joined #ruby
hogeo has quit [Ping timeout: 240 seconds]
Neomex has joined #ruby
Killerkeksdose has joined #ruby
mafolz has joined #ruby
clocKwize has joined #ruby
aganov has joined #ruby
tjbiddle has quit [Ping timeout: 256 seconds]
tjbiddle_ is now known as tjbiddle
gstamp has quit [Quit: Computer has gone to sleep.]
Neomex has quit [Client Quit]
darthdeus has quit [Quit: Leaving...]
havenwood has quit [Remote host closed the connection]
ivanoats has quit [Remote host closed the connection]
cj3kim has quit [Remote host closed the connection]
ntus1017 has joined #ruby
dyu has left #ruby [#ruby]
mjburgess has joined #ruby
miclen has joined #ruby
teclator has quit [Read error: Operation timed out]
threesome has joined #ruby
zigomir has joined #ruby
bionhart has quit [Remote host closed the connection]
bionhart has joined #ruby
Nisstyre has joined #ruby
Nanuq has quit [Read error: Operation timed out]
rippa has quit [Ping timeout: 240 seconds]
monkegjinni has joined #ruby
sideshowcoder has quit [Ping timeout: 264 seconds]
poga has quit [Ping timeout: 248 seconds]
monkegjinni has quit [Remote host closed the connection]
monkegjinni has joined #ruby
jimg has joined #ruby
obs has joined #ruby
GeissT has quit [Ping timeout: 248 seconds]
tvw has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
Myconix has quit [Read error: Connection reset by peer]
sideshowcoder has joined #ruby
Myconix has joined #ruby
chichou has quit [Read error: Connection reset by peer]
felixjet has quit [Read error: Connection reset by peer]
chichou has joined #ruby
randomlogin has joined #ruby
felixjet has joined #ruby
Nanuq has joined #ruby
alup has joined #ruby
alienven1m has joined #ruby
kevinykchan has quit [Ping timeout: 252 seconds]
ivanoats has joined #ruby
nomenkun has quit [Remote host closed the connection]
AllStruck_ has joined #ruby
<joshu> workmad3 you there?
hogeo_ has quit [Remote host closed the connection]
diadara_ has quit [Ping timeout: 248 seconds]
diadara has quit [Ping timeout: 248 seconds]
kevinykchan has joined #ruby
martxel_ has joined #ruby
sixtenei1hty has joined #ruby
tommylom1ykins has joined #ruby
wting_ has joined #ruby
Psy-Q_ has joined #ruby
itman_ has joined #ruby
martxel_ is now known as Guest54483
Nom-_ has joined #ruby
klaas_ has joined #ruby
rtl_ has joined #ruby
k610 has joined #ruby
breadtk_ has joined #ruby
jolleyjoe has joined #ruby
<k610> how can i stop Bundler.require to be executed on my Gemfile when i do 'rackup' ?
igaiga has joined #ruby
nari has joined #ruby
ayaz has quit [Quit: Bye!]
fcoury_ has joined #ruby
nemesit|- has joined #ruby
foobArrr has joined #ruby
hogeo has joined #ruby
ZadYree_ has joined #ruby
Hobogrammer has quit [Quit: さようなら]
stonevil has joined #ruby
Hobogrammer has joined #ruby
Akuma has quit [Read error: Operation timed out]
octarine has quit [*.net *.split]
slava_dp has quit [*.net *.split]
alienvenom has quit [*.net *.split]
talntid2 has quit [*.net *.split]
nemesit|znc has quit [*.net *.split]
jpun has quit [*.net *.split]
Emmanuel_Chanel has quit [*.net *.split]
ping-pong has quit [*.net *.split]
filipe has quit [*.net *.split]
Beoran_ has quit [*.net *.split]
joast has quit [*.net *.split]
bean has quit [*.net *.split]
BBonifield has quit [*.net *.split]
casheew has quit [*.net *.split]
aedorn has quit [*.net *.split]
homelinen has quit [*.net *.split]
TheMoonMaster has quit [*.net *.split]
QKO has quit [*.net *.split]
Nom- has quit [*.net *.split]
lupine has quit [*.net *.split]
AllStruck has quit [*.net *.split]
martxel has quit [*.net *.split]
klaas has quit [*.net *.split]
breadtk has quit [*.net *.split]
weeb1e_ has quit [*.net *.split]
sixteneighty has quit [*.net *.split]
jolleyjo1 has quit [*.net *.split]
itman has quit [*.net *.split]
krishna_ has quit [*.net *.split]
tommylommykins has quit [*.net *.split]
Psy-Q has quit [*.net *.split]
fcoury has quit [*.net *.split]
DefV has quit [*.net *.split]
epitron has quit [*.net *.split]
Niamkik has quit [*.net *.split]
elaptics`away has quit [*.net *.split]
MetaCosm has quit [*.net *.split]
stopbit has quit [*.net *.split]
jbw has quit [*.net *.split]
shaman42_ has quit [*.net *.split]
thibauts has quit [*.net *.split]
ZadYree has quit [*.net *.split]
wting has quit [*.net *.split]
ned has quit [*.net *.split]
foobArrrr has quit [*.net *.split]
rtl has quit [*.net *.split]
angelixd has quit [*.net *.split]
rambler has quit [*.net *.split]
eaWPq4nU has quit [*.net *.split]
DrCode has quit [*.net *.split]
end_guy has quit [*.net *.split]
Bry8Star{T2 has quit [*.net *.split]
hogeo_ has joined #ruby
fcoury_ is now known as fcoury
AllStruck_ is now known as AllStruck
keanehsiao has quit [Quit: Leaving...]
icole has joined #ruby
Nanuq has quit [Read error: Operation timed out]
hogeo has quit [Ping timeout: 248 seconds]
ivanoats has quit [Ping timeout: 256 seconds]
choobie has joined #ruby
choobie has quit [Changing host]
choobie has joined #ruby
sailias has quit [Quit: Leaving.]
Zeeraw has quit [Quit: Computer has gone to sleep.]
stonevil has quit [Remote host closed the connection]
kil0byte has quit [Remote host closed the connection]
swex has quit [Read error: Connection reset by peer]
swex has joined #ruby
brianpWins has quit [Quit: brianpWins]
niklasb has joined #ruby
filipe has joined #ruby
dawkirst has quit [Quit: Leaving]
senayar has joined #ruby
Beoran_ has joined #ruby
aedorn has joined #ruby
icole has quit [Ping timeout: 240 seconds]
Nanuq has joined #ruby
jbw has joined #ruby
timonv has joined #ruby
stonevil has joined #ruby
JoeTheGuest has quit [Ping timeout: 260 seconds]
jbpros has joined #ruby
timonv has quit [Read error: Connection reset by peer]
timonv has joined #ruby
thelamest has quit [Quit: rebook]
Nanuq has quit [Read error: Operation timed out]
ia___ has joined #ruby
mfridh has joined #ruby
monkegji_ has joined #ruby
Nanuq has joined #ruby
diadara_ has joined #ruby
thelamest has joined #ruby
diadara has joined #ruby
ybart has joined #ruby
poga has joined #ruby
ferdev has quit [Quit: ferdev]
monkegjinni has quit [Ping timeout: 248 seconds]
b0oh has joined #ruby
obs has quit [Quit: Konversation terminated!]
atyz has joined #ruby
yashshah has quit [Ping timeout: 240 seconds]
Emmanuel_Chanel has joined #ruby
Jackneill has joined #ruby
Mchl has quit [Quit: ZNC - http://znc.sourceforge.net]
rakl has quit [Quit: sleeping]
stonevil has quit [Remote host closed the connection]
GeissT has joined #ruby
Mchl has joined #ruby
teclator has joined #ruby
Coffers has joined #ruby
Macaveli has joined #ruby
obs has joined #ruby
horsey has joined #ruby
snearch has joined #ruby
danslo has joined #ruby
theoros has quit [Ping timeout: 252 seconds]
troessner has joined #ruby
<Macaveli> http://goo.gl/uG76j why does he still go into that if statement ?
<Macaveli> he is not defined an is nil
jbpros has quit [Quit: jbpros]
atyz has quit [Quit: Leaving...]
yashshah has joined #ruby
slainer68 has joined #ruby
GeissT has quit [Read error: No route to host]
GeissT has joined #ruby
timonv has quit [Remote host closed the connection]
ivanoats has joined #ruby
Alina-malina has quit [Ping timeout: 260 seconds]
hogeo_ has quit [Read error: Connection reset by peer]
keanehsiao has joined #ruby
khushildep has joined #ruby
dash_ has joined #ruby
ivanoats has quit [Ping timeout: 256 seconds]
Cultofmetatron has quit [Remote host closed the connection]
ferdev_ has joined #ruby
JohnBat26 has quit [Remote host closed the connection]
niklasb has quit [Ping timeout: 252 seconds]
pi3r has joined #ruby
Criztian has joined #ruby
binaryplease has joined #ruby
<joshu> Macaveli hi where is your defined? method defined?
Mchl has quit [Quit: ZNC - http://znc.sourceforge.net]
keanehsiao has quit [Ping timeout: 252 seconds]
slainer68 has quit [Ping timeout: 252 seconds]
<joshu> apeiros you up yet..haha
Mchl has joined #ruby
jbpros has joined #ruby
<joshu> I haven't slept in 20 hours
<joshu> I can't get enough of them rubies :P
dhruvasagar has quit [Ping timeout: 248 seconds]
Retistic has joined #ruby
<joshu> as Borat would say "I give ma wife a rubi and she give me sexy time"
bamdad has joined #ruby
dhruvasagar has joined #ruby
mikecmpbll has joined #ruby
BizarreCake has joined #ruby
Zeeraw has joined #ruby
DrCode has joined #ruby
joast has joined #ruby
casheew has joined #ruby
bean has joined #ruby
homelinen has joined #ruby
ping-pong has joined #ruby
weeb1e_ has joined #ruby
ned has joined #ruby
Niamkik has joined #ruby
shaman42_ has joined #ruby
elaptics has joined #ruby
QKO has joined #ruby
DefV has joined #ruby
BBonifield has joined #ruby
thibauts has joined #ruby
TheMoonMaster has joined #ruby
krishna_ has joined #ruby
MetaCosm has joined #ruby
angelixd has joined #ruby
epitron has joined #ruby
stopbit has joined #ruby
slava_dp has joined #ruby
jpun has joined #ruby
lupine has joined #ruby
<mikecmpbll> has anyone got any idea why in my sinatra app, i require 'active_support/core_ext/string/inflections', and use .classify() and it doesn't singularise it? where as on IRB it does (and is obviously meant to!)
noname001 has quit [Excess Flood]
headius has joined #ruby
saarinen has quit [Quit: saarinen]
Bry8Star{T2 has joined #ruby
alexmreis has left #ruby [#ruby]
LennyLinux has joined #ruby
noname001 has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
sleep`sleep has quit [Remote host closed the connection]
Retistic has quit [Quit: Retistic]
bionhart has quit [Remote host closed the connection]
bionhart has joined #ruby
vlad_sta_ has joined #ruby
end_guy has joined #ruby
jokke has joined #ruby
Hanmac2 has joined #ruby
vlad_starkov has quit [Ping timeout: 256 seconds]
bionhart has quit [Ping timeout: 240 seconds]
Hanmac has quit [Ping timeout: 240 seconds]
jimg has quit [Remote host closed the connection]
nomenkun has joined #ruby
erry has quit [Remote host closed the connection]
arya has joined #ruby
noop_ has joined #ruby
chandankumar has joined #ruby
monkegji_ has quit [Read error: Connection reset by peer]
dhruvasagar has quit [Ping timeout: 241 seconds]
monkegjinni has joined #ruby
marr has joined #ruby
erry_ has joined #ruby
dhruvasagar has joined #ruby
chandankumar has quit [Max SendQ exceeded]
theoros has joined #ruby
chandankumar has joined #ruby
noop has quit [Ping timeout: 252 seconds]
timonv has joined #ruby
blaxter has joined #ruby
lyanchih has joined #ruby
slainer68 has joined #ruby
sepp2k has joined #ruby
afd__ has quit [Remote host closed the connection]
stonevil has joined #ruby
erry_ is now known as erry
Nisstyre has quit [Quit: Leaving]
Nisstyre has joined #ruby
bionhart has joined #ruby
dfdf has joined #ruby
ntus1017 has quit [Remote host closed the connection]
chandankumar has quit [Quit: Leaving]
m8 has joined #ruby
m8 has quit [Max SendQ exceeded]
wu_lmao has joined #ruby
stonevil has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
m8 has joined #ruby
lewis is now known as lewix
obs has quit [Quit: Konversation terminated!]
stonevil has joined #ruby
Macaveli has quit [Read error: Connection reset by peer]
diadara has quit [Quit: Leaving]
Macaveli has joined #ruby
stonevil has quit [Remote host closed the connection]
ayaz has joined #ruby
Al_ has joined #ruby
tms has joined #ruby
rickruby has quit [Remote host closed the connection]
pkrzywicki has joined #ruby
dr_bob has joined #ruby
lkba has quit [Ping timeout: 276 seconds]
jimg has joined #ruby
mjburgess has quit [Ping timeout: 252 seconds]
miclen has quit [Read error: Connection reset by peer]
altamic has joined #ruby
altamic has left #ruby [#ruby]
slainer68 has quit [Remote host closed the connection]
tvw has quit []
<Mon_Ouie> +
tonini has joined #ruby
<Mon_Ouie> Woops
jurbat has quit [Quit: Computer has gone to sleep.]
Iszak has joined #ruby
timmow has joined #ruby
igaiga has quit [Remote host closed the connection]
timmow has quit [Read error: Connection reset by peer]
jimg has quit [Ping timeout: 252 seconds]
timmow has joined #ruby
poga has quit [Read error: Connection reset by peer]
poga has joined #ruby
Soliah has quit [Quit: Soliah]
nari has quit [Ping timeout: 248 seconds]
camilasa_ has joined #ruby
slainer6_ has joined #ruby
pi3r has quit [Ping timeout: 256 seconds]
Eaven has quit [Read error: Connection reset by peer]
monkegji_ has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
bionhart has quit [Remote host closed the connection]
Eaven has joined #ruby
cantonic has quit [Quit: cantonic]
Azulinho has joined #ruby
kobain has quit [Quit: l'unica verità.. è la morte stessa!]
dfdf has quit [Remote host closed the connection]
monkegji_ has quit [Ping timeout: 252 seconds]
kalleth has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
m8 has quit [Read error: Connection reset by peer]
m8 has joined #ruby
jastix has joined #ruby
Leighton has quit [Quit: Leaving]
diadara_ has quit [Remote host closed the connection]
bean has quit [Read error: Connection reset by peer]
bean has joined #ruby
tonini has quit [Quit: Lost terminal]
Senjai has quit [Ping timeout: 256 seconds]
slava_dp has quit [Remote host closed the connection]
TheMoonMaster has quit [Quit: Later!]
homelinen has quit [Ping timeout: 264 seconds]
end_guy has quit [Ping timeout: 240 seconds]
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
slava_dp has joined #ruby
slava_dp has joined #ruby
slava_dp has quit [Changing host]
lupine has quit [Excess Flood]
TheMoonMaster has joined #ruby
MetaCosm has quit [Excess Flood]
Trynemjoel has joined #ruby
icecandy has quit [Remote host closed the connection]
homelinen has joined #ruby
lupine has joined #ruby
stopbit has quit [Ping timeout: 264 seconds]
MetaCosm has joined #ruby
end_guy has joined #ruby
icecandy has joined #ruby
dfdf has joined #ruby
stopbit has joined #ruby
randomlogin has quit [Quit: randomlogin]
rambler has joined #ruby
arya has quit [Ping timeout: 248 seconds]
razi has joined #ruby
ivanoats has joined #ruby
octarine has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
grzywacz has joined #ruby
grzywacz has joined #ruby
slainer68 has joined #ruby
kalleth has joined #ruby
jimg has joined #ruby
igaiga has joined #ruby
JoeTheGuest has joined #ruby
gyre007 has joined #ruby
ivanoats has quit [Ping timeout: 260 seconds]
slainer6_ has quit [Ping timeout: 256 seconds]
arya has joined #ruby
Trynemjoel has joined #ruby
diadara has joined #ruby
malcolmva has quit [Ping timeout: 248 seconds]
jimg has quit [Ping timeout: 252 seconds]
dfdf has quit [Remote host closed the connection]
Macaveli has quit [Ping timeout: 252 seconds]
Alina-malina has joined #ruby
Macaveli has joined #ruby
Bry8Star{T2 has joined #ruby
diadara has quit [Read error: Connection reset by peer]
diadara has joined #ruby
aedorn has quit [Ping timeout: 256 seconds]
<joonty> does anyone know why the decision was made for lambdas and procs to handle returns differently?
diadara has quit [Read error: Connection reset by peer]
diadara has joined #ruby
m8 has quit [Read error: Connection reset by peer]
<r0bglees0n> joonty: i don't, but a lambda behaves like a method. I'm not sure where Proc picked up its behavior from. It also doesn't care arguments.
TheHodge has joined #ruby
<tobiasvl> r0bglees0n: blocks
<tobiasvl> lambdas are like methods, Procs are like blocks
<r0bglees0n> care about arguments*
<tobiasvl> that is: blocks are anonymous Procs. lambdas are anonymous methods.
diadara has quit [Read error: Connection reset by peer]
diadara has joined #ruby
<r0bglees0n> blocks are anonymous as can be, so i dont know if i agree with that, but it makes sense that they derive their behavior from there.
gasbakid has joined #ruby
<tobiasvl> what do you mean?
<tobiasvl> what part don't you agree with? :)
<r0bglees0n> blocks are always nameless.
<tobiasvl> yes.
poga has quit [Remote host closed the connection]
<tobiasvl> that's why I said "blocks are anonymous Procs".
<r0bglees0n> oh sorry i misread that
a0n has joined #ruby
<joonty> a lambda is a Proc, so it's interesting that there's different behaviour
<TheHodge> Hey, stupid question but I'm using the tweetstream gem and can't figure out why it would break on line 11 https://gist.github.com/LinkRisk/2e20170ba9b0ec5c5ae1, it's probably something simple
<joonty> also, I would have expected lambda to be seperate clas
<joonty> *class
<r0bglees0n> joonty: yup, and to_proc may return a lambda or a Proc.
<joonty> at least a sub-class of Proc
<a0n> hi - i found something pretty confusing with floats in rails
<r0bglees0n> it's more like a flag at the class level
<joonty> r0bglees0n: i didn't know that
<a0n> why is 266.90 * 100 => 26689.999999999996 - and not 26690 ?
<r0bglees0n> Method#to_proc obviously returns a lambda
<r0bglees0n> most cases just return a Proc
diadara has quit [Client Quit]
<apeiros> a0n: welcome to the world of floats
<apeiros> a0n: because floats are not *precise*. because that'd be impossible.
jimg has joined #ruby
<joonty> r0bglees0n: hmm yeh makes sense
<apeiros> a0n: the same as you can't precisely represent 1/3 sqrt(2) or PI in a finite number, floats can't represent all numbers precisely
<apeiros> >> "%.60f" % 266.90
<eval-in> apeiros => "266.899999999999977262632455676794052124023437500000000000000000" (http://eval.in/32381)
<a0n> apeiros: ic
<a0n> apeiros: thanks!
m8 has joined #ruby
<apeiros> assuming 266.90 is a monetary value, let me also tell you: *never* use floats for money.
<apeiros> even if you think "oh but here the precision is good enough" - you can end up with weird errors
Jinie has joined #ruby
<a0n> apeiros: yes this is the case right now … good advice...
krnflake has quit [Quit: ZNC - http://znc.in]
<Macaveli> I'm doing if (params["profile_pic_file"] % 4).zero? and I get undefined method %
<apeiros> Macaveli: you're missing the important part of the error message
* apeiros bets the rest of the message contains something along "for nil:NilClass"
<joonty> Macaveli: you should be using :profile_pic_file, instead of a string
stonevil has joined #ruby
<joonty> actually rails may allow you to do both
<joonty> but either way, that parameter doesn't exist so you're doing % on a nil object
Niamkik_ has joined #ruby
VinceThePrince has joined #ruby
<apeiros> joonty: that's an assumption right now, since he didn't show the full exception
jurbat has joined #ruby
<apeiros> (albeit very likely a correct assumption)
<joonty> apeiros: true :)
aedorn has joined #ruby
weeb1e has joined #ruby
<joonty> oh he's a cross poster
<joonty> hence the silence
Macaveli was kicked from #ruby by apeiros [if you cross-post, you're required to tell that. your behavior is rude.]
<apeiros> thanks for telling.
BBonifield_ has joined #ruby
<joonty> np
dash_ has quit [Quit: Time to beer :)]
robertjpayne has joined #ruby
poga has joined #ruby
igaiga has quit [Remote host closed the connection]
shaman42 has joined #ruby
Michael has joined #ruby
thibauts_ has joined #ruby
angelixd_ has joined #ruby
casheew_ has joined #ruby
Michael is now known as Guest50265
DefV_ has joined #ruby
elaptics` has joined #ruby
jpun_ has joined #ruby
epitron_ has joined #ruby
QKO_ has joined #ruby
robertjpayne has quit [Remote host closed the connection]
BBonifield has quit [Ping timeout: 264 seconds]
Niamkik has quit [Ping timeout: 264 seconds]
joast has quit [Ping timeout: 264 seconds]
krishna_ has quit [Ping timeout: 264 seconds]
thibauts has quit [Ping timeout: 264 seconds]
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
shaman42_ has quit [Ping timeout: 264 seconds]
end_guy has quit [Ping timeout: 240 seconds]
lupine has quit [Ping timeout: 264 seconds]
DrCode has quit [Ping timeout: 240 seconds]
jpun has quit [Ping timeout: 264 seconds]
ping-pong has quit [Ping timeout: 264 seconds]
casheew has quit [Ping timeout: 264 seconds]
weeb1e_ has quit [Ping timeout: 264 seconds]
DefV has quit [Ping timeout: 264 seconds]
epitron has quit [Ping timeout: 264 seconds]
lupine has joined #ruby
lupine has joined #ruby
elaptics has quit [Ping timeout: 264 seconds]
angelixd has quit [Ping timeout: 264 seconds]
QKO has quit [Ping timeout: 264 seconds]
ned has quit [Ping timeout: 264 seconds]
elaptics` is now known as elaptics
Al_ has quit [Quit: Al_]
ping-pong has joined #ruby
b0oh has quit [Quit: Leaving.]
ned has joined #ruby
ivanoats has joined #ruby
MarcWeber has joined #ruby
ned is now known as Guest70852
krishna_ has joined #ruby
smart has joined #ruby
smart has left #ruby [#ruby]
whitedawg has joined #ruby
<MarcWeber> I've created an experimental idea about how a new configuration system could look like which runs some tests in parallel without stopping execution until a value is needed.
<MarcWeber> I called this "SlowValue" - it should be transparent to the user (it is not yet, because some forwarding is missing), but you get the idea:
darthdeus has joined #ruby
<MarcWeber> Does this already exist?
Guedes has joined #ruby
Guedes has joined #ruby
Guedes has quit [Changing host]
adambeynon has joined #ruby
<apeiros> the established term for "don't block until value is needed" is 'future'
tvw has joined #ruby
headius has quit [Ping timeout: 248 seconds]
<MarcWeber> apeiros: But they are usually based on continuation, right?
<apeiros> no
boxmein has joined #ruby
<apeiros> their implementation is an implementation detail. I have Fork::future in my fork gem f.ex.
<apeiros> you can easily implement futures using proc + Thread#value
b0oh has joined #ruby
rickruby has joined #ruby
ivanoats has quit [Ping timeout: 248 seconds]
xcv has joined #ruby
pi3r has joined #ruby
diadara has joined #ruby
poga has quit [Remote host closed the connection]
<apeiros> you implemented it using a worker pool. nice if there's lots of work.
bamdad has quit [Quit: bamdad]
<MarcWeber> apeiros: The point is: I don't want to rewrite code, I don't want to remember having to use f.call. I want to use f and be done - because I think its most user friendly.
<MarcWeber> I thnink about how autoconf based configure scripts should look like in the future.
arya_ has joined #ruby
rdark has quit [Ping timeout: 252 seconds]
<apeiros> and with your solution you can just use f? :)
lupine has quit [Ping timeout: 264 seconds]
lupine has joined #ruby
<MarcWeber> And what I proposed is both: 1) simple 2) works 3) offers enough parallelism to be called "improvement".
<apeiros> seems not… it seems like you have to call .value with your solution too.
rickruby has quit [Ping timeout: 240 seconds]
<lupine> MarcWeber, f[args]
<MarcWeber> apeiros: Right, I could just use f.call within my wrapper object.
Guest50265 has quit [Remote host closed the connection]
arya has quit [Ping timeout: 248 seconds]
Trynemjoel has quit [Ping timeout: 245 seconds]
<MarcWeber> apeiros: Is there a standard way to implement the worker pool?
rdark has joined #ruby
a0n has quit [Quit: a0n]
<apeiros> I think using queues and a limited number of threads is pretty standard
DrCode has joined #ruby
<apeiros> though it seems like you actually only ever do one job in a worker thread? o0
keanehsiao has joined #ruby
Guest54483 is now known as martxel
martxel has quit [Changing host]
martxel has joined #ruby
dr_bob has quit [Quit: Leaving.]
a0n has joined #ruby
<apeiros> commonly it's something like `while job = @work.shift; @results.push([job, job.call]); end`, and you push nil on the queue to quit workers
falood has quit [Ping timeout: 248 seconds]
end_guy has joined #ruby
DrCode has quit [Excess Flood]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
DrCode has joined #ruby
Guedes has quit [Ping timeout: 248 seconds]
yacks has quit [Read error: Connection reset by peer]
Trynemjoel has joined #ruby
mklappstuhl has joined #ruby
falood has joined #ruby
<joshu> what's up apeiros
bamdad has joined #ruby
b0oh has quit [Quit: Leaving.]
bamdad has quit [Client Quit]
bamdad has joined #ruby
<apeiros> not much
<apeiros> rain
<apeiros> as usual
bamdad has quit [Client Quit]
niklasb has joined #ruby
monkegjinni has quit [Remote host closed the connection]
bamdad has joined #ruby
Neomex has joined #ruby
monkegjinni has joined #ruby
<gyre007> does anyone know how to lower the Moped log level in Rails ?
monkegji_ has joined #ruby
<gyre007> driving me nuts that its logging DEBUG logs
ThePicard is now known as NumberOne
<gyre007> I'm a sysadming and I'm curious...
NumberOne is now known as ThePicard
<apeiros> gyre007: #rubyonrails
cantonic has joined #ruby
<gyre007> cheers
_veer has quit [Ping timeout: 256 seconds]
DonRichie has joined #ruby
<TTilus> ot: this is something you don't see everyday, +30C @ Utsjoki, http://bit.ly/116uAVI and we are talking about a place a bit far north http://goo.gl/maps/0ifu5 almost at seashore and the summer has not yet really started...
monkegjinni has quit [Ping timeout: 252 seconds]
areil has joined #ruby
<TTilus> for the SI-challenged, 30.4C is 86.72F
<apeiros> 30.4C isn't SI
razi has quit [Quit: Leaving.]
ivanoats has joined #ruby
<joonty> 303.4K :)
darkapex has quit [Ping timeout: 260 seconds]
diadara has quit [Remote host closed the connection]
<TTilus> hah! i stand corrected
<apeiros> why is it warmer in finland than here? :(
postmodern has quit [Quit: Leaving]
<TTilus> over 10 degrees cooler in algeria and morocco :-O
sa1k0 has quit []
diadara has joined #ruby
ivanoats has quit [Ping timeout: 260 seconds]
Michael has joined #ruby
clevermatt has joined #ruby
whitedawg has left #ruby [#ruby]
Michael is now known as Guest4543
bamdad has quit [Quit: bamdad]
darkapex has joined #ruby
dr_bob has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
xlab has joined #ruby
Guest4543 has quit [Remote host closed the connection]
jbpros has quit [Quit: jbpros]
darkapex has quit [Ping timeout: 260 seconds]
ramblex has joined #ruby
cantonic_ has joined #ruby
darkapex has joined #ruby
danslo has quit [Quit: danslo]
slainer68 has quit [Remote host closed the connection]
dfdf has joined #ruby
[[mandrix]] has quit [Ping timeout: 240 seconds]
<joshu> are comma separated ENV variables ok?
Jinie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
polymar has joined #ruby
cantonic has quit [Ping timeout: 256 seconds]
cantonic_ is now known as cantonic
<joshu> so for instance THESE_ARE_SOME_USERS=user1, user2, user3
<joshu> or are ENV variables single entities
<joonty> joshu: you probably want to avoid spaces
<joonty> i've seen colons used as the delimiter
Jinie has joined #ruby
<joonty> user1:user2:user3
Al_ has joined #ruby
casheew_ has quit [Read error: Connection reset by peer]
casheew has joined #ruby
mklappstuhl has joined #ruby
machuga|away is now known as machuga
niklasb has quit [Ping timeout: 252 seconds]
casheew has quit [Read error: Connection reset by peer]
danslo has joined #ruby
staafl has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
viszu has joined #ruby
<joshu> ok thanks joonty
_veer has joined #ruby
_veer has joined #ruby
_veer has quit [Changing host]
casheew has joined #ruby
staafl_alt has joined #ruby
danslo has quit [Client Quit]
<apeiros> joshu: an env variable in ruby is a string. anything goes. spaces too. just make sure you properly set it
danslo has joined #ruby
<joshu> interesting observation that with ":" as a separator my specific test passes, but with a "," I need to join the ENV variables for the test to pass
<apeiros> $ X='1, 2, 3' ruby -e 'p ENV["X"]' # --> "1, 2, 3"
bluenemo has joined #ruby
bluenemo has joined #ruby
danslo has quit [Client Quit]
ttt has quit [Remote host closed the connection]
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
<joonty> the caveat is that certain formats of env variables are easier to set in the shell that you're using
evenix has joined #ruby
timonv has quit [Remote host closed the connection]
<joonty> then again, if you quote properly then you can set anything, I assume
staafl has quit [Ping timeout: 252 seconds]
<apeiros> hence `just make sure you properly set it`
stonevil has quit [Remote host closed the connection]
clevermatt has quit [Remote host closed the connection]
<joonty> apeiros: yes, I was just expanding :)
<apeiros> :)
danslo has joined #ruby
<joshu> maybe it's mail gem but when I do ENV['USERS']=user1@example.com, user2@example.com you get this: "user1@example.com, user2@example.com" BUT mail gem does this ["user1@example.com", "user2@example.com"]
daniel_- has joined #ruby
b0oh has joined #ruby
krnflake has joined #ruby
<apeiros> o0
tonini has joined #ruby
ehaliewicz has quit [Remote host closed the connection]
<joshu> so for the test to pass I have to take the latter result and join(',')
pduin_ has joined #ruby
teddyp1cker has joined #ruby
mikecmpbll has joined #ruby
<joshu> when I used joonty's colon separator the test passed without joining
rippa has joined #ruby
zastaph has joined #ruby
LennyLinux has quit [Ping timeout: 256 seconds]
zastaph has left #ruby [#ruby]
b0oh has left #ruby [#ruby]
fixl has joined #ruby
Xeago has joined #ruby
pduin has quit [Ping timeout: 252 seconds]
<joonty> wow, so mail gem overrides ruby's ENV parsing?
darkapex has quit [Ping timeout: 240 seconds]
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
corehook_ has joined #ruby
grzywacz has quit [Quit: :wq]
<joshu> joonty is that bad?
grzywacz_ has joined #ruby
<joonty> well, it's caused you confusion due to unexpected behaviour
<joonty> so i'd say it's bad
<joonty> programming's confusing enough :P
<joshu> joonty hehe true.
cantonic has quit [Quit: cantonic]
diadara has quit [Read error: Connection reset by peer]
diadara has joined #ruby
jnoob22 has joined #ruby
corehook has quit [Ping timeout: 256 seconds]
sqa_bm has joined #ruby
mawueli has joined #ruby
<apeiros> I don't think mail gem overrides rubys env parsing
<apeiros> joshu: how do you pass ENV['USERS'] to the mail gem?
mawueli is now known as Guest68175
<joshu> apeiros mail.to ENV['USERS']
<apeiros> yeah, so mail.to parses strings
phasma has quit [Ping timeout: 252 seconds]
SeanTAllen has quit [Ping timeout: 252 seconds]
Sirupsen has quit [Ping timeout: 252 seconds]
msch has quit [Ping timeout: 245 seconds]
WhereIsMySpoon_ has joined #ruby
PaulePanter has quit [Ping timeout: 256 seconds]
<joonty> ah, yeh that makes more sense
<apeiros> and I'd assume because most mail clients accept email lists, separated by comma, mail gem does too
itman_ has quit [Ping timeout: 252 seconds]
martxel has quit [Ping timeout: 252 seconds]
_rgn has quit [Ping timeout: 252 seconds]
adrian_ has joined #ruby
sqa_bm has quit [Remote host closed the connection]
chase-work has joined #ruby
phite has quit [Ping timeout: 256 seconds]
eval-in has quit [Ping timeout: 256 seconds]
[0x1a] has quit [Ping timeout: 256 seconds]
MrZYX|off has quit [Ping timeout: 256 seconds]
ayonix has quit [Ping timeout: 256 seconds]
KRF_ has joined #ruby
z has quit [Ping timeout: 252 seconds]
wereHamster has quit [Ping timeout: 252 seconds]
KRF has quit [Ping timeout: 252 seconds]
WhereIsMySpoon has quit [Ping timeout: 252 seconds]
sqa_bm has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
<apeiros> documented too, though could be explained better: http://rdoc.info/gems/mail/Mail/Message#to-instance_method
martxel has joined #ruby
wereHamster has joined #ruby
martxel is now known as Guest87495
eval-in has joined #ruby
guilleiguaran_ has quit [Ping timeout: 240 seconds]
Zeeraw has quit [Ping timeout: 252 seconds]
<joshu> apeiros do the behaviour is normal I just ran tests with output for comma and one with colon and these are the results...
<apeiros> I don't think mail gem accepts colon separated email addresses
<apeiros> and you can test that easily in pry/irb
darkapex has joined #ruby
Guest68175 has quit [Ping timeout: 256 seconds]
z has joined #ruby
<apeiros> m = Mail.new do to 'foo@bar.com:boo@bar.com' end; m.to # => "foo@bar.com:boo@bar.com"
<apeiros> it treats it as a single address
PaulePanter has joined #ruby
<apeiros> this won't successfully deliver
z is now known as Guest44601
<apeiros> m = Mail.new do to 'foo@bar.com,boo@bar.com' end; m.to # => ["foo@bar.com", "boo@bar.com"]
<apeiros> now, this are 2 addresses. this will successfully deliver.
sqa_bm has quit [Ping timeout: 256 seconds]
<joshu> ok it's not Mail it's me ;)
msch has joined #ruby
slainer68 has joined #ruby
lkba has joined #ruby
LennyLinux has joined #ruby
robustus has quit [Ping timeout: 252 seconds]
Trynemjoel has joined #ruby
<joshu> so instead of using the ENV variable in my test I'll just specify the email addresses are mail gem parses the ENV variable
eploko has joined #ruby
sqa_bm has joined #ruby
choobie has quit [Ping timeout: 240 seconds]
sepp2k1 has joined #ruby
cantonic_ has joined #ruby
cantonic_ has quit [Client Quit]
lyanchih has quit [Quit: lyanchih]
camilasa_ has quit [Remote host closed the connection]
robustus has joined #ruby
lewix has quit [Remote host closed the connection]
danslo has quit [Quit: danslo]
tonini has quit [Ping timeout: 248 seconds]
darkapex has quit [Ping timeout: 252 seconds]
sepp2k has quit [Ping timeout: 256 seconds]
kofno has joined #ruby
darkapex has joined #ruby
Guest87495 is now known as martxel_
itman has joined #ruby
martxel_ has quit [Changing host]
martxel_ has joined #ruby
slainer68 has quit [Ping timeout: 256 seconds]
casheew has quit [Read error: Connection reset by peer]
keanehsiao has quit [Quit: Leaving...]
casheew has joined #ruby
casheew has quit [Read error: Connection reset by peer]
yshh has quit [Remote host closed the connection]
pduin_ has quit [Remote host closed the connection]
pduin has joined #ruby
martxel_ is now known as martxel
danslo has joined #ruby
<joshu> I want to ask you guys about testing with minitest
tk__ has joined #ruby
slava_dp has quit [Quit: Bye]
codecop has quit [Remote host closed the connection]
nfk has quit [Quit: yawn]
casheew has joined #ruby
<joshu> It took me ages to figure out how to use testing with my project. To give a quick summary my code reads an inbound email -> parses it -> then send a new email. I wanted to make sure that the outbound email from my script was created correctly in terms of TO, FROM, body content and any attachments.
corehook_ has quit [Ping timeout: 252 seconds]
<joshu> What I'm after is whether I've gone about it the right way which is actually the third version of how my tests are written. the first two are commented in the gist https://gist.github.com/curiousjoshu/7cacf27f0fd08ec15f0c
sqa_bm has quit [Remote host closed the connection]
phite has joined #ruby
corehook_ has joined #ruby
sqa_bm has joined #ruby
monkegjinni has joined #ruby
ivanoats has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
<joshu> I just want to know if I've got it….the email fixtures are the inbound emails passed to my script. I started by reading each fixture and then asserting if the TestMailer deliverable was equal but I noticed random failures and when I modified my assertion to make the expected and actuals mails into strings I started seeing the message IDs differing and sometimes randomly the date header specifically time.
krz has quit [Quit: krz]
timonv has joined #ruby
k611 has joined #ruby
<joshu> So my current method is to not create the expected email and compare it to the TestMailer deliverable but instead assert the specific bits of the email which I'm interested in validating. Does this make sense ?
eploko has quit [Quit: Z-z-zzz...]
nerocrux has joined #ruby
sqa_bm has quit [Ping timeout: 252 seconds]
tonini has joined #ruby
monkegji_ has quit [Ping timeout: 256 seconds]
k610 has quit [Ping timeout: 252 seconds]
Michael has joined #ruby
ivanoats has quit [Ping timeout: 252 seconds]
Michael is now known as Guest24974
choobie has joined #ruby
choobie has quit [Changing host]
choobie has joined #ruby
yacks has joined #ruby
Eaven has quit [Read error: Connection reset by peer]
eka has quit [Ping timeout: 252 seconds]
krnflake is now known as krnflake_
Eaven has joined #ruby
TheDick has joined #ruby
bluenemo has quit [Quit: Verlassend]
eka has joined #ruby
krnflake_ is now known as krnflake
xardas has joined #ruby
mikecmpbll has quit [Quit: Computer has gone to sleep.]
xardas has quit [Changing host]
xardas has joined #ruby
dfdf has quit [Remote host closed the connection]
F1skr has joined #ruby
Neomex has quit [Quit: Neomex]
jbpros has joined #ruby
mmitchell has joined #ruby
eploko has joined #ruby
monkegji_ has joined #ruby
eploko has quit [Client Quit]
jwest has quit [Quit: WeeChat 0.4.0]
TheDick has quit [Ping timeout: 252 seconds]
jmaister has joined #ruby
<jmaister> hello
shammancer has quit [Ping timeout: 252 seconds]
monkegjinni has quit [Ping timeout: 252 seconds]
fridim_ has joined #ruby
pskosinski has joined #ruby
<apeiros> aaahahaha, ~10min to build myself a little tool in ruby which reads my build-order for sc2 :D
<apeiros> <3 `say`
icecandy has quit [Remote host closed the connection]
mmitchell has quit [Remote host closed the connection]
wargasm has quit [Ping timeout: 248 seconds]
<jmaister> Is there some way to add to conditions to array.delete_if?
<jmaister> Something like my_arr.delete_if {|a, b| not a.match(/#{x}\b/i or not b.match(/#{x}\b/i)}
osvico has joined #ruby
<apeiros> um, jmaister about just like that
<apeiros> the block is arbitrary code which returns a trueish/falsish value
fixl has quit [Remote host closed the connection]
krainboltgreene has joined #ruby
<apeiros> you can use as many logical operations in it as you wish
<jmaister> I'm getting "unexpected kOR, expecting ')'"
tonini has quit [Ping timeout: 248 seconds]
<jmaister> That may just be my linter ogc
<jmaister> *ofc
<joshu> apeiros hahaha you and sc2
Jinie has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> that's because your syntax is wrong
<apeiros> a.match(/#{x}\b/i or # <-- this does not do what you want
<apeiros> a.match(…) or a.match(…)
<jmaister> derp
Jinie has joined #ruby
<jmaister> Sometimes my eyes are in they way :S
Inoperabled is now known as Inoperable
Xeago has quit [Remote host closed the connection]
<jmaister> thanks for lending me yours
machuga is now known as machuga|away
boxmein has quit [Quit: - Not today.]
slainer68 has joined #ruby
corehook_ has quit [Ping timeout: 252 seconds]
helvete has joined #ruby
igaiga has joined #ruby
cjs226 has quit [Read error: Operation timed out]
zigomir has quit [Quit: zigomir]
jwest has joined #ruby
jwest has quit [Client Quit]
eploko has joined #ruby
igaiga has quit [Remote host closed the connection]
mark_locklear has joined #ruby
dash_ has joined #ruby
MrZYX|off has joined #ruby
jwest has joined #ruby
machuga|away has quit [Excess Flood]
machuga has joined #ruby
Kar- has joined #ruby
jimg has quit [Remote host closed the connection]
helvete has quit [Ping timeout: 252 seconds]
Naeblis|XChat has joined #ruby
slainer6_ has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
ivanoats has joined #ruby
slainer68 has quit [Ping timeout: 256 seconds]
a0n_ has joined #ruby
skasio has quit [Quit: leaving]
MrZYX|off has quit [Ping timeout: 256 seconds]
dash_ has quit [Ping timeout: 252 seconds]
a0n has quit [Ping timeout: 256 seconds]
a0n_ is now known as a0n
daniel_- has quit [Ping timeout: 252 seconds]
MrZYX|off has joined #ruby
ivanoats has quit [Ping timeout: 256 seconds]
MrZYX|off is now known as MrZYX
ArchBeOS has joined #ruby
ArchBeOS has joined #ruby
ArchBeOS has quit [Changing host]
ldnunes has joined #ruby
<joshu> wow it's torrential rain right now
<joshu> the sky has completely opened up
nowthatsamatt has quit [Quit: nowthatsamatt]
diadara has quit [Read error: Connection reset by peer]
ewag has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
dawkirst has joined #ruby
Guest70852 is now known as ned
Naeblis|XChat has quit [Ping timeout: 248 seconds]
ewag has joined #ruby
chase-work has quit [Quit: Computer has gone to sleep.]
lucianosousa has joined #ruby
ewag has quit [Client Quit]
camilasan has joined #ruby
mmitchell has joined #ruby
boxmein_ has joined #ruby
s1n4 has joined #ruby
boxmein_ is now known as boxmein
diadara has joined #ruby
mikecmpbll has joined #ruby
GeorgesLeYeti has joined #ruby
<GeorgesLeYeti> Hi
jimg has joined #ruby
k612 has joined #ruby
VinceThePrince has quit [Read error: Connection reset by peer]
<GeorgesLeYeti> I can't find the way from a string to print only the 2 first char. Like "Hello" => "He"
nerocrux has quit [Remote host closed the connection]
Macaveli has joined #ruby
mklappstuhl has joined #ruby
<joshu> mintiest doesn't like when I have an abort statement, i.e. it won't complete the test unless I remove abort…Can someone please explain
_veer has quit [Ping timeout: 256 seconds]
<hoelzro> >> 'Hello'[0,2]
<eval-in> hoelzro => "He" (http://eval.in/32394)
<hoelzro> GeorgesLeYeti: ^
<GeorgesLeYeti> ho ok
<GeorgesLeYeti> sorry
<hoelzro> nothing to be sorry for =)
<GeorgesLeYeti> i found some thing else previously but your riight clearly more easy
<hoelzro> reading over the documentation over Array can be eye-opening, though!
<hoelzro> there are a lot of handy methods there
k611 has quit [Ping timeout: 256 seconds]
_rgn has joined #ruby
<joshu> should I just not use abort in my script
Xeago has joined #ruby
Naeblis|XChat has joined #ruby
_veer has joined #ruby
_veer has joined #ruby
_veer has quit [Changing host]
cortes has joined #ruby
slainer6_ has quit [Read error: Operation timed out]
Naeblis|XChat has quit [Client Quit]
tommylom1ykins is now known as tommylommykins
lewix has joined #ruby
jbpros has quit [Quit: jbpros]
yshh has joined #ruby
_cheney4 has quit [Read error: Connection reset by peer]
DestinyAwaits has joined #ruby
geekbri has joined #ruby
mattp_ has joined #ruby
solidoodlesuppor has joined #ruby
sambao21 has joined #ruby
Spooner has joined #ruby
DaniG2k has joined #ruby
Evropi has joined #ruby
lewix has quit [Ping timeout: 240 seconds]
<Evropi> Hi everyone, I read somewhere that you can only have a maximum of 15 arguments per function due to a limitation in Ruby, is this true?
slainer68 has joined #ruby
<Spooner> Evropi, Not aware of that, but there is no reason to have that many arguments ;)
<ericwood> at that point you should be using hashes!
boxmein has quit [Quit: quit]
<Spooner> I was just going to suggest that, ericwood.
<ericwood> me too
<Evropi> lol, still - most scripts are written very shoddily. The WeeChat scripting doc claims this limit:
t_p has joined #ruby
<Evropi> note that WeeChat has supported Ruby since 2006 or so so it may not reflect the latest situation
<ericwood> that's a shitty API
<Evropi> well, it supports 6 languages with one C core
hyperthinker1024 has joined #ruby
<ericwood> true, but they should really be accepting a hash
Jinie_ has joined #ruby
<ericwood> rather than making you remember the order of arguments
<ericwood> but that's like my opinion, man
<Evropi> true
pitzips has joined #ruby
<Evropi> I wouldn't write such a long crappy function anyway, just wondering if this is an actual limitation of Ruby
<ericwood> it may not be anymore
<ericwood> maybe that was the case in 1.8
<Evropi> I think WeeChat uses the MRI (somehow), not an embedded engine
diadara has quit [Read error: Connection reset by peer]
diadara has joined #ruby
Jinie_ has quit [Remote host closed the connection]
<ericwood> 1.9.3 doesn't seem to have that limitation
Jinie_ has joined #ruby
<Evropi> did you just test it eric?
<ericwood> yes
<Evropi> ah, okay
<Evropi> turns out that the API is generally considered one of the worst parts of weechat, lol (from #weechat)
<Spooner> Yeah and 1.8.7 does either. Maybe a very old Ruby had that limitation.
ewag has joined #ruby
<ericwood> >> ef foo(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16); puts "lol"; end; foo(*(1..16).to_a)
<eval-in> ericwood => /tmp/execpad-abf964643625/source-abf964643625:3: syntax error, unexpected keyword_rescue, expecting end-of-input ... (http://eval.in/32408)
<ericwood> damn
Jinie_ has quit [Max SendQ exceeded]
Jinie has quit [Remote host closed the connection]
<ericwood> >> def foo(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16); puts "lol"; end; foo(*(1..16).to_a)
<eval-in> ericwood => lol ... (http://eval.in/32409)
<ericwood> :D:D:D:D:D
Jinie has joined #ruby
<ericwood> splat operator ftw
<Evropi> hahaha
allaire has joined #ruby
<ericwood> I haven't had to use that trick in forevarrrr
jonathanwallace has quit [Ping timeout: 248 seconds]
breakingthings has joined #ruby
ananthakumaran1 has joined #ruby
krainboltgreene has quit [Ping timeout: 256 seconds]
fuzzyhorns has joined #ruby
cjs226 has joined #ruby
yashshah_ has joined #ruby
sqa_bm has joined #ruby
ananthakumaran has quit [Ping timeout: 248 seconds]
Andreo__ has joined #ruby
Evropi has left #ruby ["WeeChat 0.4.1"]
krainboltgreene has joined #ruby
yashshah has quit [Ping timeout: 260 seconds]
DestinyAwaits has quit [Read error: Operation timed out]
mark_locklear has quit [Quit: Leaving]
DestinyAwaits has joined #ruby
jgarvey has joined #ruby
alexwh has quit [Quit: Quitting]
fridim_ has quit [Ping timeout: 276 seconds]
alexwh has joined #ruby
Andreo_ has quit [Ping timeout: 276 seconds]
nowthatsamatt has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
nerocrux has joined #ruby
nerocrux has quit [Remote host closed the connection]
DaniG2k has quit [Quit: Leaving.]
mattp_ has left #ruby ["WeeChat 0.4.0"]
DestinyAwaits has quit [Quit: Leaving]
sqa_bm has quit [Ping timeout: 260 seconds]
krawchyk has joined #ruby
Lubinski has joined #ruby
alexwh has quit [Ping timeout: 252 seconds]
tonini has joined #ruby
threesome has quit [Ping timeout: 256 seconds]
alexwh has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
pduin has quit [Remote host closed the connection]
alexmreis has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
Macaveli has quit [Ping timeout: 240 seconds]
allaire has quit [Quit: allaire]
ivanoats has joined #ruby
<joonty> i have an IO question
Macaveli has joined #ruby
<Mon_Ouie> There's this: https://github.com/dominikh/weechat-ruby — it might not work anymore though
<joonty> if I read a line from a file, moving the pointer to a particular position in the file
[m]adman has joined #ruby
Sirupsen has joined #ruby
<joonty> how can I re-read that line from the file object, in another place?
rickruby has joined #ruby
yalue has joined #ruby
jerius has joined #ruby
<joonty> so File#gets will read the next line, I essentially want to re-read the line that was last read
generalissimo has joined #ruby
[0x1a] has joined #ruby
phasma has joined #ruby
_nitti has joined #ruby
Appineer has joined #ruby
SeanTAllen has joined #ruby
jokke has quit [Ping timeout: 252 seconds]
<Mon_Ouie> I'd store it in some object that takes care of such buffering
<joonty> Mon_Ouie: so there's no simple way to do it without buffering?
<Mon_Ouie> You could also use #seek to go back and reread but meh
<joonty> yeh, that's what I've done so far but it's a bit cumbersome
ivanoats has quit [Ping timeout: 256 seconds]
guilleiguaran_ has joined #ruby
_nitti has quit [Read error: Connection reset by peer]
splittingred has joined #ruby
shong has joined #ruby
ffio_ has joined #ruby
Heero` has quit [Ping timeout: 248 seconds]
ffio has quit [Ping timeout: 256 seconds]
shong has quit [Client Quit]
ravster has joined #ruby
falood has quit [Remote host closed the connection]
devoldmx has joined #ruby
sqa_bm has joined #ruby
sqa_bm has quit [Remote host closed the connection]
a0n has quit [Remote host closed the connection]
binaryplease has quit [Ping timeout: 252 seconds]
xlab has quit [Remote host closed the connection]
tomzx_mac has joined #ruby
gasbakid has quit [Read error: Connection reset by peer]
cofin has joined #ruby
rickruby has quit [Remote host closed the connection]
rburton- has joined #ruby
pduin has joined #ruby
ananthakumaran1 has quit [Ping timeout: 252 seconds]
osvico has quit []
ananthakumaran has joined #ruby
rburton- has quit [Client Quit]
b0oh has joined #ruby
v0n has joined #ruby
devoldmx has quit [Client Quit]
devoldmx has joined #ruby
interactionjaxsn has joined #ruby
devoldmx has quit [Client Quit]
h8R has joined #ruby
devoldmx has joined #ruby
TheDick has joined #ruby
pduin has quit [Read error: Connection reset by peer]
pduin has joined #ruby
mansi has joined #ruby
mansi is now known as sqa_bm
banghouse has joined #ruby
slmorton has joined #ruby
banghouse is now known as Guest67902
wallerdev has joined #ruby
jimg has quit [Remote host closed the connection]
Guest67902 is now known as banghouse
Mattix has joined #ruby
viszu has quit [Quit: Leaving.]
pduin has quit [Remote host closed the connection]
<Sp4rKy> how owuld you add a gem to a bundle without editing Gemfile ?
darthdeus has quit [Quit: Linkinus - http://linkinus.com]
jerius has quit []
darthdeus has joined #ruby
pduin has joined #ruby
b0oh has quit [Ping timeout: 252 seconds]
cba has joined #ruby
viszu has joined #ruby
viszu has quit [Remote host closed the connection]
jerius has joined #ruby
sambao21 has joined #ruby
randomlogin has joined #ruby
<dominikh> weechat-ruby is unmaintained, discouraged, hacky and yeah, it hasn't been updated since.. weechat 0.3.0 I think
kennyvb has joined #ruby
ni416919 has joined #ruby
b0oh has joined #ruby
devoldmx has quit [Quit: Bye]
devoldmx has joined #ruby
<ni416919> What's a proc?
Gue______ has joined #ruby
Gue______ is now known as RubNoob
digitalcake has joined #ruby
alexmreis has quit [Quit: Leaving.]
<ni416919> Thanks!
carloslopes has joined #ruby
<ericwood> it's the first hit on google for "ruby procs" btw
Zeeraw has joined #ruby
eurippa has joined #ruby
failshell has joined #ruby
alexmreis has joined #ruby
akells` has joined #ruby
wmoxam has joined #ruby
sepp2k1 has quit [Remote host closed the connection]
jokke has joined #ruby
pipework has quit [Remote host closed the connection]
jlast has joined #ruby
ia___ has quit [Remote host closed the connection]
jtharris has joined #ruby
digitalcake has quit [Quit: Leaving.]
charliesome has joined #ruby
thetristan has joined #ruby
devoldmx has quit [Quit: Bye]
devoldmx has joined #ruby
brianherman has joined #ruby
tonini has joined #ruby
ariedler has joined #ruby
dash_ has joined #ruby
lyanchih has joined #ruby
dhruvasagar has quit [Ping timeout: 240 seconds]
wolcanus has joined #ruby
jerius has quit []
digitalcake has joined #ruby
dhruvasagar has joined #ruby
ffranz has joined #ruby
ni416919 has quit [Remote host closed the connection]
digitalcake has left #ruby [#ruby]
Naseer has joined #ruby
Naseer has left #ruby [#ruby]
diadara_ has joined #ruby
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
jnoob22_ has joined #ruby
RubNoob has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
teddyp1cker has quit [Remote host closed the connection]
diadara has quit [Ping timeout: 252 seconds]
slainer6_ has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
haxrbyte has quit [Remote host closed the connection]
haxrbyte_ has joined #ruby
vlad_starkov has joined #ruby
n22373 has joined #ruby
jimg has joined #ruby
n22373 is now known as Tara
jlast has quit [Remote host closed the connection]
jnoob22 has quit [Ping timeout: 248 seconds]
Tara is now known as Tarar
jlast has joined #ruby
jlast has quit [Remote host closed the connection]
jlast has joined #ruby
slainer68 has quit [Ping timeout: 256 seconds]
devoldmx has quit [Quit: Bye]
jlast has quit [Remote host closed the connection]
devoldmx has joined #ruby
jlast has joined #ruby
<lupine> hello. So I've got a problem like: class Foo ; class << self ; attr_accessor :foo ; end ; end ; class Bar < Foo ; end ; Foo.foo = "bar" ; assert Bar.foo == "bar"
<lupine> I guess I need to consult superclass implementation if no value has been set in the subclass
JustinAiken has joined #ruby
_veer has quit [Ping timeout: 248 seconds]
threesome has joined #ruby
vlad_starkov has quit [Ping timeout: 256 seconds]
Jinie has quit [Remote host closed the connection]
timkohrumel has joined #ruby
diadara_ has quit [Ping timeout: 252 seconds]
eurippa has quit [Remote host closed the connection]
devoldmx has quit [Quit: Bye]
devoldmx has joined #ruby
jurbat has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
jimg has quit [Ping timeout: 248 seconds]
banisterfiend has joined #ruby
jurbat has joined #ruby
ayaz has quit [Quit: Bye!]
blaxter has quit [Ping timeout: 260 seconds]
<lupine> so I have https://gist.github.com/anonymous/5685205 - any advances?
dr0p has quit [Ping timeout: 240 seconds]
Gues_____ has joined #ruby
Gues_____ is now known as RubNoob
<withnale> is there a version of select/reject that will give back the matching elements AND delete them from the array at the same time?
huoxito has joined #ruby
jerius has joined #ruby
niceguyjames has joined #ruby
_veer has joined #ruby
_veer has joined #ruby
VinceThePrince has joined #ruby
<lupine> delete_if will delete them, but returns the original array
devoldmx has quit [Client Quit]
<withnale> yes. I'm looking for one command to do both
<withnale> a = %w| 1 2 3 4 5 6 |
devoldmx has joined #ruby
<withnale> a.function{|x| x > 3} # to return [ 4, 5, 6 ]
<withnale> a # to return [ 1, 2, 3]
tomzx_mac has quit [Ping timeout: 260 seconds]
<apeiros> withnale: no there is not
<apeiros> but you can write one yourself
<withnale> I guess use select on one line and reject on another with the same block
<apeiros> o0
wallerdev has quit [Quit: wallerdev]
Tarar has quit [Remote host closed the connection]
<apeiros> class Array; def rejected!; result=[]; reject! do |item| if yield(item); result << item; true; else false; end; end; result; end; end
nfk has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
<apeiros> single-pass
Macaveli has quit [Ping timeout: 276 seconds]
atyz has joined #ruby
ni291187 has joined #ruby
acrussell has joined #ruby
Cyrus has quit [Quit: Cyrus.sleep()]
randomlogin has quit [Quit: randomlogin]
devoldmx has quit [Client Quit]
horsey has quit [Quit: leaving]
jjbohn has joined #ruby
eploko has quit [Ping timeout: 276 seconds]
devoldmx has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
Z_Mass has joined #ruby
tommyvyo has joined #ruby
_maes_ has joined #ruby
randomlogin has joined #ruby
Elhu has joined #ruby
keanehsiao has joined #ruby
s1n4 has left #ruby ["leaving"]
jprovazn is now known as jprovazn_afk
devoldmx has quit [Quit: Bye]
devoldmx has joined #ruby
Coolhand has quit [Remote host closed the connection]
wesside has joined #ruby
huoxito has quit [Quit: Leaving]
randomlogin has quit [Ping timeout: 240 seconds]
Kricir has joined #ruby
cmarques has quit [Ping timeout: 240 seconds]
theRoUS has joined #ruby
theRoUS has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
daniel_- has joined #ruby
nfk has quit [Quit: yawn]
Kricir_ has joined #ruby
ananthakumaran1 has joined #ruby
nfk has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
Coolhand has joined #ruby
gaahrdner has joined #ruby
ananthakumaran has quit [Ping timeout: 256 seconds]
caveat- has quit [Quit: leaving]
ni291187 has quit [Remote host closed the connection]
sailias has joined #ruby
caveat- has joined #ruby
charliesome_ has joined #ruby
obs has joined #ruby
charliesome has quit [Disconnected by services]
charliesome_ is now known as charliesome
Kricir has quit [Ping timeout: 248 seconds]
johnnyfuchs has joined #ruby
atyz has quit [Quit: Leaving...]
persand has quit [Quit: persand]
freerobby has joined #ruby
Elhu has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
b0oh has quit [Quit: Leaving.]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
dr0p has joined #ruby
zommi has joined #ruby
rhys has joined #ruby
freerobby has quit [Client Quit]
cmarques has joined #ruby
acrussell has left #ruby [#ruby]
wallerdev has joined #ruby
teclator has quit [Ping timeout: 256 seconds]
whitedawg has joined #ruby
tommyvyo has quit [Quit:]
RORgasm has joined #ruby
deception has joined #ruby
t_p has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
senayar_ has joined #ruby
senayar has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
bionhart has joined #ruby
ivanoats has joined #ruby
senayar has joined #ruby
_Amaan has joined #ruby
ia___ has joined #ruby
ananthakumaran1 has quit [Quit: Leaving.]
tommyvyo has joined #ruby
Eaven has quit [Read error: Connection reset by peer]
senayar_ has quit [Ping timeout: 256 seconds]
ananthakumaran has joined #ruby
Eaven has joined #ruby
bean__ has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
rtl_ is now known as rtl
ivanoats has quit [Ping timeout: 252 seconds]
ioNull has quit [Quit: Computer has gone to sleep.]
axl_ has joined #ruby
alexmreis has quit [Quit: Leaving.]
tjbiddle has joined #ruby
carloslopes has quit [Remote host closed the connection]
devoldmx has quit [Quit: Bye]
devoldmx has joined #ruby
alexmreis has joined #ruby
aganov has quit [Remote host closed the connection]
tagrudev has quit [Remote host closed the connection]
tootubular has joined #ruby
alex__c2022 has joined #ruby
mahmoudimus has joined #ruby
ramblex has quit [Remote host closed the connection]
Jamesford has joined #ruby
cr_nxh has joined #ruby
<cr_nxh> Good morning. I'm having issues trying to setup a ircbot. Can one of you please lead the way? http://pastie.org/private/2n20jfjipv7pl8aubuzuvw
tatsuya_o has joined #ruby
takeru has joined #ruby
pitzips has quit [Ping timeout: 276 seconds]
freerobby has quit [Quit: Leaving.]
ia___ has quit [Remote host closed the connection]
alexmreis has left #ruby [#ruby]
atyz has joined #ruby
Jamesford has quit [Read error: Connection reset by peer]
clocKwize has quit [Quit: clocKwize]
krainboltgreene has quit [Ping timeout: 256 seconds]
jnoob22_ has quit [Remote host closed the connection]
Guest69060 has quit [Changing host]
Guest69060 has joined #ruby
Guest69060 is now known as C0deMaver1ck
freerobby has joined #ruby
polymar_ has joined #ruby
polymar_ has quit [Remote host closed the connection]
_maes_ has joined #ruby
jnoob22 has joined #ruby
GeissT has quit [Quit: MillBroChat AdIRC User]
krainboltgreene has joined #ruby
Jinie has joined #ruby
Todd has joined #ruby
ffranz1 has joined #ruby
pduin has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 252 seconds]
devoldmx has quit [Quit: Bye]
MarioEIU has joined #ruby
MarioEIU has quit [Read error: error:1408F119:SSL routines:SSL3_GET_RECORD:decryption failed or bad record mac]
bionhart has quit [Remote host closed the connection]
polymar has quit [Ping timeout: 260 seconds]
devoldmx has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
wsterling has joined #ruby
niklasb has joined #ruby
Renich has joined #ruby
Jinie has quit [Client Quit]
<Renich> Hey guys
<Renich> is there a way to tell bundler to use the local gems (installed locally) and not the system-wide gems (installed as root)??
cofin has quit [Quit: cofin]
aces1up has joined #ruby
axl_ has quit [Ping timeout: 276 seconds]
MarioEIU has joined #ruby
MarioEIU has left #ruby [#ruby]
MarioEIU has joined #ruby
ffranz has quit [Ping timeout: 248 seconds]
krainboltgreene has quit [Ping timeout: 256 seconds]
takeru has quit []
<aces1up> hey guys, can i set multiple variables with a case state ment like i do in the following?
Jinie has joined #ruby
mikecmpbll has joined #ruby
ffranz1 is now known as ffranz
axl_ has joined #ruby
vlad_starkov has joined #ruby
tonini has joined #ruby
<billy_ran_away> Is there any easy to get a list of a modules class that inherits from another class within that same module?
ivanoats has joined #ruby
atyz has quit [Quit: Leaving...]
brianpWins has joined #ruby
atyz has joined #ruby
ntus1017 has joined #ruby
<Todd> billy_ran_away: yard doc has a graph option that I've used to graph modules before
<billy_ran_away> Todd: I appreciate that, I'm doing this for meta-programming...
<Todd> I see
<billy_ran_away> Well I should say I can turn that answer into what I want : )
__main__ has quit [Ping timeout: 246 seconds]
vlad_starkov has quit [Ping timeout: 240 seconds]
<Todd> you were just looking for superclass
<Todd> ugh it's Friday and it's beautiful outside
* Todd stares at rubymine blankly
__main__ has joined #ruby
<billy_ran_away> I wish Module had a ::classes method that just returned an array of its classes… closest is constants, but that's just symbols.
Jamesford has joined #ruby
devoldmx has quit [Quit: Bye]
<billy_ran_away> It'd be sick if I could def self.leads; classes.find_all { |c| c < Lead }
devoldmx has joined #ruby
ivanoats has quit [Ping timeout: 260 seconds]
joast has joined #ruby
huoxito has joined #ruby
<Todd> hmm
<billy_ran_away> Instead I have to do this: constants.collect { |c| const_get c }.find_all { |c| c < Lead }
Jamesford has left #ruby [#ruby]
b0oh has joined #ruby
cofin has joined #ruby
<Todd> I wouldn't want to debug that
tonini has quit [Ping timeout: 248 seconds]
<banisterfiend> billy_ran_away: you could write oyur own 'classes' method
alex__c2022 has quit [Quit: alex__c2022]
<banisterfiend> billy_ran_away: it's pretty trivial
alex__c2022 has joined #ruby
<Todd> You could totally monkey patch it yeah.
<billy_ran_away> banisterfiend: I already am suffering from self inflicted scope creep...
IrishGringo has quit [Quit: ChatZilla 0.9.90 [Firefox 21.0/20130511120803]]
<apeiros> zerg coder?
<Todd> lol
vlad_starkov has joined #ruby
<banisterfiend> billy_ran_away: def classes; constants.select { |v| const_get(v).is_a?(Class) }; end
<apeiros> I think he wants map+select
ioNull has joined #ruby
<billy_ran_away> apeiros: As usual, you're right!
<apeiros> you are indeed a zerg coder? cool!
wolcanus has quit [Remote host closed the connection]
_maes_ has quit [Ping timeout: 260 seconds]
ilovemyherbz has joined #ruby
ilovemyherbz has left #ruby [#ruby]
c0rn has quit [Quit: Computer has gone to sleep.]
MarioEIU_ has joined #ruby
MarioEIU_ has left #ruby [#ruby]
vlad_starkov has quit [Ping timeout: 256 seconds]
<Todd> protos all the way man
devoldmx has quit [Quit: Bye]
MarioEIU has quit [Disconnected by services]
devoldmx has joined #ruby
<Todd> er.. are we allowed to still say "man" in programming chat rooms? RE: all the feminist movements in dev culture
<Todd> if not I apologize :)
atyz has quit [Quit: Leaving...]
chrishough has joined #ruby
MarioEIU_ has joined #ruby
jimg has joined #ruby
b0oh has quit [Quit: Leaving.]
obs has quit [Quit: Konversation terminated!]
atyz has joined #ruby
rippa has joined #ruby
wsterling has quit [Remote host closed the connection]
infecto has joined #ruby
b0oh has joined #ruby
infecto1 has joined #ruby
areil has quit [Remote host closed the connection]
obs has joined #ruby
lunarjar has quit [Ping timeout: 240 seconds]
voidpirate has joined #ruby
jimg has quit [Ping timeout: 240 seconds]
ckrailo has joined #ruby
dr0p has quit [Ping timeout: 252 seconds]
<shevy> there are no girls here
sambao21 has quit [Quit: Computer has gone to sleep.]
dr_bob has left #ruby [#ruby]
infecto has quit [Ping timeout: 260 seconds]
io_syl has quit [Read error: Operation timed out]
marcgg has quit [Ping timeout: 248 seconds]
Cultofmetatron has joined #ruby
txdv has quit [Read error: Connection reset by peer]
devoldmx has quit [Quit: Bye]
lunarjar has joined #ruby
Beoran__ has joined #ruby
devoldmx has joined #ruby
pi3r has quit [Quit: Leaving]
sambao21 has joined #ruby
mityaz has joined #ruby
elaptics is now known as elaptics`away
Cultofmetatron has quit [Remote host closed the connection]
timmow has quit [Ping timeout: 252 seconds]
tjbiddle has quit [Quit: tjbiddle]
atno has quit [Remote host closed the connection]
bamdad has joined #ruby
Beoran_ has quit [Ping timeout: 256 seconds]
takeru has joined #ruby
viszu has joined #ruby
freeayu has quit [Remote host closed the connection]
malcolmva has joined #ruby
infecto1 has quit [Quit: Leaving.]
bal has joined #ruby
dr0p has joined #ruby
dallasm has joined #ruby
ananthakumaran has joined #ruby
baroquebobcat has joined #ruby
bamdad has quit [Client Quit]
Macaveli has joined #ruby
LaPetiteFromage has joined #ruby
tomsthumb has joined #ruby
VinceThePrince has quit [Ping timeout: 252 seconds]
<billy_ran_away> Spooner: Whoa!
jgarvey has quit [Ping timeout: 276 seconds]
<Spooner> But that isn't what you want, I just realised.
gkunno has quit [Excess Flood]
<canton7> hrm I'd be tempted to allow false, since there's no real reason not to
gkunno has joined #ruby
gkunno has quit [Excess Flood]
machuga is now known as machuga|away
<canton7> but otherwise me likey
gkunno has joined #ruby
gkunno has quit [Excess Flood]
gkunno has joined #ruby
gkunno has quit [Excess Flood]
soulashell has joined #ruby
<billy_ran_away> Spooner: No, but I've always wanted something like that, only I called it collect_if
niceguyjames has quit [Ping timeout: 252 seconds]
soulashell has quit [Remote host closed the connection]
devoldmx has quit [Quit: Bye]
<billy_ran_away> map_find isn't bad though...
cj3kim has joined #ruby
devoldmx has joined #ruby
<Spooner> No, that is a find. It maps, then gives you back the first truthy result (and shortcuts, unlike map.find chain)
gkunno has joined #ruby
<billy_ran_away> Ohh...
mikewintermute has joined #ruby
pitzips has joined #ruby
includex has joined #ruby
tk__ has quit [Quit: ばいばい]
alanjc has quit [Quit: ZNC - http://znc.in]
obs has quit [Quit: Konversation terminated!]
<Spooner> collect_if is pretty much the same as collect (in terms of how I'd interpret the method name).
carloslopes has joined #ruby
bionhart has joined #ruby
Coffers has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
alex__c2022 has quit [Quit: alex__c2022]
bradhe has joined #ruby
obs has joined #ruby
devoldmx has quit [Quit: Bye]
akells` has quit [Remote host closed the connection]
rdark has quit [Quit: leaving]
ctp has joined #ruby
devoldmx has joined #ruby
<sqa_bm> I am trying to make a custom rspec formatter using Watir and I am getting this error: `<class:RSpec>': uninitialized constant Watir::RSpec::Core (NameError)
<sqa_bm> am I missing something? I have never used Watir before
txdv has joined #ruby
haxrbyte has joined #ruby
<sqa_bm> Code:
<sqa_bm> module Watir
<sqa_bm> class RSpec
<sqa_bm> class CustomFormatter
haxrbyte_ has quit [Remote host closed the connection]
grzywacz_ has quit [Read error: Operation timed out]
b0oh has quit [Quit: Leaving.]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
nomenkun has quit [Ping timeout: 256 seconds]
infecto has joined #ruby
<dawkirst> Hi, why does (DateTime.new(2013,5,1,00,00,01,'+2')..DateTime.new(2013,5,-1,23,59,59,'+2')).include?(DateTime.now) => false, with DateTime.now => Fri, 31 May 2013 18:00:39 +0200?
filipe has quit [Read error: Connection reset by peer]
slainer68 has joined #ruby
Hanmac has joined #ruby
jonathanwallace has joined #ruby
miskander has joined #ruby
qohelet_ has joined #ruby
ivanoats has joined #ruby
yairgo has joined #ruby
homelinen has quit [Ping timeout: 252 seconds]
Hanmac2 has quit [Ping timeout: 252 seconds]
alanjc has joined #ruby
infecto1 has joined #ruby
slainer6_ has quit [Ping timeout: 256 seconds]
_nitti has joined #ruby
obs has quit [Quit: Konversation terminated!]
<Spooner> dawkirst, Use DateTime.now.between?(DateTime.new(2013,5,1,00,00,01,'+2'),DateTime.new(2013,5,-1,23,59,59,'+2'))
wsterling has joined #ruby
devoldmx has quit [Quit: Bye]
brianpWins has quit [Quit: brianpWins]
senayar has quit [Remote host closed the connection]
devoldmx has joined #ruby
<Spooner> Don't know why it doesn't work precisely though.
robscomputer has joined #ruby
<dawkirst> Spooner, thanks for that.
<dawkirst> Spooner, is it a bug though?
homelinen has joined #ruby
dr0p has quit [Ping timeout: 240 seconds]
Renich has left #ruby [#ruby]
jgarvey has joined #ruby
alex__c2022 has joined #ruby
obs has joined #ruby
ereslibre_work has quit [Ping timeout: 246 seconds]
Macaveli has quit [Quit: This computer has gone to sleep]
infecto has quit [Ping timeout: 276 seconds]
jlast has quit [Read error: Operation timed out]
ia___ has joined #ruby
fail_ has joined #ruby
jdunck has joined #ruby
ybart has quit [Quit: ybart]
ivanoats_ has joined #ruby
<Spooner> When you make a range of DateTime, then it just steps through complete days after the start date. Thus, I guess it doesn't consider Time.now to actually be in that list (even if it is between the start and end)
<dawkirst> Ah.
<Spooner> *DateTime.now
<Spooner> Just a guess though.
atyz has quit [Quit: Leaving...]
devoldmx has quit [Ping timeout: 245 seconds]
mikepack has joined #ruby
ereslibre has joined #ruby
banjara has joined #ruby
epitron_ has quit [Changing host]
epitron_ has joined #ruby
theRoUS has quit [Ping timeout: 252 seconds]
epitron_ is now known as epitron
ivanoats has quit [Ping timeout: 245 seconds]
<dawkirst> (DateTime.new(Time.now.year,Time.now.month,1)..DateTime.new(Time.now.year,Time.now.month,-1)).include?(DateTime.new(Time.now.year,Time.now.month,Time.now.day)) => true, so .now must be the problem, as you alluded to.
homelinen has quit [Ping timeout: 276 seconds]
sayan has joined #ruby
wsterling has quit [Ping timeout: 245 seconds]
ntus1017 has quit [Remote host closed the connection]
tvw has quit []
joonty has quit [Quit: WeeChat 0.3.7]
arubin has joined #ruby
jlast has joined #ruby
b0oh has joined #ruby
jbueza has quit [Quit: Leaving.]
dash_ has quit [Quit: Time to beer :)]
slash_nick has joined #ruby
slash_nick has quit [Client Quit]
obs has quit [Quit: Konversation terminated!]
b0oh has left #ruby [#ruby]
timonv has quit [Remote host closed the connection]
Todd has quit [Ping timeout: 252 seconds]
gearaholic has joined #ruby
tommyvyo has quit [Ping timeout: 256 seconds]
vlad_starkov has joined #ruby
Todd has joined #ruby
mafolz has quit [Remote host closed the connection]
monkegji_ has quit [Remote host closed the connection]
icole has joined #ruby
matchaw has joined #ruby
obs has joined #ruby
tommyvyo has joined #ruby
ferdev_ has quit [Ping timeout: 252 seconds]
<gearaholic> may not be the right place to ask. When using rbenv on a debian server, could i backup the .rbenv dir and use that on a new server without having to re-compile the installed ruby versions?
slash_nick has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
<ericwood> #rbenv
Xeago has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 246 seconds]
ntus1017 has joined #ruby
lkba has joined #ruby
tjbiddle has joined #ruby
tjbiddle has quit [Remote host closed the connection]
atno has joined #ruby
wolcanus has joined #ruby
obs has quit [Remote host closed the connection]
homelinen has joined #ruby
jbueza has joined #ruby
jimg has joined #ruby
froy has quit [Ping timeout: 260 seconds]
Hanmac1 has joined #ruby
KillerFox has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
ferdev has joined #ruby
Cultofmetatron has joined #ruby
jokke has quit [Ping timeout: 252 seconds]
axl_ has quit [Quit: axl_]
eka has quit [Ping timeout: 248 seconds]
sqa_bm has quit [Remote host closed the connection]
pkrzywicki has quit [Ping timeout: 256 seconds]
sqa_bm has joined #ruby
eka has joined #ruby
jimg has quit [Ping timeout: 245 seconds]
gaahrdner has quit [Ping timeout: 256 seconds]
k612 has quit [Ping timeout: 252 seconds]
chandankumar has joined #ruby
theRoUS has joined #ruby
theRoUS has joined #ruby
bal has quit [Quit: Leaving]
Kricir has joined #ruby
eldariof has joined #ruby
froy has joined #ruby
slainer68 has quit [Remote host closed the connection]
Kricir_ has quit [Read error: Connection reset by peer]
sqa_bm has quit [Ping timeout: 245 seconds]
braoru has quit [Remote host closed the connection]
miskander has quit [Quit: miskander]
whoami_ has joined #ruby
<whoami_> what ruby compiler should i download for mac
zeade has joined #ruby
ferdev_ has joined #ruby
lllnicg has joined #ruby
noop_ has quit [Ping timeout: 240 seconds]
LaPetiteFromage has quit [Quit: LaPetiteFromage]
ferdev has quit [Ping timeout: 252 seconds]
ferdev_ is now known as ferdev
<whoami_> hellloo
<whoami_> eee
<whoami_> e
<whoami_> e
<whoami_> e
luckyruby has quit [Remote host closed the connection]
<whoami_> e
<whoami_> e
<whoami_> e
<whoami_> ee
<whoami_> e
<whoami_> e
<whoami_> e
<whoami_> eve
<whoami_> bv'
<whoami_> de
Criztian has quit [Remote host closed the connection]
whoami_ has quit [Excess Flood]
<lllnicg> does this look like a good install https://gist.github.com/kaecy/5686214
ivanoats_ is now known as ivanoats
<lllnicg> on line 9 unable to convert "\x90" from ASCII-8BIT to UTF-8 for lib/serialport.so, skippin
<lllnicg> g
Cultofmetatron has quit [Remote host closed the connection]
eldariof has quit [Ping timeout: 256 seconds]
elaptics`away is now known as elaptics
machuga|away is now known as machuga
stkowski has quit [Quit: stkowski]
Al_ has quit [Quit: Al_]
akells` has joined #ruby
akells` has quit [Remote host closed the connection]
<Spooner> lllnicg, Looks like an error in the documentation, not the code. Try loading it and see...
<canton7> lllnicg, it's not unusual
lucianosousa has quit [Quit: lucianosousa]
<lllnicg> it loaded good.
sayan has quit [Read error: Connection reset by peer]
cr_nxh has quit [Quit: Nettalk6 - www.ntalk.de]
_veer has quit [Ping timeout: 248 seconds]
keanehsiao has quit [Quit: Leaving...]
Cultofmetatron has joined #ruby
_veer has joined #ruby
_veer has quit [Changing host]
_veer has joined #ruby
io_syl has joined #ruby
noop_ has joined #ruby
akells` has joined #ruby
havenwood has joined #ruby
RubNoob has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
ferdev_ has joined #ruby
thomasle_ has joined #ruby
burlyscudd has joined #ruby
Kricir_ has joined #ruby
Kricir has quit [Read error: Connection reset by peer]
thillux has joined #ruby
tvw has joined #ruby
ferdev has quit [Ping timeout: 256 seconds]
ferdev_ is now known as ferdev
Hanmac has joined #ruby
Hanmac1 has quit [Ping timeout: 264 seconds]
adramalech has joined #ruby
xcv has quit [Remote host closed the connection]
ravster has quit [Quit: Leaving.]
luckyruby has joined #ruby
<burlyscudd> hi. given a set of Addrinfo objects from Socket.ip_address_list, is there a way to filter that address list by interface name? (i.e. "eth0", "en1", etc)
casheew has quit [Quit: leaving]
cofin has quit [Quit: cofin]
LanaDelRey has joined #ruby
freerobby has quit [Quit: Leaving.]
casheew has joined #ruby
jokke has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
twoism has joined #ruby
jeffean has joined #ruby
cmarques has quit [Ping timeout: 252 seconds]
AgentWillyWonka has quit [Quit: Linkinus - http://linkinus.com]
arya has joined #ruby
sambao21 has joined #ruby
robscomputer_ has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
tootubular has quit [Read error: Operation timed out]
arya_ has quit [Ping timeout: 256 seconds]
ariedler has quit [Remote host closed the connection]
mrsolo has joined #ruby
Criztian has joined #ruby
sqa_bm has joined #ruby
c0rn has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
momomomomo has joined #ruby
pkrnj has joined #ruby
robscomputer has quit [Ping timeout: 252 seconds]
jonathanwallace has quit [Quit: WeeChat 0.4.0]
jonathanwallace has joined #ruby
Z_Mass has quit [Ping timeout: 252 seconds]
badelat has joined #ruby
slmorton has quit [Remote host closed the connection]
corehook has joined #ruby
<talntid> is this a good place to ask about ruby datamapper? I am having a problem with it
rupee has joined #ruby
DanKnox_away is now known as DanKnox
qohelet_ has quit [Quit: qohelet_]
<adramalech> hey burlyscudd, you could use the system-getifaddrs C routine wrapper...
dhruvasagar has quit [Ping timeout: 252 seconds]
<adramalech> The original routine returns a linked list that contains avaliable inet interfaces. This lib walks on list and return an hash that contains the interface names and sub-hashes with respectives ip addresses and netmasks.
atyz has joined #ruby
<burlyscudd> adramalech: sounds very promising — forgive my ignorance but where should i look for that lib?
atyz has quit [Read error: Connection reset by peer]
atyz has joined #ruby
cofin has joined #ruby
ferdev has quit [Ping timeout: 252 seconds]
Mattix has quit [Quit: Leaving]
<adramalech> well if your using gem then it would be:
<burlyscudd> adramalech: oh that's a gem — sorry. the googles helped :-)
<adramalech> gem install system-
<adramalech> getifaddrs
<burlyscudd> adramalech: yeah just found — cool thanks!
AndChat| has quit [Ping timeout: 248 seconds]
ferdev has joined #ruby
<adramalech> yup yup
sqa_bm has quit [Ping timeout: 256 seconds]
<adramalech> does anybody know about the status of opencl wrapper for Ruby to do heterogenous computing? I looked around and found some okay stuff, but nothing too mainstream
<burlyscudd> adramalech: on similar topic — anything exist like this as far as you know for parsing arp output and giving you nifty stuff like the MAC of a default gw route for an interface?
<adramalech> let me see
Banistergalaxy has joined #ruby
tylersmith has joined #ruby
jlast has quit [Remote host closed the connection]
jbueza has quit [Quit: Leaving.]
pr0ton has joined #ruby
jlast has joined #ruby
jtharris has quit [Quit: WeeChat 0.4.0]
<adramalech> well your talking about getting the arp table into a hash from the mac address?
Kricir_ has quit [Remote host closed the connection]
<adramalech> for a router?
<burlyscudd> adramalech: yeah assuming you know the default gw IP for an interface
jlast has quit [Remote host closed the connection]
<burlyscudd> which you can do w/ arp command of course — just wondering if you happened to know whether someone had taken the time to write a gem that parses it up
devoldmx has joined #ruby
<burlyscudd> or at a higher level, given an interface, what is the MAC, IP, of default gateway (parsing route -n or something)
includex has quit [Quit: Leaving...]
hyperthinker1024 has quit [Remote host closed the connection]
<burlyscudd> adramalech: no worries if you don't — was just curious since you knew about this other nifty gem… :-p
kobain has joined #ruby
<adramalech> well what is it you want to do grab the entire table? or just part of it?
jlast has joined #ruby
jlast has quit [Remote host closed the connection]
jlast has joined #ruby
cj3kim has quit [Remote host closed the connection]
<burlyscudd> just part of the table
jbueza has joined #ruby
slash_nick has quit [Quit: leaving]
<burlyscudd> need eth address of gw device
ibash has joined #ruby
ibash has left #ruby [#ruby]
caraconan has joined #ruby
<caraconan> Hi all. What's wrong on this .erb file? http://paste.debian.net/7848/
slash_nick has joined #ruby
rakl has joined #ruby
ybart has joined #ruby
vlad_starkov has joined #ruby
Hanmac1 has joined #ruby
kenneth has quit [Quit: kenneth]
teclator has joined #ruby
corehook has quit [Read error: Connection reset by peer]
<Morrolan> caraconan: You'lll probably want `@fqdn.include? 'repository'` instead of `'repository' in @fqdn` :).
cba has quit [Quit: Leaving]
<caraconan> Morrolan; is something to do with the if statement
Soulcutter is now known as Sou|cutter
MarioEIU_ has quit [Remote host closed the connection]
<caraconan> If I remove it, it works smoothly
<Morrolan> There is no such thing as "element in collection" in Ruby. That's Python.
Kricir has joined #ruby
<burlyscudd> unless @fqdn.include? 'repository'
<burlyscudd> caraconan: ^^
Hanmac has quit [Ping timeout: 260 seconds]
<burlyscudd> adramalech: ahh thanks — good old packetfu
<burlyscudd> :-)
devoldmx has quit [Quit: Bye]
tootubular has joined #ruby
devoldmx has joined #ruby
<caraconan> Seriously, I don't understand how this is related with my question... but thanks anyway
<Morrolan> caraconan: You've got invalid syntax, simple as that.
<Morrolan> You can not check whether an element is in a collection by doing 'element in collection', you have to use 'collection.include? element'
mikewintermute has quit [Remote host closed the connection]
<burlyscudd> caraconan: [6] pry(main)> @fqdn = "foobar"
<burlyscudd> => "foobar"
<burlyscudd> SyntaxError: unexpected keyword_end, expecting $end
<burlyscudd> [7] pry(main)> if ! 'repository' in @fqdn; puts "yeah"; end
<caraconan> @fqdn is a collection? I thought it was a string
<Morrolan> No difference there.
johnmilton has joined #ruby
<caraconan> I'm using facter + puppet
vlad_starkov has quit [Ping timeout: 256 seconds]
mikewintermute has joined #ruby
<caraconan> ...and I'm a completely newbie to Ruby
<burlyscudd> adramalech: yeah packetfu's arp support helps me get part of the equation
<burlyscudd> caraconan: you are asking if a one thing is a substring of another, right?
<Morrolan> Yes, so use @fqdn.include? 'bla' to check whether 'bla' is part of the @fqdn string. :)
pcarrier_ has joined #ruby
<caraconan> Thanks
<burlyscudd> adramalech: PacketFu::Utils.arp is a good one, but I'll still need to get the parsing of route -n
<adramalech> hmmm
<burlyscudd> adramalech: I'll dig into the route part — thanks for your help
pitzips has quit [Ping timeout: 240 seconds]
Todd has quit [Ping timeout: 248 seconds]
takeru has quit [Remote host closed the connection]
Todd has joined #ruby
GeorgesLeYeti has quit [Quit: Quitte]
shevy2 has joined #ruby
shevy has quit [Ping timeout: 248 seconds]
<adramalech> if that might help it is Amazon API but I am sure it would be useful
<caraconan> It worked perfectly. Many thanks
<adramalech> you can install amazon sdk with: gem install aws-sdk
devoldmx has quit [Quit: Bye]
devoldmx has joined #ruby
wsterling has joined #ruby
h8R has quit [Ping timeout: 256 seconds]
sqa_bm has joined #ruby
infecto1 has quit [Quit: Leaving.]
ebobby has joined #ruby
miskander has joined #ruby
ebobby has quit [Client Quit]
Voodoofish430 has joined #ruby
infecto has joined #ruby
caraconan has quit [Quit: Leaving]
ebobby has joined #ruby
wsterling has quit [Ping timeout: 276 seconds]
niceguyjames has joined #ruby
bal has joined #ruby
<burlyscudd> adramalech: cool thanks
bal has quit [Read error: Connection reset by peer]
rakl has quit [Quit: sleeping]
DomKM has joined #ruby
teclator has quit [Ping timeout: 245 seconds]
DomKM has quit [Client Quit]
DomKM has joined #ruby
gaahrdner has joined #ruby
rakl has joined #ruby
Macaveli has joined #ruby
Macaveli has quit [Read error: Connection reset by peer]
rakl has quit [Max SendQ exceeded]
Macaveli has joined #ruby
freerobby has joined #ruby
fail_ has quit [Quit: fail_]
ia___ has quit [Quit: ia___]
Cultofmetatron has joined #ruby
rakl has joined #ruby
sqa_bm has quit [Ping timeout: 276 seconds]
ia___ has joined #ruby
dr0p has joined #ruby
<lllnicg> anybody know what this means? https://gist.github.com/anonymous/5686619
Macaveli has quit [Client Quit]
<ldnunes> lllnicg, can post the contents of bot1.rb in the gist?
cmarques has joined #ruby
marr has quit [Ping timeout: 252 seconds]
camilasan has quit [Remote host closed the connection]
<lllnicg> sure
devoldmx has quit [Quit: Bye]
cofin has quit [Quit: cofin]
guillaume_kuster has joined #ruby
jprovazn_afk has quit [Quit: Odcházím]
devoldmx has joined #ruby
kenneth has joined #ruby
gyre007 has quit [Remote host closed the connection]
rburton- has joined #ruby
yacks has quit [Ping timeout: 248 seconds]
<ldnunes> lllnicg, from what I could see the problem seems to be in the "irc" gem
jjbohn is now known as jjbohn|afk
Eaven has quit [Ping timeout: 256 seconds]
<ldnunes> lllnicg, perhaps there's another config you can set to connect to the freenode servers
dhruvasagar has joined #ruby
kirun has joined #ruby
<burlyscudd> lllnicg: I'd try testing w/ my own IRC server first — my instinct is that you're missing something you need to connect properly and freenode is bouncing you
<ldnunes> check their docs, perhaps there is something missing
chandankumar has quit [Read error: Connection reset by peer]
rburton- has quit [Client Quit]
c0rn has quit [Quit: Computer has gone to sleep.]
<ldnunes> lllnicg, what burlyscudd said, and also check this if you want to write a irc bot: https://github.com/cinchrb/cinch
<lllnicg> the docs only has install and quickstart and bot1 in a part a the quickstart.
<lllnicg> the docs only has install and quickstart and bot1 is a part of the quickstart.
blahwoop has joined #ruby
<blahwoop> hello
interactionjaxsn has quit [Remote host closed the connection]
<blahwoop> i have a question about how to approach a problem.
<ldnunes> lllnicg, try changing to another server. I made a simple bot a few weeks ago and was able to connect to IrcHighWay with no problems, using Cinch
devoldmx has quit [Quit: Bye]
devoldmx has joined #ruby
<blahwoop> im trying to generate RMA numbers. but they must be 6 numbers. so when the ids are less than 6 numbers it will fill it with 0. like this RMA000001
toekutr has joined #ruby
<lllnicg> ldnunes, i'll keep that in mind, but for now i want to keep it simple.
<blahwoop> if the id goes up to 100 or 1000 it should remove some 0s
<blahwoop> RMA001000
zodiak has quit [Remote host closed the connection]
brunoro has joined #ruby
<blahwoop> how would i go about doin gthat
chrishough has quit [Quit: chrishough]
ubnloginhex has joined #ruby
pr0ton has quit [Quit: pr0ton]
monkegjinni has joined #ruby
jimg has joined #ruby
timonv has joined #ruby
<ldnunes> blahwoop, perhaps using String#rjust?
pr0ton has joined #ruby
<lllnicg> if s < 6 then abs(s.length - 6) * "0" + s something like that
ferdev has quit [Ping timeout: 252 seconds]
<ldnunes> blahwoop, like so: 'RMA'+ rma_number.to_s.rjust(6, '0')
brendal has joined #ruby
<ldnunes> blahwoop, where rma_number is the number you want
<blahwoop> ok thanks
sambao21 has quit [Quit: Computer has gone to sleep.]
ferdev has joined #ruby
<blahwoop> i was thinking about using '% 06d' %
ariedler has joined #ruby
ioNull has quit [Quit: Textual IRC Client: www.textualapp.com]
infecto has quit [Read error: Connection reset by peer]
<ldnunes> blahwoop, hmmm... that could work, too
ariedler has quit [Remote host closed the connection]
BizarreCake has quit [Remote host closed the connection]
ariedler has joined #ruby
infecto has joined #ruby
jimg has quit [Ping timeout: 276 seconds]
sambao21 has joined #ruby
<ldnunes> blahwoop, "RMA%06d" % 2 # => "RMA000002"
<blahwoop> yeah
<blahwoop> didnt know if there was a better way
mocfive has joined #ruby
guillaume_kuster has left #ruby [#ruby]
dash_ has joined #ruby
robscomputer_ has quit [Remote host closed the connection]
LaPetiteFromage has joined #ruby
robscomputer has joined #ruby
<ldnunes> your way is more concise and to the point. Mine is somewhat verbose... :P
ioNull has joined #ruby
chrishough has joined #ruby
chrishough has quit [Client Quit]
chrishough has joined #ruby
generalissimo has quit [Remote host closed the connection]
Andreo_ has joined #ruby
vlad_starkov has joined #ruby
rakl has quit [Quit: sleeping]
momomomomo has quit [Quit: momomomomo]
brianpWins has joined #ruby
troessner has quit [Quit: Leaving]
saarinen has joined #ruby
harrymoreno has joined #ruby
momomomomo has joined #ruby
cj3kim has joined #ruby
cj3kim has quit [Remote host closed the connection]
jitterbug has joined #ruby
khushildep has quit [Ping timeout: 260 seconds]
terrellt has quit [Ping timeout: 256 seconds]
brunoro has quit [Ping timeout: 276 seconds]
Kricir has quit [Remote host closed the connection]
<harrymoreno> What's a good way of learning software design? I'm learning rails, but I think there's a disconnect between knowing how to use the framework and actually building useful webapps
sqa_bm has joined #ruby
cofin has joined #ruby
<lllnicg> this is my way s + "0" * (s.length - 6).abs
Andreo__ has quit [Ping timeout: 276 seconds]
kevinykchan has quit [Quit: Computer has gone to sleep.]
ferdev_ has joined #ruby
<burlyscudd> harrymoreno: read "Design Patterns in Ruby" and "Eloquent Ruby" for some building blocks stuff
_veer has quit [Ping timeout: 245 seconds]
<ubnloginhex> in ruby, ruby have method ex:"itsstring".length ,is ruby have "itsstring".find("its") ??
<burlyscudd> harrymoreno: I also like "Ruby Best Practices"
devoldmx has quit [Quit: Bye]
<harrymoreno> haha, well I did a little sicp htdp in college
ferdev has quit [Ping timeout: 252 seconds]
<burlyscudd> harrymoreno: if you are just learning Ruby and that's the only lang you know, I'd start with books about writing good Ruby
bionhart has quit [Remote host closed the connection]
devoldmx has joined #ruby
<lllnicg> ubnloginhex, "string".include? string
druonysus has joined #ruby
tommyvyo has quit [Quit:]
rezzack has joined #ruby
<Morrolan> String#index if you want the index of the substring.
druonysus has quit [Client Quit]
carloslopes has quit [Remote host closed the connection]
<harrymoreno> burlyscudd: I feel like I know ruby, and I understand rails now. It's just silly things like "what columns would I need in a DB to model this problem"
<ubnloginhex> llnicg thx sir,it's can.
cmarques has quit [Ping timeout: 252 seconds]
ferdev_ has quit [Ping timeout: 246 seconds]
atyz has quit [Quit: Leaving...]
cmarques has joined #ruby
tommyvyo has joined #ruby
ferdev has joined #ruby
jitterbug has quit [Quit: Leaving]
<burlyscudd> harrymoreno: ahhh
<burlyscudd> harrymoreno: unfortunately, I get paid to answer those kinds of questions… :-p
druonysus has joined #ruby
druonysus has joined #ruby
druonysus has quit [Changing host]
<lupine> harrymoreno, poodr
<burlyscudd> harrymoreno: or rather fortunate for me and unfortunate for you — if you're looking for a general reference on that kind of thing, I'm not sure it exists. Understanding notions of business logic, scaling, bottlenecks, useful de-normalization — these are the things upon which careers are built
superlukas has joined #ruby
Z_Mass has joined #ruby
gearaholic has quit [Remote host closed the connection]
sqa_bm has quit [Ping timeout: 264 seconds]
<lupine> it deals in the small-to-medium scale rather than the large, but it's very well worth doing
dhruvasagar has quit [Ping timeout: 256 seconds]
<ubnloginhex> in string type have methode reverse ? or we must make own method?
stkowski has joined #ruby
<Morrolan> Did you try it? :)
pr0ton has quit [Quit: pr0ton]
devoldmx has quit [Quit: Bye]
<harrymoreno> lupine: looks good
devoldmx has joined #ruby
<harrymoreno> burlyscudd: I'll look into the design patterns book
<lupine> it's the new office bible
<lupine> design patterns in ruby is good, eloquent ruby is also good
generalissimo has joined #ruby
<ubnloginhex> in a programming language "xxxxxxxxx", its can but just to list, ex: list.reverse(), but in ruby for string ,is ruby have reverse for string?
<burlyscudd> harrymoreno: Russ Olsen's stuff, in the same series as the one lupine just mentioned (which I'll have to check out now) is all good
<lupine> but poodr has a wonderful simpliciy
cmarques has quit [Ping timeout: 260 seconds]
<lupine> it's nothing hugely new, especially if you've read design patterns, but after reading it in the way it's put together, you immediately and comprehensively start doing it
luckyruby has quit [Remote host closed the connection]
<adramalech> I had a question about closure in ruby... i understand Procs, Blocks, and Lambdas; however, how is it used in Ruby and why is it used?
jastix has quit [Quit: Leaving]
ctp has quit [Quit: Linkinus - http://linkinus.com]
<Morrolan> ubnloginhex: How about you just try it?
<lupine> being a closure means the proc/block/lambda/etc takes its binding with it
grzywacz_ has joined #ruby
<adramalech> ahh okay..
<lupine> x = 1 ; l = lambda { x } ; Foo.lol(l) [...] l.call => 1
<lupine> that's quite clever, when you think about it
<lupine> inside the method body of #lol, there might be another x, whose value is 2
jeebster has joined #ruby
<adramalech> wow..
workmad3 has joined #ruby
<jeebster> any book recommendations on the theory/concept of money?
jurbat has quit [Quit: Computer has gone to sleep.]
tymat has joined #ruby
<adramalech> yea I delt with lambdas in scheme/racket..but with Proc and lambda it is alittle bit different
ToApolytoXaos has joined #ruby
<adramalech> omg now I need to figure out Continuations... sometimes i just wish once in my degree a professor would go over this stuff.. 8(
lyanchih has quit [Quit: lyanchih]
_Amaan has quit [Quit: _Amaan]
carloslopes has joined #ruby
luckyruby has joined #ruby
akells` has quit [Remote host closed the connection]
<adramalech> ohh okay so Continuations are like the functional equivalent of a goto... interesting
<awwaiid> continuations are like having a thread of execution in a variable that doesn't run in the background. You call it, it does some work and gives you an itermediate result. You call it again, it picks up where it left off and continues.
viszu has quit [Quit: Leaving.]
nomenkun has joined #ruby
<adramalech> wow... okay
kidoz has joined #ruby
<lupine> continuations are just green threads, really
<awwaiid> and weirdly in some places (in scheme) you can additionally get your _own_ continuation. And you can give it to others, who can then invoke you to pick up where you left off.
grzywacz_ is now known as grzywacz
* lupine has been playing with coroutines in c a bit recently
grzywacz has quit [Quit: :wq]
sayan has joined #ruby
<lupine> bit of a pain
atyz has joined #ruby
<adramalech> soo that is what i was about to get to green threads i heard/read that they are interpreted threads
KillerFox has quit [Ping timeout: 248 seconds]
grzywacz has joined #ruby
<awwaiid> yeah. they don't actually run concurrently
<awwaiid> but you can structure your code like it does
KillerFox has joined #ruby
JZTech101 has joined #ruby
shevy2 is now known as shevy
lewix has joined #ruby
<adramalech> yea i am like the entire fricken tall-recursion and lambdas, etc.. in scheme created so many headaches for me... it was like I was working it out in my head because if i didn't and tried writing it down on the board i would get lost too quickly lol
alvaro_o has joined #ruby
superlukas has quit [Quit: superlukas]
<awwaiid> in the full on mathematical functional programming land, you also get continuations that you can invoke over and over and each time you invoke it the continuation will pick up from the original point. Most languages have one-shot continuations, but what I describe is multi-shot ... the whole state of the function is captured, all the variables and everything, from one single point in time.
DanKnox is now known as DanKnox_away
alvaro_o has quit [Read error: Connection reset by peer]
<awwaiid> funny .. I have to write it down to get un-lost :)
<adramalech> okay... so they are like do something come back setup next iteration, then do something again (continued), etc.. etc..
jcromartie has joined #ruby
<awwaiid> yep. they usually ahve a 'yield' in the middle which is kinda like a return, except that when you call it again it picks up on the line after the 'yield'
cj3kim has joined #ruby
<adramalech> because i can sit down and work it out in my head, my collegues know i do that so they always like to interrupt me, like spout numbers at the top of their lungs or something, i wish i had like a huge object to throw at them lol..
<Morrolan> Screen!
<adramalech> so i thought you didn't need to yield if your block is a lambda becuase you use the .call?
<adramalech> lmao
DanKnox_away is now known as DanKnox
bricker`work has quit [Quit: leaving]
huttan has quit [Quit: leaving]
bricker has joined #ruby
huttan has joined #ruby
kidoz has quit [Quit: Ухожу я от вас]
thillux has quit [Quit: Leaving]
bricker has quit [Client Quit]
dr0p has quit [Ping timeout: 256 seconds]
wargasm has joined #ruby
bricker has joined #ruby
cmarques has joined #ruby
stoic_squirrel has joined #ruby
tonini has joined #ruby
Michael has joined #ruby
Guest24974 has quit [Read error: Connection reset by peer]
Michael is now known as Guest55404
<awwaiid> sorry, 'yield' means something else in ruby, I forgot
dhruvasagar has joined #ruby
cj3kim has quit [Remote host closed the connection]
<Morrolan> I still remember the time I tried to implement a generator by using 'yield', and ran into syntax errors. :)
<krnflake> what do you guys use for app metrics and log managing?
daniel_- has quit [Ping timeout: 248 seconds]
<lupine> grep ^^
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
kidoz has joined #ruby
<krnflake> :)
jarray52 has joined #ruby
Guga_ has joined #ruby
marr has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
Senjai has joined #ruby
Senjai has quit [Changing host]
Senjai has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
sqa_bm has joined #ruby
<awwaiid> adramalech, so I just refreshed myself on ruby's callcc -- that what you're playing with?
workmad3 has quit [Ping timeout: 248 seconds]
<adramalech> alittle
<adramalech> i am learning as much as i can about everything ruby
<awwaiid> cool. So that's an example of where you're given your own continuation
<adramalech> yea
Criztian has quit [Read error: Connection reset by peer]
Criztian_ has joined #ruby
lucianosousa has joined #ruby
taqutor has quit [Quit: Connection closed for inactivity]
ivanoats_ has joined #ruby
graydot has joined #ruby
noop_ has quit [Ping timeout: 264 seconds]
vlad_starkov has quit [Remote host closed the connection]
devoldmx has quit [Quit: Bye]
devoldmx has joined #ruby
vlad_starkov has joined #ruby
<joelteon> is there any decent way to trace when a property is accessed/set
<adramalech> http://ruby-doc.org/core-2.0/Continuation.html found this awesome link lol answered most of my questions..
ivanoats has quit [Ping timeout: 245 seconds]
vlad_sta_ has joined #ruby
sqa_bm has quit [Ping timeout: 260 seconds]
<joelteon> so it returns to the end of the callcc block instead of the beginning?
<joelteon> huh
Liquid-- has joined #ruby
jeffean has quit [Read error: Connection reset by peer]
druonysus has quit [Read error: Connection reset by peer]
druonysus has joined #ruby
<TTilus> weird encoding shit going on :-/
Vert has joined #ruby
<TTilus> File.join(foo, bar) returns string w encoding ASCII-8BIT
<TTilus> foo and bar both have encoding UTF-8
<TTilus> and neither of them has any characters outside ASCII
<TTilus> this is in production
<TTilus> in my dev machine all of those are utf-8
<TTilus> both have 1.9.3
stkowski has quit [Quit: stkowski]
jeffean has joined #ruby
cj3kim has joined #ruby
freerobby has quit [Quit: Leaving.]
vlad_starkov has quit [Ping timeout: 276 seconds]
jlast_ has joined #ruby
emptymag00 has quit [Read error: Connection reset by peer]
jimg has joined #ruby
jlast has quit [Ping timeout: 245 seconds]
pr0ton has joined #ruby
jeffean has quit [Read error: Connection reset by peer]
nyuszika7h has quit [Quit: WeeChat 0.4.1]
freerobby has joined #ruby
druonysus has quit [Remote host closed the connection]
jeffean has joined #ruby
infecto has quit [Quit: Leaving.]
rakl has joined #ruby
ivanoats_ is now known as ivanoats
machuga has quit [Excess Flood]
machuga has joined #ruby
rakl has left #ruby [#ruby]
druonysus has joined #ruby
druonysus has joined #ruby
druonysus has quit [Changing host]
brian_000_ has joined #ruby
<Beoran__> TTilus, you need an # encoding: UTF-8 comment on the seocnd line of ruby your scripts
<Beoran__> to tell ruby to use utf-8 internally
<Beoran__> in ruby 2.0 this is set automagically
sabfer has joined #ruby
evenix has quit [Read error: Operation timed out]
brian_000_ has quit [Client Quit]
monkegji_ has joined #ruby
jimg has quit [Ping timeout: 276 seconds]
jjbohn|afk is now known as jjbohn
evenix has joined #ruby
Appineer has quit [Remote host closed the connection]
pr0ton has quit [Quit: pr0ton]
<TTilus> i have # -*- coding: utf-8 -*-
monkegjinni has quit [Ping timeout: 252 seconds]
<TTilus> isn't that supposed to work?
<TTilus> apparently not
brianherman has quit [Ping timeout: 252 seconds]
<lllnicg> for python i think
cmarques has quit [Ping timeout: 256 seconds]
druonysuse has joined #ruby
druonysuse has quit [Changing host]
druonysuse has joined #ruby
<TTilus> didnt work :(
devoldmx has quit [Quit: Bye]
druonysus has quit [Ping timeout: 245 seconds]
deception_ has joined #ruby
devoldmx has joined #ruby
<TTilus> File.join of utf-8 parts still gives me ascii-8bit
sqa_bm has joined #ruby
voidpirate has quit [Remote host closed the connection]
dr0p has joined #ruby
Kar- has quit [Remote host closed the connection]
alex__c2022 has quit [Quit: alex__c2022]
_maes_ has joined #ruby
phipes has joined #ruby
Guest55404 has quit [Remote host closed the connection]
AndChat| has joined #ruby
devoldmx has quit [Client Quit]
devoldmx has joined #ruby
nomenkun_ has joined #ruby
workmad3 has joined #ruby
grzywacz has quit [Ping timeout: 252 seconds]
cj3kim has quit [Remote host closed the connection]
nomenkun has quit [Read error: Connection reset by peer]
Banistergalaxy has quit [Ping timeout: 245 seconds]
Kricir has joined #ruby
codecop has joined #ruby
evenix_ has joined #ruby
saarinen has quit [Quit: saarinen]
evenix has quit [Ping timeout: 252 seconds]
ewag has quit [Remote host closed the connection]
icole has quit [Remote host closed the connection]
<TTilus> Encoding.default_internal = 'UTF-8' does not help either
colonolGron has joined #ruby
pyx has joined #ruby
pyx has quit [Client Quit]
workmad3 has quit [Ping timeout: 248 seconds]
jcromartie has quit [Quit: Computer has gone to sleep.]
ner0x has joined #ruby
chrishough has quit [Quit: chrishough]
<blahwoop> i wrote a method thats suppose to return a link
cj3kim has joined #ruby
<blahwoop> i did def something_url "url" end
<blahwoop> it gives me a no method error of return
druonysus has joined #ruby
druonysus has quit [Changing host]
druonysus has joined #ruby
<blahwoop> undefined methodd 'return'
<blahwoop> am i doing something wrong
<Mon_Ouie> `def something_url "url"` is invalid syntax.
<Mon_Ouie> It would be `def something_url; "url"`
<adramalech> yea what Mon said
<blahwoop> oh i mean its like this
<adramalech> becuse you have the block on the line of the method declaration..
<blahwoop> def something_url
m8 has quit [Quit: Sto andando via]
Appineer has joined #ruby
<blahwoop> "url"
<blahwoop> end
gaahrdner has quit [Remote host closed the connection]
<blahwoop> all on seperate lines
pinage404 has joined #ruby
druonysuse has quit [Ping timeout: 245 seconds]
badelat has quit [Remote host closed the connection]
<Mon_Ouie> Well the problem is somewhere else then
<blahwoop> not sure ewhy return is the undefined method
gaahrdner has joined #ruby
jlast_ has quit [Remote host closed the connection]
pskosinski has quit [Quit: pskosinski]
<adramalech> is the string URL being returned or set to an instance variable? or anything because then i would say remove or # comment out "url" and see if it works
<blahwoop> no its just a string url
<blahwoop> not set to anything. it does have variables inside the link
Inoperable is now known as Inoperabled
atmosx has joined #ruby
atmosx has quit [Client Quit]
<Mon_Ouie> Well exceptions come with a backtrace and a line number. Show us the line it says caused the exception.
<adramalech> so the interpreter is catching this at runtime...when it goes to your code did you check a couple lines above and below that method declaration for anything else that might be a problem in your code?
jlast has joined #ruby
jlast has quit [Remote host closed the connection]
<blahwoop> yup. its just a string. thats i t
robert_ has quit [Read error: Connection reset by peer]
atmosx has joined #ruby
pinage404 has quit [Client Quit]
jlast has joined #ruby
<blahwoop> error is coming from the link string.
<blahwoop> doesnt say what
krawchyk has quit [Remote host closed the connection]
akells` has joined #ruby
<TTilus> blahwoop: pastie the full error and the code (preferably the whole file)
gaahrdne_ has joined #ruby
cmarques has joined #ruby
DanKnox is now known as DanKnox_away
gaahrdner has quit [Read error: Connection reset by peer]
bionhart has joined #ruby
pr0ton has joined #ruby
takeru has joined #ruby
deception_ has quit [Quit: Goodbye]
Inoperabled is now known as Inoperable
nowthatsamatt has quit [Quit: nowthatsamatt]
deception has quit [Quit: Goodbye]
<Mon_Ouie> `# coding: `, `# encoding:`, `# -*- coding: :` are all the same btw (they come from conventions used by different text editors I believe; the -*- one is from Emacs for example)
paszo2008 has joined #ruby
pinpin404 has joined #ruby
<TTilus> Mon_Ouie: any idea why File.join would throw away encoding?
burlyscudd has quit [Quit: Leaving.]
ananthakumaran has quit [Ping timeout: 252 seconds]
takeru has quit [Ping timeout: 276 seconds]
* TTilus is still crossposting this to #ruby-lang too
RORgasm has quit [Read error: Connection reset by peer]
ferdev has quit [Quit: ferdev]
<Mon_Ouie> No. I did try it with two strings in Pry (that do have encoding set to UTF-8) and the output is UTF-8 as well
RORgasm has joined #ruby
pitzips has joined #ruby
nowthatsamatt has joined #ruby
DanKnox_away is now known as DanKnox
<TTilus> on my dev box output is always (with the examples ive come up with) utf-8
<Mon_Ouie> I am trying on 2.0 though
<Mon_Ouie> And the same examples fail on the production environment?
carloslopes has quit [Remote host closed the connection]
<TTilus> on prod if i join strings that have only ascii chars and are utf-8 encoded, the result is ascii-8bit
johchri has joined #ruby
<TTilus> both boxes have 1.9.3
chris has joined #ruby
devoldmx has quit [Quit: Bye]
nyuszika7h has joined #ruby
johchri has quit [Client Quit]
devoldmx has joined #ruby
chris is now known as Guest31357
boxmein has joined #ruby
Michael has joined #ruby
Michael is now known as Guest99410
cortes has quit [Remote host closed the connection]
<Mon_Ouie> Then I'd assume it's something related to locales, but it looks like you checked that already. Are all the LC_* variables set to the same thing?
Guest31357 is now known as codesoda
FunkySayu has quit [Read error: Connection reset by peer]
<havenwood> TTilus: 2.0 ftw. I guess setting LANG or LC_ALL on the production machine wouldn't matter?: export LANG='en_US.UTF-8'
yashshah_ has quit [Read error: Connection reset by peer]
carloslopes has joined #ruby
jasonkuhrt has joined #ruby
<havenwood> TTilus: "LC_ALL: This variable determines the values for all locale categories. The value of the LC_ALL environment variable has precedence over any of the other environment variables starting with LC_ and the LANG environment variable."
<TTilus> havenwood: that the exact locale im using in production
_nitti has quit [Remote host closed the connection]
<havenwood> TTilus: hmm
carloslopes has quit [Remote host closed the connection]
_nitti has joined #ruby
robert_ has joined #ruby
robert_ has joined #ruby
tomsthumb has quit [Quit: Leaving.]
mikewintermute has quit [Quit: mikewintermute]
miskander has quit [Quit: miskander]
ntus1017 has quit [Remote host closed the connection]
<Mon_Ouie> How about File::SEPARATOR.encoding?
sabfer has quit [Quit: sabfer]
Eaven has joined #ruby
danslo has quit [Quit: danslo]
Davey has joined #ruby
mocfive has quit [Remote host closed the connection]
toekutr has quit [Remote host closed the connection]
<TTilus> Mon_Ouie: US-ASCII in both boxes
freerobby has quit [Quit: Leaving.]
<Mon_Ouie> Well, I think that was my last idea then :/
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<TTilus> gotta admit that it really was a good one
banisterfiend has joined #ruby
<Mon_Ouie> I was checking the source code to see how it determined the encoding of the return value
adramalech has quit [Quit: leaving]
end_guy has quit [Remote host closed the connection]
Neomex has joined #ruby
Neomex has quit [Client Quit]
saarinen has joined #ruby
Liquid-- has quit [Quit: Computer has gone to sleep.]
<sqa_bm> This could be a very basic question, but I am a noob in ruby. Is Watir only for Web application testing?
<Mon_Ouie> "Watir (Web Application Testing in Ruby, pronounced water)" I think so :p
freerobby has joined #ruby
<sqa_bm> Yes I read that. :)
ferdev has joined #ruby
DanKnox is now known as DanKnox_away
<sqa_bm> Was trying to look if it can help me with my requirement... I am running some tests using RSpec and using the rspec formatter for reporting
Jackneill has quit [Ping timeout: 276 seconds]
devoldmx has quit [Quit: Bye]
<sqa_bm> which doesn't support screen shots display. I somewhere read that Watir supports and hence tried it out but didn't work for my app testing
end_guy has joined #ruby
devoldmx has joined #ruby
ananthakumaran has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Zolo has joined #ruby
ia___ has quit [Quit: ia___]
nowthatsamatt has quit [Quit: nowthatsamatt]
burlyscudd has joined #ruby
<talntid> when using erb, can I do something like...
<talntid> variable = erb.new('templatename') and have variable = the rendered template?
stkowski has joined #ruby
devoldmx has quit [Client Quit]
rismoney has quit [Remote host closed the connection]
<sqa_bm> any thoughts as to how can I display screenshots on browser using RSpec formatter?
devoldmx has joined #ruby
<Mon_Ouie> Aha, so it was the filesystem encoding that caused the bug to trigger?
rismoney has joined #ruby
nowthatsamatt has joined #ruby
ariedler has quit [Remote host closed the connection]
ffranz has quit [Quit: Leaving]
ToApolytoXaos has quit [Quit: Leaving]
ffranz has joined #ruby
<Mon_Ouie> talntid: if erb = ERB.new("content of the template"); variable = erb.run
Kricir has quit [Remote host closed the connection]
sambao21 has joined #ruby
xcv has joined #ruby
freerobby has quit [Quit: Leaving.]
devoldmx has quit [Ping timeout: 245 seconds]
brunoro has joined #ruby
freerobby has joined #ruby
Retistic has joined #ruby
tjbiddle has joined #ruby
<TTilus> Mon_Ouie: i understood that the bug was about File.join not (always) honoring input string encodings
BadDesign has joined #ruby
jeebster has quit [Ping timeout: 252 seconds]
postmodern has joined #ruby
<TTilus> Mon_Ouie: same encodings but different contents produced different results
<talntid> Mon_Ouie, the content of the template is in a file inside /views, do I just have to read the file manually, or does erb have a method for this?
danslo has joined #ruby
casheew has left #ruby [#ruby]
<TTilus> utf-8-tagged parts having actually only ascii chars did trigger, but utf-8-tagged parts having multibyte chars did not
icole has joined #ruby
danslo has quit [Client Quit]
evenix_ has quit [Remote host closed the connection]
evenix has joined #ruby
banisterfiend has quit [Ping timeout: 240 seconds]
reset has joined #ruby
miskander has joined #ruby
chipotle has joined #ruby
druonysus has quit [Quit: Konversation terminated!]
miskander has quit [Client Quit]
casheew has joined #ruby
ubnloginhex has quit [Quit: Leaving]
LanaDelRey has quit [Quit: Leaving]
ebobby has quit [Ping timeout: 252 seconds]
cmarques has quit [Ping timeout: 256 seconds]
_nitti_ has joined #ruby
yekta has joined #ruby
evenix has quit [Ping timeout: 245 seconds]
cmarques has joined #ruby
farn has quit [Read error: Connection reset by peer]
<lllnicg> hey guys the irc gem is functining. i just needed a call to port.
faen has joined #ruby
ivanoats has quit [Remote host closed the connection]
faen is now known as farn
_nitti has quit [Ping timeout: 245 seconds]
nomenkun_ has quit [Remote host closed the connection]
mityaz has quit [Quit: See ya!]
`p has quit [Ping timeout: 256 seconds]
infecto has joined #ruby
nomenkun has joined #ruby
yashshah has joined #ruby
cofin has quit [Quit: cofin]
bionhart has quit [Remote host closed the connection]
danslo has joined #ruby
anderson has quit [Read error: Connection reset by peer]
ebobby has joined #ruby
anderson has joined #ruby
cj3kim has quit [Remote host closed the connection]
KillerFox has quit [Ping timeout: 248 seconds]
terrellt has joined #ruby
ArchBeOS has quit [Remote host closed the connection]
evenix has joined #ruby
ariedler has joined #ruby
tylersmith has quit [Remote host closed the connection]
zigomir has joined #ruby
adambeynon has joined #ruby
druonysus has joined #ruby
druonysus has quit [Changing host]
druonysus has joined #ruby
thetristan has quit [Quit: thetristan]
sabfer has joined #ruby
harrymoreno has quit [Ping timeout: 248 seconds]
jimg has joined #ruby
evenix has quit [Remote host closed the connection]
Z_Mass has quit [Ping timeout: 248 seconds]
Astral_ has joined #ruby
harrymoreno has joined #ruby
evenix has joined #ruby
`p has joined #ruby
uxp_ has joined #ruby
daniel_- has joined #ruby
nomenkun has quit [Remote host closed the connection]
Guest44601 has quit [Changing host]
Guest44601 has joined #ruby
Guest44601 is now known as z
ihme-TTilus has joined #ruby
epochwolf|2 has joined #ruby
epochwolf|2 has quit [Changing host]
epochwolf|2 has joined #ruby
error404 has joined #ruby
eval-in_ has joined #ruby
uxp has quit [Read error: Connection reset by peer]
epochwolf has quit [Ping timeout: 252 seconds]
TTilus has quit [Ping timeout: 252 seconds]
eval-in has quit [Ping timeout: 252 seconds]
error404_ has quit [Ping timeout: 252 seconds]
epochwolf|2 is now known as epochwolf
krishna_ has quit [Ping timeout: 252 seconds]
ZadYree_ has quit [Ping timeout: 252 seconds]
Astralum has quit [Ping timeout: 252 seconds]
Schuy13r has quit [Ping timeout: 252 seconds]
jtcoon has quit [Ping timeout: 252 seconds]
blazzy has joined #ruby
Schuy13r has joined #ruby
jtcoon has joined #ruby
ewag has joined #ruby
dross has quit [Ping timeout: 252 seconds]
dross has joined #ruby
evenix has quit [Ping timeout: 240 seconds]
ZadYree has joined #ruby
jimg has quit [Ping timeout: 264 seconds]
kiri has quit [Ping timeout: 252 seconds]
KillerFox has joined #ruby
kiri has joined #ruby
Todd has quit [Remote host closed the connection]
cj3kim has joined #ruby
chrishough has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
wsterling has joined #ruby
evenix has joined #ruby
evenix has quit [Read error: Connection reset by peer]
machuga is now known as machuga|away
nomenkun has joined #ruby
stoic_squirrel has quit [Quit: Textual IRC Client: www.textualapp.com]
sambao21 has quit [Quit: Computer has gone to sleep.]
jmeeuwen has quit [Quit: Disconnecting from stoned server.]
rismoney has quit [Remote host closed the connection]
rismoney has joined #ruby
rismoney has quit [Remote host closed the connection]
wsterling has quit [Ping timeout: 248 seconds]
Appineer has quit [Remote host closed the connection]
tomsthumb has joined #ruby
jeffean has quit [Read error: Connection reset by peer]
rismoney has joined #ruby
justtesting2 has joined #ruby
jeffean has joined #ruby
freezey has joined #ruby
Cultofme_ has joined #ruby
eldariof has joined #ruby
Cultofmetatron has quit [Read error: Connection reset by peer]
Davey has quit [Quit: Computer has gone to sleep.]
diadara has joined #ruby
ferdev_ has joined #ruby
ferdev has quit [Ping timeout: 252 seconds]
ferdev_ is now known as ferdev
sethetter has joined #ruby
evenix has joined #ruby
nomenkun has quit [Remote host closed the connection]
xardas has quit [Read error: Connection reset by peer]
wolcanus has quit [Remote host closed the connection]
`p has quit [Ping timeout: 245 seconds]
Kar- has joined #ruby
nomenkun has joined #ruby
jnoob22 has quit [Ping timeout: 252 seconds]
zommi has quit [Remote host closed the connection]
pyr0commie has joined #ruby
wu_lmao has quit [Quit: wu_lmao]
ner0x has quit [Quit: Leaving]
wolcanus has joined #ruby
ssdlkfjsldfk has joined #ruby
gaahrdne_ has quit [Remote host closed the connection]
joesavage has joined #ruby
geekbri has quit [Remote host closed the connection]
jmeeuwen has joined #ruby
ssdlkfjsldfk has quit [Remote host closed the connection]
ivanoats_ has joined #ruby
<joesavage> Does anyone have any idea why this would ever happen: http://pastebin.com/UbRfwDS6 ? [It's really screwing with my Ruby script -- I can provide larger source if necessary]
ivanoats_ has quit [Remote host closed the connection]
justtesting2 has quit [Remote host closed the connection]
evenix has quit [Remote host closed the connection]
bionhart has joined #ruby
<joesavage> It seems to make no damn sense at all -- I figure something is seriously wrong.
<atmosx> joesavage: to me works fine
yalue has quit [Quit: Leaving]
pyr0commie has quit [Quit: Leaving]
<zeade> joesavage: same, no problem for me
<joesavage> atmosx: It's working great for me as a script for a bunch of applications too, but for some reason when I attempt a certain task with those inputs it does as I described in the Pastebin
pyr0commie has joined #ruby
<atmosx> joesavage: http://pastebin.com/BcYBy5ns
mcyplex has joined #ruby
atyz has quit [Quit: Leaving...]
wesside has quit [Quit: Computer has gone to sleep.]
timonv has quit [Remote host closed the connection]
sambao21 has joined #ruby
pyr0commie has quit [Client Quit]
jmeeuwen has quit [Client Quit]
<joesavage> The problem is, it's working for those exact strings for me too, but only in certain cases and it's all awfully confusing because it's a part of a bigger Ruby system. Any troubleshooting tips?
DanKnox_away is now known as DanKnox
Lubinski has quit [Quit: Leaving]
<sam113101> joesavage: does it work if you use ' instead of "?
danslo has quit [Quit: danslo]
end_guy has quit [Remote host closed the connection]
DrCode has quit [Remote host closed the connection]
<joesavage> sam113101: Nope
freezey has quit [Remote host closed the connection]
egon1 has joined #ruby
_nitti_ has quit [Ping timeout: 264 seconds]
<joesavage> If it helps I can provide the larger methods that make use of this in the specific case where it goes wrong, although it might be a little messy since as I say it's part of a bigger system
`p has joined #ruby
jmeeuwen has joined #ruby
infecto has quit [Ping timeout: 252 seconds]
<joesavage> I was hoping it'd be something obvious that you guys knew about that I could just sanitize out of the inputs or something though, drat. I guess it's a more serious problem.
mcyplex has quit [Client Quit]
ananthakumaran has quit [Quit: Leaving.]
baroquebobcat has quit [Quit: baroquebobcat]
diadara_ has joined #ruby
freakazoid0223 has joined #ruby
dhruvasagar has quit [Ping timeout: 246 seconds]
<joesavage> If I inspect the first input I find it's actually "ahri\r" (I'm guessing because of the RegEx I used in some other step which I'll have to clean up), could this be causing the issue? If so, how can I easily sanitize crappy characters like this?
xcv has quit [Ping timeout: 260 seconds]
Raboo has quit [Read error: Operation timed out]
paszo2008 has quit []
spacebug has quit [Read error: Connection reset by peer]
spacebug has joined #ruby
diadara has quit [Read error: Connection reset by peer]
<egon1> joesavage: "ahri\r".strip
nick_h has quit [Read error: Operation timed out]
blazzy has quit [Read error: Operation timed out]
dash_ has quit [Quit: Time to beer :)]
elektronaut has quit [Read error: Operation timed out]
RORgasm_ has joined #ruby
RORgasm has quit [Write error: Connection reset by peer]
elektronaut has joined #ruby
<joesavage> Hah, that was causing the problem. Really strange since I see that I stripped the input earlier -- I'll have to investigate. Thanks for the help!
cjs226 has quit [Quit: cjs226]
danslo has joined #ruby
lewix_ has joined #ruby
lewix has quit [Ping timeout: 256 seconds]
lkjlkj has joined #ruby
maz-dev_ has quit [Read error: Operation timed out]
lkjlkj has quit [Remote host closed the connection]
nick_h has joined #ruby
infecto has joined #ruby
maz-dev_ has joined #ruby
blazzy has joined #ruby
cofin has joined #ruby
<egon1> np
Raboo has joined #ruby
timkohrumel has quit [Remote host closed the connection]
forrest has joined #ruby
jmeeuwen has quit [Remote host closed the connection]
QKO_ has quit [Remote host closed the connection]
lllnicg has quit [Quit: i'm leaving y'all]
eldariof has quit [Ping timeout: 264 seconds]
saarinen has quit [Quit: saarinen]
jeebster has joined #ruby
pr0ton has quit [Ping timeout: 252 seconds]
pr0ton_ has joined #ruby
ldnunes has quit [Quit: Saindo]
bionhart has quit [Remote host closed the connection]
theRoUS has quit [Ping timeout: 252 seconds]
ARCADIVS has joined #ruby
_ffio_ has joined #ruby
danslo has quit [Quit: danslo]
dash_ has joined #ruby
ffio_ has quit [Ping timeout: 252 seconds]
emmanuelux has joined #ruby
Hobogrammer has quit [Quit: さようなら]
kofno has quit [Remote host closed the connection]
QKO has joined #ruby
BadDesign has quit [Remote host closed the connection]
zigomir has quit [Quit: zigomir]
eploko has joined #ruby
theRoUS has joined #ruby
Mattix has joined #ruby
threesome has quit [Ping timeout: 256 seconds]
jasonkuhrt has quit [Quit: Linkinus - http://linkinus.com]
sailias has quit [Ping timeout: 256 seconds]
diadara_ has quit [Remote host closed the connection]
dmiller has joined #ruby
m_3 has quit [Remote host closed the connection]
diadara has joined #ruby
tommyvyo has quit [Quit:]
Hobogrammer has joined #ruby
nomenkun has quit [Remote host closed the connection]
atyz has joined #ruby
m_3 has joined #ruby
tylersmith has joined #ruby
bradhe has quit [Remote host closed the connection]
terrellt has quit [Ping timeout: 256 seconds]
darthdeu has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
jmeeuwen has joined #ruby
[m]adman has quit [Ping timeout: 276 seconds]
bean__ has quit [Quit: Computer has gone to sleep.]
wmoxam has quit [Ping timeout: 248 seconds]
mwinterm has joined #ruby
boxmein has quit [Quit: I LOVE REAPER119]
jimg has joined #ruby
darthdeus has quit [Ping timeout: 256 seconds]
JZTech101 has quit [Remote host closed the connection]
v0n has quit [Ping timeout: 248 seconds]
sabfer has quit [Quit: sabfer]
xcv has joined #ruby
dr0p has quit [Ping timeout: 256 seconds]
JZTech101 has joined #ruby
jimg has quit [Ping timeout: 248 seconds]
kevinykchan has joined #ruby
robert_ has quit [Ping timeout: 240 seconds]
threesome has joined #ruby
LaPetiteFromage has quit [Quit: LaPetiteFromage]
Liquid-- has joined #ruby
yairgo has quit [Ping timeout: 276 seconds]
forrest has quit [Quit: Leaving]
xcv has quit [Remote host closed the connection]
Xeago has joined #ruby
dallasm has quit [Remote host closed the connection]
Guest99410 has quit [Remote host closed the connection]
cjs226 has joined #ruby
tommyvyo has joined #ruby
mocfive has joined #ruby
bean__ has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
tonini has joined #ruby
JZTech101 has quit [Ping timeout: 245 seconds]
pr0ton_ has quit [Ping timeout: 276 seconds]
lucianosousa has quit [Ping timeout: 252 seconds]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
failshell has quit [Remote host closed the connection]
mwinterm has quit [Ping timeout: 250 seconds]
fuzzyhorns has quit [Remote host closed the connection]
lucianosousa has joined #ruby
Criztian_ has quit [Read error: Connection reset by peer]
splittingred has quit [Quit: splittingred]
Criztian has joined #ruby
aces1up23 has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
staafl_alt has quit [Ping timeout: 256 seconds]
BeLucid has quit [Ping timeout: 256 seconds]
cj3kim has quit [Remote host closed the connection]
aces1up has quit [Ping timeout: 248 seconds]
mmitchell has quit [Remote host closed the connection]
colonolGron has quit [Quit: Lost terminal]
nowthatsamatt has quit [Quit: nowthatsamatt]
jjbohn is now known as jjbohn|afk
theRoUS has quit [Ping timeout: 256 seconds]
saarinen has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
Michael has joined #ruby
johnmilton has quit [Remote host closed the connection]
JustinAiken has quit [Quit: Leaving.]
Michael is now known as Guest86095
wolcanus has quit [Ping timeout: 256 seconds]
dash_ has quit [Quit: Time to beer :)]
timkohrumel has joined #ruby
atyz has quit [Quit: Linkinus - http://linkinus.com]
jjbohn|afk has quit [Quit: Leaving...]
pr0ton has joined #ruby
jmeeuwen has quit [Quit: Disconnecting from stoned server.]
lucianosousa has quit [Ping timeout: 240 seconds]
teclator has joined #ruby
drfreeze has joined #ruby
Anarch_ has joined #ruby
jlast has quit [Remote host closed the connection]
telling_ has joined #ruby
ty-mat has joined #ruby
grn_ has joined #ruby
uxp has joined #ruby
wmene has joined #ruby
ninegrid_ has joined #ruby
pkrnj_ has joined #ruby
lucianosousa has joined #ruby
AllStruck_ has joined #ruby
cmarques has quit [Ping timeout: 264 seconds]
Nisstyre-laptop has joined #ruby
arubin_ has joined #ruby
sambao21 has joined #ruby
jmeeuwen has joined #ruby
ivanoats has joined #ruby
sethetter has quit [Read error: Operation timed out]
icole has quit [Read error: Connection reset by peer]
<wmene> So according to @wycats http://yehudakatz.com/2010/12/16/clarifying-the-roles-of-the-gemspec-and-gemfile/, you shouldn't check in your Gemfile.lock into source control for gems. What are you supposed to do when you have to go back and work on old version of that gem and need to pull in dependencies?
whitedawg has quit [Ping timeout: 252 seconds]
<wmene> Be better about specific gem versions in your gemspec?
natwelch has joined #ruby
icole has joined #ruby
breakingthings has quit [Quit: breakingthings]
sambao21 has quit [Client Quit]
bionhart has joined #ruby
sambao21 has joined #ruby
cjs226 has quit [*.net *.split]
jeebster has quit [*.net *.split]
uxp_ has quit [*.net *.split]
tomsthumb has quit [*.net *.split]
ferdev has quit [*.net *.split]
burlyscudd has quit [*.net *.split]
freerobby has quit [*.net *.split]
tjbiddle has quit [*.net *.split]
ariedler has quit [*.net *.split]
graydot has quit [*.net *.split]
tymat has quit [*.net *.split]
momomomomo has quit [*.net *.split]
kenneth has quit [*.net *.split]
Hanmac1 has quit [*.net *.split]
niceguyjames has quit [*.net *.split]
pkrnj has quit [*.net *.split]
io_syl has quit [*.net *.split]
lkba has quit [*.net *.split]
arubin has quit [*.net *.split]
jdunck has quit [*.net *.split]
txdv has quit [*.net *.split]
joast has quit [*.net *.split]
guilleiguaran_ has quit [*.net *.split]
solidoodlesuppor has quit [*.net *.split]
TheDick has quit [*.net *.split]
DonRichie has quit [*.net *.split]
Emmanuel_Chanel has quit [*.net *.split]
MetaCosm has quit [*.net *.split]
AllStruck has quit [*.net *.split]
beilabs has quit [*.net *.split]
ninegrid has quit [*.net *.split]
drfreeze_ has quit [*.net *.split]
Guedes0 has quit [*.net *.split]
telling has quit [*.net *.split]
woolite64 has quit [*.net *.split]
grn has quit [*.net *.split]
soukihei has quit [*.net *.split]
philcrissman has quit [*.net *.split]
icco has quit [*.net *.split]
Anarch has quit [*.net *.split]
spike|spiegel has quit [*.net *.split]
gadgetoid has quit [*.net *.split]
alexspeller has quit [*.net *.split]
Caius has quit [*.net *.split]
anekos_ has quit [*.net *.split]
natwelch is now known as icco
AllStruck_ is now known as AllStruck
pkrnj_ is now known as pkrnj
sqa_bm has quit [Read error: Connection reset by peer]
sqa_bm has joined #ruby
JZTech101 has joined #ruby
pinpin404 has quit [Quit: Screw you guys i'm going home ! KMP ! WeeChat 0.3.9.2]
nowthatsamatt has joined #ruby
gstudent2 has quit [Remote host closed the connection]
timkohrumel has quit [Remote host closed the connection]
gstudent2 has joined #ruby
sqa_bm has quit [Remote host closed the connection]
sqa_bm has joined #ruby
Andreo__ has joined #ruby
brunoro has quit [Ping timeout: 245 seconds]
dambler has joined #ruby
joesavage has quit [Quit: Page closed]
blandflakes has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Andreo_ has quit [Ping timeout: 276 seconds]
blahwoop has quit [Quit: Page closed]
bionhart has quit [Remote host closed the connection]
icco has quit [Ping timeout: 256 seconds]
Zolo has quit [Remote host closed the connection]
sqa_bm has quit [Ping timeout: 245 seconds]
jlundy has quit [Read error: Operation timed out]
pipework has joined #ruby
sambao21 has joined #ruby
Eaven has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
telling_ is now known as telling
telling has quit [Changing host]
telling has joined #ruby
icco has joined #ruby
yekta has quit [Quit: yekta]
wmene has left #ruby [#ruby]
lewix_ has quit [Read error: Connection reset by peer]
lewix has joined #ruby
tootubular has quit [Quit: tootubular]
lewix has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
lewix has joined #ruby
txdv has joined #ruby
MetaCosm has joined #ruby
MetaCosm has quit [Changing host]
MetaCosm has joined #ruby
saarinen has quit [Quit: saarinen]
Guedes0 has joined #ruby
BSaboia has joined #ruby
tomsthumb has joined #ruby
woolite64 has joined #ruby
beilabs has joined #ruby
philcrissman has joined #ruby
freerobby has joined #ruby
jeebster has joined #ruby
diadara has quit [Ping timeout: 240 seconds]
chipotle has quit [Quit: cya]
jdunck has joined #ruby
c0rn has joined #ruby
Hanmac has joined #ruby
TheDick has joined #ruby
Emmanuel_Chanel has joined #ruby
guilleiguaran_ has joined #ruby
graydot has joined #ruby
DonRichie has joined #ruby
alexspeller has joined #ruby
cjs226 has joined #ruby
soukihei has joined #ruby
Caius has joined #ruby
spike|spiegel has joined #ruby
gadgetoid has joined #ruby
ferdev has joined #ruby
kenneth has joined #ruby
lkba has joined #ruby
tjbiddle has joined #ruby
io_syl has joined #ruby
anekos_ has joined #ruby
jmeeuwen has quit [Quit: Disconnecting from stoned server.]
jgarvey has quit [Quit: Leaving]
jerius has quit [Read error: Operation timed out]
monkegji_ has quit [Ping timeout: 256 seconds]
zeade has quit [Quit: Leaving.]
lewix has quit [Read error: Connection reset by peer]
lewix has joined #ruby
ybart has quit [Quit: ybart]
jmeeuwen has joined #ruby
mrsolo has quit [Quit: Leaving]
lkba has quit [Ping timeout: 252 seconds]
wsterling has joined #ruby
tvw has quit []
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
noname001 has quit [Remote host closed the connection]
icco has quit [Read error: Operation timed out]
bean__ has quit [Quit: Computer has gone to sleep.]
icco has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
saarinen has joined #ruby
brunoro has joined #ruby
saarinen has quit [Client Quit]
timkohrumel has joined #ruby
JZTech101 has quit [Read error: Connection reset by peer]
noname001 has joined #ruby
lucianosousa has quit [Quit: lucianosousa]
c0rn has quit [Quit: Computer has gone to sleep.]
BeLucid has joined #ruby
jmeeuwen has quit [Quit: Disconnecting from stoned server.]
DrCode has joined #ruby
cofin has quit [Quit: cofin]
ffranz has quit [Quit: Leaving]
nomenkun has joined #ruby
bionhart has joined #ruby
jmeeuwen has joined #ruby
dmiller has quit [Remote host closed the connection]
timkohrumel has quit [Remote host closed the connection]
darthdeu has quit [Ping timeout: 256 seconds]
gyre007 has joined #ruby
end_guy has joined #ruby
huttan has quit [Ping timeout: 256 seconds]
emmanuelux has quit [Ping timeout: 256 seconds]
nomenkun has quit [Ping timeout: 276 seconds]
sambao21 has joined #ruby
blandflakes has quit [Ping timeout: 246 seconds]
huttan has joined #ruby
evenix has joined #ruby
infecto has quit [Quit: Leaving.]
Retistic has quit [Quit: Retistic]
BSaboia has quit [Ping timeout: 245 seconds]
atno has quit [Remote host closed the connection]
atno has joined #ruby
atmosx has quit [Quit: And so the story goes…]
takeru has joined #ruby
evenix has quit [Ping timeout: 246 seconds]
cj3kim has joined #ruby
Criztian has quit [Remote host closed the connection]
wu_lmao has joined #ruby
slainer68 has joined #ruby
timkohrumel has joined #ruby
tomsthumb has quit [Quit: Leaving.]
emmanuelux has joined #ruby
jkline has joined #ruby
tomzx_mac has joined #ruby
DomKM has quit [Quit: Leaving.]
cj3kim has quit [Remote host closed the connection]
cj3kim has joined #ruby
Liquid-- has quit [Quit: Textual IRC Client: www.textualapp.com]
freerobby has quit [Quit: Leaving.]
Trynemjoel has joined #ruby
infecto has joined #ruby
pitzips has quit [Ping timeout: 246 seconds]
rupee has quit [Quit: Leaving]
saarinen has joined #ruby
voidpirate has joined #ruby
arubin_ is now known as arubin
cofin has joined #ruby
codecop has quit [Remote host closed the connection]
Nisstyre-laptop has quit [Quit: Leaving]
jimg has joined #ruby
lkba has joined #ruby
druonysus has quit [Ping timeout: 256 seconds]
chipotle has joined #ruby
johnnyfuchs has quit [Read error: Operation timed out]
jkline has quit [Quit: jkline]
gyre007 has quit [Remote host closed the connection]
jimg has quit [Ping timeout: 256 seconds]
bionhart has quit [Remote host closed the connection]
cj3kim has quit [Remote host closed the connection]
Nisstyre has quit [Quit: Leaving]
wmoxam has joined #ruby
kirun has quit [Quit: Client exiting]
Anarch_ is now known as Anarch
Senjai has quit [Ping timeout: 256 seconds]
druonysus has joined #ruby
druonysus has quit [Changing host]
druonysus has joined #ruby
fbernier has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
Inside has joined #ruby
Inside has joined #ruby
JZTech101 has joined #ruby
mocfive has quit [Remote host closed the connection]
mocfive has joined #ruby
fbernier has joined #ruby
Azulinho has quit [Ping timeout: 252 seconds]
infecto has quit [Quit: Leaving.]
cj3kim has quit [Remote host closed the connection]
Kar- has quit [Remote host closed the connection]
Guest86095 has quit [Remote host closed the connection]
sailias has joined #ruby
sailias has quit [Client Quit]
takeru has quit [Remote host closed the connection]
jkline has joined #ruby
Michael has joined #ruby
joast has joined #ruby
cj3kim has joined #ruby
Michael is now known as Guest66790
brendal has quit [Quit: Leaving]
mocfive has quit [Remote host closed the connection]
tommyvyo has quit [Quit:]
marr has quit [Ping timeout: 245 seconds]
LaPetiteFromage has joined #ruby
LaPetiteFromage has quit [Client Quit]
codesoda has quit [Remote host closed the connection]
monkegjinni has quit [Remote host closed the connection]
Guest66790 has quit [Ping timeout: 245 seconds]
cj3kim has quit [Remote host closed the connection]
bionhart has joined #ruby
akells` has quit [Remote host closed the connection]
monkegjinni has joined #ruby
cj3kim has joined #ruby
akells` has joined #ruby
Z_Mass has joined #ruby
<kenneth> hey, does anybody see a problem with this locking code?
brotatos has joined #ruby
brotatos has left #ruby [#ruby]
brotatos has joined #ruby
<kenneth> unless File.open('/tmp/transactions.lock', File::RDWR|File::CREAT, 0644).flock(File::LOCK_EX|File::LOCK_NB); puts "locked"; exit; end
wsterling has quit [Remote host closed the connection]
chipotle has quit [Quit: cya]
elaptics is now known as elaptics`away
akells` has quit [Ping timeout: 256 seconds]
slash_nick has quit [Ping timeout: 240 seconds]
pr0ton has quit [Ping timeout: 256 seconds]
arya_ has joined #ruby
devoldmx has joined #ruby
joesavage has joined #ruby
arya has quit [Ping timeout: 256 seconds]
harrymoreno_ has joined #ruby
Senjai has joined #ruby
Senjai has quit [Changing host]
Senjai has joined #ruby
sam113101 has quit [Ping timeout: 248 seconds]
rhys has quit [Quit: Leaving]
harrymoreno has quit [Ping timeout: 260 seconds]
harrymoreno_ is now known as harrymoreno
<joesavage> How can I use "defined?" with "eval" to see if an evaluated variable has been defined without it just returning "method" every time? For example: http://pastebin.com/YjVDiihu
tedwards1 has quit [Ping timeout: 260 seconds]
johnnyfuchs has joined #ruby
justsee has quit [Ping timeout: 241 seconds]
predator217 has joined #ruby
tedwards_ has joined #ruby
Z_Mass has quit [Quit: Leaving]
devoldmx has quit [Quit: Bye]
devoldmx has joined #ruby
jkline has quit [Quit: jkline]
krombr has joined #ruby
bionhart has quit [Remote host closed the connection]
Hien has quit [Quit: leaving]
shadoi has quit [Read error: Operation timed out]
<egon1> joesavage: that works for me
predator117 has quit [Ping timeout: 252 seconds]
<egon1> And this looks like a good place to use a hash
Hien has joined #ruby
InFlames has joined #ruby
matchaw has quit [Ping timeout: 256 seconds]
BSaboia has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
cj3kim has quit [Remote host closed the connection]
mixel has joined #ruby
<joesavage> The example I posted really works for you? Try not defining the variable, that still passes the "defined?" test for me
cj3kim has joined #ruby
matchaw has joined #ruby
<egon1> hmm you're right
<joesavage> I could try loading it into a hash as you suggested, but in this specific case it would be pretty inconvenient
BSaboia has quit [Ping timeout: 245 seconds]
Nisstyre-laptop has joined #ruby
terrellt has joined #ruby
<joesavage> I was rather hoping there was some workaround or something like "defined?" that would work here
DanKnox is now known as DanKnox_away
voidpirate has quit [Remote host closed the connection]
wmoxam_ has joined #ruby
louism2_ has joined #ruby
wmoxam has quit [Ping timeout: 264 seconds]
<louism2_> Hey everyone, is there a way to assign a variable and save the same object in a one line block --> Product.each{|p| p.category_id = other_object.id, p.save}
ckrailo has quit [Quit: Computer has gone to sleep.]
juarlex_ has quit [Ping timeout: 260 seconds]
ablemike has joined #ruby
<egon1> louism2_: Product.each { |p| p.category_id = other_object.id; p.save }
<ablemike> Anyone know a clean way to make a sequence of 0,10,20,30?
<ablemike> nevermind
<ablemike> i just answered it myself typing it out
<ablemike> hahaha
<louism2_> egon1: ahhh, that semicolon