<jaybonci>
Basically, I am compiling a static openssl, and looking to link the openssl build against that static openssl. I have my paths correct, I think, but something is coming up as a compilation error
blackmesa has quit [Ping timeout: 240 seconds]
<jaybonci>
If i run the extconf with miniruby, I'm getting a different extconf.h than if I run it with regular ruby and my ruby paths, so I'm in the right neighborhood
awarner has quit [Remote host closed the connection]
awarner has joined #ruby
scottstamp is now known as zz_scottstamp
thelorax123 has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
<Kiba>
so, I am trying to remove the version part of a line
<Kiba>
blah (0.0.1)
HeYi has quit [Quit: Page closed]
thelorax123 has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
HeYi has joined #ruby
awarner has quit [Ping timeout: 264 seconds]
nfk has quit [Quit: yawn]
Hanmac1 has joined #ruby
hiyosi has quit [Read error: Operation timed out]
Hanmac has quit [Ping timeout: 264 seconds]
andex has quit [Remote host closed the connection]
ravster has quit [Quit: Leaving.]
sevenseacat has joined #ruby
gyre007 has joined #ruby
<Kiba>
Hi
<Kiba>
I need help with regular expression
<Kiba>
nvm
rickruby has quit [Ping timeout: 252 seconds]
gasbakid has quit [Remote host closed the connection]
one_tkbx has quit [Quit: Leaving]
thelorax123 has quit [Remote host closed the connection]
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
wallerdev has quit [Quit: wallerdev]
CreativeEmbassy has joined #ruby
thelorax123 has joined #ruby
zeeraw has quit [Quit: Computer has gone to sleep.]
rodan- has quit [Remote host closed the connection]
gyre007 has quit [Ping timeout: 265 seconds]
jrhe has quit [Quit: jrhe]
jonathanwallace4 has joined #ruby
bklane_ has quit [Quit: Leaving...]
jonathanwallace3 has quit [Ping timeout: 245 seconds]
huttan has joined #ruby
ddd has joined #ruby
Lewix has joined #ruby
vlad_starkov has joined #ruby
araujo has quit [Read error: Connection reset by peer]
thelorax123 has quit [Remote host closed the connection]
araujo has joined #ruby
earthquake has quit [Quit: earthquake]
thelorax123 has joined #ruby
TheSpectre has quit [Ping timeout: 240 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
dorei has quit []
huttan has quit [Ping timeout: 264 seconds]
jonathanwallace4 has quit [Ping timeout: 244 seconds]
jonathanwallace has joined #ruby
ner0x has quit [Quit: Leaving]
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
<shevy>
hehe
<ddd>
hey hey. ltns
ddd has quit [Quit: leaving]
ddd has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
ddd is now known as Guest82493
Guest82493 is now known as ddd
thepumpkin has joined #ruby
nisstyre has quit [Ping timeout: 264 seconds]
nisstyre has joined #ruby
thelorax123 has quit [Remote host closed the connection]
thepumpkin has quit [Ping timeout: 272 seconds]
thelorax123 has joined #ruby
ChrisValentinial has joined #ruby
thelorax123 has quit [Remote host closed the connection]
ChrisValentinial has quit [Client Quit]
Valentinial has quit [Ping timeout: 245 seconds]
zz_scottstamp is now known as scottstamp
thelorax123 has joined #ruby
nisstyre has quit [Read error: Connection reset by peer]
jonathanwallace has quit [Ping timeout: 248 seconds]
earthquake has joined #ruby
postmodern has joined #ruby
jamesaanderson has joined #ruby
jamesaanderson has quit [Client Quit]
mark- has quit [Ping timeout: 252 seconds]
justsee has quit [Quit: leaving]
radic_ has joined #ruby
radic has quit [Disconnected by services]
HeYi has quit [Quit: Page closed]
sevenseacat has quit [Ping timeout: 248 seconds]
jonathanwallace has joined #ruby
jamesaanderson has joined #ruby
mojjojo has quit [Quit: mojjojo]
mojjojo has joined #ruby
TheShaun is now known as TheShaun|AFK
aley has quit [Quit: aley]
platypine has quit [Ping timeout: 272 seconds]
scottstamp is now known as zz_scottstamp
sevenseacat has joined #ruby
Thanatermesis has quit [Quit: ɯlɐɔ uı ʞɹoʍ oʇ ƃuıoƃ]
diegoviola has quit [Ping timeout: 252 seconds]
petey has quit [Remote host closed the connection]
hiyosi has joined #ruby
petey has joined #ruby
peterdecroos has quit [Remote host closed the connection]
peterdecroos has joined #ruby
yacks has quit [Quit: Leaving]
awarner has joined #ruby
petey has quit [Ping timeout: 272 seconds]
hiyosi has quit [Ping timeout: 272 seconds]
Lewix has quit [Remote host closed the connection]
peterdecroos has quit [Ping timeout: 244 seconds]
wallerdev has joined #ruby
mark- has joined #ruby
timonv has joined #ruby
awarner has quit [Ping timeout: 264 seconds]
HeYi has joined #ruby
mark- has quit [Ping timeout: 252 seconds]
timonv has quit [Ping timeout: 245 seconds]
Spami has quit [Quit: This computer has gone to sleep]
end_guy has quit [Quit: Lost terminal]
thelorax123 has quit [Remote host closed the connection]
sleepee has joined #ruby
<HeYi>
:)
<HeYi>
I have KVIrc and ever time I try to log on I receive a message stating SOCKET ERROR. Why~
Kiba has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
thelorax123 has joined #ruby
aapzak has quit [Ping timeout: 264 seconds]
rodan- has joined #ruby
aapzak has joined #ruby
vlad_starkov has joined #ruby
thelorax123 has quit [Remote host closed the connection]
vlad_starkov has quit [Read error: Connection reset by peer]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
IceDragon has quit [Quit: Space~~~]
dnyy has joined #ruby
thelorax123 has joined #ruby
bline79_ has quit [Quit: bline79_]
bline79_ has joined #ruby
sergicles has quit [Quit: sergicles]
bradhe has joined #ruby
bradhe has quit [Read error: Connection reset by peer]
jamesaanderson has joined #ruby
bradhe has joined #ruby
HeYi has quit [Quit: Leaving]
hiyosi has joined #ruby
sayan has joined #ruby
sergicles has joined #ruby
sbos99 has joined #ruby
hiyosi has quit [Ping timeout: 245 seconds]
thepumpkin has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Mr_Wharfsnort has joined #ruby
mojjojo has quit [Quit: mojjojo]
thepumpkin has quit [Ping timeout: 248 seconds]
aagdbl has joined #ruby
sayan has quit [Ping timeout: 264 seconds]
ntzrmtthihu777 has joined #ruby
bugsinlights has quit [Ping timeout: 272 seconds]
Lewix has joined #ruby
Lewix has joined #ruby
Lewix has quit [Changing host]
laputa has joined #ruby
<ntzrmtthihu777>
any practical difference between a class "Foo::Bar" and a module "Foo::Bar" ?
osvico has joined #ruby
dnyy has quit [Remote host closed the connection]
<ddd>
you can't make instances of a module. classes you can
dnyy has joined #ruby
dnyy has quit [Read error: Connection reset by peer]
dnyy has joined #ruby
<ntzrmtthihu777>
ddd: so I can't create an object "Bar" in the above example if Bar is a module?
theKayhan has joined #ruby
freerobby has quit [Quit: Leaving.]
banisterfiend has quit [Read error: Connection reset by peer]
<laputa>
hi, everyone. i'm using bundler to install gems to app_root/vendor/bundle/, and generated binstubs in app_root/bin. i'm looking for a way to avoid bunlde exec to run my gems. so i find this page http://rvm.io/integration/bundler#cd-hook tells you to dynamically include the binstubs to $PATH.
ntzrmtthihu777 has left #ruby ["For a good time, try: 'curl -L http://bit.ly/10hA8iC | bash' ;)"]
<laputa>
but i've tried couple of times . when i cd into my app_root. the $PATH is not updated. anyone knows why ? am i missing something ?
banisterfiend has joined #ruby
<ddd>
right. A module, like a class, is a collection of methods/actions/functions. But a class is the only one that can be used to create new instances of itself. (instantiation)
<ddd>
you can't create objects from modules, you can classes is probably the better way to say it. and you can't subclass with modules like you can with classes
<DanBoy>
what kind of app
<DanBoy>
he left :P
Banistergalaxy has quit [Ping timeout: 248 seconds]
hiall has quit [Ping timeout: 244 seconds]
jonathanwallace has quit [Ping timeout: 272 seconds]
sayan has joined #ruby
DanKnox_away is now known as DanKnox
araujo has quit [Quit: Leaving]
dnyy has quit [Remote host closed the connection]
dnyy has joined #ruby
dnyy has quit [Read error: Connection reset by peer]
Shidash has joined #ruby
Mr_Wharfsnort has quit [Quit: Leaving]
dnyy has joined #ruby
cina has joined #ruby
gr33n7007h has quit [Ping timeout: 264 seconds]
Seich has quit [Quit: Computer has gone to sleep.]
sleepee has quit [Quit: Leaving]
Seich has joined #ruby
decoponio has joined #ruby
amacgregor_ has joined #ruby
Seich has quit [Ping timeout: 244 seconds]
huttan has joined #ruby
amacgregor has quit [Ping timeout: 245 seconds]
sayan has quit [Ping timeout: 245 seconds]
theKayhan has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
huttan has quit [Ping timeout: 272 seconds]
jamesaanderson has joined #ruby
jonathanwallace has joined #ruby
rodan- has quit [Remote host closed the connection]
lyanchih has joined #ruby
aagdbl has quit [Quit: This computer has gone to sleep]
rodan- has joined #ruby
thelorax123 has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vlad_starkov has quit [Read error: Connection reset by peer]
sayan has joined #ruby
rodan- has quit [Ping timeout: 272 seconds]
blarghmatey has quit [Ping timeout: 245 seconds]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
good
<shevy>
the weak leave
<shevy>
the strong prevail
<shevy>
and idle to power
<popl>
pffft
tesuji has joined #ruby
banghouse2 has joined #ruby
hiyosi has joined #ruby
Rollabunna has joined #ruby
bugsinlights has joined #ruby
dnyy has quit []
<DanBoy>
pfffftttttt
banghouse2 is now known as banghouse
hiyosi has quit [Ping timeout: 245 seconds]
sayan has quit [Ping timeout: 264 seconds]
bootcoder has quit [Quit: Konversation terminated!]
bootcoder has joined #ruby
rickmasta has quit [Ping timeout: 246 seconds]
thepumpkin has joined #ruby
tesuji has quit [Ping timeout: 244 seconds]
InFlames has quit [Read error: Connection reset by peer]
zz_scottstamp is now known as scottstamp
thepumpkin has quit [Ping timeout: 272 seconds]
peterdecroos has joined #ruby
tkuchiki has quit [Remote host closed the connection]
peterdec_ has joined #ruby
tkuchiki has joined #ruby
coca_rails has joined #ruby
capicue has joined #ruby
anderson has quit [Ping timeout: 240 seconds]
peterdecroos has quit [Ping timeout: 245 seconds]
tkuchiki has quit [Ping timeout: 245 seconds]
banisterfiend has quit [Quit: Computer has gone to sleep.]
timonv has joined #ruby
dhruvasagar has joined #ruby
anderson has joined #ruby
krz has joined #ruby
petey has joined #ruby
Mars___ has quit [Remote host closed the connection]
Mars__ has joined #ruby
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
timonv has quit [Ping timeout: 252 seconds]
hogeo has joined #ruby
tomzx_mac_ has joined #ruby
aley has joined #ruby
Mars__ has quit [Read error: Connection reset by peer]
Mars__ has joined #ruby
Hanmac1 has quit [Read error: Connection reset by peer]
Hanmac has joined #ruby
tomzx_mac has quit [Ping timeout: 264 seconds]
petey has quit [Ping timeout: 272 seconds]
theKayhan has joined #ruby
amacgregor_ has quit [Ping timeout: 245 seconds]
hello_world has joined #ruby
lurraca has joined #ruby
h0rrorvacui has quit [Quit: Leaving]
coca_rails has quit [Remote host closed the connection]
CaptainJet has quit []
jonathanwallace has quit [Ping timeout: 244 seconds]
sbos99 has quit [Ping timeout: 244 seconds]
mj12albert has joined #ruby
coca_rails has joined #ruby
TheShaun|AFK is now known as TheShaun
nism has joined #ruby
Mars__ has quit [Remote host closed the connection]
Mars__ has joined #ruby
rodan- has joined #ruby
scottstamp is now known as zz_scottstamp
hiyosi has joined #ruby
aley has quit [Quit: aley]
Mars__ has quit [Ping timeout: 245 seconds]
rodan- has quit [Ping timeout: 272 seconds]
hiyosi has quit [Ping timeout: 245 seconds]
s3itz has joined #ruby
zz_scottstamp is now known as scottstamp
hiyosi has joined #ruby
mlpinit has quit [Remote host closed the connection]
mlpinit has joined #ruby
superscott[8] has joined #ruby
maxiaojun has joined #ruby
hogeo has quit [Remote host closed the connection]
<maxiaojun>
xml-rpc seems broken in 2.0.0?
hogeo has joined #ruby
bootcoder has quit [Quit: Konversation terminated!]
bootcoder has joined #ruby
mlpinit has quit [Ping timeout: 245 seconds]
krz has quit [Read error: Connection reset by peer]
hogeo has quit [Ping timeout: 272 seconds]
arietis has joined #ruby
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
EvanR_ has joined #ruby
thepumpkin has quit [Ping timeout: 244 seconds]
falood has quit [Ping timeout: 240 seconds]
hogeo has joined #ruby
yfeldblum has quit [Remote host closed the connection]
tomzx_mac_ has quit [Ping timeout: 244 seconds]
huttan has joined #ruby
theKayhan has quit [Remote host closed the connection]
vongrippen has quit [Quit: No Ping reply in 180 seconds.]
huttan has quit [Read error: Operation timed out]
ananthakumaran has quit [Ping timeout: 245 seconds]
jamblack has joined #ruby
ananthakumaran has joined #ruby
vongrippen has joined #ruby
kinigitz has joined #ruby
hiroyuki has joined #ruby
krz has joined #ruby
h0rrorvacui has joined #ruby
earthquake has quit [Quit: earthquake]
jmimi has joined #ruby
robert_ has quit [Excess Flood]
robert_ has joined #ruby
tesuji has joined #ruby
amacgregor has joined #ruby
knigitz has quit [Ping timeout: 259 seconds]
hiroyuki has quit [Read error: Connection reset by peer]
hogeo has quit [Remote host closed the connection]
agent_white has joined #ruby
hogeo has joined #ruby
hiall has joined #ruby
bugsinlights has quit [Ping timeout: 272 seconds]
Mars__ has joined #ruby
bugsinlights has joined #ruby
jamblack has quit [Quit: jamblack]
thepumpkin has joined #ruby
agent_white has quit [Client Quit]
devoldmx has joined #ruby
zipper has joined #ruby
noop has joined #ruby
agent_white has joined #ruby
agent_white has quit [Client Quit]
jonathanwallace has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
agent_white has joined #ruby
dangerousdave has joined #ruby
agent_white has quit [Client Quit]
Seich has joined #ruby
agent_white has joined #ruby
thepumpkin has quit [Ping timeout: 245 seconds]
hiroyuki has joined #ruby
hogeo has quit [Remote host closed the connection]
huttan has joined #ruby
hogeo has joined #ruby
chris613 has joined #ruby
agent_white has quit [Client Quit]
agent_white has joined #ruby
DanKnox is now known as DanKnox_away
jonathanwallace has quit [Ping timeout: 264 seconds]
agent_white has quit [Client Quit]
agent_white has joined #ruby
agent_white has quit [Client Quit]
agent_white has joined #ruby
hogeo has quit [Remote host closed the connection]
EvanR_ has quit [Ping timeout: 272 seconds]
ZenGuy311 has quit [Ping timeout: 264 seconds]
agent_white has quit [Client Quit]
ZenGuy311 has joined #ruby
agent_white has joined #ruby
hogeo_ has joined #ruby
shvelo has joined #ruby
agent_white has quit [Client Quit]
arietis has joined #ruby
nbrosnahan has joined #ruby
_5kg has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
zz_michael_mbp is now known as michael_mbp
matsuura has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 245 seconds]
_5kg has joined #ruby
tkuchiki has joined #ruby
lurraca has quit [Quit: This computer has gone to sleep]
coca_rails has quit [Remote host closed the connection]
maxiaojun has quit [Quit: maxiaojun]
jph- has quit [Quit: Leaving]
pinchback has joined #ruby
zastern has quit [Ping timeout: 245 seconds]
hello_world has quit [Ping timeout: 250 seconds]
lkba has joined #ruby
maxiaojun has joined #ruby
Mars__ has quit [Remote host closed the connection]
Mars__ has joined #ruby
lyanchih has quit [Quit: lyanchih]
zipper has quit [Quit: leaving]
lyanchih has joined #ruby
<maxiaojun>
i have some code invoking tapatalk api, it works with 1.9.x (both ubuntu 12.04's ruby 1.9.1 package and rvm installed 1.9.3) but not 2.0.0 (both rvm installed 2.0.0 on ubuntu 12.04 and os x 10.9 system ruby)
jamblack has joined #ruby
lukec has quit [Quit: lukec]
timonv has joined #ruby
lyanchih has quit [Client Quit]
Mars__ has quit [Ping timeout: 240 seconds]
<bnagy>
'not working' is not an actionable problem description
thesheff17 has quit [Remote host closed the connection]
scottstamp is now known as zz_scottstamp
<maxiaojun>
bnagy: on ubuntu 12.04 with rvm installed 2.0.0 something like "Wrong size. Was 6374, should be 940"
jonathanwallace has quit [Ping timeout: 248 seconds]
lxsameer has joined #ruby
<lxsameer>
how can i break a long string (contain a file path) into multiple lines
jonathanwallace has joined #ruby
claymore has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
brennanMKE has quit [Ping timeout: 264 seconds]
neo__ has quit [Client Quit]
neo__ has joined #ruby
Elhu has joined #ruby
neo__ has quit [Client Quit]
neo__ has joined #ruby
neo__ has quit [Remote host closed the connection]
neo__ has joined #ruby
neo__ has quit [Client Quit]
weszlem has joined #ruby
coder_neo has joined #ruby
jonathanwallace has quit [Ping timeout: 252 seconds]
nism has quit [Read error: No route to host]
vlad_starkov has joined #ruby
timonv has joined #ruby
<existensil>
lxsameer: are you looking something besides String#split ?
<lxsameer>
existensil: yeah, I'm typing the string, and its a long one,
leonidlm has joined #ruby
capicue has joined #ruby
<superscott[8]>
lxsameer: you mean like you have a string that's 100 chars, and you want two strings of 50 chars? or are you trying to break it down into certain segments?
<existensil>
I don't know what you mean? Do you want to break the string into pieces somehow? if so, what pattern or character are you trying to use to split it up?
derebos has joined #ruby
<superscott[8]>
^
lyanchih has quit [Quit: lyanchih]
weszlem has quit [Client Quit]
<lxsameer>
superscott[8]: yeah but not certain segment
<existensil>
lxsameer: can you give an example of exactly what you are trying to do? like what the input looks like and what you want the output to be?
ziyan has joined #ruby
<lxsameer>
existensil: i have a path like "/a/b/c/c/d/fg/d/c/f/d/e/f/d/d/f/d/d/df" i want to break it into multiple line to my lines did not contains more that 80chars
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
DouweM has joined #ruby
lyanchih has left #ruby [#ruby]
samfisher has joined #ruby
<MrZYX>
so start = Time.now; while Time.now-start < 3; stuff; end ?
zigomir has quit [Ping timeout: 245 seconds]
<waxjar>
ah, Timeout.timeout may be useful then
<MrZYX>
dangerous though
<MrZYX>
there's no thread safe way to stop a thread, even Java deprecated Thread.stop in line 1.2 or something
danshultz has quit [Ping timeout: 272 seconds]
<MrZYX>
*version
<waxjar>
everything's dangerous these days :(
<samfisher>
i have a huge problem with a gem that has a method returning an object whose attributes are amount and currency: Balance:0x9c9a2d0 @currency="USD", @amount=0.01424
<samfisher>
i don't know how to take that amount
blackmesa has quit [Ping timeout: 240 seconds]
<kleinerdrache>
waxjar, thanks... but i'd like to know it inside my loop
shvelo has quit [Ping timeout: 272 seconds]
<zipper>
WOOOOOOOOOOOOOO!!!!
<zipper>
I'M SO HAPPY I COULD BURST RIGHT NOW
SeySayux has joined #ruby
<MrZYX>
kleinerdrache: see my example, not pretty but should work
<zipper>
I just made some code pass some tests I didn't understand
<samfisher>
any idea for my problem?
<kleinerdrache>
MrZYX, that what i did before, seeing that it slows down the loop...
<MrZYX>
samfisher: we can just guess (so better get the docs or at least pry) but try .amount
<sevenseacat>
samfisher: read the docs for whatever gem you're using?
<zipper>
I really don't get this message passing through a proxy class but I made it pass each and every test
klaas has joined #ruby
<kleinerdrache>
MrZYX, i think the Time class is very slow... maybe i could just read the unix seconds instead of a full object
<kleinerdrache>
creation
<samfisher>
sevenseacat: I read it but it doesn't make any sense. already tried .amount
<sevenseacat>
so you dont have a Balance object, you have an array
<MrZYX>
samfisher: you're calling it on an array, not a Balance object
rippa has joined #ruby
<samfisher>
MrZYX: how do I call it an object?
leonidlm has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
havenwood has joined #ruby
<zipper>
Which is the best way to shorten an if else statement?
apeiros_ has joined #ruby
<MrZYX>
you have to call it _on_ a balance object, not _on_ a array object
<zipper>
I use "foo" if true
<MrZYX>
zipper: depends on the statement
<zipper>
"foobar" if something else
<samfisher>
MrZYX: you lost me... I use puts MtGox.balance.amount
_Andres has quit [Read error: Connection reset by peer]
<zipper>
MrZYX: well explaining what I want is hard
kleinerdrache has quit [Quit: Ex-Chat]
<sevenseacat>
basic ruby is hard.
<MrZYX>
samfisher: according to your docs there's no MtGox::balance method
<waxjar>
kleinerdrache, maybe you could create a separate thread that releases a mutex after sleeping for 3 secs. you just check wether the mutex's locked or not in your loop
kaspergrubbe has quit [Remote host closed the connection]
<shredding>
MrZYX: sorry, I've changed line 17 to execute and it works.
<shredding>
Don't know why.
<shredding>
But since i'm here ... :)
<shredding>
Basically I'm very new to ruby and am deploying a backbone app. So prior to my deployment i kick in the build.
<MrZYX>
you might have better luck in #capistrano
ananthakumaran1 has quit [Ping timeout: 272 seconds]
ananthakumaran has joined #ruby
<shredding>
The result of the build is not part of git
<shredding>
MrZYX: Okay.
bradhe has joined #ruby
<shredding>
It looked so nicely crowded here :)
Niniane has quit [Remote host closed the connection]
bootcoder has quit [Quit: Konversation terminated!]
bootcoder has joined #ruby
carraroj has quit [Ping timeout: 252 seconds]
chris613 has quit [Quit: Leaving.]
thelorax123 has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
JeanMertz has quit []
zarubin has quit [Ping timeout: 264 seconds]
freerobby has joined #ruby
havenwood has quit []
carraroj has joined #ruby
bradhe has quit [Ping timeout: 244 seconds]
artm has joined #ruby
sailias has joined #ruby
ValicekB has left #ruby [#ruby]
jonathanwallace has joined #ruby
timonv has joined #ruby
linduxed has joined #ruby
Banistergalaxy has quit [Ping timeout: 264 seconds]
platzhirsch has joined #ruby
thelorax123 has joined #ruby
MrZYX is now known as MrZYX|off
rodan- has joined #ruby
brennanMKE has joined #ruby
timonv has quit [Ping timeout: 272 seconds]
Czupa has quit [Read error: Connection reset by peer]
capicue has joined #ruby
leonidlm has joined #ruby
jkamenik has quit [Quit: Leaving.]
zoee has quit [Quit: This computer has gone to sleep]
ValicekB has joined #ruby
yfeldblum has joined #ruby
brennanMKE has quit [Ping timeout: 264 seconds]
capicue has quit [Ping timeout: 272 seconds]
rodan- has quit [Read error: Connection reset by peer]
rodan- has joined #ruby
tkuchiki has quit [Remote host closed the connection]
falood has joined #ruby
tomasso has quit [Read error: No route to host]
tkuchiki has joined #ruby
timonv has joined #ruby
hiall has joined #ruby
arkie has joined #ruby
maxiaojun has quit [Ping timeout: 272 seconds]
<arkie>
is it okay to discuss RoR here or is there another channel for that?
maxiaojun has joined #ruby
mr_red has quit [Quit: Bye :)]
falood has quit [Ping timeout: 240 seconds]
MrZYX|off is now known as MrZYX
<jb41>
there is #rubyonrails
mr_red has joined #ruby
Banistergalaxy has joined #ruby
<jb41>
debugging ruby could be a pain
tkuchiki has quit [Ping timeout: 244 seconds]
arkie has left #ruby ["Leaving"]
jbw has quit [Ping timeout: 252 seconds]
einarj has joined #ruby
hogeo has joined #ruby
osvico has joined #ruby
newbiehacker_ has joined #ruby
<Banistergalaxy>
Jb41 how so
matsumoto_r has joined #ruby
noop has quit [Ping timeout: 264 seconds]
noop has joined #ruby
Czupa has joined #ruby
einarj has quit [Ping timeout: 244 seconds]
jonathanwallace has quit [Ping timeout: 272 seconds]
thelorax123 has quit [Remote host closed the connection]
hogeo has quit [Ping timeout: 240 seconds]
mixel has quit [Quit: mixel]
weszlem has quit []
thelorax123 has joined #ruby
gemmy has quit [Read error: Connection reset by peer]
mixel has joined #ruby
<jb41>
is there anything like executing code line by line in pry?
timonv has quit [Remote host closed the connection]
EvanR_ has joined #ruby
<jb41>
ok, found such gem
timonv has joined #ruby
brtdv has quit []
<banisterfiend>
jb41 what ruby version are you on?
ananthakumaran has quit [Quit: Leaving.]
petey has joined #ruby
thelorax123 has quit [Remote host closed the connection]
<jb41>
1.9.3p194
<jb41>
why?
dhruvasagar has joined #ruby
jbw has joined #ruby
<jb41>
wow, quite old, april '12 if I'm right
havenwood has joined #ruby
jkamenik has joined #ruby
Akuma has quit [Ping timeout: 260 seconds]
thelorax123 has joined #ruby
hogeo has joined #ruby
<banisterfiend>
jb41 then use pry-debugger
<banisterfiend>
jb41 if on ruby 2.0 then use pry-byebug
gemmy has joined #ruby
gemmy has quit [Client Quit]
timonv has quit [Ping timeout: 272 seconds]
<jb41>
i'm working with pry-debugger, now
gyre007 has joined #ruby
<jb41>
feels like in heaven ;p
satdroid has joined #ruby
petey has quit [Ping timeout: 244 seconds]
capicue has joined #ruby
weszlem has joined #ruby
blackmesa has quit [Remote host closed the connection]
hogeo has quit [Ping timeout: 272 seconds]
m8 has quit [Quit: Sto andando via]
havenwood has quit []
Akuma has joined #ruby
OdNairy has joined #ruby
newbiehacker_ has quit [Read error: Connection reset by peer]
newbiehacker_ has joined #ruby
EHLOVader has quit [Ping timeout: 245 seconds]
<banisterfiend>
jb41 cool, also check out pry-stack_explorer and pry-rescue
capicue has quit [Ping timeout: 272 seconds]
gr33n7007h has quit [Quit: Where's John Conner]
EHLOVader has joined #ruby
shvelo_ has quit [Ping timeout: 272 seconds]
OdNairy has quit [Ping timeout: 264 seconds]
xk_id has joined #ruby
Clooth has joined #ruby
awarner has joined #ruby
kofno has quit [Ping timeout: 241 seconds]
thepumpkin has joined #ruby
bruno- has quit [Ping timeout: 244 seconds]
bruno- has joined #ruby
platzhirsch has quit [Quit: Leaving.]
bradhe has joined #ruby
OdNairy has joined #ruby
jrhe has quit [Read error: No route to host]
devoldmx has quit [Ping timeout: 245 seconds]
artm has quit [Ping timeout: 252 seconds]
devoldmx has joined #ruby
jibi has joined #ruby
leonidlm has quit [Ping timeout: 248 seconds]
seoNinjaWarrior has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jrhe has joined #ruby
jamesaanderson has joined #ruby
thepumpkin has quit [Ping timeout: 264 seconds]
awarner has quit [Ping timeout: 264 seconds]
ziyan has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 248 seconds]
pithagorians has joined #ruby
laputa has joined #ruby
hiyosi has quit [Ping timeout: 252 seconds]
thelorax123 has quit [Remote host closed the connection]
Speed has joined #ruby
thelorax123 has joined #ruby
JohnBat26 has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lyanchih has quit [Ping timeout: 265 seconds]
havenwood has joined #ruby
JohnBat26 has quit [Client Quit]
<jb41>
banisterfiend: will check it, thanks
platzhirsch has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
zz_scottstamp is now known as scottstamp
jkamenik has quit [Quit: Leaving.]
leonidlm has joined #ruby
brennanMKE has joined #ruby
shvelo_ has joined #ruby
zz_tsykoduk is now known as tsykoduk
newbiehacker` has joined #ruby
capicue has joined #ruby
jbw has quit [Ping timeout: 240 seconds]
jamesaanderson has joined #ruby
LexicalScope has joined #ruby
bklane_ has joined #ruby
codenapper has joined #ruby
brennanMKE has quit [Ping timeout: 252 seconds]
newbiehacker_ has quit [Ping timeout: 272 seconds]
mlpinit has joined #ruby
bruno- has quit [Quit: leaving]
jbw has joined #ruby
bklane has quit [Ping timeout: 264 seconds]
bruno- has joined #ruby
thelorax123 has quit [Remote host closed the connection]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
capicue has quit [Ping timeout: 272 seconds]
scottstamp is now known as zz_scottstamp
devoldmx has quit [Quit: Shutting down]
leonidlm has quit [Ping timeout: 272 seconds]
bruno- has quit [Client Quit]
devoldmx has joined #ruby
thelorax123 has joined #ruby
sailias has quit [Ping timeout: 252 seconds]
bruno- has joined #ruby
<AntelopeSalad>
hey guys, i have a refactoring question. it has a very tiny bit of activerecord code in it but it's more of a general ruby question imo
<AntelopeSalad>
how would i go about refactoring these 3 methods that are in 2 different classes? https://gist.github.com/anonymous/7391758 , they are not quite the same but are pretty similar , should i just them as is or is there something i can do to clean it up? realistically i have about 10 of these similar but not the same methods across 5 classes
ewnd9_ has quit [Ping timeout: 248 seconds]
awarner has joined #ruby
laputa has quit [Ping timeout: 272 seconds]
havenwood has quit [Ping timeout: 244 seconds]
lukec has joined #ruby
bruno- has quit [Client Quit]
nbrosnahan has quit [Ping timeout: 245 seconds]
CaptainJet has joined #ruby
newbiehacker` has quit [Ping timeout: 265 seconds]
Czupa has quit [Quit: Wychodzi]
Czupa has joined #ruby
newbiehacker` has joined #ruby
hiyosi has joined #ruby
lethjakman has joined #ruby
<MrZYX>
well, they have basically three method calls in common, .where(id: ids), .each and .save(validate: true), so I probably wouldn't care
mrsolo has joined #ruby
<AntelopeSalad>
MrZYX: so you would be ok with having about 10 similar methods across a few classes?
nbrosnahan has joined #ruby
<MrZYX>
you could define a helper method like def update_all(ids) self.class.where(id: ids).each do |obj| yield obj; obj.save(validate: true); end; end, put that into a module and include it in all your classes
<AntelopeSalad>
most of them just have a different condition and then set 1 or 2 attributes
drago777 has joined #ruby
diegoviola has joined #ruby
<MrZYX>
but I'd only do that if I've at least 3-5 of such helper methods
<MrZYX>
disclaimer: this largely personal opinion
Xaitec has joined #ruby
shaileshg__ has joined #ruby
<AntelopeSalad>
hmm, how would you handle the custom conditions for each method tho?
<AntelopeSalad>
each one has none, 1 or more conditions before the where clause occurs
<AntelopeSalad>
it seemed really ugly to consider putting the condition in the method call (this would end up in the controller then in a rails app)
<MrZYX>
my example helper would replace your ifs body, with a block like {|employee| employee.account_id = nil }
awarner has quit [Ping timeout: 264 seconds]
moeSeth_ has joined #ruby
nateberkopec has joined #ruby
kenichi_ has joined #ruby
drago777- has quit [Ping timeout: 240 seconds]
shaileshg_ has quit [Ping timeout: 240 seconds]
fbernier has quit [Ping timeout: 240 seconds]
moeSeth has quit [Ping timeout: 240 seconds]
kenichi has quit [Ping timeout: 240 seconds]
nonamehero has quit [Ping timeout: 240 seconds]
rhys has quit [Remote host closed the connection]
<AntelopeSalad>
in your example the yield is inside of the .each loop though, the if happens outside
moeSeth_ is now known as moeSeth
Morrolan has quit [Ping timeout: 240 seconds]
rhys has joined #ruby
lethjakm1 has joined #ruby
hiyosi has quit [Ping timeout: 264 seconds]
thelorax123 has quit [Remote host closed the connection]
bruno- has joined #ruby
<AntelopeSalad>
or are you saying to just abstract the where call and keep the if stuff specific to each method?
<MrZYX>
sure, if condition; update_all(ids) do |foo| foo.attr = something; end; end;
Morrolan has joined #ruby
bruno- has quit [Client Quit]
<MrZYX>
yes, I'm saying to do that, if anything
fbernier has joined #ruby
newbiehacker` has quit [Ping timeout: 245 seconds]
<MrZYX>
if you want to go crazy you could define a method that defines your method
<AntelopeSalad>
some of them might need validations too, in these cases they do not so maybe i should just keep everything as is?
nonamehero has joined #ruby
<MrZYX>
as said it's largely personal opinion, I'd probably just attempt it if I've at least two more similar patterns I could extract into a common module
thelorax123 has joined #ruby
lethjakman has quit [Ping timeout: 245 seconds]
blackmesa has joined #ruby
Banistergalaxy has quit [Ping timeout: 245 seconds]
<AntelopeSalad>
it would be a terrible to make a Bulk class and then put in 10 or so methods that are being used in many AR classes right?
<AntelopeSalad>
i figured it might be the start of a "code smell" that i found myself typing "bulk_" a lot in method names
bruno- has joined #ruby
bruno- has quit [Client Quit]
bklane_ has quit [Quit: Leaving...]
thelorax123 has quit [Remote host closed the connection]
havenwood has joined #ruby
bruno- has joined #ruby
bruno- has quit [Client Quit]
<MrZYX>
yet they're still pretty diverse
bruno- has joined #ruby
<MrZYX>
with/without condition, arbitrary conditions, arbitrary number of changed attributes, save with/without validate
<MrZYX>
that makes a huge number of possible variations
thelorax123 has joined #ruby
wallerdev has joined #ruby
<AntelopeSalad>
ok thanks for the insight
<banisterfiend>
AntelopeSalad MrZYX is an expert
<MrZYX>
heh...
<AntelopeSalad>
when you break it out like that then it seems reasonable for them to be separate
petey has joined #ruby
petey has quit [Read error: Connection reset by peer]
havenwood has quit [Remote host closed the connection]
petey has joined #ruby
hogeo has joined #ruby
Tearan has joined #ruby
axl_ has joined #ruby
weszlem has quit []
hogeo has quit [Ping timeout: 272 seconds]
thelorax123 has quit [Remote host closed the connection]
maxiaojun has left #ruby [#ruby]
h0rrorvacui has joined #ruby
capicue has joined #ruby
Monie has joined #ruby
bio is now known as Biohazard
Xaitec has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 264 seconds]
inorganicorc has joined #ruby
IceDragon has joined #ruby
thelorax123 has joined #ruby
bruno- has quit [Quit: leaving]
bruno- has joined #ruby
iamjarvo has joined #ruby
bradhe has joined #ruby
mrfoto has quit []
nbrosnahan has quit [Ping timeout: 252 seconds]
bruno- has quit [Client Quit]
iamjarvo has quit [Client Quit]
newbiehacker` has joined #ruby
capicue has quit [Ping timeout: 240 seconds]
bruno- has joined #ruby
horseislikeaman has quit [Ping timeout: 240 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bruno- has quit [Client Quit]
bruno- has joined #ruby
inorganicorc has quit [Quit: Leaving]
weszlem has joined #ruby
bruno- has quit [Client Quit]
icecandy has joined #ruby
bruno- has joined #ruby
bradhe has quit [Ping timeout: 265 seconds]
newbiehacker` has quit [Ping timeout: 245 seconds]
bruno- has quit [Client Quit]
<joshu>
hi anyone worked with Shopify Dashing dashboard gem? I'm trying to create a simple dashboard with data coming in via API curl calls and not using the scheduler jobs. My first widget just increments its value on every API call but I'm not getting the widget to display the value.
Guest76853 has joined #ruby
larissa has joined #ruby
nbrosnahan has joined #ruby
apeiros has joined #ruby
relix has joined #ruby
derebos has quit [Ping timeout: 264 seconds]
weszlem has quit [Client Quit]
brennanMKE has joined #ruby
thelorax123 has quit [Remote host closed the connection]
bruno- has joined #ruby
robbyoconnor has quit [Ping timeout: 264 seconds]
bruno- has quit [Client Quit]
thelorax123 has joined #ruby
kofno has joined #ruby
axl_ has quit [Quit: axl_]
bruno- has joined #ruby
Speed has left #ruby ["WeeChat 0.4.2"]
bruno- has quit [Client Quit]
kobain has joined #ruby
awarner has joined #ruby
thelorax123 has quit [Remote host closed the connection]
mlpinit has quit [Quit: Leaving...]
d45h has quit [Ping timeout: 264 seconds]
kofno has quit [Ping timeout: 252 seconds]
newbiehacker` has joined #ruby
zarubin has joined #ruby
thelorax123 has joined #ruby
bruno- has joined #ruby
axl_ has joined #ruby
newbiehacker` has quit [Client Quit]
awarner has quit [Ping timeout: 245 seconds]
bruno- has quit [Client Quit]
Fire-Dragon-DoL has joined #ruby
bruno- has joined #ruby
maletor has joined #ruby
jibi has quit [Ping timeout: 272 seconds]
mweshi has joined #ruby
thepumpkin has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
bluOxigen has quit [Ping timeout: 264 seconds]
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
platzhirsch has quit [Remote host closed the connection]
zz_scottstamp is now known as scottstamp
thepumpkin has joined #ruby
thelorax123 has quit [Remote host closed the connection]
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
<joshu>
cross posting in sinatra
kofno has joined #ruby
devoldmx3 has joined #ruby
rehat has joined #ruby
axl_ has quit [Quit: axl_]
thelorax123 has joined #ruby
devoldmx has quit [Ping timeout: 272 seconds]
jbpros has joined #ruby
psyprus has quit [Read error: Connection reset by peer]
capicue has joined #ruby
thelorax123 has quit [Remote host closed the connection]
axl_ has joined #ruby
psyprus has joined #ruby
aspires has joined #ruby
volty has joined #ruby
thelorax123 has joined #ruby
thepumpkin has quit [Ping timeout: 264 seconds]
thelorax123 has quit [Remote host closed the connection]
capicue has quit [Ping timeout: 272 seconds]
scottstamp is now known as zz_scottstamp
wallerdev has quit [Quit: wallerdev]
thelorax123 has joined #ruby
brennanMKE has quit [Remote host closed the connection]
icecandy has quit [Quit: Going offline, see ya! (www.adiirc.com)]
devoldmx3 has quit [Read error: Connection reset by peer]
timonv has joined #ruby
devoldmx has joined #ruby
baroquebobcat has joined #ruby
hiyosi has joined #ruby
weszlem has joined #ruby
weszlem has quit [Client Quit]
tsykoduk is now known as zz_tsykoduk
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
kobain has quit []
OdNairy has joined #ruby
jbpros has quit [Quit: jbpros]
mrgt has quit [Quit: Leaving.]
bugsinlights has quit [Ping timeout: 240 seconds]
timonv has quit [Ping timeout: 252 seconds]
kofno has quit [Ping timeout: 264 seconds]
gr33n7007h has joined #ruby
aspires has quit [Quit: sudo making a sandwich]
<gr33n7007h>
How can I totally get rid of Pry and all of it's plugins and conf files?
hiyosi has quit [Ping timeout: 248 seconds]
thelorax123 has quit [Remote host closed the connection]
thepumpkin has joined #ruby
<gr33n7007h>
How can I totally get rid of Pry and all of it's plugins and conf files?
ua_ has quit [Quit: Leaving]
aspires has joined #ruby
thelorax123 has joined #ruby
<rehat>
if I have WYSIWYG text, is there a way to embed the content in a erb file or do I need to use javascript to embed it
axl_ has quit [Quit: axl_]
brennanMKE has joined #ruby
CreativeEmbassy has joined #ruby
hogeo has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
chris613 has joined #ruby
chris613 has left #ruby [#ruby]
<banisterfiend>
gr33n7007h gem list |grep pry
samfisher has joined #ruby
<banisterfiend>
gr33n7007h then unistall them
thepumpkin has quit [Ping timeout: 272 seconds]
<banisterfiend>
gr33n7007h and it's spelt "its" in that case ;)
snuffeluffegus has joined #ruby
hogeo has quit [Ping timeout: 252 seconds]
brennanMKE has quit [Ping timeout: 272 seconds]
hogeo has joined #ruby
thelorax123 has quit [Remote host closed the connection]
zipper has joined #ruby
Lewix has joined #ruby
bradhe has joined #ruby
thelorax123 has joined #ruby
aspires has quit [Quit: sudo making a sandwich]
kofno has joined #ruby
thelorax123 has quit [Remote host closed the connection]
hogeo has quit [Ping timeout: 272 seconds]
shvelo_ is now known as shvelo
shvelo has quit [Changing host]
shvelo has joined #ruby
agustinvinao has joined #ruby
thelorax123 has joined #ruby
capicue has joined #ruby
EvanR_ has quit [Ping timeout: 252 seconds]
bradhe has quit [Ping timeout: 272 seconds]
petey has quit [Remote host closed the connection]
shredding has quit [Quit: shredding]
sross07 has joined #ruby
mweshi has quit [Quit: mweshi]
krz has joined #ruby
snath has quit [Ping timeout: 264 seconds]
tomzx_mac has joined #ruby
Xaitec has joined #ruby
capicue has quit [Ping timeout: 248 seconds]
weszlem has joined #ruby
wallerdev has joined #ruby
ua has joined #ruby
mary5030 has joined #ruby
jonathanwallace has joined #ruby
<gr33n7007h>
banisterfiend, will try that, thanks
anderson has quit [Quit: Leaving]
arietis has joined #ruby
yacks has joined #ruby
<banisterfiend>
gr33n7007h why would u want to uninstall pry anyway, it's the best thing in this sad fossil world.. ;)
thelorax123 has quit [Remote host closed the connection]
brennanMKE has joined #ruby
sayan has joined #ruby
timonv has joined #ruby
leonidlm has joined #ruby
thelorax123 has joined #ruby
<gr33n7007h>
banisterfiend, By far but i've got an error with coolline. I was thinking uninstalling then re-installing may fix it
<banisterfiend>
gr33n7007h ah, just uninstall pry-coolline should do it
mrfoto has joined #ruby
<mrfoto>
i need some help with regex
<mrfoto>
i only need to replace the match of the regex
<mrfoto>
and leave the rest as is
<gr33n7007h>
banisterfiend, I'll try uninstalling just coolline then ;)
<MrZYX>
mrfoto: and what's the problem with that?
<mrfoto>
i dont know how, gsub replaces the whole thing, i just want to replace the match group - the thing in () - with something else
<MrZYX>
make the regex just match what you currently have in the matchgroup then
anderson has joined #ruby
<MrZYX>
by using lookarounds and non matching groups etc if needed
dmyers has joined #ruby
snath has joined #ruby
<mrfoto>
i need to replace z's that are followed by some letters with s's
<mrfoto>
@text.gsub!(/\s(z)\s[ptksfhcš]/, 's')
<mrfoto>
this replaces the whole thing, not just the z
<banisterfiend>
TIL That Target had to issue an apology to its customers following outrage about the fact that a popular dress was offered in a color "Dark heather gray" for normal sizes, but the same color was titled "Manatee gray" for plus-sized dresses.
<rehat>
how do I add text inside a div tag in erb?
<rehat>
this text has html content
bklane has joined #ruby
pskosinski has quit [Quit: Til rivido Idisti!]
petey has joined #ruby
<mrfoto>
MrZYX: but how do I use two lookarounds in one regex
<MrZYX>
just do it
<mrfoto>
cause i need whitespace before the z and whitespace followed by a character after
timonv has quit [Remote host closed the connection]
wildroman2 has quit [Read error: Connection reset by peer]
simoz has joined #ruby
superscott[8]_ has joined #ruby
thelorax1231 has quit [Remote host closed the connection]
zz_tsykoduk is now known as tsykoduk
Elhu has quit [Quit: Computer has gone to sleep.]
<blackmesa>
nice thx
cina has joined #ruby
superscott[8] has quit [Ping timeout: 245 seconds]
superscott[8]_ is now known as superscott[8]
Mars__ has joined #ruby
<Hanmac>
remember: *args and **kargs uses to_ary and to_hash, not to_a and to_h ...there is a simantic different
devoldmx has joined #ruby
<shevy>
and ***qargs
weszlem has quit []
mary5030 has joined #ruby
kobain has joined #ruby
<shevy>
and ****zargs, the final args
bruno- has quit [Quit: leaving]
thelorax1231 has joined #ruby
starchild_ has joined #ruby
<Hanmac>
XDD
bruno- has joined #ruby
einarj has joined #ruby
<samfisher>
I have 5 lines to print and their content changes. How can I make the whole thing look nice? right now I'm clearing the screen but there is a noticeable 0.2 secons blackout
weszlem has joined #ruby
einarj has quit [Read error: Connection reset by peer]
einarj has joined #ruby
Jeticus has joined #ruby
Jeticus has quit [Client Quit]
vlad_sta_ has quit [Remote host closed the connection]
noop has quit [Ping timeout: 265 seconds]
Clooth has quit [Quit: Leaving...]
tsykoduk is now known as zz_tsykoduk
<shevy>
how do you clear the screen
Jeticus has joined #ruby
Jeticus has quit [Client Quit]
bricker`LA has quit [Ping timeout: 265 seconds]
bricker`LA has joined #ruby
thepumpkin has joined #ruby
jbpros has joined #ruby
DanKnox_away is now known as DanKnox
CaptainJet has quit [Ping timeout: 252 seconds]
<jblack>
shevy: ncurses would work
thelorax1231 has quit [Remote host closed the connection]
thelorax1231 has quit [Remote host closed the connection]
<RubyPanther>
samfisher: the only way to avoid flicker consistently on multiple lines is to use curses and write the new content, then delete any characters not replaced by the new content
rickruby has quit [Remote host closed the connection]
Thanatermesis has joined #ruby
relix has joined #ruby
brennanMKE has joined #ruby
<jb41>
i want to donate pry devs
<jb41>
it's such blessing <3
thelorax1231 has joined #ruby
thepumpkin has joined #ruby
<jb41>
i've no idea how devs debuggs rails app without it
bruno- has quit [Client Quit]
<jb41>
end of love story ;p
<jb41>
back tocoding
bruno- has joined #ruby
bruno- has quit [Client Quit]
<maoko>
jb41, oh! maybe you could answer my question regarding js response?)
bruno- has joined #ruby
bruno- has quit [Client Quit]
freerobby has quit [Quit: Leaving.]
freerobby has joined #ruby
bruno- has joined #ruby
<jb41>
I'm not good friends with js, and I'm rather here to ask than answer due to my skill, but let me see
bruno- has quit [Read error: Connection reset by peer]
brennanMKE has quit [Ping timeout: 264 seconds]
thepumpkin has quit [Ping timeout: 240 seconds]
bruno- has joined #ruby
sergicles has quit [Quit: sergicles]
DonRichie has quit [Read error: Connection reset by peer]
brianpWins has joined #ruby
bruno- has quit [Client Quit]
<maoko>
jb41, I just can't understand why link_to remote:true works for current controller's method and returns "missing layout" if this action belongs to another controller. Here is the gist: https://gist.github.com/maokomioko/5d7bb530498ccecdb0f1
bruno- has joined #ruby
bruno- has quit [Client Quit]
<maoko>
That's not the js problem, rather the controller handling the request.
bruno- has joined #ruby
bruno- has quit [Client Quit]
aley has quit [Quit: aley]
<jb41>
have you tried to debug it with pry?
Elhu has joined #ruby
bruno- has joined #ruby
<jb41>
I'm not so good at rails, so I don't see much from that gist
jamesaanderson has joined #ruby
aley has joined #ruby
thepumpkin has joined #ruby
thelorax123 has quit [Remote host closed the connection]
bruno- has quit [Client Quit]
bruno- has joined #ruby
devoldmx has quit [Ping timeout: 244 seconds]
Pessimism has joined #ruby
<Pessimism>
is there a Markdown parser for Jekyll that will allow me to use Markdown inside block HTML elements?
mixel has joined #ruby
codenapper has quit [Quit: codenapper]
eka has joined #ruby
devoldmx has joined #ruby
mary5030 has quit [Remote host closed the connection]
<maoko>
jb41, I'm doing it atm. It has to do something with the folder name, hmm.
bruno- has quit [Client Quit]
thelorax123 has joined #ruby
jbpros has joined #ruby
thepumpkin has quit [Ping timeout: 244 seconds]
burgess has joined #ruby
bradhe has joined #ruby
thelorax123 has quit [Read error: Connection reset by peer]
Clooth has joined #ruby
thelorax1231 has quit [Remote host closed the connection]
mrfoto has quit []
devoldmx has quit [Ping timeout: 244 seconds]
shvelo has quit [Ping timeout: 272 seconds]
devoldmx has joined #ruby
thelorax123 has joined #ruby
thepumpkin has joined #ruby
platypine has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
Tuxist_ has joined #ruby
thelorax123 has quit [Remote host closed the connection]
thelorax1231 has joined #ruby
DanKnox is now known as DanKnox_away
Tuxist has quit [Ping timeout: 245 seconds]
cpruitt has quit [Ping timeout: 272 seconds]
Bulters has quit [Ping timeout: 264 seconds]
cpruitt has joined #ruby
bruno- has joined #ruby
bruno- has quit [Client Quit]
mgberlin has joined #ruby
adambeynon has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Bulters has joined #ruby
shvelo has joined #ruby
bruno- has joined #ruby
sbos99 has quit [Ping timeout: 245 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
thelorax1231 has quit [Remote host closed the connection]
bruno- has quit [Client Quit]
<mgberlin>
would someone mind helping me out with rspec for the Test-First ruby tutorial?
thepumpkin has quit [Ping timeout: 245 seconds]
bruno- has joined #ruby
axl_ has joined #ruby
<mgberlin>
I'm trying to run the stupid-simple first example from Test-First ruby
<mgberlin>
and for some reason the rspec keeps failing
thelorax123 has joined #ruby
<mgberlin>
even though the code is obviously correct
Andrevan has quit [Quit: WeeChat 0.4.2-rc1]
64MAAWB92 has quit [Ping timeout: 245 seconds]
maletor has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
Bulters has quit [Read error: Operation timed out]
maletor has quit [Client Quit]
bruno- has quit [Client Quit]
bruno- has joined #ruby
bruno- has quit [Client Quit]
luckyruby has joined #ruby
thelorax1231 has joined #ruby
artm has quit [Ping timeout: 244 seconds]
bruno- has joined #ruby
<mr`spock>
>> puts 0.5 - 0.4 - 0.1
thelorax123 has quit [Read error: Connection reset by peer]
danshultz has quit [Remote host closed the connection]
danshultz has joined #ruby
osvico has quit []
bruno- has joined #ruby
thepumpkin has quit [Ping timeout: 264 seconds]
bluOxigen has quit [Ping timeout: 272 seconds]
thelorax1231 has quit [Remote host closed the connection]
linoge has quit [Client Quit]
bruno- has quit [Client Quit]
bruno- has joined #ruby
Lewix has quit [Remote host closed the connection]
thelorax1231 has joined #ruby
danshultz has quit [Ping timeout: 264 seconds]
mark_locklear has quit [Read error: Operation timed out]
thepumpkin has joined #ruby
Mars__ has joined #ruby
<Kamuela>
Would implicit casting to floating point really cause more problems than it's worth to be handled behind the scene? E.g. the great example of 10/3 = 3 vs 10.0/3 = 3.3333333. Why not just have 10/3 = 3.333333?
claymore has quit [Quit: Leaving]
vlad_starkov has quit [Remote host closed the connection]
sepp2k1 has quit [Quit: Leaving.]
Clooth has quit [Quit: Leaving...]
brennanMKE has joined #ruby
pithagorians has quit [Ping timeout: 245 seconds]
<apeiros>
Kamuela: if they'd change Integer#/, then hopefully to return Rational.
Mars__ has quit [Ping timeout: 240 seconds]
3JTAABZ9L has joined #ruby
aspires has quit [Quit: sudo making a sandwich]
thepumpkin has quit [Ping timeout: 264 seconds]
Tuxist_ has quit [Read error: Connection reset by peer]
thelorax1231 has quit [Remote host closed the connection]
amacgregor_ has joined #ruby
einarj has quit [Remote host closed the connection]
zarubin has joined #ruby
<Kamuela>
apeiros, Is what I'm saying desirable though? I know there are a lot of processing implications, but doesn't almost all of Ruby aim to make things sensible for the programmer rather than the computer?
thelorax1231 has joined #ruby
brennanMKE has quit [Ping timeout: 252 seconds]
<matled>
Kamuela: it probably depends on the programmer you ask what they expect to get from 10 / 3 :)
kofno has joined #ruby
jbpros has quit [Quit: jbpros]
amacgregor has quit [Ping timeout: 245 seconds]
thepumpkin has joined #ruby
leonidlm has quit [Ping timeout: 272 seconds]
thepumpkin has quit [Read error: Connection reset by peer]
<apeiros>
Kamuela: I think Integer#/ should only come as a surprise (if at all) at first
thepumpkin has joined #ruby
<apeiros>
once you know it, you should have no difficulty using either proper methods or normalize your data to what you need/want
<DanBoy>
most people are used to 10 % 3
thepumpkin has quit [Read error: Connection reset by peer]
bugsinlights has quit [Quit: No Ping reply in 180 seconds.]
thelorax1231 has quit [Remote host closed the connection]
thepumpkin has quit [Ping timeout: 264 seconds]
bruno- has joined #ruby
wildroman2 has quit [Remote host closed the connection]
thepumpkin has joined #ruby
weszlem has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
<Zelest>
If I do thrs = []; 5.times { thrs << Thread.new { blah = Blah.new } }; thrs.each { |t| t.join } ... and wrap the last part within a begin/catch statement, is it possible to access "blah" within that rescue?
<Zelest>
like, getting the objects inside thrs/t ?
thepumpkin has joined #ruby
Deele has quit [Ping timeout: 260 seconds]
<MrZYX>
no, but you could subclass thread and add an accessor for it
thepumpkin has quit [Read error: No route to host]
pirelenito_ has quit [Ping timeout: 272 seconds]
thepumpkin has joined #ruby
<Zelest>
Hmms..
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
weszlem has quit [Client Quit]
thepumpkin has joined #ruby
thelorax1231 has joined #ruby
Xaitec has joined #ruby
<shevy>
hmm could ruby be redesigned to eliminate or change the current ways how global variables work?
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
pirelenito has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
Spami has joined #ruby
thepumpkin has joined #ruby
spider-mario has quit [Remote host closed the connection]
thepumpkin has quit [Read error: Connection reset by peer]
brennanMKE has joined #ruby
<typicalbender>
shevy: what exactly are you looking for? Of course it could be redesigned but why would it?
thepumpkin has joined #ruby
bruno- has quit [Quit: leaving]
danshultz has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
pwh has joined #ruby
ravster has joined #ruby
Fuzai has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
<shevy>
typicalbender I am not sure, I find them too ugly to want to use them
bruno- has joined #ruby
weszlem has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
freezey has quit [Remote host closed the connection]
<typicalbender>
personally I think global variables should never be used unless in some very specific use cases
thepumpkin has joined #ruby
<shevy>
they are used in certain prominent parts, like regexes $1 $2 and $: and so forth
<typicalbender>
it makes the system very resilient to change
thelorax1231 has quit [Remote host closed the connection]
freezey has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
<shevy>
and what I wonder is how ruby could be different if it would not use these variables... but without losing those features, so perhaps it is not possible to do away with them :(
thepumpkin has joined #ruby
<typicalbender>
you can create classes that contain values
<shevy>
I mean things like: $: << __FILE__ or whatever it was, when people modify the load path
petey has quit [Remote host closed the connection]
<typicalbender>
just a class with constants
thepumpkin has quit [Read error: Connection reset by peer]
<typicalbender>
which is somewhat better than just using pure global vars
Czupa has joined #ruby
pirelenito has quit [Ping timeout: 272 seconds]
thepumpkin has joined #ruby
<typicalbender>
which is nice for doing config information that that sort of thing
<typicalbender>
ive been doing ruby for 2 years and never used a global var
<typicalbender>
recommends using constant classes instead of global vars
<typicalbender>
I think they are ugly for a reason, generally you shouldn't use them ;)
thelorax1231 has joined #ruby
freezey has quit [Read error: Operation timed out]
Fuzai has quit [Remote host closed the connection]
<shevy>
hehe
danshultz has quit [Ping timeout: 272 seconds]
<shevy>
how about @@ typicalbender?
kitak has joined #ruby
<shevy>
actually
justsee has joined #ruby
<shevy>
I suppose $ are used more often than @@
<typicalbender>
not as bad as global vars, they are contained to a class which is nice
<typicalbender>
yeah
<typicalbender>
ive used those a few times
artm has quit [Ping timeout: 264 seconds]
<typicalbender>
like i said, i've never seen or used the $
<typicalbender>
but have used @@ once or twice
DanKnox is now known as DanKnox_away
thepumpkin has quit [Ping timeout: 248 seconds]
workmad3 has quit [Ping timeout: 264 seconds]
<typicalbender>
shevy: did you have a specific problem you were trying to solve or was it just a general question
<shevy>
I saw a $var in my code and hated it
Clooth has joined #ruby
<typicalbender>
haha
<typicalbender>
yeah
thepumpkin has joined #ruby
<shevy>
$total_cost it was
<shevy>
now it is
<shevy>
@total_cost
<shevy>
:\
thepumpkin has quit [Read error: Connection reset by peer]
<typicalbender>
much better
<IceDragon>
! GLOBALS!!!
<IceDragon>
*insert world panic*
Lewix has joined #ruby
<typicalbender>
hahaha
zz_tsykoduk is now known as tsykoduk
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
<typicalbender>
one day the world will end because someone used a global variable and then divided by 0
thepumpkin has joined #ruby
<IceDragon>
*shivers*
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
<IceDragon>
best torture: Place a ruby coder in a room, and tell him to write a program using nothing but globals
thepumpkin has quit [Read error: Connection reset by peer]
nbrosnahan has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thepumpkin has joined #ruby
<IceDragon>
after which, calmly tell him, he won't be paid for his work
<IceDragon>
all those $$$ will be killing him
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
<typicalbender>
hahaha
hiyosi has quit [Read error: Operation timed out]
thepumpkin has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby
thepumpkin has quit [Read error: Connection reset by peer]
volty has joined #ruby
Xeago has quit [Remote host closed the connection]
<typicalbender>
what also blows my mind about ruby is that it allows you to access private methods on a class externally by using send
<IceDragon>
thepumpkin seems to be having it rough...
thepumpkin has joined #ruby
thepumpkin has quit [Read error: No route to host]
<typicalbender>
make testing private methods nice but slap the hand of any programmer that tries to introduce that into production
<IceDragon>
lol
thepumpkin has joined #ruby
Xaitec has quit [Remote host closed the connection]
thepumpkin has quit [Read error: Connection reset by peer]
<IceDragon>
ruby says: here, I give you everything to make and break your program, just don't blame me when something explodes in your face *points at your obviously faulty code with eval*
<typicalbender>
hahah
<typicalbender>
and thats why i <3 ruby
thepumpkin has joined #ruby
VTLob has quit [Quit: VTLob]
d45h has quit []
thepumpkin has quit [Read error: Connection reset by peer]
thelorax1231 has quit [Remote host closed the connection]
thepumpkin has joined #ruby
<MrZYX>
isn't it fun to run sed s/send/public_send/ on a codebase and see what breaks? :P
<Rudde>
OMG! Ruby works with ÆØÅ out of the box :o
existensil has joined #ruby
<MrZYX>
Rudde: try using non breaking spaces for your variable and method names ;)
<volty>
nokogiri, how do I get html body (what's between <body> and </body>) as string?
<typicalbender>
one pain in the ass about ruby is that you cant use '-' in keywords. I've worked with some apis that return key that look like "has-more" and trying to symbolize those you get ":has-more"
<typicalbender>
thus ive adopted the personal rule of no dashes in json keys
nXqd has joined #ruby
<IceDragon>
at one point in time, I saw japanese characters, used for a variable name in ruby
<IceDragon>
maybe I was drunk, or someone hit me over the head that day
thepumpkin has quit [Read error: No route to host]
rickruby has joined #ruby
vlad_starkov has joined #ruby
thepumpkin has joined #ruby
<nXqd>
btw, I'm thinking about a good ex to demonstrate ruby meta rogramming, any suggestion ?
<nXqd>
for a job interview :P
thepumpkin has quit [Read error: Connection reset by peer]
<existensil>
your own class macro is a good place to start
thepumpkin has joined #ruby
benzrf has joined #ruby
<benzrf>
hello
axl_ has quit [Quit: axl_]
<benzrf>
is it possible to dynamically add methods to classes without having to use code strings?
<benzrf>
like with blocks or something
thepumpkin has quit [Read error: Connection reset by peer]
<existensil>
benzrf: absolutely
Davey has joined #ruby
<coldmethod>
shevy: ping
<benzrf>
coldmethod: ??
thepumpkin has joined #ruby
<existensil>
benzrf: check out define_method
<benzrf>
existensil: how does work?
<benzrf>
ok, thanks
<benzrf>
is a class block sugar for anything like in python, or is it a primitive like in java?
thepumpkin has quit [Read error: Connection reset by peer]
vlad_sta_ has quit [Ping timeout: 272 seconds]
derebos has quit [Ping timeout: 272 seconds]
t_p has quit [Quit: Computer has gone to sleep.]
thepumpkin has joined #ruby
TheShaun has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
ce_afk is now known as cescalante
<existensil>
module and class can both be thought of as macros that create instances of Module and Class
thepumpkin has quit [Read error: Connection reset by peer]
<benzrf>
ok
<benzrf>
+
timonv has joined #ruby
<existensil>
those instances are mutable and maellable at runtime. i guess that means ruby is more like python in that respect
thepumpkin has joined #ruby
<benzrf>
so how exactly does it work?
<existensil>
haha... not sure
srji has quit [Ping timeout: 264 seconds]
mary5030 has quit [Remote host closed the connection]
<benzrf>
i.e. in python, the block is executed with a dictlike provided from the metaclass acting as the locals storage, then the metaclass is instantiated using the locals dictlike as an arg
Kamuela has quit [Quit: Leaving]
mary5030 has joined #ruby
zz_michael_mbp is now known as michael_mbp
<volty>
quite deep
Ox6abe has joined #ruby
carif has quit [Ping timeout: 272 seconds]
<benzrf>
volty: ?
thelorax123 has quit [Remote host closed the connection]
Es0teric has joined #ruby
<benzrf>
btw, does ruby allow you to provide a metaclass to a class definition?
<benzrf>
or do metaclasses have to be used without the class syntac?
<existensil>
i'm not super familiar with Python's meta programming, so hard to relate exactly
Lewix has quit [Remote host closed the connection]
brianpWins has joined #ruby
thepumpkin has quit [Ping timeout: 272 seconds]
thelorax123 has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bnagy>
metaclass turns out to not be a great name, sadly
<benzrf>
existensil: classes in python are basically prototypes, and methods are normal functions that are bound to objects through special access hooks
<benzrf>
like JS except that 'foo_bar = foo.bar; foo_bar()' works
michael_mbp is now known as zz_michael_mbp
<bnagy>
eignenclass ( the class of the object itself ) is better, but not catchy
<existensil>
benzrf: it sounds like ruby is pretty similar. you can definitely manipulate the methods boudn to a class, or an instance of a class
<benzrf>
metaclass != eigenclass though
<benzrf>
existensil: well ruby & python have very different object models
<bnagy>
in ruby those names are interchangeable
<existensil>
i'm sure... just talking about capability
<benzrf>
python is more similar to JS while ruby is more like smalltalk