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]
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]
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]
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
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.]
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]
<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!]
<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:
<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
<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
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]
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
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]
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]
<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]
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.]
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]
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]
<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.]
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
<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
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?
<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?
<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 :/
<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]
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
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]
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.]