apeiros changed the topic of #ruby to: Ruby 2.0.0-p195: http://ruby-lang.org (Ruby 1.9.3-p429) || Paste >3 lines of text on http://gist.github.com
al3xnull has quit [Remote host closed the connection]
Cache_Money has joined #ruby
phayte has quit [Quit: phayte]
mixel has quit [Quit: mixel]
ariedler has quit [Remote host closed the connection]
DonRichie has quit [Read error: Operation timed out]
idkazuma has joined #ruby
DonRichie has joined #ruby
zastaph has quit []
cj3kim has joined #ruby
tommyvyo has quit [Quit:]
kenneth has joined #ruby
casheew has quit [Read error: Connection reset by peer]
<kenneth> hey all
<kenneth> what do you guys think of - http://egonschiele.github.io/contracts.ruby/
casheew has joined #ruby
DanKnox is now known as DanKnox_away
Ontolog has joined #ruby
F1skr has quit [Quit: WeeChat 0.4.0]
<waxjar> it's cool as an experiment, but not very useful since Ruby is dynamic by nature
DanKnox_away is now known as DanKnox
cj3kim has quit [Ping timeout: 256 seconds]
phipes has quit [Quit: phipes]
showtime has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lethjakman has quit [Ping timeout: 276 seconds]
ggordan has quit [Remote host closed the connection]
dustint has joined #ruby
<kenneth> right, but that said most functions in practice would break in more or less bad ways when not following the implied type contract (usually only specified in documentation)
<waxjar> all you should care about is that it responds to some method (if you intend to call a method on it), it gives you a lot of flexibility
Xeago has quit [Remote host closed the connection]
<MrZYX> for example passing a StringIO instead of a File while testing
phipes has joined #ruby
eykosioux has joined #ruby
falood has joined #ruby
freakazoid0223 has joined #ruby
w|t has joined #ruby
akells` has quit [Remote host closed the connection]
chipotle_ has joined #ruby
huoxito has joined #ruby
eykosioux has quit [Ping timeout: 256 seconds]
DanKnox is now known as DanKnox_away
poga has joined #ruby
chipotle_ has quit [Quit: cya]
slocate has quit [Quit: EPIC5-1.1.5[1683] - amnesiac : The fatter they are, the fatter they fall]
roadt has joined #ruby
mercwithamouth has joined #ruby
dustint has quit [Quit: Leaving]
krainboltgreene has quit [Ping timeout: 240 seconds]
krainboltgreene has joined #ruby
Cache_Money has quit [Ping timeout: 256 seconds]
lewix has quit [Remote host closed the connection]
mduvall has joined #ruby
bitZero__ has quit [Ping timeout: 240 seconds]
bitZero_1 has joined #ruby
vlad_starkov has joined #ruby
undersc0re97 has quit [Quit: WeeChat 0.4.0]
w|t has quit [Quit: Textual IRC Client: www.textualapp.com]
yshh has quit [Remote host closed the connection]
undersc0re97 has joined #ruby
hogeo has joined #ruby
cj3kim has joined #ruby
marr has quit [Ping timeout: 246 seconds]
vlad_starkov has quit [Ping timeout: 256 seconds]
idkazuma has quit [Remote host closed the connection]
hogeo has quit [Ping timeout: 260 seconds]
w|t has joined #ruby
stewart_ has joined #ruby
ravster has joined #ruby
<stewart_> what is the best way to set up a logger that writes to both the console and a file at the same time?
<stewart_> ...so in other words STDOUT and a file at the same time
<MrZYX> hm, delegator that delgates to both two loggers at the same time?
<MrZYX> -two
whitemage has joined #ruby
Vivekananda has joined #ruby
mercwithamouth has quit [Read error: Operation timed out]
nfk has quit [Quit: yawn]
Davey has joined #ruby
<stewart_> so a generic class that responds to all logger methods and passes though params to each logger one by one?
tommyvyo has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
chipotle_ has joined #ruby
<MrZYX> yup
hogeo has joined #ruby
Cache_Money has joined #ruby
Ontolog has quit [Ping timeout: 248 seconds]
<MrZYX> maybe let it also inherit from Logger so it passes all eventual .is_a? Logger checks
kofno has joined #ruby
hogeo has quit [Remote host closed the connection]
hogeo has joined #ruby
cj3kim has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
mduvall has quit [Quit: mduvall]
johnkary has quit [Quit: @johnkary]
falood has quit [Remote host closed the connection]
nkts has quit [Read error: Connection reset by peer]
nkts has joined #ruby
jmeeuwen has quit [Ping timeout: 276 seconds]
atno__ has quit [Ping timeout: 264 seconds]
decentrality has quit [Quit: decentrality]
showtime has joined #ruby
cheese1756 has quit [Excess Flood]
iamjarvo1 has joined #ruby
arya has joined #ruby
rakl has joined #ruby
<stewart_> MrZYX: HAHA "HydraLogger" I love it. I also like the loop and define. I was thinking to implement each method explicitly but your solution is more elegant than that. Thanks for this one. Will put it in to the code base :)
cheese1756 has joined #ruby
tjbiddle has joined #ruby
banghouse has quit [Remote host closed the connection]
Guedes has quit [Ping timeout: 256 seconds]
mercwithamouth has joined #ruby
DonRichie has quit [Ping timeout: 256 seconds]
Ontolog has joined #ruby
DonRichie has joined #ruby
Bry8Star has quit [Write error: Connection reset by peer]
atmosx has quit [Write error: Broken pipe]
nari has quit [Ping timeout: 240 seconds]
Johbe has quit [Ping timeout: 246 seconds]
noname001 has quit [Remote host closed the connection]
tommyvyo has quit [Quit:]
Johbe has joined #ruby
atmosx has joined #ruby
kofno has quit [Remote host closed the connection]
fermion has joined #ruby
iamjarvo1 has quit [Quit: Leaving.]
mfridh has quit [Read error: Connection reset by peer]
lyanchih has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
DrHeiter23 has quit [Quit: DrHeiter23]
jmeeuwen has joined #ruby
mogsy has joined #ruby
kofno has joined #ruby
eliasp has quit [Ping timeout: 245 seconds]
atno__ has joined #ruby
jamie_ca_ has joined #ruby
fermion has quit [Quit: Computer has gone to sleep.]
falood has joined #ruby
jbueza has quit [Quit: Leaving.]
Banistergalaxy has quit [Ping timeout: 248 seconds]
havenwood has quit [Remote host closed the connection]
Banistergalaxy has joined #ruby
yshh has joined #ruby
reisl has joined #ruby
eykosioux has joined #ruby
sepp2k1 has quit [Read error: Connection reset by peer]
phipes has quit [Quit: phipes]
eka has quit [Quit: Computer has gone to sleep.]
Bry8Star has joined #ruby
eliasp has joined #ruby
hamakn has quit [Remote host closed the connection]
krainboltgreene has quit [Ping timeout: 252 seconds]
jamie_ca_ has quit [Quit: Computer has gone to sleep.]
roadt has quit [Ping timeout: 248 seconds]
nettoweb has joined #ruby
showtime has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
roadt has joined #ruby
mduvall has joined #ruby
jamesfung14 has joined #ruby
jamesfung14 has quit [Client Quit]
vlad_starkov has joined #ruby
nari has joined #ruby
eykosioux has quit [Ping timeout: 256 seconds]
maetthew has joined #ruby
ravster has left #ruby [#ruby]
cj3kim has joined #ruby
alexgordon has quit [Quit: Computer has gone to sleep.]
dhruvasagar has quit [Ping timeout: 248 seconds]
Darlal has quit [Quit: Textual IRC Client]
vlad_starkov has quit [Ping timeout: 252 seconds]
roadt has quit [Ping timeout: 256 seconds]
voodoofish has quit [Ping timeout: 264 seconds]
roadt has joined #ruby
Hanmac has quit [Ping timeout: 256 seconds]
JZTech101 has quit [Ping timeout: 248 seconds]
rae__ has quit [Quit: rae__]
Domon has joined #ruby
reisl has quit [Quit: Leaving]
dhruvasagar has joined #ruby
maetthew has quit [Quit: Textual IRC Client: www.textualapp.com]
krainboltgreene has joined #ruby
Hanmac has joined #ruby
w|t has quit [Quit: Computer has gone to sleep.]
Michael_ has quit [Remote host closed the connection]
roadt has quit [Ping timeout: 256 seconds]
niklasb has quit [Ping timeout: 256 seconds]
lusory has quit [Read error: Connection reset by peer]
roadt has joined #ruby
hamakn has joined #ruby
tundrax has joined #ruby
chipotle_ has quit [Quit: cya]
havenwood has joined #ruby
[[thufir]] has quit [Quit: Leaving.]
DrCode has quit [Ping timeout: 240 seconds]
mercwithamouth has quit [Ping timeout: 248 seconds]
iamjarvo has joined #ruby
DrCode has joined #ruby
tylersmith has quit [Remote host closed the connection]
baba has quit [Quit: WeeChat 0.4.0]
voodoofish has joined #ruby
chipotle_ has joined #ruby
pevjan has left #ruby ["Leaving..."]
w|t has joined #ruby
krz has joined #ruby
Cache_Money has quit [Quit: Leaving]
w|t has quit [Client Quit]
d11wtq has joined #ruby
Ontolog has quit [Ping timeout: 248 seconds]
baroquebobcat has quit [Ping timeout: 264 seconds]
kofno has quit [Remote host closed the connection]
arya has quit [Ping timeout: 248 seconds]
lyanchih has quit [Quit: lyanchih]
Ontolog has joined #ruby
jcromartie has joined #ruby
`p has quit [Ping timeout: 256 seconds]
alexgordon has joined #ruby
bigkm has quit [Quit: Computer has gone to sleep.]
whitemage has quit [Read error: Connection reset by peer]
whitemage has joined #ruby
chipotle_ has quit [Quit: cya]
Bosox20051 has joined #ruby
alexgordon has quit [Quit: Computer has gone to sleep.]
momomomomo has quit [Quit: momomomomo]
robustus has quit [Ping timeout: 248 seconds]
Asher has quit [Ping timeout: 252 seconds]
GeissT has joined #ruby
robustus has joined #ruby
jmsbrwr has quit [Ping timeout: 245 seconds]
Asher has joined #ruby
lusory has joined #ruby
tommyvyo has joined #ruby
jmsbrwr has joined #ruby
jcromartie has quit [Quit: Computer has gone to sleep.]
kofno has joined #ruby
`p has joined #ruby
hogeo_ has joined #ruby
Asher has quit [Ping timeout: 256 seconds]
tshauck has joined #ruby
casheew has quit [Read error: Connection reset by peer]
brianherman has quit [Ping timeout: 256 seconds]
casheew has joined #ruby
proustian has joined #ruby
<tshauck> Hi, what is the best way to require api tokens in a sinatra app I'd like to put on github... I don't want the tokens in the repo
<iamjarvo> tshauck you can read them from environment variables
hogeo has quit [Ping timeout: 276 seconds]
<tshauck> iamjarvo: ok, so then whenever I deploy I'd just need to set those variables on the machine it'll be run on?
showtime has joined #ruby
<Quadlex> tshauck: Yup
eykosioux has joined #ruby
proustian has left #ruby [#ruby]
Asher has joined #ruby
proustian has joined #ruby
vlad_starkov has joined #ruby
Hanmac1 has joined #ruby
eykosioux has quit [Ping timeout: 256 seconds]
Hanmac has quit [Ping timeout: 256 seconds]
forced_request has quit [Read error: Connection reset by peer]
phipes has joined #ruby
showtime has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vlad_starkov has quit [Ping timeout: 256 seconds]
dhruvasagar has quit [Ping timeout: 264 seconds]
d11wtq has quit [Ping timeout: 260 seconds]
Anthony has joined #ruby
<iamjarvo> yep
<iamjarvo> tshauck: have you used heroku?
Ontolog has quit [Ping timeout: 245 seconds]
Anthony has quit [Read error: Connection reset by peer]
Michael_ has joined #ruby
skasio has joined #ruby
vi-config_ has joined #ruby
vi-config_ has quit [Client Quit]
Michael_ has quit [Remote host closed the connection]
radic_ has joined #ruby
mduvall has quit [Quit: mduvall]
bigkm has joined #ruby
falood has quit [Remote host closed the connection]
tylersmith has joined #ruby
skasio has quit [Client Quit]
Banistergalaxy has quit [Ping timeout: 256 seconds]
skasio has joined #ruby
radic has quit [Ping timeout: 264 seconds]
Michael_ has joined #ruby
Banistergalaxy has joined #ruby
Michael_ has quit [Remote host closed the connection]
d11wtq has joined #ruby
splittingred has joined #ruby
Michael_ has joined #ruby
proustian has quit [Ping timeout: 252 seconds]
Banistergalaxy has quit [Ping timeout: 256 seconds]
megha has joined #ruby
kofno has quit [Remote host closed the connection]
bigmac has quit [Remote host closed the connection]
skasio has quit [Remote host closed the connection]
Heero has joined #ruby
Michael_ has quit [Remote host closed the connection]
skasio has joined #ruby
dmiller has quit [Remote host closed the connection]
Banistergalaxy has joined #ruby
Michael_ has joined #ruby
Heero has quit [Client Quit]
arya has joined #ruby
skasio has quit [Quit: Leaving]
skasio has joined #ruby
phipes has quit [Quit: phipes]
tylersmith has quit [Remote host closed the connection]
d2dchat has joined #ruby
arya has quit [Ping timeout: 248 seconds]
guiocavalcanti has joined #ruby
Banistergalaxy has quit [Ping timeout: 252 seconds]
clocKwize has quit [Quit: clocKwize]
clocKwize has joined #ruby
awojo has quit [Ping timeout: 276 seconds]
infecto has quit [Quit: Leaving.]
Michael_ is now known as breadthfirst
Vivekananda has quit [Quit: Ex-Chat]
poga has quit [Remote host closed the connection]
brunoro has quit [Ping timeout: 276 seconds]
catphish has quit [Quit: Leaving]
breadthfirst has quit [Remote host closed the connection]
browndawg has joined #ruby
cooldman224 has joined #ruby
whitemage has quit [Quit: Leaving...]
Ontolog has joined #ruby
falood has joined #ruby
krisfremen has quit [Quit: hmm]
havenwood has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
dik_dak has joined #ruby
Bosox20051 has quit [Quit: Leaving]
d2dchat has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 248 seconds]
splittingred has quit [Quit: splittingred]
megha has quit [Quit: WeeChat 0.4.0]
huoxito has quit [Quit: Leaving]
dhruvasagar has joined #ruby
phipes has joined #ruby
rburton- has joined #ruby
agjacome has quit [Quit: leaving]
mikepack has joined #ruby
tommyvyo has quit [Quit:]
iamjarvo has quit [Quit: Leaving.]
ntus1017 has joined #ruby
havenwood has joined #ruby
krisfremen has joined #ruby
nettoweb has quit [Quit: nettoweb]
subbyyy has joined #ruby
tundrax_ has joined #ruby
w|t has joined #ruby
freeayu has quit [Read error: Connection reset by peer]
megha has joined #ruby
freeayu has joined #ruby
ivanoats has joined #ruby
Nisstyre has quit [Quit: Leaving]
tundrax has quit [Ping timeout: 256 seconds]
krisfremen has quit [Client Quit]
rburton- has quit [Quit: Leaving...]
lyanchih has joined #ruby
kofno has joined #ruby
hogeo_ has quit [Remote host closed the connection]
krisfremen has joined #ruby
krisfremen has quit [Changing host]
krisfremen has joined #ruby
whitemage has joined #ruby
cooldman224 has quit [Read error: Connection reset by peer]
shmoon has left #ruby [#ruby]
pcarrier_ has quit [Ping timeout: 248 seconds]
MistuhKurtz has joined #ruby
lyanchih has quit [Quit: lyanchih]
freeayu has quit [Read error: Connection reset by peer]
kofno has quit [Ping timeout: 256 seconds]
ColKurtz has quit [Read error: Connection reset by peer]
sleetdrop has joined #ruby
rippa has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
val___ has joined #ruby
mduvall has joined #ruby
<val___> rvm vs rbenv?
baba has joined #ruby
megha has quit [Ping timeout: 245 seconds]
<stewart_> I like cream cheese some people like tasty cheese but you might find one works better than the other depending on what your cooking
sayan has joined #ruby
tylersmith has joined #ruby
Nisstyre-laptop has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
iamjarvo has joined #ruby
w|t has quit [Quit: Textual IRC Client: www.textualapp.com]
tylersmith has quit [Ping timeout: 276 seconds]
pcarrier_ has joined #ruby
robottinosino has joined #ruby
chrisramon has joined #ruby
phipes has quit [Quit: phipes]
freakazoid0223 has quit [Ping timeout: 256 seconds]
iamjarvo has quit [Ping timeout: 260 seconds]
ntus1017 has quit [Remote host closed the connection]
chrishunt has quit [Read error: Connection reset by peer]
sleetdrop has quit [Quit: Computer has gone to sleep.]
mockra has joined #ruby
freeayu has joined #ruby
justsee has joined #ruby
justsee has joined #ruby
rakl has quit [Quit: sleeping]
<havenwood> val___: chruby
thesheff17 has quit [Ping timeout: 256 seconds]
Mir2013 has joined #ruby
vlad_starkov has joined #ruby
<Mir2013> hello
Nisstyre-laptop has quit [Quit: Leaving]
falood has quit [Remote host closed the connection]
<havenwood> Mir2013: hi
Mir2013 has quit [Remote host closed the connection]
chrishough has joined #ruby
chrishunt has joined #ruby
val___ has quit [Ping timeout: 256 seconds]
ananthakumaran has joined #ruby
lafyn has joined #ruby
breadthfirst has joined #ruby
tyl has joined #ruby
cofin has quit [Quit: cofin]
phipes has joined #ruby
jdunck has quit [Quit: Computer has gone to sleep.]
vlad_starkov has quit [Ping timeout: 276 seconds]
breadthfirst has quit [Ping timeout: 256 seconds]
val___ has joined #ruby
val___ has quit [Client Quit]
ntus1017 has joined #ruby
shammancer has joined #ruby
Domon has quit [Remote host closed the connection]
unstable has left #ruby [#ruby]
thesheff17 has joined #ruby
mboers has quit [Ping timeout: 246 seconds]
justsee has quit [Ping timeout: 276 seconds]
mboers has joined #ruby
whitemage has quit [Quit: Leaving...]
shammancer has quit [Quit: Leaving.]
GeissT has quit [Quit: AdiIRC is updating to v1.9.1 Beta Build (200513) 32 Bit]
[[thufir]] has joined #ruby
GeissT has joined #ruby
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
browndawg has quit [Quit: Leaving.]
mikepack has quit [Remote host closed the connection]
bradhe has joined #ruby
luckyruby has joined #ruby
mockra has quit [Remote host closed the connection]
tbrock has quit [Quit: Computer has gone to sleep.]
slainer68 has joined #ruby
zeeraw has joined #ruby
havenwood has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
cha1tanya has joined #ruby
cha1tanya has joined #ruby
johnrlive has joined #ruby
codecop has joined #ruby
vlad_starkov has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
mstksg has joined #ruby
<mstksg> does anayone know any good ruby podcasts
chandankumar has joined #ruby
<mstksg> or blogs
vlad_starkov has joined #ruby
macmartine has joined #ruby
hogeo has joined #ruby
mboers has quit [Ping timeout: 256 seconds]
vlad_starkov has quit [Remote host closed the connection]
d11wtq has quit [Ping timeout: 276 seconds]
rae__ has joined #ruby
ARCADIVS has joined #ruby
mockra has joined #ruby
clocKwize has quit [Quit: clocKwize]
nkts has quit [Read error: Connection reset by peer]
nkts has joined #ruby
pcarrier_ has quit [Ping timeout: 245 seconds]
chrishough has quit [Quit: chrishough]
johnrlive has quit [Remote host closed the connection]
ananthakumaran has quit [Quit: Leaving.]
Cultofme_ has quit [Remote host closed the connection]
chrisramon has quit [Quit: chrisramon]
ivanoats has quit [Remote host closed the connection]
tomzx_mac has quit [Ping timeout: 256 seconds]
dhruvasagar has quit [Ping timeout: 260 seconds]
bricker`LA has quit [Read error: Connection reset by peer]
bricker`LA has joined #ruby
hogeo has quit [Read error: Connection reset by peer]
phipes has quit [Quit: phipes]
hogeo has joined #ruby
robottinosino has quit [Quit: WeeChat 0.4.0]
shammancer has joined #ruby
maverick9 has joined #ruby
dik_dak has left #ruby [#ruby]
kil0byte has quit [Remote host closed the connection]
saarinen has joined #ruby
mockra has quit [Remote host closed the connection]
girija has joined #ruby
devoldmx has joined #ruby
<arubin> mstksg: Ruby Rogues
ttt has joined #ruby
agarie has quit [Remote host closed the connection]
segv has left #ruby ["Leaving"]
girija has quit [Ping timeout: 256 seconds]
browndawg has joined #ruby
umren has joined #ruby
lyanchih has joined #ruby
zeeraw has quit [Quit: Computer has gone to sleep.]
bradhe has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
danslo has joined #ruby
devoldmx3 has joined #ruby
d11wtq has joined #ruby
tundrax has joined #ruby
rads has joined #ruby
ananthakumaran has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
browndawg has quit [Quit: Leaving.]
tagrudev has joined #ruby
sayan has quit [Read error: Connection reset by peer]
jbpros has joined #ruby
jbpros has quit [Client Quit]
Nisstyre has joined #ruby
tundrax_ has quit [Ping timeout: 256 seconds]
devoldmx has joined #ruby
mduvall has quit [Quit: mduvall]
danslo has quit [Ping timeout: 246 seconds]
rburton- has joined #ruby
lewix has joined #ruby
a_a_g has joined #ruby
vlad_starkov has quit [Ping timeout: 248 seconds]
devoldmx3 has quit [Ping timeout: 248 seconds]
girija has joined #ruby
whitemage has joined #ruby
macmartine has quit [Quit: Computer has gone to sleep.]
ananthakumaran1 has joined #ruby
Domon has joined #ruby
shammancer has quit [Read error: Connection reset by peer]
mele- has joined #ruby
rburton- has quit [Read error: Connection reset by peer]
ananthakumaran has quit [Ping timeout: 260 seconds]
a_a_g_0 has joined #ruby
a_a_g has quit [Read error: Connection reset by peer]
girija has quit [Read error: Connection reset by peer]
whitemage has quit [Ping timeout: 245 seconds]
w|t has joined #ruby
pablo_ has quit [Quit: Ex-Chat]
pcarrier_ has joined #ruby
browndawg has joined #ruby
rburton- has joined #ruby
mele- has quit [Read error: Connection reset by peer]
iMadper has joined #ruby
akells` has joined #ruby
thesheff17 has quit [Ping timeout: 256 seconds]
mele- has joined #ruby
mele- has quit [Client Quit]
sleetdrop has joined #ruby
yacks has quit [Ping timeout: 248 seconds]
rburton- has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby
fivetwentysix has joined #ruby
girija has joined #ruby
saarinen has quit [Quit: saarinen]
yacks has joined #ruby
akells` has quit [Ping timeout: 248 seconds]
osvico has quit [Ping timeout: 248 seconds]
jdunck has joined #ruby
pcarrier_ has quit [Ping timeout: 248 seconds]
larissa has quit [Remote host closed the connection]
vlad_starkov has quit [Read error: Connection reset by peer]
AgentWillyWonka has joined #ruby
vlad_starkov has joined #ruby
Cork has quit [Excess Flood]
Cork has joined #ruby
Cork has quit [Excess Flood]
arietis has joined #ruby
Cork has joined #ruby
Cork has quit [Excess Flood]
Cork has joined #ruby
Cork has quit [Excess Flood]
Cork has joined #ruby
Cork has quit [Excess Flood]
busybox42 has quit [Ping timeout: 264 seconds]
dawkirst has quit [Remote host closed the connection]
aganov has joined #ruby
<kenneth> this kind of articles reminds me of why Rails is pure evil - http://daniel.fone.net.nz/blog/2013/05/20/a-better-way-to-manage-the-rails-secret-token/
corehook has quit [Ping timeout: 256 seconds]
noop has joined #ruby
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<arubin> kenneth: How does that make Rails pure evil?
rads has quit [Quit: rads]
subbyyy has quit [Ping timeout: 264 seconds]
<kenneth> arubin: the fact that it requires a secret token is an example of horrible design, something endemic to the framework
<fivetwentysix> kenneth: how does cakephp do it?
<arubin> kenneth: So it should not sign cookies?
<fivetwentysix> or django
<AgentWillyWonka> This is a AWS use case which can be applied to all frameworks ...
<kenneth> no idea, i don't use either of those frameworks
<kenneth> but it should not trust cookies
<kenneth> and untrusted cookies do not require to be signed
<arubin> When you create a new Django project using startproject, the settings.py file is generated automatically and gets a random SECRET_KEY value. This value is the key to securing signed data – it is vital you keep this secure, or attackers could use it to generate their own signed values.
<fivetwentysix> kenneth: my point is simply how do you know if it's bad if you have nothing to compare it to
<arubin> So Django is exactly the same.
<fivetwentysix> exactly.
hogeo_ has joined #ruby
bradhe has joined #ruby
subbyyy has joined #ruby
Leighton has joined #ruby
<kenneth> there's plenty to compare it to. there's plenty of ways to create web apps that do not have built in tools for signing cookies
<arubin> kenneth: Why would you not want signed cookies?
<fivetwentysix> kenneth: does your solution work when deploying Rails as a .war or .knob on the JVM?
hamed_r has joined #ruby
<kenneth> it's not that signed cookies are bad, it's that trusting cookies is bad, and it if you don't trust them it doesn't matter if they're signed or not
<kenneth> web apps should not be putting anything in the cookies other than a user id & signature
arturaz has joined #ruby
hogeo has quit [Ping timeout: 245 seconds]
<kenneth> and if you verify the user signature on every request, you don't care if the cookie itself is signed or not
<arubin> What?
ckrailo has joined #ruby
busybox42 has joined #ruby
workmad3 has joined #ruby
<arubin> If you verify the signature it does not matter whether there is a signature?
stewart_ has quit [Quit: Leaving.]
<kenneth> then, since each user's signature is (hopefully) based on a key-derivation function like pbkdf2 or (b/s)crypt, you don't have a single secret token to manage that can compromise the security of your app
vlad_starkov has quit [Remote host closed the connection]
<kenneth> anything session-related should be stored on the server in some kind of data store, not in a cookie
<kenneth> arubin: cookie signature != user signature
vlad_starkov has joined #ruby
slainer68 has quit [Ping timeout: 256 seconds]
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
corehook has joined #ruby
chandankumar has quit [Ping timeout: 264 seconds]
<bnagy> kenneth: how do you 'sign' this user cookie?
<kenneth> you don't
<kenneth> here's what you do
JohnBat26 has joined #ruby
<kenneth> you probably have a users collection in your database. it probably contains a password field that's a pbkdf2(password)
ayaz has joined #ruby
shammancer has joined #ruby
<kenneth> when the user logs in with a password, you set two cookies: user_id=id, user_signature=my-pbkdf2-key
vlad_sta_ has joined #ruby
<kenneth> you never put *anything* else in cookies
hoyang has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
<kenneth> and on every subsequent request, you verify with your database that user_id and user_signature match the signatures you know
kil0byte has joined #ruby
vlad_starkov has quit [Ping timeout: 246 seconds]
<kenneth> if you ever need to store session information, you store it in your database
hogeo_ has quit [Remote host closed the connection]
<arubin> Does Rails not store session information in the database?
Azulinho has quit [Ping timeout: 245 seconds]
<kenneth> note that that's the basic principle. in practice, you;d probably want to build something that is more like user_id=id, login_timestamp=timestamp, login_signature=sha1(pbkdf2(password), login_timestamp)
<arubin> I guess not by default.
<bnagy> fair enough, but only works when you have a login semantic
mockra has joined #ruby
<arubin> "Rails 2 introduced a new default session storage, CookieStore. CookieStore saves the session hash directly in a cookie on the client-side. The server retrieves the session hash from the cookie and eliminates the need for a session id."
JohnBat26 has joined #ruby
pcarrier_ has joined #ruby
<kenneth> bnagy: sure, but you could easily do something similar without login semantics
Cultofmetatron has joined #ruby
<bnagy> kenneth: uh I liked your first one better
<bnagy> how?
<arubin> "Most real-live applications choose ActiveRecord::SessionStore (or one of its derivatives) over file storage due to performance and maintenance reasons. ActiveRecord::SessionStore keeps the session id and hash in a database table and saves and retrieves the hash on every request."
bigkevmcd has joined #ruby
<bnagy> kenneth: to trust a user cookie, you have to do something involving a secret that only you know. In your first case it's the user password
vlad_sta_ has quit [Remote host closed the connection]
<kenneth> bnagy: have a sessions database, that have a session id, a secure-random nonce as "password", then do the same thing
<bnagy> if you don't have a login semantic then you end up using a serverside secret
mockra has quit [Ping timeout: 248 seconds]
rippa has joined #ruby
mneorr has quit [Remote host closed the connection]
<kenneth> sure, but you generate the secrets on the fly, store them in a database temporarily and expire them
<kenneth> and keep the session data itself on the server
<bnagy> how is that any different from just using a session id?
threesome has joined #ruby
<kenneth> if you use a large-entropy secure random key as your id, it's not
<bnagy> ok
<kenneth> but the point is, never do you have a single server side "secure token"
<bnagy> well they tend to have one of those anyway
<kenneth> in a well designed system, the existence of that token is unnecessary
<bnagy> otherwise they can't do ssl :)
<kenneth> if the secret token brings *any* value, it's a symptom of a fundamental design flaw
dhruvasagar has joined #ruby
<bnagy> not really
<bnagy> it's a shitload faster
<kenneth> thousands of rails apps on the internet can be compromised trivially because of their reliance on that "secret token"
haxrbyte has joined #ruby
<bnagy> how is that a fundamental design flaw?
<kenneth> considering rails is a framework that prides itself on sensible default
<bnagy> like, if you don't keep your secret thing secret and you get hurt.. well.. duh?
<kenneth> how is it not a fundamental design flaw to use that as your session security mechanism?
pcarrier_ has quit [Ping timeout: 248 seconds]
rippa has quit [Ping timeout: 240 seconds]
<bnagy> it's a lot faster than doing scrypt on a DB lookup for ever request
<kenneth> that's like if a bank issued debit card with the last four numbers of the card number as their PIN code
<bnagy> not protecting a think that should be protected is a flaw
<kenneth> and then blamed user stupidity for not changing their PIN numbers
<bnagy> no, because the cookie doesn't leak the secret
<bnagy> nb I have no idea at all about rails, never looked at it
<bnagy> I'm just talking design
whitemage has joined #ruby
pcarrier_ has joined #ruby
<arubin> kenneth: Did you look at the pull request? They appear to be changing it.
<kenneth> alright, then, imagine they used the last four digits of your SSN as your PIN code
<kenneth> not printed on the card
dik_dak has joined #ruby
<kenneth> but much easier for somebody to compromise than having truly random PINs
jprovazn has joined #ruby
Domon has quit [Remote host closed the connection]
sleetdrop has quit [Quit: Computer has gone to sleep.]
<bnagy> wtf?
<bnagy> you're not making sense
<bnagy> how is a single servside secret going to leak into the cookie, in any sane system?
<bnagy> like, if it's stored poorly then that's an implementation issue
<kenneth> the problem with the token is that people commit it in their repos, push it to github, give dozens of third parties access to it
<bnagy> well those people are fucktards
<kenneth> every developer, contractor, etc. in their organization has access to this one single point of failure token
workmad3 has quit [Ping timeout: 256 seconds]
<bnagy> which doesn't really have anything to do with design
slainer68 has joined #ruby
<kenneth> and you can't revoking without breaking all of your users' sessions
<kenneth> revoke*
<bnagy> same with your ssl cert
<bnagy> massive things go wrong if it leaks
<bnagy> so don't do that
<kenneth> arubin: yeah, took a look. it's a good change
jdunck has quit [Quit: Computer has gone to sleep.]
<kenneth> bnagy: sure, but at least your SSL certificate is typically not committed to your codebase
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
daniel_hinojosa has quit [Quit: Leaving.]
whitemage has quit [Ping timeout: 256 seconds]
monkegjinni has joined #ruby
<bnagy> well like I said I don't know anything about rails
lafyn has quit [Read error: Connection reset by peer]
persand has joined #ruby
<fivetwentysix> who cares
<fivetwentysix> lol
<fivetwentysix> im a fuck tard
slainer68 has quit [Ping timeout: 256 seconds]
<fivetwentysix> i have never even though about modifying the secret_token.rb file
<bnagy> kenneth: I was mainly just vaguely interested because you were using 'signature' in a way that I found weird
<kenneth> my entire point is simply that rails' default behavior is bad design, and that by including it as default it gives it legitimacy and renders thousands of users vulnerable
<bnagy> so I was just poking about until I got to your point, which is fine
thomaslee has joined #ruby
thehandler has joined #ruby
<kenneth> that being said, i don't use rails myself. precisely because of the kind of issue exemplified by this problem. i find it to be a large mess of questionable design decisions. i prefer to have much smaller and simpler libraries that i can compose together
<thehandler> i have two web apps one on localhost:80 and localhost:8888 the one on localhost:8888 needs to do an xmlhttpreq from localhost:80, where do i need to set access control allow origin to let this happen? (the one on localhost:80 runs ruby 2.3x)
thomaslee has quit [Read error: Connection reset by peer]
JohnBat26 has joined #ruby
<bnagy> wow ruby 2.3, sounds advanced
<bnagy> the rest of us are on 2.0.0
filipe has joined #ruby
iMadper is now known as imadper|busy
MistuhKurtz has quit [Quit: sleeping]
<kenneth> thehandler: CORS can be a pain. look into the rack-cors gem, it's a nice middleware that helps deal with CORS
alexmreis has joined #ruby
<thehandler> bnagy: i gave that off the top of my head, been using ruby for a short while , sorry :0
<thehandler> kenneth: how hard is it to install that (for a beginer?)
ckrailo has quit [Ping timeout: 260 seconds]
alexmreis has left #ruby [#ruby]
nomenkun has joined #ruby
<kenneth> it's easy, just a gem install and a few lines in your config.ru. look at its read me on github
timonv has joined #ruby
lafyn has joined #ruby
<thehandler> ok.
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
obs has joined #ruby
ckrailo has joined #ruby
bigkm has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Domon has joined #ruby
ikea_meatballs has quit [Quit: ikea_meatballs]
arubin has quit [Quit: sleep]
grobb has joined #ruby
prk has quit [Remote host closed the connection]
afd__ has joined #ruby
lyanchih has quit [Quit: lyanchih]
lyanchih has joined #ruby
peteyg has quit [Ping timeout: 260 seconds]
nomenkun has quit [Read error: Connection reset by peer]
subbyyy has quit [Ping timeout: 245 seconds]
sideshowcoder has quit [Read error: Operation timed out]
nomenkun has joined #ruby
breakingthings has quit [Quit: breakingthings]
[[thufir]] has quit [Quit: Leaving.]
ilpuccio has joined #ruby
Asher has quit [Ping timeout: 248 seconds]
arya has joined #ruby
dangerousdave has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
sideshowcoder has joined #ruby
threesome has quit [Ping timeout: 240 seconds]
monkegjinni has joined #ruby
w|t has quit [Quit: Computer has gone to sleep.]
sayan has joined #ruby
hamed_r has quit [Quit: Leaving]
pinpin404 has joined #ruby
r0bglees0n has quit [Read error: Connection reset by peer]
nkts has quit [Quit: -]
Asher has joined #ruby
r0bglees0n has joined #ruby
elaptics`away is now known as elaptics
w|t has joined #ruby
elaptics is now known as elaptics`away
ferdev has quit [Quit: ferdev]
teclator has joined #ruby
obs has quit [Quit: Konversation terminated!]
mfridh has joined #ruby
arya has quit [Ping timeout: 264 seconds]
leonidlm has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
zeeraw has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
monkegjinni has joined #ruby
timonv has quit [Remote host closed the connection]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
LennyLinux has joined #ruby
browndawg has quit [Quit: Leaving.]
luckyruby has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 246 seconds]
bradhe has quit [Remote host closed the connection]
luckyruby has joined #ruby
lafyn has quit [Ping timeout: 256 seconds]
monkegjinni has joined #ruby
luckyruby has quit [Remote host closed the connection]
tvw has joined #ruby
whitemage has joined #ruby
blaxter has joined #ruby
emptymag00 has quit [Ping timeout: 264 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
slainer68 has joined #ruby
monkegjinni has joined #ruby
cj3kim has quit [Remote host closed the connection]
whitemage has quit [Read error: Operation timed out]
pipi404 has joined #ruby
pinpin404 has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
tjbiddle has quit [Quit: tjbiddle]
vlad_starkov has joined #ruby
mad_hatter_ has joined #ruby
adambeynon has joined #ruby
monkegji_ has joined #ruby
pipi404 is now known as pinage404
obs has joined #ruby
slainer68 has quit [Ping timeout: 260 seconds]
kil0byte has quit [Ping timeout: 256 seconds]
monkegjinni has quit [Ping timeout: 245 seconds]
ferdev has joined #ruby
kil0byte has joined #ruby
apeiros has joined #ruby
LennyLinux has quit [Remote host closed the connection]
monkegji_ has quit [Read error: Connection reset by peer]
robottinosino has joined #ruby
Spami has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
monkegjinni has joined #ruby
bluOxigen has joined #ruby
marr has joined #ruby
emptymag00 has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
LennyLinux has joined #ruby
LennyLin_ has joined #ruby
LennyLinux has quit [Read error: Connection reset by peer]
threesome has joined #ruby
monkegji_ has joined #ruby
monkegji_ has quit [Remote host closed the connection]
Coffers has joined #ruby
pinage404 has quit [Quit: No Ping reply in 180 seconds.]
r0bglees0n has quit [Ping timeout: 260 seconds]
eykosioux has joined #ruby
monkegji_ has joined #ruby
monkegji_ has quit [Remote host closed the connection]
fixl has joined #ruby
monkegji_ has joined #ruby
monkegjinni has quit [Ping timeout: 245 seconds]
monkegjinni has joined #ruby
lafyn has joined #ruby
monkegj__ has joined #ruby
dik_dak has quit []
hamed_r has joined #ruby
ephemerian has joined #ruby
rickruby has quit [Remote host closed the connection]
monkegji_ has quit [Ping timeout: 256 seconds]
vlad_starkov has joined #ruby
monkegjinni has quit [Ping timeout: 256 seconds]
adambeynon has quit [Quit: Computer has gone to sleep.]
hogeo has joined #ruby
browndawg has joined #ruby
elaptics`away is now known as elaptics
Dummies_freelanc has left #ruby [#ruby]
noname001 has joined #ruby
ioNull has joined #ruby
wudofyr__ has joined #ruby
shashin has joined #ruby
shashin has quit [Client Quit]
ttt has quit [Remote host closed the connection]
futilegames has joined #ruby
blaxter has quit [Ping timeout: 264 seconds]
noname001 has quit [Remote host closed the connection]
emergion has joined #ruby
maverick9 has quit [Ping timeout: 256 seconds]
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
noname001 has joined #ruby
monkegj__ has quit [Ping timeout: 256 seconds]
joonty has joined #ruby
lafyn has quit [Read error: Connection reset by peer]
Cultofmetatron has quit [Remote host closed the connection]
Ontolog has quit [Remote host closed the connection]
obs_ has joined #ruby
timmow has joined #ruby
Ontolog has joined #ruby
obs has quit [Read error: Connection reset by peer]
obs_ is now known as obs
obs has quit [Read error: Connection reset by peer]
ckrailo has quit [Quit: Computer has gone to sleep.]
k610 has joined #ruby
<thehandler> to be honest, iv no idea how to install rack-cors, an my app has not Gemfile, im lost.
lkba has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Remote host closed the connection]
neurotech has joined #ruby
obs has joined #ruby
blaxter has joined #ruby
w|t has quit [Quit: Textual IRC Client: www.textualapp.com]
daniel_- has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
rdark has joined #ruby
jbpros has joined #ruby
whitemage has joined #ruby
ghr has joined #ruby
browndawg has quit [Quit: Leaving.]
k610 has quit [Ping timeout: 252 seconds]
maverick9 has joined #ruby
DaniG2k has joined #ruby
ttt has joined #ruby
whitemage has quit [Ping timeout: 256 seconds]
bradhe has joined #ruby
guardadigital_ has joined #ruby
guiocavalcanti has quit [Remote host closed the connection]
monkegjinni has joined #ruby
gasbakid has joined #ruby
ttt_ has joined #ruby
ttt has quit [Read error: Connection reset by peer]
jbpros has quit [Quit: jbpros]
suporte85 has quit [Ping timeout: 256 seconds]
MANDRAKE has joined #ruby
<MANDRAKE> !LIST
MANDRAKE has left #ruby [#ruby]
backjlack has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 276 seconds]
Shrink has quit [Ping timeout: 256 seconds]
emergion has joined #ruby
backjlack has joined #ruby
monkegji_ has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
arietis has joined #ruby
gyre007 has joined #ruby
blacktulip has joined #ruby
katsrc has quit [Ping timeout: 252 seconds]
Shrink has joined #ruby
w|t has joined #ruby
bolD_ has quit [Ping timeout: 256 seconds]
guiocavalcanti has joined #ruby
niceguyjames has joined #ruby
tomku has quit [Ping timeout: 252 seconds]
rae__ has quit [Quit: rae__]
__main__ has quit [Read error: No route to host]
charliesome has joined #ruby
_main_0 has joined #ruby
lyanchih has quit [Ping timeout: 245 seconds]
tomzx_mac has joined #ruby
lkba has joined #ruby
thone_ has quit [Ping timeout: 246 seconds]
rickruby has joined #ruby
spider-mario has joined #ruby
DaniG2k has quit [Quit: Leaving]
Iszak has joined #ruby
Iszak has quit [Max SendQ exceeded]
Iszak has joined #ruby
thone has joined #ruby
Iszak has quit [Max SendQ exceeded]
andrewh has joined #ruby
Iszak has joined #ruby
Iszak has quit [Max SendQ exceeded]
jgrevich has quit [Remote host closed the connection]
Villadelfia has quit [Read error: Connection reset by peer]
Iszak has joined #ruby
SeySayux has quit [Read error: Connection reset by peer]
Villadelfia has joined #ruby
Iszak has quit [Client Quit]
rickruby has quit [Ping timeout: 256 seconds]
eykosioux has quit [Remote host closed the connection]
d11wtq has quit [Ping timeout: 248 seconds]
adambeynon has joined #ruby
SeySayux has joined #ruby
eykosioux has joined #ruby
lewix has quit [Remote host closed the connection]
yacks has quit [Quit: Leaving]
lewix has joined #ruby
BonSequitur has quit [Read error: Connection reset by peer]
<krainboltgreene> FYI, the Dues Ex: revolution soundtrack is an amazing programming soundtrack.
davetherat has quit [Remote host closed the connection]
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
davetherat has joined #ruby
bricker`1A has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
emergion has quit [Quit: Computer has gone to sleep.]
eykosioux has quit [Ping timeout: 256 seconds]
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
lewix has quit [Ping timeout: 248 seconds]
maetthew has joined #ruby
bricker`LA has quit [Ping timeout: 240 seconds]
Guest27861 has joined #ruby
monkegji_ has quit [Ping timeout: 246 seconds]
bricker`1A has quit [Client Quit]
Azulinho has joined #ruby
DanKnox_away is now known as DanKnox
atmosx has quit [Ping timeout: 240 seconds]
chandankumar has joined #ruby
jacobbednarz has joined #ruby
browndawg has joined #ruby
Banistergalaxy has joined #ruby
braincrash has quit [Quit: bye bye]
atmosx has joined #ruby
braincrash has joined #ruby
peta_ has joined #ruby
LennyLin_ has quit [Remote host closed the connection]
danslo has joined #ruby
jnoob22 has quit [Remote host closed the connection]
eykosioux has joined #ruby
eykosioux has quit [Remote host closed the connection]
eykosioux has joined #ruby
monkegjinni has joined #ruby
danslo has quit [Ping timeout: 260 seconds]
gyre007 has quit [Remote host closed the connection]
Cork has joined #ruby
Cork has quit [Excess Flood]
slainer68 has joined #ruby
timonv has joined #ruby
Cork has joined #ruby
freeayu has quit [Ping timeout: 252 seconds]
ebouchut has joined #ruby
arya has joined #ruby
freeayu has joined #ruby
imadper|busy has quit [Remote host closed the connection]
nari has quit [Ping timeout: 240 seconds]
Iszak has joined #ruby
Iszak has quit [Max SendQ exceeded]
perun0 has joined #ruby
guardadigital_ has quit [Quit: Saindo]
swex has quit [Read error: Connection reset by peer]
swex has joined #ruby
maetthew has quit [Quit: Computer has gone to sleep.]
freeayu has quit [Ping timeout: 245 seconds]
freeayu has joined #ruby
hamed_r has quit [Quit: Leaving]
F1skr has joined #ruby
t6d has joined #ruby
lkba has quit [Quit: Bye]
LennyLinux has joined #ruby
AndChat| has joined #ruby
AndChat| has quit [Client Quit]
rdark has quit [Ping timeout: 256 seconds]
AndChat| has joined #ruby
AndChat| has quit [Client Quit]
AndChat| has joined #ruby
AndChat| is now known as lkba_
yshh has quit [Remote host closed the connection]
lemonsparrow has joined #ruby
tundrax has quit [Remote host closed the connection]
lkba_ is now known as lkba
lkba has quit [Client Quit]
lkba has joined #ruby
rdark has joined #ruby
mardar has joined #ruby
monkegji_ has joined #ruby
Dummies_freelanc has joined #ruby
monkegjinni has quit [Ping timeout: 240 seconds]
zeeraw has quit [Quit: Computer has gone to sleep.]
DanKnox is now known as DanKnox_away
yacks has joined #ruby
zeeraw has joined #ruby
LennyLinux has quit [Remote host closed the connection]
ebouchut has quit [Quit: This computer has gone to sleep]
zeeraw has quit [Client Quit]
atmosx has quit [Ping timeout: 240 seconds]
DrHeiter23 has joined #ruby
atmosx has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
teclator has quit [Ping timeout: 256 seconds]
monkegjinni has joined #ruby
zastaph has joined #ruby
dhruvasagar has joined #ruby
teclator has joined #ruby
hoyang has quit [Quit: 离开]
monkegjinni has quit [Remote host closed the connection]
monkegji_ has quit [Ping timeout: 276 seconds]
Guedes has joined #ruby
Guedes has joined #ruby
juo100 has joined #ruby
persand has quit [Quit: persand]
arya has quit [Ping timeout: 248 seconds]
tommyvyo has joined #ruby
yacks has quit [Ping timeout: 245 seconds]
zeeraw has joined #ruby
monkegjinni has joined #ruby
arya has joined #ruby
skattyadz has joined #ruby
arya has quit [Ping timeout: 248 seconds]
gkunno has quit [Excess Flood]
gkunno has joined #ruby
jnoob22 has joined #ruby
arya has joined #ruby
tommyvyo has quit [Quit:]
olleromo has joined #ruby
labs-0x99 has joined #ruby
kofno has joined #ruby
danslo has joined #ruby
filipe_ has joined #ruby
yacks has joined #ruby
vlad_starkov has joined #ruby
<zastaph> RubyMine is the only IDE that does intellisense right to Ruby?
vlad_starkov has quit [Remote host closed the connection]
<bnagy> virtually nobody uses IDEs for Ruby
vlad_starkov has joined #ruby
<zastaph> yeah me neither.. but who doesn't want intellisense
<apeiros> contrary to surreally everybody uses IDEs for ruby
filipe has quit [Ping timeout: 256 seconds]
ramblex has joined #ruby
teclator has quit [Ping timeout: 248 seconds]
<Hanmac1> zastaph: Eclipse can do it too, but you can not trust it (because in ruby the type is flexible)
Hanmac1 is now known as Hanmac
atno__ is now known as atno
postmodern has quit [Quit: Leaving]
danslo has quit [Ping timeout: 260 seconds]
<bnagy> lol eclipse
<zastaph> i just want to type Mysql.con -- rs. and it will popup with the same options as here http://rubydoc.info/gems/mysql/2.9.1/Mysql/Result
monkegjinni has quit [Read error: Connection reset by peer]
emergion has joined #ruby
<zastaph> so basically a rubydoc aware editor
seyfettin has joined #ruby
<zastaph> that works with gems, not just builtin ruby stuff
Shrink has quit [Ping timeout: 276 seconds]
seyfettin has quit [Client Quit]
monkegjinni has joined #ruby
Ontolog has quit [Remote host closed the connection]
futilegames has quit [Ping timeout: 264 seconds]
krainboltgreene has quit [Quit: krainboltgreene]
Xeago has joined #ruby
davetherat has quit [Read error: Connection reset by peer]
davetherat has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
teclator has joined #ruby
<lupine> am I alone in disliking intellisense?
<zastaph> whats not to like :)
<lupine> I find autocompletion is generally useless
<lupine> automatic brace pairing is sometimes useful, sometimes not
gasbakid_ has joined #ruby
<zastaph> oh its not to avoid the typing, its to avoid the browser tab opening, the searching and the scrolling
<lupine> the only thing I really like consistently is automatic indentation
apeiros has joined #ruby
<lupine> the what now?
<zastaph> i want the docs where i need them
ebouchut has joined #ruby
greengriminal has joined #ruby
greengriminal has quit [Client Quit]
<zastaph> i dislike automatic insertions in my editor too
greengriminal has joined #ruby
<juo100> in sublime i can type def hit tab and it completes, or in JS i can type function hit tab and it autocompletes
<juo100> quite handy if you forget the notation
<zastaph> juo100, using SublimeCodeIntel right? it doesnt work for gems
olleromo has quit [Quit: olleromo]
<juo100> oh i see, yeah, that would be cool if it did
gasbakid has quit [Ping timeout: 252 seconds]
<Hanmac> lupine: i for sample does not dislike and do not like intellisense ... but the others need to understand that it does not work with ruby objects
sayan has quit [Read error: Connection reset by peer]
<juo100> sometimes pursing gem source code can be a voyage of discovery, so i don't really mind going off for a hunt
<juo100> *perusing
<zastaph> Hanmac, it works mighty fine in Sublime Text for builting stuff like Hash
futilegames has joined #ruby
roadt_ has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
corehook has quit [Ping timeout: 256 seconds]
<Hanmac> hashs are different from that what you want
monkegjinni has joined #ruby
<zastaph> so what wouldnt work for instance?
gyre007 has joined #ruby
skattyadz has quit [Quit: skattyadz]
danslo has joined #ruby
<zastaph> File. also gives me a correct popup
<lupine> Hanmac, it can work, a bit, most of the time
<lupine> but it's the kind of thing that, if it doesn't work perfectly all the time, is extremely annoying
<lupine> intellisense was, on balance, a net win in delphi
roadt has quit [Ping timeout: 256 seconds]
<zastaph> its all a dream about not having to leave your editor while programming :)
vlad_sta_ has joined #ruby
<lupine> my editor is gedit, and it shares screen acreage with browser and terminal
<lupine> context switches are very cheap as a result
Matip has quit [Ping timeout: 264 seconds]
fivetwentysix has quit [Quit: fivetwentysix]
<lupine> I've considered adding multi-pointer X and having a right-side mouse for keyboard ^^
Shrink has joined #ruby
Shrink has joined #ruby
olleromo has joined #ruby
<zastaph> i have a feeling it's only a setting to make it work with gems too.. because SublimeCodeIntel isn't built for Ruby, it works for many other languages too by simply spawning the ruby interpreter
<zastaph> it just needs to be told somehow where to look
danslo has quit [Ping timeout: 245 seconds]
freeayu__ has joined #ruby
Domon has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 256 seconds]
Xeago_ has joined #ruby
Leighton has quit [Quit: Leaving]
Cork has quit [Read error: Operation timed out]
baba has quit [Quit: WeeChat 0.4.0]
freeayu has quit [Ping timeout: 276 seconds]
xiella has quit [Ping timeout: 248 seconds]
mercwithamouth has joined #ruby
persand has joined #ruby
Domon has joined #ruby
ntus1017 has quit [Remote host closed the connection]
huoxito has joined #ruby
fermion has joined #ruby
maetthew has joined #ruby
ejnahc has quit [Quit: leaving]
ejnahc has joined #ruby
labs-0x99 has quit [Quit: Leaving]
Domon has quit [Remote host closed the connection]
niceguyjames has quit [Quit: Textual IRC Client: www.textualapp.com]
Domon has joined #ruby
Xeago has quit [Remote host closed the connection]
companion has quit [Read error: Operation timed out]
skattyadz has joined #ruby
kandinski has quit [Read error: Operation timed out]
TheSpect1e has quit [Read error: Operation timed out]
rawler has quit [Read error: Operation timed out]
Domon has quit [Remote host closed the connection]
rawler has joined #ruby
<halfie> hi, how do I get a list of all the gems on rubygems.org?
kandinski has joined #ruby
TheSpectre has joined #ruby
noname001 has quit [Remote host closed the connection]
corehook has joined #ruby
ttt_ has quit [Remote host closed the connection]
companion has joined #ruby
kil0byte has quit [Remote host closed the connection]
<Morrolan> Maybe selecting the 'all gems' link on http://rubygems.org will help? :)
jnoob22 has quit [Remote host closed the connection]
<halfie> Morrolan, oh, I am using the API
sepp2k has joined #ruby
Banistergalaxy has quit [Ping timeout: 264 seconds]
noname001 has joined #ruby
<Morrolan> Seems that one doesn't support the listing of gems.
<Morrolan> Of course you could submit a search for a-z and 0-9 and then combine the results, but that wouldn't be too performant.
monkegjinni has quit [Read error: Connection reset by peer]
<halfie> Morrolan, looks like it. any other ideas :) ?
juo100 has quit [Quit: juo100]
monkegjinni has joined #ruby
<Morrolan> Sorry, no, nothing terribly smart comes to mind. Someone else here will probably have an idea, though. :)
d11wtq has joined #ruby
<halfie> Morrolan, yeah, without API its a little bit tedious (with all that web scraping)
browndawg has quit [Ping timeout: 256 seconds]
suporte85 has joined #ruby
corehook has quit [Ping timeout: 256 seconds]
ilpuccio has quit [Quit: Leaving]
dhruvasagar has quit [Read error: Operation timed out]
obs has quit [Quit: Konversation terminated!]
browndawg has joined #ruby
nomenkun has quit [Ping timeout: 256 seconds]
<Morrolan> halfie: Not to mention that it'd be a ton of requests. ;)
Banistergalaxy has joined #ruby
<Morrolan> There's maybe 55'000 gems on there. With 30 gems per page this'll be ~1'800 requests.
Spami has quit [Quit: This computer has gone to sleep]
<halfie> heh :)
tommyvyo has joined #ruby
<halfie> I don't want Ruby guys to hate me
falood has joined #ruby
obs has joined #ruby
Cork has joined #ruby
pinpin404 has joined #ruby
maetthew has quit [Quit: Textual IRC Client: www.textualapp.com]
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
<joshu> hi guys I'm having trouble writing tests using minitest. This what my code looks like https://gist.github.com/anonymous/da195d84858ecdfb2ac5
Spami has quit [Client Quit]
gasbakid_ has quit [Quit: Quitte]
daniel_- has quit [Ping timeout: 260 seconds]
ARCADIVS has quit [Quit: WeeChat 0.3.8]
tomzx_mac has quit [Ping timeout: 276 seconds]
Darlal has joined #ruby
ntus1017 has joined #ruby
hamed_r has joined #ruby
Yakko has quit [Read error: Connection reset by peer]
jnoob22 has joined #ruby
<joshu> I get this error " 1) Error:
<joshu> test_mail_processed(FFMTest):
<joshu> NameError: uninitialized constant FFMTest::FFM"
ejnahc has quit [Ping timeout: 240 seconds]
<joshu> I'm not really sure what I'm doing if someone could please look over my code
geekbri has joined #ruby
<halfie> how does "gem query --remote" works? it seems to show a listing of all (???) gems.
nomenkun has joined #ruby
ejnahc has joined #ruby
vlad_starkov has joined #ruby
krz has quit [Quit: krz]
yshh has joined #ruby
devoldmx3 has joined #ruby
tshauck has quit [Ping timeout: 264 seconds]
<halfie> Morrolan, "GET /latest_specs.4.8.gz HTTP/1.1" <== seems to be the key
kirun has joined #ruby
tundrax has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
sambao21 has joined #ruby
<Morrolan> halfie: Heh, nice.
vlad_sta_ has quit [Ping timeout: 260 seconds]
nari has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
guiocavalcanti has quit [Remote host closed the connection]
tundrax has quit [Remote host closed the connection]
_nitti has joined #ruby
monkegjinni has joined #ruby
mardar has quit [Ping timeout: 252 seconds]
mardar has joined #ruby
jcromartie has joined #ruby
nezumi has quit [Ping timeout: 245 seconds]
breadthfirst has joined #ruby
niceguyjames has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
ebouchut has quit [Quit: This computer has gone to sleep]
tk_ has joined #ruby
_nitti has quit [Remote host closed the connection]
monkegjinni has joined #ruby
jnoob22 has quit [Remote host closed the connection]
jnoob22 has joined #ruby
_nitti has joined #ruby
ctp has quit [Quit: Leaving...]
<joshu> any ideas why I'm getting that initialised error
niklasb has joined #ruby
guiocavalcanti has joined #ruby
breadthfirst has quit [Remote host closed the connection]
Neomex has joined #ruby
welandC has quit []
famulus has quit [Quit: Ex-Chat]
<Morrolan> Did you 'require' whatever file this class is in?
monkegjinni has quit [Read error: Connection reset by peer]
_nitti has quit [Ping timeout: 248 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
<joshu> Morrolan I think so
monkegjinni has joined #ruby
<ramblex> joshu: don't you need to require 'ffm' in ffm_test.rb ?
devoldmx3 has quit [Ping timeout: 276 seconds]
<joshu> ramblex let me try
<Morrolan> Might want to add an explicit "require 'foo'" at the top of the file where the error happens. If it works afterwards, then you probably didn't require it.
<joshu> Morrolan ok going to test now
jacobbednarz has quit [Quit: Laters.]
breadthfirst has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
T|ASK has joined #ruby
corehook has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
ananthakumaran has joined #ruby
ephemerian has quit [Quit: Leaving.]
philcrissman has joined #ruby
awojo has joined #ruby
roadt_ has quit [Ping timeout: 256 seconds]
devoldmx has joined #ruby
ananthakumaran1 has quit [Ping timeout: 276 seconds]
Shrink has quit [Read error: Connection reset by peer]
Shrink has joined #ruby
Shrink has quit [Changing host]
Shrink has joined #ruby
eka has joined #ruby
<joshu> ramblex Morrolan thank you both I added it and that error disappeared. Now I'm getting an error about reading the file :(
monkegjinni has quit [Read error: Connection reset by peer]
danslo has joined #ruby
kiri has quit [Ping timeout: 256 seconds]
DrHeiter23 has quit [Quit: DrHeiter23]
speakingcode has quit [Ping timeout: 252 seconds]
monkegjinni has joined #ruby
<joshu> I had to comment # FFM.new(STDIN) in ffm.rb to make it work. Not sure if I've structured this script correctly
devoldmx has quit [Ping timeout: 276 seconds]
speakingcode has joined #ruby
guiocavalcanti has quit [Read error: Connection reset by peer]
ntus1017 has quit [Remote host closed the connection]
guiocavalcanti has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
kiri has joined #ruby
gasbakid has joined #ruby
Lubinski has joined #ruby
pipework has quit [Read error: Connection reset by peer]
pipework has joined #ruby
SegFaultAX has quit [Read error: Operation timed out]
pskosinski has joined #ruby
SegFaultAX has joined #ruby
suporte85 has quit [Quit: Saindo]
hamed_r has quit [Quit: Leaving]
pskosinski has quit [Remote host closed the connection]
devoldmx has joined #ruby
rudisimo has joined #ruby
rdark has quit [Ping timeout: 264 seconds]
pskosinski has joined #ruby
tundrax has joined #ruby
MrPoT4tO_ has joined #ruby
guiocavalcanti has quit [Remote host closed the connection]
guiocavalcanti has joined #ruby
rdark has joined #ruby
osvico has joined #ruby
ctp has joined #ruby
awojo has quit [Ping timeout: 240 seconds]
mercwithamouth has quit [Ping timeout: 260 seconds]
kf8a has joined #ruby
tommyvyo has quit [Quit:]
monkegjinni has quit [Read error: Connection reset by peer]
guiocavalcanti has quit [Ping timeout: 256 seconds]
moos3 has joined #ruby
freeayu__ has quit [Remote host closed the connection]
monkegjinni has joined #ruby
guiocavalcanti has joined #ruby
guiocavalcanti has quit [Write error: Connection reset by peer]
Xeago has joined #ruby
guiocavalcanti has joined #ruby
_veer has quit [Ping timeout: 256 seconds]
subbyyy has joined #ruby
AgentWillyWonka has quit [Quit: Linkinus - http://linkinus.com]
tundrax has quit [Ping timeout: 246 seconds]
johnkary has joined #ruby
daniel_- has joined #ruby
tommyvyo has joined #ruby
<joshu> if I have ENV['RACK_ENV'] = 'test' in my test_helper.rb doesn't that mean that if I do puts ['RACK_ENV'] in my main ruby file that it should be set to test?
emergion has joined #ruby
juo100 has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
maverick9 has quit [Quit: Leaving]
emergion has quit [Client Quit]
<waxjar> if you require test_helper in your "main ruby file" (it should say puts ENV['RACK_ENV'] of course ;) )
<Xeago> what is the analytics tool called that you can configure to include google analytics, gaug.es and more?
mklappstuhl has joined #ruby
haxrbyte_ has joined #ruby
splittingred has joined #ruby
haxrbyte has quit [Read error: Connection reset by peer]
alexgordon has joined #ruby
<joshu> waxjar this is what I have in my main rb file initialise method @mail = ['RACK_ENV'] == 'test' ? Mail.new(File.read(stdin)) : Mail.new(STDIN.read)
rickruby has joined #ruby
rickruby has quit [Remote host closed the connection]
<waxjar> ['RACK_ENV'] is just an array with a string in it.
sambao21 has joined #ruby
dustint has joined #ruby
tundrax has joined #ruby
moos3 has joined #ruby
tommyvyo has quit [Quit:]
<waxjar> so that will always evaluate to false
monkegjinni has quit [Read error: Connection reset by peer]
kil0byte has joined #ruby
wallerdev has joined #ruby
monkegjinni has joined #ruby
Xeago_ has quit [Ping timeout: 250 seconds]
jroes has left #ruby [#ruby]
<joshu> waxjar but when I run rake test and I have a "puts ['RACK_ENV'] in my main file initialise method it just show RACK_ENV in the console not "test"
ctp has quit [Quit: Leaving...]
<Dwarf> Afternoon, I'm trying to implement simple version checking, how would I go on about comparing 2.2.0-alpha.1 to 2.2.0-alpha.2 with eachother? Currently if I compare 2.2.0-alpha.2 with itself (x < y) it returns true
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
<waxjar> you need ENV['RACK_ENV'], like I said, ['RACK_ENV'] is just an Array with the item 'RACK_ENV' in it, it will never be equal to "test".
<joshu> waxjar sorry I missed that I understand now! ;)
mklappstuhl has quit [Ping timeout: 252 seconds]
girija has quit [Read error: Connection reset by peer]
a_a_g_0 has quit [Read error: Connection reset by peer]
invisime has joined #ruby
a_a_g_0 has joined #ruby
girija has joined #ruby
thesheff17 has joined #ruby
axl_ has joined #ruby
<waxjar> dwarf, works great for me: https://gist.github.com/a263c7b8a4697114d78a
gsfmnw has joined #ruby
neurotech has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
<Dwarf> Hmm
vlad_starkov has joined #ruby
DrHeiter23 has joined #ruby
stonevil has joined #ruby
Neomex has quit [Quit: Neomex]
eykosioux has quit [Read error: Connection reset by peer]
eykosioux has joined #ruby
<Dwarf> Doesn't work on my end
hogeo has quit [Remote host closed the connection]
<ramblex> Dwarf: if it's the same version it's not going to be greater than
<Dwarf> @version says .2, online version says .3
hogeo has joined #ruby
<waxjar> are you sure that's what you're getting out of latestVersion?
blueOxigen has joined #ruby
<Dwarf> Aye
akhet has joined #ruby
akhet has quit [Changing host]
akhet has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
<Dwarf> 100% sure
<waxjar> (btw, convention among rubyists is to use underscores instead of camelcase)
monkegjinni has joined #ruby
<Dwarf> Alright, noted
suporte85 has joined #ruby
bluOxigen has quit [Ping timeout: 264 seconds]
pipework has quit [Remote host closed the connection]
<Dwarf> Been doing PHP before so that kinda explains it hehe
<ramblex> Dwarf: one of your versions has a hyphen, the other a dot
<Dwarf> holy crap
johnmilton has joined #ruby
<Dwarf> Why does it always have to be something that small
<Dwarf> You're a hero
hogeo has quit [Ping timeout: 252 seconds]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
<waxjar> typo's, so much time is lost on typo's :P
ctp has joined #ruby
johnmilton has quit [Client Quit]
johnmilton has joined #ruby
<Dwarf> Programmers nightmare
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
tvw has quit []
ferdev has quit [Quit: ferdev]
showtime has joined #ruby
T|ASK has left #ruby [#ruby]
monkegjinni has quit [Read error: Connection reset by peer]
stonevil has quit [Quit: stonevil]
robbyoconnor has quit [Ping timeout: 264 seconds]
monkegjinni has joined #ruby
subbyyy has quit [Ping timeout: 245 seconds]
Spami has quit [Quit: This computer has gone to sleep]
carloslopes has joined #ruby
allsystemsarego has joined #ruby
allsystemsarego has quit [Changing host]
allsystemsarego has joined #ruby
MrPoT4tO_ has quit [Remote host closed the connection]
drknow_ has quit [Remote host closed the connection]
haxrbyte_ has quit [Read error: Connection reset by peer]
haxrbyte has joined #ruby
tshauck has joined #ruby
_nitti has joined #ruby
jerius has joined #ruby
hogeo has joined #ruby
devoldmx3 has joined #ruby
hogeo has quit [Remote host closed the connection]
hogeo has joined #ruby
Mon_Ouie has quit [Read error: Connection reset by peer]
rickruby has joined #ruby
cofin has joined #ruby
devoldmx has quit [Ping timeout: 252 seconds]
cha1tanya has quit [Ping timeout: 248 seconds]
dhruvasagar has joined #ruby
hogeo has quit [Ping timeout: 248 seconds]
agarie has joined #ruby
_nitti has quit [Remote host closed the connection]
tshauck has quit [Ping timeout: 252 seconds]
<Hanmac> apeiros: a view though Google Glass https://twitter.com/jzellis/status/335460563469627392/photo/1/large
<joshu> can someone explain how this test "test_meta_parses_title" in this (http://blakewilliams.me/blog/7-developing-gems-with-tdd-and-minitest-pt-2) tutorial can work if meta is not defined?
corehook has quit [Ping timeout: 256 seconds]
dangerousdave has quit [Read error: Connection reset by peer]
wallerdev has quit [Quit: wallerdev]
corehook has joined #ruby
rickruby has quit [Ping timeout: 248 seconds]
Animawish has quit [Quit: Animawish]
ferdev has joined #ruby
joast has quit [Quit: Leaving.]
<ramblex> joshu: it is defined in parse isn't it?
_veer has joined #ruby
_veer has joined #ruby
_veer has quit [Changing host]
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
<joshu> ramblex but before the parse method is written won't the test return a NoMethodError?
<waxjar> hah, is that from They Live Hanmac?
davetherat has quit [Ping timeout: 248 seconds]
jtharris has joined #ruby
<joshu> I'm trying to write my own test like this: assert_equal "X-FFM: ignore", @mail.header['X-FFM'] but I get a NoMethodError when I run the test for "header" which is part of the mail gem. It doesn't help if I require the mail gem in the test file
<ramblex> yeh, the article's about TDD, writing the tests first, then writing just enough code to make the test pass
tommyvyo has joined #ruby
<joshu> ramblex I'm trying to learn from it and do the same but my first test maybe I'm writing it wrong
<Hanmac> waxjar: yeah you are right
tockitj has joined #ruby
<waxjar> hehe, nice
<joshu> I setup a fixture which is an email message on disk. It reads it fine. I want to write a method which will check for a specific header and if it's present do something else. I can write that code like this
monkegjinni has quit [Read error: Connection reset by peer]
<joshu> if @mail.header['X-FFM'].to_s == "ignore"
<joshu> # $stderr.puts "This email has already been processed"
skattyadz has quit [Quit: skattyadz]
altamic has joined #ruby
<joshu> but if I want to start with the test wouldn't I write something like assert_equal "X-FFM: ignore", @mail.header['X-FFM']
monkegjinni has joined #ruby
daniel_- has quit [Ping timeout: 256 seconds]
GeissT has quit [Quit: MillBroChat AdIRC User]
<halfie> http://rubygems.org/latest_specs.4.8.gz <== where is the file format of this index file described?
monkegji_ has joined #ruby
juarlex has quit [Remote host closed the connection]
monkegjinni has quit [Ping timeout: 264 seconds]
skattyadz has joined #ruby
<apeiros> Hanmac: heh, yeah, I've seen that
juarlex has joined #ruby
AndChat| has joined #ruby
Banistergalaxy has quit [Ping timeout: 256 seconds]
girija has quit [Read error: Connection timed out]
baordog has joined #ruby
<baordog> Morning
_KGBot_ has joined #ruby
girija has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
kaliosas has joined #ruby
<baordog> I have a question: How do I send a variable into a function parameter? I.e I have Time.new(year,month,day), and I want to specify those in variables like @year
roadt_ has joined #ruby
* kaliosas b.uy cs, nfs,cod,nba and other steam acc/gifts. /q me
osvico has quit [Ping timeout: 256 seconds]
tomku has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Xeago has quit [Remote host closed the connection]
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
monkegji_ has quit [Read error: Connection reset by peer]
gaahrdner has joined #ruby
monkegjinni has joined #ruby
<halfie> rambler, awesome, thanks!
Davey has joined #ruby
* kaliosas b.uy cs, nfs, cod, dirt, nba and other steam acc/gifts. /q me
kaliosas has quit [Killed (idoru (Spam is off topic on freenode.))]
pipework has joined #ruby
io_syl has quit [Quit: Computer has gone to sleep.]
falood has quit [Remote host closed the connection]
a_a_g_0 has quit [Quit: Leaving]
Iszak has joined #ruby
Iszak has quit [Max SendQ exceeded]
workmad3 has joined #ruby
Iszak has joined #ruby
Iszak has quit [Max SendQ exceeded]
Akuma has quit [Quit: So long sukkas!]
r0bglees0n has joined #ruby
monkegjinni has quit [Remote host closed the connection]
backjlack has quit [Remote host closed the connection]
monkegjinni has joined #ruby
YuryBatenko has joined #ruby
momomomomo has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
Akuma has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
alx- has joined #ruby
monkegjinni has joined #ruby
Xeago has joined #ruby
teclator has quit [Ping timeout: 246 seconds]
ikea_meatballs has joined #ruby
chrishunt has quit [Quit: ZzZzZz...]
dr00bie has quit [Read error: Operation timed out]
chrishunt has joined #ruby
interactionjaxsn has joined #ruby
sayan has joined #ruby
shevy has joined #ruby
<shevy> test
<ramblex> pass
ikea_meatballs has quit [Client Quit]
wallerdev has joined #ruby
leonidlm has quit [Read error: Operation timed out]
backjlack has joined #ruby
akells` has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
rhys has joined #ruby
fdelacruz has joined #ruby
ColKurtz has joined #ruby
cofin has quit [Quit: cofin]
<ericwood> 1 tests, 1 assertions, 0 failures, 0 errors, 0 skips
cofin has joined #ruby
ColKurtz has quit [Client Quit]
invisime has left #ruby [#ruby]
enebo has joined #ruby
<baordog> anyone here know sinatra?
tesuki has joined #ruby
justsee has quit [Ping timeout: 256 seconds]
pagios has joined #ruby
<pagios> hello i would like to throw a script into the background attached to a certain tty like pts/1, when i include the script in /etc/rc.local it is getting assign to console "?" how can i attach it to a specific terminal in bg? thanks
<pagios> <pagios> root 1856 1693 0 12:43 ? 00:00:02 ruby /var/www/myapp.rb
solidoodlesuppor has quit [Remote host closed the connection]
mmitchell has joined #ruby
brain_shim has joined #ruby
mneorr has joined #ruby
dr00bie has joined #ruby
codecop has quit [Remote host closed the connection]
dangerousdave has joined #ruby
arya has quit [Ping timeout: 248 seconds]
fdelacruz has quit [Quit: EPIC5-1.1.5[1683] - amnesiac : Press [ESC] to detonate or any other key to explode]
blacktul_ has joined #ruby
<awwaiid> pagios, I think that attaching to a tty that you aren't started on isn't very normal. What are you trying to achieve?
leonidlm has joined #ruby
ikea_meatballs has joined #ruby
<pagios> awwaiid: i have a script that needs to run normally only when attached to a tty
<pagios> if it is not attached like for example: root 1856 1693 0 12:43 ? 00:00:02 ruby /var/www/myapp.rb it will not work
Neomex has joined #ruby
bluOxigen has joined #ruby
blacktulip has quit [Ping timeout: 256 seconds]
<awwaiid> what about it requires a tty?
slainer68 has quit [Remote host closed the connection]
sailias has joined #ruby
<awwaiid> what is coming to mind is screen and tmux, btw
<pagios> i dont know, if i fire it from a tty prompt it works, if i fire it from rc.local it doesnt
arya has joined #ruby
<awwaiid> do you have the source code for this program?
blueOxigen has quit [Ping timeout: 256 seconds]
<pagios> no
<waxjar> there's http://rubydoc.org/stdlib/core/IO#tty%3F-instance_method
<pagios> that for testing if it iattached or not
ffranz has joined #ruby
philcrissman has quit [Remote host closed the connection]
dr_bob has joined #ruby
frem has joined #ruby
<awwaiid> pagios: you could try something like /usr/bin/tmux new-session -d '/usr/local/bin/myscript'
<awwaiid> if you have tmux
tshauck has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
<awwaiid> that will make a virtual tty, and as a bonus you can reconnect to it anytime you want
<pagios> i aictually do
<pagios> lets see
<awwaiid> reconnect to it as the same user, at least
Macaveli has joined #ruby
corehook has quit [Ping timeout: 256 seconds]
johnkary has quit [Quit: @johnkary]
ikea_meatballs has quit [Quit: ikea_meatballs]
tagrudev has quit [Remote host closed the connection]
nari has quit [Ping timeout: 276 seconds]
kil0byte has quit [Ping timeout: 246 seconds]
wolcanus has joined #ruby
bklane has joined #ruby
falood has joined #ruby
ioNull has quit [Quit: Computer has gone to sleep.]
jlast has joined #ruby
monkegjinni has quit [Remote host closed the connection]
guiocavalcanti has quit [Remote host closed the connection]
_KGBot_ is now known as uncleBob_
guiocavalcanti has joined #ruby
kil0byte has joined #ruby
robbyoconnor has joined #ruby
megha has joined #ruby
acrussell has joined #ruby
mikepack has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
_veer has quit [Ping timeout: 248 seconds]
awarner has joined #ruby
<pagios> awarner: seems my problem is not related to tty
breadthfirst has quit [Remote host closed the connection]
<pagios> i used tmux got assigned to a virtual console and problem is till therew
kpshek has joined #ruby
<pagios> what could it be related to? if i run it automatically via rc.local i fails, if i kill it and rerun it form shell it works
breadthfirst has joined #ruby
<awwaiid> the user it's being run as perhaps?
<awwaiid> kill it you say... so it hangs when run from rc.local?
acrussell has left #ruby [#ruby]
JMcAfreak has quit [Quit: Leaving]
guiocavalcanti has quit [Ping timeout: 256 seconds]
<pagios> it just fires up in the background
<pagios> as root
brain_shim has quit [Ping timeout: 240 seconds]
<pagios> but fails when the ruby script is called via sinatra channel
<awwaiid> I'm starting to think you might actually have to specify what this program is doing
generalissimo has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
<pagios> awwaiid: it is actually a ruby script that runs another bash command when sinatra channel is called
bozhidar has joined #ruby
vlad_starkov has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
_maes_ has joined #ruby
<awwaiid> ok, one diagnostic thing you might do is capture the IO from these various bits
<awwaiid> like insert some "| tee output.log" into execution lines
jerius_ has joined #ruby
<pagios> i can see the output since i redirected it to stdout
<awwaiid> maybe one of these things in the chain is telling you what's wrong, and you just can't hear it
edwinallenz has joined #ruby
jprovazn is now known as jprovazn_away
monkegjinni has joined #ruby
<pagios> it says error parameter is not supported
<awwaiid> interesting interesting
<awwaiid> and it doesn't say that when you run it by hand
<pagios> correct
eliasp has quit [Ping timeout: 276 seconds]
<awwaiid> and ... is there something like an "error" parameter?
<pagios> let me share with you the complete error
jerius has quit [Ping timeout: 240 seconds]
jerius_ is now known as jerius
<pagios> this script doesn't support the requested option
<pagios> thats all
Rumsteak has quit [Quit: Rumsteak]
xiella has joined #ruby
axl_ has quit [Quit: axl_]
<awwaiid> sure sounds like it thinks it's getting a param or something. Does this command use any configuration files?
vlad_starkov has quit [Ping timeout: 256 seconds]
<awwaiid> another thing that is often different in rc.local is the environment
devoldmx3 has quit [Ping timeout: 256 seconds]
<pagios> yes it actually reads environmental variables
<awwaiid> fantastic
<awwaiid> where do those environment vars get set?
graydot has quit [Ping timeout: 256 seconds]
daniel_- has joined #ruby
<pagios> bashrc
<awwaiid> ah great!
`p has quit [Read error: Connection reset by peer]
<awwaiid> root's?
<pagios> yes
<awwaiid> cool. So that doesn't really get used by rc.local I think
<awwaiid> as a test, drop those ENV settings right into the rc.local
<pagios> hmm ok what could be an alternative?
<pagios> hmm ok
<pagios> export you mean
<awwaiid> ya
<awwaiid> you can also put them on the same line as the command itself, like: FOO=bar FOO2=bar2 /my/command/here
<awwaiid> I think
<pagios> lets see
xiella has quit [Ping timeout: 240 seconds]
devoldmx has joined #ruby
rrr has joined #ruby
vlad_starkov has joined #ruby
shorty has joined #ruby
falood has quit [Remote host closed the connection]
robbyoconnor has quit [Ping timeout: 248 seconds]
eliasp has joined #ruby
jnoob22_ has joined #ruby
robbyoconnor has joined #ruby
Akuma has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Ping timeout: 240 seconds]
_veer has joined #ruby
_veer has joined #ruby
bean__ has joined #ruby
jnoob22 has quit [Ping timeout: 256 seconds]
mneorr has quit [Remote host closed the connection]
Akuma has joined #ruby
forrest has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
<edwinallenz> exit
guiocavalcanti has joined #ruby
Akuma has quit [Read error: Connection reset by peer]
w|t has quit [Ping timeout: 246 seconds]
tshauck has quit [Ping timeout: 252 seconds]
ayaz has quit [Quit: Bye!]
wsterling has joined #ruby
Akuma has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
showtime has quit [Ping timeout: 248 seconds]
jeffreylevesque_ has joined #ruby
w|t has joined #ruby
mneorr has joined #ruby
gasbakid has quit [Ping timeout: 256 seconds]
zeeraw has quit [Quit: Computer has gone to sleep.]
PragCypher has joined #ruby
nezumi has joined #ruby
PragCypher has quit [Client Quit]
wsterling has quit [Remote host closed the connection]
guiocavalcanti has quit [Remote host closed the connection]
tyl has quit [Read error: Connection reset by peer]
banghouse2 has joined #ruby
tyl has joined #ruby
mneorr has quit [Remote host closed the connection]
jonathanwallace1 has quit [Read error: Operation timed out]
jeffreylevesque has quit [Ping timeout: 264 seconds]
alexmreis has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
aganov has quit [Remote host closed the connection]
monkegjinni has joined #ruby
PragCypher has joined #ruby
banghouse2 is now known as banghouse
monkegjinni has quit [Remote host closed the connection]
monkegjinni has joined #ruby
w|t has quit [Quit: Textual IRC Client: www.textualapp.com]
interactionjaxsn has quit [Remote host closed the connection]
interactionjaxsn has joined #ruby
guiocavalcanti has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
leonidlm has quit [Quit: Leaving]
sambao21 has joined #ruby
ioNull has joined #ruby
wsterling has joined #ruby
interactionjaxsn has quit [Ping timeout: 248 seconds]
PragCypher has quit [Quit: Leaving]
alexmreis has left #ruby [#ruby]
lewix has joined #ruby
wolcanus has quit [Remote host closed the connection]
havenwood has joined #ruby
robbyoconnor has quit [Max SendQ exceeded]
wsterling has quit [Remote host closed the connection]
rrr has quit [Ping timeout: 250 seconds]
robbyoconnor has joined #ruby
olleromo has quit [Read error: Connection reset by peer]
olleromo has joined #ruby
interactionjaxsn has joined #ruby
hamakn has quit [Remote host closed the connection]
lethjakman has joined #ruby
rickmasta has joined #ruby
codecop has joined #ruby
<pagios> how can i export env varialbesi n ruby?
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
jonathanwallace1 has joined #ruby
<Hanmac> apeiros: look what happend ... http://www-03.ibm.com/press/us/en/pressrelease/41095.wss ... COBOL in the CLOUD oO
<dr_bob> You modify ENV
monkegjinni has quit [Remote host closed the connection]
Cultofmetatron has joined #ruby
<pagios> dr_bob: how?
momomomomo has quit [Quit: momomomomo]
olleromo has quit [Ping timeout: 260 seconds]
wolcanus has joined #ruby
shevy has quit [Remote host closed the connection]
blandflakes has joined #ruby
nomenkun has quit [Ping timeout: 256 seconds]
<pagios> dr_bob: ENV['EDITOR'] = 'gedit' ?
<pagios> is that the way to export an env variable in ruby>?
ckrailo has joined #ruby
Cultofmetatron has quit [Read error: Connection reset by peer]
Kricir has joined #ruby
<greenarrow> how do i get the load file of a file which has been read in using tempfile
<greenarrow> load time*
<waxjar> pagios, yeah
PragCypher has joined #ruby
<waxjar> if you need to set a lot of them, have a look at .env
<waxjar> *dotenv
<apeiros> Hanmac: omg
sambao21 has quit [Quit: Computer has gone to sleep.]
daniel_hinojosa has joined #ruby
monkegjinni has joined #ruby
robbyoconnor has quit [Ping timeout: 248 seconds]
<Hanmac> i am suprised that COBOL still exist
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
ariedler has joined #ruby
kpshek has quit []
io_syl has joined #ruby
grobb has quit [Read error: Connection timed out]
grobb has joined #ruby
<pagios> ok i am running into this problem, i have a ruby script that is using sinatra, and on channel call "/start" for example, a system level command is executed, now all works fine if i do it from the shell, i am triyng to run it at boot time and this system command needs environmental variables to run, i am trying to set them through ruby using ENV['env1]='...' but still the command fails because of not seeing the env variables, what am i missing
jnoob22_ has quit [Remote host closed the connection]
tundrax has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
jnoob22 has joined #ruby
zeeraw has joined #ruby
<joshu> anyone know how to write mini tests specifically with the mail gem? I'm not getting anywhere on my own :(
Ontolog has joined #ruby
kil0byte has quit [Remote host closed the connection]
sleetdrop has joined #ruby
arturaz has quit [Ping timeout: 276 seconds]
<Morrolan> joshu: Put the code and potential error messages on gist.github.com and throw the link in here. :)
dhruvasagar has quit [Read error: Operation timed out]
pskosinski has quit [Remote host closed the connection]
wsterling has joined #ruby
tjbiddle has joined #ruby
nedbat has joined #ruby
pskosinski has joined #ruby
<nedbat> I'm using sh() in a Rakefile to get some data before performing other operations. I'd like this sh() line not to echo to the terminal. Is there a way to suppress that?
arya has quit [Ping timeout: 248 seconds]
mityaz has joined #ruby
bradhe has joined #ruby
dhruvasagar has joined #ruby
tk_ has quit [Quit: ばいばい]
rismoney has joined #ruby
robottinosino has quit [Ping timeout: 256 seconds]
carlyle has joined #ruby
jdunck has joined #ruby
threesome has quit [Ping timeout: 248 seconds]
davetherat has joined #ruby
bradhe has quit [Remote host closed the connection]
persand has quit [Quit: persand]
l33 has joined #ruby
falood has joined #ruby
daniel_- has quit [Ping timeout: 241 seconds]
arya has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
arya has quit [Client Quit]
breakingthings has joined #ruby
<joshu> Morrolan I don't know how to write tests with the mail gem. In my parse method I want to check for a specific header X-FFM: ignore.
<nedbat> another question: What resource would you recommend for a thorough introduction to Ruby for an experienced Python programmer?
axl_ has joined #ruby
buibex has joined #ruby
geggam has joined #ruby
Macaveli has left #ruby ["Leaving"]
slash_nick has joined #ruby
vlad_starkov has joined #ruby
<joshu> nedbat maybe Ruby Monk, Code School, http://ruby.learncodethehardway.org/
splittingred has quit [Quit: splittingred]
ChrisBolton has joined #ruby
<nedbat> joshu: thanks, but if learn ruby the hard way is like Learn Python The Hard Way, it's definitely aimed at new programmers, right?
splittingred has joined #ruby
<waxjar> nedbat, it's not very thorough but should get you up to speed: http://www.apeth.com/rubyIntro/justenoughruby.html
<Morrolan> joshu: And where/what does fail?
ananthakumaran has joined #ruby
jdunck has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
sayan has quit [Read error: Connection reset by peer]
<Morrolan> joshu: One thing which is probably not going to work is the "require 'FFM'". At the very least it should be lowercase, since the file's name is lowercase.
<Morrolan> (Though I am not sure how it works with case-insensitive file systems.)
bradhe has joined #ruby
jmsbrwr has quit [Quit: Leaving]
rakl has joined #ruby
<Morrolan> joshu: Apart from that your test will depend on what you expect FFM#parse to do. Should it return the header? Should it raise an exception? Should it run around in circles?
blaxter has quit [Ping timeout: 245 seconds]
rakl has quit [Max SendQ exceeded]
dhruvasagar has quit [Ping timeout: 248 seconds]
buibex has quit [Remote host closed the connection]
rakl has joined #ruby
vlad_starkov has quit [Ping timeout: 256 seconds]
<joshu> Morrolan ok I changed the require thanks for spotting.
<joshu> Morrolan I'm trying to test if a specific header is present
Glacer232 has joined #ruby
Glacer232 has quit [Max SendQ exceeded]
<joshu> I'm running around in circles :(
Glacer232 has joined #ruby
Glacer232 has quit [Max SendQ exceeded]
arietis has joined #ruby
<Morrolan> So the parse() function should check if a specific header is present, you say?
<Morrolan> What should it do if the header is present? What should it do if it is not present?
devoldmx has quit [Ping timeout: 256 seconds]
<joshu> Yes as a start anyway. If it is present it should exit the script and not continue. If it is present it should continue
Glacer232 has joined #ruby
ciscoswitch has joined #ruby
devoldmx has joined #ruby
<joshu> I can write the code which works. But I'd like to learn how to write a test and then the code.
<Morrolan> Will the parse function merely return whether the header is present, or will, if it is present, it set some instance variables, read from a file. print to the console, or what exactly?
<geggam> ty joshu ... i just paid for that book... it was what i was looking for
mikepack has quit [Ping timeout: 252 seconds]
niceguyjames has quit [Quit: Textual IRC Client: www.textualapp.com]
<joshu> Right if the header is present exit the script exit(1) $stderr.puts "This email has already been processed". If not present get the to and from addresses.
<joshu> geggam no worries ;)
cj3kim has joined #ruby
altamic has quit [Quit: altamic]
alexmreis has joined #ruby
<joshu> nedbat I've just browsed it so not sure
jlast has quit [Remote host closed the connection]
cj3kim has quit [Remote host closed the connection]
<joshu> Morrolan does that make sense?
<Morrolan> In this case you will want to test that, when the header is not present, it prints to stderr, for example. Minitest has an assertion called assert_output which you could use to do that.
Dummies_freelanc has quit [Ping timeout: 256 seconds]
markalanevans has joined #ruby
jlast has joined #ruby
robottinosino has joined #ruby
<Morrolan> Now as for the case where the header is present. Once it extracted the to and from addresses, what does it do with those? Does it return them? Does it print them somewhere?
<Morrolan> Err, I switched up the header present / header not present situation.
wolcanus has quit [Remote host closed the connection]
cpruitt_ has joined #ruby
filipe_ has quit [Remote host closed the connection]
hongoBlow has joined #ruby
cpruitt_ has quit [Read error: Connection reset by peer]
buibex has joined #ruby
buibex has quit [Remote host closed the connection]
cpruitt_ has joined #ruby
<hongoBlow> hello
sambao21 has joined #ruby
JMcAfreak has joined #ruby
cpruitt has quit [Ping timeout: 248 seconds]
cpruitt_ is now known as cpruitt
sambao21 has quit [Client Quit]
<joshu> Morrolan ok. But how do I get my test to check for the header? When I write assert_equal "X-FFM: ignore", @mail.header['X-FFM']
morgajel has joined #ruby
ffranz has quit [Quit: Leaving]
johnrlive has joined #ruby
<Morrolan> You don't check the header. You check the parse function.
Neomex has quit [Ping timeout: 240 seconds]
<Morrolan> First manually create a mail *with* the header and pass it to this FFM object, then call its parse() function. Then you assert that it does print to stderr with your desired output.
guardadigital_ has joined #ruby
mikepack has joined #ruby
zeeraw has quit [Quit: Computer has gone to sleep.]
<Morrolan> Then you manually create a mail without the header and do the same procedure again. Just that, this time, you assert that, instead of printing to stderr, it does whatever it's supposed to do.
eykosiou_ has joined #ruby
blaxter has joined #ruby
`brendan has joined #ruby
<Morrolan> A unit test works by 1) you manually creating inputs to functions 2) you calling the function 3) you checking that the the function does what it's supposed to do.
<joshu> ok so my fixture as I've learnt is just the email saved to disk with the header present.
hongoBlow has left #ruby [#ruby]
sambao21 has joined #ruby
chrishough has joined #ruby
suporte85 has quit [Ping timeout: 256 seconds]
rakl has quit [Quit: sleeping]
uncleBob_ has quit [Remote host closed the connection]
ffranz has joined #ruby
browndawg has quit [Quit: Leaving.]
eykosioux has quit [Ping timeout: 248 seconds]
<joshu> So my first test should be like this assert_output "This email has already been processed"
johnrlive has quit [Remote host closed the connection]
tjbiddle has quit [Quit: tjbiddle]
Spami_ has joined #ruby
arya has joined #ruby
rads has joined #ruby
joonty has quit [Quit: leaving]
<Morrolan> Read the email from the file, pass it to the FFM object, call parse, make sure that it outputs the error message, yes.
tylersmith has joined #ruby
bradhe has quit [Remote host closed the connection]
akells` has quit [Remote host closed the connection]
<Morrolan> You might want to revamp the way which FFM#initialize works, by the way. It is, hmm, slightly confusing. Simply make its one argument be a string, which it then stores in an instance variable, instead of having it either take a string or a path to a file depending on the environment.
Spami has quit [Ping timeout: 264 seconds]
thehandler has quit [Ping timeout: 264 seconds]
bradhe has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
pcarrier_ has quit [Quit: Textual IRC Client: www.textualapp.com]
akells` has joined #ruby
girija has quit [Ping timeout: 256 seconds]
johnnyfuchs has joined #ruby
yellow5 has joined #ruby
<joshu> Morrolan I had just @mail = Mail.new(STDIN.read), but when I tried testing with a file I kept getting errors as there was nothing on STDIN so that's why I wrote that conditional. I don't know how else to do it except for comment and uncomment a separate line such as @mail = Mail.new(File.read(path))
saarinen has joined #ruby
<joshu> that's why I had to put this at the end of the file too if __FILE__ == $PROGRAM_NAME
<joshu> FFM.new(STDIN)
<joshu> end
saarinen has quit [Client Quit]
<joshu> or else mintiest would throw an error
<Morrolan> Don't make FFM read from stdin directly. Make it take a string as an argument, for example.
<Morrolan> I can't really advise you on that without knowing what 'FFM' is, or how it'll be part of your software.
robbyoconnor has joined #ruby
eldariof has joined #ruby
<joshu> I will be happy to explain more.
Cultofmetatron has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
<joshu> FFM is "simply" a ruby script which will receive email on STDIN via postfix pipe. FFM is going to be used to parse 4 specific types of emails.
zeeraw has joined #ruby
sailias has quit [Quit: Leaving.]
sambao21 has quit [Quit: Computer has gone to sleep.]
dhruvasagar has joined #ruby
mahmoudimus has joined #ruby
sambao21 has joined #ruby
noname001 has quit [Remote host closed the connection]
jlast has quit [Remote host closed the connection]
<Morrolan> I'll be leaving soon, got a fest to attend to. At any rate you might want to have the FFM class' constructor take a string as its argument, and simply have code in the script (outside the class) which a) reads from stdin b) creates a new FFM object and passes it the email which it read from stdin.
<waxjar> what do you guys think: evil or awesome? https://gist.github.com/britishtea/5613373
<Morrolan> If there's any other questions, there'll be plenty of others to help. :)
zeade has joined #ruby
bozhidar has quit [Read error: Operation timed out]
blaxter has quit [Ping timeout: 245 seconds]
f0ster_ is now known as f0ster
f0ster has quit [Changing host]
f0ster has joined #ruby
falood has quit [Read error: Connection reset by peer]
jlast has joined #ruby
futilegames has quit [Quit: futilegames]
undersc0re97 has quit [Ping timeout: 245 seconds]
<joshu> ok Morrolan thanks for your help and enjoy the fest ;)
enebo has quit [Quit: enebo]
ghr has quit [Quit: Computer has gone to sleep.]
dross_ has joined #ruby
undersc0re97 has joined #ruby
hamakn has joined #ruby
brain_shim has joined #ruby
blueOxigen has joined #ruby
Voodoofish430 has joined #ruby
jeebster has joined #ruby
wolcanus has joined #ruby
xcv has joined #ruby
wolcanus has left #ruby [#ruby]
Randomage has quit [Ping timeout: 256 seconds]
tyl has quit [Quit: Computer has gone to sleep.]
rae__ has joined #ruby
falood has joined #ruby
carlyle has quit [Remote host closed the connection]
aknewhope has joined #ruby
aknewhope has quit [Changing host]
aknewhope has joined #ruby
<ciscoswitch> anyone good with postfix?
l33 has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 264 seconds]
kn0tsel has joined #ruby
<apeiros> I'd bet the guys over in #postfix are
hamakn has quit [Ping timeout: 256 seconds]
benlieb has joined #ruby
Nuck has joined #ruby
arietis has joined #ruby
workmad3 has joined #ruby
gasbakid has joined #ruby
Voodoofish430 has quit [Quit: Leaving.]
nomenkun has joined #ruby
PragCypher has quit [Quit: Leaving]
tomsthumb has joined #ruby
cofin has quit [Quit: cofin]
includex has joined #ruby
bradhe has joined #ruby
johnrlive has joined #ruby
<otters> haha preposterous
sambao21 has quit [Quit: Computer has gone to sleep.]
blaxter has joined #ruby
apok has joined #ruby
banjara has quit [Quit: Leaving.]
Ontolog has quit [Remote host closed the connection]
<ciscoswitch> apeiros: I can't talk in perl, not registered
kpshek has joined #ruby
sambao21 has joined #ruby
tootubular has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
Voodoofish430 has joined #ruby
sam113101 has quit [Quit: WeeChat 0.4.0]
gasbakid_ has joined #ruby
<davidcelis> so register?
jgrevich has joined #ruby
<apeiros> I'm not quite sure why you'd ask a postfix question in perl
sam113101 has joined #ruby
<apeiros> about the same unsure as about asking it in ruby…
<davidcelis> they both start with a "p"
<davidcelis> that makes them related right?
<apeiros> progress!
<davidcelis> that also starts with a "p"! yay!
<apeiros> so from ruby to perl the progress is that at least the things start with the same letter
<davidcelis> and perl is an obvious progression because it has the same number of letters as ruby
breadthfirst has quit [Ping timeout: 248 seconds]
gasbakid has quit [Ping timeout: 248 seconds]
kf8a has quit [Quit: Computer has gone to sleep.]
mando has joined #ruby
arya has quit [Ping timeout: 256 seconds]
persand has joined #ruby
Voodoofish4302 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
kpshek has quit []
tjbiddle has joined #ruby
alexmreis has left #ruby [#ruby]
<ciscoswitch> apeiros: your /whois on me is misleading you, I'm doing separate work on perl, totally unrelated, not that it matters
<apeiros> I didn't do a whois
<apeiros> I say it's stupid to ask a postfix question in #perl or #ruby
<apeiros> ask in #postfix
Glacer232 has quit [Quit: Computer has gone to sleep.]
DanKnox_away is now known as DanKnox
<ciscoswitch> oh, I typed #perl
<ciscoswitch> I meant to type #postfix
<ciscoswitch> I'm talking up a storm in #perl about perl
Voodoofish430 has quit [Ping timeout: 264 seconds]
<ciscoswitch> about how it's so much better than ruby
ramblex has quit [Remote host closed the connection]
sleetdrop has quit [Quit: Computer has gone to sleep.]
Cultofmetatron has quit [Remote host closed the connection]
<davidcelis> ciscoswitch: orly
<davidcelis> so how's perl 6 coming
<davidcelis> that been released yet?
enebo has joined #ruby
Cultofmetatron has joined #ruby
arya has joined #ruby
banjara has joined #ruby
rakl has joined #ruby
Cultofme_ has joined #ruby
Cultofmetatron has quit [Read error: Connection reset by peer]
LBRapid_ has quit [Remote host closed the connection]
benlieb has quit [Quit: benlieb]
twoism has joined #ruby
Gue______ has joined #ruby
Gue______ is now known as RubNoob
jonathanwallace2 has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
ikea_meatballs has joined #ruby
mklappstuhl has joined #ruby
LBRapid has joined #ruby
<ciscoswitch> davidcelis: dude we're practically on perl8
<ciscoswitch> we have people round the clock talking nagging larry wall in his mom's basement
jonathanwallace1 has quit [Ping timeout: 264 seconds]
<davidcelis> haha
<ciscoswitch> he's going to release it before ruby2 is considered stable for production
insel has joined #ruby
peteyg has joined #ruby
<ciscoswitch> (I already use ruby2 in production)
<ciscoswitch> anywaoy
<ciscoswitch> anyway
<davidcelis> i havent had issues with it in production
<ciscoswitch> it's faster
rupee has joined #ruby
c0rn has joined #ruby
forrest has quit [Quit: Leaving]
stkowski has joined #ruby
carlyle has joined #ruby
jonathanwallace2 has quit [Ping timeout: 252 seconds]
mrsolo has joined #ruby
[[thufir]] has joined #ruby
<C0deMaver1ck> WebBrick kept segfauling on 2.0-p0
<C0deMaver1ck> had to revert to 1.9.3, works now on the new 2.0 patch level though
<davidcelis> lol WEBrick
<davidcelis> why would you use that
<ciscoswitch> I use webrick in production
<ciscoswitch> it's so small it solves the c10k problem
robbyoconnor has quit [Ping timeout: 256 seconds]
timmow has quit [Remote host closed the connection]
nomenkun has quit [Remote host closed the connection]
<davidcelis> just use nginx
vlad_starkov has joined #ruby
* apeiros thinks ciscoswitch is a bot :-p
<C0deMaver1ck> I used nginx proxied to webrick for a bit
<C0deMaver1ck> now I'm using puma
rippa has joined #ruby
<apeiros> at least the nonsensometer is spiking
nomenkun has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
<davidcelis> i use puma as well
allaire has joined #ruby
saarinen has joined #ruby
ebouchut has joined #ruby
kidoz has joined #ruby
zeade has quit [Quit: Leaving.]
pagios has left #ruby ["Leaving"]
mockra has joined #ruby
centr0 has joined #ruby
carlyle has quit [Ping timeout: 245 seconds]
zeade has joined #ruby
<edwinallenz> d
<edwinallenz> d
<edwinallenz> d
<edwinallenz> d
<edwinallenz> d
<edwinallenz> d
includex has quit [Quit: Leaving...]
arietis has quit [Quit: Computer has gone to sleep.]
<davidcelis> ...
edwinallenz was kicked from #ruby by apeiros [no spam]
<C0deMaver1ck> coulda been a cat
<apeiros> cats aren't allowed to spam either.
* apeiros hardliner
<C0deMaver1ck> lol
carlyle has joined #ruby
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
superscott[8] has joined #ruby
kn0tsel has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 248 seconds]
tesuki_ has joined #ruby
alvaro_o has joined #ruby
allyraza has joined #ruby
<allyraza> hi guys
<havenwood> hey
chrishunt has quit [Ping timeout: 248 seconds]
timonv has quit [Remote host closed the connection]
<allyraza> how can i improve my ruby code
<bean__> lol
<bean__> thats a rather broad question
<allyraza> bean: what is so funny
adambeynon has joined #ruby
<epitron> allyraza: follow github's style guide
<bean__> its just a rather broad question, allyraza
<havenwood> allyraza: First make sure the code isn't already perfect!
<allyraza> what i mean by improve something like jslint
<allyraza> do we have linter for ruby
<epitron> ruby parsing is really complex
<epitron> i don't know if anyone's bothered
ipalaus has joined #ruby
ipalaus has quit [Changing host]
ipalaus has joined #ruby
<allyraza> have been programming ruby for long i started back in 2006 but i feel its not perfect
tesuki has quit [Ping timeout: 256 seconds]
<havenwood> allyraza: ruby-lint: https://github.com/YorickPeterse/ruby-lint#readme
chrishunt has joined #ruby
<allyraza> havenwood: thanks
<allyraza> that is what i needed
alvaro_o has quit [Client Quit]
saarinen has quit [Quit: saarinen]
xcv has quit [Remote host closed the connection]
jerius_ has joined #ruby
devoldmx3 has joined #ruby
RonScagz has joined #ruby
grobb has quit [Read error: Connection timed out]
xcv has joined #ruby
allyraza has quit [Client Quit]
moted has quit [Quit: moted]
monkegjinni has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 256 seconds]
moted has joined #ruby
saarinen has joined #ruby
robottinosino has quit [Ping timeout: 264 seconds]
rubynobe has joined #ruby
AlSquire has quit [Quit: Quitte]
jerius has quit [Ping timeout: 245 seconds]
browndawg has joined #ruby
monkegjinni has joined #ruby
jerius_ is now known as jerius
devoldmx has joined #ruby
<rubynobe> I just started learning ruby
xcv_ has joined #ruby
<rubynobe> I know how to class basic classes what is the next step guys
vlad_starkov has joined #ruby
alvaro_o has joined #ruby
alvaro_o has quit [Client Quit]
blacktulip has joined #ruby
<rubynobe> make*
insel has quit [Ping timeout: 264 seconds]
<bean__> rubynobe: i'd go through a good ruby tutorial online, rubymonk, etc.
<rubynobe> bean__: i did the basics i wanna move forward
<bean__> Then start building something :)
devoldmx3 has quit [Ping timeout: 264 seconds]
monkegjinni has quit [Remote host closed the connection]
<rubynobe> bean__: what should i build at work we do rails i wanna do something in ruby
chandankumar has quit [Remote host closed the connection]
Kar- has joined #ruby
xcv has quit [Read error: Connection reset by peer]
AlSquire has joined #ruby
kn0tsel has joined #ruby
<rubynobe> anyone
blacktul_ has quit [Ping timeout: 276 seconds]
<havenwood> rubynobe: What about a some code katas? Have you done ruby-koans, ruby-warrior, ruby-mmo, project-euler, etc?
BonSequitur has joined #ruby
<nedbat> rubynobe: make a madlibs game
ChrisBolton has quit [Quit: chrisbolton]
<jeebster> rubynobe: build me a stock exchange analayzer
dhruvasagar has joined #ruby
<rubynobe> havenwood: no I did not know about this stuff
johnkary has joined #ruby
<havenwood> rubynobe: Project Euler proposes mathematical problems that can be solved with the help of a programming language: http://projecteuler.net/problems
jonathanwallace has joined #ruby
tesuki_ has quit [Remote host closed the connection]
daniel_- has joined #ruby
<nedbat> rubynobe: project euler problems are often more about math than about programming
<rubynobe> jeebster: lol... I 'm just started ruby I am not sure if i can build a real life project as yet
<rubynobe> I*
<havenwood> rubynobe: Ruby Warrior is a game where you code your way through a little game: https://github.com/ryanb/ruby-warrior
<havenwood> rubynobe: Ruby MMO you make your own bot to compete against others in a little simulation: https://github.com/reedlaw/ruby-mmo
<jeebster> rubynobe: just build some basic i/o app then
Neomex has joined #ruby
<rubynobe> jeebster: what you mean i/o app
<havenwood> rubynobe: ruby-warrior is fun and starts out beginner level
<rubynobe> havenwood: thank you
monkegjinni has joined #ruby
<havenwood> rubynobe: #gets and #puts are IO (in and out)
<jeebster> rubynobe: take user input, output something
baroquebobcat has joined #ruby
ciscoswitch has left #ruby [#ruby]
kf8a has joined #ruby
<rubynobe> jeebster: I have been doing that for past 1 month
arietis has joined #ruby
girija has joined #ruby
<havenwood> rubynobe: IO can be lots of things, long as they go in and out. :P You can look at the Ruby IO class in the standard library for some info! http://ruby-doc.org/core-2.0/IO.html
spider-mario has joined #ruby
<jeebster> rubynobe: analyze audio files. I dunno
<jeebster> the possibilities are endless
ebouchut has quit [Quit: This computer has gone to sleep]
<jeebster> not sure why you asked otherwise
druonysus has joined #ruby
druonysus has quit [Changing host]
druonysus has joined #ruby
slash_nick has quit [Ping timeout: 248 seconds]
moted has quit [Ping timeout: 252 seconds]
rubynobe has quit [Quit: Page closed]
robottinosino has joined #ruby
jonathanwallace has quit [Ping timeout: 252 seconds]
moted has joined #ruby
elaptics is now known as elaptics`away
<baordog> anyone on here know sinatra?
chrishough has quit [Quit: chrishough]
tomzx_mac has joined #ruby
jonathanwallace has joined #ruby
<havenwood> baordog: Folks know Sinatra. Whats up?
akells` has quit [Remote host closed the connection]
Dummies_freelanc has joined #ruby
Ontolog_ has joined #ruby
akells` has joined #ruby
h8R has joined #ruby
chrishough has joined #ruby
alexmreis has joined #ruby
bklane has quit [Remote host closed the connection]
jonathanwallace has quit [Ping timeout: 276 seconds]
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
chris__ has joined #ruby
syko has joined #ruby
megha has quit [Quit: WeeChat 0.4.0]
<tobiasvl> baordog: just ask your question and people will answer if they know :)
<syko> Question: Whats up with this "Factory Girl" Gem? Its givving me an issue when running se-toolkit. Any ideals?
nedbat has quit [Disconnected by services]
gasbakid_ has quit [Quit: Quitte]
wolcanus has joined #ruby
kn0tsel has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 264 seconds]
tomkad has joined #ruby
srji has joined #ruby
gasbakid has joined #ruby
nedbat_ has joined #ruby
DonRichie has quit [Quit: Verlassend]
marr has quit [Ping timeout: 252 seconds]
fermion has quit [Quit: Computer has gone to sleep.]
kn0tsel has joined #ruby
forrest has joined #ruby
fermion has joined #ruby
<syko> Could not find factory_girl-4.2.0 in any of the sources
<syko> any thiughts?
Xeago has quit [Remote host closed the connection]
kenneth has quit [Quit: kenneth]
kf8a has quit [Quit: Computer has gone to sleep.]
<havenwood> syko: You ran bundle with 'factory-girl' in your Gemfile?
falood has quit [Remote host closed the connection]
<havenwood> syko: Might try asking in #RubyOnRails.
<syko> Ok havenwood, ty
<havenwood> syko: You could try putting "gem 'factory-girl', '4.2.0'" in your Gemfile and rerunning `bundle`.
waxjar has quit [Remote host closed the connection]
wargasm has quit [Ping timeout: 245 seconds]
blueOxigen has quit [Ping timeout: 248 seconds]
Guest27861 has quit [Ping timeout: 248 seconds]
Collin__ has joined #ruby
Kricir has quit [Remote host closed the connection]
bluOxigen has joined #ruby
bluOxigen has quit [Changing host]
bluOxigen has joined #ruby
kidoz has quit [Quit: Ухожу я от вас]
waxjar has joined #ruby
SpxElecxInf has joined #ruby
<syko> havenwood : whats the dir i shoud be putting the gem in
_nitti has joined #ruby
kil0byte has joined #ruby
kf8a has joined #ruby
Mattix has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
wargasm has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
druonysus has quit [Ping timeout: 256 seconds]
Coffers has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
druonysus has joined #ruby
buibex has joined #ruby
zeade has quit [Quit: Leaving.]
wolcanus has quit [Ping timeout: 252 seconds]
<havenwood> syko: In the root directory of the project, is there a file called Gemfile? I'm not sure what you're asking.
jjasonclark has joined #ruby
nedbat_ is now known as nedbat
interactionjaxsn has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
buibex has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 260 seconds]
bluOxigen has joined #ruby
<nedbat> the docs for Dir.entries doesn't mention what order the file names are in. Is it sorted or not?
jp___ has joined #ruby
xcv_ has quit [Remote host closed the connection]
<ericwood> sorted by what?
<jjasonclark> hey all. anyone know what the configure option is for 1.9.3-p429 to use threads? is it --enable-threads=posix or does --disable-pthread do it?
<ericwood> nedbat: I think it's safe to assume it isn't sorted and sort by whatever you'd like!
vlad_sta_ has joined #ruby
<nedbat> ericwood: it's certainly safe to sort them! I just expected a statement one way or the other.
jonathanwallace has joined #ruby
<jjasonclark> @nedbat I wold guess that it is sorted by the filesystem table. what ever is that order
<havenwood> nedbat: I believe in the order returned by the filesystem.
<baordog> havenwood: http://pastie.org/7935753 my variable @pressure in the post route wont render
<ericwood> nedbat: pretend it's like a hash :P
brain_shim has quit [Quit: Leaving]
<baordog> I'm assuming the @pressure variable is not being routed to it
ananthakumaran has joined #ruby
chandankumar has joined #ruby
<havenwood> baordog: You do refer to the instance variable @pressure and then later to the class variable @@pressure. I haven't actually looked closely at the code but I wonder if that discrepancy is related?
<atmosx> nedbat: test it and let us know.
Kricir has joined #ruby
<atmosx> nedbat: yes they are srted, first hidden then regular by alphabetical order
<nedbat> also, the docs seem to be missing a heading right after entries? http://www.ruby-doc.org/core-1.9.2/Dir.html#method-c-entries
Xeago has joined #ruby
<atmosx> I'm off to get some exercise...
<atmosx> later all
cofin has joined #ruby
Collin_ has joined #ruby
pdswan_ has quit [Quit: pdswan_]
rdark has quit [Quit: leaving]
<baordog> havenwood: Changed it. No dice.
vlad_starkov has quit [Ping timeout: 276 seconds]
rae__ has quit [Quit: rae__]
Collin__ has quit [Remote host closed the connection]
axl_ has quit [Ping timeout: 264 seconds]
mklappstuhl has quit [Read error: Connection reset by peer]
mklappstuhl has joined #ruby
<baordog> I don't think @pressure is making it from the class to the route
shevy has joined #ruby
RonScagz has quit [Quit: Linkinus - http://linkinus.com]
<shevy> hi
<shevy> where are the girls
Collin_ has quit [Client Quit]
<otters> in ##php
<waxjar> lol
<nedbat> atmosx: looks like the order is arbitrary (probably based on the filesystem)
<shevy> lol otters
<shevy> why in ##php ??
<nedbat> shevy: grow up
<havenwood> Open source report card: http://osrc.dfm.io/
<shevy> nedbat: do I have to? :(
nwertman has joined #ruby
<nedbat> shevy: no, only if you want people to think well of you.
<shevy> nedbat: I want you to like me
sambao21 has joined #ruby
<otters> havenwood: not enough information for me
<otters> that doesn't feel nice
girija has quit [Remote host closed the connection]
<Hanmac> shevy join #openrubyrmk ... it has a mailing list now ;P
<havenwood> otters: Exclusionary report card is exclusionary.
<shevy> Hanmac: hmm ok... I am on chatzilla right now, and my firefox has problems with flash videos, which I watch, so in case I suddenly go off again, it is because firefox crashed again
_veer has quit [Ping timeout: 248 seconds]
saarinen has quit [Quit: saarinen]
adambeynon has joined #ruby
<baordog> havenwood: nm I fixed it
zeade has joined #ruby
saarinen has joined #ruby
yekta has joined #ruby
kenneth has joined #ruby
stkowski_ has joined #ruby
stkowski has quit [Ping timeout: 264 seconds]
stkowski_ is now known as stkowski
_veer has joined #ruby
_veer has joined #ruby
_veer has quit [Changing host]
slash_nick has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
blaxter has quit [Ping timeout: 260 seconds]
<havenwood> Ooh, you can change Github repository names now and get a redirect... https://github.com/blog/1508-repository-redirects-are-here
rezzack has joined #ruby
bklane has joined #ruby
monkegjinni has quit [Ping timeout: 248 seconds]
ioNull has quit [Quit: Computer has gone to sleep.]
jp___ is now known as jps
kn0tsel has quit [Remote host closed the connection]
aedornm has joined #ruby
roadt_ has quit [Ping timeout: 246 seconds]
shevy has quit [Remote host closed the connection]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
JZTech101 has joined #ruby
20WACGM5G has joined #ruby
20WACGM5G has quit [Read error: Connection reset by peer]
shevy has joined #ruby
JZTech101 has quit [Read error: Connection reset by peer]
tesuki has joined #ruby
<shevy> Hanmac: what was the channel name again?
JZTech101 has joined #ruby
Guest27861 has joined #ruby
breadthfirst has joined #ruby
poga has joined #ruby
niceguyjames has joined #ruby
csaunders has joined #ruby
jps is now known as jpstock
niceguyjames has quit [Client Quit]
vlad_sta_ has quit [Ping timeout: 248 seconds]
zeade has quit [Quit: Leaving.]
_nitti has quit [Remote host closed the connection]
tesuki has quit [Ping timeout: 245 seconds]
ariedler has quit [Remote host closed the connection]
wolcanus has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
Criztian has joined #ruby
kpshek has joined #ruby
yekta has quit [Quit: yekta]
konr` has joined #ruby
girija has joined #ruby
gsfmnw has quit [Remote host closed the connection]
xcv has joined #ruby
[[thufir]] has quit [Quit: Leaving.]
csaunders has quit [Quit: Computer has gone to sleep.]
sumark has quit [Remote host closed the connection]
tomkad has quit [Ping timeout: 256 seconds]
Vert has joined #ruby
rking1 is now known as rking
sumark has joined #ruby
purpleidea has joined #ruby
rking has left #ruby ["WeeChat 0.4.1-dev"]
browndawg has quit [Quit: Leaving.]
<purpleidea> hi, is there an idiom to test if a variable is nil or empty string '' ?
vlad_starkov has joined #ruby
<Hanmac> purpleidea: only in rails
MrZYX is now known as MrZYX|off
chrishunt has quit [Quit: ZzZzZz...]
kn0tsel has joined #ruby
<purpleidea> Hanmac: is there a one liner way to do so for variable X without writing the variable X twice ?
<waxjar> [nil, ""].include? variable
<purpleidea> waxjar: awesome, thanks
chrishunt has joined #ruby
marr has joined #ruby
<shevy> what is the shortest way to check
<shevy> if array = ["abc","def","ghi"] would include substring 'hi'? (in this example, it should return true)
Spami_ has quit [Quit: Leaving]
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
fermion has quit [Quit: Computer has gone to sleep.]
<havenwood> shevy: ["abc","def","ghi"].any? { |e| e.include? 'hi' }
interactionjaxsn has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
csaunders has joined #ruby
saarinen has quit [Quit: saarinen]
ebouchut has joined #ruby
<csaunders> has anyone been working on some minitest 5.0 plugins?
<csaunders> I'm trying to get the minitest-reporters to work with 5.0 but it seems like the plugin_XXX_init functions aren't being called. Was wondering if anyone has experienced a similar issue
tesuki has joined #ruby
interactionjaxsn has quit [Ping timeout: 252 seconds]
predator217 has quit [Ping timeout: 248 seconds]
interactionjaxsn has joined #ruby
matti has quit [Quit: Oh dear...]
bklane has quit [Remote host closed the connection]
timonv has joined #ruby
thomasle_ has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
hamush has joined #ruby
saarinen has joined #ruby
mklappstuhl has joined #ruby
rads has quit [Quit: rads]
<hamush> hi, i'm trying to install rdoc stuff, but "gem rdoc --all" keeps on giving me errors on individual gems and quitting. is there a way to have it continue even after its encountered an error with a gem?
skattyadz has quit [Quit: skattyadz]
jdunck has joined #ruby
skattyadz has joined #ruby
chrishough has quit [Quit: chrishough]
carlyle has quit [Remote host closed the connection]
cpruitt has quit [Quit: cpruitt]
carlyle has joined #ruby
nik_-_ has joined #ruby
predator117 has joined #ruby
kn0tsel has quit [Remote host closed the connection]
c0rn has joined #ruby
mklappstuhl has quit [Ping timeout: 256 seconds]
Darlal has quit [Quit: Textual IRC Client]
chrishough has joined #ruby
YuryBatenko has quit [Quit: Computer has gone to sleep.]
kn0tsel has joined #ruby
matti has joined #ruby
rads has joined #ruby
kn0tsel has quit [Remote host closed the connection]
JimmyNeutron has joined #ruby
cpruitt has joined #ruby
Aristata has joined #ruby
stkowski has quit [Quit: stkowski]
mklappstuhl has joined #ruby
<Aristata> How would I write a block method that captures a variables state, changes state to false then does somening then reverts the state back
mklappstuhl has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
Zoup has joined #ruby
<nightfly> do exactly that?
hamush has quit [Quit: WeeChat 0.3.8]
<Zoup> using mutex and monitor .synchronize when using .create (activerecord), but all threads are sleeping now, any ideas?
breadthfirst has quit [Remote host closed the connection]
k610 has joined #ruby
<Aristata> nightfly: do you see anything wrong with this in form: http://pastie.org/private/rfwf7zeawmwnpbbd0deada
brotatos has joined #ruby
breadthfirst has joined #ruby
monkegjinni has joined #ruby
srji has quit [Ping timeout: 248 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
<mando> Aristata: I'd use ensure at the end
adambeynon has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
workmad3 has joined #ruby
* nightfly likes dynamic binding when it's a language level feature
mando has quit [Remote host closed the connection]
kf8a has quit [Quit: Computer has gone to sleep.]
<havenwood> Zoup: Deadlock? Gist the code?
<Zoup> havenwood: https://gist.github.com/Zouuup/8c137681c29f6a6693d3 , thanks, sorry code isn't clean
_veer has quit [Ping timeout: 248 seconds]
nomadic has quit [Quit: -bye-]
lewix has quit [Remote host closed the connection]
kf8a has joined #ruby
nomadic has joined #ruby
_veer has joined #ruby
_veer has quit [Changing host]
_veer has joined #ruby
axl_ has joined #ruby
girija has quit [Ping timeout: 264 seconds]
srji has joined #ruby
slainer68 has joined #ruby
persand has quit [Quit: persand]
gaahrdner has quit [Remote host closed the connection]
_veer has quit [Ping timeout: 256 seconds]
nomadic has quit [Quit: -bye-]
nomadic has joined #ruby
jerius_ has joined #ruby
_veer has joined #ruby
_veer has quit [Changing host]
_veer has joined #ruby
rakl has quit [Quit: sleeping]
gaahrdne_ has joined #ruby
agjacome has joined #ruby
jerius has quit [Ping timeout: 245 seconds]
jerius_ is now known as jerius
kf8a has quit [Quit: Computer has gone to sleep.]
<Zoup> maybe its caused by not joining threads...
RubNoob has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
nomenkun_ has joined #ruby
yousaf has joined #ruby
axl_ has quit [Read error: Connection reset by peer]
axl_ has joined #ruby
mark_locklear has joined #ruby
wolcanus has quit [Remote host closed the connection]
danslo has quit [Quit: danslo]
nomenkun has quit [Read error: Connection reset by peer]
_veer has quit [Ping timeout: 256 seconds]
centr0 has quit [Quit: centr0]
nowthatsamatt has joined #ruby
bradhe has quit [Remote host closed the connection]
<nowthatsamatt> where can i download older versions of ruby?
baroquebobcat has quit [Quit: baroquebobcat]
ebobby has joined #ruby
apeiros has left #ruby [#ruby]
fermion has joined #ruby
mercwithamouth has joined #ruby
Zoup has quit [Quit: Lost terminal]
gyre007 has quit [Ping timeout: 256 seconds]
megha has joined #ruby
yousaf has quit [Ping timeout: 256 seconds]
sayan has joined #ruby
rawler has quit [Remote host closed the connection]
_veer has joined #ruby
_veer has quit [Changing host]
_veer has joined #ruby
danslo has joined #ruby
sayan has quit [Read error: Connection reset by peer]
<havenwood> nowthatsamatt: ftp://ftp.ruby-lang.org/pub/ruby
centr0 has joined #ruby
arya has quit []
danslo has quit [Client Quit]
<nowthatsamatt> havenwood: Thanks!
agjacome has quit [Quit: leaving]
brotatos has quit [Quit: WeeChat 0.4.1-dev]
m8 has joined #ruby
bradhe has joined #ruby
devoldmx3 has joined #ruby
fmcgeough has joined #ruby
robbyoconnor has joined #ruby
jdunck has quit [Quit: Computer has gone to sleep.]
mando has joined #ruby
atmosx has quit [Remote host closed the connection]
wolcanus has joined #ruby
apeiros has joined #ruby
phipes has joined #ruby
apeiros has quit [Client Quit]
apeiros has joined #ruby
rezzack1 has joined #ruby
Leighton has joined #ruby
zeade has joined #ruby
apeiros is now known as issuetrackerbot
rezzack has quit [Ping timeout: 260 seconds]
[[thufir]] has joined #ruby
kf8a has joined #ruby
nomenkun_ has quit [Remote host closed the connection]
issuetrackerbot is now known as apeiros
gaahrdne_ has quit [Remote host closed the connection]
rezzack1 has quit [Client Quit]
gaahrdner has joined #ruby
rezzack has joined #ruby
LiquidInsect has quit [Ping timeout: 264 seconds]
druonysus has quit [Ping timeout: 256 seconds]
nettoweb has joined #ruby
huoxito has quit [Quit: Leaving]
johnkary has quit [Quit: @johnkary]
breadthfirst has quit [Remote host closed the connection]
fermion has quit [Quit: Textual IRC Client: www.textualapp.com]
LiquidInsect has joined #ruby
<joshu> what's the preferred way to use STDERR. Like that or $stderr ?
baba has joined #ruby
johnkary has joined #ruby
<apeiros> $stderr
<apeiros> that's how core does it
<apeiros> the constants are "for backup", if you want.
megha has quit [Ping timeout: 248 seconds]
gaahrdner has quit [Ping timeout: 256 seconds]
sayan has joined #ruby
niklasb has quit [Ping timeout: 245 seconds]
<spider-mario> for lost perl programmer souls
<joshu> apeiros ok thanks
jdunck has joined #ruby
dankest has joined #ruby
<apeiros> rationale besides "core does it that way" - $globals can be reassigned, e.g. with a StringIO
<spider-mario> does ruby have anything like perl’s `local` keyword, btw?
<apeiros> no
<spider-mario> ok
bradhe has quit [Remote host closed the connection]
<apeiros> ruby has: constants, lvars, ivars, cvars and globals
akells` has quit [Remote host closed the connection]
<spider-mario> it’s probably not very difficult to write as a function, though
<apeiros> there are no keywords changing the scope of a variable
bradhe has joined #ruby
<spider-mario> local does not affect scope
<spider-mario> (yes, it is poorly named)
jeebster has left #ruby [#ruby]
jeebster has joined #ruby
akells` has joined #ruby
<spider-mario> it undefs the value of a global variable and restores it at the end of the current block
dr_bob has quit [Read error: Connection reset by peer]
<spider-mario> enabling to give a global variable a “local value”
<spider-mario> that does not last long
<tjbiddle> Is there anyway to ensure `require 'some_gem'` looks in my gem path instead of the local directory?
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<tjbiddle> Having some conflict issues
<spider-mario> I thought the current directory was not part of the gem path anymore?
<spider-mario> requiring the use of `require_relative` for that
<spider-mario> (or require './blah')
bradhe has quit [Read error: Connection reset by peer]
akells` has quit [Remote host closed the connection]
<workmad3> spider-mario: require './blah' isn't the same as require_relative
<spider-mario> I know, but still
bradhe has joined #ruby
<spider-mario> require 'blah' is not supposed to match either of them anymore, is it?
<apeiros> ; in block args is somewhat similar to local
<spider-mario> hm, ok
<apeiros> or well, they behave like local by default
<apeiros> and you can un-local them
gaahrdner has joined #ruby
RonScagz has joined #ruby
<spider-mario> otherwise, it would have been feasible to write a fonction usable like that:
<spider-mario> with($stderr, some-temporary-value) do … end
<apeiros> or not? meh… forgot how that works.
t6d has quit [Quit: t6d]
<spider-mario> somehow like instance_exec
Randomage has joined #ruby
r0bby has joined #ruby
<apeiros> ah, right - args behave like local. outer variables can be local-ed with ;
<apeiros> >> a=1; b=1; c=1; 1.times do |a; b| a=2; b=2; c=2 end; [a,b,c]
<eval-in> apeiros => [1, 1, 2] (http://eval.in/31091)
<spider-mario> neat
rae__ has joined #ruby
robbyoconnor has quit [Ping timeout: 248 seconds]
<spider-mario> >> $x = 42; def access puts $x; end; 1.times do |a; $x| $x = 10; access; end; puts $x
<eval-in> spider-mario => /tmp/execpad-b960f611cce7/source-b960f611cce7:2: syntax error, unexpected tGVAR, expecting ';' or '\n' ... (http://eval.in/31092)
<apeiros> lvars != gvars
<spider-mario> >> x = 42; def access puts x; end; 1.times do |a; x| x = 10; access; end; puts x
<eval-in> spider-mario => /tmp/execpad-b131360d4942/source-b131360d4942:2: syntax error, unexpected tIDENTIFIER, expecting ';' or '\n' ... (http://eval.in/31093)
l33 has joined #ruby
<apeiros> please use irb for that, or your query.
<apeiros> the bot is for demonstration purposes only.
<spider-mario> sorry, I thought it’d work right away.
<tjbiddle> spider-mario: Hm, interesting. Let me change some folder names around and see if it really is the case.
chandankumar has quit [Quit: Leaving]
baba has quit [Quit: WeeChat 0.4.0]
<spider-mario> what version of ruby are you using?
mockra has quit [Remote host closed the connection]
monkegjinni has quit [Remote host closed the connection]
<apeiros> 1.9 and 2.0
<apeiros> oh, you meant tjbiddle
tesuki_ has joined #ruby
jkline__ has joined #ruby
mockra has joined #ruby
eldariof has quit [Ping timeout: 264 seconds]
<tjbiddle> spider-mario: 1.9.3
akells` has joined #ruby
kindjal has joined #ruby
pipework has quit [Remote host closed the connection]
jamesfung14 has joined #ruby
jkline__ has quit [Client Quit]
<tjbiddle> spider-mario: Silly issue - I have a Gemfile in the project and it wasn't specified as a dependency.
pietr0_ is now known as pietr0
<spider-mario> oh. :p
nettoweb has quit [Quit: nettoweb]
tesuki has quit [Ping timeout: 264 seconds]
mockra has quit [Remote host closed the connection]
Spami has quit [Read error: Connection reset by peer]
Nisstyre-laptop has joined #ruby
f0ster has quit [Read error: Operation timed out]
breadthfirst has joined #ruby
srji has quit [Quit: leaving]
becom33 has joined #ruby
manutter has joined #ruby
<becom33> how do I check is a variable is not empty ?
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
ActualPerson has joined #ruby
<havenwood> becom33: defined? @example #=> nil
<Hanmac> becom33 rails or ruby?
<ActualPerson> his whole frame, square-shouldered and strong-limbed, not
terrellt has joined #ruby
nik_-_ has quit [Quit: nik_-_]
<havenwood> becom33: By empty to you mean its truthyness?
kil0byte has quit [Remote host closed the connection]
<havenwood> becom33: Or if it has been set to anything at all?
<terrellt> Before I go and do this from scratch, anyone have a good solution for lazy loading an array of objects?
<becom33> for a exmaple
<becom33> x = ""
<becom33> x.empty? comes true
<becom33> I was thinking if there is somthing to get not empty
<havenwood> becom33: Oh, then never mind me. I misunderstood. What Hanmac said.
<becom33> without having to do x.empty? == false
<terrellt> !x.empty?
<terrellt> Boolean logic ftw.
<Hanmac> havenwood: i thought he was looking for #present? from rails
megha has joined #ruby
geekbri has quit [Remote host closed the connection]
<havenwood> Hanmac: Yup, seems so.
threesome has joined #ruby
<apeiros> terrellt: array_of_objects ||= load
r0bby has quit [Ping timeout: 256 seconds]
zastern has joined #ruby
allaire has quit [Quit: allaire]
kf8a has quit [Quit: Computer has gone to sleep.]
<becom33> thanks all :)
zastaph has quit []
<havenwood> I like the new #blank? implementation, clean.
ggordan has joined #ruby
<havenwood> respond_to?(:empty?) ? empty? : !self
lkba has quit [Ping timeout: 246 seconds]
fermion has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
rippa has quit [Ping timeout: 240 seconds]
motto has joined #ruby
motto has quit [Read error: Connection reset by peer]
csaunders has quit [Quit: Computer has gone to sleep.]
syko has quit [Remote host closed the connection]
axl_ has quit [Quit: axl_]
chandankumar has joined #ruby
mockra has joined #ruby
l33 has quit [Read error: Connection reset by peer]
<havenwood> Err, 2007... that isn't new at all. Just not as I recalled. >.>
fermion has quit [Client Quit]
l33 has joined #ruby
jdunck has quit [Quit: Computer has gone to sleep.]
nanothief_ has quit [Ping timeout: 240 seconds]
mark_locklear has quit [Ping timeout: 256 seconds]
s0ber has quit [Read error: Connection reset by peer]
Criztian has quit [Remote host closed the connection]
saarinen has quit [Quit: saarinen]
<havenwood> terrellt: Lazy loading an array? What would that look like?
Davey has quit [Ping timeout: 260 seconds]
<terrellt> havenwood: I was hoping for a shortcut for something I realized I don't have a shortcut for. Essentially I need a wrapper that only starts instantiating objects when those objects are asked for.
mityaz has quit [Quit: See ya!]
<terrellt> havenwood: I think I'm just gonna write it. Thank you, and apeiros too.
s0ber has joined #ruby
tesuki has joined #ruby
tesuki_ has quit [Ping timeout: 246 seconds]
<havenwood> terrellt: Happy hacking! Sounds interesting.
* apeiros doesn't see how ||= doesn't fit that bill
<ActualPerson> can you tell us is
mardar has quit [Ping timeout: 245 seconds]
narsqt has joined #ruby
<joshu> I need some feedback on which version if any is the way to write good ruby code https://gist.github.com/anonymous/31ee7f38b784f4b4eed5
<havenwood> ActualPerson: %w[can you tell us is].shuffle.join ' '
<ActualPerson> by the etext
<ActualPerson> havenwood: the gate opened, and found morrel seated at a table, and the more music there was, above all things ; and i can.
Xeago_ has joined #ruby
Davey has joined #ruby
johnrlive has quit [Remote host closed the connection]
saragojo has joined #ruby
saragojo has quit [Remote host closed the connection]
ActualPerson was kicked from #ruby by apeiros [spam is not tolerated]
saragojo has joined #ruby
ebouchut has quit [Quit: This computer has gone to sleep]
jkline has joined #ruby
<havenwood> joshu: I'd suggest using the #warn method instead of explicitly doing $stderr.puts.
<jkline> hi
bluOxigen has quit [Ping timeout: 246 seconds]
<havenwood> hi
Xeago has quit [Ping timeout: 264 seconds]
<havenwood> joshu: Might consider a case statement instead of if statement for mail_type.
<joshu> havenwood ok will change. Also planning on logging to a log file.
centr0 has quit [Quit: centr0]
DanBurton has joined #ruby
nettoweb has joined #ruby
saragojo has quit [Client Quit]
megha has quit [Quit: WeeChat 0.4.0]
carlyle has quit [Remote host closed the connection]
Xeago_ is now known as Xeago
ruby has joined #ruby
ruby has quit [Remote host closed the connection]
<joshu> havenwood can you please explain why warn is preferred over $stderr
<DanBurton> Hey guys. Suppose I want to write "class Foo; attr_accessor :foo, :bar, :baz; end". Is there a way to create a Foo like so: "Foo.new foo: 'f', bar: 'b', baz: 'b'", which does the obvious thing, without having to hand-code the boilerplatey initialize method?
<havenwood> joshu: Seems a bit odd for the "Send" and "Sent" to be strings. I'd have expected symbols or a boolean variable.
ruby has joined #ruby
breadthfirst has quit [Remote host closed the connection]
Criztian has joined #ruby
decentrality has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
emmanuelux has quit [Ping timeout: 256 seconds]
saarinen has joined #ruby
Cultofme_ has quit [Read error: Connection reset by peer]
Cultofmetatron has joined #ruby
Criztian has quit [Remote host closed the connection]
nricciar has quit [Remote host closed the connection]
kenichi_ is now known as kenichi
<havenwood> joshu: The #warn method does #puts to STDERR just as you intend. Its use is idiomatic unless you are overriding $stderr. Docs: http://www.ruby-doc.org/core-2.0/Kernel.html#method-i-warn
tesuki has quit [Read error: Connection reset by peer]
tesuki has joined #ruby
<havenwood> joshu: Makes it clear what you mean to do. #abort or #warn are nice helper methods for the standard use-case
<joshu> havenwood ok I understand. I've rewritten the process_mail method using a case statement as you suggested for mail_type
<havenwood> joshu: (#abort also does an exit with an error status after puts'n to stderr.
<havenwood> )
machuga is now known as machuga|away
devoldmx has joined #ruby
codecop has quit [Quit: Išeinu]
<joshu> havenwood cool so I changed another $stderr.puts and then exit(1) to warn("something") abort
<joshu> cleaner to read and understand
jkline has quit [Ping timeout: 260 seconds]
[[thufir]] has quit [Read error: Operation timed out]
Al___ has joined #ruby
kpshek has quit []
jkline has joined #ruby
ruby has quit [Remote host closed the connection]
ruby has joined #ruby
<joshu> havenwood I'm not sure on what you meant with "I'd have expected symbols or a boolean variable." I agree my code in mail_type method 'Send' if @from_domain == ENV['DOMAIN'] && @to_domain == ENV['FAX_DOMAIN'] is odd
breadthfirst has joined #ruby
generalissimo has quit [Remote host closed the connection]
devoldmx3 has quit [Ping timeout: 260 seconds]
spider-mario has quit [Read error: Connection reset by peer]
manutter has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
alexmreis has quit [Quit: Leaving.]
<havenwood> joshu: I meant like: :send if @from
<joshu> ok I was just trying that.
rakl has joined #ruby
Raydiation has joined #ruby
ruby has quit [Remote host closed the connection]
<Raydiation> as for REST the parameters in the URL are not the GET parameters right?
Rumsteak has joined #ruby
<Raydiation> what if i wanted to send a JSON array
ruby has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<joshu> havenwood is this better ruby code https://gist.github.com/anonymous/991b6017b469c3f11631
sayan has quit [Read error: Connection reset by peer]
<Raydiation> woops, wanted rails :)
lkba has joined #ruby
<havenwood> Hiroshi san maintains a great list of Ruby HTTP Clients: goo.gl/PyvFG
<havenwood> err, mt
carloslopes has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 264 seconds]
<waxjar> you can put the calls to warn on the same line joshu: when :x then warn(…)
emmanuelux has joined #ruby
<havenwood> joshu: Maybe use instance variables for @send, @sent, etc?
sambao21 has joined #ruby
Davey has quit [Ping timeout: 256 seconds]
Raydiation has left #ruby [#ruby]
<joshu> waxjar ok I'm going to add method calls for each case, e.g. when :send fax_send. SHould I still put it on the same line?
<havenwood> joshu: Typically, with #puts and #warn one doesn't use parens - but it is valid to do so.
kpshek has joined #ruby
nomenkun has joined #ruby
<joshu> havenwood so warn "fax_send" ?
<havenwood> joshu: yup
<waxjar> joshu, you don't have to, but you can. it's easier on the eye imo
<joshu> waxjar cool
<joshu> havenwood sorry you lost me with instance variables @send etc
Davey has joined #ruby
<joshu> havenwood where would I use them if I'm using symbols?
Guedes0 has joined #ruby
<havenwood> joshu: I dunno what the rest of your class looks like, but I'd imagine something like setting the ivars inside `def initialize` to something like: @sent = false
tesuki has quit [Remote host closed the connection]
mrsolo has quit [Quit: This computer has gone to sleep]
<joshu> havenwood I see. I will finish off the rest of the script and then I will ask you guys for some feedback please ;)
mrsolo has joined #ruby
sambao21 has quit [Ping timeout: 256 seconds]
nomenkun has quit [Ping timeout: 240 seconds]
ruby has quit [Remote host closed the connection]
ruby has joined #ruby
<havenwood> joshu: Instead of #warn(something); #abort you can do #abort(something), as well.
mrsolo has quit [Client Quit]
<havenwood> (Message and exit with fail status in one.)
saarinen has quit [Quit: saarinen]
<becom33> is there a function to detect current user in php except system('whoami')
<joshu> havenwood awesome :D
theRoUS has quit [Ping timeout: 276 seconds]
Proshot has joined #ruby
Lubinski has quit [Read error: Connection reset by peer]
ruby has quit [Remote host closed the connection]
ruby has joined #ruby
generalissimo has joined #ruby
kirun has quit [Quit: Client exiting]
cofin has quit [Ping timeout: 260 seconds]
gaahrdner has quit [Read error: Connection reset by peer]
gaahrdne_ has joined #ruby
dangerousdave has quit [Quit: Leaving...]
kpshek has quit []
reset has joined #ruby
<otters> good question becom33
umren has quit [Read error: Connection reset by peer]
<becom33> otters, havnt got any awnsers
<becom33> system('whoami') will work in a linux env but in a windows env ?
mrsolo has joined #ruby
niceguyjames has joined #ruby
Kricir has quit [Remote host closed the connection]
<otters> maybe you could ask a php channel
kpshek has joined #ruby
jonathanwallace has quit [Ping timeout: 260 seconds]
cofin has joined #ruby
johnkary has quit [Quit: @johnkary]
akhet has quit [Remote host closed the connection]
mixel has joined #ruby
humberto1 has joined #ruby
humberto1 has left #ruby [#ruby]
mmitchell has quit [Ping timeout: 252 seconds]
ebobby has quit [Ping timeout: 248 seconds]
<becom33> aw shit
<becom33> my bad
idkazuma has joined #ruby
elaptics`away is now known as elaptics
juarlex has quit [Remote host closed the connection]
narsqt has quit [Remote host closed the connection]
idkazuma has quit [Remote host closed the connection]
ruby has quit [Remote host closed the connection]
ruby has joined #ruby
dustint has quit [Ping timeout: 264 seconds]
crazysim has joined #ruby
jeffreylevesque_ has quit [Quit: ChatZilla 0.9.90 [Firefox 20.0.1/20130409194949]]
saarinen has joined #ruby
kpshek has quit []
alexmreis has joined #ruby
nedbat has quit [Ping timeout: 245 seconds]
brianpWins has joined #ruby
kpshek has joined #ruby
ruby has quit [Remote host closed the connection]
jkline has quit [Ping timeout: 248 seconds]
ruby has joined #ruby
idkazuma has joined #ruby
idkazuma has quit [Read error: Connection reset by peer]
idkazuma has joined #ruby
rvchangue has quit [Ping timeout: 264 seconds]
xcv has quit [Remote host closed the connection]
jkline__ has joined #ruby
jkline__ has quit [Client Quit]
JimmyNeutron has quit [Quit: Leaving]
jeffreylevesque_ has joined #ruby
Davey has quit [Read error: Connection reset by peer]
awojo has joined #ruby
pipework has joined #ruby
johnmilton has quit [Remote host closed the connection]
ebobby has joined #ruby
idkazuma has quit [Remote host closed the connection]
Davey has joined #ruby
r0bby has joined #ruby
LennyLinux has joined #ruby
breakingthings has quit [Remote host closed the connection]
forrest has quit [Quit: Leaving]
breakingthings has joined #ruby
dallasm has joined #ruby
dallasm has quit [Client Quit]
ruby has quit [Remote host closed the connection]
guiocavalcanti has quit [Remote host closed the connection]
ruby has joined #ruby
blandflakes has quit [Remote host closed the connection]
Kricir has joined #ruby
guiocavalcanti has joined #ruby
Al___ has quit [Quit: Al___]
jdunck has joined #ruby
sailias has joined #ruby
ctp has quit [Quit: Linkinus - http://linkinus.com]
<joshu> havenwood this is what I currently have https://gist.github.com/anonymous/b2b26524f169f890f500
ruby has quit [Remote host closed the connection]
<joshu> I'm noticing some odd behaviour with def mail_type where all the if statements return false even if one should match. If I comment 3 of the statements the fourth matches correctly
<Xeago> concerning the bcrypt gem
guiocavalcanti has quit [Ping timeout: 256 seconds]
ruby has joined #ruby
<Xeago> it string compares hashes using #==
<havenwood> joshu: Can mail_type be only one of the four options?
<havenwood> joshu: Looking better. :)
<Xeago> does #== abort early?
gaahrdne_ has quit [Remote host closed the connection]
<joshu> havenwood yes FFM processes one email at a time and that email can only be one of the 4 mail_types
<joshu> havenwood much appreciated!
mrsolo has quit [Read error: Connection reset by peer]
kpshek has quit []
zeeraw has quit [Quit: Computer has gone to sleep.]
mixel has quit [Quit: mixel]
mixel has joined #ruby
kpshek has joined #ruby
jnoob22 has quit [Remote host closed the connection]
breadthfirst has quit [Remote host closed the connection]
pitzips has joined #ruby
breadthfirst has joined #ruby
phipes has quit [Quit: phipes]
Al___ has joined #ruby
cofin has quit [Ping timeout: 256 seconds]
jnoob22 has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
alex__c2022 has quit [Quit: alex__c2022]
pskosinski has quit [Quit: pskosinski]
mrsolo has joined #ruby
interactionjaxsn has joined #ruby
<havenwood> joshu: Lines 40-43 are currently each being run, even though only the return of one matters. You could put a `return` before each one-liner, to prevent them from all being checked. Or DRY it up a bit like so: https://gist.github.com/havenwood/340611eacffe26dc782f
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
jerius has quit [Ping timeout: 246 seconds]
MrZYX|off is now known as MrZYX
jlast has quit [Remote host closed the connection]
<havenwood> Xeago: Thinking of timing attack?
jonathanwallace has joined #ruby
ruby has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
ruby has joined #ruby
Naeblis|XChat has joined #ruby
_veer has quit [Ping timeout: 248 seconds]
<Xeago> havenwood: yes
kpshek has quit []
<tomsthumb> can you have a member variable and a method with the same name in a single object?
<joshu> havenwood ah your code looks like something I would have written initially if I wasn't trying to do something spiffy as I did with my one liners :P I will refactor to your first version. is my code so far acceptable other than my mail_type method?
<Xeago> but it is very tiny
interactionjaxsn has quit [Ping timeout: 256 seconds]
<havenwood> Xeago: Yeah, there is a significant enough difference to be able to be able to tell.
cofin has joined #ruby
Gloridiculous has joined #ruby
Kricir has quit [Remote host closed the connection]
zeeraw has joined #ruby
<havenwood> Xeago: Devise implemented their bcrypt call with a timing resistant implementation. Attempts to pull that code over to bcrypt-ruby got shot down because it was considered a non-starter vector of attack: https://github.com/codahale/bcrypt-ruby/pull/43
<havenwood> Xeago: Devise uses | and ^ for standard time comparisons: b.each_byte { |byte| res |= byte ^ l.shift }
mad_hatter_ has quit [Quit: Leaving.]
gasbakid has quit [Ping timeout: 260 seconds]
ruby has quit [Remote host closed the connection]
MrZYX is now known as MrZYX|off
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
ruby has joined #ruby
<havenwood> Xeago: TL;DR: bcrypt's preimage resistance makes timing attacks a non-issue
<havenwood> ^ quote**
cofin has quit [Client Quit]
<Xeago> aware of that :)
Gloridiculous has left #ruby [#ruby]
<Xeago> the rest of the gem is made very well, and looks like the algorythm is almost swappable
mrsolo has quit [Read error: Connection reset by peer]
lunchtime has joined #ruby
fmcgeough has joined #ruby
lunchtime has quit [Client Quit]
breadthfirst has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
<havenwood> tomsthumb: If a local variable is found, it will be returned and the method by the same name will never get called.
mrsolo has joined #ruby
nowthatsamatt has quit [Quit: nowthatsamatt]
devoldmx3 has joined #ruby
r0bby has quit [Ping timeout: 256 seconds]
jlast has joined #ruby
vlad_starkov has joined #ruby
jlast has quit [Remote host closed the connection]
jlast has joined #ruby
blacktulip has quit [Remote host closed the connection]
<havenwood> tomsthumb: In a class or module though, no worries. Instance variables are confused with methods.
splittingred has quit [Quit: splittingred]
<havenwood> aren't***
devoldmx has quit [Ping timeout: 256 seconds]
k610 has quit [Quit: Leaving]
<tomsthumb> havenwood: ah, hehe, had me scratching my head for a minute, thanks
jY has joined #ruby
kpshek has joined #ruby
<havenwood> tomsthumb: I need more coffee. :( Not thinking clearly. :P
<jY> how can i negate this? if @property_hash[:line]? "set"
kpshek has quit [Client Quit]
jlast has quit [Read error: Connection reset by peer]
jlast has joined #ruby
reset has quit [Quit: Leaving...]
johnkary has joined #ruby
vlad_starkov has quit [Ping timeout: 256 seconds]
l33 has quit [Remote host closed the connection]
jdunck has quit [Ping timeout: 245 seconds]
elaptics is now known as elaptics`away
_veer has joined #ruby
_veer has quit [Changing host]
_veer has joined #ruby
baordog has quit [Quit: ChatZilla 0.9.90 [Firefox 20.0.1/20130409194949]]
ruby has quit [Remote host closed the connection]
F1skr has quit [Quit: WeeChat 0.4.0]
ruby has joined #ruby
breadthfirst has joined #ruby
jdunck has joined #ruby
m8 has quit [Quit: Sto andando via]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
<bean__> jY: if ! @propery_hash[:line]? "set"
<bean__> ?
<havenwood> Or 'unless'
allsystemsarego has quit [Quit: Leaving]
<bean__> yeah
<jY> thanks
DrShoggoth has joined #ruby
sam113101 has quit [Quit: WeeChat 0.4.0]
ruby has quit [Remote host closed the connection]
toastynerd has joined #ruby
ruby has joined #ruby
nari_ has joined #ruby
becom33 has quit [Quit: Leaving]
breadthfirst has quit [Remote host closed the connection]
kindjal has quit [Ping timeout: 264 seconds]
Al___ has quit [Quit: Al___]
phipes has joined #ruby
bean__ has quit [Quit: Computer has gone to sleep.]
DrHeiter23 has quit [Quit: DrHeiter23]
L8D has quit [Quit: leaving]
alexmreis has quit [Ping timeout: 252 seconds]
sam113101 has joined #ruby
pinpin404 has quit [Read error: Connection reset by peer]
postmodern has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
robottinosino has quit [Ping timeout: 252 seconds]
ruby has quit [Remote host closed the connection]
AlbireoX has quit [Remote host closed the connection]
ruby has joined #ruby
rudisimo has quit [Quit: Leaving.]
LennyLinux has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
prk has joined #ruby
Xeago has quit [Remote host closed the connection]
dallasm has joined #ruby
robottinosino has joined #ruby
tommyvyo has quit [Quit:]
ruby has quit [Remote host closed the connection]
ruby has joined #ruby
shadoi has joined #ruby
mmitchell has joined #ruby
fridim__ has joined #ruby
threesome has quit [Ping timeout: 260 seconds]
dr00bie has quit [Ping timeout: 245 seconds]
frem has quit [Read error: Operation timed out]
Ortuna has joined #ruby
awojo has quit []
mrsolo has quit [Quit: Leaving]
mrsolo has joined #ruby
mmitchell has quit [Ping timeout: 252 seconds]
Kar- has quit [Remote host closed the connection]
toastynerd is now known as tylerm
tylerm is now known as tmorgan
guiocavalcanti has joined #ruby
breadthfirst has joined #ruby
jnoob22 has quit [Remote host closed the connection]
sayan has joined #ruby
ruby has quit [Remote host closed the connection]
saarinen has quit [Quit: saarinen]
ruby has joined #ruby
freakazoid0223 has joined #ruby
Aristata has quit [Quit: Leaving.]
<nettoweb> is there a better way to do this conditional: <% if (company.nil? == false && @product.user.company.featured < 10) or company.nil? == true or @other_products_seller.size == 0 %> saying of multiples AND/OR in a conditional
<nettoweb> I use (…) but I dont know if ruby is ok like this
johnkary has quit [Quit: @johnkary]
wsterling has quit [Remote host closed the connection]
chrishough has quit [Quit: chrishough]
Xeago has joined #ruby
guardadigital_ has quit [Read error: Connection reset by peer]
SpxElecxInf has quit [Remote host closed the connection]
tshauck has joined #ruby
markalanevans has quit [Ping timeout: 260 seconds]
<waxjar> nettoweb some_object.nil? is enough, it'll return a boolean
<nettoweb> waxjar: you say, company.nil? is the same as company.nil? == false
<nettoweb> ?
devoldmx3 has quit [Ping timeout: 248 seconds]
ruby has quit [Remote host closed the connection]
akells` has quit [Remote host closed the connection]
<waxjar> no, company.nil? would be the same as company.nil? == true, if you want to check that it's not nil you can do !company.nil? (or (not company.nil?))
ruby has joined #ruby
mixel has quit [Quit: mixel]
nedbat has joined #ruby
<joshu> if I have a lib directory with two files ffm.rb and header.erb and in ffm.rb I do this File.read(File.expand_path("../header.erb"), __FILE__) why can't it read the file?
d11wtq has quit [Ping timeout: 240 seconds]
niceguyjames has quit [Quit: Textual IRC Client: www.textualapp.com]
nezumi has quit [Ping timeout: 252 seconds]
prk has quit [Ping timeout: 248 seconds]
twoism has quit [Read error: Connection reset by peer]
geggam has quit [Remote host closed the connection]
twoism has joined #ruby
chandankumar has quit [Ping timeout: 260 seconds]
jonathanwallace has quit [Ping timeout: 240 seconds]
<waxjar> nettoweb: you could try adding methods to your models (i assume they are) that query them about their state
twoism has quit [Read error: Connection reset by peer]
emergion has joined #ruby
<nettoweb> waxjar: thank you man
twoism has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
chris__ is now known as codesoda
emergion has quit [Client Quit]
gensym` has joined #ruby
mklappstuhl has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
greenarrow|2 has joined #ruby
danslo has joined #ruby
ebobby has quit [Ping timeout: 264 seconds]
_maes_ has joined #ruby
chrishough has joined #ruby
ruby has quit [Remote host closed the connection]
ruby has joined #ruby
greenarrow has quit [Ping timeout: 264 seconds]
danslo has quit [Client Quit]
slash_nick has quit [Ping timeout: 260 seconds]
decentrality has quit [Quit: decentrality]
l33 has joined #ruby
cofin has joined #ruby
ebobby has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
ruby has quit [Remote host closed the connection]
ruby has joined #ruby
sayan has quit [Read error: Connection reset by peer]
mercwithamouth has quit [Ping timeout: 248 seconds]
danslo has joined #ruby
_veer has quit [Ping timeout: 256 seconds]
jonathanwallace has joined #ruby
niklasb has joined #ruby
jtharris has quit [Quit: WeeChat 0.4.0]
bean__ has joined #ruby
<joshu> how do I join the following puts "#{@to_local}ENV['FAX_SAAS_PROVIDER_DOMAIN']"
mercwithamouth has joined #ruby
IceDragon has joined #ruby
<joshu> shouldd I use plus sign
<joshu> which works but don't know if it's the best way'
breadthfirst has quit [Remote host closed the connection]
akells` has joined #ruby
apalmblad has joined #ruby
reset has joined #ruby
unstable has joined #ruby
Proshot has quit [Quit: Leaving]
unstable has left #ruby [#ruby]
mercwithamouth has quit [Ping timeout: 264 seconds]
ruby has quit [Remote host closed the connection]
ruby has joined #ruby
johnnyfuchs has quit [Ping timeout: 256 seconds]
danslo has quit [Quit: danslo]
_veer has joined #ruby
_veer has quit [Changing host]
_veer has joined #ruby
mixel has joined #ruby
stewart_ has joined #ruby
kil0byte has joined #ruby
tomsthumb has quit [Quit: Leaving.]
DanBurton has quit [Remote host closed the connection]
ruby has quit [Remote host closed the connection]
ruby has joined #ruby
sam113101 has quit [Quit: WeeChat 0.4.0]
sam113101 has joined #ruby
Matip has joined #ruby
bean__ has quit [Quit: Computer has gone to sleep.]
danslo has joined #ruby
slainer68 has quit [Remote host closed the connection]
subbyyy has joined #ruby
johnrlive has joined #ruby
ruby has quit [Remote host closed the connection]
Mattix has quit [Ping timeout: 245 seconds]
ruby has joined #ruby
RORgasm has quit [Remote host closed the connection]
druonysus has joined #ruby
druonysus has joined #ruby
w|t has joined #ruby
rae__ has quit [Quit: rae__]
nezumi has joined #ruby
westoque has joined #ruby
<jeebster> how can I get a class object if I've got the name in a string?
<waxjar> the name of a class?
<stewart_> Kernel.const_get("AwesomeClass")
<jeebster> stewart: ah ok, thanks
ruby has quit [Remote host closed the connection]
ruby has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
teclator has joined #ruby
<stewart_> thats for 1.9.3 seems to have been removed in 2
Davey has joined #ruby
kofno has quit [Remote host closed the connection]
w|t has quit [Quit: Computer has gone to sleep.]
<stewart_> jeebster: From memory there is an issue with const_get and autoload classes. So if your doing something in a rails app you might run in to trouble. FYI :)
predator217 has joined #ruby
<jeebster> I have to use qualified_const_get for nested classes
<jeebster> I'm on 1.9.3. so I guess it's ok
jacktrick has joined #ruby
<stewart_> jeebster: yep you should be fine are the classes being autolaoded?
Spami has quit [Quit: This computer has gone to sleep]
<jeebster> yes
obs has quit [Quit: Konversation terminated!]
<stewart_> :( might not work then. I remember a while ago having issues around using const_get on autolaoded classes.
<jeebster> seems to work in the console, guess I'll find out soon enough
teclator has quit [Ping timeout: 256 seconds]
generalissimo has quit [Remote host closed the connection]
predator117 has quit [Ping timeout: 264 seconds]
<stewart_> but have you already referenced the class?
<stewart_> in the console?
generalissimo has joined #ruby
<jeebster> no
ruby has quit [Remote host closed the connection]
<stewart_> ah ok suppose it should be fine then
mando has quit [Remote host closed the connection]
ruby has joined #ruby
niklasb has quit [Ping timeout: 248 seconds]
zastern_ has joined #ruby
ruby has quit [Remote host closed the connection]
ruby has joined #ruby
haxrbyte has quit [Read error: Connection reset by peer]
zastern_ has quit [Remote host closed the connection]
zastern_ has joined #ruby
zastern has quit [Read error: Connection reset by peer]
tomsthumb has joined #ruby
breadthfirst has joined #ruby
kindjal has joined #ruby
fschuindt has joined #ruby
pipework has quit [Remote host closed the connection]
tylersmith has quit [Remote host closed the connection]
falood has joined #ruby
rhys has quit [Quit: Leaving]
breadthfirst has quit [Ping timeout: 248 seconds]
greengriminal has quit [Quit: Leaving]
brotatos has joined #ruby
stoic_squirrel has joined #ruby