bogdanteleaga has quit [Ping timeout: 250 seconds]
reset has quit [Ping timeout: 245 seconds]
Lingo__ has quit [Quit: (null)]
ian_mac has joined #ruby
phutchins has quit [Ping timeout: 265 seconds]
iliketurtles has quit [Remote host closed the connection]
nb_bez___ has joined #ruby
MasterPiece has quit [Remote host closed the connection]
work_op has quit [Ping timeout: 245 seconds]
tunaCanBruh has joined #ruby
rbennacer has quit [Remote host closed the connection]
athan has quit [Ping timeout: 245 seconds]
jgt has joined #ruby
hamakn has joined #ruby
ghr has joined #ruby
hamakn_ has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
vozcelik has joined #ruby
sent1nel has joined #ruby
hamakn_ has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
tunaCanBruh has quit [Ping timeout: 246 seconds]
devoldmx_ has quit [Remote host closed the connection]
jgt has quit [Ping timeout: 255 seconds]
hamakn has quit [Read error: Connection reset by peer]
abuzze_ has joined #ruby
hamakn has joined #ruby
kt2 has quit [Quit: ...]
ghr has quit [Ping timeout: 246 seconds]
hamakn has quit [Read error: Connection reset by peer]
tus has quit []
russt_ has quit [Quit: russt_]
hamakn has joined #ruby
braincra- has joined #ruby
<ellisTAA>
i hadnt heard of portfile until now when i looked in my ruby folder on my computer. where would one encounter this word? what topic would this be covered in? compter architecture?
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
MasterPiece has joined #ruby
abuzze has quit [Ping timeout: 264 seconds]
hamakn has quit [Read error: Connection reset by peer]
MasterPiece| has joined #ruby
hamakn has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
braincrash has quit [Ping timeout: 256 seconds]
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
work_op has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hamakn has quit [Read error: Connection reset by peer]
<work_op>
are there any gems that make building curses-based interfaces more bearable?
hamakn has joined #ruby
kt2 has joined #ruby
MasterPiece has quit [Ping timeout: 250 seconds]
mbytes has joined #ruby
munsterberg has joined #ruby
sent1nel has quit [Remote host closed the connection]
swgillespie has joined #ruby
kt2 has quit [Client Quit]
Troy^ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
phutchins has joined #ruby
jenrzzz has joined #ruby
icarus has quit [Quit: Lost terminal]
FooMunki_ has quit [Quit: FooMunki_]
iMe has quit [Ping timeout: 245 seconds]
pika_pika has joined #ruby
kayloos has quit [Remote host closed the connection]
nii236|irssi has quit [Remote host closed the connection]
nii236|i1ssi has quit [Remote host closed the connection]
munke has joined #ruby
Lewix has joined #ruby
Lewix has joined #ruby
iMe has joined #ruby
pu22l3r has quit [Remote host closed the connection]
mambo has joined #ruby
Lewix has quit [Remote host closed the connection]
mudtose has joined #ruby
DonOtreply has joined #ruby
fella7s has joined #ruby
postmodern has quit [Quit: Leaving]
ikeike443 has joined #ruby
cmckee has joined #ruby
Lewix has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
wallerdev_ has joined #ruby
ellisTAA has quit [Quit: ellisTAA]
goodenough has quit [Remote host closed the connection]
rbennacer has joined #ruby
iamjarvo has joined #ruby
Choclo_ has joined #ruby
ahuman_ has joined #ruby
WhereIsMySpoon has joined #ruby
sssilver|_ has joined #ruby
wmoxam_ has joined #ruby
p7r_ has joined #ruby
peteyg_ has joined #ruby
galeido_ has joined #ruby
rfi_ has joined #ruby
patteh_ has joined #ruby
LiquidIn1ect has joined #ruby
peterhu_ has joined #ruby
blackmesa has quit [Quit: WeeChat 1.1.1]
xymbol has quit [Quit: Be back later ...]
Cache_Money has joined #ruby
phutchins has quit [Ping timeout: 256 seconds]
paradisaeidae has quit [Ping timeout: 256 seconds]
yfeldblu_ has joined #ruby
TheRinger has joined #ruby
krz has joined #ruby
avril14th_ has joined #ruby
claptor has joined #ruby
paradisaeidae has joined #ruby
LRgraham_ has joined #ruby
prasselpikachu_ has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
vlad_sta- has joined #ruby
zmyrgel2 has joined #ruby
<epitron>
work_op: i'd love to make a pure-ruby version of curses that didn't suck
<epitron>
well, i'd love to have made it :)
ikeike44_ has quit [*.net *.split]
wallerdev has quit [*.net *.split]
Choclo has quit [*.net *.split]
rfi has quit [*.net *.split]
WhereIsMySpoon_ has quit [*.net *.split]
MrSamuel has quit [*.net *.split]
preller_ has quit [*.net *.split]
atourino has quit [*.net *.split]
bjornar has quit [*.net *.split]
alexherbo2 has quit [*.net *.split]
peterhu has quit [*.net *.split]
p7r has quit [*.net *.split]
avril14th has quit [*.net *.split]
LiquidInsect has quit [*.net *.split]
idoru has quit [*.net *.split]
LRgraham has quit [*.net *.split]
sssilver has quit [*.net *.split]
peteyg has quit [*.net *.split]
wmoxam has quit [*.net *.split]
Obfuscate has quit [*.net *.split]
fella6s has quit [*.net *.split]
galeido has quit [*.net *.split]
Patteh has quit [*.net *.split]
Brando753 has quit [*.net *.split]
dreinull75 has quit [*.net *.split]
prasselpikachu has quit [*.net *.split]
ahuman has quit [*.net *.split]
vlad_starkov has quit [*.net *.split]
zmyrgel1 has quit [*.net *.split]
wallerdev_ is now known as wallerdev
LRgraham_ is now known as LRgraham
nobitanobi has quit [Remote host closed the connection]
<epitron>
i think it wouldn't be too hard to write a library that lets you make apps like that with very little code
_chs_ is now known as Guest42611
ghostpl has joined #ruby
Troy^ has joined #ruby
<versatiletech>
is there a great article on figuring out how to fix gems that don't want to build with bundle install? I completely removed RVM from ubuntu 12.10 and now it's using the system libraries. Sometimes certain gems install with gem, but won't install with bundle even though they're already installed.
<epitron>
the annoying part is that OSX and linux terminals seem to behave slightly differnetly
jgrevich has quit [Ping timeout: 252 seconds]
<epitron>
versatiletech: use rbenv / ruby-install
<epitron>
ubuntu's ruby is probably old
bjornar has joined #ruby
<havenwood>
versatiletech: install the ruby-dev package for mkmf, etc
preller_ has joined #ruby
<versatiletech>
havenwood: yep, that's installed
alexherbo2 has joined #ruby
Obfuscate has joined #ruby
MrSamuel has joined #ruby
ponga has joined #ruby
<versatiletech>
epitron: true, I'm trying to get prod/dev parity. Prod is working fine. Getting this vagrant box setup is a pain.
iMe has quit [Ping timeout: 252 seconds]
fabrice31 has quit [Ping timeout: 256 seconds]
apurcell has quit [Quit: Be back later ...]
<epitron>
wat :)
<epitron>
is ubuntu 12.10 the vagrant box?
<epitron>
or your box?
<work_op>
epitron, found a gem called dispel that's pretty good
xymbol has joined #ruby
<epitron>
work_op: remove the curses! nice! :D
Mia has quit [Read error: Connection reset by peer]
davejacobs has quit [Remote host closed the connection]
iMe has joined #ruby
<versatiletech>
epitron: ubuntu is the prod version so I replicated as close as possible the vagrant box
ghostpl has quit [Ping timeout: 252 seconds]
<versatiletech>
ubuntu 12.10
jenrzzz has quit [Ping timeout: 245 seconds]
amystephen has quit [Quit: amystephen]
Choclo_ has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
russt_ has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
uptownhr has joined #ruby
devoldmx has joined #ruby
tjohnson has quit [Quit: Connection closed for inactivity]
vdamewood has joined #ruby
yeticry has quit [Ping timeout: 246 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wallerdev has quit [Quit: wallerdev]
russt_ has quit [Quit: russt_]
iwishiwerearobot has joined #ruby
werelivinginthef has joined #ruby
yeticry has joined #ruby
rbennacer has quit [Remote host closed the connection]
uptownhr has quit [Quit: uptownhr]
swgillespie has joined #ruby
revoohc has quit [Quit: revoohc]
uptownhr has joined #ruby
iwishiwerearobot has quit [Ping timeout: 255 seconds]
karmatr0n has quit [Remote host closed the connection]
sameerynho has joined #ruby
Lewix has quit [Remote host closed the connection]
jlast has quit [Ping timeout: 245 seconds]
ptrrr has quit [Quit: ptrrr]
dimaursu16 has joined #ruby
lxsameer has quit [Ping timeout: 244 seconds]
Lewix has joined #ruby
lumberjack_ has joined #ruby
magthe has joined #ruby
matrixise has joined #ruby
Lewix has quit [Remote host closed the connection]
<magthe>
This is a bit of a long shot, I know, but I'm looking for a documentation generator used to build some documentation I've received. Looks like it's written in ruby. The accompanying Makefile says `ruby DocGen/Generator.rb --sourcePath=<path to folder>`. In folder I find multiple text files (looks like markdown) and a few YAML files, `doc-parameters.yml` `table-of-contents.yml` `tool-behaviours.yml`... any
<magthe>
idea where I might find this documentation generator?
figment has joined #ruby
lyuben_ has joined #ruby
hanmac has joined #ruby
iMe has quit [Ping timeout: 246 seconds]
amclain has quit [Quit: Leaving]
speaking1ode has quit [Read error: Connection reset by peer]
dumdedum has joined #ruby
postmodern has quit [Quit: Leaving]
last_staff has joined #ruby
iMe has joined #ruby
ixti has joined #ruby
ki0 has joined #ruby
kalusn has joined #ruby
joufflu has quit [Read error: Connection reset by peer]
astrobunny has joined #ruby
silkfox has joined #ruby
totimkopf has quit [Changing host]
totimkopf has joined #ruby
astrobunny has quit [Remote host closed the connection]
arup_r_ has quit []
arup_r has joined #ruby
lyuben__ has joined #ruby
selu has joined #ruby
zachrab has joined #ruby
astrobunny has joined #ruby
lyuben_ has quit [Ping timeout: 264 seconds]
lsmola has joined #ruby
silkfox has quit [Ping timeout: 250 seconds]
zachrab has quit [Ping timeout: 256 seconds]
selu has quit [Ping timeout: 252 seconds]
CpuID2 has quit [Quit: This computer has gone to sleep]
scripore has joined #ruby
jimms has joined #ruby
totimkopf has quit [Quit: leaving]
dimaursu16 has quit [Ping timeout: 264 seconds]
dimaursu16 has joined #ruby
Guest27477 has quit [Quit: WeeChat 1.0.1]
DouweM has joined #ruby
krz has joined #ruby
lessless has joined #ruby
strixd has joined #ruby
ghostpl has joined #ruby
neoxquick has joined #ruby
alex88 has joined #ruby
iMe has quit [Ping timeout: 265 seconds]
sevvie has quit [Quit: Reconnecting]
sevvie has joined #ruby
Xeago has joined #ruby
DouweM has quit [Quit: Leaving...]
ghostpl has quit [Ping timeout: 252 seconds]
tesuji has joined #ruby
iMe has joined #ruby
lidaaa has quit [Ping timeout: 244 seconds]
lumberjack_ has quit [Read error: Connection reset by peer]
wald0 has joined #ruby
kalusn has quit [Read error: Connection reset by peer]
kalusn has joined #ruby
CpuID2 has joined #ruby
Xeago_ has joined #ruby
terlar has joined #ruby
lumberjack_ has joined #ruby
Xeago has quit [Ping timeout: 240 seconds]
Hobogrammer has quit [Ping timeout: 255 seconds]
scripore has quit [Quit: This computer has gone to sleep]
<avril14th_>
magthe: looks like it's docgen
bMalum has joined #ruby
sevvie has quit [Ping timeout: 246 seconds]
bricker has quit [Quit: leaving]
kapil___ has quit []
livathinos has joined #ruby
sevvie has joined #ruby
Guest123 has joined #ruby
ki0 has quit [Remote host closed the connection]
ki0 has joined #ruby
slushie|| has quit [Ping timeout: 255 seconds]
spider-mario has quit [Remote host closed the connection]
himsin has quit [Quit: himsin]
adamjleonard has quit [Quit: Leaving...]
sevenseacat has quit [Remote host closed the connection]
mist has joined #ruby
iwishiwerearobot has joined #ruby
slushie|| has joined #ruby
Xeago_ has quit [Remote host closed the connection]
fgo has joined #ruby
avril14th_ has quit [Remote host closed the connection]
<magthe>
avril14th_: sounds reasonable... but where do I find it? "docgen" gives quite a few hits
avril14th has joined #ruby
<avril14th>
morning
<lessless>
morning
<magthe>
avril14th: sounds reasonable... but where do I find it? "docgen" gives quite a few hits
iwishiwerearobot has quit [Ping timeout: 245 seconds]
<lessless>
how does this work `loop do; token = Devise.friendly_token ; break token unless User.where(authentication_token: token).first; end` ?
<lessless>
the `break token` part
apurcell has joined #ruby
ghr has joined #ruby
sivsushruth has joined #ruby
figment has quit [Remote host closed the connection]
jlast has joined #ruby
CpuID2 has quit [Read error: Connection reset by peer]
dmolina has quit [Quit: Leaving.]
msgodf has joined #ruby
dimaursu16 has quit [Ping timeout: 244 seconds]
tunaCanBruh has joined #ruby
xploshioon has joined #ruby
apurcell has quit [Ping timeout: 246 seconds]
<magthe>
avril14th: I found `docgenerator` on RubyGems... is that it?
iMe has quit [Ping timeout: 246 seconds]
<avril14th>
magthe: could be. I don't know it seems like an old generator
marr has joined #ruby
<avril14th>
lessless: what do you mean
kalusn has quit [Remote host closed the connection]
jlast has quit [Ping timeout: 245 seconds]
dimaursu16 has joined #ruby
jlast has joined #ruby
<lessless>
avril14th, as understand break it terminates the loop, but in this example it has an additional parameter `token`. why?
arup_r_ has joined #ruby
fgo has quit [Ping timeout: 250 seconds]
arup_r_ has quit [Client Quit]
vdamewood has joined #ruby
<avril14th>
lessless: that's what the loop will return
arup_r has quit [Ping timeout: 264 seconds]
tunaCanBruh has quit [Ping timeout: 265 seconds]
<avril14th>
x = loop do ....
iMe has joined #ruby
<avril14th>
x will equal the variable of "break variable"
<magthe>
avril14th: most likely it ancient :( thanks for your help anyway
<lessless>
oh, I get it
duncannz has quit [Remote host closed the connection]
DouweM has joined #ruby
jlast has quit [Ping timeout: 245 seconds]
abuzze has joined #ruby
Xeago has joined #ruby
mikecmpbll has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
grzywacz has joined #ruby
Takle has joined #ruby
hamakn has joined #ruby
gokul has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
monq has quit [Remote host closed the connection]
gokul has quit [Client Quit]
hamakn has joined #ruby
gokul has joined #ruby
ghostpl has joined #ruby
bMalum_ has joined #ruby
DouweM has quit [Read error: Connection reset by peer]
DouweM has joined #ruby
blizzy has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
mroach has quit [Quit: mroach]
ghr has quit []
ghr has joined #ruby
ghr has quit [Client Quit]
bMalum has quit [Read error: Connection reset by peer]
bMalum_ is now known as bMalum
bMalum has quit [Client Quit]
DouweM has quit [Client Quit]
ghr has joined #ruby
devoldmx has joined #ruby
psy_ has joined #ruby
zachrab has joined #ruby
psy_ has quit [Max SendQ exceeded]
michael_mbp has quit [Excess Flood]
jenrzzz has quit [Ping timeout: 256 seconds]
blizzy has quit [Ping timeout: 250 seconds]
iMe has quit [Ping timeout: 245 seconds]
iwishiwerearobot has joined #ruby
jenrzzz has joined #ruby
michael_mbp has joined #ruby
lumberjack_ has quit [Read error: Connection reset by peer]
apeiros_ has joined #ruby
devoldmx has quit [Ping timeout: 245 seconds]
iMe has joined #ruby
badhatter has quit [Read error: Connection reset by peer]
joonty has joined #ruby
skarn has quit [Killed (orwell.freenode.net (Nickname regained by services))]
postmodern has joined #ruby
skarn_ has joined #ruby
zachrab has quit [Ping timeout: 245 seconds]
bal has quit [Quit: bal]
bal has joined #ruby
lumberjack_ has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
dmolina has joined #ruby
Alina-malina has joined #ruby
psy_ has joined #ruby
bMalum has joined #ruby
bMalum has quit [Client Quit]
iMe has quit [Ping timeout: 246 seconds]
Synthbread has quit [Ping timeout: 272 seconds]
WhereIsMySpoon has quit [Disconnected by services]
moskovski has joined #ruby
kalusn has joined #ruby
vozcelik has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
moskovski has quit [Client Quit]
WhereIsMySpoon_ has joined #ruby
arup_r has joined #ruby
iMe has joined #ruby
vtunka has joined #ruby
timonv has joined #ruby
xploshioon has quit [Quit: Leaving]
wldcordeiro has quit [Ping timeout: 245 seconds]
lkba_ has quit [Ping timeout: 265 seconds]
Zai00 has joined #ruby
aswen has joined #ruby
lessless has quit [Remote host closed the connection]
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bayed has joined #ruby
astrobunny has quit [Remote host closed the connection]
mloveless has quit [Ping timeout: 246 seconds]
towski_ has joined #ruby
mloveless has joined #ruby
iMe has quit [Ping timeout: 246 seconds]
mloveless has quit [Remote host closed the connection]
ghostpl has quit [Remote host closed the connection]
oleo has joined #ruby
ghostpl has joined #ruby
iMe has joined #ruby
towski_ has quit [Ping timeout: 245 seconds]
jlast has joined #ruby
sente has joined #ruby
jimms has quit [Remote host closed the connection]
blackmesa has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
oleo__ has quit [Ping timeout: 255 seconds]
tokik has quit [Ping timeout: 252 seconds]
krz has quit [Quit: WeeChat 1.0.1]
marr has quit [Ping timeout: 264 seconds]
jimms has joined #ruby
DouweM has joined #ruby
jlast has quit [Ping timeout: 245 seconds]
lessless has joined #ruby
reinaldob has joined #ruby
davidhq has joined #ruby
jlast has joined #ruby
timonv has quit [Ping timeout: 245 seconds]
badhatter has joined #ruby
badhatter has joined #ruby
DouweM_ has joined #ruby
DouweM has quit [Read error: Connection reset by peer]
jlast has quit [Ping timeout: 245 seconds]
Timgauthier has joined #ruby
magthe has left #ruby ["WeeChat 1.1.1"]
totimkopf has joined #ruby
bMalum has joined #ruby
TomH_NL has joined #ruby
FooMunki_ has joined #ruby
DouweM_ has quit [Client Quit]
pheona has quit [Quit: WeeChat 1.0.1]
<TomH_NL>
Hi all! Is there perhaps a separate channel to ask questions about the Mechanize gem? If not is anybody familiar with the Mechanize gem?
jenrzzz has quit [Ping timeout: 245 seconds]
shortCircuit__ has joined #ruby
leafybasil has quit [Remote host closed the connection]
<shortCircuit__>
how to convert "2/12/18" to "2/12/2018" , I mean 20 is the first(2) of the current year;
Morkel has quit [Quit: Morkel]
Guest123 has joined #ruby
fgo has joined #ruby
<apeiros_>
shortCircuit__: str[-2,0] = "20"
iMe has quit [Ping timeout: 255 seconds]
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ohaibbq has quit [Remote host closed the connection]
<shortCircuit__>
but then for dates that are already having 2015 gets converted to something else
fgo has quit [Ping timeout: 245 seconds]
<apeiros_>
shortCircuit__: maybe you ask the question with all constraints?
<apeiros_>
any other you left out?
davejacobs has joined #ruby
<shortCircuit__>
I will frame it properly
seal has joined #ruby
ohaibbq_ has joined #ruby
<shortCircuit__>
the dates can come as dd/mm/yy or dd/mm/yyyy, whatever be the case, I dum want to throw and error but just convert the yy to yyyy, where first two yy is for the current year
ohaibbq_ has quit [Read error: Connection reset by peer]
<apeiros_>
shortCircuit__: and you can't come up with a way to test which format it is?
ohaibbq_ has joined #ruby
bMalum has quit [Quit: bMalum]
<TomH_NL>
shortCircuit__: if "2/12/18".split("/").last.length == 2 then ... end
ohaibbq__ has joined #ruby
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
davidhq has joined #ruby
Guest123 has quit [Read error: Connection reset by peer]
CpuID2 has joined #ruby
Guest123 has joined #ruby
dANO has joined #ruby
ohaibbq has joined #ruby
davejacobs has quit [Ping timeout: 246 seconds]
ohaibb___ has joined #ruby
ohaibb___ has quit [Read error: Connection reset by peer]
<shortCircuit__>
apeiros, I was trying to keep it short and clear. I could do with one or two if's but that would be a little clumsy :P
<apeiros_>
I don't agree with using the exception system for expected flow
ohaibbq has joined #ruby
<apeiros_>
I'd use a regex to test the format. or in this case, I'd probably just check str[-3]
<shortCircuit__>
yeah regex would be good
<shortCircuit__>
btw, well, I am going to be honest, I am familiar with the rules of the chat room, I don't ask if I have failed after trying or haven't been helped by google. I am not one of those help vampires. :P
TomH_NL has quit [Quit: Page closed]
ohaibbq_ has quit [Ping timeout: 245 seconds]
<apeiros_>
shortCircuit__: that's nice and dandy. but anybody can claim they tried for hours.
ohaibbq_ has joined #ruby
ohaibb___ has quit [Ping timeout: 245 seconds]
<apeiros_>
I love to help people, but I totally don't want to do people's work. if somebody wants that, they can pay me.
<apeiros_>
(well, actually they probably can't)
<shortCircuit__>
:) I wanted an idea. I got it. what good does it do to me, letting someone write my code.
leafybasil has joined #ruby
hs366 has joined #ruby
leat has quit [Remote host closed the connection]
ohaibbq has quit [Ping timeout: 245 seconds]
TheNet has joined #ruby
leat has joined #ruby
ohaibbq has joined #ruby
<apeiros_>
shortCircuit__: you're correct. but again, from my perspective, anybody can claim that. so to me, you're no different than a help vampire. and all you have to do is show your work to make the difference apparent.
ohaibbq has quit [Read error: Connection reset by peer]
ohaibbq has joined #ruby
ohaibbq has quit [Read error: Connection reset by peer]
ohaibbq has joined #ruby
ohaibbq_ has quit [Ping timeout: 252 seconds]
Rollabunna has joined #ruby
jespada has joined #ruby
mroach has joined #ruby
ohaibbq_ has joined #ruby
m8 has joined #ruby
zacstewart has joined #ruby
ferr has joined #ruby
ohaibbq_ has quit [Read error: Connection reset by peer]
ohaibbq_ has joined #ruby
<ferr>
Hey, with Mandrill you may get email content in a hash so it is easy to get information, is it possible to do so with GMail?
decoponio has joined #ruby
zarubin has joined #ruby
ohaibbq has quit [Ping timeout: 245 seconds]
nfk has joined #ruby
iMe has quit [Ping timeout: 250 seconds]
zacstewart has quit [Ping timeout: 250 seconds]
Takle has quit [Remote host closed the connection]
ohaibbq_ has quit [Ping timeout: 245 seconds]
tunaCanBruh has joined #ruby
iMe has joined #ruby
<gregf__>
shortCircuit__: is that a dateobject that you have or a string?
atourino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bauruine has joined #ruby
selaruvich has joined #ruby
livathinos has quit [Ping timeout: 264 seconds]
paulfm has joined #ruby
colli5ion has joined #ruby
hamakn has quit [Remote host closed the connection]
scripore has joined #ruby
zacstewart has joined #ruby
jottr_ has quit [Ping timeout: 252 seconds]
roshanavand has joined #ruby
mloveless has joined #ruby
sevenseacat has joined #ruby
lumberjack_ has joined #ruby
lumberjack_ has quit [Read error: Connection reset by peer]
pontiki has quit [Remote host closed the connection]
Soda has quit [Remote host closed the connection]
daveomcd has quit [Quit: Leaving]
chinmay_dd has joined #ruby
Timgauthier has joined #ruby
krz has joined #ruby
n008f4g_ has joined #ruby
pu22l3r has joined #ruby
charliesome has quit [Quit: zzz]
apurcell has joined #ruby
arup_r has quit []
tmtwd has quit [Remote host closed the connection]
iMe has quit [Ping timeout: 250 seconds]
fantazo has joined #ruby
davejacobs has joined #ruby
oleo has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vtunka has joined #ruby
Takle_ has quit [Remote host closed the connection]
iMe has joined #ruby
hesco has joined #ruby
apurcell has quit [Ping timeout: 264 seconds]
silkfox has joined #ruby
mkaesz has joined #ruby
LekeFly has joined #ruby
davejacobs has quit [Ping timeout: 252 seconds]
sankaber has joined #ruby
FooMunki_ has quit [Quit: FooMunki_]
aclearman037 has quit [Quit: I'm out!]
mkaesz has quit [Remote host closed the connection]
Pupeno has joined #ruby
vt102 has joined #ruby
last_staff has quit [Quit: last_staff]
tunaCanBruh has joined #ruby
phutchins has joined #ruby
crazydiamond has joined #ruby
lioninawhat has joined #ruby
aclearman037 has joined #ruby
Takle has joined #ruby
banister has joined #ruby
joonty has joined #ruby
banister has quit [Max SendQ exceeded]
cphrmky has joined #ruby
mloveless has quit [Remote host closed the connection]
vtunka has quit [Quit: Leaving]
scripore has quit [Quit: This computer has gone to sleep]
<wasamasa>
dammnit
vtunka has joined #ruby
<wasamasa>
I suspect upgrading from ruby 2.1 to ruby 2.2 broke enh-ruby-mode
davedev24_ has quit [Remote host closed the connection]
silkfox has quit [Ping timeout: 265 seconds]
tunaCanBruh has quit [Ping timeout: 244 seconds]
<wasamasa>
since downgrading makes it work and upgrading breaks it
<wasamasa>
woohoo
<wasamasa>
zenspider: ping
tier has joined #ruby
Takle has quit [Remote host closed the connection]
revoohc has joined #ruby
scripore has joined #ruby
mcpierce has quit [Ping timeout: 276 seconds]
mcpierce has joined #ruby
lioninawhat has quit [Remote host closed the connection]
Takle has joined #ruby
jerius has joined #ruby
jerius has quit [Client Quit]
blackmesa has joined #ruby
selaruvich has quit [Read error: Connection reset by peer]
jerius has joined #ruby
jerius has quit [Client Quit]
bMalum has quit [Quit: bMalum]
jerius has joined #ruby
iMe has quit [Ping timeout: 245 seconds]
allcentury has joined #ruby
Pupeno has quit [Ping timeout: 252 seconds]
jerius has quit [Client Quit]
FooMunki_ has joined #ruby
yojimmbo has quit [Quit: Leaving]
zarubin has quit [Remote host closed the connection]
amystephen has joined #ruby
juanpablo_ has joined #ruby
fgo has joined #ruby
iMe has joined #ruby
yeticry has quit [Ping timeout: 255 seconds]
davidhq has joined #ruby
tkuchiki has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
jerius has joined #ruby
Zamyatin has joined #ruby
yeticry has joined #ruby
psy_ has quit [Remote host closed the connection]
symbol has joined #ruby
davidhq has quit [Client Quit]
krz has quit [Quit: WeeChat 1.0.1]
jerius has quit [Client Quit]
krz has joined #ruby
juanpablo_ has quit [Read error: Connection reset by peer]
juanpablo__ has joined #ruby
jerius has joined #ruby
fgo has quit [Ping timeout: 256 seconds]
jerius has quit [Client Quit]
doodlehaus has joined #ruby
sambao21 has joined #ruby
sameerynho has quit [Quit: Leaving]
amacou has quit [Remote host closed the connection]
<hanmac>
shevy: ping
adriancb has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hs366 has quit [Quit: Leaving]
hamakn has joined #ruby
Zamyatin has joined #ruby
cesarstafe has joined #ruby
Zamyatin has quit [Max SendQ exceeded]
yfeldblum has joined #ruby
<cesarstafe>
hi people, a question about strings.... how can I a char in a string at the very beginning? for example add a + symbol to "something" should become "+become"
sigurding has quit [Quit: sigurding]
Zamyatin has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
shellfu_afk is now known as shellfu
<cesarstafe>
or how can I surround a string with pharentesis? "some text here" should be "(some text here)"
ghostpl has quit [Remote host closed the connection]
<cesarstafe>
waxjar: and if I have for example "one OR two" and I wanna replace OR by || and surround all with pharentesis ... "one OR two".gsub('OR', '||') ... is there a way to do it inside the gsub syntax ?
<cesarstafe>
it should be as result "(one || two)"
tkuchiki has quit [Remote host closed the connection]
fryguy9 has joined #ruby
<rsavage>
I have a script with a large case statement (when blah, when meh, when boo, when far...etc. etc..).. is it possible to utlize a loop inside the case statement? so when I call the "when" part, it's sourcing from a list?
snath has quit [Ping timeout: 264 seconds]
dmolina has joined #ruby
sivoais has joined #ruby
jlast has joined #ruby
zachrab has quit [Ping timeout: 250 seconds]
sevenseacat has quit [Remote host closed the connection]
paulfm has quit [Quit: Zzzzz...]
strixd has joined #ruby
dblessing has joined #ruby
Kruppe has joined #ruby
Kruppe has quit [Remote host closed the connection]
<tobiasvl>
rsavage: list is array, in this case?
<ccooke>
rsavage: I don't think duff's device exists in Ruby :-)
<tobiasvl>
you can splat the array
<tobiasvl>
when *array_which_should_contain_cases
<tobiasvl>
case uses === to compare the case argument with the when argument
josephndenton has joined #ruby
<tobiasvl>
so you can do almost anything
Kruppe has joined #ruby
iMe has quit [Ping timeout: 250 seconds]
Jetchisel has quit [Ping timeout: 240 seconds]
DaniG2k has joined #ruby
totimkopf has joined #ruby
balazs has joined #ruby
tunaCanBruh has joined #ruby
Kruppe has quit [Client Quit]
mistermocha has joined #ruby
iMe has joined #ruby
<apeiros_>
rsavage: if your case features large lists, you're probably using the wrong control structure
Kruppe has joined #ruby
Takle has quit [Remote host closed the connection]
agrinb has joined #ruby
craigp has joined #ruby
rbennacer has joined #ruby
davedev24_ has joined #ruby
rbennacer has quit [Remote host closed the connection]
ghostpl has quit [Remote host closed the connection]
jerius has joined #ruby
rbennacer has joined #ruby
atourino has joined #ruby
bunbury__ is now known as bunbury
balazs has quit [Ping timeout: 252 seconds]
rbennacer has quit [Remote host closed the connection]
ghostpl has joined #ruby
Vivex has quit [Read error: Connection reset by peer]
<epitron>
rsavage: what are you trying to match, and what's in your array?
donovan has joined #ruby
uptownhr has joined #ruby
jenrzzz has joined #ruby
<epitron>
you might want to make a datastructure that associates "arrays of things" to procs, and then write a loop that compares your input to each array, then runs the proc if it matches
andikr has joined #ruby
<epitron>
i have a feeling that you won't need the procs though
<rsavage>
epitron: thanks I think I figured it out
fryguy91 has joined #ruby
lys has joined #ruby
<epitron>
wanna run it by us to make sure it's an elegant solution? :)
withnale_ has joined #ruby
<gregf__>
an if else would do the same thing?
raphaelss has joined #ruby
fryguy9 has quit [Ping timeout: 252 seconds]
<epitron>
i guess technically an associative array-to-proc structure is the same as a case statement
Kruppe has quit [Client Quit]
<apeiros_>
gregf__: using a hammer or your thumb to push a nail in is doing the same thing too. one just hurts quite a lot less.
fryguy9 has joined #ruby
freerobby has joined #ruby
momomomomo has joined #ruby
<apeiros_>
epitron: it's not. not in ruby. case/when is a linear search. hash is not.
<gregf__>
apeiros_: data = [1,2,3];data.each { |val| if ( ![1,3].grep(val).empty? );puts "1-3";elsif ( ![2,4].grep(val).empty? ); puts "2-4";else;puts "none";end; }
uptownhr has quit [Ping timeout: 255 seconds]
<apeiros_>
gregf__: what?
* apeiros_
brb, break time
enebo has joined #ruby
balazs has joined #ruby
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fryguy92 has joined #ruby
<apeiros_>
ok, apparently I missed the others taking their break, so still here :D
fryguy91 has quit [Ping timeout: 246 seconds]
Morkel has joined #ruby
<apeiros_>
gregf__: I'm still not sure why you pasted that code. proving my point of some things being more painful than others, even if they do the same thing?
selaruvich has joined #ruby
Zamyatin has joined #ruby
freerobby has quit [Client Quit]
fryguy9 has quit [Ping timeout: 245 seconds]
Trynemjoel has quit [Ping timeout: 272 seconds]
nobitanobi has joined #ruby
<epitron>
apeiros_: right, but if you have a hash with arrays as keys and procs as values, and you're trying to match a single element, you have to do a linear search
fryguy92 has quit [Ping timeout: 245 seconds]
<epitron>
hash.each { |k,v| proc.call if k.includes? thing_to_find }
<epitron>
err, v.call
Trynemjoel has joined #ruby
<epitron>
that's probably identical to how a case statment would do it :)
perturbation has joined #ruby
iMe has quit [Ping timeout: 250 seconds]
<epitron>
i guess the case could optimize the k.includes? part if all the elements are strings by using a hash
<epitron>
or a Set
allcentury has quit [Quit: WeeChat 1.0]
iMe has joined #ruby
<epitron>
(which is a hash)
systemd0wn has quit [Read error: Connection reset by peer]
<havenwood>
^ downside of that compared to your #any? is just it doesn't break after the first match. the #empty? is cheap.
<havenwood>
gregf__: ^
lys has quit [Ping timeout: 256 seconds]
Hobogrammer has quit [Ping timeout: 245 seconds]
<gregf__>
hmm
bricker has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
LekeFly has joined #ruby
leafybasil has quit [Remote host closed the connection]
krz has quit [Quit: WeeChat 1.0.1]
maletor has quit [Quit: Computer has gone to sleep.]
x77686d has quit [Quit: x77686d]
zorak8 has quit [Read error: Connection reset by peer]
eytanfb has joined #ruby
selaruvich has quit [Read error: Connection reset by peer]
tunaCanBruh has quit [Ping timeout: 252 seconds]
Lemur has quit [Remote host closed the connection]
scripore has joined #ruby
maletor has joined #ruby
zorak8 has joined #ruby
Lemur has joined #ruby
significance has joined #ruby
elfuego has joined #ruby
<elfuego>
is it possible to disable keep-alive in sinatra or puma?
rodfersou has quit [Read error: Connection reset by peer]
Grey__ has joined #ruby
mleung has joined #ruby
rodfersou has joined #ruby
zacstewart has quit [Remote host closed the connection]
Deele has quit [Ping timeout: 245 seconds]
<shevy>
is .any? + regex really faster
<shevy>
have you guys made a benchmark comparison
antgel has quit [Ping timeout: 265 seconds]
bklane has joined #ruby
mambo has joined #ruby
wldcordeiro has quit [Ping timeout: 245 seconds]
<significance>
Hello all! I saw this in a piece of rails code: `Digest::MD5::hexdigest(email.downcase)`. Why is the second scope resolution operator not a dot? I know you can do it both ways, so I guess my question is: why do they choose the scope resolution operator (which can get anything) over the more specific message calling operator?
hgl has quit [Ping timeout: 245 seconds]
kayloos has joined #ruby
<agent_white>
I have found the time it takes for me to figure out how to regex makes it inherently slower.
<agent_white>
;D
Lemur has quit [Ping timeout: 245 seconds]
<eam>
shevy: it's a regex in both cases
tunaCanBruh has joined #ruby
dmolina has quit [Ping timeout: 244 seconds]
<agent_white>
Ooo
hgl has joined #ruby
mun has left #ruby ["My Mac has gone to sleep. ZZZzzz…"]
jkyle has quit [Disconnected by services]
<elfuego>
: is it possible to disable keep-alive in sinatra or puma?
msgodf has quit [Ping timeout: 245 seconds]
jkyle1 has joined #ruby
bMalum has quit [Quit: bMalum]
mambo has quit [Ping timeout: 245 seconds]
zacstewart has joined #ruby
kalusn has quit [Ping timeout: 264 seconds]
kayloos has quit [Ping timeout: 245 seconds]
dc has quit []
<shevy>
eam ok I shall benchmark it
doerteDev has joined #ruby
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<doerteDev>
ohai. anyone having a hint why rbenv might not copy shims?
agarie has quit [Remote host closed the connection]
atomi has quit [Remote host closed the connection]
maximski has quit [Max SendQ exceeded]
maximski has joined #ruby
heftig has quit [Remote host closed the connection]
SOLDIERz has joined #ruby
Zamyatin has joined #ruby
SOLDIERz has quit [Client Quit]
Deele has quit [Ping timeout: 245 seconds]
SOLDIERz has joined #ruby
riotjones has quit [Ping timeout: 246 seconds]
atomi has joined #ruby
shadoi has joined #ruby
roshanavand has quit [Ping timeout: 252 seconds]
juanpablo___ has joined #ruby
maximski has quit [Ping timeout: 252 seconds]
iMe_ has joined #ruby
juanpablo__ has quit [Quit: (null)]
pandaant has quit [Read error: Connection reset by peer]
shadoi1 has joined #ruby
SOLDIERz has quit [Client Quit]
npgm has joined #ruby
posixpanda has joined #ruby
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lioninawhat has joined #ruby
posixpascal has quit [Read error: Connection reset by peer]
SOLDIERz has joined #ruby
SOLDIERz has quit [Client Quit]
SOLDIERz has joined #ruby
SOLDIERz has quit [Client Quit]
Deele has joined #ruby
kl has quit [Ping timeout: 250 seconds]
<havenwood>
kristian-aalborg: RVM now signs its installation so you'd probably want to `sudo apt-get install gnupg` then add mpapis' key before the RVM part: gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
SOLDIERz has joined #ruby
shadoi has quit [Ping timeout: 244 seconds]
MasterPiece has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 245 seconds]
ptrrr has joined #ruby
juanpablo___ has quit [Ping timeout: 246 seconds]
SOLDIERz has quit [Read error: Connection reset by peer]
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
terlar has quit [Ping timeout: 246 seconds]
workmad3 has quit [Ping timeout: 245 seconds]
DEA7TH has quit [Ping timeout: 245 seconds]
<shevy>
hehe
<shevy>
rack lobster
<havenwood>
elfuego: You could probably set the header in Sinatra as well. My urge would be to set it in the Rack webserver (Puma), before trying Rack middleware, before trying setting the header in the Rack adapter (Sinatra).
cpt_yossarian has quit [Ping timeout: 240 seconds]
kirun has joined #ruby
<havenwood>
response.headers['Keep-Alive'] = '0'
fryguy9 has joined #ruby
<havenwood>
elfuego: Not a ton of people there but it may be worth asking in #puma.
dANO has quit []
RitterJack has quit [Remote host closed the connection]
Channel6 has quit [Quit: Leaving]
kl has quit [Ping timeout: 265 seconds]
jxpx777 has joined #ruby
<shevy>
no chance against #tiger
<havenwood>
shevy: tigrons and ligers!
aclearman037 has joined #ruby
cpt_yossarian has joined #ruby
ixti has joined #ruby
bunbury has quit [Ping timeout: 264 seconds]
kostitas has quit [Ping timeout: 264 seconds]
cpt_yossarian has quit [Remote host closed the connection]
MasterPiece has joined #ruby
jenrzzz has joined #ruby
fryguy9 has quit [Quit: Leaving.]
fryguy9 has joined #ruby
Xeago has joined #ruby
iMe has quit [Ping timeout: 264 seconds]
<eam>
given/win 1
<eam>
WHOOPS
zorak8 has joined #ruby
livingstn has joined #ruby
timonv has joined #ruby
iMe has joined #ruby
Xeago has quit [Remote host closed the connection]
rbennacer has joined #ruby
Deele has joined #ruby
rbennacer has quit [Remote host closed the connection]
bklane has joined #ruby
mambo has joined #ruby
mistergibson has quit [Quit: Quitting ... be good to each other :)]
ismaelga has quit [Remote host closed the connection]
dotix has quit [Ping timeout: 246 seconds]
goodenough has quit [Remote host closed the connection]
Xeago has joined #ruby
iliketurtles has joined #ruby
lioninawhat has quit [Remote host closed the connection]
chrishough has joined #ruby
fryguy91 has joined #ruby
maximski has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
lidaaa has joined #ruby
Xeago has quit [Remote host closed the connection]
juanpablo___ has quit [Remote host closed the connection]
juanpablo_ has joined #ruby
devdazed_ has joined #ruby
<ellisTAA>
i’m tring to find out if a number has any of the same numbers in it e.g. 11234 has two 1s. what method can i use for this?
scripore has quit [Quit: Leaving]
dimon_ has joined #ruby
duncannz has quit [Read error: Connection reset by peer]
dimaursu16 has quit [Read error: Connection reset by peer]
iMe has joined #ruby
eytanfb has quit [Ping timeout: 252 seconds]
<apeiros_>
wasamasa: hm, I doubt I can help there :-(
towski_ has joined #ruby
<mozzarella>
ellisTAA: you mean numbers or digits? would 12126789 count?
<wasamasa>
apeiros_: well, my strengths rather lie in elisp hacking, interoperation is my weakness
devdazed has quit [Ping timeout: 244 seconds]
<apeiros_>
ellisTAA: .to_s.chars gets you an array. from there, count occurrences.
duncannz has joined #ruby
<ellisTAA>
mozzarela: no that wouldn’t count bc there are two 1s in there
amundj_ has quit [Ping timeout: 250 seconds]
<wasamasa>
apeiros_: I can write simple ruby stuff that uses data structures and algorithms properly in an imperative way
<wasamasa>
apeiros_: but figuring out other people's code, eh
<apeiros_>
wasamasa: yeah, it's often much harder to read other people's code than write your own
<apeiros_>
clear, concise & understandable code is a rarity.
<wasamasa>
apeiros_: I mean, yes, it's nice that idiomatic ruby seems to be favouring classes with many short methods, but I still find it hard to follow the code flow
<apeiros_>
I value consistency higher than shortness of methods
<apeiros_>
I'm not a fan of the "5 lines per method" mantra
<wasamasa>
oh, I think I know what the problem might be
<wasamasa>
there's a new type of warning in ruby 2.2 which happens every time you do a "method = method"
<apeiros_>
ah
<apeiros_>
circular reference
<mozzarella>
ellisTAA: I'd use a regex
<apeiros_>
ruby 2.2 got better with warnings in general, I really like that.
<wasamasa>
and the line it's pointing to suspiciously looks like that
<apeiros_>
it also tells you about duplicate keys in hash literals. reeeeally nice.
amundj has joined #ruby
<wasamasa>
or maybe not
<wasamasa>
damnit
<apeiros_>
miah: hey, congrats
fantazo has joined #ruby
roshanavand has quit [Remote host closed the connection]
banister has joined #ruby
athan has joined #ruby
banister has quit [Max SendQ exceeded]
<ellisTAA>
here’s my code … any ideas on how to make it pretty :}
<ellisTAA>
mozzarella: how would you use a regex?
tubuliferous has joined #ruby
gsd has joined #ruby
gagangowda10 has joined #ruby
roshanavand has joined #ruby
<gagangowda10>
has anyone tried to a send a delete request with a body in ruby
<mozzarella>
I asked him if 12126789 would pass but he said no
Fezzler has quit [Quit: Leaving]
<apeiros_>
mozzarella: oh, ok. then: nice solution! :)
mikepack has quit [Remote host closed the connection]
devdazed has joined #ruby
<wallerdev>
i would stay away from delete w/ body if possible
jottr has joined #ruby
<wasamasa>
apeiros_: I think I'll just edit that file, add pry and enter the debugger once the variable in question is nil
<wallerdev>
just from looking online it looks like some servers dont support it as well as a lot of CDNs wont forward the body for DELETE requests
yfeldblum has joined #ruby
<apeiros_>
wasamasa:
<wasamasa>
apeiros_: you don't happen to know a better strategy for figuring out why a method gives you nil and something else takes it and crashes, do you
<shadoi1>
gagangowda10: it's not that it's not allowed, it's just not specified as needed for a server to support, or even that it SHOULD.
shadoi1 is now known as shadoi
banister has joined #ruby
<apeiros_>
wasamasa: I'm the intuitive debugging kind of guy. for some reason I usually know pretty well where to look. but only when I'm in front of a problem.
<wasamasa>
hahaha
<apeiros_>
but binding.pry is often my tool of choice
devdazed_ has quit [Ping timeout: 245 seconds]
<wasamasa>
I also dislike that this code has way too little parentheses
<shadoi>
<- parentheses fan also
gagangowda10 has left #ruby [#ruby]
<wallerdev>
way too few?
<wasamasa>
mhh
mambo has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<wasamasa>
thirteen opening ones in ~600 lines
Soda has joined #ruby
<wasamasa>
of which a few are inside strings
chinmay_dd has quit [Quit: Connection closed for inactivity]