apeiros_ changed the topic of #ruby-lang to: Ruby 1.9.3-p392: http://ruby-lang.org (ruby-2.0.0-rc2) || Paste >3 lines of text on http://gist.github.com
<apeiros_> (horribly undertested code)
<whitequark> apeiros_: I know I didn't break anything when the only place grep finds the method in is its definition
<whitequark> this project is horribly untested also
iamjarvo has quit [Quit: Leaving.]
<whitequark> *undertested
<whitequark> but that is an appropriate typo
<whitequark> the specs were written just like the code: lots of LOC doing exactly nothing
<whitequark> or worse--randomly breaking in 10% of builds
<whitequark> and STILL doing nothing to test the exact behaviro
<whitequark> and horrific SmartNotifierProcess, written literally while on meth
<whitequark> I think there should be a bot hitting the programmer's fingers with a ruler when he writes something with "Smart" in the name
solars has quit [Read error: Operation timed out]
<whitequark> as such a component is destined to become a horrible abomination
<apeiros_> hehe
* apeiros_ wants wired keyboards to send jolts
<whitequark> and I mean not just hitting
<apeiros_> combine with CI
<whitequark> hitting with enough force to break all of the bones in fingers
<apeiros_> oh, btw., do you have any experience with simplecov?
<whitequark> in the most painful way possible
<whitequark> apeiros_: yea
<whitequark> using it for all of my projects
<apeiros_> it reports completely wrong numbers for me
<whitequark> and you know that because?
xalei has quit [Remote host closed the connection]
<apeiros_> because it's not complex code and it's obvious that lines have been executed which are marked as not executed
<whitequark> oh wow that is a lot of directories for a day old gem
<whitequark> lemme check
<apeiros_> I haven't spent more than a few minutes on it, though
<apeiros_> maybe I missed something obvious
<apeiros_> but I thought maybe there's some well known issue(s)
<whitequark> no, never encountered any
ruby-lang754 has joined #ruby-lang
<apeiros_> you can run the tests with simplecov using `COVERAGE=1 ruby test/runner.rb`
<apeiros_> (you can set COVERAGE to any value really, it just tests for presence)
ruby-lang754 has left #ruby-lang [#ruby-lang]
<whitequark> hm, the way you organize code is horrible
<whitequark> but maybe it's just too WIP
<apeiros_> hu?
srbaker has quit [Quit: Computer has gone to sleep.]
<apeiros_> what's horrible about that?
<apeiros_> referring to lib or test? or all?
<whitequark> +x runner.rb without shebang, weird nonexisting stuff instead of a proper rakefile
<apeiros_> ah, runner should not have +x
<whitequark> and just this feeling that the repo is a lot of random files lying together
<apeiros_> osx doesn't make that very visible
<whitequark> btw I know what's wrong with simplecov
<apeiros_> "weird nonexisting stuff" - how can stuff be weird, yet not exist?
itsmeduncan has quit [Quit: itsmeduncan]
itsmeduncan has joined #ruby-lang
<whitequark> apeiros_: because there are six rake-related files or dirs, yet rake -T is totally empty
<whitequark> apeiros_: re simplecov: you didn't read readme
<whitequark> shall I explain the problem to you?
<apeiros_> ah, that's infrastructure. I can drop in my rake stuff easily like that. I haven't because I don't need it. But maybe I should, and if it's just for other people using the project.
<apeiros_> (it's a cross-project infrastructure, all other projects use the same)
<apeiros_> yes, please @ explain
<whitequark> apeiros_: readme instructs you to require simplecov before everything else
<whitequark> and specifically your code
<whitequark> I've fixed that and got 94% coverage
<apeiros_> o0
<apeiros_> the library code is being loaded after simplecov
<apeiros_> unless…
<apeiros_> no, the helper doesn't require library code either
<whitequark> um
<whitequark> I simply moved simplecov block to the top
<apeiros_> yes, I see the difference too
itsmeduncan has quit [Quit: itsmeduncan]
<apeiros_> I find it surprising… I interpreted "at the top" as "before you load the code which you test the coverage of"
<whitequark> well that is exactly how you should interpret it
<apeiros_> but that's not how it works, obviously
<whitequark> lemme verify
<apeiros_> unless I miss a require…
<apeiros_> I used `p $".grep(/sorting/)`
<apeiros_> and nothing from lib is loaded before simplecov is required
<apeiros_> (from test/lib yes, but that's not code I want coverage-tested)
<whitequark> hm, true
<whitequark> no clue then. maybe that's how ruby's coverage works.
<apeiros_> seems like
<apeiros_> at least it's an easy fix
<apeiros_> moved it and made a according comment
<apeiros_> ah, hah, Smaller/Bigger#to_str - if only I remembered where that was necessary…
<apeiros_> ugh, why does simplecov use blacklisting instead of whitelisting…
<whitequark> argh
<whitequark> I want to find the original developer of this stuff and beat his little moronic ass until he would explain me exactly which incoherent train of thought lead him to excise a perfectly good part of a haml template and replace it with a helper
<whitequark> which is only ever called from a single place and which calls several partials and then concatenates the result with three strings
<whitequark> with HTML literals.
<whitequark> HDD: hate-driven development
kurko__ has joined #ruby-lang
<apeiros_> insert starwars quote
<whitequark> I'm already there; what would I have to be concerned about?
havenwood has joined #ruby-lang
soypirate has joined #ruby-lang
Qfwfq has quit [Ping timeout: 255 seconds]
dzhulk has quit [Quit: Leaving.]
<apeiros_> hm, maybe only that the padawan of a sith either dies before becoming the sith lord, or gets killed by his own padawan (if I remember that stuff right)
Qfwfq has joined #ruby-lang
benanne has joined #ruby-lang
<apeiros_> whitequark: lol @ your tweet :D
<whitequark> apeiros_: which one of them?
<apeiros_> the force!
<whitequark> ah, right
justinseiter has quit [Remote host closed the connection]
<whitequark> it was surprisingly timely
davidbalbert is now known as davidbalber|away
ProfessorNim has joined #ruby-lang
<ProfessorNim> hello all
<apeiros_> indeed :)
<apeiros_> funny, rewriting my rake tasks (haven't been using any for ages) - all gem tasks are now 2 liners: require 'rubygems/gem_runner' and `Gem::GemRunner.new.run …args…`
<whitequark> apeiros_: I just use bundler gem tasks
<apeiros_> what makes me a bit uneasy is that the whole env var dance happens in the gem executable
<whitequark> though I could understand it if you don't
<apeiros_> whitequark: I don't even want the rake tasks
mistym has joined #ruby-lang
<apeiros_> I mean… rm *.gem && gem build *.gemspec && gem install *.gem # not that hard
<whitequark> but why do you want to type it each time?
<apeiros_> why would I?
<apeiros_> there's bash_profile and alias
<apeiros_> also ctrl-r
<whitequark> and now you've only made it convenient for *yourself*, you egoistical prick :s
<apeiros_> but I haven't forced my way of doing things on others, you control freak! :-p
<whitequark> you surely did
<whitequark> because I now have to do things your way.
<apeiros_> o0
<dRbiG> hello
<whitequark> apeiros_: as every other gem has some way of doing this, with overwhelming majority just using bundler, I now have to either type them myself or recreate your aliae
<dRbiG> i'm writing an app that uses beaneater, and the relevant question: is there some conventional way of writing rspec tests for stuff that involves deamons and networked stuff?
<dRbiG> some sort of elaborate mocking?
<whitequark> dRbiG: well kind of, you could always mock IO
<whitequark> also don't test daemonization, just use one of the well-tested gems around
<whitequark> you really don't want to write it yourself
<apeiros_> whitequark: or you add whatever way you please and use that
<whitequark> apeiros_: which you probably won't accept as a PR
<dRbiG> whitequark: currently i'm trying to somehow write the tests on a 'leaving deamon'. i check if beanstalkd is running, then first descrive if the server class even initialised properly, now i'm thinking to write some sort of check for running while forking :)
<whitequark> dRbiG: really, just don't
<apeiros_> whitequark: you can maintain a fork :)
<whitequark> apeiros_: I have zero wish to
<apeiros_> whitequark: anyway, fear not, rake tasks are coming
<whitequark> that is the problem
<whitequark> dRbiG: gem 'daemons'
<apeiros_> whitequark: the overwhelming majority only does `gem install foo` anyway
<dRbiG> whitequark: yeah, i do have concerns about that approach too
<apeiros_> and those are entirely unconcerned about those things
<whitequark> apeiros_: who are more important to your project, long-term speaking: users or contributors? ;)
<whitequark> yay 5am holy wars!
<apeiros_> whitequark: I think I can live without devs who can't use neither the gem command, nor alias, nor implant whatever means they please
eklarskov has joined #ruby-lang
<apeiros_> (nor ask what options they have)
<whitequark> apeiros_: however if I would have to maintain a fork to work conveniently with your project, I probably just won't.
srbaker has joined #ruby-lang
<apeiros_> whitequark: you'll have that issue no matter what. if the existing way doesn't please you, you either have to use it, maintain a fork, or walk away.
Stilo has joined #ruby-lang
<apeiros_> you're just put off because my way isn't your way and argue in a circle…
<apeiros_> i.e., so I do it with bundler - then comes foobar along who thinks bundle is shit and he doesn't want any of it, and because he doesn't want to maintain a fork to work conveniently with my project, he just doesn't.
marr has quit [Ping timeout: 248 seconds]
<apeiros_> so - what's the point? :)
<whitequark> apeiros_: I'm not really sure why would I want to push gems of your projects anywhere in the first place
<whitequark> but as I don't really have anything else to do, let's go on
justinram has quit [Remote host closed the connection]
<whitequark> *anything more interesting.
zmack has joined #ruby-lang
nertzy2 has left #ruby-lang [#ruby-lang]
eklarskov has quit [Ping timeout: 252 seconds]
earthquake has joined #ruby-lang
thufir_ has quit [Ping timeout: 246 seconds]
srbaker has quit [Quit: Computer has gone to sleep.]
dorei has joined #ruby-lang
slyphon has joined #ruby-lang
zmack has quit [Ping timeout: 260 seconds]
richardjortega_ has joined #ruby-lang
richardjortega has quit [Read error: Connection reset by peer]
richardjortega_ is now known as richardjortega
earthquake has quit [Quit: earthquake]
earthquake has joined #ruby-lang
netShadow has joined #ruby-lang
Qfwfq has quit [Ping timeout: 255 seconds]
Qfwfq has joined #ruby-lang
breakingthings has quit []
richardjortega has quit [Read error: Connection reset by peer]
dyln has joined #ruby-lang
richardjortega has joined #ruby-lang
sailias has joined #ruby-lang
slyphon has quit [Quit: slyphon]
havenwood has quit [Remote host closed the connection]
nXqd has quit [Read error: Connection reset by peer]
slyphon has joined #ruby-lang
drbrain has quit [Quit: Goodbye]
ProfessorNim has quit [Quit: Leaving]
drbrain has joined #ruby-lang
benanne has quit [Quit: kbai]
havenwood has joined #ruby-lang
thone has joined #ruby-lang
chendo__ has joined #ruby-lang
thone_ has quit [Ping timeout: 252 seconds]
KU0N has quit [Quit: Leaving...]
dyln has quit [Ping timeout: 264 seconds]
maxmanders has quit [Ping timeout: 256 seconds]
dyln has joined #ruby-lang
mistym has quit [Remote host closed the connection]
maxmanders has joined #ruby-lang
cirwin has quit [Quit: Leaving.]
klebervi_ has joined #ruby-lang
amerine has joined #ruby-lang
amerine has quit [Client Quit]
damienbrz has joined #ruby-lang
mistym has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
thufir_ has joined #ruby-lang
Qfwfq has quit [Ping timeout: 255 seconds]
kurko__ has quit [Ping timeout: 252 seconds]
Qfwfq has joined #ruby-lang
kurko__ has joined #ruby-lang
wmoxam has joined #ruby-lang
mistym has quit [Remote host closed the connection]
wmoxam_ has joined #ruby-lang
wmoxam has quit [Quit: leaving]
wmoxam_ is now known as wmoxam
wmoxam has quit [Changing host]
wmoxam has joined #ruby-lang
postmodern has joined #ruby-lang
damienbrz has left #ruby-lang [#ruby-lang]
mercwithamouth has quit [Ping timeout: 260 seconds]
mercwithamouth has joined #ruby-lang
charliesome has joined #ruby-lang
jackhammer2022 has joined #ruby-lang
Qfwfq has quit [Ping timeout: 255 seconds]
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
hakunin has quit [Remote host closed the connection]
pototo has joined #ruby-lang
dyln has quit [Remote host closed the connection]
dhruvasagar has joined #ruby-lang
hakunin has joined #ruby-lang
Qfwfq has joined #ruby-lang
pototo has quit [Quit: pototo]
dorei has quit []
kgrz has joined #ruby-lang
kgrz has quit [Ping timeout: 246 seconds]
Bwild has quit [Ping timeout: 240 seconds]
Bwild has joined #ruby-lang
Qfwfq has quit [Ping timeout: 255 seconds]
iamjarvo has joined #ruby-lang
kgrz has joined #ruby-lang
setmeaway has joined #ruby-lang
maxmanders has quit [Ping timeout: 244 seconds]
maxmanders has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Remote host closed the connection]
Qfwfq has joined #ruby-lang
io_syl has quit [Read error: Operation timed out]
io_syl has joined #ruby-lang
spuk has joined #ruby-lang
spacesuit has joined #ruby-lang
kgrz has quit [Quit: Computer has gone to sleep.]
Qfwfq has quit [Ping timeout: 255 seconds]
jxie has joined #ruby-lang
Qfwfq has joined #ruby-lang
spuk has quit [Ping timeout: 260 seconds]
ruby-lang888 has joined #ruby-lang
ruby-lang888 has quit [Client Quit]
mr_white has quit [Remote host closed the connection]
AndChat- has quit [Ping timeout: 264 seconds]
Banistergalaxy has joined #ruby-lang
spuk has joined #ruby-lang
klebervi_ has quit [Remote host closed the connection]
klebervirgilio has joined #ruby-lang
Qfwfq has quit [Ping timeout: 255 seconds]
Qfwfq has joined #ruby-lang
kgrz has joined #ruby-lang
klebervirgilio has quit [Ping timeout: 255 seconds]
breakingthings has joined #ruby-lang
iamjarvo has quit [Quit: Leaving.]
twintail1 has quit [Quit: Leaving.]
twintail has joined #ruby-lang
netShadow has quit [Quit: netShadow]
<zzak> apeiros_: your patch landed in r39449 http://mla.n-z.jp/?ruby-changes=27397
<zzak> apeiros_: thanks!
zwevans has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
gregmoreno has joined #ruby-lang
jbsan has joined #ruby-lang
kgrz has quit [Quit: Computer has gone to sleep.]
agarie has joined #ruby-lang
kurko__ has quit [Ping timeout: 255 seconds]
kurko__ has joined #ruby-lang
gregmoreno has quit [Remote host closed the connection]
zanegray has left #ruby-lang [#ruby-lang]
maxmanders has quit [Ping timeout: 276 seconds]
maxmanders has joined #ruby-lang
iamjarvo has joined #ruby-lang
slyphon has quit [Quit: slyphon]
willyw has joined #ruby-lang
Xzyx987X_ has joined #ruby-lang
Qwak has joined #ruby-lang
neurodamage has quit [Read error: Operation timed out]
neurodamage has joined #ruby-lang
sush24 has joined #ruby-lang
Xzyx987X has quit [Ping timeout: 264 seconds]
nignaztic has joined #ruby-lang
nignaztic has quit [Read error: Connection reset by peer]
Qwak has quit [Ping timeout: 252 seconds]
mistym has joined #ruby-lang
Guest69401 has quit [Ping timeout: 245 seconds]
mistym has quit [Remote host closed the connection]
iamjarvo has quit [Quit: Leaving.]
ddd has joined #ruby-lang
ddd is now known as Guest94877
mistym has joined #ruby-lang
agarie has quit [Remote host closed the connection]
tdy_ has quit [Ping timeout: 255 seconds]
breakingthings has quit []
agarie has joined #ruby-lang
soypirate has quit [Ping timeout: 245 seconds]
heliumsocket has joined #ruby-lang
beiter_ has joined #ruby-lang
heliumsocket has quit [Quit: heliumsocket]
heliumsocket has joined #ruby-lang
beiter has quit [Ping timeout: 248 seconds]
beiter_ is now known as beiter
glebm has quit [Quit: Computer has gone to sleep.]
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
spacesuit has quit []
slyphon has joined #ruby-lang
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
Sonarcade has joined #ruby-lang
willyw has quit [Remote host closed the connection]
Sonarcade has quit [Ping timeout: 260 seconds]
Qwak has joined #ruby-lang
duderonomy has joined #ruby-lang
agarie has quit [Remote host closed the connection]
sepp2k1 has quit [Remote host closed the connection]
perry has quit [Ping timeout: 264 seconds]
spacesuit has joined #ruby-lang
spacesuit has quit [Client Quit]
afeld has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 276 seconds]
sush24 has quit [Ping timeout: 276 seconds]
davidbalber|away is now known as davidbalbert
tomzx_mac has quit [Ping timeout: 260 seconds]
sush24 has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
slyphon has quit [Quit: slyphon]
bzalasky has joined #ruby-lang
kurko__ has quit [Ping timeout: 252 seconds]
kurko__ has joined #ruby-lang
wmoxam has quit [Ping timeout: 260 seconds]
twintail has quit [Quit: Leaving.]
mistym has quit [Remote host closed the connection]
jackhammer2022 has quit [Quit: Computer has gone to sleep.]
Qwak has quit [Ping timeout: 255 seconds]
pabs has quit [Ping timeout: 255 seconds]
pabs has joined #ruby-lang
Qfwfq has quit [Ping timeout: 255 seconds]
Qfwfq has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
ryez has joined #ruby-lang
cirwin has joined #ruby-lang
pabs has quit [Ping timeout: 264 seconds]
pabs has joined #ruby-lang
cirwin has left #ruby-lang [#ruby-lang]
solars has joined #ruby-lang
mercwithamouth has quit [Ping timeout: 264 seconds]
maxmanders has quit [Ping timeout: 276 seconds]
maxmanders has joined #ruby-lang
afeld has quit [Remote host closed the connection]
<nazty> hey
<nazty> anyibe around
d3vic3 has joined #ruby-lang
twintail has joined #ruby-lang
heliumsocket has quit [Quit: heliumsocket]
pabs has quit [Ping timeout: 244 seconds]
pabs has joined #ruby-lang
duderonomy has quit [Quit: duderonomy]
tdy_ has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
twintail has quit [Ping timeout: 276 seconds]
Qfwfq has quit [Ping timeout: 255 seconds]
Qfwfq has joined #ruby-lang
tonni has joined #ruby-lang
Qfwfq has quit [Client Quit]
Qfwfq has joined #ruby-lang
Qfwfq has joined #ruby-lang
Qfwfq has quit [Changing host]
sush24 has quit [Quit: This computer has gone to sleep]
Nisstyre-laptop has quit [Quit: Leaving]
davidbalbert is now known as davidbalber|away
kurko__ has quit [Quit: Computer has gone to sleep.]
charliesome has joined #ruby-lang
sush24 has joined #ruby-lang
marr has joined #ruby-lang
dhruvasagar has joined #ruby-lang
kgrz has joined #ruby-lang
Wardrop_ has joined #ruby-lang
twintail has joined #ruby-lang
<Wardrop_> Is it a wise idea to use YARD to document my new open-source web framework, and abandon RDOC?
<Wardrop_> Does ruby gems properly support YARD?
<Wardrop_> RDoc seems like something that should probably be deprecated in favour of YARD.
dhruvasagar has quit [Remote host closed the connection]
twintail has quit [Ping timeout: 252 seconds]
srbaker has joined #ruby-lang
Qfwfq has quit [Ping timeout: 255 seconds]
Qfwfq has joined #ruby-lang
Qfwfq has joined #ruby-lang
Qfwfq has quit [Changing host]
gregmoreno has joined #ruby-lang
krz has joined #ruby-lang
srbaker has quit [Ping timeout: 245 seconds]
gregmoreno has quit [Ping timeout: 245 seconds]
sush24 has quit [Quit: This computer has gone to sleep]
Qfwfq has quit [Ping timeout: 255 seconds]
Qfwfq has joined #ruby-lang
srbaker has joined #ruby-lang
krz has quit [Quit: krz]
krz has joined #ruby-lang
dzhulk has joined #ruby-lang
havenwood has joined #ruby-lang
<havenwood> I guess /topic could use a bump to 2.0.0-p0 :D
sush24 has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
srbaker has quit [Quit: Computer has gone to sleep.]
MaddinXx has joined #ruby-lang
chendo__ has quit [Quit: Computer has gone to sleep.]
miraks has joined #ruby-lang
<apeiros_> havenwood: ^^
<Paradox> well
<Paradox> >_<
<Paradox> there goes my week
<apeiros_> zzak: awesome, thanks!
<havenwood> :D
<Paradox> wonder how many gems are gonna break
<Paradox> also
<Paradox> glad i didnt upgrade to the last 1.9.3 patch
<Paradox> lol
apeiros_ changed the topic of #ruby-lang to: Ruby 2.0.0-p0: http://ruby-lang.org (Ruby 1.9.3-p392) || Paste >3 lines of text on http://gist.github.com
krz has quit [Read error: Connection reset by peer]
Sinestro has quit [Quit: Computer has gone to sleep.]
Qfwfq_ has joined #ruby-lang
kgrz has quit [Quit: Computer has gone to sleep.]
Qfwfq has quit [Ping timeout: 255 seconds]
d3vic3 has quit [Quit: leaving]
miraks has quit [Ping timeout: 260 seconds]
sush24 has quit [Ping timeout: 255 seconds]
sush24 has joined #ruby-lang
twintail has joined #ruby-lang
twintail has quit [Ping timeout: 252 seconds]
tbuehlmann has joined #ruby-lang
dhruvasagar has joined #ruby-lang
kevinfagan has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
Qfwfq_ is now known as Qfwfq
ikst has quit [Remote host closed the connection]
krz has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 255 seconds]
havenwood has joined #ruby-lang
RickHull has quit [Read error: Connection reset by peer]
ottbot has joined #ruby-lang
<beawesomeinstead> Happy birthday folks!
ddv has left #ruby-lang [#ruby-lang]
<havenwood> celebration time! \o/
<beawesomeinstead> I already prepared some Cointreau for the evening :-)
<yorickpeterse> woop woop, ruby 2.0
burgestrand has joined #ruby-lang
[dmp] has quit [Quit: server needs reboot]
<yorickpeterse> apeiros_: you'll want to change the channel info as well
<yorickpeterse> it still mentions 1.9.2
tbuehlmann has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
tbuehlmann has joined #ruby-lang
<apeiros_> yorickpeterse: I can't
<yorickpeterse> oh?
dhruvasagar has joined #ruby-lang
[dmp] has joined #ruby-lang
<apeiros_> no privileges afaik
twintail has joined #ruby-lang
KU0N has joined #ruby-lang
<yorickpeterse> hm
miraks has joined #ruby-lang
Qfwfq has quit [Ping timeout: 255 seconds]
Stilo has joined #ruby-lang
Qfwfq has joined #ruby-lang
havenwood has quit [Read error: Connection reset by peer]
<manveru> weird that rvm matches 1.8 and 1.9, but needs 2.0.0 for 2.0
dhruvasagar has quit [Ping timeout: 245 seconds]
havenwood has joined #ruby-lang
dzhulk has quit [Quit: Leaving.]
havenwood has quit [Remote host closed the connection]
justinram has joined #ruby-lang
beho has joined #ruby-lang
slyphon has joined #ruby-lang
thillux has joined #ruby-lang
slyphon has quit [Client Quit]
eklarskov has joined #ruby-lang
hoornet has joined #ruby-lang
hoornet has quit [Remote host closed the connection]
<apeiros_> what I don't get - why __dir__ and not __DIR__?
<apeiros_> seems inconsistent (cf. __FILE__ and __LINE__)
kevinfagan has quit [Quit: Leaving...]
Qfwfq has quit [Ping timeout: 255 seconds]
<charliesome> apeiros_: __FILE__ and __LINE__ are magic constants
<charliesome> apeiros_: __dir__ is a method
<charliesome> or that is the rationale
Qfwfq has joined #ruby-lang
<charliesome> i think __file__ and __line__ could easily be methods too
<apeiros_> actually, constants can't start with _ :)
<charliesome> apeiros_: hence magic
<manveru> magic but not constant
<apeiros_> and I don't see why __DIR__ shouldn't be magic literal either
<apeiros_> magic thingsdings
<manveru> :)
thufir_ has quit [Quit: Leaving.]
<manveru> anw, they are probably from perl or awk or something
kevinfagan has joined #ruby-lang
<charliesome> apeiros_: open a feature to add __file__ and __line__ methods
<apeiros_> charliesome: wah? I'd go the other way
<apeiros_> I'd open a feature to add __DIR__ magical rainbowpony
<charliesome> they considered that and knocked it back
<charliesome> so i think you'd have more luck adding __file__ and __line__ methods
<apeiros_> hm
pkondzior__ has quit [Ping timeout: 276 seconds]
benanne has joined #ruby-lang
marr has quit [Ping timeout: 252 seconds]
cultureulterior has joined #ruby-lang
cultureulterior has quit [Client Quit]
kevinfagan has quit [Quit: Leaving...]
krz has quit [Quit: krz]
jstemmer has quit [Quit: leaving]
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
dhruvasagar has joined #ruby-lang
keller-ship has joined #ruby-lang
msch has quit [Quit: Coyote finally caught me]
vlad_starkov has quit [Remote host closed the connection]
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
Qfwfq has quit [Ping timeout: 255 seconds]
vlad_starkov has joined #ruby-lang
keller-ship has left #ruby-lang [#ruby-lang]
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_sta_ has joined #ruby-lang
Qfwfq has joined #ruby-lang
vlad_sta_ has quit [Remote host closed the connection]
dzhulk has joined #ruby-lang
<andrewvos> I leave you guys alone for all of a few hours and now there's TOML. Jesus guys.
miraks has quit []
eklarskov has quit [Ping timeout: 252 seconds]
eklarskov has joined #ruby-lang
jxie has quit [Ping timeout: 252 seconds]
<apeiros_> oooh, "added Mutex#owned?"
jxie has joined #ruby-lang
<apeiros_> allows making reentrant mutexes easily
msch has joined #ruby-lang
MaddinXx has quit [Read error: Connection reset by peer]
tdy_ has quit [Ping timeout: 245 seconds]
<yorickpeterse> andrewvos: heh, that one issue on the tracker is genius
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
wmoxam has joined #ruby-lang
kevinfagan has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
tdy_ has joined #ruby-lang
jxie has quit [Quit: leaving]
<andrewvos> :)
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
Stilo has joined #ruby-lang
workmad3 has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby-lang
fjfish has joined #ruby-lang
francisfish has quit [Ping timeout: 248 seconds]
fjfish has quit [Read error: Connection reset by peer]
francisfish has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
postmodern has quit [Quit: Leaving]
sush24 has joined #ruby-lang
maxmanders has quit [Quit: Computer has gone to sleep.]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
ruurd has joined #ruby-lang
gustavnils has joined #ruby-lang
madish has joined #ruby-lang
d3vic3 has joined #ruby-lang
<firefux> is it ok to buld Ruby 2.0 with 'make -j 4' ?
<lianj> why not?
<firefux> lianj: the rbenv build script juse -j 1 because of something openssl thing
<firefux> s/juse/uses/
<lianj> hm
pkondzior__ has joined #ruby-lang
<firefux> lianj: oh it looks like is only on macs
* firefux doesn't run macs
wallerdev has joined #ruby-lang
workmad3 has quit [Ping timeout: 245 seconds]
Qwak has joined #ruby-lang
<injekt> morn
thone has quit [Ping timeout: 252 seconds]
Qwak has quit [Ping timeout: 256 seconds]
ryez has quit [Ping timeout: 245 seconds]
workmad3 has joined #ruby-lang
toretore has joined #ruby-lang
jxie has joined #ruby-lang
ruurd has quit [Quit: Leaving...]
<burgestrand> apeiros_: Monitor is re-entrant and behaves like Mutex
Qfwfq has quit [Ping timeout: 255 seconds]
dorei has joined #ruby-lang
thone has joined #ruby-lang
ronaldo__ has joined #ruby-lang
ronaldo__ has quit [Client Quit]
ronaldo__ has joined #ruby-lang
savagecroc has joined #ruby-lang
<savagecroc> hmmm
<savagecroc> i've got to ssh onto a remote server, wait an hour to a database dump and then once it completes scp the file down.. how does this sound for a solution
<savagecroc> get ruby to create a file on the remote server when it's done.. get ruby to pole every 10 secs to check if that file exists, once it does then scp it down
<savagecroc> i have to nohup the database export just in case the ssh connection drops
sepp2k has joined #ruby-lang
<badeball> savagecroc: instead of poling for the file, you could have it sent back. pg_dump -args && scp/rsync dump.sql yourcomputer.com:
<savagecroc> badeball: ah yeah.. except the server won't have access to my computer
<savagecroc> bit more annoying than that
<badeball> is this a one time thing or are you setting up some kind of a backup solution?
<savagecroc> i have to run the dump command as the postgres user otherwise it will ask for a password (and i don't want to take off the requirement in normal user accounts)
<savagecroc> badeball: it's so developers can select dumps from various systems
<savagecroc> and have them turn up on their computers
<savagecroc> i.e. dev says i want xyz dump from this system, i get an email, i click yes or no.. script runs, they get the dump
ottbot has quit [Ping timeout: 252 seconds]
kuja has quit [Ping timeout: 252 seconds]
sush24 has quit [Quit: This computer has gone to sleep]
<badeball> sounds like a time line where anything could happend and you'd need a script that can restart and resume from where it left. in that case, checking with small intervals might suit you.
kuja has joined #ruby-lang
<savagecroc> yeah.. the file permission i don't know how to solve nicely though
<savagecroc> best i can come up with is do the dump to /tmp/random_file_name
<bougyman> savagecroc: you should create a different superuser account other than 'postgres'
<savagecroc> then cp it to where it's supposed to go
<bougyman> and you can alleviate having to type a password by creating a ~/.pgpass file
<badeball> yeah, that'd be my suggestion as well. create a designated user with read permissions on all databases in question, capable of dumping them to wherever your users have permission to read them.
<savagecroc> yes that's a nice idea
<savagecroc> i like it :D
<savagecroc> permissions never seem to be correct
<savagecroc> unless you cp the file into the directory
<savagecroc> scp and mv
<badeball> you can change permissions on your own files with chmod.
<savagecroc> end up with whatever they had
<savagecroc> but i've got defaults on all the dirs
<savagecroc> so for example on /srv/storage/dumps i have group:deploy:rwx,default:deploy:rwx
<savagecroc> default:group even
<savagecroc> i wish unix had someway of going.. ANYTHING that goes in this directory gets these permissions forevery
<savagecroc> forever*
<bougyman> try 04770
<bougyman> if you want the group ownership/perms to be enforced
<savagecroc> i try to avoid standard ACLs
<savagecroc> and just have them all set to 770 oneuser:oneuser and just use setfacl for everything
jxie has quit [Quit: leaving]
<badeball> I think you're going to have a hard time trying to avoid unix modes
sush24 has joined #ruby-lang
krohrbaugh has quit [Read error: Operation timed out]
<savagecroc> what's the additional 0
kuja has quit [Ping timeout: 252 seconds]
kevinfagan has quit [Quit: Leaving...]
jxie has joined #ruby-lang
kuja has joined #ruby-lang
twintail has left #ruby-lang [#ruby-lang]
krohrbaugh has joined #ruby-lang
schaerli has joined #ruby-lang
<badeball> the fourth bit, if present (defaults to 0 otherwise), specifies setuid, setgid and sticky bit.
<badeball> check out http://en.wikipedia.org/wiki/Setuid for more information.
<savagecroc> ah yeah i think the issue i'm running into
<savagecroc> is the the ACLs aren't getting set
sush24 has quit [Quit: Leaving]
<savagecroc> ugh crap.. it's not supported by the filesystem
schaerli has quit [Ping timeout: 276 seconds]
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
sush24 has joined #ruby-lang
workmad3 has quit [Read error: Operation timed out]
wmoxam has quit [Quit: Lost terminal]
Stilo has joined #ruby-lang
<badeball> which are you using?
schaerli has joined #ruby-lang
CoverSlide has quit [Ping timeout: 244 seconds]
<andrewvos> Why is it __dir__ and not __DIR__ I feel like i'm taking crazy pills
<Mon_Ouie> Mentioned earlier, because it's a method
iamjarvo has joined #ruby-lang
<apeiros_> and __DIR__ was considered, but got rejected
<apeiros_> if I wasn't so lazy, I'd search for that discussion
<andrewvos> apeiros_: I got it already don't worry :)
<apeiros_> link?
<andrewvos> (Not that you were going to anyway :|)
<andrewvos> I see judofry was commenting in there
<apeiros_> thx
MaddinXx has joined #ruby-lang
<andrewvos> I still don't get it. Who cares that it is a maginc constant or whatever?
<andrewvos> I guess it's harder to make __DIR__ a maginc constant than it is to just include a method.
<andrewvos> So they're like "nahhh don't feel like it"
<apeiros_> when in doubt, be lazy?
kevinfagan has joined #ruby-lang
workmad3 has joined #ruby-lang
blacktulip has joined #ruby-lang
Guest94877 is now known as ddd
swav has joined #ruby-lang
jbsan has quit [Read error: Connection reset by peer]
jbsan has joined #ruby-lang
banister`tyrion has joined #ruby-lang
mercwithamouth has joined #ruby-lang
jbsan has quit [Client Quit]
jbsan has joined #ruby-lang
jbsan has quit [Client Quit]
jbsan has joined #ruby-lang
workmad3 has quit [Ping timeout: 252 seconds]
iamjarvo has quit [Quit: Leaving.]
ottbot has joined #ruby-lang
kennyvb has quit [Quit: ZNC - http://znc.in]
pkondzior__ has quit [Ping timeout: 252 seconds]
kennyvb has joined #ruby-lang
Banistergalaxy has quit [Ping timeout: 260 seconds]
Banistergalaxy has joined #ruby-lang
jonahR has joined #ruby-lang
jonahR has quit [Client Quit]
jxie has quit [Ping timeout: 252 seconds]
jxie has joined #ruby-lang
nXqd has joined #ruby-lang
iamjarvo has joined #ruby-lang
iamjarvo has quit [Client Quit]
dzhulk has quit [Quit: Leaving.]
<injekt> heh
<chris2> if not, file a bug :P
<chris2> backlogged, ignore
cored has quit [Ping timeout: 256 seconds]
cored has joined #ruby-lang
cored has joined #ruby-lang
cored has quit [Changing host]
guns has joined #ruby-lang
swav_ has joined #ruby-lang
swav has quit [Ping timeout: 260 seconds]
d3vic3 has quit [Ping timeout: 260 seconds]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
mr_white has joined #ruby-lang
imperator has joined #ruby-lang
<imperator> so....how's 2.0 looking?
* imperator tries to download, server must be getting hammered
wallerdev has quit [Quit: wallerdev]
Mon_Ouie has quit [Ping timeout: 255 seconds]
davidbalber|away is now known as davidbalbert
mercwithamouth has quit [Ping timeout: 245 seconds]
hapster has joined #ruby-lang
Wildhoney has joined #ruby-lang
ottbot has quit [Ping timeout: 255 seconds]
<firefux> so about the new ruby:syntax - how do you access a particualr section?
workmad3 has joined #ruby-lang
mercwithamouth has joined #ruby-lang
<injekt> firefux: ri ruby:syntax/methods
<injekt> so ruby:syntax/section
<injekt> Banistergalaxy: ping
tomzx_mac has joined #ruby-lang
<firefux> injekt: thanks
srbaker has joined #ruby-lang
gianlucadv_ has joined #ruby-lang
gianlucadv has quit [Read error: Connection reset by peer]
dzhulk has joined #ruby-lang
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
Stilo has joined #ruby-lang
zmack has joined #ruby-lang
glebm has joined #ruby-lang
Banistergalaxy has quit [Ping timeout: 244 seconds]
* firefux loves ri
gianlucadv_ has quit [Ping timeout: 264 seconds]
MaddinXx has quit [Remote host closed the connection]
gianlucadv has joined #ruby-lang
freedrull has quit [Ping timeout: 245 seconds]
wallerdev has joined #ruby-lang
mistym has joined #ruby-lang
orluke has joined #ruby-lang
ronaldo__ has quit [Quit: eyb]
schaerli has quit [Remote host closed the connection]
dzhulk has quit [Quit: Leaving.]
crankharder has quit [Quit: leaving]
havenwood has joined #ruby-lang
gianlucadv has quit [Read error: Connection reset by peer]
srbaker has quit [Ping timeout: 245 seconds]
gianlucadv_ has joined #ruby-lang
zmack_ has joined #ruby-lang
zmack has quit [Ping timeout: 245 seconds]
srbaker has joined #ruby-lang
beho_ has joined #ruby-lang
crankharder has joined #ruby-lang
Guedes has joined #ruby-lang
Guedes has quit [Changing host]
Guedes has joined #ruby-lang
beho has quit [Ping timeout: 246 seconds]
poga has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 264 seconds]
bzalasky has joined #ruby-lang
<imperator> injekt, See also the {syntax documentation
<imperator> on calling methods}[rdoc-ref:syntax/calling_methods.rdoc].
zmack_ has quit [Remote host closed the connection]
<imperator> looks like it didn't parse that
<drbrain> ugg, I should rewrite that for output
<drbrain> so it looks non-stupid
<apeiros_> hu? slashdot talks about "asynchronous exception handling" - what are they referring to?
dhruvasagar has joined #ruby-lang
banister`tyrion has quit [Read error: Connection reset by peer]
mercwithamouth has quit [Ping timeout: 245 seconds]
<drbrain> apeiros_: maybe Thread::handle_interrupt and Thread.pending_interrupt?
<apeiros_> hm
<apeiros_> probably
<imperator> oh dear, ffi is telling me i need development tools now....which i have
tjadc has joined #ruby-lang
<drbrain> imperator: on windows? maybe https://bugs.ruby-lang.org/issues/7921 is your problem
eklarskov has quit [Ping timeout: 245 seconds]
<imperator> drbrain, nope, snow leopard
<imperator> pssh, cross compiling
<imperator> fuck that shit
<drbrain> heh
<imperator> i should try it with VC though
dhruvasagar has quit [Ping timeout: 255 seconds]
dzhulk has joined #ruby-lang
<imperator> weird, couldn't find ffi.h, even though it's in /usr/include/ffi
<imperator> don't think that's changed
pkondzior__ has joined #ruby-lang
davidbalbert is now known as davidbalber|away
schaerli has joined #ruby-lang
volty has joined #ruby-lang
Banistergalaxy has joined #ruby-lang
schaerli has quit [Ping timeout: 260 seconds]
geopet has joined #ruby-lang
dzhulk has quit [Quit: Leaving.]
<theoros> drbrain: markdown format :)
<drbrain> theoros: yes
srbaker has quit [Ping timeout: 260 seconds]
eklarskov has joined #ruby-lang
thone_ has joined #ruby-lang
ronaldo__ has joined #ruby-lang
schaerli has joined #ruby-lang
ronaldo__ has left #ruby-lang [#ruby-lang]
srbaker has joined #ruby-lang
thone has quit [Ping timeout: 260 seconds]
workmad3 has quit [Ping timeout: 245 seconds]
schaerli has quit [Remote host closed the connection]
CoverSlide has joined #ruby-lang
eklarskov has quit [Ping timeout: 252 seconds]
rue|w has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
srbaker has quit [Quit: Computer has gone to sleep.]
schaerli has joined #ruby-lang
<theoros> love u ruby is exhausting
sush24 has quit [Quit: This computer has gone to sleep]
maxmanders has joined #ruby-lang
glebm has quit [Quit: Computer has gone to sleep.]
davidbalber|away is now known as davidbalbert
xcombelle has joined #ruby-lang
ottbot has joined #ruby-lang
hapster has quit [Remote host closed the connection]
banister`tyrion has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
kuja has quit [Ping timeout: 252 seconds]
eklarskov has joined #ruby-lang
thone_ has quit [Ping timeout: 246 seconds]
savagecroc has quit [Remote host closed the connection]
thone has joined #ruby-lang
kuja has joined #ruby-lang
Sinestro has joined #ruby-lang
Sinestro has quit [Remote host closed the connection]
beho_ has quit [Remote host closed the connection]
dzhulk has joined #ruby-lang
schaerli has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
glebm has joined #ruby-lang
thone_ has joined #ruby-lang
thone has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby-lang
marr has joined #ruby-lang
sush24 has joined #ruby-lang
ruurd has joined #ruby-lang
thone_ has quit [Read error: Connection reset by peer]
thone has joined #ruby-lang
davidbalbert is now known as davidbalber|away
ruurd has quit [Ping timeout: 252 seconds]
Mon_Ouie has joined #ruby-lang
joevandyk has joined #ruby-lang
<joevandyk> Anyone getting ssl certificate errors when running bundler?
<joevandyk> just started happening: /Users/joe/.rbenv/versions/2.0.0-p0/lib/ruby/2.0.0/net/http.rb:917:in `connect': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (OpenSSL::SSL::SSLError)
bzalasky has joined #ruby-lang
<havenwood> joevandyk: Are you on OS X? OS X deprecated OpenSSL, so they aren't updating it.
<havenwood> joevandyk: You can install OpenSSL with Homebrew and then link to it: --with-openssl-dir=`brew --prefix openssl`
<havenwood> (When you build Ruby.)
<joevandyk> havenwood: ruby-build installed openssl
<joevandyk> openssl-1.0.1e
<havenwood> joevandyk: I use chruby, but I've heard that ruby-build right now doesn't properly link to openssl.
<joevandyk> weird thing is that it was working fine until half way through my bundle install process
<joevandyk> i'd ran bundle on about 10 apps with ruby 2.0, then it started throwing that exception on the next one
<havenwood> joevandyk: You can get around the problem if you want to set RUBY_CONFIGURE_OPTS="--with-openssl-dir=`brew --prefix openssl`"
<havenwood> joevandyk: And re-build
Mon_Ouie has quit [Read error: Connection reset by peer]
mephux has quit [Excess Flood]
<havenwood> joevandyk: Or build it yourself with the --with Homebrew flag(s), e.g.: https://github.com/postmodern/chruby/wiki/MRI
geopet has quit [Quit: geopet]
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
<havenwood> joevandyk: You can check what your Ruby is linking to with: DYLD_PRINT_LIBRARIES=1 ruby -ropenssl -e"nil"
bzalasky has quit [Remote host closed the connection]
mephux has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
Stilo has joined #ruby-lang
volty has quit [Quit: Konversation terminated!]
ddv has joined #ruby-lang
<injekt> joevandyk: make sure your gemfile is using http://rubygems.org as a source
<injekt> not https
<injekt> it's nothing to do with linking to ssl
willyw has joined #ruby-lang
<joevandyk> injekt: why would using https fail all of a sudden?
<injekt> joevandyk: not sure I didn't look into it, I just stopped using https as a source until it's fixed
<injekt> I couldn't find much info about it
<joevandyk> i'll just do that for now.
<joevandyk> When I boot a rails app on 2.0.0 on OS X, I get: "Abort trap: 6"
<joevandyk> no other output
<joevandyk> found a backtrace in the logs..
<joevandyk> maybe need to upgrade nokogiri
thufir_ has joined #ruby-lang
hdm has joined #ruby-lang
<hdm> Anyone else running into 'WARNING: No database support: TypeError superclass mismatch for class Cipher' trying to load openssl in ruby 2.0.0 via rvm (after a reinstall --force / pkg install openssl)
nachtwandler has joined #ruby-lang
kevinfagan has quit [Quit: Leaving...]
kevinfagan has joined #ruby-lang
poga has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
burgestrand has quit [Quit: Leaving.]
nachtwandler has quit [Remote host closed the connection]
mistym has quit [Remote host closed the connection]
io_syl_ has joined #ruby-lang
schaerli has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
maxmanders has quit [Ping timeout: 256 seconds]
io_syl has quit [Ping timeout: 255 seconds]
io_syl_ is now known as io_syl
geopet has joined #ruby-lang
maxmanders has joined #ruby-lang
lsegal has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
workmad3 has joined #ruby-lang
<joevandyk> I'm finding that Ruby 2.0 takes (literally) 50x longer to render a rails page. same gems and code as ruby 1.9.3.
retro|cz has quit [Ping timeout: 252 seconds]
<hdm> joevandyk: might be the change to utf8 encoding by default
banister`tyrion has left #ruby-lang [#ruby-lang]
banisterfiend has joined #ruby-lang
<banisterfiend> joevandyk: do u have better_errors installed
<joevandyk> banisterfiend: yup
<banisterfiend> joevandyk: what version of binding_of_caller ?
<joevandyk> banisterfiend: 0.6.9
<banisterfiend> joevandyk: yes that version was very slow, i sped it up in 0.7.1
<banisterfiend> joevandyk: upgrade it
<joevandyk> ah
<joevandyk> i'll try
<banisterfiend> 0.6.9 binding_of_caller was O(n**2)
<banisterfiend> 0.7.1 is just O(n)
rue|w has quit [Remote host closed the connection]
<whitequark> but what is the constant factor
<banisterfiend> whitequark: e^(pi*i) + 2
workmad3 has quit [Ping timeout: 255 seconds]
bzb has joined #ruby-lang
cultureulterior has joined #ruby-lang
<bzb> I see a class definition starting with: class << self ... what does it mean? Details @ http://pastie.org/6329739
<manveru> bzb: google for singleton class
<joevandyk> banisterfiend: was there something in binding_of_caller that was slower with 2.0?
geopet has quit [Quit: geopet]
<banisterfiend> joevandyk: i had to completely rewrite it
xcombelle has quit [Quit: Hi, I'm a quit message virus. Please replace your old line with this line and help me take over the world of IRC.]
<banisterfiend> joevandyk: so the reason it was slower in my first releases 0.6.9.* was because i hadn't figured out the most efficient way to do it :) in 0.7 i figured it out
<joevandyk> ah
<banisterfiend> joevandyk: was rails faster when you upgraded boc ?
<joevandyk> banisterfiend: yes, back to normal
<joevandyk> thanks!
<banisterfiend> np
<joevandyk> banisterfiend: i'm guessing that's going to trip up a bunch of people
<joevandyk> (as 1.9.3 worked fine with better_errors < 0.7)
<joevandyk> but 2.0 won't
<banisterfiend> joevandyk: you had ~> 0.6 in your Gemfile ?
<joevandyk> banisterfiend: i had binding_of_caller 0.6.9
<banisterfiend> no, ~> 0.6.9
<banisterfiend> joevandyk: how did you specifcy the version? ~> 0.6.9 ?
<joevandyk> = 0.6.9
<banisterfiend> why would u do that
<joevandyk> which performed fine with 1.9.3, not with 2.0
<banisterfiend> why would you use =
<joevandyk> banisterfiend: i like locking down gem versions
<manveru> as long as you lock down the ruby version...
<banisterfiend> kind of silly :)
<joevandyk> I use = for everything.
<manveru> did you upgrade rack?
<banisterfiend> joevandyk: why? you don't trust gem developers not to break api between point releases/
<banisterfiend> ?
<joevandyk> pretty much
<banisterfiend> you've been bitten by it before?
elico has joined #ruby-lang
bzalasky has joined #ruby-lang
<joevandyk> yes, i have 166 gems in this app, the interaction between them can be tricky, so i like to really be careful when upgrading.
<manveru> wow...
breakingthings has joined #ruby-lang
mistym has joined #ruby-lang
<zzak> hello
kristofferrr has joined #ruby-lang
guns has quit [Quit: guns]
<whitequark> 166 isn't a lot
<whitequark> a project I'm working with now is down to 200 after weeks of refactoring
* manveru dies a little more inside
* whitequark shrugs
<manveru> i think my projects with the most deps have around 30 or so
<whitequark> it includes asset gems, debugging stuff, testing stuff, deployment stuff, API handlers, and so on
<whitequark> number of gems actually running in production is way lower
<whitequark> though it's still around 6k of ruby files
<manveru> for me, each dependency is a liability and risk
<whitequark> you are indeed correct, and that's why I've been working hard to keep that number low
<whitequark> note though that there isn't a single gem I can really remove from production. for each one a business task exists which justifies its presence.
bcardarella has joined #ruby-lang
<whitequark> (except for THREE form builders in one rails app. whoever added them all should be fired.)
Mizpah has joined #ruby-lang
mistym has quit [Remote host closed the connection]
<bcardarella> Just upgraded to 2.0 and when I try to install a gem I'm getting "Permission denied - /Users/me/.gem/specs"
<bcardarella> I chmod +rw on the directory and I own it but I'm still getting that
<manveru> +x ?
kevinfagan has quit [Quit: Leaving...]
<bcardarella> lemme try +x
<manveru> whitequark: well, i try to split as much as possible to make each part fast to test
<manveru> the app i work on atm has like 200k LoC including dependencies... even pulls in a whole fork of V8 to minify js :P
<bcardarella> manveru: that seems to have worked
<bcardarella> ty
<whitequark> manveru: yeah, testing :/
* whitequark hates rails tests against DB with a passion
<manveru> indeed
<whitequark> especially that on this particular project preloaders tend to fail
<whitequark> well, zeus just doesn't generally work on linux (fucking go)
<whitequark> and spring for some reason screws up all rails internals when launching rspec
<manveru> the zeus load balancer?
<whitequark> manveru: the zeus checkpointing application preloader
<whitequark> github:burke/zeus
<manveru> hm
<manveru> and what's wrong with go and linux?
<manveru> all issues i can find are closed
erichmenge has quit [Quit: Arrivederci!]
<whitequark> manveru: it randomly explodes with a null pointer
<whitequark> they might've fixed it already, I'm not using it for months
<manveru> ok
<manveru> dunno... "our app starts too slow due to too many dependencies; i know, let's solve it with yet another dependency" :P
<whitequark> manveru: it's not like you can reduce the amount of dependencies anyway.
<manveru> you can make smaller applications
<whitequark> no
<whitequark> well, in your particular case, maybe yes. generally this isn't true.
<manveru> not sure how you think packing everything into a single huge process is a good solution
<manveru> i mean, i get that that's what rails advocates mostly... but nobody seems to question that much
bcardarella has left #ruby-lang [#ruby-lang]
<whitequark> haha, this actually reminds me of another debate
<manveru> then again, they are also fine with the routing, so i guess nobody gives a shit about anything
<zzak> slashdot is a ghetto
<manveru> yeah
<manveru> to both...
<whitequark> manveru: btw, what's wrong with routing?
willyw has quit [Remote host closed the connection]
workmad3 has joined #ruby-lang
<manveru> it depends on http methods, is tied to the model, is implemented with regular expressions, is rather impossible to manage without an ide or `rake routes`...
erichmenge has joined #ruby-lang
<manveru> i mean, it may be better than php routing, but what isn't :P
<whitequark> manveru: do you have better options?
<whitequark> (in particular, "implemented with regexps" is a rather bullshit argument)
<manveru> yeah, because we never have any regex exploits
Qwak has joined #ruby-lang
<whitequark> again: do you have better options?
<manveru> sure, but that would be advertising the stuff i built, so you wouldn't care anyway
<whitequark> this reminds me of DCI proponents. looks good in theory, but isntantly falls apart in practice
<whitequark> manveru: please do advertise it
<manveru> ramaze/innate
<whitequark> oh, ramaze. did you write it?
<manveru> yes
<whitequark> I actually think it's pretty cool. Haven't had time to explore it in details yet
<whitequark> um, doesn't it use regexps either? http://ramaze.net/documentation/file.routes.html
<manveru> yeah, i have to work with rails atm for the first time, so just gotta rant sometimes :)
<manveru> that's optional
<manveru> i never use the Routes or Rewrite modules, but some people like prettier urls, so that's where they can gsub to their hearts content
willywos has joined #ruby-lang
<zzak> manveru: did you guys start on that project?
<manveru> zzak: on what?
<zzak> manveru: i sent bougyman one a few weeks ago
<manveru> zzak: os that's where he go the lobsters from?
<manveru> *so *got
willywos has quit [Remote host closed the connection]
<manveru> oh wait, that was crabs
<zzak> haha what
<manveru> yeah, i don't know what you're talking about either :)
<zzak> manveru: you guys are "the rubyists" right?
<manveru> yeah
dblack_ has joined #ruby-lang
<manveru> what did you send? money? a pipe bomb? a pull request? a job application?
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
<hdm> anyone else running into this exception with openssl on ruby 2.0? => cipher.rb:61:in `<class:Cipher>': superclass mismatch for class Cipher (TypeError)
<hdm> irb / require doesn't trigger, but require() from within the app does
<manveru> hdm: full backtrace?
<zzak> manveru: a small rails project that i wasn't going to get to
<zzak> you said "i have to work with rails atm for the first time"
<manveru> zzak: yeah, that's not me working on it
<manveru> zzak: rubyists isn't my fulltime job yet
<hdm> lib/msf/ui/console/driver.rb:144 is just a plain require 'openssl'
<manveru> looks like fun
<zzak> manveru: ahh
gustavnils has quit [Quit: Textual IRC Client: www.textualapp.com]
<manveru> hdm: `gem which openssl` is?
<hdm> ruby -r openssl ./app seems to hit the same issue too, /usr/local/rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/openssl.rb
<hdm> clean rvm / forced reinstall / rebuilt pkg openssl after hitting this during the first test
<manveru> yeah, it works fine here with rvm and 2.0.0-0
kristofferrr has quit [Quit: ❤]
<manveru> ruby -r openssl -e ''
<hdm> i figured if something was monkeying with the openssl namespace, running ruby -r openssl to load it would have sovled it
<manveru> fails too?
<hdm> that works fine, same with irb
<hdm> smells like some gem dependency did a 'module OpenSSL' monkeypatch, but forcing openssl to be required before the app starts still hits it
bzb has quit [Quit: I hate to quit but my bladder's full. :-(]
<manveru> hm
<manveru> maybe some patch for http stuff?
bzb has joined #ruby-lang
cultureulterior has quit [Quit: cultureulterior]
<hdm> digging to see what could have caused it, moved gemfile out of the way, etc
<hdm> must be some dep screwing it up
<manveru> net-ssh maybe?
<manveru> hm, no
benanne has quit [Quit: kbai]
bzb has quit [Read error: Connection reset by peer]
<hdm> yeah, it doesn't seem to hack up any of the openssl classes, just calling them fully qualified
bzb_ has joined #ruby-lang
<manveru> well
<hdm> odd that the require is causing a warning on the constants
<manveru> you could try to find the implementation by checking $LOADED_FEATURES
<manveru> in particular in /usr/local/rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/openssl/cipher.rb to cut it down a bit
kurko__ has joined #ruby-lang
reppard has joined #ruby-lang
<hdm> just seems odd - why would ruby -r openssl ./code_which_requires_openssl trigger a warning on constant redefinition
<hdm> unless $LOADED_FEATURES was being scrubbed of the original require (doesnt seem to be the case), prior to the second require
<manveru> Kernel#load would do that
<manveru> not that anybody uses that much... but who knows
<hdm> true, but the callstack there is a require()
<manveru> the second, yeah
<manveru> you don't see the first require
<hdm> the first is on the command line
<hdm> i wonder if ActiveSupport is not compatible or horking it up somewhere
<manveru> i don't see anything defining Cipher here...
<hdm> just thinking its require() overloads could be breaking somewhere, ill print a callstack on the openssl.rb require and figure out how its getting loaded a weird way
<manveru> yeah
<manveru> might be autoload or threads
<manveru> can't really say without a way to reproduce
ascoppa has joined #ruby-lang
schaerli has joined #ruby-lang
Wildhoney has quit [Ping timeout: 255 seconds]
schaerli has quit [Remote host closed the connection]
jbsan has quit [Quit: jbsan]
tylersmith has joined #ruby-lang
Stilo has joined #ruby-lang
reppard has quit [Ping timeout: 252 seconds]
<hdm> manveru: that is bizzare, $LOADED_FEATURES already contains "openssl.rb" when its loaded the second time
<hdm> yet the callstack is still 'require'
<hdm> normally require would skip over in that case
jbsan has joined #ruby-lang
<manveru> openssl.rb maybe, but openssl.so ?
<hdm> well, openssl.rb is definitely being loaded twice when it shouldnt
<hdm> and it is what loads openssl.so
<manveru> aye
<manveru> did you find a way to reproduce it simple yet?
<hdm> not yet, its something way after the gem deps are loaded
<manveru> hm
<hdm> and the call trace in core_ext is http://pastie.org/private/epsbhmann5yvwkwsutiiow
<hdm> #5 there is the caller for the second incorrect load, im guessing its something bured in rubygems or active_support or something
<hdm> using rubygems 2.0.0.rc.2, looks like its definitely to blame
<hdm> will try to find a stable repro
reppard has joined #ruby-lang
havenwood has joined #ruby-lang
postmodern has joined #ruby-lang
bzb_ has quit [Quit: I hate to quit but my bladder's full. :-(]
mjio has joined #ruby-lang
reppard has quit [Ping timeout: 256 seconds]
jwaldrip has joined #ruby-lang
<hdm> manveru: even weirder, traced every call to the original require and the loaded_features leading into it - they are identical, but the ~9th require "openssl" causes the original require to reload it from disk again
<hdm> points back to ruby 2.0.0's require() as the culprit
eklarskov has quit [Quit: leaving]
towski has joined #ruby-lang
towski has quit [Client Quit]
jwaldrip has quit [Client Quit]
Nisstyre has quit [Quit: Leaving]
tylersmith has quit [Remote host closed the connection]
jasonwaldrip has joined #ruby-lang
thufir_ has quit [Ping timeout: 260 seconds]
tylersmith has joined #ruby-lang
elico has quit [Ping timeout: 245 seconds]
jasonwaldrip has left #ruby-lang [#ruby-lang]
<hdm> not specific to openssl either - skipping the require in openssl.rb leads to the same problem, but now with every other system library
<hdm> oh well, this is broken enough we cant be the only project hitting it, will come back to it if it doesn't get resolved in a few days
thufir_ has joined #ruby-lang
elico has joined #ruby-lang
thillux has quit [Remote host closed the connection]
cultureulterior has joined #ruby-lang
elico has quit [Remote host closed the connection]
cultureulterior_ has joined #ruby-lang
cultureulterior has quit [Read error: Connection reset by peer]
cultureulterior_ has quit [Client Quit]
scottj has joined #ruby-lang
Nisstyre has joined #ruby-lang
<postmodern> hdm, can you write up a small script to reproduce the issue?
<postmodern> hdm, i can't reproduce the issue by repeatively requiring 'openssl' in irb, unless I misunderstood the issue here
chendo__ has joined #ruby-lang
vlad_starkov has joined #ruby-lang
lcdhoffman has joined #ruby-lang
mr_white has quit [Remote host closed the connection]
dblack_ has quit [Quit: dblack_]
<injekt> what happened to REXML::Text::Document in 2.0 :/
<postmodern> also rubygems/builder
vlad_starkov has quit [Ping timeout: 255 seconds]
maxmanders has quit [Ping timeout: 252 seconds]
<injekt> I guess it was removed :S
<injekt> yay for no backwards incompatible changes
maxmanders has joined #ruby-lang
<injekt> ok it's not in 1.9 either wtf
<havenwood> rubygems/package
<havenwood> ^ ran into that earlier, had to swap out 'rubygems/builder' for 'rubygems/package'.
<zzak> is that why you mean?
<Br4nd0n> havenwood: It is me again :)
jacktrick has joined #ruby-lang
<havenwood> Br4nd0n: hi
<Br4nd0n> havenwood: Could you kindly lend a hand?? https://gist.github.com/markerx/20871dd68c651b7d044b
<banisterfiend> injekt: did upgrading boc speed it up
<postmodern> zzak, require 'rubygems/builder' fails, looks like it got renamed?
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
earthquake has quit [Quit: earthquake]
<zzak> yes
earthquake has joined #ruby-lang
<postmodern> zzak, thank you!
<postmodern> now to fix rubygems-tasks
<hdm> postmodern: its been tricky to isolate, so, far, just running ./msfconsole from the bug/ruby-2-iconv-compat branch
<hdm> out of time to poke at it, but looks nasty enough i assume someone else will hit it too
chendo__ has quit [Quit: Computer has gone to sleep.]
<zzak> postmodern: :D
<injekt> banisterfiend: yep thanks
benanne has joined #ruby-lang
<postmodern> zzak, looks like rubygems/package existed in 1.8.25
charliesome has joined #ruby-lang
<postmodern> zzak, oh nm, that handles the actual package format
sepp2k1 has joined #ruby-lang
<zzak> it was changed in preview2 i think
madish has quit [Quit: ChatZilla 0.9.90 [Firefox 16.0.1/20121026125834]]
sepp2k has quit [Ping timeout: 260 seconds]
<injekt> banisterfiend: yeah thanks
<postmodern> hmm looks like its('foo.bar') { ... } is broken in ruby 2.0.0
<postmodern> wait no, it just changed :)
geopet has joined #ruby-lang
<banisterfiend> injekt: np i just yanked 0.6.9 so people will get a gem error instead of just running slow now
<banisterfiend> so at least they can identify the issue and bump their dep version
blacktulip has quit [Remote host closed the connection]
AndChat| has joined #ruby-lang
carloslopes has joined #ruby-lang
Banistergalaxy has quit [Ping timeout: 260 seconds]
carloslopes has quit [Remote host closed the connection]
rc- has joined #ruby-lang
Wildhoney has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 245 seconds]
jbsan has quit [Quit: jbsan]
<crankharder> is the falcon patch rolled up into 392?
vlad_starkov has joined #ruby-lang
orluke has quit [Quit: orluke]
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
vlad_starkov has quit [Ping timeout: 244 seconds]
geopet has quit [Quit: geopet]
<havenwood> crankharder: no
<havenwood> crankharder: You can install 1.9.3-p392 with patch falcon but not included by default.
<havenwood> crankharder: Yes in 2.0.0-p0.
marcosdsanchez has joined #ruby-lang
jbsan has joined #ruby-lang
marr123 has joined #ruby-lang
marr123 has quit [Client Quit]
workmad3 has quit [Ping timeout: 252 seconds]
<marcosdsanchez> Can any math lover help me with this please? http://stackoverflow.com/questions/8197857/ruby-combinatorics :)
marr has quit [Ping timeout: 276 seconds]
toretore has quit [Quit: Leaving]
marr has joined #ruby-lang
<whitequark> postmodern: ping
thufir_ has quit [Quit: Leaving.]
<whitequark> postmodern: chruby 0.3.3 seems to explode with bash 4.2.37 :/
<whitequark> bash: PROMPT_COMMAND: line 2: syntax error near unexpected token `;'
<whitequark> bash: PROMPT_COMMAND: line 2: `; chruby_auto'
orluke has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
benanne has quit [Quit: kbai]
marcosdsanchez has quit [Quit: Page closed]
marcosdsanchez has joined #ruby-lang
KA_ has joined #ruby-lang
<postmodern> whitequark, again with the PROMPT_COMMAND
<postmodern> whitequark, there's a bug about PROMPT_COMMAND being empty, but somehow it fails to check if it's empty
<postmodern> whitequark, how about let's trade bugs
<whitequark> hmm trade bugs? as in?
<postmodern> whitequark, im trying to get rubygems-tasks passing specs on ruby 2.0.0
<postmodern> whitequark, but hitting a weird bug in rspec, when doing its('foo.bar') syntax
<whitequark> I can look into it
<postmodern> whitequark, http://paste.fedoraproject.org/3721/
maxmanders has quit [Quit: Computer has gone to sleep.]
<postmodern> whitequark, seems to also happen on 1.9.3 with rspec 2.13.0
solars has quit [Ping timeout: 260 seconds]
gix has quit [Ping timeout: 240 seconds]
cultureulterior has joined #ruby-lang
<whitequark> postmodern: btw, did you encounter random build failures with travis?
<whitequark> something is really wrong with rubygems. timeouts, SSL errors, ...
tylersmith has quit [Quit: tylersmith]
cultureulterior has quit [Client Quit]
willywos has joined #ruby-lang
gix has joined #ruby-lang
havenwood has joined #ruby-lang
geopet has joined #ruby-lang
willywos has quit [Remote host closed the connection]
nXqd has quit [Ping timeout: 252 seconds]
<whitequark> postmodern: $ gem install rspec
<whitequark> ERROR: While executing gem ... (Gem::DependencyError) Unable to resolve dependencies: rspec requires rspec-core (~> 2.13.0)
<whitequark> I'm not exactly sure why does this happen or how do I fix it
<Mizpah> Hi Folks - Is there any type of common newbie error that causes the code in a partial (with a table) to render once per row ? i.e. <table> header (row1) </table> <more code>, <table> header (row2) </table> <more code> etc ? I calling a partial via render @game_classes -- the partial used to work, but am unsure when I introduced the error - so its hard to step back! If nothing springs to mind will make a gist :)
<postmodern> whitequark, ugh wow not sure