<bobdobbs>
kephra: yeah. removing everything and starting from scratch sounds good
<bobdobbs>
starting now, with --purge
<kephra>
but you millage may vary - i tried 1.8.7 from apt, 1.9.3 from apt - and finally gave up and compiled from source
<kephra>
my millage: 19 hours ;-(
DonRichie has quit [Ping timeout: 256 seconds]
DonRichie has joined #ruby
<bobdobbs>
oh crap
<bobdobbs>
damn
<bobdobbs>
I've become sooo relient on sass
<bobdobbs>
ok, I've purged
<bobdobbs>
but here is the weird thing... I've still got a /usr/bin/ruby
<bobdobbs>
maaaaaaaybe I did use a package manager... but if I did, I can't find a trace of it.
<bobdobbs>
I guess I'll have to remove everything manually
RiftyMcF3arless has joined #ruby
bigkm has quit [Quit: Computer has gone to sleep.]
Bosox20051 has quit [Read error: Connection reset by peer]
<gf3>
RUH ROH
<bobdobbs>
yeah, I know
<gf3>
bobdobbs: I recommend rbenv + ruby_build to install 2.0
<bobdobbs>
hmmm
<RiftyMcF3arless>
getting to know chef-solo, coming along nicely, but i need to specify some values in my "json_attribs" file, and i have no idea what this means at this point. can somebody kindly point me in the right direction? is this an explicit path, or do i need to specify this in some config somewhere?
<bobdobbs>
gf3: I started googling that before, when you initially told me about it.
<bobdobbs>
I'll look into that... but first I'll try hunting down and wiping all rubybits from my system
havenwood has joined #ruby
slainer68 has quit [Ping timeout: 256 seconds]
<kephra>
one more suggestion, bobdobbs: the real server should be a minimal system, just able to start linux containers, and do firewall and routing of the containers
<bobdobbs>
ok, I've remove all gems and all the ruby binaries.
<kephra>
so restarting from scratch is just a matter of: rm -rf /var/lib/lxc/containername
<bobdobbs>
kephra: where those comments for me?
cj3kim has quit [Remote host closed the connection]
<bobdobbs>
sounds like you are talking about virtualisation stuff. I'm just trying to get sass working
Spami_ has quit [Quit: This computer has gone to sleep]
<kephra>
yes, and basically for everybody who plans to run a ruby app on a debian or ubuntu system
<bobdobbs>
ok
<bobdobbs>
thanks
rudi1 has joined #ruby
<kephra>
bobdobbs, benefit of lxc are: easy setup, and 100% performance - lxc are pseudovirtualizations
<bobdobbs>
lxc?
<kephra>
lxc = linux containers
<bobdobbs>
I see
<bobdobbs>
I've got a bit of catching up to do on ruby, it seems.
<gf3>
bobdobbs: Eh, I wouldn't worry about all that if you're just trying to run sass
<bobdobbs>
gf3: well, eventually I'll be playing with rails. So I've made a mental note that I should figure out lxc stuff.
<bobdobbs>
It's beyond me at the moment. But I'll probably need to figure it out.
w|t has joined #ruby
<bobdobbs>
gf3: I'm reading about rbenv now
machuga is now known as machuga|away
w|t has quit [Client Quit]
w|t has joined #ruby
Heero has joined #ruby
Heero has quit [Changing host]
Heero has joined #ruby
Michael_ has quit [Remote host closed the connection]
gr4yscale has quit [Quit: Computer has gone to sleep.]
tommyvyo has quit [Quit:]
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
S2kx has joined #ruby
<bobdobbs>
gf3: ok, installing rbenv
hiyakashi has joined #ruby
tylersmi_ has joined #ruby
Yayo has joined #ruby
Ontolog has quit [Ping timeout: 256 seconds]
awarner_ has joined #ruby
Zolo_ has joined #ruby
Michael_ has joined #ruby
LucidDreamZzZ has joined #ruby
welandC has joined #ruby
AgJ19 has joined #ruby
AgJ19 has quit [Max SendQ exceeded]
wargasm1 has joined #ruby
chrishough_ has joined #ruby
chrishough_ has quit [Client Quit]
gr4yscale has joined #ruby
wsterling has joined #ruby
Lemtzas_ has joined #ruby
mootpointer has joined #ruby
jnoob22 has joined #ruby
devoldmx3 has joined #ruby
apalmblad_ has joined #ruby
TheSpect1e has joined #ruby
sgkim126l has joined #ruby
multi_io_ has joined #ruby
classix has quit [Disconnected by services]
ccooke_ has joined #ruby
fschuindt has joined #ruby
ericmath1son has joined #ruby
kevinykc_ has joined #ruby
<bobdobbs>
gf3: hey man. I'm up to the point in the rbenv/ruby-build install process where I'm ready to install ruby...
Liru has joined #ruby
predator117 has joined #ruby
<fschuindt>
The rvm site is offline?
nyuszika7h has quit [Killed (leguin.freenode.net (Nickname regained by services))]
classix has joined #ruby
io_syl has joined #ruby
mtfk__ has joined #ruby
hogeo has joined #ruby
<bobdobbs>
the readme example suggests installing 1.9.3-p327
<bobdobbs>
gf3: is there anything about ruby versions that I should know about before I choose one?
w|t` has joined #ruby
bigkm has joined #ruby
nyuszika7h has joined #ruby
codesoda has quit [Remote host closed the connection]
wsterling has quit [Ping timeout: 248 seconds]
unCork has joined #ruby
stMTl has joined #ruby
horofox has quit [Quit: horofox]
stMTl has quit [Read error: Connection reset by peer]
w|t has quit [*.net *.split]
DonRichie has quit [*.net *.split]
predator217 has quit [*.net *.split]
apalmblad has quit [*.net *.split]
ccooke has quit [*.net *.split]
ner0x has quit [*.net *.split]
sgkim1261 has quit [*.net *.split]
chrishough has quit [*.net *.split]
Zolo has quit [*.net *.split]
awarner has quit [*.net *.split]
zastern has quit [*.net *.split]
tylersmith has quit [*.net *.split]
wargasm has quit [*.net *.split]
kevinykchan has quit [*.net *.split]
Loaft has quit [*.net *.split]
ghr has quit [*.net *.split]
LucidDreamZzZz has quit [*.net *.split]
S1kx has quit [*.net *.split]
dnyy has quit [*.net *.split]
robustus has quit [*.net *.split]
Cork has quit [*.net *.split]
TheSpectre has quit [*.net *.split]
multi_io has quit [*.net *.split]
Eiam has quit [*.net *.split]
cool has quit [*.net *.split]
ericmathison has quit [*.net *.split]
Lemtzas has quit [*.net *.split]
rismoney has quit [*.net *.split]
Liru_ has quit [*.net *.split]
welandB has quit [*.net *.split]
mame0 has quit [*.net *.split]
Jedi_SCT1 has quit [*.net *.split]
germanstudent has quit [*.net *.split]
KillerFox has quit [*.net *.split]
felipe has quit [*.net *.split]
mtfk has quit [*.net *.split]
tomaw has quit [*.net *.split]
braincrash has quit [*.net *.split]
cheese1756 has quit [*.net *.split]
jonathanwallace has quit [*.net *.split]
suporte85 has quit [*.net *.split]
chichouw has quit [*.net *.split]
soukihei has quit [*.net *.split]
whowantstolivefo has quit [*.net *.split]
corehook has quit [*.net *.split]
gregorg has quit [*.net *.split]
bigmac has quit [*.net *.split]
ry4nn_ has quit [*.net *.split]
zodiak has quit [*.net *.split]
ThePicard has quit [*.net *.split]
Gnubie has quit [*.net *.split]
sindork has quit [*.net *.split]
DanKnox has quit [*.net *.split]
matchaw has quit [*.net *.split]
xybre has quit [*.net *.split]
foohey has quit [*.net *.split]
gf3 has quit [*.net *.split]
camt has quit [*.net *.split]
wuest has quit [*.net *.split]
sirecote has quit [*.net *.split]
17SACX5KT has quit [*.net *.split]
tr4656 has quit [*.net *.split]
mephux has quit [*.net *.split]
andrew12 has quit [*.net *.split]
dmerrick_ has quit [*.net *.split]
taec has quit [*.net *.split]
Zespre has quit [*.net *.split]
moshee has quit [*.net *.split]
nw has quit [*.net *.split]
jso has quit [*.net *.split]
marcellu1 has quit [*.net *.split]
bnagy has quit [*.net *.split]
linduxed has quit [*.net *.split]
nomadic has quit [*.net *.split]
BeanDip_ has quit [*.net *.split]
Weazy_ has quit [*.net *.split]
tos9 has quit [*.net *.split]
matrixise has quit [*.net *.split]
Stelian1 has quit [*.net *.split]
msch has quit [*.net *.split]
naquad has quit [*.net *.split]
theRoUS has quit [*.net *.split]
Schmidt has quit [*.net *.split]
johnnyfuchs has quit [*.net *.split]
mercwithamouth has quit [*.net *.split]
graydot has quit [*.net *.split]
gaahrdner has quit [*.net *.split]
jlast has quit [*.net *.split]
wu_lmao has quit [*.net *.split]
paul has quit [*.net *.split]
joonty has quit [*.net *.split]
aleph-null has quit [*.net *.split]
superscott[8] has quit [*.net *.split]
threesome has quit [*.net *.split]
bubblehe_ has quit [*.net *.split]
yacks has quit [*.net *.split]
monomyth has quit [*.net *.split]
_cheney3 has quit [*.net *.split]
jmeeuwen has quit [*.net *.split]
otters has quit [*.net *.split]
tchebb has quit [*.net *.split]
Anarch has quit [*.net *.split]
dwcook has quit [*.net *.split]
bjeanes has quit [*.net *.split]
krisfremen has quit [*.net *.split]
hackeron has quit [*.net *.split]
cespare has quit [*.net *.split]
epta has quit [*.net *.split]
nick_h_ has quit [*.net *.split]
bier has quit [*.net *.split]
jayne has quit [*.net *.split]
taqutor has quit [*.net *.split]
nemesit|znc has quit [*.net *.split]
maveonair_ has quit [*.net *.split]
halfie has quit [*.net *.split]
__main__ has quit [*.net *.split]
TJNII has quit [*.net *.split]
fridim__ has quit [*.net *.split]
jdunck has quit [*.net *.split]
pevjan has quit [*.net *.split]
wmoxam has quit [*.net *.split]
julianhurley has quit [*.net *.split]
ariedler has quit [*.net *.split]
brianherman has quit [*.net *.split]
Ortuna has quit [*.net *.split]
danslo has quit [*.net *.split]
Rumsteak has quit [*.net *.split]
staafl_alt has quit [*.net *.split]
drPoggs has quit [*.net *.split]
chriskk has quit [*.net *.split]
alexgordon has quit [*.net *.split]
BonSequitur has quit [*.net *.split]
Es0teric has quit [*.net *.split]
Banistergalaxy has quit [*.net *.split]
apok has quit [*.net *.split]
brunoro has quit [*.net *.split]
rezzack has quit [*.net *.split]
smtlaissezfaire has quit [*.net *.split]
eliasp has quit [*.net *.split]
bhaak has quit [*.net *.split]
notbrent_ has quit [*.net *.split]
Tarential has quit [*.net *.split]
vaicine_ has quit [*.net *.split]
TheMoonMaster has quit [*.net *.split]
mnaser has quit [*.net *.split]
seich- has quit [*.net *.split]
shadoi has quit [*.net *.split]
jimeh_ has quit [*.net *.split]
hoelzro has quit [*.net *.split]
SegFaultAX has quit [*.net *.split]
s3m73x has quit [*.net *.split]
behemot has quit [*.net *.split]
riku has quit [*.net *.split]
aetaric has quit [*.net *.split]
d_roge has quit [*.net *.split]
Y_Ichiro has quit [*.net *.split]
arusso has quit [*.net *.split]
Nightmare has quit [*.net *.split]
kzrl has quit [*.net *.split]
LBRapid_ has quit [*.net *.split]
mvangala_ has quit [*.net *.split]
Nanuq has quit [*.net *.split]
aboudreault has quit [*.net *.split]
pygmael has quit [*.net *.split]
justinmcp_ has quit [*.net *.split]
telling has quit [*.net *.split]
xxi has quit [*.net *.split]
Caelum has quit [*.net *.split]
eighty4 has quit [*.net *.split]
cout has quit [*.net *.split]
x13378071 has quit [*.net *.split]
katherinem13 has quit [*.net *.split]
karnowski has quit [*.net *.split]
andredieb has quit [*.net *.split]
marten has quit [*.net *.split]
faulkner has quit [*.net *.split]
lancepantz has quit [*.net *.split]
pcboy_ has quit [*.net *.split]
jpun has quit [*.net *.split]
DarkFoxDK has quit [*.net *.split]
epochwolf has quit [*.net *.split]
ahuman has quit [*.net *.split]
niftylettuce has quit [*.net *.split]
theoros has quit [*.net *.split]
tobiasvl has quit [*.net *.split]
diegok has quit [*.net *.split]
tris has quit [*.net *.split]
fumduq- has quit [*.net *.split]
awkisopen has quit [*.net *.split]
Koshian__ has quit [*.net *.split]
trent has quit [*.net *.split]
dubios has quit [*.net *.split]
stderr- has quit [*.net *.split]
KarlHungus has quit [*.net *.split]
Quadlex has quit [*.net *.split]
nezumi has quit [*.net *.split]
phrame has quit [*.net *.split]
Xeago has quit [*.net *.split]
ndngvr` has quit [*.net *.split]
Collin- has quit [*.net *.split]
alienvenom has quit [*.net *.split]
casheew has quit [*.net *.split]
ffranz has quit [*.net *.split]
rking1 has quit [*.net *.split]
Spooner has quit [*.net *.split]
Raboo has quit [*.net *.split]
SeySayux has quit [*.net *.split]
F1skr has quit [*.net *.split]
sami has quit [*.net *.split]
Guest85414_ has quit [*.net *.split]
weeb1e_ has quit [*.net *.split]
mnemon has quit [*.net *.split]
sixteneighty has quit [*.net *.split]
kephra has quit [*.net *.split]
lupine has quit [*.net *.split]
famulus has quit [*.net *.split]
thoraxe has quit [*.net *.split]
jolleyjo1 has quit [*.net *.split]
kiri has quit [*.net *.split]
joast has quit [*.net *.split]
lsmola has quit [*.net *.split]
RORgasm has quit [*.net *.split]
mtlatif__ has quit [*.net *.split]
andr0m3da has quit [*.net *.split]
itman has quit [*.net *.split]
Dreamer3 has quit [*.net *.split]
patteh_ has quit [*.net *.split]
tommylommykins has quit [*.net *.split]
s4muel has quit [*.net *.split]
autumn has quit [*.net *.split]
sam113101 has quit [*.net *.split]
klip has quit [*.net *.split]
Psy-Q has quit [*.net *.split]
evelyette has quit [*.net *.split]
martxel has quit [*.net *.split]
Kovensky has quit [*.net *.split]
onewheelskyward has quit [*.net *.split]
sonne has quit [*.net *.split]
JoeHazzers has quit [*.net *.split]
scrogson has quit [*.net *.split]
fcoury has quit [*.net *.split]
BBonifield has quit [*.net *.split]
_if has quit [*.net *.split]
eregon has quit [*.net *.split]
DefV has quit [*.net *.split]
epitron has quit [*.net *.split]
Niamkik has quit [*.net *.split]
Kudos has quit [*.net *.split]
klaas has quit [*.net *.split]
elliottcable has quit [*.net *.split]
stopbit has quit [*.net *.split]
elaptics`away has quit [*.net *.split]
MetaCosm has quit [*.net *.split]
Muz has quit [*.net *.split]
jbw has quit [*.net *.split]
nightfly__ has quit [*.net *.split]
Ibuprofen has quit [*.net *.split]
shaman42_ has quit [*.net *.split]
ejnahc has quit [*.net *.split]
thibauts_ has quit [*.net *.split]
breadtk has quit [*.net *.split]
wting has quit [*.net *.split]
noodl_ has quit [*.net *.split]
ericwood has quit [*.net *.split]
foobArrrr has quit [*.net *.split]
speakingcode has quit [*.net *.split]
angelixd_ has quit [*.net *.split]
rtl has quit [*.net *.split]
error404 has quit [*.net *.split]
caveat- has quit [*.net *.split]
Daemoen has quit [*.net *.split]
Bry8Star has quit [*.net *.split]
DrCode has quit [*.net *.split]
atmosx has quit [*.net *.split]
end_guy has quit [*.net *.split]
thomasfedb has quit [*.net *.split]
mishke has quit [*.net *.split]
r0bglees0n has quit [*.net *.split]
gadgetoid has quit [*.net *.split]
neataroni has quit [*.net *.split]
bigkevmcd has quit [*.net *.split]
SilverKey has quit [*.net *.split]
BombStrike has quit [*.net *.split]
connor_goodwolf has quit [*.net *.split]
ssvo_ has quit [*.net *.split]
yxhuvud has quit [*.net *.split]
Coolhand has quit [*.net *.split]
prime_ has quit [*.net *.split]
zaargy has quit [*.net *.split]
drknow_ has quit [*.net *.split]
j0hnnY has quit [*.net *.split]
emdub has quit [*.net *.split]
d-snp has quit [*.net *.split]
jsaak_ has quit [*.net *.split]
elektronaut has quit [*.net *.split]
yasu has quit [*.net *.split]
jtcoon has quit [*.net *.split]
parus has quit [*.net *.split]
Bish has quit [*.net *.split]
ping-pong has quit [*.net *.split]
deavid has quit [*.net *.split]
erry has quit [*.net *.split]
crazedpsyc has quit [*.net *.split]
kloeri has quit [*.net *.split]
Blue_Ice has quit [*.net *.split]
patronus_ has quit [*.net *.split]
machuga|away has quit [*.net *.split]
billy_ran_away has quit [*.net *.split]
pietr0_ has quit [*.net *.split]
QKO_ has quit [*.net *.split]
rmnuvg has quit [*.net *.split]
prophile has quit [*.net *.split]
kennyvb_ has quit [*.net *.split]
Whoop has quit [*.net *.split]
ziyadb has quit [*.net *.split]
flagg0205 has quit [*.net *.split]
denken has quit [*.net *.split]
cam`_ has quit [*.net *.split]
huismon has quit [*.net *.split]
sgharms has quit [*.net *.split]
Luyt has quit [*.net *.split]
aef_ has quit [*.net *.split]
xibalba has quit [*.net *.split]
norm has quit [*.net *.split]
Caius has quit [*.net *.split]
rubycode has quit [*.net *.split]
nopper has quit [*.net *.split]
phasma has quit [*.net *.split]
Nom- has quit [*.net *.split]
asuka has quit [*.net *.split]
yo61 has quit [*.net *.split]
anekos_ has quit [*.net *.split]
bubbajones has quit [*.net *.split]
icco has quit [*.net *.split]
wyan has quit [*.net *.split]
Sou|cutter has quit [*.net *.split]
malcolmva has quit [*.net *.split]
WanderingGlitch has quit [*.net *.split]
alexspeller has quit [*.net *.split]
ChristianS has quit [*.net *.split]
calmyournerves has quit [*.net *.split]
daaaan_ has quit [*.net *.split]
avelldiroll has quit [*.net *.split]
TTilus has quit [*.net *.split]
kpwz has quit [*.net *.split]
w|t` is now known as w|t
apalmblad_ is now known as apalmblad
nfk has quit [Quit: yawn]
DonRichie has joined #ruby
ccooke_ is now known as ccooke
peteyg has quit [Ping timeout: 256 seconds]
w|t has quit [Changing host]
w|t has joined #ruby
jacktrick has quit [Quit: Leaving]
yshh has quit [Remote host closed the connection]
johnnyfuchs has joined #ruby
marr has quit [Ping timeout: 248 seconds]
twoism has quit [Read error: Connection reset by peer]
havenwood has quit [Read error: Connection reset by peer]
ner0x has joined #ruby
krisfremen has joined #ruby
krisfremen has quit [Changing host]
krisfremen has joined #ruby
dallasm_ has joined #ruby
idkazuma has quit [Remote host closed the connection]
pskosinski has quit [Ping timeout: 240 seconds]
thomasfedb has joined #ruby
neataroni has joined #ruby
r0bglees0n has joined #ruby
gadgetoid has joined #ruby
mishke has joined #ruby
bigkevmcd has joined #ruby
SilverKey has joined #ruby
yxhuvud has joined #ruby
Coolhand has joined #ruby
ssvo_ has joined #ruby
yo61 has joined #ruby
BombStrike has joined #ruby
connor_goodwolf has joined #ruby
prime_ has joined #ruby
zaargy has joined #ruby
j0hnnY has joined #ruby
emdub has joined #ruby
elektronaut has joined #ruby
drknow_ has joined #ruby
d-snp has joined #ruby
parus has joined #ruby
jtcoon has joined #ruby
patronus_ has joined #ruby
QKO_ has joined #ruby
jsaak_ has joined #ruby
Blue_Ice has joined #ruby
machuga|away has joined #ruby
crazedpsyc has joined #ruby
rmnuvg has joined #ruby
deavid has joined #ruby
prophile has joined #ruby
kennyvb_ has joined #ruby
ping-pong has joined #ruby
billy_ran_away has joined #ruby
yasu has joined #ruby
erry has joined #ruby
ziyadb has joined #ruby
pietr0_ has joined #ruby
Bish has joined #ruby
Whoop has joined #ruby
flagg0205 has joined #ruby
kloeri has joined #ruby
denken has joined #ruby
huismon has joined #ruby
cam`_ has joined #ruby
sgharms has joined #ruby
xibalba has joined #ruby
aef_ has joined #ruby
Luyt has joined #ruby
norm has joined #ruby
Caius has joined #ruby
rubycode has joined #ruby
nopper has joined #ruby
phasma has joined #ruby
asuka has joined #ruby
Nom- has joined #ruby
bubbajones has joined #ruby
anekos_ has joined #ruby
icco has joined #ruby
ChristianS has joined #ruby
Sou|cutter has joined #ruby
wyan has joined #ruby
malcolmva has joined #ruby
alexspeller has joined #ruby
daaaan_ has joined #ruby
calmyournerves has joined #ruby
avelldiroll has joined #ruby
WanderingGlitch has joined #ruby
TTilus has joined #ruby
kpwz has joined #ruby
rudi1 is now known as rgrinberg
dwcook has joined #ruby
dwcook has quit [Changing host]
dwcook has joined #ruby
pkrzywicki has quit [Excess Flood]
Eiam has joined #ruby
mame0 has joined #ruby
gstudent2 has joined #ruby
KillerFox has joined #ruby
Jedi_SCT1 has joined #ruby
robustus has joined #ruby
bier has joined #ruby
wang_ is now known as wang
<Eiam>
I thought I could call inject on a hash like {}.inject([]) { |(k,v),ar| } in order to split out the hash key & value
<Eiam>
but… I cannot?
brotatos has joined #ruby
<Eiam>
nvm i have it backwards =0
pkrzywicki has joined #ruby
bklane has quit [Remote host closed the connection]
evelyette has joined #ruby
CRSxj has joined #ruby
CRSxj has quit [Remote host closed the connection]
tomaw has joined #ruby
bklane has joined #ruby
horofox_ has joined #ruby
bigkm has quit [Quit: Computer has gone to sleep.]
Lemtzas_ is now known as Lemtzas
graft has quit [Ping timeout: 256 seconds]
peta_ has joined #ruby
idkazuma has joined #ruby
larissa has joined #ruby
dpatel has quit [Quit: dpatel]
qe89O has joined #ruby
<bobdobbs>
gf3: are you around?
vlad_starkov has joined #ruby
philcrissman has joined #ruby
robottinosino has joined #ruby
<bobdobbs>
gf3: I've used rbenv to install ruby. But my expectation is that the shims should intercept calls to ruby-related stuff. That isn't happening
f0ster_ has joined #ruby
qe89O has quit [Remote host closed the connection]
bklane has quit [Remote host closed the connection]
tommyvyo has joined #ruby
havenwood has joined #ruby
sixteneighty has joined #ruby
weeb1e_ has joined #ruby
mnemon has joined #ruby
end_guy has joined #ruby
sami has joined #ruby
rking1 has joined #ruby
alienvenom has joined #ruby
famulus has joined #ruby
lupine has joined #ruby
Guest85414_ has joined #ruby
nightfly__ has joined #ruby
JoeHazzers has joined #ruby
Xeago has joined #ruby
DrCode has joined #ruby
fcoury has joined #ruby
mtlatif__ has joined #ruby
onewheelskyward has joined #ruby
_if has joined #ruby
Bry8Star has joined #ruby
klip has joined #ruby
sonne has joined #ruby
casheew has joined #ruby
RORgasm has joined #ruby
Collin- has joined #ruby
ndngvr` has joined #ruby
sam113101 has joined #ruby
elaptics`away has joined #ruby
thibauts_ has joined #ruby
kiri has joined #ruby
ericwood has joined #ruby
Psy-Q has joined #ruby
Kudos has joined #ruby
breadtk has joined #ruby
jbw has joined #ruby
angelixd_ has joined #ruby
noodl_ has joined #ruby
Kovensky has joined #ruby
stopbit has joined #ruby
jolleyjo1 has joined #ruby
speakingcode has joined #ruby
rtl has joined #ruby
s4muel has joined #ruby
BBonifield has joined #ruby
thoraxe has joined #ruby
joast has joined #ruby
SeySayux has joined #ruby
ffranz has joined #ruby
scrogson has joined #ruby
Raboo has joined #ruby
itman has joined #ruby
autumn has joined #ruby
MetaCosm has joined #ruby
Dreamer3 has joined #ruby
lsmola has joined #ruby
ejnahc has joined #ruby
caveat- has joined #ruby
epitron has joined #ruby
wting has joined #ruby
DefV has joined #ruby
Niamkik has joined #ruby
foobArrrr has joined #ruby
martxel has joined #ruby
tommylommykins has joined #ruby
eregon has joined #ruby
Ibuprofen has joined #ruby
atmosx has joined #ruby
nezumi has joined #ruby
andr0m3da has joined #ruby
theRoUS_ has joined #ruby
patteh_ has joined #ruby
elliottcable has joined #ruby
shaman42_ has joined #ruby
klaas has joined #ruby
Muz has joined #ruby
phrame has joined #ruby
Daemoen has joined #ruby
error404 has joined #ruby
vlad_starkov has quit [Ping timeout: 246 seconds]
GeissT has joined #ruby
jdunck has joined #ruby
Rumsteak has joined #ruby
alexgordon has joined #ruby
brianherman has joined #ruby
Banistergalaxy has joined #ruby
bubblehe_ has joined #ruby
Es0teric has joined #ruby
wmoxam has joined #ruby
mercwithamouth has joined #ruby
yacks has joined #ruby
ry4nn_ has joined #ruby
monomyth has joined #ruby
joonty has joined #ruby
otters has joined #ruby
chriskk has joined #ruby
shadoi has joined #ruby
taqutor has joined #ruby
whowantstolivefo has joined #ruby
bigmac has joined #ruby
superscott[8] has joined #ruby
seich- has joined #ruby
nick_h_ has joined #ruby
sindork has joined #ruby
vaicine_ has joined #ruby
cheese1756 has joined #ruby
Gnubie has joined #ruby
BonSequitur has joined #ruby
eighty4 has joined #ruby
staafl_alt has joined #ruby
paul has joined #ruby
brunoro has joined #ruby
julianhurley has joined #ruby
drPoggs has joined #ruby
cespare has joined #ruby
braincrash has joined #ruby
smtlaissezfaire has joined #ruby
stoic_squirrel has joined #ruby
gf3 has joined #ruby
Stelian1 has joined #ruby
suporte85 has joined #ruby
rezzack has joined #ruby
xybre has joined #ruby
foohey has joined #ruby
wu_lmao has joined #ruby
Ortuna has joined #ruby
fridim__ has joined #ruby
jonathanwallace has joined #ruby
ThePicard has joined #ruby
tris has joined #ruby
_cheney3 has joined #ruby
zodiak has joined #ruby
jimeh_ has joined #ruby
mnaser has joined #ruby
bhaak has joined #ruby
tobiasvl has joined #ruby
halfie has joined #ruby
ariedler has joined #ruby
diegok has joined #ruby
SegFaultAX has joined #ruby
hoelzro has joined #ruby
s3m73x has joined #ruby
KarlHungus has joined #ruby
bjeanes has joined #ruby
maveonair_ has joined #ruby
hackeron has joined #ruby
TJNII has joined #ruby
eliasp has joined #ruby
DarkFoxDK has joined #ruby
theoros has joined #ruby
jlast has joined #ruby
lancepantz has joined #ruby
TheMoonMaster has joined #ruby
taec has joined #ruby
jpun has joined #ruby
chichouw has joined #ruby
corehook has joined #ruby
behemot has joined #ruby
camt has joined #ruby
gregorg has joined #ruby
trent has joined #ruby
Tarential has joined #ruby
marten has joined #ruby
pcboy_ has joined #ruby
niftylettuce has joined #ruby
awkisopen has joined #ruby
dubios has joined #ruby
wuest has joined #ruby
jayne has joined #ruby
jmeeuwen has joined #ruby
notbrent_ has joined #ruby
epochwolf has joined #ruby
pevjan has joined #ruby
soukihei has joined #ruby
stderr- has joined #ruby
tchebb has joined #ruby
epta has joined #ruby
ahuman has joined #ruby
riku has joined #ruby
faulkner has joined #ruby
matchaw has joined #ruby
__main__ has joined #ruby
nemesit|znc has joined #ruby
karnowski has joined #ruby
Anarch has joined #ruby
DanKnox has joined #ruby
Quadlex has joined #ruby
andredieb has joined #ruby
Koshian__ has joined #ruby
graydot has joined #ruby
fumduq- has joined #ruby
katherinem13 has joined #ruby
Caelum has joined #ruby
LBRapid_ has joined #ruby
xxi has joined #ruby
jso has joined #ruby
x13378071 has joined #ruby
moshee has joined #ruby
d_roge has joined #ruby
pygmael has joined #ruby
telling has joined #ruby
nw has joined #ruby
arusso has joined #ruby
matrixise has joined #ruby
bnagy has joined #ruby
Schmidt has joined #ruby
Weazy_ has joined #ruby
msch has joined #ruby
linduxed has joined #ruby
BeanDip_ has joined #ruby
marcellu1 has joined #ruby
aboudreault has joined #ruby
mephux has joined #ruby
sirecote has joined #ruby
Nightmare has joined #ruby
aetaric has joined #ruby
tr4656 has joined #ruby
Y_Ichiro has joined #ruby
justinmcp_ has joined #ruby
dmerrick_ has joined #ruby
nomadic has joined #ruby
tos9 has joined #ruby
17SACX5KT has joined #ruby
Zespre has joined #ruby
mvangala_ has joined #ruby
andrew12 has joined #ruby
cout has joined #ruby
Nanuq has joined #ruby
naquad has joined #ruby
kzrl has joined #ruby
Ortuna has quit [Quit: Computer has gone to sleep.]
gr4yscale has quit [Quit: Computer has gone to sleep.]
famulus has quit [Write error: Connection reset by peer]
elliottcable has quit [Max SendQ exceeded]
caveat- has quit [Max SendQ exceeded]
Michael_ has quit [Remote host closed the connection]
backjlack has quit [Remote host closed the connection]
caveat- has joined #ruby
elliottcable has joined #ruby
bigkm has joined #ruby
pcarrier_ has joined #ruby
ravster has quit [Quit: Leaving.]
<bobdobbs>
I've installed ruby via rbenv. I've then installed the sass gem. But when I try to run sass, I get this: "/usr/bin/ruby1.8: bad interpreter: No such file or directory"
<bobdobbs>
So, how can I get executable gems to work?
jonahR has joined #ruby
pevjan has quit [Remote host closed the connection]
fschuindt has quit [Quit: Computer has gone to sleep.]
sambao21 has joined #ruby
pevjan has joined #ruby
phantasm66 has joined #ruby
phantasm66 has quit [Changing host]
phantasm66 has joined #ruby
Peej has quit [Ping timeout: 248 seconds]
halabund has joined #ruby
peta_ has quit [Quit: peta_]
apok has joined #ruby
dallasm_ has quit [Remote host closed the connection]
codelurker has joined #ruby
<bobdobbs>
gah! even worse! When I type in 'ruby', I get told both that the command cannot be found, and that it exists. http://pastie.org/7918501
osvico has joined #ruby
sivoais_ has joined #ruby
emmanuelux has quit [Ping timeout: 252 seconds]
sivoais_ has quit [Read error: Connection reset by peer]
sivoais has quit [Read error: Connection reset by peer]
<bobdobbs>
Is there a more reliable way to install ruby?
westoque has joined #ruby
sivoais has joined #ruby
emmanuelux has joined #ruby
Collin- has quit [Ping timeout: 264 seconds]
<wmoxam>
bobdobbs: it should just work with rbenv
<bobdobbs>
'should'
jp_____ has quit [Remote host closed the connection]
* wmoxam
shrugs
<bobdobbs>
I'm going through the installation instructions again, to see if I've missed anything
<wmoxam>
I use rbenv and it works great
timkohrumel has joined #ruby
<wmoxam>
bobdobbs: what is the output of 'which ruby'
<wmoxam>
bobdobbs: and 'which sass'
Proshot has quit [Quit: Leaving]
<bobdobbs>
which ruby: /home/mantis/.rbenv/shims/ruby
<bobdobbs>
which sass: /home/mantis/.rbenv/shims/sass
kofno has joined #ruby
tommyvyo has quit [Quit:]
<bobdobbs>
ok, so they are both there, and both in my path, it seems
johnnyfuchs has quit [Remote host closed the connection]
Voodoofish430 has quit [Quit: Leaving.]
<wmoxam>
bobdobbs: head -n 1 /home/mantis/.rbenv/shims/sass
niklasb has quit [Ping timeout: 256 seconds]
<bobdobbs>
#!/usr/bin/env bash
<wmoxam>
hrmm
Michael_ has joined #ruby
a_a_g has joined #ruby
<wmoxam>
bobdobbs: I was execpting #!/usr/bin/env ruby
peteyg has joined #ruby
timkohrumel has quit [Ping timeout: 245 seconds]
<bobdobbs>
I see
<bobdobbs>
what does this tell us?
<wmoxam>
nothing
<bobdobbs>
ok
yshh has joined #ruby
<postmodern>
rbenv uses shims, so all executables become bash scripts
<wmoxam>
it just means I don't understand rbenv shims
mikepack has joined #ruby
splittingred has joined #ruby
<postmodern>
if you don't want shims, you can use rvm/chruby
d11wtq has joined #ruby
<bobdobbs>
hmmm
gaahrdner has joined #ruby
famulus has joined #ruby
<wmoxam>
AFAICT it should work
<bobdobbs>
I've gone down the rvm route before. kinda reluctant to do it again
<postmodern>
bobdobbs, then how about chruby+ruby-build :)
<bobdobbs>
looking into it
rupee has quit [Quit: Leaving]
<wmoxam>
bobdobbs: you have to be missing somethign
pSuT7 has joined #ruby
pSuT7 has quit [Max SendQ exceeded]
<bobdobbs>
wmoxam: yeah. I must be.
<bobdobbs>
just can't figure out what it is
<wmoxam>
bobdobbs: you have 'eval "$(rbenv init -)"' in your bash profile?
otherj has joined #ruby
otherj has quit [Max SendQ exceeded]
homer has joined #ruby
homer is now known as Guest86827
<bobdobbs>
actually, I was just about to check that
<RiftyMcF3arless>
hey everybody. is it customary to define your chef-solo recipes in your Vagrantfile, or simply use vagrant to setup your server and then point something at it 'e.g. knife bootstrap' to install your provisions? i'm a little lost here, because i see and read about both ways online.
chriskk_ has joined #ruby
<RiftyMcF3arless>
i don't mean define, sorry, i mean require via "add_recipe"
chriskk has quit [Read error: Operation timed out]
chriskk_ is now known as chriskk
arya has quit [Ping timeout: 264 seconds]
jlast has quit [Ping timeout: 276 seconds]
sambao21 has joined #ruby
rakl has joined #ruby
larissa has quit [Ping timeout: 256 seconds]
travisjeffery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
guiocavalcanti has quit [Remote host closed the connection]
Guedes0 has quit [Ping timeout: 256 seconds]
guiocavalcanti has joined #ruby
gaahrdner has quit [Remote host closed the connection]
cj3kim has quit [Remote host closed the connection]
jlast has joined #ruby
radic has quit [Ping timeout: 246 seconds]
havenwood has quit [Remote host closed the connection]
saarinen has quit [Quit: saarinen]
guiocavalcanti has quit [Ping timeout: 256 seconds]
idkazuma has quit [Remote host closed the connection]
jlast has quit [Ping timeout: 276 seconds]
dhruvasagar has quit [Ping timeout: 245 seconds]
generalissimo has joined #ruby
graydot has joined #ruby
Vivekananda has joined #ruby
esmith has joined #ruby
d2dchat has quit [Remote host closed the connection]
JimmyNeutron has joined #ruby
esmith has quit [Client Quit]
dhruvasagar has joined #ruby
mmitchell has quit [Remote host closed the connection]
esmith_ has joined #ruby
arya has joined #ruby
radic has joined #ruby
Z_Mass has quit [Quit: Leaving]
fridim__ has quit [Read error: Operation timed out]
<alex88>
number is returned as float since printing shows 2006.0 and so on, what I don't get is why when converting first to string gives always 0 and why leaving integer and then converting to string works fine
wargasm1 has quit [Ping timeout: 256 seconds]
<alex88>
*and then converting to string on puts works fine
felipe has joined #ruby
pTvRp has quit [Ping timeout: 252 seconds]
<havenwood>
mfridh: Good point. Will do. :)
Macaveli has joined #ruby
d11wtq has quit [Ping timeout: 248 seconds]
havenwood has quit [Remote host closed the connection]
kevinfagan has quit [Max SendQ exceeded]
justsee has quit [Ping timeout: 256 seconds]
kevinfagan has joined #ruby
<alex88>
my fault.. .empty? seems to work
nomenkun has joined #ruby
<mfridh>
alex88: in the if?
<alex88>
mfridh: yup
<alex88>
seems it didn't like == '
<alex88>
* == ''
wsterling has joined #ruby
arya has joined #ruby
nomenkun has quit [Remote host closed the connection]
<alex88>
oh, nope, sorry.. it's because doing .to_i.to_s returns '0' and I wasn't checking that.. thanks anyway for looking mfridh
teclator has joined #ruby
machuga|away is now known as machuga
persand has joined #ruby
pkill has quit [Quit: Lost terminal]
lyanchih has joined #ruby
megha is now known as hack
hack is now known as baba
nomenkun has joined #ruby
<evelyette>
hi, does anybody know how to solve this: http://dpaste.com/1172069/ ... I guess bundler is not installed correctly, but I've run # gem install bundler as root and it says bundler was installed correctly ... any ideas ?
<mfridh>
on another topic ... I managed to push 800Mbit into amazon Glacier on a single server using Ruby + Fog + Sidekiq... with 9 Sidekiq processes of 4 threads each ... not sure where to go from here. Guess it really doesn't matter if I use Sidekiq or Resque because I'd need to scale this mostly with processes either way.
bradhe has quit [Remote host closed the connection]
wsterling has quit [Ping timeout: 264 seconds]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
danslo has joined #ruby
senayar_ has joined #ruby
arya has quit [Ping timeout: 248 seconds]
nlv has quit [Remote host closed the connection]
postmodern has joined #ruby
vlad_starkov has joined #ruby
Davey has joined #ruby
senayar has quit [Ping timeout: 246 seconds]
machuga is now known as machuga|away
timonv has joined #ruby
Davey has quit [Client Quit]
teddyp1cker has joined #ruby
vlad_starkov has quit [Ping timeout: 256 seconds]
Spami_ has quit [Quit: This computer has gone to sleep]
justsee has quit [Ping timeout: 248 seconds]
meh`_ has quit [Quit: non posso vivere sapendo di essere rosa]
lyanchih has quit [Quit: lyanchih]
meh` has joined #ruby
blaxter_ has joined #ruby
blacktulip has joined #ruby
jimg has joined #ruby
ipalaus has quit [Ping timeout: 276 seconds]
sayan has quit [Ping timeout: 246 seconds]
daniel_- has joined #ruby
ipalaus has joined #ruby
Soliah has quit [Quit: Soliah]
<mfridh>
evelyette: not sure ... 'gem which bundler' 'gem env' maybe can show you some hints if it's a path issue
timonv has quit [Remote host closed the connection]
<evelyette>
mfridh: if I run "gem install bundler" I get Permission denied - /var/lib/gems/1.9.1/cache/bundler-1.3.5.gem ... which is why I'm running it with sudo
<ij>
s/let's .*/lets not judge one of his opinions by his other opinions/
<ij>
let's*
casheew has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Ping timeout: 248 seconds]
sterNiX has quit [Quit: Lagging Off]
<davout>
rspec is more complex than test::unit, the "too complex" part is subjective, both serve a purpose
<ij>
In what way is it more complex?
guiocavalcanti has joined #ruby
ExxKA has quit [Quit: This computer has gone to sleep]
Xeago has joined #ruby
tvw has joined #ruby
nomenkun has quit [Ping timeout: 256 seconds]
dinoex|| is now known as dinoex
jlast has joined #ruby
atno has joined #ruby
timmow has quit [Read error: Connection reset by peer]
timmow_ has joined #ruby
casheew has joined #ruby
<apeiros>
ij: just take a look at the codesize
khismetix has joined #ruby
<apeiros>
and yes, I prefer test unit over rspec. I liked the idea initially. but the first dislike I had about rspec was the rather huge churn (changes in the syntax every 2 months or so)
<apeiros>
the second dislike was/is that you basically have to learn a new language in order to use rspec
ttt has quit [Remote host closed the connection]
<apeiros>
and the third dislike is, that it's somewhat opaque what goes on
hamakn has quit [Read error: Connection reset by peer]
Fraeon has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 256 seconds]
thone has quit [Ping timeout: 252 seconds]
a_a_g has joined #ruby
<alex88>
someone uses OptionParser? is there a way to use -v -vv -vvv for short arguments?
arya has joined #ruby
guiocavalcanti has quit [Remote host closed the connection]
guiocavalcanti has joined #ruby
araujo has quit [Read error: Connection reset by peer]
binaryplease has quit [Ping timeout: 276 seconds]
araujo has joined #ruby
pskosinski has joined #ruby
lkba has joined #ruby
ttt has joined #ruby
<Spooner>
alex88, Noone uses OptionParser. Use Trollop or slop...or anything else!
bubblehead has joined #ruby
<bnagy>
<3 trollop
<otters>
does trollop do short arguments?
guiocavalcanti has quit [Ping timeout: 264 seconds]
teddyp1cker has joined #ruby
senayar_ has quit [Remote host closed the connection]
<Spooner>
I'm sure it does.
senayar has joined #ruby
ttt_ has joined #ruby
<Spooner>
Though I never use them :$
<bnagy>
yes, it does
AgentWillyWonka has quit [Ping timeout: 252 seconds]
blaxter_ has quit [Ping timeout: 264 seconds]
ttt has quit [Ping timeout: 256 seconds]
bubblehead has quit [Ping timeout: 248 seconds]
w|t has joined #ruby
<bnagy>
by default, as well, although you can also set them if you don't want the first letter of the long opt
teddyp1cker has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
teddyp1cker has quit [Read error: Connection reset by peer]
teddyp1cker has joined #ruby
noname001 has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
noname001 has joined #ruby
Spooner has quit [Remote host closed the connection]
binaryplease has joined #ruby
arya has quit [Ping timeout: 264 seconds]
codecop has joined #ruby
yacks has quit [Ping timeout: 245 seconds]
<alex88>
thanks Spooner, sorry for the delay
cj3kim has quit [Ping timeout: 276 seconds]
jprovazn has joined #ruby
mrmist has quit [Quit: leaving]
<e-dard>
Randomly came across this while I was looking up some documentation on Google "What's the most efficient way to find the smallest number in a circular list in Ruby circular_list = [22, 52, 66, 82, 5, 8, 12, 19]"
Fraeon has joined #ruby
brtdv has joined #ruby
<e-dard>
Since the list is unsorted the best one could do is O(N). What's the trick then with "circular list" Why is there an "efficient algorithm"
machuga|away is now known as machuga
blaxter_ has joined #ruby
arya has joined #ruby
<e-dard>
It was listed under a Google hard programming challenge but it looks fairly innocuous to me. Was I missing something in passing?
<MrZYX>
not sure what the properties of a circular list are in this case...
yacks has joined #ruby
AlSquire has joined #ruby
<canton7>
e-dard, it is sorted
ayaz has quit [Quit: ayaz]
<e-dard>
canton7: ah I see now…
tjbiddle has joined #ruby
rocket has joined #ruby
<e-dard>
start of the list is element 4… Now I see why it's a non-trivial problem.
rocket is now known as Guest6819
<canton7>
is a binary search optimal?
mrmist has joined #ruby
<MrZYX>
well, just return the first element where n-1 > n
<MrZYX>
n=element number
<e-dard>
canton7:O(log n) so pretty much
tjbiddle_ has joined #ruby
dumdedum has joined #ruby
<e-dard>
MrZYX: hmm, well a naive approach to that would be O(n) because you would traverse n/2 elements to find n-1 > n wouldn't you?
<e-dard>
So I guess the question is "can you implement binary search on a circular list"
<MrZYX>
worst case is traversing all elements, yeah
skattyadz has joined #ruby
tjbiddle has quit [Ping timeout: 240 seconds]
tjbiddle_ is now known as tjbiddle
includex has joined #ruby
<MrZYX>
it's still better than on an unsorted list though, with an unsorted one you can't say you found the smallest element without touching all everytime
<e-dard>
Indeed
<canton7>
e-dard, I don't see why not. instead of "if too high, go left; else go right" we have "if too high && element larger than first element go right, etc..."
ntus1017 has quit [Remote host closed the connection]
blaxter_ has quit [Ping timeout: 245 seconds]
<e-dard>
canton7: Yes. That must be the golden answer to a question like this. Though I'm sure a pragmatic approach like MrZYX's would be fine to many hiring managers
machuga is now known as machuga|away
<canton7>
the question was "most efficient" :P
<MrZYX>
list.each_cons.find{|a,b| a > b}.last :P
mrmist has quit [Quit: Changing server]
Al_ has quit [Quit: Al_]
_veer has joined #ruby
_veer has joined #ruby
ayaz has joined #ruby
araujo has quit [Read error: Connection reset by peer]
chipotle_ has quit [Quit: cya]
bluOxigen has joined #ruby
araujo has joined #ruby
guiocavalcanti has joined #ruby
chipotle_ has joined #ruby
arya has quit [Ping timeout: 264 seconds]
horofox has joined #ruby
mootpointer has joined #ruby
chandankumar has joined #ruby
headius has quit [Quit: headius]
mrmist has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
mrmist has quit [Client Quit]
monkegjinni has joined #ruby
mrmist has joined #ruby
swex has quit [Read error: Connection reset by peer]
rippa has quit [Ping timeout: 240 seconds]
Al_ has joined #ruby
ntus1017 has joined #ruby
teddyp1cker has joined #ruby
swex has joined #ruby
guiocavalcanti has quit [Ping timeout: 256 seconds]
chipotle_ has quit [Quit: cya]
Proshot has joined #ruby
arya has joined #ruby
Michael_ has quit [Read error: Connection reset by peer]
<joshmyers>
how can I pick out like ChannelSize for one of the hashes?
jlast has joined #ruby
schaerli has quit [Remote host closed the connection]
a_a_g has quit [Quit: Leaving.]
nobitanobi has quit [Ping timeout: 256 seconds]
schaerli has joined #ruby
MrZYX is now known as MrZYX|off
arya has quit [Ping timeout: 276 seconds]
teddyp1cker has quit [Remote host closed the connection]
jlast has quit [Ping timeout: 246 seconds]
ntus1017 has quit [Remote host closed the connection]
monkegjinni has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
monkegjinni has joined #ruby
AlSquire has quit [Read error: Connection reset by peer]
<joshu>
I'm working on the following ruby script https://gist.github.com/anonymous/0d1e43819300ea0fa471 just fleshing out the logic. I want to use minitest to write tests before writing the code, but I'm struggling to understand how to do it.
<e-dard>
joshmyers: you mean like foo[CHANNEL.syslog_s3_channel
decentrality has quit [Quit: decentrality]
MrZYX|off is now known as MrZYX
<e-dard>
joshmyers: you mean like foo["CHANNEL.syslog_s3_channel"]["ChannelSize"] ?
<joshu>
I've looked at tutorials and some youtube videos but I could use some help getting started
AlSquire has joined #ruby
d11wtq has joined #ruby
<joshmyers>
thats the one e-dard
<joshu>
I'm confused about whether to use mintiest specs or unit tests. How to write the first test to check that there is something on STDIN and then that the header X-FFM does not exist
<joshmyers>
sorry new to ruby
joshmyers is now known as bubu
joonty has quit [Quit: leaving]
bradhe has quit [Ping timeout: 248 seconds]
joonty has joined #ruby
<bubu>
e-dard: I'm getting a TypeError: can't convert String into Integer
chandankumar has quit [Ping timeout: 276 seconds]
<bubu>
why would it be trying to convert to an integer?
joonty has quit [Client Quit]
<e-dard>
bubu: probably because foo is an Array and not a hash?
<bubu>
hmm it's not though
<bubu>
its a hash of hashes
ntus1017 has joined #ruby
joonty has joined #ruby
ntus1017 has quit [Remote host closed the connection]
joonty has quit [Client Quit]
nomenkun_ has quit [Remote host closed the connection]
<bubu>
as in the gist ..
tomzx_mac has joined #ruby
nomenkun has joined #ruby
brtdv has quit [Ping timeout: 256 seconds]
hogeo has quit [Remote host closed the connection]
erry is now known as evilerry
mikecmpbll has joined #ruby
hogeo has joined #ruby
* e-dard
shrugs
evilerry is now known as erry
tiagonobre has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
Azulinho has quit [Ping timeout: 276 seconds]
rickruby has joined #ruby
b0oh has joined #ruby
<e-dard>
bubu: I pasted your json into irb as a hash and ran json["CHANNEL.syslog_s3_channel"]["ChannelSize"] and got => "0"
jbpros has quit [Quit: jbpros]
guiocavalcanti has joined #ruby
<bubu>
I have just done the same which seems OK
<bubu>
thanks! :)
b0oh has left #ruby [#ruby]
monkegjinni has joined #ruby
BonSequitur has quit [Remote host closed the connection]
joonty has joined #ruby
mootpointer has quit [Quit: Computer has gone to sleep.]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
ilpuccio has quit [Quit: This computer has gone to sleep]
monkegjinni has quit [Read error: Connection reset by peer]
<joshu>
anyone with minitest experience?
postmodern has quit [Quit: Leaving]
monkegjinni has joined #ruby
BizarreCake has quit [Quit: Leaving]
cj3kim has joined #ruby
rickruby has quit [Ping timeout: 252 seconds]
<joonty>
joshu: sadly not
monkegjinni has quit [Read error: Connection reset by peer]
<joshu>
joonty no worries ;)
<joonty>
i've wanted to look at it
<joonty>
there are just too many things on my "to try" list
noname001 has quit [Ping timeout: 256 seconds]
monkegjinni has joined #ruby
Mattx has quit [Ping timeout: 256 seconds]
Michae___ has quit [Remote host closed the connection]
guiocavalcanti has quit [Remote host closed the connection]
GeissT_ has joined #ruby
GeissT_ has quit [Client Quit]
guiocavalcanti has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
cj3kim has quit [Ping timeout: 256 seconds]
monkegjinni has quit [Remote host closed the connection]
noname001 has joined #ruby
moos3 has joined #ruby
<joshu>
joonty yeah same here
horofox has quit [Quit: horofox]
decentrality has joined #ruby
GeissT has quit [Ping timeout: 252 seconds]
lyanchih has quit [Quit: lyanchih]
guiocavalcanti has quit [Read error: Operation timed out]
browndawg has joined #ruby
guiocavalcanti has joined #ruby
<mikecmpbll>
what's the 1.9.3 way of achieving module#prepend functionality?
vlad_sta_ has quit [Remote host closed the connection]
girija has quit [Read error: Connection reset by peer]
lyanchih has joined #ruby
mootpointer has joined #ruby
lyanchih has quit [Client Quit]
tibi has quit [Read error: Connection reset by peer]
Proshot has quit [Ping timeout: 276 seconds]
mmitchell has joined #ruby
jnoob22 has joined #ruby
zipace has joined #ruby
<apeiros>
mikecmpbll: alias and redefine
noname001 has quit [Ping timeout: 256 seconds]
<apeiros>
oh, crossposter
<mikecmpbll>
..my bad.
mikecmpbll was kicked from #ruby by apeiros [if you cross-post, you are required to state that.]
slainer6_ has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
<mikecmpbll>
where are the rules? :s I wasn't aware of that, but now I know i guess.
<mikecmpbll>
thanks anyway.
<apeiros>
it's a rule of manners. there are no written channel rules.
<mikecmpbll>
clearly, because I always read the topics for rules and regs.
<apeiros>
:)
<mikecmpbll>
how long is long enough under the code of manners before I'm allowed to ask in another room? :)
<apeiros>
you can immediately. just state that you cross-post
<mikecmpbll>
okaay.
davetherat has quit [Remote host closed the connection]
Markvilla has joined #ruby
davetherat has joined #ruby
<apeiros>
most people fail to update the cross-posted channels. and then people try to help with something that's long been solved.
noname001 has joined #ruby
<mikecmpbll>
gotcha.
daniel_- has joined #ruby
hogeo has quit [Ping timeout: 248 seconds]
moos3 has quit [Quit: Computer has gone to sleep.]
arya has joined #ruby
brianherman has joined #ruby
luckyruby has quit [Read error: Connection reset by peer]
rakl has joined #ruby
luckyruby has joined #ruby
Al_ has quit [Quit: Al_]
kofno has joined #ruby
<joshu>
for mintiest to work do I need to wrap my ruby script code in a class and each part of code as a method?
<joshu>
*minitest
<joonty>
lol mintiest
<joonty>
do you mean the code that you want to test?
mootpointer has quit [Quit: Computer has gone to sleep.]
camilasa_ has quit [Remote host closed the connection]
atmosx has quit [Ping timeout: 240 seconds]
GeissT has joined #ruby
platzhirsch has joined #ruby
<joshu>
hehe yeah
<platzhirsch>
What do you say, should I separate a long text string over two lines with just new lines or by using \?
<joonty>
joshu: it's way easier to test classes
luckyruby has quit [Read error: Operation timed out]
camilasa_ has joined #ruby
jbpros has joined #ruby
jlast has joined #ruby
Domon has quit [Remote host closed the connection]
<julianhurley>
2) How does the chained 'sub' on line 25 work? Do methods chained to 'end' keywords mean they go 'back through' the method they're ending?
DonRichie has joined #ruby
mklappstuhl has joined #ruby
camilasa_ has joined #ruby
<ramblex>
julianhurley: self in that context means it's a class method rather than an instance method
b0oh has quit [Quit: Leaving.]
purpleidea has joined #ruby
<ramblex>
sub will be called on the result of gsub which is being passed the block
norc has quit [Quit: Page closed]
bradhe has quit [Ping timeout: 256 seconds]
mklappstuhl has quit [Remote host closed the connection]
<julianhurley>
Is the result of gsub passed back through the 'case' loop?
invisime has joined #ruby
<julianhurley>
*case statement
<apeiros>
the case/when is part of the block passed to gsub. it is unrelated to the return value.
<apeiros>
it is only related to how the gsub performs the substitution
binaryplease has quit [Read error: No route to host]
<bubu>
how can I puts a particular sub value like ChannelSize?
<atmosx>
bubu: hash[key]
<atmosx>
bubu: usually you'd use symbols as keys, as use hash[:key]
ariedler has joined #ruby
<atmosx>
in your case channels[ChannelFillPercentage]
<atmosx>
err
<atmosx>
in your case channels['ChannelFillPercentage']
<MrZYX>
he has a ChannelSize key ;D
<MrZYX>
channels.each do |channel| puts channel['ChannelSize']; end
katsrc has quit [Quit: leaving]
<bubu>
ja that wont work atmosx :(
<MrZYX>
oh, channels.values.each
<bubu>
MrZYX: tried that but I get a TypeError: can't convert String to Integer ...
<bubu>
ahhh
<bubu>
I pref want to end up with something like this: json_s3_channel : 0
<bubu>
for example if the ChannelSize is 0 for the channel json_s3_channel ..
Lubinski has quit [Read error: Connection reset by peer]
<MrZYX>
channels.each do |name, data| puts "#{name} : #{data['ChannelSize']}"; end
<bubu>
dude, you're aweeesome :]
sailias has joined #ruby
<atmosx>
p hash['CHANNEL.syslog_s3_channel']['ChannelFillPercentage']
<bubu>
atmosx: cant be using any hard coded names though
kindjal has quit [Ping timeout: 246 seconds]
ilpuccio has joined #ruby
aboudreault has quit [Read error: Operation timed out]
falood has joined #ruby
Uranio has joined #ruby
Uranio has quit [Client Quit]
jerius has joined #ruby
jbpros has quit [Quit: jbpros]
jprovazn has quit [Quit: Leaving]
jprovazn has joined #ruby
tundrax has joined #ruby
jlast has joined #ruby
Ortuna has quit [Quit: Computer has gone to sleep.]
nezumi has quit [Ping timeout: 264 seconds]
banisterfiend has joined #ruby
dhruvasagar has quit [Read error: Operation timed out]
luckyruby has quit [Remote host closed the connection]
platzhirsch has quit [Quit: Leaving.]
cofin has joined #ruby
Chioque has joined #ruby
b0oh has joined #ruby
kobain has joined #ruby
jlast has quit [Ping timeout: 241 seconds]
anonymuse has joined #ruby
Davey has joined #ruby
chandankumar has joined #ruby
guiocavalcanti has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
guiocavalcanti has joined #ruby
bradhe has joined #ruby
wmoxam has joined #ruby
germanstudent has quit [Quit: Requested.]
germanstudent has joined #ruby
helios has joined #ruby
Davey has quit [Client Quit]
<Macaveli>
If I render a field field like this: file_field_tag("PROFILE_PIC") I get values in params["PROFILE_PIC"] but if I render an image like this: image_tag(Base64::decode64(field_value), :id => "PROFILE_PIC", :type =>"file", :name => "PROFILE_PIC") params["PROFILE_PIC"] is nil :s
Nenor has quit [Remote host closed the connection]
monkegjinni has joined #ruby
bubblehead has quit [Ping timeout: 264 seconds]
rickruby has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
bal has quit [Quit: Leaving]
skattyadz has quit [Quit: skattyadz]
monkegjinni has joined #ruby
guiocavalcanti has quit [Read error: Connection reset by peer]
guiocavalcanti has joined #ruby
khismetix has quit [Quit: Computer has gone to sleep.]
teclator has quit [Ping timeout: 248 seconds]
akells` has joined #ruby
guiocavalcanti has quit [Read error: Connection reset by peer]
guiocavalcanti has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
axl_ has joined #ruby
monkegjinni has joined #ruby
julianhurley has quit [Read error: Connection reset by peer]
julianhurley has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
b0oh has joined #ruby
falood has quit [Remote host closed the connection]
monkegjinni has joined #ruby
julianhurley has quit [Read error: Connection reset by peer]
julianhurley has joined #ruby
guiocava_ has joined #ruby
guiocavalcanti has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby
jacktrick has joined #ruby
<k611>
Within a class : how can i share a def 3rdmethod() to a def self.x() and def y()
a_a_g1 has quit [Quit: Leaving.]
Astralum has quit [Read error: Connection reset by peer]
monkegjinni has quit [Remote host closed the connection]
rickruby has quit [Remote host closed the connection]
mootpointer has joined #ruby
pipework has joined #ruby
splittingred has joined #ruby
<MrZYX>
it's probably a candidate for a utilities module but you can make it a public class method and call self.class.3rdmethod from the instance method
Astralum has joined #ruby
<k611>
self.class.3rdmethod() from x()
GeissT has quit [Quit: MillBroChat AdIRC User]
theRoUS_ has quit [Ping timeout: 264 seconds]
Macaveli has quit [Quit: This computer has gone to sleep]
oecmwf has quit [Ping timeout: 248 seconds]
generalissimo has joined #ruby
failshell has joined #ruby
Chioque has quit [Quit: Leaving]
blaxter has joined #ruby
drblok has joined #ruby
<k611>
how should i define this then : def api(*args) ; self.class.api args ;end ?
<k611>
how should i define this then : def 3rd(*args) ; self.class.3rd args ;end ?
<banisterfiend>
k611: u r annoying
<k611>
i'd like to pass everythin to the class method
<k611>
like super
drblok has quit [Client Quit]
guiocava_ has quit [Ping timeout: 256 seconds]
dennus has joined #ruby
<r0bglees0n>
def method_missing(m,*args,&blk); self.class.send(m,*args,&blk); end
<k611>
using self.class.3rd is going to be long each time so it's about aliasing self.class.3rd to 3rd
Nenor has joined #ruby
jlast has joined #ruby
wgpjji has joined #ruby
Squarepy has quit [Ping timeout: 240 seconds]
backjlack has quit [Remote host closed the connection]
<MrZYX>
if it really doesn't fit a global utilities module I'd do a local one: class Foo; module Utils; module_function; def my_method; ...; end; private_constant :Utils; def whatever; Utils.my_method; end; end;
<MrZYX>
+ the missing end I forget
arya has joined #ruby
<k611>
i see thx both
skattyadz has joined #ruby
<r0bglees0n>
that's the second time ive seen private_constant being used
krawchyk_ has joined #ruby
backjlack has joined #ruby
mklappstuhl has joined #ruby
<k611>
i think in java class methods are auto accessible from instance
<MrZYX>
r0bglees0n: it's my first time :D
Heero` has quit [Ping timeout: 256 seconds]
akells` has quit [Remote host closed the connection]
guiocavalcanti has joined #ruby
zeel has joined #ruby
zeel is now known as ngr
tundrax has quit [Remote host closed the connection]
ngr is now known as ngrr
tonini has joined #ruby
krawchyk has quit [Ping timeout: 256 seconds]
mboers has quit [Quit: mboers]
evenix has joined #ruby
io_syl has joined #ruby
mercwithamouth has quit [Ping timeout: 256 seconds]
<r0bglees0n>
kw args are also much more annoying to write a 1.9/2.0 compatible interface for
<MrZYX>
is it even possible?
newUser1234 has joined #ruby
<r0bglees0n>
with two method definitions, sure
<MrZYX>
ew
<r0bglees0n>
right :)
<MrZYX>
yeah, not worth the effort
<r0bglees0n>
it will probably be at least a year before we see them being used
tundrax has joined #ruby
<MrZYX>
bbbs
<MrZYX>
-b
<r0bglees0n>
cya
gaahrdner has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
chandankumar has quit [Read error: Connection reset by peer]
monkegjinni has quit [Read error: Connection reset by peer]
lmf40 has quit [Remote host closed the connection]
kindjal has joined #ruby
nlv has joined #ruby
mattsgarrison has joined #ruby
krawchyk has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
d2dchat has joined #ruby
monkegjinni has joined #ruby
banisterfiend has joined #ruby
girija has quit [Ping timeout: 256 seconds]
tyl has quit [Quit: Computer has gone to sleep.]
yann_ck has quit [Quit: Computer has gone to sleep.]
appleseed has joined #ruby
ebouchut has quit [Quit: This computer has gone to sleep]
monkegjinni has quit [Read error: Connection reset by peer]
rhys has joined #ruby
monkegjinni has joined #ruby
chrishunt has joined #ruby
MrZYX is now known as MrZYX|off
monkegjinni has quit [Read error: Connection reset by peer]
zeeraw has quit [Quit: Computer has gone to sleep.]
monkegjinni has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
w|t has quit [Quit: Computer has gone to sleep.]
bradhe has joined #ruby
_nitti has joined #ruby
Nenor has quit [Remote host closed the connection]
Davey has quit [Quit: Computer has gone to sleep.]
s2013 has joined #ruby
mootpointer has quit [Ping timeout: 246 seconds]
Nenor has joined #ruby
mercwithamouth has joined #ruby
akells` has quit [Remote host closed the connection]
chandankumar has joined #ruby
Squarepy has joined #ruby
BizarreCake has quit [Ping timeout: 248 seconds]
bradhe has quit [Ping timeout: 248 seconds]
mootpointer has joined #ruby
mootpointer has quit [Client Quit]
noop has quit [Ping timeout: 248 seconds]
alex__c2022 has joined #ruby
niklasb has joined #ruby
mootpointer has joined #ruby
corehook has quit [Ping timeout: 256 seconds]
mklappstuhl has quit [Remote host closed the connection]
chandankumar has quit [Read error: Connection reset by peer]
MrZYX|off is now known as MrZYX
guiocavalcanti has quit [Read error: Connection reset by peer]
monkegjinni has quit [Remote host closed the connection]
guiocavalcanti has joined #ruby
__eka__ is now known as eka
dennus has quit [Ping timeout: 256 seconds]
ttt_ has quit [Remote host closed the connection]
rgrinberg has quit [Read error: Operation timed out]
suporte85 has quit [Quit: Saindo]
dennus has joined #ruby
lunarjar has quit [Ping timeout: 264 seconds]
newUser1234 has quit [Remote host closed the connection]
BizarreCake has joined #ruby
awarner_ has quit [Ping timeout: 248 seconds]
znode has joined #ruby
t6d has quit [Quit: t6d]
Dummies_freelanc has joined #ruby
lkba has quit [Ping timeout: 264 seconds]
johnnyfuchs has joined #ruby
lunarjar has joined #ruby
mootpointer has quit [Ping timeout: 264 seconds]
Mattix has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
codepython777 has joined #ruby
ravster has joined #ruby
mootpointer has joined #ruby
newUser1234 has joined #ruby
lkba has joined #ruby
binaryplease has quit [Read error: No route to host]
<codepython777>
I'm writing a client and a server. The server is on the web and the client has a password for the server. What is a good way to authenticate the client on the server for data interchange?
znode has quit [Remote host closed the connection]
banghouse2 has joined #ruby
alexwh has joined #ruby
DanKnox_away is now known as DanKnox
b0oh has quit [Quit: Leaving.]
<bnagy>
tls
<bnagy>
tbh ssh would be better
<bnagy>
but tls w/ password is not retarded
<canton7>
look at what Amazon AWS does with the AccessKey and SecretKey
banghouse2 is now known as banghouse
<codepython777>
bnagy: should i just do a https?
<canton7>
(data signed with secret key, client identified with access key)
Davey has joined #ruby
<bnagy>
codepython777: not really
<codepython777>
bnagy: is https not secure? I could just do a https auth?
<bnagy>
because PKI is crap
io_syl has quit [Quit: Computer has gone to sleep.]
<codepython777>
I plan to use self-signed certificates
Hanmac2 has quit [Quit: Leaving.]
<bnagy>
good for you, princess
choobie has quit [Read error: Connection reset by peer]
s2013 has left #ruby [#ruby]
<bnagy>
nothing ever went wrong with that
binaryplease has joined #ruby
<codepython777>
bnagy: dns is the only weakness there, right?
waxjar has quit [Ping timeout: 245 seconds]
<bnagy>
uh
<bnagy>
no
<bnagy>
sorry, I am drunk
<codepython777>
bnagy: what else is wrong?
<bnagy>
I do not give subtle advice in this circumstances
<canton7>
any sort of mitm
darkapex has quit [Ping timeout: 246 seconds]
* MrZYX
prefers CACert over self signed if he has to do somethin with HTTPS
theRoUS_ has joined #ruby
<bnagy>
forget certs, it's all shit
<MrZYX>
I try to
Asher has quit [Read error: Connection reset by peer]
<bnagy>
do ssh if you can
<MrZYX>
but the world is against us :/
<bnagy>
if not, you can do tls directly with keys
<codepython777>
canton7: mitm on self-signed, how do you do it apart from dns?
ShapeShifter499 has quit [Ping timeout: 264 seconds]
<MrZYX>
I actually like the idea of providing the certs via dnssec
segv has quit [Ping timeout: 245 seconds]
darkapex has joined #ruby
darkapex has joined #ruby
darkapex has quit [Changing host]
Asher has joined #ruby
<canton7>
codepython777, arp spoofing if you're on the same network
waxjar has joined #ruby
nomenkun_ has joined #ruby
<canton7>
(trivial to do)
segv has joined #ruby
<codepython777>
canton7: well I am sure you are not on my network :)
<codepython777>
but understood, so same network + dns spoofing
jastix has quit [Quit: Leaving]
mootpointer has quit [Ping timeout: 256 seconds]
bean__ has joined #ruby
<canton7>
also, self-signed certs can't be revoked
<bnagy>
and it is not trivial to ensure that your client will only accept the cert in question
<codepython777>
canton7: If I am running the server and the client both, that problem isnt there, right?
<bnagy>
but possible, sure
<bnagy>
basically just don't
nomenkun has quit [Ping timeout: 248 seconds]
codemonkey010101 has quit [Remote host closed the connection]
ShapeShifter499 has joined #ruby
<bnagy>
if you have that much control use ssh
<codepython777>
bnagy: well the problem is, i've to run it on many platforms. openssh is pain on windows.
<canton7>
codepython777, can you ensure that every client out there gets updated as soon as you want it to?
<bnagy>
wtf
mootpointer has joined #ruby
<bnagy>
if you have to do windows you can use plink etc
<codepython777>
canton7: why do clients need to be updated? They just see SSCerts and if there is a new one, they use that?
* bnagy
gets popcorn
nettoweb has quit [Quit: nettoweb]
vlad_starkov has joined #ruby
<bnagy>
NO DO GO ON
nomenkun_ has quit [Remote host closed the connection]
<canton7>
codepython777, re ssh on windows: Net::SSH ?
dstarh has joined #ruby
nomenkun has joined #ruby
<canton7>
codepython777, and ignore my comment on updating clients - the point is there is no way to say "this certificate was compromised - don't use it"
dmiller has joined #ruby
dmiller has quit [Remote host closed the connection]
<dstarh>
I have a date and I need to add N milliseconds to it. What is the best way to accomplish this?
dmiller has joined #ruby
<lupine>
canton7, crls?
chrisja has joined #ruby
<MrZYX>
dstarh: use a datetime
Heero has joined #ruby
Heero has quit [Changing host]
Heero has joined #ruby
<codepython777>
canton7: if i use self-signed certs + openid with signed certs, does that problem go away? - at least in the human client case?
rickruby has joined #ruby
<dstarh>
MrZYX: ok so I have a date time, i still need to add N milliseconds to it
<canton7>
lupine, irrelevant with self-signed certs - people can spoof a cert easier than obtaining it
<dstarh>
lets say it's 12345 miliseconds
vlad_sta_ has quit [Ping timeout: 245 seconds]
guiocavalcanti has quit [Ping timeout: 256 seconds]
<lupine>
mm, I wouldn't accept self-signed en masse
timmow_ has quit [Ping timeout: 252 seconds]
haxrbyte_ has quit [Remote host closed the connection]
cj3kim has joined #ruby
fumbe has joined #ruby
cj3kim has quit [Remote host closed the connection]
<apeiros>
I see it for everybody else. just not from the bot.
<MrZYX>
I guess the layer that sends it to IRC messes it up
ckrailo has joined #ruby
jbpros has quit [Quit: jbpros]
nikeita has joined #ruby
<apeiros>
mhm
binaryplease has quit [Ping timeout: 252 seconds]
girija has joined #ruby
mafolz has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
ToApolytoXaos has joined #ruby
ghr has quit [Remote host closed the connection]
welias has joined #ruby
<spike|spiegel>
what is wron?
<spike|spiegel>
8230 is correct for ellipsis
nettoweb has joined #ruby
AndChat| has joined #ruby
brunoro has joined #ruby
tvw has joined #ruby
bradhe has joined #ruby
idoru has joined #ruby
aaronmacy has quit [Quit: Leaving.]
aaronmacy has joined #ruby
khismetix has quit [Ping timeout: 276 seconds]
Banistergalaxy has quit [Ping timeout: 252 seconds]
baks has joined #ruby
rakl has joined #ruby
khismetix has joined #ruby
schaerli has joined #ruby
DanKnox is now known as DanKnox_away
Nenor has quit [Remote host closed the connection]
schaerli has quit [Remote host closed the connection]
Mattix has joined #ruby
filipe has quit [Read error: Connection reset by peer]
atmosx has joined #ruby
Nenor has joined #ruby
timmow has quit [Ping timeout: 252 seconds]
altamic has joined #ruby
altamic has quit [Changing host]
altamic has joined #ruby
dstarh has quit [Remote host closed the connection]
hellified has joined #ruby
krombr has joined #ruby
includex has quit [Quit: Leaving...]
DanKnox_away is now known as DanKnox
robbyoconnor has joined #ruby
khismetix has quit [Quit: Computer has gone to sleep.]
hellified has quit [Quit: Leaving]
tylersmith has joined #ruby
haxrbyte has joined #ruby
hellified has joined #ruby
YanniHoza has joined #ruby
YanniHoza has left #ruby [#ruby]
awarner has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
rakl has quit [Quit: sleeping]
haxrbyte has quit [Remote host closed the connection]
evenix has quit [Read error: Connection reset by peer]
ericwood has quit [Ping timeout: 264 seconds]
haxrbyte has joined #ruby
juarlex has quit [Remote host closed the connection]
nomenkun has joined #ruby
bradleyprice has joined #ruby
ericwood has joined #ruby
mercwithamouth has quit [Ping timeout: 252 seconds]
c0rn has joined #ruby
jlast has quit [Remote host closed the connection]
juarlex has joined #ruby
blandflakes has quit [Remote host closed the connection]
blandflakes has joined #ruby
blandflakes_ has joined #ruby
kristofers has joined #ruby
blandflakes has quit [Client Quit]
kevinykc_ has quit [Quit: Computer has gone to sleep.]
blandflakes_ has quit [Remote host closed the connection]
sepp2k has joined #ruby
jbueza has quit [Quit: Leaving.]
blandflakes has joined #ruby
jlast has joined #ruby
jonathanwallace has quit [Quit: WeeChat 0.4.0]
suporte85 has quit [Quit: Saindo]
chrishough has quit [Quit: chrishough]
ExxKA has quit [Quit: This computer has gone to sleep]
jonathanwallace has joined #ruby
meh` has quit [Ping timeout: 276 seconds]
brianpWins has joined #ruby
jeffreylevesque has joined #ruby
newUser1234 has quit [Remote host closed the connection]
jlast has quit [Ping timeout: 264 seconds]
cpruitt has quit [Quit: cpruitt]
Spami_ has quit [Quit: This computer has gone to sleep]
<hellified>
k
hellified has quit [Remote host closed the connection]
RiftyMcF3arless has joined #ruby
suporte85 has joined #ruby
Ontolog has joined #ruby
kil0byte has joined #ruby
<RiftyMcF3arless>
very strange... taking a shot in the dark here. i'm using watir w/ firefox on ubuntu. i have firefox setup to restore its previous session which works fine when i use the browser manually OR w/ Watir in IRB. however, in my code, upon calling the Watir browser `close` method and restarting the browser (either manually or through Watir), my session comes up as the one BEFORE the last. it doesn't save what page i was on, my cookies, etc.
<RiftyMcF3arless>
just wondering if someone has any idea what this might be.
<havenwood>
My mother's birthday in 2038, Time ends.
<panzi>
apeiros: you don'T understand
<apeiros>
I perfectly understand.
<apeiros>
you're drawing arbitrary lines on where to betray implementation in the name and where not.
Collin- has joined #ruby
bubblehead has joined #ruby
noop has joined #ruby
<panzi>
if the difference between Time and DateTime is that Time does not work outside of the 64bit timestamp range than this is the relevant thing about this type
<panzi>
if Time has any other meaning and the thing with the range is just an impelentatin detail thannot
<apeiros>
and there you have a property that only matters *in context with another class*
<panzi>
but you said that is what the difference is
twoism has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Ping timeout: 276 seconds]
<apeiros>
so do you now start to name all classes with regards to how they differ or are similar to other classes? the same stupid. I stand by it.
<panzi>
Time and DateTime are both part of the ruby stdlib, of course they are in each others context
<apeiros>
a class stands by itself. its name stands by itself.
<panzi>
a stdlib shall not have redundant parts
welias has quit [Read error: Connection reset by peer]
<MrZYX>
Date includes methods targeted at working with Dates, Time includes methods targeted at working with times. DateTime is the union. Compare Time#+ and DateTime#+
<apeiros>
it's not ClassFooWhichDiffersFromBar
<apeiros>
that's stupid
interactionjaxsn has quit [Ping timeout: 256 seconds]
<apeiros>
MrZYX: no, Time is date+time. that part I'd grant panzi is misleading.
rezzack has joined #ruby
<apeiros>
but that's not what he was arguing
<panzi>
MrZYX: except that Time also knows about the date (the year, month, day)
<MrZYX>
includes!=primary intent
<apeiros>
it is part of the primary intent.
<apeiros>
Time was there long before Date/DateTime
<apeiros>
Date/DateTime exist to "fix an issue" (insufficient range)
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<panzi>
anyway, I think Time should have been named Timestamp
<havenwood>
panzi: If you say, "what time should we meet?" something before 1970 or after 2038 would be pretty bizarre. What date and time should we meet lets you choose a date and time. What date is the day not the time. Even if time was limited to one week, it wouldn't be that bizarre of a constraint.
HecAtic has joined #ruby
clocKwize has joined #ruby
nobitanobi has joined #ruby
tommyvyo has joined #ruby
AndChat| has quit [Ping timeout: 256 seconds]
<havenwood>
TimeAfterNineteenSeventyButBeforeTwentyThirtyEight would be along class name. :O
brotatos has joined #ruby
<havenwood>
j/k j/k
bubblehead has quit [Ping timeout: 276 seconds]
<panzi>
you guys come up with that stupid class names, I didn't
welias has joined #ruby
<panzi>
I said Time was the wrong name and Timestamp would be better
<apeiros>
Timestamp is a stupid classname. it's not a stamp. it's a time.
alx- has joined #ruby
welias_ has joined #ruby
<apeiros>
anyway, off of this discussion. I rather watch wcs.
<panzi>
"timestamp" is the SQL type for exactly that
ARCADIVS has joined #ruby
machuga is now known as machuga|away
<havenwood>
ew
<MrZYX>
SQL is no OOP language
headius has quit [Quit: headius]
mityaz has joined #ruby
corehook has joined #ruby
<panzi>
but it has at least type names that don't lead to confusions (liek Time+DateTime do)
<panzi>
(I would rather use Python anyway, but it's not up to me)
haxrbyte has quit [Read error: Connection reset by peer]
graydot has joined #ruby
<apeiros>
and the sql type is indeed a timestamp
<apeiros>
while the ruby class Time *is not*
<havenwood>
panzi: I would rather not have month names and go by the yday. A very happy day 137 to you!
brotatos has quit [Client Quit]
superscott[8] has joined #ruby
carloslopes has quit [Remote host closed the connection]
wargasm has quit [Ping timeout: 256 seconds]
haxrbyte has joined #ruby
welias has quit [Ping timeout: 260 seconds]
panzi has left #ruby [#ruby]
MiracleBlue has joined #ruby
tjbiddle has joined #ruby
<aedorn>
havenwood: I prefer week numbers... that way we can be confusing and say day 4 of week 53. Thank you commercial date system!
gvz has joined #ruby
<havenwood>
aedorn: haha
rakl has joined #ruby
druonysus has joined #ruby
druonysus has quit [Changing host]
druonysus has joined #ruby
ngrr has quit [Quit: "SEMANTICS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"]
alvaro_o has joined #ruby
whowantstolivef1 has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
Banistergalaxy has joined #ruby
chrishough has quit [Quit: chrishough]
machuga|away is now known as machuga
alvaro_o has quit [Client Quit]
<RiftyMcF3arless>
i found the basic issue -- for some reason, when my script calls Watir's `close`, the session cookies aren't saved in the Mozilla sessionstore.js file -- weirdness, i'll have to come up with some kind of hacky workaround.
Collin_ has joined #ruby
stoic_squirrel has joined #ruby
haxrbyte has quit [Remote host closed the connection]
ilpuccio has joined #ruby
kirun has joined #ruby
Collin- has quit [Ping timeout: 248 seconds]
corehook has quit [Ping timeout: 256 seconds]
chrishough has joined #ruby
axeman_ has joined #ruby
<aedorn>
That's because Watir creates a new profiles when it opens. You need to dump cookies to a file, and then reload that file and add them back. (Guess I wasn't here for that initial issue)
<aedorn>
I swear my English is just getting worse...
elux has quit [Quit: Bye!]
<aedorn>
... or my attention is.
<apeiros>
your english is getting better - you now notice your mistakes ;-p
dgb has quit [Remote host closed the connection]
brotatos has joined #ruby
<aedorn>
apeiros: That would be comforting if English wasn't my first language.
axeman_ is now known as axeman-
<apeiros>
heh
Xeago has joined #ruby
tootubular has joined #ruby
troessner has quit [Quit: Leaving]
YanniHoza has joined #ruby
Zai00 has quit [Quit: Zai00]
theRoUS_ has quit [Changing host]
theRoUS_ has joined #ruby
theRoUS_ is now known as theRoUS
dmiller_ has joined #ruby
robbyoconnor has quit [Ping timeout: 256 seconds]
dmiller has quit [Ping timeout: 256 seconds]
superscott[8] has quit [Quit: superscott[8]]
bradhe has quit [Remote host closed the connection]
jokke has quit [Read error: Connection reset by peer]
Guest32025 has quit [Quit: ばいばい]
browndawg1 has quit [Quit: Leaving.]
johnnyfuchs1 has joined #ruby
jokke has joined #ruby
dmiller_ has quit [Remote host closed the connection]
Al_ has quit [Quit: Al_]
Kricir has quit [Remote host closed the connection]
wsterling has joined #ruby
peteyg has quit [Ping timeout: 246 seconds]
noop has quit [Remote host closed the connection]
johnnyfuchs has quit [Ping timeout: 256 seconds]
<tjbiddle>
Anyone deal with Powershell + Ruby? (Trust me - Not doing it because I want to :p) - Trying to get the bash equivalent of TRACE=true my_ruby_bin --some_args to work. Having trouble 1) Setting the variable 2) Reading it
mrsolo has joined #ruby
corehook has joined #ruby
lyanchih has quit [Quit: lyanchih]
nobitanobi has quit [Ping timeout: 256 seconds]
bradhe has joined #ruby
sam113101 has quit [Ping timeout: 264 seconds]
bigkevmcd has quit [Quit: Ex-Chat]
gyre008 has quit [Remote host closed the connection]
ramblex has quit [Remote host closed the connection]
codenapper has joined #ruby
haxrbyte has joined #ruby
axeman- has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
ixti has joined #ruby
sam113101 has joined #ruby
nikeita has quit [Quit: sleep]
axeman- has quit [Remote host closed the connection]
atno has quit [Read error: Operation timed out]
ebouchut has quit [Quit: This computer has gone to sleep]
schaerli has joined #ruby
trautwein has joined #ruby
evenix has joined #ruby
krombr has quit [Remote host closed the connection]
bradhe has joined #ruby
chriskk has joined #ruby
ebouchut has joined #ruby
kil0byte has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
codenapper has quit [Ping timeout: 260 seconds]
kil0byte has joined #ruby
ilpuccio has quit [Ping timeout: 246 seconds]
guiocavalcanti has quit [Remote host closed the connection]
guiocavalcanti has joined #ruby
katsrc has joined #ruby
backjlack has quit [Remote host closed the connection]
dmiller has quit [Remote host closed the connection]
trautwein has quit [Ping timeout: 264 seconds]
nikeita has joined #ruby
alx- has quit [Quit: alx-]
evenix has quit [Remote host closed the connection]
generalissimo has joined #ruby
evenix has joined #ruby
evenix has quit [Read error: Connection reset by peer]
twoism has joined #ruby
slainer68 has joined #ruby
Michael_ has joined #ruby
wargasm has joined #ruby
braincrash has quit [Read error: Operation timed out]
<havenwood>
b3hnam: Did you `bundle`?
Collin_ has quit [Ping timeout: 248 seconds]
guiocavalcanti has quit [Ping timeout: 264 seconds]
mityaz has quit [Quit: See ya!]
dgb has joined #ruby
teddyp1cker has joined #ruby
backjlack has joined #ruby
ebouchut has quit [Quit: This computer has gone to sleep]
cofin has joined #ruby
dhruvasagar has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
<havenwood>
b3hnam: (The mongo dependency is listed in the Gemfile and *should* be installed if you `bundle`.): http://gembundler.com/
dgb has quit [Ping timeout: 248 seconds]
atno has joined #ruby
jerius_ has joined #ruby
<b3hnam>
havenwood: `bundle` ?? I am not Ruby developer, how can I do it ?
_nitti_ has joined #ruby
<atmosx>
bundle install
<atmosx>
?
<havenwood>
b3hnam: Heh, the youtube-dl-daemon instructions say to run "bunlde install", which is soooo close...
<havenwood>
b3hnam: Run the `bundle` (or `bundle install`) command from the project directory.
cofin has quit [Ping timeout: 260 seconds]
<havenwood>
b3hnam: If you haven't installed bundler, first run: gem install bundler
icole has quit [Remote host closed the connection]
altamic_ has joined #ruby
altamic_ has joined #ruby
altamic_ has quit [Changing host]
altamic_ has quit [Client Quit]
altamic has quit [Ping timeout: 245 seconds]
jerius has quit [Ping timeout: 256 seconds]
jerius_ is now known as jerius
_nitti has quit [Ping timeout: 248 seconds]
jbpros has joined #ruby
<havenwood>
b3hnam: You have to have mongodb installed as well. Which should be as easy as `brew install mongodb` or whatever it is for your package manager.
headius has joined #ruby
<havenwood>
b3hnam: Caveat being... the project you linked to doesn't look very maintained.
monkegjinni has joined #ruby
<b3hnam>
havenwood: I installed mongodb from source (its an Arm CPU)
<havenwood>
b3hnam: Cool, that works too. :)
<b3hnam>
havenwood: now bundler 1.3.5 is installing
brotatos has quit [Ping timeout: 256 seconds]
khismetix has quit [Read error: Connection reset by peer]
atno has quit [Ping timeout: 248 seconds]
pinpin404 has quit [Ping timeout: 246 seconds]
khismetix has joined #ruby
jipiboily has joined #ruby
<jipiboily>
hey all
<havenwood>
hiya
<jipiboily>
quick one for you…it seems like there is no easy solution to safely replacing any non-ascii characters by their equivalent (if available)…like replacing the Words smart quotes by usual ascii quotes
travisjeffery has joined #ruby
kraljev3 has joined #ruby
<jipiboily>
iconv or String#encode can do some stuff, but not that AFAIK
Hanmac1 has joined #ruby
<jipiboily>
so, besides doing that "manually", any suggestions?
<kraljev3>
If I call:
sambao21 has quit [Quit: Computer has gone to sleep.]
<kraljev3>
method {}
<kraljev3>
why does {} default to block
<kraljev3>
not empty hash?
<kraljev3>
why would anyone want empty block?
Hanmac has quit [Ping timeout: 240 seconds]
monkegjinni has quit [Remote host closed the connection]
alex__c2022 has joined #ruby
sambao21 has joined #ruby
superscott[8] has quit [Quit: superscott[8]]
chriskk has quit [Quit: chriskk]
<waxjar>
counterquestion: why would anyone wants an empty hash? :P
mad_hatter_ has joined #ruby
cofin has joined #ruby
jlast has quit [Remote host closed the connection]
`damien has joined #ruby
prk has joined #ruby
braincrash has joined #ruby
Inoperable is now known as Inoperabled
Zeev has joined #ruby
chandankumar has quit [Ping timeout: 260 seconds]
Michael_ has quit [Remote host closed the connection]
guiocavalcanti has joined #ruby
saarinen has joined #ruby
pitzips has quit [Remote host closed the connection]
Michael_ has joined #ruby
ixti has quit [Quit: WeeChat 0.4.0]
schaerli has quit [Ping timeout: 260 seconds]
havenwood has quit [Remote host closed the connection]
cjs226 has joined #ruby
sam113101 has quit [Ping timeout: 248 seconds]
<apeiros>
kraljev3: because syntax should not arbitrarily change
johnnyfuchs has quit [Remote host closed the connection]
<apeiros>
if `method { foo }` is a block, so should `method {}` be.
atno has joined #ruby
johnnyfuchs has joined #ruby
Nenor has quit [Remote host closed the connection]
nobitanobi has joined #ruby
Nenor has joined #ruby
aedorn has quit [Quit: Leaving]
mercwithamouth has quit [Ping timeout: 260 seconds]
brotatos has joined #ruby
Kricir has joined #ruby
pcarrier_ has quit [Quit: Computer has gone to sleep.]
Nenor has quit [Ping timeout: 256 seconds]
chandankumar has joined #ruby
carloslopes has joined #ruby
haxrbyte has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
Nenor has joined #ruby
Zolo has joined #ruby
syamajala has joined #ruby
syamajala has quit [Client Quit]
Guedes has quit [Read error: Connection reset by peer]
syamajala has joined #ruby
nomenkun has quit [Remote host closed the connection]
emmanuelux has joined #ruby
monkegjinni has joined #ruby
elaptics is now known as elaptics`away
headius has quit [Quit: headius]
gvz has quit [Quit: Leaving]
Lubinski has quit [Quit: Leaving]
persand has quit [Quit: persand]
dmiller has joined #ruby
baba has joined #ruby
megha has quit [Ping timeout: 245 seconds]
dgb has joined #ruby
Spami_ has quit [Quit: This computer has gone to sleep]
teddyp1cker has left #ruby ["Konversation terminated!"]
persand has joined #ruby
persand has quit [Client Quit]
brianpWins has quit [Quit: brianpWins]
persand has joined #ruby
dmiller has quit [Remote host closed the connection]
jerius has quit []
suporte85 has quit [Quit: Saindo]
cofin has quit [Ping timeout: 260 seconds]
chrishough has quit [Quit: chrishough]
headius has joined #ruby
workmad3 has joined #ruby
Xeago has quit [Remote host closed the connection]
c0rn has joined #ruby
danslo has quit [Quit: danslo]
Xeago has joined #ruby
monkegjinni has quit [Remote host closed the connection]
<peteyg>
Any way to have Ruby emulate PHP Array in that you can key with string, not just int?
<rgrinberg>
peteyg: "Ruby emulate PHP" is always the wrong approach
Michael_ has quit [Read error: Connection reset by peer]
Michael_ has joined #ruby
`damien has left #ruby [#ruby]
jtharris has quit [Quit: WeeChat 0.4.0]
evenix has joined #ruby
echevemaster has joined #ruby
echevemaster has quit [Changing host]
echevemaster has joined #ruby
jkline has joined #ruby
vlad_starkov has quit [Ping timeout: 240 seconds]
icole has joined #ruby
jerius has joined #ruby
geekbri has quit [Remote host closed the connection]
_Amaan has quit [Quit: _Amaan]
spider-mario has joined #ruby
brotatos has quit [Ping timeout: 248 seconds]
julianhurley has quit [Read error: Connection reset by peer]
julianhurley has joined #ruby
yalue has quit [Quit: Leaving]
acrussell has quit [Quit: Leaving.]
kraljev3 has quit [Ping timeout: 245 seconds]
shevy has joined #ruby
Spami_ has joined #ruby
redhat has joined #ruby
monkegjinni has joined #ruby
wmoxam has quit [Ping timeout: 264 seconds]
rakl has quit [Quit: sleeping]
chessguy has joined #ruby
sambao21 has joined #ruby
<shevy>
test
chrishunt has quit [Quit: ZzZzZz...]
<MrZYX>
su: Authentication failed
Collin_ has joined #ruby
cantonic has joined #ruby
senayar has joined #ruby
codelurker has joined #ruby
s0ber has quit [Read error: Connection reset by peer]
suporte85 has joined #ruby
sam113101 has joined #ruby
s0ber has joined #ruby
vlad_starkov has joined #ruby
echevemaster has quit [Ping timeout: 264 seconds]
corehook has joined #ruby
<joshu>
hi guys
pinage404 has joined #ruby
<joshu>
I still haven't "got" how to use minitest when writing my ruby script. Is anyone around familiar with mintiest and can perhaps guide me in the right direction
suporte85 has quit [Read error: Connection reset by peer]
jtharris has joined #ruby
<matti>
joshu: Did you try to Google for examples?
<matti>
joshu: Its really simple.
<matti>
I mean, the minitest...
<matti>
;]
<joshu>
matti absolutely I've spent all of yesterday trying to figure it out
jonathanwallace has quit [Quit: WeeChat 0.4.0]
<matti>
joshu: What are the problems / show stoppers for you?
<joshu>
just having trouble starting with my specific example
chipotle_ has joined #ruby
chipotle_ has quit [Client Quit]
<joshu>
ok one sec let me gist what i'm trying to do
Squarepy has quit [Quit: Leaving]
jonathanwallace has joined #ruby
<matti>
joshu: :)
whowantstolivef1 has quit [Ping timeout: 264 seconds]
evenix has quit [Remote host closed the connection]
Ontolog has joined #ruby
Michael_ has quit [Remote host closed the connection]
jlast has joined #ruby
<joshu>
i'm writing a ruby script to handle 4 specific types of email coming in on STDIN.
<matti>
joshu: Right.
Collin__ has joined #ruby
<matti>
joshu: The trickiest part would be mocking STDIN input.
<joshu>
I have the 4 types of emails saved as separate files
<joshu>
to serve as examples
<matti>
OK, you can use them as fixtures.
<joshu>
*testing examples
<matti>
And then pass something that looks like IO object to Mail.new to use in tests.
<jkline>
Hi. I would like an abstract base class that implements a method foo. Two child classes that set a constant used by the method foo. I realize that abstract base class it not particularly a ruby thing. Can someone point me in the right direction please?
<joshu>
I should point out that I'm very new to ruby as well ;)
Collin_ has quit [Remote host closed the connection]
<waxjar>
jkline: mixins! :D
<jkline>
I have Module Base; def use_foo; # then later Class Child; include Base; FOO=1
Ontolog_ has quit [Ping timeout: 256 seconds]
<jkline>
how do I use the child class variable from within the mixin?
chrishough has joined #ruby
<apeiros>
self.class::FOO
<jkline>
ah!
<jkline>
i'll try it apeiros
brianpWins has joined #ruby
<jkline>
waxjar: mixin, mix off
travisjeffery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
terrellt has joined #ruby
brianpWins has joined #ruby
<terrellt>
Anyone know if there's a good public skeleton for a new ruby gem? I can wing it, but I figure there must be a best practice.
<joshu>
In my mind the first test should be to check that there's something on STDIN and the next test to check that the email has not been processed before. Maybe I don't need to write a test for the first thing but I don't understand how to write one for checking whether it has been processed, e.g. def test_that_email_has_not_been_processed
<matti>
joshu: I'd structure your class differently.
<matti>
joshu: Making it easier to test.
<kindjal>
How does this error make sense? /usr/lib/ruby/site_ruby/1.8/rubygems.rb:779:in `report_activate_error': Could not find RubyGem rubygems (>= 0) (Gem::LoadError)
<matti>
joshu: And more correct Ruby too ;]
<atmosx>
gem install rubygem
twoism has quit [Read error: Connection reset by peer]
twoism has joined #ruby
huoxito has quit [Quit: Leaving]
<joshu>
matti can you place show me how to do what you suggest?
<joshu>
*please
<matti>
joshu: What other language do you use?
wmoxam has joined #ruby
Michael_ has joined #ruby
<joshu>
matti programming?
<matti>
Yes
Astralum has quit [Read error: Connection reset by peer]
akells` has joined #ruby
<joshu>
matti none really I don't program for a living but working on it ;)
<shevy>
matti can you please get rid of your clothes for me?
<kindjal>
shevy: I'm on CentOS 6.4 using the rpm packaged rubygems
<shevy>
matti: it is? how cold? here it is ok... it's night now and it is raining, but it was very hot during the day, so this is like refreshing rain now
<matti>
joshu: So, classes usually have methods that implement what you want them to do.
<kindjal>
rubygems-1.3.7-1.el6.noarch
<matti>
shevy: Check weather in London.
<shevy>
kindjal: this is always a problem, distributions can mess up things heavily
carloslopes has quit [Remote host closed the connection]
<joshu>
matti I'm working on getting better at Ruby and was suggested to start testing my code so that's what I'm trying to do for the first time TDD rather than just write it and run it find bugs etc. I want to try and do it the Ruby way this time
<kindjal>
I wrote my own gem, and installed it… if I do rackup -I lib config.ru it works… but if I don't include -I lib it gives me that error.
<matti>
joshu: +1, good approach.
<matti>
joshu: But you need to get to know progreamming/Ruby better too ;]
jetblack has quit [Read error: Operation timed out]
<kindjal>
but my gem is in the gem path /usr/lib/ruby/gems/1.8 as reported by gem env
<shevy>
odd
<matti>
programming*
<shevy>
for me this always work with my own gems kindjal
wmoxam has quit [Client Quit]
<shevy>
I dont use rack though, I hate .ru file ending
guiocavalcanti has quit [Ping timeout: 256 seconds]
<joshu>
matti sure but I'm working on it
<MrZYX>
it's not like rack relies on the filename ending in .ru …
<joshu>
matti so are you saying that my if statement to check the header should be within a method definition?
tonini has joined #ruby
smtlaissezfaire has quit [Quit: smtlaissezfaire]
<shevy>
MrZYX you mean when I use .rb for rack, it will work?
<matti>
joshu: :)
<MrZYX>
I'm pretty sure, yeah
<MrZYX>
maybe not with passenger
<MrZYX>
and everything else that assumes the default
Ortuna has joined #ruby
brianherman has joined #ruby
lkba has quit [Ping timeout: 252 seconds]
mocfive has joined #ruby
<kindjal>
Am I supposed to know to modify $LOAD_PATH somehow?
<MrZYX>
I've currently just nothing that works with rackup to double check though...
persand has quit [Quit: persand]
pevjan has joined #ruby
Guedes0 has joined #ruby
<shevy>
hmm it does not seem to work at all
<atmosx>
MrZYX shevy rack is the interface that thin, unicorn, foreman, etc use right?
rsahae has joined #ruby
<shevy>
rackup gives me an error:
smtlaissezfaire has joined #ruby
bradhe has quit [Remote host closed the connection]
<shevy>
basic_rack.rb:6: undefined method `use' for main:Object (NoMethodError)
<shevy>
let me upload that example to gist
<MrZYX>
atmosx: yup
<apeiros>
Xeago: rooting for thorzain? :)
<MrZYX>
atmosx: well not foreman, foreman is just a process manager
<waxjar>
im pretty sure you can give rackup any filename you like
<atmosx>
I use thin and the config.ru is very simple for a sinatra app... foreman uses Procfile to do the same (iirc from heroku)
wolcanus has quit [Remote host closed the connection]
kil0byte has quit [Remote host closed the connection]
<shevy_>
it seems as if rackup does something magical when it encounters file ending .ru ?
nomenkun has joined #ruby
<shevy_>
when I change file ending to .ru again, it works without error
workmad3 has joined #ruby
<kindjal>
So my program is called 'gpfsquotad', and this works: rackup -I /usr/lib/ruby/gems/1.8/gems/gpfsquotad-0.0.1/lib/ /usr/lib/ruby/gems/1.8/gems/gpfsquotad-0.0.1/config.ru Why does it not work without -I?
<apeiros>
shevy_: yes, .ru are embedded in a builder
<MrZYX>
hm interesting
<kindjal>
gem env reports /usr/lib/ruby/gems/1.8 in GEM PATHS
<shevy_>
kindjal: I suppose there is some magic loading going on behind the scenes :)
<shevy_>
.ru always reminds me of russia
<kindjal>
I'm newish to ruby, and I'm constantly frustrated by "magic"
m8 has joined #ruby
<shevy_>
kindjal: yeah, but there is a simple solution that works, avoid magic. if software uses magic, avoid that software
stardust has joined #ruby
<apeiros>
hu?
<apeiros>
ruby itself is pretty unmagic
<apeiros>
frameworks like rails and rspec are
<kindjal>
I'm not doing anything fancy. I just want to know how to make a gem load.
kpshek has quit []
<apeiros>
require 'file-in-gem'
shevy has quit [Ping timeout: 248 seconds]
<shevy_>
kindjal: no that is not true, you said so yourself, you said your own gems work but just not when using rackup
wolcanus has joined #ruby
shevy_ is now known as shevy
nomenkun has quit [Read error: Operation timed out]
<shevy>
kindjal: a typical ruby project is installed into ruby's sitedir path by default
motto has quit [Ping timeout: 246 seconds]
<shevy>
for a gem, you usually write a .gemspec file, then you can build a .gem file from that
<kindjal>
yes, I did that
<kindjal>
and it installs it in /usr/lib/ruby/gems/1.8/gems/
<kindjal>
where there are other gems
<shevy>
but you can use projects without gems too
<shevy>
yes, so now you know your gems work fine! it's only that you have a problem with rackup here
Michael_ has quit [Remote host closed the connection]
<terrellt>
waxjar: CGI::escape turned out to be more appropriate. Thank you.
vlad_starkov has joined #ruby
sweet_kid has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
workmad3 has quit [Ping timeout: 252 seconds]
<shevy>
so any of you working on something cool, related to ruby, lately?
Hobogrammer has joined #ruby
dgb has quit [Remote host closed the connection]
<terrellt>
shevy: Not really. Mostly rails projects, a script to synchronize some databases, and a google scholar gem.
stardust has quit [Ping timeout: 264 seconds]
pipework has quit [Remote host closed the connection]
v0n has joined #ruby
jkline has quit [Quit: jkline]
kofno has quit [Remote host closed the connection]
_nitti_ has quit [Remote host closed the connection]
twoism has quit [Read error: Connection reset by peer]
Bry8Star has quit [Ping timeout: 240 seconds]
tonini has quit [Remote host closed the connection]
akells` has joined #ruby
sambao21 has joined #ruby
twoism has joined #ruby
cjs226 has quit [Quit: cjs226]
rhys has joined #ruby
<shevy>
:(
_nitti has joined #ruby
<waxjar>
ive been playing with this Fish shell all day, it's neat
akells` has quit [Remote host closed the connection]
Hobogrammer_ has quit [Ping timeout: 252 seconds]
<mjb2k>
How are gems expected to be deployed without native build tools being installed on the target system? example is tiny_tds gem which needs to compile against freetds headers
<waxjar>
i like the syntax much more, i used to spent hours on the simplest of bash scripts :P
djwonk has quit [Quit: djwonk]
<shevy>
I dunno, I think linux kinda sucks, but it's also the best OS out there, sort of... I have not used a mac though
jkline has joined #ruby
tylersmith has quit [Remote host closed the connection]
failshell has quit [Remote host closed the connection]
workmad3 has joined #ruby
<sam113101>
what about windows
arya has joined #ruby
brunoro has quit [Quit: WeeChat 0.3.8]
codepython777 has joined #ruby
zeeraw has joined #ruby
nettoweb has quit [Quit: nettoweb]
banjara has joined #ruby
<shevy>
hmmmm
<shevy>
I dunno, I feel microsoft is years past their prime now
jtharris has quit [Quit: WeeChat 0.4.0]
gaahrdner has quit [Remote host closed the connection]
generalissimo has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 256 seconds]
nettoweb has joined #ruby
saarinen has quit [Quit: saarinen]
saarinen has joined #ruby
spider-mario has quit [Remote host closed the connection]
mmitchell has quit [Remote host closed the connection]
arya has quit [Ping timeout: 256 seconds]
Akuma has joined #ruby
invisime has quit [Quit: Leaving.]
monkegjinni has joined #ruby
Mchl has joined #ruby
motto has joined #ruby
breakingthings has quit [Quit: breakingthings]
pipework has joined #ruby
arya has joined #ruby
kil0byte has joined #ruby
khismetix has joined #ruby
m8 has quit [Ping timeout: 260 seconds]
monkegjinni has quit [Ping timeout: 256 seconds]
welias has quit [Remote host closed the connection]
blacktulip has joined #ruby
ToApolytoXaos has quit [Quit: Leaving]
Cork has quit [Ping timeout: 245 seconds]
alecs has joined #ruby
<alecs>
Hello!
sambao21 has quit [Quit: Computer has gone to sleep.]
<raz>
sigh..
ariedler has quit [Remote host closed the connection]
cofin has quit [Quit: cofin]
<raz>
is there a non-ridiculous http library for ruby?
<alecs>
Can anyone help me with a script that allows me to download binary data ?
<zeeraw>
Well it depends what you want to do.
<apeiros>
SeriousHTTP
<raz>
oh.. just a performant curl binding that doesn't segfault
blacktulip has quit [Remote host closed the connection]
<raz>
that can do keep-alive
<alecs>
I am trying to make a ruby class that allows me to download zipfiles on my server ... but ... for some reason those archives are reaching damaged on my server
apalmblad has quit [Quit: apalmblad]
blacktulip has joined #ruby
bluOxigen has quit [Ping timeout: 252 seconds]
sambao21 has joined #ruby
<zeeraw>
For integration against API's I'd suggest you use Faraday
mboers has joined #ruby
<pipework>
^ I tend to use that when I can use gems.
<zeeraw>
yeah, it's cool
<zeeraw>
it supports middlewares as well making it kind of a reverse rack.
vlad_starkov has quit [Ping timeout: 256 seconds]
Vendethiel has quit [Quit: q+]
johnfriel has joined #ruby
<zeeraw>
Quite wide support as well
<zeeraw>
1.8.7 - 2.0.0
<zeeraw>
And jRuby and Rubinius i thik...
blacktulip has quit [Ping timeout: 245 seconds]
<zeeraw>
gotta get off the train, ttyl
zeeraw has quit [Quit: Computer has gone to sleep.]
jslowe has quit [Read error: Connection reset by peer]
<johnfriel>
Does anybody know why Digest::SHA256#hexdigest in ruby 1.8.6 on Ubuntu might crash mysteriously?
<MrZYX>
johnfriel: I think nobody cares. There aren't even security patches anymore for 1.8.6. And they'll stop for 1.8.7 very soon too
<johnfriel>
MrZYX: haha, fair enough
Nenor has quit [Remote host closed the connection]
<johnfriel>
it's for a client with an ancient app they don't want to update
<MrZYX>
get Backtrack and own their customers data
<MrZYX>
suddenly they want to
pevjan has joined #ruby
saarinen has quit [Quit: saarinen]
<johnfriel>
haha
djwonk has joined #ruby
cj3kim has quit [Remote host closed the connection]
rakl has joined #ruby
Kar- has quit [Remote host closed the connection]
brotatos has joined #ruby
Es0teric has joined #ruby
bradhe has quit [Remote host closed the connection]
Cork has joined #ruby
Cork has quit [Excess Flood]
Cork has joined #ruby
Cork has quit [Excess Flood]
kindjal has quit [Ping timeout: 252 seconds]
akells` has quit [Remote host closed the connection]
Cork has joined #ruby
Cork has quit [Excess Flood]
cj3kim has joined #ruby
theRoUS has quit [Ping timeout: 276 seconds]
Guest83128 has joined #ruby
Guest83128 has quit [Excess Flood]
unCork has joined #ruby
pskosinski has quit [Ping timeout: 264 seconds]
jbueza has quit [Quit: Leaving.]
Guedes0 has joined #ruby
Mattix has quit [Ping timeout: 256 seconds]
_veer has quit [Ping timeout: 256 seconds]
eykosioux has quit [Remote host closed the connection]
arya has quit [Ping timeout: 264 seconds]
prk has quit [Read error: Operation timed out]
jbueza has joined #ruby
jbueza has quit [Max SendQ exceeded]
arya has joined #ruby
jbueza has joined #ruby
jbueza has quit [Max SendQ exceeded]
jbueza has joined #ruby
jbueza has quit [Max SendQ exceeded]
jbueza has joined #ruby
jnoob22 has quit [Remote host closed the connection]
arubin has joined #ruby
vlad_starkov has joined #ruby
dhruvasagar has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
d2dchat has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
<RiftyMcF3arless>
okay, i had to modify a gem for my project, but it's kind of odd. i have gem A and gem B. gem A is used by my project, and requires gem B. so i don't ever have to explicitly require gem B in my actual project code. if i were to require my custom version of gem B in my Gemfile before i require gem A, will gem A use my version or the unmodified system version?
johnnyfuchs has quit [Remote host closed the connection]
monkegjinni has joined #ruby
<RiftyMcF3arless>
or do i need to modify gem A as well and force it to require my modified version of gem B?
zeeraw has joined #ruby
Dummies_freelanc has quit [Ping timeout: 256 seconds]
<MrZYX>
bundler should ensure only ever one version is loaded
breakingthings has joined #ruby
chessguy has quit [Remote host closed the connection]
rsahae has quit [Ping timeout: 246 seconds]
arya has quit [Ping timeout: 264 seconds]
maskact has joined #ruby
Michael_ has quit [Remote host closed the connection]
cantonic has quit [Quit: cantonic]
ericmathison has joined #ruby
saarinen has joined #ruby
chessguy has joined #ruby
blandflakes has quit [Quit: Leaving]
<Gate>
RiftyMcF3arless: It shouldn't even have to be before the other in the gemfile. Bundler looks at all your gems and resolves dependencies in the context of each other
sambao21 has quit [Quit: Computer has gone to sleep.]
awarner has quit [Remote host closed the connection]