apeiros changed the topic of #ruby-lang to: Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com
<postmodern> `debug': malformed format string - %l (ArgumentError)
<drbrain> "The message is identical to a printf(3) format string, except that `%m' is replaced by the current error message."
<postmodern> ugh
<drbrain> postmodern: so you're pretty much asking for exploits logging user input to syslog
kgrz has joined #ruby-lang
<postmodern> where is the documentation for syslog.debug ?
<postmodern> drbrain, is the format string being interpreted by printf(3) or ruby's printf ?
<drbrain> debug is a metaprogrammed method
<drbrain> postmodern: stdlib printf
<drbrain> Syslog is a thin wrapper
<drbrain> postmodern: you probably want to use Syslog::Logger
<postmodern> drbrain, ok that shouldn't be a problem, only libc printf is vulnerable to format strings, last i checked stdlib printf counts the arguments
<postmodern> drbrain, yes actually i do, but this code is still stuck on 1.9.3 ;)
<drbrain> postmodern: sorry, I meant libc printf
<drbrain> if you log through %s you'll be fine '%s', user_input_containing_message
sepp2k has quit [Quit: Leaving.]
kgrz has quit [Ping timeout: 240 seconds]
<postmodern> drbrain, so syslog_write calls rb_f_sprintf
<drbrain> ah, I did not know
<postmodern> drbrain, which calls rb_str_format, which appears to check arguments
<postmodern> drbrain, so i guess i could do gsub('%', '%')
<drbrain> postmodern: I would syslog.debug '%s', message
<postmodern> drbrain, even better
vlad_starkov has joined #ruby-lang
<postmodern> drbrain, excellent that did it
<postmodern> Syslog::Logger, another reason to upgrade
r0bby has joined #ruby-lang
<drbrain> I guess I need to release the gem for backwards compatibility
<drbrain> there's the old-style gem still
<drbrain> … not fully compatible with what's in ruby 2
r0bby is now known as robbyoconnor
vlad_starkov has quit [Ping timeout: 240 seconds]
toretore has quit [Quit: Leaving]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SilverKey has joined #ruby-lang
hogeo has joined #ruby-lang
SilverKey has quit [Client Quit]
julweber_ has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
julweber has quit [Ping timeout: 248 seconds]
mdedetrich has joined #ruby-lang
tylersmith has joined #ruby-lang
tylersmith has quit [Ping timeout: 240 seconds]
gregmoreno has quit [Remote host closed the connection]
poga has joined #ruby-lang
Kellin has joined #ruby-lang
tkuchiki has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
pkrnj has quit [Quit: Computer has gone to sleep.]
havenwood has joined #ruby-lang
tylersmith has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 248 seconds]
jsullivandigs has quit [Remote host closed the connection]
marr has quit [Ping timeout: 240 seconds]
havenwood has quit [Ping timeout: 240 seconds]
Averna has joined #ruby-lang
Averna has quit [Read error: Connection reset by peer]
nathanstitt has quit [Quit: I growing sleepy]
robbyoconnor has quit [Ping timeout: 240 seconds]
Averna has joined #ruby-lang
Averna has quit [Read error: Connection reset by peer]
nathanstitt has joined #ruby-lang
Averna has joined #ruby-lang
Averna has quit [Read error: Connection reset by peer]
apeiros has quit [Ping timeout: 240 seconds]
Averna has joined #ruby-lang
Averna has quit [Read error: Connection reset by peer]
havenwood has joined #ruby-lang
Averna has joined #ruby-lang
Averna has quit [Read error: Connection reset by peer]
Averna has joined #ruby-lang
Averna has quit [Read error: Connection reset by peer]
Averna has joined #ruby-lang
Averna has quit [Read error: Connection reset by peer]
duph1 has quit [Quit: Leaving.]
Averna has joined #ruby-lang
Averna has quit [Read error: Connection reset by peer]
pkrnj has joined #ruby-lang
Averna has joined #ruby-lang
Averna has quit [Read error: Connection reset by peer]
Averna has joined #ruby-lang
Averna has quit [Read error: Connection reset by peer]
tylersmith has quit [Remote host closed the connection]
Averna has joined #ruby-lang
Averna has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby-lang
Averna has joined #ruby-lang
Averna has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
Averna has joined #ruby-lang
Averna has quit [Read error: Connection reset by peer]
joshuawscott has quit [Quit: Leaving.]
Averna has joined #ruby-lang
Averna has quit [Read error: Connection reset by peer]
Averna has joined #ruby-lang
Averna has quit [Read error: Connection reset by peer]
tylersmith has quit [Ping timeout: 248 seconds]
Averna has joined #ruby-lang
Averna has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Ping timeout: 240 seconds]
bzalasky has joined #ruby-lang
Averna has joined #ruby-lang
Averna has quit [Read error: Connection reset by peer]
hahuang65 has quit [Quit: Computer has gone to sleep.]
bzalasky has quit [Remote host closed the connection]
Averna has joined #ruby-lang
Averna has quit [Read error: Connection reset by peer]
Averna has joined #ruby-lang
Averna has quit [Read error: Connection reset by peer]
Averna has joined #ruby-lang
Averna has quit [Read error: Connection reset by peer]
towski has quit [Remote host closed the connection]
Averna has joined #ruby-lang
Averna has quit [Read error: Connection reset by peer]
bzalasky has joined #ruby-lang
Averna has joined #ruby-lang
Averna has quit [Read error: Connection reset by peer]
Averna has joined #ruby-lang
Averna has quit [Read error: Connection reset by peer]
Averna has joined #ruby-lang
Averna has quit [Read error: Connection reset by peer]
bnagy_ has left #ruby-lang [#ruby-lang]
Guest33963 has quit [Ping timeout: 240 seconds]
jsullivandigs has joined #ruby-lang
ffio has joined #ruby-lang
Averna has joined #ruby-lang
Averna has quit [Read error: Connection reset by peer]
earthquake has quit [Quit: earthquake]
pskosinski has quit [Quit: Til rivido Idisti!]
Averna has joined #ruby-lang
Averna has quit [Read error: Connection reset by peer]
kstuart has quit [Ping timeout: 245 seconds]
duph1 has joined #ruby-lang
Averna has joined #ruby-lang
Averna has quit [Read error: Connection reset by peer]
Averna has joined #ruby-lang
Averna has quit [Read error: Connection reset by peer]
bzalasky has quit [Remote host closed the connection]
Averna has joined #ruby-lang
Averna has quit [Read error: Connection reset by peer]
Averna has joined #ruby-lang
Averna has quit [Read error: Connection reset by peer]
Averna has joined #ruby-lang
Averna has quit [Client Quit]
dhruvasagar has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
jstorimer has quit [Remote host closed the connection]
intellitech has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 240 seconds]
maxmanders has joined #ruby-lang
duph1 has quit [Quit: Leaving.]
joshuawscott has joined #ruby-lang
CaptainJet has quit []
nathanstitt has quit [Quit: Laters]
maxmanders has quit [Max SendQ exceeded]
phracker has quit [Ping timeout: 240 seconds]
CaptainJet has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
mdedetrich has joined #ruby-lang
duph has joined #ruby-lang
cmaxw_ has joined #ruby-lang
cored has joined #ruby-lang
vlad_starkov has joined #ruby-lang
CaptainJet has quit []
CaptainJet has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 240 seconds]
tylersmith has joined #ruby-lang
tylersmith has quit [Ping timeout: 256 seconds]
fedesilva has quit [Read error: Connection reset by peer]
fedesilva has joined #ruby-lang
krz has joined #ruby-lang
io_syl has quit [Ping timeout: 248 seconds]
GeissT has joined #ruby-lang
ledestin has quit [Quit: ledestin]
cored has quit [Ping timeout: 248 seconds]
bzalasky has joined #ruby-lang
dLog_ has joined #ruby-lang
kgrz has joined #ruby-lang
Xzyx987X_ has joined #ruby-lang
kgrz has quit [Read error: Connection reset by peer]
jperry_ has joined #ruby-lang
mytrile_ has joined #ruby-lang
jasiek_ has joined #ruby-lang
jmeeuwen_ has joined #ruby-lang
gix- has joined #ruby-lang
gix has quit [Disconnected by services]
faces has joined #ruby-lang
setmeaway has quit [Quit: Leaving]
danrabinowitz has joined #ruby-lang
fedesilv_ has joined #ruby-lang
bzalasky_ has joined #ruby-lang
snk_ has joined #ruby-lang
igalic_ has joined #ruby-lang
jroes has joined #ruby-lang
drbrain_ has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
bougyman has joined #ruby-lang
Aww_ has joined #ruby-lang
bzalasky has quit [*.net *.split]
fedesilva has quit [*.net *.split]
drbrain has quit [*.net *.split]
bougyman_ has quit [*.net *.split]
mytrile has quit [*.net *.split]
djinni` has quit [*.net *.split]
jroes_ has quit [*.net *.split]
dLog has quit [*.net *.split]
jperry has quit [*.net *.split]
face has quit [*.net *.split]
Xzyx987X has quit [*.net *.split]
jasiek has quit [*.net *.split]
Kellin has quit [*.net *.split]
EvilAww has quit [*.net *.split]
igalic has quit [*.net *.split]
danrabinowitz_ has quit [*.net *.split]
jmeeuwen has quit [*.net *.split]
snk has quit [*.net *.split]
eban has quit [*.net *.split]
kke has quit [*.net *.split]
khaase_ has quit [*.net *.split]
jwollert has quit [*.net *.split]
whitequark has quit [*.net *.split]
sonne has quit [*.net *.split]
xuser has quit [*.net *.split]
Guest74607 has quit [*.net *.split]
jperry_ is now known as jperry
jmeeuwen_ is now known as jmeeuwen
arooni-mobile has joined #ruby-lang
havenwood has quit [Read error: Connection reset by peer]
havenwood has joined #ruby-lang
djinni` has joined #ruby-lang
Weems has joined #ruby-lang
fooqri has joined #ruby-lang
jstorimer has joined #ruby-lang
eban has joined #ruby-lang
pipework has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
pkrnj has quit [Quit: Computer has gone to sleep.]
havenwood has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 240 seconds]
setmeaway has joined #ruby-lang
Aww_ is now known as EvilAww
bzalasky_ has quit [Remote host closed the connection]
gozes has joined #ruby-lang
flip_digits has quit [Remote host closed the connection]
headius has joined #ruby-lang
flip_digits has joined #ruby-lang
whitequark has joined #ruby-lang
Guest74607 has joined #ruby-lang
jwollert has joined #ruby-lang
sonne has joined #ruby-lang
khaase_ has joined #ruby-lang
xuser has joined #ruby-lang
vlad_starkov has joined #ruby-lang
io_syl has joined #ruby-lang
fedesilva has joined #ruby-lang
bzalasky has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 240 seconds]
fedesilv_ has quit [Ping timeout: 245 seconds]
cmaxw_ has quit [Quit: cmaxw_]
duph has quit [Quit: Leaving.]
pkrnj has joined #ruby-lang
scottschecter has quit [Ping timeout: 276 seconds]
gnufied_ has quit [Quit: ZNC - http://znc.in]
gnufied has joined #ruby-lang
<gnufied> check
<gnufied> grr, nickserv. finally I got my voice back
Oak__ has joined #ruby-lang
kgrz has joined #ruby-lang
hahuang65 has joined #ruby-lang
Oak__ has left #ruby-lang [#ruby-lang]
ffio has quit [Quit: WeeChat 0.4.1]
kgrz has quit [Ping timeout: 240 seconds]
Oak has joined #ruby-lang
akurilin has quit [Quit: Leaving]
mistym has joined #ruby-lang
jxie has joined #ruby-lang
ffio has joined #ruby-lang
lsegal has joined #ruby-lang
Guest34797 has quit [Read error: Connection reset by peer]
krz has quit [Quit: krz]
krz has joined #ruby-lang
krz has quit [Client Quit]
robbyoconnor has joined #ruby-lang
krzkrzkrz has joined #ruby-lang
fedesilva has quit [Remote host closed the connection]
bzalasky has quit [Remote host closed the connection]
robbyoconnor has quit [Ping timeout: 246 seconds]
cordax has joined #ruby-lang
hogeo has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
flip_digits has quit [Remote host closed the connection]
flip_digits has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 245 seconds]
krzkrzkrz has quit [Quit: krzkrzkrz]
krz has joined #ruby-lang
pipework has quit [Remote host closed the connection]
netShadow has quit [Quit: netShadow]
fooqri has quit [Quit: fooqri]
pipework has joined #ruby-lang
apeiros has joined #ruby-lang
Domon has joined #ruby-lang
nuoymit has joined #ruby-lang
<nuoymit> what's the diff between #ruby and #ruby-lang
Domon has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
hogeo has joined #ruby-lang
<gnufied> #ruby is for discussing about ruby the stone, #ruby-lang is about ruby the programming language
<gnufied> :P
bzalasky has joined #ruby-lang
<xuser> nuoymit: I guess this one is the official since its mentioned in ruby-lang.org
<xuser> nuoymit: don't search how many rails channels are there ;)
<nuoymit> just wanted to know where to ask my ruby question :P
<xuser> nuoymit: In any of the two I guess
xxaM has joined #ruby-lang
<zzak__> gnufied: must be nice
Weems has quit [Ping timeout: 246 seconds]
gozes has left #ruby-lang [#ruby-lang]
joshuawscott has quit [Quit: Leaving.]
jg has joined #ruby-lang
Weems has joined #ruby-lang
erichmenge_ has quit [Quit: Arrivederci!]
erichmenge has joined #ruby-lang
jonahR has joined #ruby-lang
CaptainJet has quit []
ffio has quit [Quit: WeeChat 0.4.1]
cd has joined #ruby-lang
cordax has quit [Quit: Computer has gone to sleep.]
cd is now known as Guest46448
dhruvasagar has joined #ruby-lang
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
jerrytgarcia has joined #ruby-lang
Guest91768 is now known as hashkey
vlad_starkov has quit [Remote host closed the connection]
Guest46448 has quit [Quit: This computer has gone to sleep]
duph has joined #ruby-lang
Domon has joined #ruby-lang
apeiros has joined #ruby-lang
dingus_khan has quit [Remote host closed the connection]
jsullivandigs has quit [Remote host closed the connection]
nuoymit has left #ruby-lang [#ruby-lang]
Xzyx987X_ has quit [Read error: Connection reset by peer]
poga has quit [Remote host closed the connection]
Xzyx987X_ has joined #ruby-lang
workmad3 has joined #ruby-lang
bri has quit [Ping timeout: 248 seconds]
hhatch has joined #ruby-lang
kgrz has joined #ruby-lang
duph1 has joined #ruby-lang
duph has quit [Read error: Connection reset by peer]
Bahman has joined #ruby-lang
kgrz has quit [Ping timeout: 245 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby-lang
headius has quit [Quit: headius]
spike|spiegel has quit [Quit: WeeChat 0.4.1]
bri has joined #ruby-lang
cd has joined #ruby-lang
cd is now known as Guest93956
vlad_starkov has quit [Ping timeout: 240 seconds]
fragamus has joined #ruby-lang
skade has joined #ruby-lang
ffio has joined #ruby-lang
hahuang65 has quit [Quit: Computer has gone to sleep.]
vlad_starkov has joined #ruby-lang
jstorimer has quit [Remote host closed the connection]
MartynKeigher2 has quit [Ping timeout: 245 seconds]
kgrz has joined #ruby-lang
MartynKeigher has joined #ruby-lang
ffio has quit [Ping timeout: 245 seconds]
hogeo has quit [Remote host closed the connection]
jstorimer has joined #ruby-lang
duph2 has joined #ruby-lang
hogeo has joined #ruby-lang
duph1 has quit [Ping timeout: 240 seconds]
hhatch has quit [Ping timeout: 240 seconds]
hogeo has quit [Ping timeout: 246 seconds]
joshuawscott has joined #ruby-lang
arooni-mobile has joined #ruby-lang
Y_Ichiro has quit [Read error: Connection reset by peer]
Y_Ichiro has joined #ruby-lang
Y_Ichiro has joined #ruby-lang
Y_Ichiro has quit [Changing host]
skade has quit [Quit: Computer has gone to sleep.]
joshuawscott has quit [Ping timeout: 245 seconds]
jonahR has quit [Quit: jonahR]
matson__ has left #ruby-lang [#ruby-lang]
geopet has quit [Quit: geopet]
jstorimer has quit [Remote host closed the connection]
hogeo has joined #ruby-lang
FastJack has quit [Quit: leaving]
mytrile_ has quit [Remote host closed the connection]
Weems has quit [Ping timeout: 248 seconds]
geopet has joined #ruby-lang
brianpWins has joined #ruby-lang
FastJack has joined #ruby-lang
tkuchiki has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby-lang
roadt has joined #ruby-lang
hashkey has quit [Ping timeout: 240 seconds]
hashkey has joined #ruby-lang
hashkey is now known as Guest70836
Weems has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
tkuchiki has quit [Remote host closed the connection]
kgrz has quit [Remote host closed the connection]
nertzy2 has joined #ruby-lang
kgrz has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
nertzy has quit [Ping timeout: 240 seconds]
kgrz has quit [Ping timeout: 248 seconds]
flip_digits has quit [Remote host closed the connection]
kennyp_ has joined #ruby-lang
tkuchiki has joined #ruby-lang
Phoop has joined #ruby-lang
julweber_ has quit [Remote host closed the connection]
arooni-mobile has quit [Ping timeout: 245 seconds]
vmoravec has left #ruby-lang [#ruby-lang]
hhatch has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
jstorimer has joined #ruby-lang
solars has joined #ruby-lang
joshuawscott has joined #ruby-lang
jstorimer has quit [Read error: Connection reset by peer]
kennyp_ has left #ruby-lang [#ruby-lang]
geopet has quit [Quit: geopet]
floord has joined #ruby-lang
joshuawscott has quit [Ping timeout: 240 seconds]
brianpWins has quit [Quit: brianpWins]
joschi has joined #ruby-lang
skade has joined #ruby-lang
relix has joined #ruby-lang
firstdayonthejob has quit [Quit: WeeChat 0.4.1]
lsegal has quit [Ping timeout: 246 seconds]
julweber has joined #ruby-lang
<Joni_79> Hi. I'm trying to create a proxy class: https://gist.github.com/vuorejo1/5973317 Idea is that I can call it like Analyzer.new(OtherClass.new) or Analyzer.new(OtherClass.some_method) and record at least what methods were used calling OtherClass. How can I extract that info from @object?
jg has quit [Ping timeout: 240 seconds]
<Joni_79> I've been reading about attr_accessor and attr_reader / attr_writer but I'm not sure if they are usefull here
<Nilium> You probably want to replace all the methods on the object, then.
<Joni_79> should I just try to take the target_object parameter and do some string operations it to extract the method name?
<Nilium> Unless I'm not understanding what you're asking.
<Nilium> are you asking how to attach something to an object such that it knows every method called by something using the given object?
<Joni_79> I wish that the OtherClass.something call works as it would without the proxy, but I also want to record what methods were used to call it
<Nilium> So you want to know callee, not the method being called?
kgrz has joined #ruby-lang
<Joni_79> I want to know the method being called
<Joni_79> and record it to an array perhaps
<Joni_79> probably array :)
<Joni_79> my problem is that after I've stored that call into @object I do not know how to analyze it to extract the method name
<Joni_79> afk for 20 min
<Nilium> I.. do not follow.. stored a call into @object?
<Nilium> You haven't stored a call to anything. You've stored an object.
kgrz has quit [Ping timeout: 256 seconds]
marr has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
Weems has quit [Ping timeout: 240 seconds]
<injekt> moin
<injekt> maloik: sorry I dropped the ball on that gist, I'd pretty much write it how whitequark does in parser, use standard inheritance for commands
fragamus has quit [Quit: Computer has gone to sleep.]
maxmanders has joined #ruby-lang
<Joni_79> Nilium: ok. So I've stored an object. Can I somehow after that find out some properties about the object?
<Nilium> How about you be specific about the properties.
<Nilium> I'm not going to guess at what you're doing because you want to be vague about it.
<Joni_79> it should be generic, eg. It's just a proxy between that stores data about the calls passed to it
[dmp]_ has quit [Remote host closed the connection]
<Nilium> So do you know about send and method_missing?
<Nilium> 'Cause I just whipped up a quick script that does that.
<Joni_79> something little about send and I've seen method_missing? but don't really know what it does
<Nilium> So what do you do if you don't know about these things?
<Joni_79> Nilium: I try to learn..? :)
<Nilium> Well, "check the documentation" was what I was aiming for, but close enough.
<Joni_79> that's the meta level, I'm trying to learn stuff
<Nilium> .. What?
<Nilium> When did documentation become meta-level?
<Joni_79> Ruby in general is what I'm trying to learn
<Nilium> What hideous awful terrible despicable person taught you that?
<Nilium> You learn Ruby by reading the documentation and then doing things.
<Joni_79> and this specific problem is what I'm trying to solve now, and documentation is the place I've been reading, but in the wrong places it seems
<Nilium> You don't go "well I'll do this and then read the docs and figure out what I actually did"
Voker57 has quit [Ping timeout: 240 seconds]
<Joni_79> yes, well thanks for you help. I'll go read about those methods you pointed out. thanks.
<Nilium> Really, what you want to do takes a maybe 15 lines or os, so it's not hard if you just know what you're looking for.
<Nilium> *so
<Joni_79> I'm so noob that I don't always know what I'm looking for. :/
<Nilium> That's why I pointed you towards send and method_missing
<injekt> meta documentation!
<injekt> also, just open irb and do something
<Nilium> I'm having fun with this whole overriding send/method_missing thing.
<Nilium> Though the only practical use I've had for it was generating swizzle functions for vectors.
<injekt> >> class Foo; def method_missing(m, *); puts "You called #{m} but it doesnt exist omg"; end; end; Foo.new.zomg
<eval-in> injekt => You called zomg but it doesnt exist omg ... (https://eval.in/37264)
<injekt> >> class Foo; def initialize(opts) @opts = opts; end; def method_missing(m, *); @opts.key?(m.to_s.chop.to_sym); end; end; Foo.new(hello: 'world').hello?
<eval-in> injekt => true (https://eval.in/37265)
<Nilium> A very, very, very large moth just crashed into my window several times.
<Nilium> I want to capture it and keep it as a pet. Name it Sir Mothington.
<injekt> quick someone pass me the fire
<Joni_79> hmm.. Is the method name passed to a class defined to be a "message"?
solars has quit [Quit: WeeChat 0.3.7]
<injekt> Joni_79: in general yes, but that term isn't really used in Ruby
solars has joined #ruby-lang
<Nilium> It's more just a method name and a message because it's small-talkish
<yorickpeterse> morning
<Nilium> .. I put the dash in the wrong place
jg has joined #ruby-lang
<injekt> good morrow yorickpeterse
<Nilium> Yo.
vlad_starkov has joined #ruby-lang
<Nilium> Cat outside screaming at something.
tbuehlmann has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 240 seconds]
jstorimer has joined #ruby-lang
tRAS has joined #ruby-lang
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
jstorimer has quit [Read error: Connection reset by peer]
io_syl has quit [Quit: io_syl]
joshuawscott has joined #ruby-lang
vlad_starkov has joined #ruby-lang
kgrz has joined #ruby-lang
joshuawscott has quit [Ping timeout: 248 seconds]
vlad_starkov has quit [Ping timeout: 245 seconds]
maxmanders has quit [Ping timeout: 246 seconds]
maxmanders has joined #ruby-lang
katka has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
adambeynon has joined #ruby-lang
andrewvos has joined #ruby-lang
kgrz has quit [Read error: Connection reset by peer]
kgrz has joined #ruby-lang
mdedetrich has joined #ruby-lang
Guest70836 has quit [Read error: Connection reset by peer]
Guest70836 has joined #ruby-lang
kgrz has quit [Remote host closed the connection]
mytrile has joined #ruby-lang
rippa has joined #ruby-lang
lucas has quit [Changing host]
lucas has joined #ruby-lang
axsuul has quit [Ping timeout: 248 seconds]
dc5ala has joined #ruby-lang
maxmanders has quit [Quit: Computer has gone to sleep.]
maxmanders has joined #ruby-lang
mfn has quit [Quit: WeeChat 0.3.2]
tRAS_ has joined #ruby-lang
jstorimer has joined #ruby-lang
tRAS has quit [Ping timeout: 276 seconds]
jstorimer has quit [Read error: Connection reset by peer]
joshuawscott has joined #ruby-lang
tenderlove has joined #ruby-lang
jasiek_ has left #ruby-lang [#ruby-lang]
<maloik> injekt: no worries and thanks :-) going to get back to that project tomorrow I think
joshuawscott has quit [Ping timeout: 246 seconds]
<yorickpeterse> Nilium: throw a boot at said cat
benanne has joined #ruby-lang
mbj has joined #ruby-lang
kgrz has joined #ruby-lang
kgrz has quit [Ping timeout: 256 seconds]
<darix> Nilium: "release the dogs"
jsullivandigs has joined #ruby-lang
kgrz has joined #ruby-lang
jsullivandigs has quit [Ping timeout: 264 seconds]
<injekt> release the shotgun
<yorickpeterse> RELEASE THE KRAKEN
* yorickpeterse releases Guido van Rossum
hhatch has quit [Ping timeout: 240 seconds]
Zeeo has joined #ruby-lang
vlad_starkov has joined #ruby-lang
JohnBat26 has joined #ruby-lang
jstorimer has joined #ruby-lang
jstorimer has quit [Read error: Connection reset by peer]
joshuawscott has joined #ruby-lang
mreq has joined #ruby-lang
runeb has joined #ruby-lang
joshuawscott has quit [Ping timeout: 256 seconds]
skade has quit [Ping timeout: 246 seconds]
mdedetrich has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mdedetrich has joined #ruby-lang
skade has joined #ruby-lang
mreq has quit [Ping timeout: 246 seconds]
* injekt releases 1.4beta3-rc2
katka has quit [Ping timeout: 250 seconds]
vlad_starkov has quit [Remote host closed the connection]
ledestin has joined #ruby-lang
Guest93956 has quit [Quit: This computer has gone to sleep]
mistym has quit [Remote host closed the connection]
julweber has quit [Remote host closed the connection]
fsvehla has joined #ruby-lang
fsvehla has quit [Client Quit]
cd has joined #ruby-lang
cd is now known as Guest89517
mdedetrich has quit [Quit: Computer has gone to sleep.]
mreq has joined #ruby-lang
tenderlove has quit [Ping timeout: 246 seconds]
guns has joined #ruby-lang
<yorickpeterse> https://twitter.com/charliesome/status/355272399089958912 charlie discovers the land of freedom
kgrz has quit [Ping timeout: 276 seconds]
<gnufied> yorickpeterse: lol
benanne has quit [Quit: kbai]
tRAS_ has quit [Quit: Mother, did it need to be so high?]
jstorimer has joined #ruby-lang
tenderlove has joined #ruby-lang
joshuawscott has joined #ruby-lang
jstorimer has quit [Read error: Connection reset by peer]
ecnalyr has joined #ruby-lang
vlad_starkov has joined #ruby-lang
mdedetrich has joined #ruby-lang
stardiviner has joined #ruby-lang
stardiviner_ has joined #ruby-lang
joshuawscott has quit [Ping timeout: 245 seconds]
Guest89517 has quit [Quit: This computer has gone to sleep]
retro|cz has joined #ruby-lang
mreq has quit [Ping timeout: 245 seconds]
sush24_ has joined #ruby-lang
kstuart has joined #ruby-lang
Domon has quit [Remote host closed the connection]
rikai_ has joined #ruby-lang
mbj has quit [Read error: Connection reset by peer]
ffio has joined #ruby-lang
swav has quit [Remote host closed the connection]
rikai has quit [Ping timeout: 240 seconds]
guns has quit [Quit: guns]
mbj has joined #ruby-lang
ldnunes has joined #ruby-lang
flip_digits has joined #ruby-lang
stardiviner_ has quit [Remote host closed the connection]
krz has quit [Quit: krz]
swav has joined #ruby-lang
flip_digits has quit [Remote host closed the connection]
mreq has joined #ruby-lang
julweber has joined #ruby-lang
toretore has joined #ruby-lang
flip_digits has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 248 seconds]
swav has quit [Remote host closed the connection]
kstuart has quit [Ping timeout: 264 seconds]
wudofyr___ has quit [Remote host closed the connection]
jstorimer has joined #ruby-lang
wudofyr___ has joined #ruby-lang
retro|cz has quit [Ping timeout: 246 seconds]
jstorimer has quit [Read error: Connection reset by peer]
mdedetrich has quit [Quit: Computer has gone to sleep.]
joshuawscott has joined #ruby-lang
maxmanders has quit [Quit: Computer has gone to sleep.]
joshuawscott has quit [Read error: Connection reset by peer]
postmodern has quit [Quit: Leaving]
ffio has quit [Ping timeout: 240 seconds]
breakingthings has joined #ruby-lang
cored has joined #ruby-lang
io_syl has joined #ruby-lang
andrewvos has quit [Ping timeout: 256 seconds]
pipework has quit [Remote host closed the connection]
swav has joined #ruby-lang
pipework has joined #ruby-lang
maxmanders has joined #ruby-lang
peterc has joined #ruby-lang
enebo has joined #ruby-lang
iraja has joined #ruby-lang
mucker has quit [Quit: Lost terminal]
pipework has quit [Remote host closed the connection]
jvrmaia has joined #ruby-lang
mreq has quit [Ping timeout: 248 seconds]
mreq has joined #ruby-lang
scampbell has joined #ruby-lang
snk_ is now known as snk
andrewvos has joined #ruby-lang
enebo has quit [Quit: enebo]
matti has quit [Ping timeout: 240 seconds]
mreq has quit [Ping timeout: 264 seconds]
realDAB has joined #ruby-lang
matti has joined #ruby-lang
hashkey has joined #ruby-lang
hashkey is now known as Guest43969
Oak has quit [Quit: Leaving]
jstorimer has joined #ruby-lang
Guest70836 has quit [Ping timeout: 248 seconds]
tenderlove has quit [Ping timeout: 276 seconds]
joshuawscott has joined #ruby-lang
<erikh> heh
<erikh> tell him to get AT&T
setmeaway has quit [Read error: Connection reset by peer]
wmoxam has joined #ruby-lang
wmoxam has quit [Changing host]
wmoxam has joined #ruby-lang
jerrytgarcia has quit [Quit: Linkinus - http://linkinus.com]
pax7 has joined #ruby-lang
fuhgeddaboudit has joined #ruby-lang
cofin has joined #ruby-lang
tenderlove has joined #ruby-lang
igalic_ has left #ruby-lang [#ruby-lang]
igalic has joined #ruby-lang
cored has quit [Ping timeout: 245 seconds]
cored has joined #ruby-lang
realDAB has quit [Quit: realDAB]
lutfidemirci has joined #ruby-lang
jstorimer has quit [Remote host closed the connection]
realDAB has joined #ruby-lang
realDAB has quit [Client Quit]
cofin has quit [Quit: cofin]
cofin has joined #ruby-lang
Xzyx987X_ has quit [Read error: Connection reset by peer]
jstorimer has joined #ruby-lang
Xzyx987X_ has joined #ruby-lang
iraja has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
dhruvasagar has joined #ruby-lang
dc5ala has quit [Quit: Ex-Chat]
Weems has joined #ruby-lang
pipework has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
iraja has joined #ruby-lang
Weems has quit [Ping timeout: 245 seconds]
jstorimer has quit [Remote host closed the connection]
carloslopes has joined #ruby-lang
tenderlove has quit [Read error: Connection timed out]
foca has quit [Quit: Goodbye, cruel world.]
mdedetrich has joined #ruby-lang
foca has joined #ruby-lang
ffio has joined #ruby-lang
mucker has joined #ruby-lang
realDAB has joined #ruby-lang
wallerdev has joined #ruby-lang
ecnalyr has quit [Read error: Connection reset by peer]
mreq has joined #ruby-lang
ecnalyr has joined #ruby-lang
realDAB has quit [Client Quit]
kke has joined #ruby-lang
jxie has quit [Quit: leaving]
zzak has quit [Disconnected by services]
<zzak__> hi
zzak__ is now known as zzak
<zzak> TIL i learned about ghost
<zzak> s/i learned//
solars has quit [Ping timeout: 246 seconds]
tenderlove has joined #ruby-lang
jg has quit [Disconnected by services]
jg_ has joined #ruby-lang
mreq has quit [Ping timeout: 264 seconds]
<injekt> HI
<injekt> lol TIL i learned
<andrewvos> TIL TIL is the acronym for "today I learned".
<ericwood> knowledge is power
<injekt> TIH
<runeb> TIL TIL
Uranio has joined #ruby-lang
<ericwood> meta TIL
NicoCH78 has joined #ruby-lang
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<whitequark> meta meta meta meta
ecnalyr has quit [Ping timeout: 245 seconds]
anonymuse has joined #ruby-lang
<yorickpeterse> Good thing Ruby has *puts on sunglasses* meta programming
<yorickpeterse> RUUUUUUUUBBYYYYYYY!!!!
<ericwood> rubay
<ericwood> RUBAY
<ericwood> that's my contribution for the day
runeb has quit [Remote host closed the connection]
segy has quit [Ping timeout: 246 seconds]
faramir has joined #ruby-lang
runeb has joined #ruby-lang
fosky_ has joined #ruby-lang
jstorimer has joined #ruby-lang
<whitequark> argh rubinius
<whitequark> Y U NO WORK
jstorimer has quit [Read error: Connection reset by peer]
<dbussink> whitequark: older racc version?
<dbussink> whitequark: if it's a bug, please let us know :)
<whitequark> dbussink: bundler installs 1.4.9 (last) locally
fosky__ has quit [Ping timeout: 248 seconds]
<whitequark> it should do the same on CI
<yorickpeterse> lrn2ruby
<whitequark> and, uh, I can't reproduce it. it's completely transient
<yorickpeterse> :>
<whitequark> dbussink: I can still report it (I'm completely sure it's a bug) but not sure of the value
<dbussink> transient as in?
<whitequark> it happens in one in 50 CI runs
<dbussink> happens sometimes / sometimes not? only on travis?
MaddinXx_ has joined #ruby-lang
gja has joined #ruby-lang
io_syl has quit [Quit: io_syl]
fosky_ has quit [Ping timeout: 240 seconds]
tenderlove has quit [Read error: Connection timed out]
JohnBat26 has joined #ruby-lang
Phoop has quit [Quit: Phoop]
<dbussink> whitequark: ok, thanks!
Kabaka has quit [Ping timeout: 240 seconds]
mdedetrich has quit [Quit: Computer has gone to sleep.]
geopet has joined #ruby-lang
cofin has quit [Quit: cofin]
geopet has joined #ruby-lang
<dbussink> whitequark: any consistency you saw? Like always in 1.8 or 1.9 mode that this happens?
<whitequark> dbussink: I think I seen that in 1.8 and 1.9 alike
<whitequark> since it happened about four times, that isn't a lot of data
gja has quit [Quit: This computer has gone to sleep]
<whitequark> I think you'll get some chances of catching this by just running `rake' in a loop.
Kabaka has joined #ruby-lang
<dbussink> whitequark: right
kstuart has joined #ruby-lang
scottschecter has joined #ruby-lang
ecnalyr has joined #ruby-lang
tenderlove has joined #ruby-lang
enebo has joined #ruby-lang
runeb has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 248 seconds]
enebo has quit [Client Quit]
Xzyx987X_ has quit [Read error: Connection reset by peer]
enebo has joined #ruby-lang
Xzyx987X_ has joined #ruby-lang
<crankharder> if a method is already defined somewhere, can I get its definition as a Proc somehow?
<lianj> method(:foo)
<crankharder> ty
sush24_ has quit [Ping timeout: 248 seconds]
pskosinski has joined #ruby-lang
timmmaaaayyy_ has left #ruby-lang [#ruby-lang]
retro|cz has joined #ruby-lang
dhruvasagar has joined #ruby-lang
<injekt> fwiw if you actually want a Proc and not a Method you can call to_proc on that
<whitequark> anyone here using net-http-persistent?
maxmanders has quit [Ping timeout: 256 seconds]
<injekt> whitequark: mechanize uses it if that counts
Guest43969 has quit [Read error: Connection reset by peer]
Guest43969 has joined #ruby-lang
<darix> injekt: one could think it was written for mechanize!;)
maxmanders has joined #ruby-lang
<injekt> :)
<injekt> foiled!
apeiros has quit [Remote host closed the connection]
maxmanders has quit [Read error: Connection reset by peer]
jstorimer has joined #ruby-lang
jg__ has joined #ruby-lang
<whitequark> solved
DKnox has quit [Quit: Computer has gone to sleep.]
NicoCH78 has quit [Quit: Textual IRC Client: www.textualapp.com]
Xzyx987X_ has quit [Quit: Leaving]
segy has joined #ruby-lang
hogeo has quit [Remote host closed the connection]
hogeo has joined #ruby-lang
malev has joined #ruby-lang
jg_ has quit [Ping timeout: 245 seconds]
<whitequark> zenspider: ping
hogeo has quit [Ping timeout: 276 seconds]
cofin has joined #ruby-lang
davetoxa has joined #ruby-lang
<davetoxa> Hello all
Xzyx987X has joined #ruby-lang
<davetoxa> How I can test this with rspec ? https://gist.github.com/davetoxa/5976361
mytrile has quit [Remote host closed the connection]
runeb has joined #ruby-lang
chris_c has joined #ruby-lang
floord has quit [Quit: Leaving.]
<injekt> davetoxa: user1.email.should == nil etc? am I missing something?
jstorimer has quit [Remote host closed the connection]
Guest43969 is now known as hashkey
<injekt> oh right, you should initialize decorators for each of those user objects
<injekt> ok well you've posted in both here and #ror so i'll just let them handle it
Xzyx987X has quit [Read error: Connection reset by peer]
<davetoxa> injekt, yes it is! can you help me with it ?
Xzyx987X has joined #ruby-lang
gja has joined #ruby-lang
<davetoxa> injekt How to initialize ?
anonymuse has quit [Remote host closed the connection]
<injekt> davetoxa: you know how draper works right?
<davetoxa> a little bit
realDAB has joined #ruby-lang
<davetoxa> Let's say - yes =)
<injekt> so you know you can do UserDecorator.new(user)
<injekt> or user.decorate
<davetoxa> yes
<injekt> let(:user1) { create(...).decorate }
Bahman has quit [Read error: Connection reset by peer]
arooni-mobile has joined #ruby-lang
<davetoxa> let(:user1) { create (:user_with_email, privacy_hash: { 'email' => '1'}).decorate }
<davetoxa> something wrong
<injekt> how specific of you
wallerdev has quit [Quit: wallerdev]
skade has quit [Quit: Computer has gone to sleep.]
tylersmith has joined #ruby-lang
<davetoxa> let(:user1) { create :user_with_email.decorate, privacy_hash: { 'email' => '1'} }
<davetoxa> right, is it ?
<injekt> no
<davetoxa> hm, wich way right ?
<davetoxa> I'm confused
<injekt> let(:user1) { create(...).decorate }
<injekt> i gave you the code
dhruvasagar has quit [Ping timeout: 240 seconds]
Guest4396 has joined #ruby-lang
<davetoxa> som in fact I cann't do this let(:user1) { create (:user_with_email, privacy_hash: { 'email' => '1'}).decorate }
DKnox has joined #ruby-lang
retro|cz has quit [Ping timeout: 246 seconds]
skade has joined #ruby-lang
pax7 has quit [Ping timeout: 250 seconds]
asahi has joined #ruby-lang
skade has quit [Client Quit]
<injekt> let(:user1) { create (...).decorate }
<injekt> is not the same as
<injekt> let(:user1) { create(...).decorate }
<injekt> can you see the difference?
<davetoxa> ye
julweber has quit [Remote host closed the connection]
<davetoxa> What's next?
<injekt> davetoxa: that didn't work?
<davetoxa> I did not understand how and what i need to test
<davetoxa> I know mathers, but how to test this decorator, i dont know
skade has joined #ruby-lang
<whitequark> mathers ?
<davetoxa> yes
<davetoxa> mistake =)
lutfidemirci has quit [Remote host closed the connection]
<injekt> no need to create 6 million users to test a single feature, just test the +/-
ryanv-raptor has joined #ruby-lang
floord has joined #ruby-lang
skade has quit [Client Quit]
<injekt> also if privacy_hash just contains '1' for the values that are private, you should consider using an array, not a hash
anekos has quit [Quit: Tiarra 0.1+svn-39036: SIGTERM received; exit]
tenderlove has quit [Ping timeout: 264 seconds]
<injekt> using build also means your user object is not saved, which you dont need to do for testing decorators
anekos has joined #ruby-lang
tenderlove has joined #ruby-lang
<davetoxa> In second test p user2.email == nil
<davetoxa> Why it happened ?
<injekt> davetoxa: I think this stuff might be too advanced for what you're trying to do, maybe you should start off simpler
<davetoxa> any ideas ?
tenderlove has quit [Ping timeout: 240 seconds]
jstorimer has joined #ruby-lang
asahi has left #ruby-lang [#ruby-lang]
iraja has quit [Remote host closed the connection]
carloslopes has quit [Remote host closed the connection]
iraja has joined #ruby-lang
<injekt> did you set the email?
<injekt> build(:user, email: 'foo@bar.com').decorate.email.should == 'foo@bar.com'
jxie has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
floord has quit [Quit: Leaving.]
vlad_starkov has joined #ruby-lang
D9 has joined #ruby-lang
<yorickpeterse> zzak: ping
<yorickpeterse> hm wait, better do this in a PRIVMSG
maxmanders has joined #ruby-lang
<whitequark> conspiring much
Squarepy has joined #ruby-lang
<davetoxa> injekt - yes
<yorickpeterse> secret Rubyist club
<yorickpeterse> no nerds allowed
anonymuse has joined #ruby-lang
<ericwood> jah
<ericwood> no nerz
<davetoxa> in every user1.email user2.email user3.email got ni;
tenderlove has joined #ruby-lang
<injekt> davetoxa: paste User too
<davetoxa> model ?
<injekt> yes
sstrickl has quit [Quit: sstrickl]
<davetoxa> gist updated
GeissT has quit [Quit: MillBroChat AdIRC User]
vlad_sta_ has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
gja has quit [Quit: This computer has gone to sleep]
<yorickpeterse> DOUBLE DEPLOY WHAT DOES IT MEAN
<yorickpeterse> hint: that this code is shit
<yorickpeterse> "Why am I not seeing any erro....oh, Airbrake is not set up"
<yorickpeterse> it's 18:00!
<yorickpeterse> Time to break things and get angry at myself
tenderlove has quit [Ping timeout: 248 seconds]
hashkey has quit [Quit: Leaving]
iraja has quit [Remote host closed the connection]
wallerdev has joined #ruby-lang
<davetoxa> So
<yorickpeterse> HJASDKPJAHSDKJASDH AJ AIRBRAKE
<yorickpeterse> Holy shit this app is terrible
peterc has quit [Ping timeout: 246 seconds]
<yorickpeterse> THIS UUID IS STILL BEING PROCESSED <- triggered more than 15 minutes ago
skade has joined #ruby-lang
tenderlove has joined #ruby-lang
lutfidemirci has joined #ruby-lang
ryanv-raptor has quit [Quit: Leaving.]
dingus_khan has joined #ruby-lang
<yorickpeterse> fuckit, I'm heading home
havenwood has joined #ruby-lang
* yorickpeterse slams the door shut
tkuchiki has joined #ruby-lang
<darix> imagine y o r i c k wouldnt have irc for ventilating
_jpb_ has joined #ruby-lang
carloslopes has joined #ruby-lang
vlad_sta_ has quit [Remote host closed the connection]
hogeo has joined #ruby-lang
carloslopes has quit [Read error: No route to host]
_carloslopes has joined #ruby-lang
dhruvasagar has joined #ruby-lang
jstorimer has quit [Remote host closed the connection]
DEac- has joined #ruby-lang
__butch__ has joined #ruby-lang
zavier has quit [Read error: Operation timed out]
havenwood has quit [Remote host closed the connection]
zavier has joined #ruby-lang
realDAB has quit [Quit: realDAB]
vlad_starkov has joined #ruby-lang
kstuart has quit [Ping timeout: 256 seconds]
dhruvasagar has quit [Ping timeout: 264 seconds]
DarkBushido has joined #ruby-lang
tylersmith has quit [Remote host closed the connection]
dhruvasagar has joined #ruby-lang
tylersmith has joined #ruby-lang
axsuul has joined #ruby-lang
D9 has quit [Quit: Leaving]
realDAB has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
tylersmith has quit [Ping timeout: 276 seconds]
io_syl has joined #ruby-lang
gregmoreno has joined #ruby-lang
<yorickpeterse> I'd rage more at my screen
sstrickl has joined #ruby-lang
<yorickpeterse> also, I'm pretty sure IRC was invented to act as a digital rubber duck
<yorickpeterse> rubberducking in the cloud
gja has joined #ruby-lang
gja has joined #ruby-lang
gja has quit [Changing host]
gja has quit [Remote host closed the connection]
skade has quit [Quit: Computer has gone to sleep.]
nickelcitymario has joined #ruby-lang
mbj has quit [Ping timeout: 276 seconds]
havenwood has joined #ruby-lang
ffio has quit [Quit: WeeChat 0.4.1]
breakingthings has quit [Quit: breakingthings]
chris_c has quit [Quit: Leaving.]
_jpb_ has quit [Remote host closed the connection]
jstorimer has joined #ruby-lang
jstorimer has quit [Read error: Connection reset by peer]
<injekt> sigh
<yorickpeterse> ha! I should start duck.ly: Rubberducking as a service
<yorickpeterse> in the cloud
<yorickpeterse> using mongo
<yorickpeterse> and rethinkdb
<maloik> injekt: global gemset ?
<injekt> lol gemset
<injekt> injekt does not play that
setmeaway has joined #ruby-lang
<maloik> haha :P
apeiros has joined #ruby-lang
<injekt> but good point, looks like rails was installed into /usr/bin
<injekt> what in the hell is this
<yorickpeterse> wat
<yorickpeterse> (lol at those package managers that include rails)
ffio has joined #ruby-lang
<injekt> I dont know what package manager would have done this
andrewvos has quit [Ping timeout: 256 seconds]
<yorickpeterse> I present to you: Debian
<yorickpeterse> ^ lol at the version
<yorickpeterse> oh, there's also rails3
maxmanders has quit [Quit: Computer has gone to sleep.]
<injekt> Successfully installed rails-4.0.0
<injekt> 1 gem installed
<injekt> ~/code% rails -v
<injekt> zsh: command not found: rails
<injekt> k im done with computers for today
<yorickpeterse> rbenv?
<havenwood> chruby
<yorickpeterse> chruby doesn't do that
<yorickpeterse> rbenv has "The Shims (tm)"
<injekt> doesn't do what?
saarinen has joined #ruby-lang
<yorickpeterse> last release: 2006
<yorickpeterse> brb, station
<havenwood> yorickpeterse: Setting $GEM_HOME and prepending it to $PATH ought do the trick, i'd have thought.
saarinen has quit [Client Quit]
<havenwood> shims.. harumph!
ffio has quit [Quit: WeeChat 0.4.1]
cofin has quit [Quit: cofin]
phracker has joined #ruby-lang
saarinen has joined #ruby-lang
phracker has quit [Max SendQ exceeded]
intellitech has quit [Ping timeout: 240 seconds]
swav has quit [Remote host closed the connection]
ryanv-raptor has joined #ruby-lang
<hagabaka> I'm getting a "missing file" error when running "ri open": https://gist.github.com/anonymous/5977299 , I just reinstalled ruby too
anonymuse has quit [Remote host closed the connection]
anonymuse has joined #ruby-lang
gregmoreno has quit [Remote host closed the connection]
ecnalyr has quit [Remote host closed the connection]
saarinen has quit [Quit: saarinen]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
<zzak> hagabaka: this is a known bug
<hagabaka> oh
<zzak> it will be fixed in the next release of rdoc, and backported to the next patchlevel release of ruby
<matti> Hey zzak
gregmoreno has joined #ruby-lang
<zzak> hi :)
<matti> zzak: Any word from usa
<matti> ?
anonymuse has quit [Ping timeout: 276 seconds]
jg__ has quit [Ping timeout: 248 seconds]
<zzak> matti: do you know ticket #?
<yorickpeterse> hagabaka: or just use chruby
<zzak> how does chruby fix the rdoc bug?
<yorickpeterse> no that was re: havenwood
<havenwood> zzak: That is a new chruby feature. It fixes all upstream bugs. :P
<yorickpeterse> oh shit, I fail at mentioning
<yorickpeterse> derp
<matti> zzak: I have it somewhere.
<matti> zzak: I am kind of loosing hope ;p
mbj has joined #ruby-lang
<zzak> matti: usa is very busy, i think he focus on higher priority bugs
<zzak> but if luis is ok with it, it should be ok
<matti> zzak: We need more "usa" then. One person has just became a bottleneck.
<matti> ;d
<havenwood> hagabaka: Here is the bugfix if you wanna apply it on your own rdoc or whatev: https://github.com/rdoc/rdoc/issues/222
dingus_khan has quit [Remote host closed the connection]
<matti> zzak: But I understand.
* whitequark sighs
<whitequark> downloading all gems took two hours
<whitequark> converting them to tarballs is going to take *much* longer
<whitequark> it's at "c" now and processes about one per second
<yorickpeterse> lol wat
<yorickpeterse> y u download all Gems
<zzak> there can only be one usa
<whitequark> testing parser
<yorickpeterse> wat
<yorickpeterse> you seriously downloading 25000 Gems?
<whitequark> I already did
<yorickpeterse> oh, we're at 60k these days
<whitequark> it's just eh... about 12G
<whitequark> not literally every single release; I just download latest and without prereleases
<yorickpeterse> oh? I thought it was around 25GB
<yorickpeterse> ah
<whitequark> since that doesn't make much difference
jstorimer has joined #ruby-lang
<hagabaka> havenwood: thanks
<whitequark> then, I'll try to roundtrip all of the ruby files in them with parser
stardiviner has quit [Remote host closed the connection]
lutfidemirci has quit [Remote host closed the connection]
<whitequark> oh, probably couldn't roundtrip; unparser isn't good enough yet (I think?)
<whitequark> well, then still parse and ensure that I don't crap out on more (or less) files than ruby
<yorickpeterse> is it any good?
anonymuse has joined #ruby-lang
saarinen has joined #ruby-lang
<whitequark> idk
<whitequark> it seems to work
<yorickpeterse> ... you didn't get it
<yorickpeterse> hold on
<whitequark> but it probably couldn't bear 25k gems
floord has joined #ruby-lang
dingus_khan has joined #ruby-lang
<whitequark> ha
runeb has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
realDAB has quit [Quit: realDAB]
TvL2386 has joined #ruby-lang
arooni-mobile has quit [Remote host closed the connection]
skade has joined #ruby-lang
weeb1e has quit [Quit: No Ping reply in 180 seconds.]
weeb1e has joined #ruby-lang
<TvL2386> hi guys, I've been programming occasionally in Ruby for a few years now, done stuff in Rails, but keep having difficulties modeling and programming larger applications. Are there some guides out there to help one on the way of not getting lost in spaghetti code? (that's how I feel)
_jpb_ has joined #ruby-lang
<whitequark> TvL2386: try doing TDD. it (when done right) forces you to decouple your code into neat independent modules
<whitequark> and exposes all dependencies
<whitequark> at least that's how it worked for me.
chris_c has joined #ruby-lang
mistym has joined #ruby-lang
skade has quit [Ping timeout: 276 seconds]
jstorimer has quit [Remote host closed the connection]
<whitequark> Rails apps also naturally tend to become big entangled balls of code :)
<TvL2386> whitequark, been doing some TDD, but still having issues really kicking it off
dhruvasagar has quit [Ping timeout: 246 seconds]
<TvL2386> whitequark, mostly because I can't see at forehand exactly how I want it... or how it should behave... probably means that phase needs way more attention
<whitequark> yes.
Zeeo has quit [Quit: and then one day you'll pack up, fly down south... hide your head in the sand]
<Uranio> it is a "metodological problem"
<TvL2386> when something pops up, I usually dive in. Creating lots of bugs and things that don't work... Lots of oopsies...
<yorickpeterse> haha wtf curb-fu doesn't load curb for you
<TvL2386> When starting TDD, would rspec be a good start?
<whitequark> most people are using rspec, though I would recommend minitest
<yorickpeterse> ...and we don't even seem to use it
<whitequark> rspec has its own language, and it isn't small. it's easy to get caught in its peculiarities.
jstorimer has joined #ruby-lang
<whitequark> whereas minitest is just a dozen or so of functions
<whitequark> (from your perspective at least; though it isn't big itself)
<havenwood> TvL2386: +1 Minitest
<TvL2386> havenwood, thanks for the suggestion!
mreq has joined #ruby-lang
<yorickpeterse> whitequark: so would you say you prefer Bacon or Minitest?
maxmanders has joined #ruby-lang
<yorickpeterse> (given Minitest can also do BDD syntax)
<whitequark> yorickpeterse: fuck BDD
<whitequark> and while bacon is neat, it's way too minimalistic
realDAB has joined #ruby-lang
<whitequark> I used it in the past but I switched to minitest
<yorickpeterse> heh
<yorickpeterse> It usually suits my needs but the moment you want anything extra you have to hack things
<yorickpeterse> I mostly just need `foo.should == bar` and that's about it really
<yorickpeterse> inb4 it should be called "must" or w/e, I don't care
maxmanders has quit [Max SendQ exceeded]
<whitequark> no one does
maxmanders has joined #ruby-lang
<whitequark> though, according to rfc2119, it should be called either `must' or `shall'
* whitequark ducks
<blowmage> assert_equal bar, foo / foo.must_equal bar
<yorickpeterse> that joke SHOULD have been funny
<blowmage> MAY
<yorickpeterse> In true rspec fashion it would be `some_value.should_equal_the_value_of(derp)`
realDAB has quit [Client Quit]
<whitequark> yorickpeterse: if that joke isn't funny, you are simply a noncompliant implementation
<whitequark> and your use should be discouraged and/or deprecated.
cored has quit [Ping timeout: 256 seconds]
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
intellitech has joined #ruby-lang
jstorimer has quit [Remote host closed the connection]
<yorickpeterse> I'll deprecate your face
<whitequark> lol
<Uranio> whitequark: how could I lear about TDD?
<Uranio> learN
mistym has quit [Remote host closed the connection]
<whitequark> Uranio: there's like 1001 resource which explains it on the web
<Uranio> TDD ruby at google do not say so much :/
<TvL2386> guys, trying minitest now for testing my gem... I have a test/test_my_lib.rb defined and testing in there for having a MyLib::VERSION. I'm getting uninitialized constant MyLib::VERSION. I suppose I need to tell minitest to include MyLib... Where should I generically set that up?
<FiXato> https://encrypted.google.com/search?q=tdd+ruby&ie=utf-8&oe=utf-8&hl=en shows plenty of relevant links Uranio
<whitequark> TvL2386: google for "test_helper"
<blowmage> TvL2386: how are you calling your tests?
<TvL2386> whitequark, think I found something...
<blowmage> TvL2386: ruby -Ilib:test test/test_my_lib.rb
<TvL2386> blowmage, doing `rake test`
<blowmage> ^ will add lib and test to the test path
<TvL2386> some old gem that used TestUnit, no tests were ever made
cored has quit [Ping timeout: 276 seconds]
<TvL2386> I'm finding it out! Google says to create a test helper and require it in all tests... sounds obvious :)
<whitequark> yeah
CaptainJet has joined #ruby-lang
<Uranio> FiXato: ok..
<whitequark> group all the initialization there
cored has joined #ruby-lang
<blowmage> TvL2386: make sure you add "lib" to your test task's libs attribute: http://rake.rubyforge.org/classes/Rake/TestTask.html
<yorickpeterse> http://hastebin.com/lefivofigu.txt ruby-prof, y u no format correctly
<yorickpeterse> (this is the amount of object allocations)
<yorickpeterse> the .000 is a bit redundant if you'd ask me
<ericwood> .000
<whitequark> department of redundancy department
<yorickpeterse> factory
<ericwood> abstract singleton factory bean observer
<ericwood> oh man there was this amazing java class I found once that was literally something like that but I can't find it
<TvL2386> argh.... I wrote MyLib::Version instead of MyLib::VERSION.... good reason for the constant to be uninitialized
retro|cz has joined #ruby-lang
<Nilium> I like how 'amazing' and 'java' never go together unironically.
<whitequark> I have this in my bookmarks bar
<yorickpeterse> wait wait, I can top that
<yorickpeterse> I have a better one here somewhere
<yorickpeterse> no no, an even better one
<yorickpeterse> DAMN IT WHERE IS IT
<yorickpeterse> something about some TypeThatSneakedInButShouldntBeHereFactoryFactoryWhateverItWas
<whitequark> Nilium: eh, that makes sense
<Nilium> Though I'm sure name length is easy to do on Java.
<whitequark> and the one above is just 5.times.map { PATTERNS.sample }.join
mbr has quit [Quit: leaving]
<ericwood> AbstractSingletonProxyFactoryBean
<whitequark> ericwood: I just posted it ;)
<Nilium> So it's an abstract singleton proxy fac- how fucking high do you need to be for the existence of that to be justifiable?
<ericwood> I think the one I was truly looking for was much worse though
<ericwood> which is hard to fathom
<whitequark> I especially like the comment on RequestProcessorFactoryFactory
<ericwood> >.>
<yorickpeterse> good ol `column -t` to the rescue
<whitequark> >The default RequestProcessorFactoryFactory is the RequestProcessorFactoryFactory.RequestSpecificProcessorFactoryFactory.
<ericwood> I just want to point out that the page I linked to summarizes everything that's wrong with Java
<ericwood> oh man that just reads like poetry
<whitequark> also the doc for AbstractSingletonProxyFactoryBean mentions this:
<whitequark> "Convenient proxy factory bean superclass for proxy factory beans that create only singletons.
<yorickpeterse> I honestly can't imagine people writing that and thinking "Man, this is some good code. Today was a good day"
<whitequark> "convenient", my ass
<ericwood> lol
<ericwood> I could barely parse that sentence
soahccc has joined #ruby-lang
<ericwood> who in their right mind thinks that this is an acceptable way to live life
<ericwood> I want to know
<yorickpeterse> some nerd at Oracle
<ericwood> :'(
<ericwood> I weep for their soulds
<ericwood> *souls
<Nilium> The nerds at oracle do not enjoy it, at least I don't think they do.
<yorickpeterse> If you write that you don't have one
<Nilium> Ooo new humble bundle thing time to go waste money
yxhuvud2 has left #ruby-lang [#ruby-lang]
<soahccc> Anyone know why I can't kill a screen with open3's popen3? It says "screen must be connected to a terminal". With backticks it works but I can't capture the stderr
yxhuvud has joined #ruby-lang
<ericwood> you can redirect stderr to a file or some crap and read from that
<ericwood> iirc backticks only capture stdout
<soahccc> Yeah they do.. I could redirect it but I thought I could use a general approach for all commands I will call.
realDAB has joined #ruby-lang
mbr has joined #ruby-lang
<soahccc> I guess I'm missing something. The same problem is with "ssh user@host screen". You need -t "force pseudo-tty allocation"
peterc has joined #ruby-lang
<ndrst> how about net/ssh?
<ndrst> if the tool you call needs a pseudo tty it's going to become tricky
<soahccc> It isn't via ssh in my case :) I do a little manager sort of application which calls a lot of things on the command line... I have a wrapper method which currently uses open3 which works generally but not for screen commands
realDAB has quit [Quit: realDAB]
peterc has quit [Ping timeout: 260 seconds]
<yorickpeterse> damn it, it appears my code results in quite a bit of memory being used for Hash#initialize and Hash#[]=. Sadly I don't think there
<yorickpeterse> * there's a way around that
<soahccc> I could redirect stderr to stdout but a separation as with open3 would be nice
<whitequark> yorickpeterse: there is
<yorickpeterse> (less Hash objects doesn't really work)
<ericwood> you can totally redirect stderr to stdout
<whitequark> it's called "proper design" :p
<ericwood> google it I forgot how
<yorickpeterse> keyword arguments would save some Hash instances I think, but that wouldn't make it backwards compatible
<whitequark> they're hashes underneath
<yorickpeterse> hm
<ericwood> you're a hash underneath
<ericwood> we're all just hashes
<ericwood> .......
breakingthings has joined #ruby-lang
<soahccc> ericwood: yeah I know with this 1>&2 sort of syntax but then I have one string. two separated would be better
<ericwood> I want a pony
<yorickpeterse> also interesting: using Hash#each in combination with instance_variable_set (to easily set a bunch of options) appears to be more resource intensive than using `@foo = options[:bar] || baz`
mistym has joined #ruby-lang
<yorickpeterse> though the difference is very small
<ericwood> that's not interesting
<yorickpeterse> shaddap
maxmanders has quit [Quit: Computer has gone to sleep.]
<ericwood> that says ponychan
<ericwood> not clicking
<ndrst> it's safe
<ndrst> (:
<ericwood> people can see my mmonitor >.>
<ndrst> no nudity no NSFW
<yorickpeterse> ok it's sfw
<ndrst> except the nude pony
<yorickpeterse> it's just some weird MS paint pony
<yorickpeterse> also wtf is ponychan
cofin has joined #ruby-lang
<ericwood> I'm better off without a weird MS paint pony in my life
<ndrst> just stumbled uppon that
<yorickpeterse> suuuuuuuureee
<ndrst> i sear!
<ndrst> *swear
<ericwood> he bookmarked it
symm- has joined #ruby-lang
jg__ has joined #ruby-lang
soahccc has quit [Quit: Legalize it!]
<yorickpeterse> in regards to my benchmarking adventures, is there some lib (whatever language) where I can just slap my data in and get decent graphs for .e.g. memory usage
<ndrst> soahccc: btw tried that once, but gave up on WTF error msgs
<yorickpeterse> probably in similar vain to rrd tool
<yorickpeterse> (I don't want to hack this together in JS or some crap)
<ndrst> yorickpeterse: incanter
havenwood has quit [Ping timeout: 240 seconds]
<ndrst> makes nice graphs, is a bit like R though
<yorickpeterse> hmm
<yorickpeterse> this website is hideous
maxmanders has joined #ruby-lang
<yorickpeterse> hm, this looks like gnuplot
<yorickpeterse> Ideally I'd just do "These are my axes, this is my data, have fun"
<ndrst> just with a proper language around it
<ndrst> excel
<yorickpeterse> fuck off
<ndrst> (:
<yorickpeterse> that means I have to copy-paste all this data into it
<ndrst> is latex an option?
<yorickpeterse> Fnordmetric looks ok, but it's more time based
<yorickpeterse> Plus Highcharts is fucking terrible at lots of data
_jpb_ has quit [Ping timeout: 264 seconds]
<yorickpeterse> ndrst: eh, I have to feed it data from Ruby
<yorickpeterse> so I'm not sure
_jpb_ has joined #ruby-lang
<ndrst> csv it eats
<ndrst> pgfplots
fenicks has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
sepp2k has joined #ruby-lang
<ndrst> last but no least this google js api stuffsz
geopet has quit [Quit: geopet]
peterc has joined #ruby-lang
saarinen has quit [Quit: saarinen]
<yorickpeterse> Hm, Graphite might be an option
__butch__ has quit [Quit: Leaving.]
kstuart has joined #ruby-lang
saarinen has joined #ruby-lang
<ndrst> that looks nice
jstorimer has joined #ruby-lang
maxmanders has quit [Quit: Computer has gone to sleep.]
jstorimer has quit [Read error: Connection reset by peer]
<yorickpeterse> hm, it's time based though
geopet has joined #ruby-lang
<ndrst> how many values do you have?
<ndrst> or what kind of data?
<yorickpeterse> http://hastebin.com/vuyomameni.txt this basically
<yorickpeterse> "name" would be the X axis, "total" the Y
<yorickpeterse> probably just a plain bar chart or something
<yorickpeterse> something that makes it a bit easier to digest than raw numbers
hashkey has joined #ruby-lang
geopet has quit [Client Quit]
<ndrst> try incanter and check out this blogpost, the type of data is the same: http://citizen428.net/blog/2010/08/10/github-stats-with-incanter/
<ndrst> damn i'm lost in that pony site
<ndrst> how did you profile that?
<yorickpeterse> ndrst: ruby-prof in combination with some patches for MRI
MaddinXx_ has quit [Remote host closed the connection]
CaptainJet has quit []
<yorickpeterse> that's memory usage in KB btw
<ndrst> Class#new is called quite a bit
axsuul is now known as axsuul
<yorickpeterse> because everything extends Class
<yorickpeterse> I don't call it anywhere explicitly
gja has joined #ruby-lang
realDAB has joined #ruby-lang
<yorickpeterse> the interesting stuff all happens in RubyObject and most of it is due to the use of Hashes as keyword arguments
<yorickpeterse> as well as the low-level internal data structure
CaptainJet has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
Asher1 has joined #ruby-lang
<ndrst> what is that thing doing you are benchmarking?
jayne_ has joined #ruby-lang
<ndrst> some call numbers are quite high
davetoxa has quit [Ping timeout: 250 seconds]
axsuul1 has joined #ruby-lang
carloslopes has joined #ruby-lang
<yorickpeterse> it loads a bunch of definitions for stdlib/rails
<yorickpeterse> so it does do quite a bit of method calls
<ndrst> ah yeah your ruby-lint
foca_ has joined #ruby-lang
<yorickpeterse> but it's not that bad since it only uses around 30MB
crudson has joined #ruby-lang
<yorickpeterse> managed to get it down to that from 32MB by getting rid of default options hashes here and there
<yorickpeterse> (webscale!)
<yorickpeterse> errr, that's 30MB without the Rails definitions
<whitequark> yorickpeterse: that's... completely pointles
<whitequark> *pointless
<yorickpeterse> 2MB? Yes, but I was hoping I could find another 5-10 cases where I could reduce maybe 1MB
<yorickpeterse> The problem here is that it increases exponentially by the looks of it
<whitequark> if it makes the code more clear, I would let it eat 100MB
<ndrst> so you want to optimize memory usage for your tool?
<yorickpeterse> and I don't want that
<yorickpeterse> whitequark: the changes I'm making take that into account
Karql has joined #ruby-lang
<yorickpeterse> I'm not going to write ugly code unless it saves me *a lot*
<whitequark> okay
<whitequark> your tool is one-shot anyway
<whitequark> memory usage doesn't matter, like, at all
<whitequark> runtime does
<whitequark> unless you're going to run it at raspberry pi... but then I would deliberately make it more memory-hungry
<yorickpeterse> memory does matter actually since I want people to be able to run this in a webservice for example
<yorickpeterse> without having to shell out for every call
<whitequark> yorickpeterse: so 30MB is the resident set?
<whitequark> not peak usage or total allocation amount?
FlyingLeap_ has joined #ruby-lang
<yorickpeterse> base memory usage sits somewhere around 20MB from the top of my head, 30MB for the test suite (that's what it reports at the end)
<whitequark> how do you measure memory usage?
<yorickpeterse> when you load Rails definitions it will jump to 40-45MB (it changes a bit from time to time
<yorickpeterse> whitequark: ruby-prof and good ol' `ps -o rss= PID`
<whitequark> not sure about prof, but ps is useless here
<yorickpeterse> the latter is really just a very blunt indication
<yorickpeterse> errr, rough
PacketMonkey_ has joined #ruby-lang
<whitequark> what you need is the total size of objects in the ruby heap; I think ruby-prof does tha
flip_digits has quit [Remote host closed the connection]
<whitequark> meanwhile the gem unpacker is at `dy'
<yorickpeterse> ruby-prof does memory, allocations (objects amount) and GC stuff
<yorickpeterse> and CPU info
Nilium has quit [Disconnected by services]
Nilium_ has joined #ruby-lang
<whitequark> will it ever finish
<yorickpeterse> object allocations are useless in this case since it reports that Strings are created very often while only taking up little memory
<yorickpeterse> (same goes with a few others)
symm- has quit [Ping timeout: 240 seconds]
rheddry has joined #ruby-lang
geopet has joined #ruby-lang
<yorickpeterse> Does Ruby acutally perform any optimizations for frozen objects or is it merely a read-only toggler?
dingus_khan has quit [Remote host closed the connection]
Nilium_ has left #ruby-lang [#ruby-lang]
Nilium has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
<whitequark> yorickpeterse: toggler
<yorickpeterse> hmpf
gregmoreno has quit [*.net *.split]
_carloslopes has quit [*.net *.split]
DarkBushido has quit [*.net *.split]
axsuul has quit [*.net *.split]
foca has quit [*.net *.split]
Karql_ has quit [*.net *.split]
PaulePanter has quit [*.net *.split]
PacketMonkey has quit [*.net *.split]
levicole has quit [*.net *.split]
Asher has quit [*.net *.split]
Aloysius1 has quit [*.net *.split]
jayne has quit [*.net *.split]
levifig has quit [*.net *.split]
lk has quit [*.net *.split]
crudson1 has quit [*.net *.split]
oddmunds has quit [*.net *.split]
FlyingLeap has quit [*.net *.split]
flip_digits has joined #ruby-lang
oddmunds has joined #ruby-lang
__butch__ has joined #ruby-lang
gja has quit [Quit: This computer has gone to sleep]
realDAB has quit [Quit: realDAB]
PaulePanter has joined #ruby-lang
lk has joined #ruby-lang
<yorickpeterse> ok note to self: if you're trying to generate a PNG using `dot`, make sure that you have the arguments right
<yorickpeterse> because of that
jstorimer has joined #ruby-lang
<lianj> yorickpeterse: `reset`
peterc has quit [Remote host closed the connection]
gregmoreno has joined #ruby-lang
levicole has joined #ruby-lang
__butch__ has quit [Ping timeout: 248 seconds]
symm- has joined #ruby-lang
workmad3 has joined #ruby-lang
<yorickpeterse> yeah that doesn't work if all of tmux is fucked
<yorickpeterse> had to kill the windows
<lianj> bummer
<yorickpeterse> WHAT THE FUCK DOT
<yorickpeterse> STOP BEING A CUNT. THE SYNTAX IS RIGHT
kstuart has quit [Ping timeout: 264 seconds]
<yorickpeterse> or dick, or whatever gender dot may be
saarinen has quit [Quit: saarinen]
cored_ has joined #ruby-lang
Aloysius1 has joined #ruby-lang
Aloysius1 has quit [Read error: Connection reset by peer]
Aloysius1 has joined #ruby-lang
Aloysius1 has quit [Write error: Connection reset by peer]
s0ber_ has joined #ruby-lang
Aloysius1 has joined #ruby-lang
amateurhuman_ has joined #ruby-lang
Aloysius1 has quit [Read error: Connection reset by peer]
amateurhuman_ has quit [Changing host]
amateurhuman_ has joined #ruby-lang
__butch__ has joined #ruby-lang
kevinfagan_ has joined #ruby-lang
Aloysius1 has joined #ruby-lang
Aloysius1 has quit [Read error: Connection reset by peer]
Aloysius1 has joined #ruby-lang
Aloysius1 has quit [Read error: Connection reset by peer]
Aloysius1 has joined #ruby-lang
<yorickpeterse> this is unreadable as fuck though
Aloysius1 has quit [Read error: Connection reset by peer]
Aloysius1 has joined #ruby-lang
Aloysius1 has quit [Read error: Connection reset by peer]
Aloysius1 has joined #ruby-lang
Aloysius1 has quit [Read error: Connection reset by peer]
Aloysius1 has joined #ruby-lang
Aloysius1 has quit [Read error: Connection reset by peer]
erikh_ has joined #ruby-lang
Aloysius1 has joined #ruby-lang
Aloysius1 has quit [Read error: Connection reset by peer]
flip_digits has quit [Remote host closed the connection]
Aloysius1 has joined #ruby-lang
Aloysius1 has quit [Write error: Connection reset by peer]
nick_h has joined #ruby-lang
Aloysius1 has joined #ruby-lang
Aloysius1 has quit [Read error: Connection reset by peer]
Aloysius1 has joined #ruby-lang
Aloysius1 has quit [Write error: Connection reset by peer]
Aloysius1 has joined #ruby-lang
Aloysius1 has quit [Read error: Connection reset by peer]
djb_ has joined #ruby-lang
Aloysius1 has joined #ruby-lang
Aloysius1 has quit [Write error: Connection reset by peer]
braidn has joined #ruby-lang
Aloysius1 has joined #ruby-lang
Aloysius1 has quit [Read error: Connection reset by peer]
Aloysius1 has joined #ruby-lang
Aloysius1 has quit [Write error: Connection reset by peer]
MaddinXx has joined #ruby-lang
Aloysius1 has joined #ruby-lang
Aloysius1 has quit [Write error: Connection reset by peer]
ericwood_ has joined #ruby-lang
mahlon_ has joined #ruby-lang
io_syl_ has joined #ruby-lang
Aloysius1 has joined #ruby-lang
Aloysius1 has quit [Read error: Connection reset by peer]
Aloysius1 has joined #ruby-lang
Aloysius1 has quit [Read error: Connection reset by peer]
Aloysius1 has joined #ruby-lang
Aloysius1 has quit [Write error: Connection reset by peer]
Aloysius1 has joined #ruby-lang
Aloysius1 has quit [Read error: Connection reset by peer]
__butch__ has quit [Ping timeout: 264 seconds]
Aloysius1 has joined #ruby-lang
Aloysius1 has quit [Write error: Connection reset by peer]
Aloysius1 has joined #ruby-lang
Aloysius1 has quit [Read error: Connection reset by peer]
flip_digits has joined #ruby-lang
Aloysius1 has joined #ruby-lang
Aloysius1 has quit [Write error: Connection reset by peer]
Aloysius1 has joined #ruby-lang
Aloysius1 has quit [Read error: Connection reset by peer]
Aloysius1 has joined #ruby-lang
Aloysius1 has quit [Read error: Connection reset by peer]
<yorickpeterse> apeiros: ^ lots of /parts from Aloysius1
Aloysius1 has joined #ruby-lang
havenwood has joined #ruby-lang
Aloysius1 has quit [Write error: Connection reset by peer]
Aloysius1 has joined #ruby-lang
Aloysius1 has quit [Write error: Connection reset by peer]
Aloysius1 has joined #ruby-lang
Aloysius1 has quit [Read error: Connection reset by peer]
hakunin has quit [Remote host closed the connection]
sepp2k1 has joined #ruby-lang
hakunin has joined #ruby-lang
<yorickpeterse> So I was about to write "All hail apeiros" but I almost made a rather disasterous freudian slip (if you can even call it that in this case)
jstorimer has quit [Remote host closed the connection]
<yorickpeterse> I seriously need my tea
cored has quit [Ping timeout: 246 seconds]
beawesomeinstead has quit [Ping timeout: 246 seconds]
kevinfagan has quit [Ping timeout: 246 seconds]
amateurhuman has quit [Ping timeout: 246 seconds]
Iskarlar has quit [Ping timeout: 246 seconds]
nick_h_ has quit [Ping timeout: 246 seconds]
io_syl has quit [Ping timeout: 246 seconds]
dabradley has quit [Ping timeout: 246 seconds]
manveru has quit [Ping timeout: 246 seconds]
braidn_ has quit [Ping timeout: 246 seconds]
slightair has quit [Ping timeout: 246 seconds]
djb has quit [Ping timeout: 246 seconds]
erikh has quit [Ping timeout: 246 seconds]
fuhgeddaboudit has quit [Ping timeout: 246 seconds]
s0ber has quit [Ping timeout: 246 seconds]
brixen has quit [Ping timeout: 246 seconds]
ericwood has quit [Ping timeout: 246 seconds]
ohsix has quit [Ping timeout: 246 seconds]
vbatts has quit [Ping timeout: 246 seconds]
mahlon has quit [Ping timeout: 246 seconds]
ohsix has joined #ruby-lang
s0ber_ is now known as s0ber
<apeiros> yorickpeterse: what? :)
slightair_ has joined #ruby-lang
<yorickpeterse> I almost typed "All heil apeiros"
__butch__ has joined #ruby-lang
firstdayonthejob has joined #ruby-lang
<yorickpeterse> well I did but was about to press enter
maxmanders has joined #ruby-lang
sepp2k has quit [Ping timeout: 256 seconds]
<Nilium> Didn't you just type it and press enter?
manveru has joined #ruby-lang
<yorickpeterse> yeah but that's different
<apeiros> well, then I'd think you're being an idiot and that's about it.
<yorickpeterse> :<
<Nilium> I think the results were pretty good.
<Nilium> A++++ would heil again
* yorickpeterse shakes cane at himself
__butch__ has quit [Client Quit]
<yorickpeterse> I guess lack of proper sleep and lots of numbers are getting the better of me
<apeiros> but why the nazi hailing?
<yorickpeterse> I have no idea why I initially typed that :<
<yorickpeterse> and "hail" is not even remotely related to nazism
<rickhull> i'd rather nazi hitler references in this chan ;)
hakunin has quit [Ping timeout: 240 seconds]
brixen has joined #ruby-lang
* rickhull runs
<yorickpeterse> I don't ge...oh
<yorickpeterse> meh
<rickhull> i think it relies on the american pronunciation
<yorickpeterse> No, we have those jokes over here too
<yorickpeterse> and they're just as terrible
<yorickpeterse> though Dutch people have a preference for jokes about the Belgians
<yorickpeterse> I'd give some examples but you really can't translate them well to English since they often rely on Dutch word play
<yorickpeterse> you'll end up with something like "I'll see it through the fingers" ("Ik zie het door de vingers", which means "I'll turn a blind eye on it")
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
fuhgeddaboudit has joined #ruby-lang
pskosinski has quit [Remote host closed the connection]
dabradley has joined #ruby-lang
gregf has joined #ruby-lang
pskosinski has joined #ruby-lang
vbatts has joined #ruby-lang
vlad_starkov has joined #ruby-lang
hakunin has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
saarinen has joined #ruby-lang
vlad_starkov has joined #ruby-lang
cofin has quit [Quit: cofin]
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
verto has joined #ruby-lang
ecnalyr has joined #ruby-lang
<yorickpeterse> heh, not loading YAML saves me 4MB
<yorickpeterse> but I kinda need that lib
havenn_ has joined #ruby-lang
maxmanders has quit [Ping timeout: 264 seconds]
havenwood has quit [Read error: Connection reset by peer]
maxmanders has joined #ruby-lang
havenn_ has left #ruby-lang [#ruby-lang]
havenwood has joined #ruby-lang
<yorickpeterse> screw this, I hereby consider 30-40MB of memory usage a feature
<yorickpeterse> WONTFIX
jstorimer has joined #ruby-lang
retro|cz has quit [Ping timeout: 260 seconds]
jstorimer has quit [Read error: Connection reset by peer]
retro|cz has joined #ruby-lang
tenderlove has joined #ruby-lang
realDAB has joined #ruby-lang
realDAB has quit [Client Quit]
floord has quit [Quit: Leaving.]
tenderlove has quit [Ping timeout: 264 seconds]
kstuart has joined #ruby-lang
Guest4396 has quit [Quit: This computer has gone to sleep]
<TvL2386> hey guys, is it really necessary that your .gemspec file requires everything that is also required in lib/my_gem.rb? It seems like so much duplication
Uranio has quit [Quit: while you reading this, a kitty dies]
Squarepy has quit [Remote host closed the connection]
CaptainJet has quit []
maxmanders has quit [Quit: Computer has gone to sleep.]
maxmanders has joined #ruby-lang
<havenwood> TvL2386: How is that necessary? Can you give an example?
CaptainJet has joined #ruby-lang
scampbell has quit [Remote host closed the connection]
Asher1 has quit [Quit: Leaving.]
Asher has joined #ruby-lang
<TvL2386> havenwood, I don't know if it is necessary, but in my gemspec all files are required. In my lib/my_gem.rb also is required as well. If I don't require it in my gem for example: require File.expand_path('../lib/my_gem/version', __FILE__) I don't have the MyGem::VERSION to reference
nathanstitt has joined #ruby-lang
<TvL2386> havenwood, also if I forget to require something in my gemspec, it's not available in my tests... I run it with `rake test`
<TvL2386> havenwood, I'm searching for a nice gems code to see how it should be done
flip_digits has quit [Remote host closed the connection]
<havenwood> TvL2386: This is pretty close to what the current Bundler generates: https://github.com/havenwood/encrypt/blob/master/encrypt.gemspec
realDAB has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
<havenwood> TvL2386: Maybe try a `bundle gem gem_name_here; cat gem_name_here/gem_name_here.gemspec
<havenwood> `
cored_ has quit [Ping timeout: 264 seconds]
ecnalyr has quit [Remote host closed the connection]
cored has joined #ruby-lang
cored has joined #ruby-lang
<havenwood> TvL2386: Maybe look at Pry's for a cleaner example: https://github.com/pry/pry/blob/master/pry.gemspec
<whitequark> letter f!
<TvL2386> thanks havenwood!
<TvL2386> havenwood, I commented all my require's except the version (which is used). I also required 'my_gem' now in my test_helper. That seems to require the version I'm working on (and not the one installed). I don't know why I added all my files in the gemspec in the past
jg__ has quit [Ping timeout: 260 seconds]
<TvL2386> havenwood, maybe something blows up when I'm ready to build a new gem, but I'll see :)
TvL2386 has quit [Quit: Ex-Chat]
tenderlove has joined #ruby-lang
maxmanders has quit [Quit: Computer has gone to sleep.]
cored has quit [Ping timeout: 240 seconds]
dabradley has quit [Quit: WeeChat 0.3.8]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
cofin has joined #ruby-lang
cored has joined #ruby-lang
flip_digits has joined #ruby-lang
floord has joined #ruby-lang
chris_c has quit [Quit: Leaving.]
maxmanders has joined #ruby-lang
pipework has quit [Remote host closed the connection]
dabradley has joined #ruby-lang
realDAB has quit [Quit: realDAB]
floord has quit [Ping timeout: 256 seconds]
saarinen has quit [Quit: saarinen]
saarinen has joined #ruby-lang
hogeo_ has joined #ruby-lang
intellitech has quit [Quit: intellitech]
ldnunes has quit [Quit: Leaving]
hogeo has quit [Ping timeout: 264 seconds]
jstorimer has joined #ruby-lang
jstorimer has quit [Read error: Connection reset by peer]
ericwood_ has left #ruby-lang [#ruby-lang]
breakingthings has quit [Quit: breakingthings]
ericwood has joined #ruby-lang
wmoxam has quit [Ping timeout: 245 seconds]
dingus_khan has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
maxmanders has quit [Quit: Computer has gone to sleep.]
jonahR has joined #ruby-lang
havenwood has quit [Ping timeout: 240 seconds]
julweber has joined #ruby-lang
anonymuse has quit [Remote host closed the connection]
carloslopes has quit [Remote host closed the connection]
anonymuse has joined #ruby-lang
duph2 has quit [Quit: Leaving.]
flip_digits has quit [Remote host closed the connection]
mreq has quit [Ping timeout: 256 seconds]
x0f has quit [Ping timeout: 240 seconds]
Kabaka has quit [Remote host closed the connection]
anonymuse has quit [Ping timeout: 260 seconds]
x0f has joined #ruby-lang
maxmanders has joined #ruby-lang
Kabaka has joined #ruby-lang
mbj has quit [Read error: Operation timed out]
vlad_starkov has joined #ruby-lang
roadt has quit [Ping timeout: 260 seconds]
MaddinXx has quit [Remote host closed the connection]
cofin has quit [Quit: cofin]
CaptainJet has quit []
faramir has quit [Ping timeout: 245 seconds]
mistym has quit [Remote host closed the connection]
realDAB has joined #ruby-lang
forrest has joined #ruby-lang
x0f has quit [Ping timeout: 260 seconds]
CaptainJet has joined #ruby-lang
mreq has joined #ruby-lang
cofin has joined #ruby-lang
x0f has joined #ruby-lang
drbrain_ has left #ruby-lang [#ruby-lang]
drbrain_ has joined #ruby-lang
drbrain_ has left #ruby-lang ["Leaving..."]
drbrain has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
jvrmaia has quit [Quit: Leaving]
beawesomeinstead has joined #ruby-lang
x0f has quit [Ping timeout: 248 seconds]
joshuawscott has quit [Quit: Leaving.]
x0f has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 248 seconds]
intellitech has joined #ruby-lang
jstorimer has joined #ruby-lang
<rickhull> requiring your lib in your .gemspec seems dirty to me.
<rickhull> tracking your version in the lib: https://github.com/rickhull/buildar/blob/master/lib/buildar.rb#L6
forrest has quit [Quit: Leaving]
tbuehlmann has quit [Remote host closed the connection]
dingus_khan has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
anonymuse has joined #ruby-lang
floord has joined #ruby-lang
justinram has joined #ruby-lang
retro|cz has quit [Ping timeout: 246 seconds]
justinram has quit [Remote host closed the connection]
maxmanders has quit [Ping timeout: 240 seconds]
justinram has joined #ruby-lang
flip_digits has joined #ruby-lang
floord has quit [Ping timeout: 264 seconds]
maxmanders has joined #ruby-lang
enebo has quit [Quit: enebo]
jstorimer has quit [Remote host closed the connection]
mistym has joined #ruby-lang
justinram has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
workmad3 has quit [Ping timeout: 240 seconds]
mistym has quit [Remote host closed the connection]
<zenspider> corundum: seen headius?
postmodern has joined #ruby-lang
_jpb_ has quit [Ping timeout: 260 seconds]
_jpb_ has joined #ruby-lang
pipework has joined #ruby-lang
retro|cz has joined #ruby-lang
realDAB has quit [Quit: realDAB]
vlad_starkov has quit [Remote host closed the connection]
swav has joined #ruby-lang
erikh_ has left #ruby-lang [#ruby-lang]
erikh has joined #ruby-lang
<erikh> zenspider: corundum's broken
anonymuse has quit [Remote host closed the connection]
<drbrain> maybe corundum lost its nickserv registration
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
andrewvos has joined #ruby-lang
maxmanders has quit [Ping timeout: 264 seconds]
mistym has joined #ruby-lang
corundum has quit [Quit: okay bye]
corundum has joined #ruby-lang
cofin has quit [Quit: cofin]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
dingus_khan has joined #ruby-lang
<drbrain> corundum: botsnack
<corundum> drbrain: thanks :)
<drbrain> yeah, that was probably the problem
realDAB has joined #ruby-lang
<zenspider> nickserv has been wierd lately. I keep coming back to my proxy as zenspider_
<zenspider> then I can't /nick in here because I'm not registered. that makes no sense to me
vlad_starkov has joined #ruby-lang
ryanv-raptor has quit [Quit: Leaving.]
Rubennn_ has quit [Ping timeout: 240 seconds]
<whitequark> zenspider: hi
<whitequark> can you share your curated archive of gems?
<whitequark> gauntlet's kind of slow
Rubennn has joined #ruby-lang
x0f has quit [Ping timeout: 240 seconds]
dingus_khan has quit [Remote host closed the connection]
<darix> zenspider: freeneode still gets dossed regularly and the services suffer from that from time to time.
mistym has quit [Remote host closed the connection]
hahuang65 has joined #ruby-lang
x0f has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
realDAB has quit [Quit: realDAB]
nathanstitt has quit [Quit: I growing sleepy]
jstorimer has joined #ruby-lang
jstorimer has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby-lang
r0bby has joined #ruby-lang
r0bby_ has joined #ruby-lang
x0f has quit [Ping timeout: 264 seconds]
robbyoconnor has quit [Ping timeout: 264 seconds]
tylersmith has joined #ruby-lang
x0f has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
r0bby has quit [Ping timeout: 245 seconds]
robbyoconnor has joined #ruby-lang
r0bby_ has quit [Ping timeout: 248 seconds]
<Nilium> Hm, the wxRuby website has been kind of destroyed in weird ways
floord has joined #ruby-lang
<zenspider> flay version 2.3.1 has been released! | software releases by ryan davis - http://blog.zenspider.com/releases/2013/07/flay-version-2-3-1-has-been-released.html
<Nilium> Nifty
<zenspider> flog version 4.1.1 has been released! | software releases by ryan davis - http://blog.zenspider.com/releases/2013/07/flog-version-4-1-1-has-been-released.html
vlad_starkov has quit [Remote host closed the connection]
<zenspider> I could use another cappuccino
floord has quit [Ping timeout: 245 seconds]
<zenspider> corundum: seen headius?
<corundum> you best check yo'self!
<corundum> headius was last seen 17 hours, 19 minutes and 36 seconds ago, quitting IRC (Quit: headius)
<zenspider> damnit.. what fucking time zone is he in these days?
duph has joined #ruby-lang
flip_digits has quit [Remote host closed the connection]
flip_digits has joined #ruby-lang
duph has quit [Quit: Leaving.]
fuhgeddaboudit has quit [Ping timeout: 246 seconds]
realDAB has joined #ruby-lang
<Nilium> Ok, wxruby is a lost cause and I do not want to fix this pile of horror
realDAB has quit [Quit: realDAB]
<Nilium> Off to see if there are other gui gems and what state of disrepair they're in
duph has joined #ruby-lang
<whitequark> Nilium: gtk works but is really horrible with threads
<Nilium> And really, really horrible with Macs
<whitequark> qt... well... you *might* be able to compile it
<Nilium> I wrote that one off because it's Qt.
<whitequark> huh?
<whitequark> qt's probably the sanest framework around
<Nilium> It's also enormous
<whitequark> it isn't significantly fatter than gtk
<Nilium> And has slightly weird behavior on OS X.
<lianj> and makes a sad panda
<Nilium> Not as bad as GTK on OS X, just.. weird.
<whitequark> screw osx, there's no way to satisfy its users
<whitequark> use MacRuby
<Nilium> Would, but it's not Ruby 2.x
<whitequark> then you have no choice
<Nilium> But to do it myself!
<whitequark> oh, right
<whitequark> Java
<whitequark> Swing.
<Nilium> The less said of that the better.
<Nilium> I know I said Qt was enormous but it's tiny by comparison.
<whitequark> if I were you, I would try to fix the Qt gem
<Nilium> I'll probably just end up implementing my own UI.
<Nilium> Render it all using GL.
<Nilium> Maybe just port the old one I wrote.
<whitequark> (or, if the app is strictly OS X-specific, then MacRuby.)
<lianj> Nilium: cairo
<darix> jruby + whatever eclipse uses.
<Nilium> I'm not even making an app, I'm just dicking around
<Nilium> Less said of Java the better, again.
<lianj> i actually like how for jruby got
<Nilium> I prefer the GL approach anyway. Means it'll always work.
<Nilium> And I can make it needlessly pretty.
hogeo_ has quit [Remote host closed the connection]
<lianj> not true, try running gl on say rpi, except its optimised for that
<Nilium> Like I care about that.
<whitequark> rpi is bad for like everything
<Nilium> I don't think running even Ruby on a pi is sane. The only thing my pi is good for is running my ZNC server.
<whitequark> stop caring already, use a BBB or literally every other non-stupid board
<lianj> ruby + ffi + cairo x11 window is kinda nice on rpi
<lianj> like a flexible picture frame
<Nilium> Either way, GL seems like a good option, seeing as I wrote GL bindings and GLFW 3 bindings and 3D math routine bindings, so I'm pretty much set to work on that.
ryanv-raptor has joined #ruby-lang
ryanv-raptor has left #ruby-lang [#ruby-lang]
<lianj> true, on other machines (not rpi) i run gl + cairo. cairo i just way better for 2d pixel drawing and fonts
<Nilium> Probably.
<Nilium> The alternative is mostly bitmap fonts, and those suck pretty bad.
<lianj> thats just a joke
mdedetrich has joined #ruby-lang
<Nilium> I use bitmap fonts in my engine, but that's mostly 'cause they're inexpensive to draw.
<Nilium> Using them for a GUI would be less pleasant.
lutfidemirci has joined #ruby-lang
<lianj> yea, bitmap fonts are ok for 'play now' buttons but not much more
<lianj> using cario you setup one texture, draw into it with cairo and then have it as a gl texture in memory, if you don't need to change the text it simply a matter of drawing that texture again
<Nilium> Yeah, and text doesn't change all that much in UIs.
<Nilium> Can also skip mipmapping, probably.
duph has quit [Quit: Leaving.]
dingus_khan has joined #ruby-lang
<lianj> for fixed z gui, yes :P
duph has joined #ruby-lang
<Nilium> People who do non-fixed ones should probably be smacked with sticks. Repeatedly.
FlyingLeap_ has quit [Quit: No Ping reply in 180 seconds.]
toretore has quit [Quit: Leaving]
FlyingLeap has joined #ruby-lang
<Nilium> Assuming they're non-fixed and trying to look like a regular GUI and not a really specialized one for a game or something. Those ones are fine.
<whitequark> don't do your own GUIs, unless you intend to produce shit
<Nilium> I've done it a number of times, it's like a weird recurring masochistic hobby.
<lianj> there is some truth in that :)
<whitequark> because the result will be an abomination which doesn't support common keyboard shortcuts, or you can't scroll in it, or something
<Nilium> Dunno, things to look at if I ever actually need a GUI.
dingus_khan has quit [Ping timeout: 240 seconds]
lutfidemirci has quit [Remote host closed the connection]
roadt has joined #ruby-lang
<Nilium> Another idea would be to just not build the UI in Ruby and simply treat the UI as a client and the ruby side as the server.
thepumpkin has joined #ruby-lang
<whitequark> that's likely the only sane way to build a GUI with Ruby
<whitequark> and generally lots of languages