earthquake has quit [Read error: Operation timed out]
earthquake has joined #ruby-lang
techlife has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
kith has quit [Read error: Connection reset by peer]
kith has joined #ruby-lang
swav_ has quit [Remote host closed the connection]
amerine has joined #ruby-lang
joxer has joined #ruby-lang
<yorickpeterse>
morning
<antbody>
morning
<joxer>
morning
jstemmer has joined #ruby-lang
<ggreer>
"Morning is broken, but we're working on it."
schaerli has joined #ruby-lang
<apeiros_>
hoi schaerli :)
techlife has quit [Ping timeout: 256 seconds]
techlife has joined #ruby-lang
maxmanders has joined #ruby-lang
kevinfagan has joined #ruby-lang
sush24 has joined #ruby-lang
swav has joined #ruby-lang
marr has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
swav has quit [Remote host closed the connection]
richardjortega has quit [Quit: richardjortega]
chendo__ has joined #ruby-lang
shirokuro11 has joined #ruby-lang
maxmanders has quit [Ping timeout: 252 seconds]
maxmanders has joined #ruby-lang
KU0N has joined #ruby-lang
Bosox20051 has quit [Quit: Leaving]
tallship has joined #ruby-lang
tallship has quit [Remote host closed the connection]
dzhulk has joined #ruby-lang
retro|cz has quit [Read error: Operation timed out]
tallship has joined #ruby-lang
Sinestro has joined #ruby-lang
woollyams has joined #ruby-lang
woollyams has quit [Remote host closed the connection]
maxmanders has quit [Ping timeout: 252 seconds]
elico has joined #ruby-lang
maxmanders has joined #ruby-lang
retro|cz has joined #ruby-lang
chendo__ has quit [Quit: Computer has gone to sleep.]
swav has joined #ruby-lang
ottbot has joined #ruby-lang
charliesome_ has joined #ruby-lang
beho has joined #ruby-lang
charliesome has quit [Disconnected by services]
charliesome_ is now known as charliesome
elico has quit [Remote host closed the connection]
Wildhoney has joined #ruby-lang
concernedcitizen has joined #ruby-lang
blacktulip has joined #ruby-lang
postmodern has quit [Read error: Operation timed out]
amerine has quit [Ping timeout: 252 seconds]
Wildhoney has quit []
maxmanders has quit [Ping timeout: 260 seconds]
workmad3 has joined #ruby-lang
Wildhoney has joined #ruby-lang
maxmanders has joined #ruby-lang
GarethAdams has joined #ruby-lang
io_syl has quit [Quit: Computer has gone to sleep.]
Domon has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
eklarskov has joined #ruby-lang
elico has joined #ruby-lang
<Eising>
I keep running against a wall here on something I thought was really simple. I have a variable set to false outside a block. Then I iterate over a file (.each_line) and at a certain point in that file, I set that variable to true, however on next iteration of the block it's set to false again.
<Eising>
I've tried forcing it to become a global variable with $, but that doesn't help...
<yorickpeterse>
Eising: could you put the code on gist.github.com or similar?
<Eising>
it's rather long...
<yorickpeterse>
Paste what's relevant :)
<Eising>
let me see if I can do a proof of concept code that mimmicks it...
dzhulk has quit [Quit: Leaving.]
<GarethAdams>
Paste the whole thing anyway, if it's just one variable that we need to trace it shouldn't be too hard (right?)
<injekt>
morning
navin has joined #ruby-lang
<Eising>
got a proof of concept that works exacty like my issue
dhruvasagar has quit [Read error: Connection reset by peer]
<yorickpeterse>
that's fine too
<Eising>
hmm, no it doesn't...
<Eising>
you'll get a redacted version of the real thing hten
<Eising>
*then
dhruvasagar has joined #ruby-lang
navin has quit [Remote host closed the connection]
<Eising>
there's lots of stuff cut, and I guess you need to know something about the File that I iterate over
<yorickpeterse>
well, there can be two things causing it:
<Eising>
it's by the way being interpreted by ruby 1.9.1 because of stupid debian stable :)
<injekt>
1.9.1 wut
<yorickpeterse>
1. line #22 is re-executed at some point and evaluates to true
<injekt>
1.9.1 isn't even stable
<injekt>
iirc
<injekt>
yes it is
<injekt>
shut up injekt
<yorickpeterse>
2. line #27 doesn't get executed properly
<yorickpeterse>
injekt: "stable" is a big word
<injekt>
yorickpeterse: :)
<injekt>
actually it's kinda short
<yorickpeterse>
The word you're looking for is "shit"
<injekt>
ah much shorter
<injekt>
rails apps switched to 2.0.0 already and it's only 2 hours into monday
<Eising>
yorickpeterse: I marked some lines in the pastie: I have a p relevant_if in the start of the block. It always prints "false", even after line 24 is executed
<injekt>
\o/
<workmad3>
Eising: doesn't the debian 'ruby1.9.1' package actually install 1.9.3?
<Eising>
1.9.2p0 actually
<yorickpeterse>
Eising: you set it to false on line 59
<workmad3>
either way, it lies about it being 1.9.1
<workmad3>
injekt: 1.9.1 is... not recommended, iirc :)
<yorickpeterse>
wat
<yorickpeterse>
why would you name a package version X but install Y?
<Eising>
yorickpeterse: yes, but that line doesn't appear in the file before much lame
<Eising>
*later
<workmad3>
yorickpeterse: god knows
<yorickpeterse>
regardless, if it happens in the outer most scope of the loop it will reset it
<injekt>
because debian
<yorickpeterse>
well, lets go ask god
<yorickpeterse>
he sounds like a dick
<yorickpeterse>
But if he uses Debian that would explain some things
* yorickpeterse
runs
<Eising>
yorickpeterse: oh, but it's inside an if statement that shouldn't evaluate true until later?
<yorickpeterse>
Oh I missed that one
<yorickpeterse>
hmm
<Eising>
there isn't something about block level variables in ruby1.9.x that I've missed?
<yorickpeterse>
well, start by breaking up the code into some methods
<yorickpeterse>
You might even fix the issue by doing so
<Eising>
I might fix the code by rewriting it completely, but deadline says no, but I'll put in some more code breakpoints and clean stuff up a bit
<Wardrop_>
I'm about to lose the plot there. I've been using rspec fine, now all of I sudden it's looking in the wrong directory
<Wardrop_>
I'm in "/Users/tomwardrop/Development/Scorched", but when I run "rspec" using the default pattern, it returns this...
<Wardrop_>
cannot load such file -- /Users/tomwardrop/Development/Scorched/spec/spec/controller_spec.rb (LoadError)
<Wardrop_>
Note how it's doubling up on the spec directory.
amerine has joined #ruby-lang
<Wardrop_>
It makes no sense. It's obviously found "controller_spec.rb" under "../spec/controller_spec.rb", but then for some unknown reasons prepends another "spec" onto the path
<Wardrop_>
Shit, nevemind, I think I've found the issue. I'm modifying the current working directory in my spec helper
mytrile has quit [Remote host closed the connection]
<yorickpeterse>
fog depends on net-scp, net-scp depends on net-ssh. It just so happened that we're using a version of fog that depends on a yanked version of net-scp
<imperator>
seems like the solution would be to have fog update its spec
rue|w has joined #ruby-lang
justinseiter has joined #ruby-lang
<yorickpeterse>
They did, however I got some weird ass errors when I tried updating fog
<yorickpeterse>
That's another issue though, this particular project has several Gems that have to be updated but most of them seem to break backwards compatibility one way or another so it's not trivial
<yorickpeterse>
But seriously, I need to get some trouts so I can slap people with it every time they yank a Gem that doesn't have any security issues in it
itsmeduncan has joined #ruby-lang
anonymuse has joined #ruby-lang
bantic has joined #ruby-lang
rue|w has quit [Ping timeout: 245 seconds]
wallerdev has joined #ruby-lang
jtperreault has quit [Quit: WeeChat 0.3.7]
skade has quit [Quit: Computer has gone to sleep.]
justinseiter has left #ruby-lang [#ruby-lang]
itsmeduncan has quit [Quit: itsmeduncan]
davidbalbert is now known as davidbalber|away
jxie has joined #ruby-lang
davidbalber|away is now known as davidbalbert
carloslopes has quit [Remote host closed the connection]
KA__ has joined #ruby-lang
Squarepy has quit [Read error: Connection reset by peer]
Gekz has quit [Ping timeout: 246 seconds]
itsmeduncan has joined #ruby-lang
banister`sleep has joined #ruby-lang
bantic has quit [Quit: bantic]
bantic has joined #ruby-lang
orluke has quit [Quit: orluke]
ikst has joined #ruby-lang
amerine has joined #ruby-lang
orluke has joined #ruby-lang
amerine has quit [Ping timeout: 244 seconds]
carloslopes has joined #ruby-lang
amerine has joined #ruby-lang
kogent has joined #ruby-lang
geopet has joined #ruby-lang
geopet has quit [Client Quit]
rue|w has joined #ruby-lang
eklarskov has quit [Quit: leaving]
bzalasky has joined #ruby-lang
carloslopes has quit [Remote host closed the connection]
sush24 has joined #ruby-lang
io_syl has joined #ruby-lang
io_syl has quit [Client Quit]
mercwithamouth has joined #ruby-lang
cristian__ has quit [Remote host closed the connection]
bzalasky has quit [Remote host closed the connection]
amerine has quit [Ping timeout: 245 seconds]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
kogent has quit [Read error: Connection reset by peer]
rue|w has quit [Ping timeout: 252 seconds]
kogent has joined #ruby-lang
iamjarvo has joined #ruby-lang
beho has joined #ruby-lang
enebo has joined #ruby-lang
orluke has quit [Quit: orluke]
sush24 has quit [Ping timeout: 264 seconds]
jbsan has quit [Quit: jbsan]
orluke has joined #ruby-lang
bryanl has quit [Ping timeout: 276 seconds]
<darix>
yorickpeterse: well the only problem would be to only allow yanking when no other gem requires that version anymore.
<darix>
shouldnt be too hard.
sush24 has joined #ruby-lang
bzalasky has joined #ruby-lang
jasonwaldrip has joined #ruby-lang
<yorickpeterse>
it's more of an educational issue I think
<yorickpeterse>
much like semantic versioning
jbsan has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
jasonwaldrip has left #ruby-lang [#ruby-lang]
<whitequark>
um, that would defeat the purpose of yanking
<whitequark>
also it isn't exactly clear what is "requires that version"
<whitequark>
=ver? >= ver? whatever
krohrbaugh has quit [Ping timeout: 252 seconds]
schaerli has quit [Remote host closed the connection]
bryanl has joined #ruby-lang
breakingthings has joined #ruby-lang
<yorickpeterse>
whitequark: my point is: only yank shit when it poses a threat to other people
<yorickpeterse>
because chances are that if it's out there for a few days people are using it
<yorickpeterse>
*or* do a public announcement saying you are going to yank it at date X
<yorickpeterse>
So you at least give people the time to prepare
concernedcitizen has quit [Remote host closed the connection]
<andrewvos>
I couldn't get 2.0 working
<andrewvos>
I've switched to lolsoap and going to punch anyone who tries to use that other one.
<andrewvos>
lolsoap has a cooler name too
nXqd has quit [Ping timeout: 244 seconds]
<banisterfiend>
haha
<banisterfiend>
ok
<banisterfiend>
it's like mixico
<banisterfiend>
but way stupider
rue|w has joined #ruby-lang
slyphon has quit [Quit: slyphon]
<iande>
wow
<banisterfiend>
so the self is some messed up proxy that forwards all methods to the 'instance', but in case it doesnt find the instance it falls back to executing the methods on the original_self (the self of the block)
RubyHead has joined #ruby-lang
<iande>
yeah
<banisterfiend>
so, you can invoke methods defined in the current scope (assumping tey dont match on the instance)
slyphon has joined #ruby-lang
<banisterfiend>
but you can't access ivars
jtoy has quit [Quit: jtoy]
justinseiter has joined #ruby-lang
anjen has joined #ruby-lang
<banisterfiend>
iande: this is technique that _why and a few others made viable by a C extension, but the advantage is that in C you *do* have access to the ivars (using magic hax) but the pure ruby proxy version like this is just stupid, it's too limited and weird
<iande>
was an attempt to do more than was really being done
g0bl1n has joined #ruby-lang
<banisterfiend>
not een sure what "breaking the binding" means ;)
<banisterfiend>
or could mean..
wmoxam has quit [Ping timeout: 256 seconds]
judofyr has quit [Remote host closed the connection]
willywos has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
RubyHead has quit [Read error: Connection reset by peer]
breakingthings has quit []
kcassidy has joined #ruby-lang
breakingthings has joined #ruby-lang
<iande>
using `eval` to evaluate the code in the context of an unexpected binding
RubyHead has joined #ruby-lang
anjen has quit [Quit: anjen]
<iande>
like I said though, I made hasty and incorrect judgement about that one line
RubyHead has quit [Remote host closed the connection]
wallerdev has joined #ruby-lang
kcassidy_ has quit [Ping timeout: 245 seconds]
geopet has joined #ruby-lang
<theoros>
i have a rake task which is taking a little over a minute to run, so i'm running ruby -S ruby-prof -p graph_html `which rake` foo:bar to get a profile, but the profile reports only ~8.5 seconds, even with export RUBY_PROF_MEASURE_MODE=wall. any ideas?
slyphon_ has joined #ruby-lang
<theoros>
(trying to wrap the expensive #each with RubyProf.start and .stop lead to ~0.5 seconds in the report.)
amerine has quit [Ping timeout: 255 seconds]
banisterfiend has quit [Ping timeout: 240 seconds]
jtoy has joined #ruby-lang
<injekt>
drbrain: ping
slyphon has quit [Ping timeout: 264 seconds]
slyphon_ is now known as slyphon
marr has joined #ruby-lang
shirokuro11 has quit [Remote host closed the connection]
apeiros_ has quit [Remote host closed the connection]
jtoy has quit [Client Quit]
carloslopes has joined #ruby-lang
<hdm>
theoros: could be spawning a sub-process
guns has joined #ruby-lang
sepp2k has joined #ruby-lang
<theoros>
hdm: wouldn't this still come out of the report of the `rake foo:bar` profile, as some kind of call to spawn
jtoy has joined #ruby-lang
sduckett has joined #ruby-lang
rue|w has joined #ruby-lang
<hdm>
probably a system() / popen()
g0bl1n has quit [Quit: g0bl1n]
krohrbaugh has joined #ruby-lang
guns has quit [Quit: guns]
dr_bob has left #ruby-lang [#ruby-lang]
skade has joined #ruby-lang
<andrewvos>
Went home early because that gem pissed me off so much. Why people gotta do that shit man?
scampbell has joined #ruby-lang
slyphon has quit [Quit: slyphon]
wizonesolutions has quit [Ping timeout: 245 seconds]
x0F has quit [Quit: Leaving]
sduckett has quit [Ping timeout: 256 seconds]
wmoxam has joined #ruby-lang
wizonesolutions has joined #ruby-lang
<injekt>
yeah man
<injekt>
like bro
<injekt>
totally
francisfish has quit [Read error: Connection reset by peer]
francisfish has joined #ruby-lang
skade has quit [Ping timeout: 244 seconds]
amerine has joined #ruby-lang
<andrewvos>
haha shut up inkjet
<injekt>
:D
KA__ has quit [Quit: KA__]
_protagoras271_ has joined #ruby-lang
skade has joined #ruby-lang
kcassidy has left #ruby-lang [#ruby-lang]
banisterfiend has joined #ruby-lang
<banisterfiend>
iande: yeah Block#binding allows you to pull off binding_of_caller type stuff
<banisterfiend>
pretty cool
imajes has quit [Excess Flood]
<iande>
yeah
slyphon has joined #ruby-lang
Cristdrc has joined #ruby-lang
imajes has joined #ruby-lang
skade has quit [Ping timeout: 256 seconds]
__butch__ has joined #ruby-lang
gregmoreno has joined #ruby-lang
KA__ has joined #ruby-lang
richardjortega has joined #ruby-lang
bantic has quit [Ping timeout: 252 seconds]
amerine has quit [Ping timeout: 256 seconds]
amerine has joined #ruby-lang
bantic has joined #ruby-lang
ryanv-raptor has left #ruby-lang [#ruby-lang]
io_syl has joined #ruby-lang
skade has joined #ruby-lang
intellitech has joined #ruby-lang
mercwithamouth has quit [Ping timeout: 255 seconds]
sduckett has joined #ruby-lang
<zzak>
banisterfiend: did you ever check out Bug::Debug.inspector?
cultureulterior_ has quit [Quit: cultureulterior_]
maxmanders has quit [Quit: Computer has gone to sleep.]
krohrbaugh has joined #ruby-lang
<zzak>
loooks like they use rb_backtrace_location_t
<banisterfiend>
zzak: i think the debug api is kind of nasty. it would be sweeter if it was: inspector.frame(n).binding / inspector.frame(n).iseq / inspector.frame(n).klass
skade has quit [Quit: Computer has gone to sleep.]
<zzak>
do you know what that is?
thufir_ has quit [Ping timeout: 255 seconds]
<zzak>
they both use it, debugger api and Location object
<banisterfiend>
rather than inspector.frame_binding(n) / inspector.frame_iseq(n) / inspector.frame_class(n)
mrsolo has quit [Remote host closed the connection]
<banisterfiend>
zzak: it would be a good case for polymorphism in an oop language, as u can see every single function that uses that struct has a bunch of switch statements ;)
torrieri has joined #ruby-lang
tjadc_ has left #ruby-lang [#ruby-lang]
havenn has joined #ruby-lang
<zzak>
yeah
ryanf has quit [Quit: leaving]
GarethAdams has quit [Quit: Leaving...]
jtoy has quit [Quit: jtoy]
retro|cz has quit [Ping timeout: 252 seconds]
__butch__ has quit [Quit: Leaving.]
justinram has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
mistym is now known as mistym_coffee
vlad_starkov has joined #ruby-lang
towski has quit [Remote host closed the connection]
thone_ has joined #ruby-lang
thone has quit [Ping timeout: 244 seconds]
imajes has quit [Excess Flood]
hahuang65 has joined #ruby-lang
imajes has joined #ruby-lang
rue|w has quit [Remote host closed the connection]
tylersmith has quit [Quit: tylersmith]
sn0wb1rd has joined #ruby-lang
nachtwandler has joined #ruby-lang
mercwithamouth has quit [Ping timeout: 255 seconds]
sn0wb1rd has quit [Client Quit]
sn0wb1rd has joined #ruby-lang
pabs has quit [Ping timeout: 252 seconds]
thufir_ has quit [Quit: Leaving.]
tylersmith has joined #ruby-lang
sduckett has joined #ruby-lang
pabs has joined #ruby-lang
maxmanders has joined #ruby-lang
breakingthings has joined #ruby-lang
jtoy has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
apeiros_ has joined #ruby-lang
jbsan has quit [Quit: jbsan]
pabs has quit [Ping timeout: 260 seconds]
pabs has joined #ruby-lang
sduckett has quit [Ping timeout: 256 seconds]
tylersmith has quit [Quit: tylersmith]
cristian__ has quit [Quit: Saliendo]
Lycoris_b has joined #ruby-lang
davidbalbert is now known as davidbalber|away
jbsan has joined #ruby-lang
krohrbaugh has quit [Quit: Leaving.]
pr0ton has joined #ruby-lang
brianpWins has joined #ruby-lang
swav has quit [Remote host closed the connection]
pabs has quit [Ping timeout: 276 seconds]
pabs has joined #ruby-lang
brianpWins has quit [Client Quit]
Lycoris_b has left #ruby-lang [#ruby-lang]
brianpWins has joined #ruby-lang
torrieri has quit [Ping timeout: 255 seconds]
<Paradox>
bye rbfu
headius has joined #ruby-lang
<Paradox>
i never used you
<Paradox>
but some people did
<Paradox>
and thats a eulogy
sush24 has joined #ruby-lang
mercwithamouth has joined #ruby-lang
jonahR has joined #ruby-lang
<imperator>
?
Uranio has quit [Quit: while you reading this, a kitty dies]
alessio_rocco has quit [Read error: Connection reset by peer]
<Br4nd0n>
havenwood: can I bug you for a few?
<Mon_Ouie>
'9 project.save¬'
<havenwood>
Br4nd0n: You can try!
<cored>
can't see it in here
<Mon_Ouie>
You have to scroll
<havenwood>
Br4nd0n: sup?
<Br4nd0n>
havenwood: now that I have installed brew, what is my ruby shell path?
<havenwood>
Br4nd0n: You had done a `brew install chruby`, right?
<Br4nd0n>
havenwood: chruby-0.3.3 is installed
<banisterfiend>
cored: wtf is wrong with your editor
<havenwood>
Br4nd0n: I'd recommend just installing your Rubies in ~/.rubies/ (one of the places chruby will autodetect without adding the dir to your ~/.bash_profile)/
<cored>
Mon_Ouie: fixed
<cored>
banisterfiend: hehe :-)
<havenwood>
Br4nd0n: Do you want to build Ruby yourself or use a tool like tokaido or ruby-build?
<cored>
banisterfiend: vim, I don't know what happend with vim.gist have to fix that out
<havenwood>
Br4nd0n: (Any of the above work fine.)
<Mon_Ouie>
It looks like something with line return characters. What do '¬' mean in gist? '\r'?