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
erikgj has quit [Quit: erikgj]
duph1 has joined #ruby-lang
duph has quit [Read error: Operation timed out]
MartynKeigher has quit [Read error: Operation timed out]
nathanstitt has joined #ruby-lang
ruurd has quit [Quit: Leaving...]
MartynKeigher has joined #ruby-lang
netShadow has joined #ruby-lang
julweber has quit [Remote host closed the connection]
bzalasky has joined #ruby-lang
firstdayonthejob has quit [Ping timeout: 246 seconds]
flip_digits has quit [Remote host closed the connection]
flip_digits has joined #ruby-lang
erikgj has joined #ruby-lang
hogeo has joined #ruby-lang
flip_digits has quit [Ping timeout: 246 seconds]
erikgj has quit [Ping timeout: 240 seconds]
spuk has joined #ruby-lang
jstorimer has joined #ruby-lang
GeissT has joined #ruby-lang
jstorimer has quit [Read error: Connection reset by peer]
flip_digits has joined #ruby-lang
flip_digits has quit [Remote host closed the connection]
flip_digits has joined #ruby-lang
cofin has quit [Quit: cofin]
mdedetrich has joined #ruby-lang
tkuchiki has joined #ruby-lang
_jpb_ has quit [Ping timeout: 260 seconds]
pskosinski has quit [Quit: Til rivido Idisti!]
_jpb_ has joined #ruby-lang
julweber has joined #ruby-lang
bryno has left #ruby-lang [#ruby-lang]
bri has joined #ruby-lang
sstrickl has quit [Quit: sstrickl]
steez has joined #ruby-lang
jstorimer has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
julweber has quit [Ping timeout: 256 seconds]
bzalasky has joined #ruby-lang
sepp2k1 has quit [Quit: Leaving.]
lcdhoffman has quit [Quit: lcdhoffman]
bzalasky has quit [Ping timeout: 246 seconds]
CaptainJet has quit []
mreq has quit [Ping timeout: 264 seconds]
fosky has quit [Ping timeout: 240 seconds]
lcdhoffman has joined #ruby-lang
lun___ has quit [Remote host closed the connection]
mislav has quit [Ping timeout: 246 seconds]
skade has quit [Ping timeout: 276 seconds]
arooni-mobile has joined #ruby-lang
gregmoreno has joined #ruby-lang
arooni-mobile__ has joined #ruby-lang
skade has joined #ruby-lang
bzalasky has joined #ruby-lang
Cakey has joined #ruby-lang
sstrickl has joined #ruby-lang
snafoo has quit [Ping timeout: 245 seconds]
snafoo has joined #ruby-lang
ryez has quit [Quit: Page closed]
erikgj has joined #ruby-lang
Cakey has quit [Ping timeout: 256 seconds]
gregmore_ has joined #ruby-lang
gregmoreno has quit [Ping timeout: 246 seconds]
ryez has joined #ruby-lang
erikgj has quit [Ping timeout: 246 seconds]
soypirate has joined #ruby-lang
fosky has joined #ruby-lang
fosky_ has joined #ruby-lang
soypirate has quit [Client Quit]
fosky has quit [Ping timeout: 256 seconds]
x0f_ has quit [Read error: Operation timed out]
swav has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
Domon has joined #ruby-lang
codelurker has joined #ruby-lang
x0f has joined #ruby-lang
codelurker has quit [Client Quit]
fragamus has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 260 seconds]
x0f has quit [Ping timeout: 260 seconds]
nathanstitt has quit [Quit: I growing sleepy]
x0f has joined #ruby-lang
Cakey has joined #ruby-lang
gregmore_ has quit [Remote host closed the connection]
nathanstitt has joined #ruby-lang
Kabaka has quit [Ping timeout: 240 seconds]
CaptainJet has joined #ruby-lang
jackhammer2022 has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby-lang
jstorimer has quit [Remote host closed the connection]
Kabaka has joined #ruby-lang
cofin has joined #ruby-lang
fosky_ has quit [Ping timeout: 240 seconds]
jonahR has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
Sambalero has joined #ruby-lang
flip_digits has quit [Remote host closed the connection]
jstorimer has joined #ruby-lang
flip_digits has joined #ruby-lang
jstorimer has quit [Read error: Connection reset by peer]
voip_engineer has quit [Remote host closed the connection]
mdedetrich has joined #ruby-lang
swav has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
bzalasky has joined #ruby-lang
bzalasky has quit [Ping timeout: 246 seconds]
eriklukas has quit [Ping timeout: 246 seconds]
cofin has quit [Quit: cofin]
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
bzalasky has joined #ruby-lang
CaptainJet has joined #ruby-lang
CaptainJet has quit [Disconnected by services]
CaptainJet_ has joined #ruby-lang
gja has joined #ruby-lang
gja has quit [Changing host]
gja has joined #ruby-lang
nertzy has joined #ruby-lang
<RickHull1> hagabaka: thanks a ton for the suggestion the other day. i'm really happy with where this ended up https://github.com/rickhull/buildar
<hagabaka> no problem
engineer has joined #ruby-lang
engineer has quit [Client Quit]
engineer has joined #ruby-lang
<RickHull1> whitequark: there's a line about you in there :P
<postmodern> i wish there was a keyword for Float::INFINITY
<postmodern> inf
<RickHull1> postmodern: btw, you made something similar and gave me ideas. interested in feedback
<postmodern> RickHull1, i hope your building on top of one of those many project management rake task libs
<RickHull1> no, but i could
v0yager has joined #ruby-lang
<postmodern> RickHull1, wow judging from the examples, i think you re-invented Hoe :/
<RickHull1> oh shit examples are out of date
<RickHull1> but yeah, Hoe was an inspiration
<postmodern> er, Hoe + gemspec
<RickHull1> look at buildar's root files
<RickHull1> they are more up to date than examples... fixing
<postmodern> RickHull1, you shouldn't need use_git, just check for .git/
<RickHull1> ok, yeah
cofin has joined #ruby-lang
engineer has quit [Remote host closed the connection]
<postmodern> RickHull1, also verify_publish_credentials might be redundant, since rubygems already checks for that
<RickHull1> yeah, i could axe that. figured nicer output
<RickHull1> also might switch on PUBLISH at some point
<RickHull1> er. publish keys w/e
lsegal has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
vlad_starkov has joined #ruby-lang
jstorimer has joined #ruby-lang
jstorimer has quit [Read error: Connection reset by peer]
xxaM has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 256 seconds]
CaptainJet_ has quit [Ping timeout: 268 seconds]
CaptainJet has joined #ruby-lang
flip_digits has quit [Remote host closed the connection]
<postmodern> RickHull1, also did you test any of the other rake libs?
<postmodern> RickHull1, mg/rubygems-tasks come awfully close, except they just need a version:bump task
flip_digits has joined #ruby-lang
<RickHull1> interesting, i didn't check them all
charliesome has joined #ruby-lang
<postmodern> RickHull1, yeah checkout mg/rubygems-tasks (rake based) and gem-release (gem plugin)
<RickHull1> i looked at gem-release
eriklukas has joined #ruby-lang
<RickHull1> getting a github 404 for mg/rubygems-tasks
<postmodern> RickHull1, checkout the rake libs, you can probably build ontop of them
<postmodern> RickHull1, they are two separate projects
<RickHull1> doh
<postmodern> RickHull1, oh also simple_gem https://github.com/daws/simple_gem
<postmodern> RickHull1, although it contains a generator and rake tasks, which violates SRP
skade has quit [Quit: Computer has gone to sleep.]
Weems has joined #ruby-lang
<RickHull1> my next project: a service that will tweet regex matches on the github commit message stream
Cakey has quit [Ping timeout: 240 seconds]
<RickHull1> i'd like to see the /amon tobin/i stream
lcdhoffman has quit [Quit: lcdhoffman]
cofin has quit [Quit: cofin]
julweber has joined #ruby-lang
x0f has quit [Ping timeout: 268 seconds]
mdedetrich has quit [Quit: Computer has gone to sleep.]
x0f has joined #ruby-lang
gja has quit [Quit: This computer has gone to sleep]
mdedetrich has joined #ruby-lang
mdedetrich has quit [Client Quit]
julweber has quit [Ping timeout: 246 seconds]
v0yager has quit [Remote host closed the connection]
<Nilium> It seems like rdoc ignores call-seq for initialize methods...
<erikh> can you provide an example?
<Nilium> Well, I put a :call-seq: on a C function bound to initialize for a class and it just didn't do anything. No easy way to reproduce right now, so I'm going to just assume it's being its usual awful self.
mdedetrich has joined #ruby-lang
<erikh> eh, maybe you could... provide a code sample?
<Nilium> I'll do that when I have time to write out a working sample C extension that lets me reproduce it.
<Nilium> In the meantime, I'm just going to continue working on this and ignore as much of rdoc's awfulness as I can.
<erikh> so, you're taking the "complain loudly and accomplish and do nothing approach"
<erikh> gotcha.
<Nilium> That said, it's probably worth noting that if you alias initialize, the new method (the one aliasing initialize) is hidden in generated docs.
<Nilium> So my best guess is just that anything pertaining to initialize is hidden.
<Nilium> Whereas anything pertaining to new is not.
<erikh> initialize is usually re-routed to new
<erikh> which might be your problem, but I don't really have time for guess work
<Nilium> It's probably a bad assumption to make for C bindings.
<Nilium> At any rate, I'll do it later. Again, I want to get the documentation written first.
vlad_starkov has joined #ruby-lang
jstorimer has joined #ruby-lang
Sambalero has quit [Remote host closed the connection]
<erikh> call-seq is pretty fiddly and there are a lot of ways to trip the specification up
jstorimer has quit [Read error: Connection reset by peer]
<erikh> it's very easy to "do it wrong"
CaptainJet_ has joined #ruby-lang
CaptainJet has quit [Disconnected by services]
<erikh> a use-case would help eliminate if you're just doing that or if there's a genuine bug that needs to be fixed
<Nilium> More likely it's just me doing something wrong.
vlad_starkov has quit [Ping timeout: 256 seconds]
v0yager has joined #ruby-lang
flip_digits has quit [Remote host closed the connection]
flip_digits has joined #ruby-lang
Bahman has joined #ruby-lang
CaptainJet_ has quit []
thebastl has joined #ruby-lang
_jpb_ has quit [Ping timeout: 246 seconds]
_jpb_ has joined #ruby-lang
Cakey has joined #ruby-lang
hhatch has joined #ruby-lang
tomzx_ has joined #ruby-lang
skade has joined #ruby-lang
tomzx_ has quit [Client Quit]
thebastl has quit [Remote host closed the connection]
mdedetrich has quit [Quit: Computer has gone to sleep.]
Nisstyre has quit [Quit: Leaving]
tomzx_mac has quit [Ping timeout: 246 seconds]
duph1 has quit [Quit: Leaving.]
mislav has joined #ruby-lang
kgrz has joined #ruby-lang
kgrz has quit [Read error: Connection reset by peer]
kgrz has joined #ruby-lang
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
dingus_khan has joined #ruby-lang
mislav has quit [Ping timeout: 246 seconds]
<dingus_khan> can't find this answer anywhere: are there options for the File class like there are for the CSV class when opening a text file?
<dingus_khan> maybe it's a stupid question, actually
<erikh> like, 'r' and 'w'?
<dingus_khan> err, besides those, like the ones for CSV-specific objects, like 'headers => true' and such
<dingus_khan> I'm trying to figure out a way to assign an id to each line of a text file when there already isn't one
<erikh> not that I know of, sorry
apeiros has quit [Read error: Connection reset by peer]
_jpb_ has quit [Ping timeout: 268 seconds]
apeiros_ has joined #ruby-lang
<erikh> ri File.open should have some docs though
_jpb_ has joined #ruby-lang
<dingus_khan> dang. OK, I'll check that out (although last time I tried that, RVM hadn't gotten that installed properly, even after the bugfix)
CaptainJet has joined #ruby-lang
<erikh> ah
<erikh> ruby-doc.org has most of the ri content on it.
skade has quit [Ping timeout: 276 seconds]
skade has joined #ruby-lang
<gnufied> dingus_khan: check CSV::new
<gnufied> it has several of those options
<dingus_khan> oh snap, you mean make a CSV out of a text file? what if there isn't already a header line in there? do I just manually make one?
eriklukas has quit [Ping timeout: 240 seconds]
<erikh> oh, I misunderstood
<erikh> are you actually dealing with CSV data?
apeiros_ has quit [Remote host closed the connection]
<dingus_khan> no, it's currently just a text file, straight up, just a list of sentences
<erikh> what attributes about said list of sentences would be interesting?
<dingus_khan> so it's a "todo list", one task per line, and it's saved as a txt
<erikh> I guess I'm missing something important.
<erikh> oh
<erikh> I see what you want to do
<erikh> how big is the file?
<dingus_khan> ah yeah, it's just supposed to be something I can create task objects out of by going line by line, and I wanted to be able to insert columns like a CSV would
<dingus_khan> about 15 lines long, lol
<dingus_khan> baby steps
<erikh> you could transform it into a csv
arubin has quit [Quit: Textual IRC Client: www.textualapp.com]
<erikh> well
<dingus_khan> and then I could insert a header row and transform it into a CSV?
<erikh> let's start small
<dingus_khan> 'cause those CSV object options are really handy, ha
<dingus_khan> ok, totally
<erikh> File.read('myfile').split(/\r?\n/)
<erikh> then you have an array, which you have a number for each one -- the index
<dingus_khan> whoa, little regex action there?
<dingus_khan> I did not know that was possible!
<erikh> the \r?\n says, "if it has a carriage return, swallow it, and split on newlines"
<erikh> so you're portable between windows and unix.
<erikh> \r being the carriage return, ? being the "optional" bit, and \n being the newline.
<erikh> anyhow -- regexes aren't the point here
<erikh> that turns each line into an array.
<erikh> err, makes an array out of all the lines.
<erikh> try it in irb.
<erikh> or pry or whatever
netShadow has quit [Quit: netShadow]
<erikh> File.read is shorthand for: f = File.open('myfile', 'r'); f.read; f.close
<erikh> most of this stuff is on ruby-doc.org so I'm going to urge you to go there and check it out soonish.
saarinen has joined #ruby-lang
<dingus_khan> crap sorry, got conversationally accosted by friends in the lobby
<dingus_khan> ok yeah, I was on the ruby-docs before, but I kept getting lost, couldn't distinguish between IO and File classes, guess it was a method search I should've done
mdedetrich has joined #ruby-lang
jstorimer has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
jstorimer has quit [Read error: Connection reset by peer]
<dingus_khan> holy crap that's genius, never would've thought to chain split onto the initial file read, thank you erikh!
<erikh> File inherits from IO
<dingus_khan> yep, but figuring out which had which method was a bit confusing
<erikh> so, when class A inherits from class B, it gets all its instance methods
<erikh> might be a good time to hit up one of those tutorials I keep telling you about :)
<gnufied> trust me, I have ignored erikh advise and I am doing fine
<erikh> hah
arooni-mobile has quit [Read error: Operation timed out]
thebastl has joined #ruby-lang
<dingus_khan> wait which tutorials? did we talk about the rubymonk stuff and the hardway ones?
<erikh> learn to program, probably
<erikh> corundum: learn to program?
gja has joined #ruby-lang
gja has quit [Changing host]
gja has joined #ruby-lang
<dingus_khan> the chris pine one?
<erikh> yes
arooni-mobile__ has quit [Ping timeout: 268 seconds]
thebastl has quit [Remote host closed the connection]
<erikh> someone removed the factoid
<erikh> I has a sad
<dingus_khan> ah yeah, that one was a mix of too slow and too fast with some boring mixed in, lol
<erikh> eh
<dingus_khan> the numbers to words solution was confusing
<erikh> how do you expect to learn without trying?
<erikh> eh, sorry, cranky.
thebastl has joined #ruby-lang
saarinen has quit [Quit: saarinen]
<dingus_khan> with another approach? the other tutorials like rubymonk felt like they jived a bit better, and I liked the hardway series too
<dingus_khan> although I'm realizing the hardway's "just shut up an type this" may not be the most learning-oriented approach, lol
<erikh> :)
<erikh> zed's books are good to start, but you have to do the diligence at the end
<dingus_khan> but I feel ya, I've been running around trying to cover a lot of different things under deadline, so I need to go back and review the chris pine one again at some point
<erikh> learned python from his book, I feel like I have better reasons to hate it now
<dingus_khan> lol sweet
<dingus_khan> wasn't there another tutorial site people referenced all the time? something like tuts + or code academy?
<dingus_khan> so many of them it seems
bzalasky has quit [Remote host closed the connection]
<erikh> yeah, dunno
<erikh> I learned from the pickaxe
<erikh> corundum: pickaxe?
<erikh> drbrain: I think ze bot is ze broken
bzalasky has joined #ruby-lang
<gnufied> lol
<erikh> dingus_khan: it's on ruby-doc.org -- there's also an updated book on pragprog.com
<erikh> (that costs money. and it's worth it, and pretty cheap.)
<gnufied> there is ruby pickaxe book and may be for not absolute beginners but David Flangnan's book is also quite good
workmad3 has joined #ruby-lang
saarinen has joined #ruby-lang
<gnufied> for*
pkrnj has joined #ruby-lang
<erikh> yeah, if ruby's your first programming language, the pine book (or perhaps this one) is more along the lines of what you're after
<erikh> even if it's "boring" in spots.
<dingus_khan> oh the pickaxe! I haven't gotten to that one, I haven't had a chance to sit down with a book on ruby yet, I've got the well grounded rubyist, beginning ruby, and eloquent ruby sitting on my hard drive still!
<gnufied> hmm
<dingus_khan> i first learned some programming with C++, and then I took a LAMP course last year
<erikh> how many years of C++?
<erikh> or is this college?
<dingus_khan> oh like maybe 1
<dingus_khan> college
<erikh> ah ok
<dingus_khan> long time ago
<erikh> so you understand what a for loop, methods are?
<erikh> sorry if I'm being overly pedantic, really just want to help
skade has quit [Quit: Computer has gone to sleep.]
<dingus_khan> for loops! miss those a bit, lol
<erikh> #each
<erikh> and ruby has for loops but they're discouraged.
<dingus_khan> yep, took a minute to get used to that one, but I'm ok now :D
<erikh> so, hm.
bzalasky has quit [Ping timeout: 246 seconds]
<erikh> I'm not familiar iwth the flanagan book, but if it's a beginner book give it a shot
<dingus_khan> flanagan, gonna google now
<erikh> the emphasis is on beginning programming though, with a ruby focus
<erikh> codeacademy is a course thing
<erikh> if web stuff is what you're interested in, they'll probably be able to help there
<dingus_khan> oh I've got a hard copy of that one! yeah, it was a bit fast paced back when I first started reading it, but I imagine it'll make a lot more sense now
<erikh> yeah, I'd recommend just giving yourself some problems like that todo list and going through your book with solving that in mind
<erikh> "what would I use here to accomplish this", etc.
<erikh> helps me learn at least -- I'm a big "learn by doing" type
<erikh> ok I'mm play video games now. good luck!
<dingus_khan> yeah totally, that's sort of the focus of this course I'm doing
<dingus_khan> have fun!@
<dingus_khan> what game?
shireesh has joined #ruby-lang
r0bby has joined #ruby-lang
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
Kabaka has quit [Ping timeout: 240 seconds]
dhruvasagar has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 248 seconds]
kgrz has quit [Remote host closed the connection]
Kabaka has joined #ruby-lang
_jpb_ has quit [Ping timeout: 276 seconds]
_jpb_ has joined #ruby-lang
bzalasky has joined #ruby-lang
saarinen has quit [Quit: saarinen]
mbj has quit [Read error: Operation timed out]
r0bby_ has joined #ruby-lang
julweber has joined #ruby-lang
ffio_ has joined #ruby-lang
ffio has quit [Ping timeout: 240 seconds]
r0bby has quit [Ping timeout: 240 seconds]
JohnBat26 has joined #ruby-lang
dingus_khan has quit [Remote host closed the connection]
krames has quit [Ping timeout: 268 seconds]
workmad3 has quit [Read error: Operation timed out]
robbyoconnor has joined #ruby-lang
zz_jinie is now known as jinie
krames has joined #ruby-lang
r0bby_ has quit [Ping timeout: 246 seconds]
vlad_starkov has joined #ruby-lang
jstorimer has joined #ruby-lang
jstorimer has quit [Read error: Connection reset by peer]
Cakey has quit [Ping timeout: 240 seconds]
vlad_sta_ has joined #ruby-lang
jstorimer has joined #ruby-lang
mytrile has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 268 seconds]
cd has joined #ruby-lang
vmoravec has joined #ruby-lang
cd is now known as Guest50727
kstuart has joined #ruby-lang
solars has joined #ruby-lang
thebastl_ has joined #ruby-lang
jinie is now known as zz_jinie
firstdayonthejob has joined #ruby-lang
v0yager has quit [Remote host closed the connection]
thebastl has quit [Ping timeout: 260 seconds]
v0yager has joined #ruby-lang
hashkey has quit []
akurilin has quit [Ping timeout: 264 seconds]
codejury has quit [Remote host closed the connection]
_jpb_ has quit [Ping timeout: 246 seconds]
_jpb_ has joined #ruby-lang
CaptainJet has quit [Disconnected by services]
CaptainJet_ has joined #ruby-lang
mreq has joined #ruby-lang
solars has quit [Quit: WeeChat 0.3.7]
solars has joined #ruby-lang
jMCg_ is now known as jMCg
tonni has quit [Remote host closed the connection]
brianpWins has joined #ruby-lang
benlovell has joined #ruby-lang
julweber has quit [Remote host closed the connection]
kgrz has joined #ruby-lang
tbuehlmann has joined #ruby-lang
kgrz has quit [Ping timeout: 240 seconds]
mbj has joined #ruby-lang
MartynKeigher has quit [Ping timeout: 245 seconds]
duph has joined #ruby-lang
tonni has joined #ruby-lang
MartynKeigher has joined #ruby-lang
mreq has quit [Ping timeout: 260 seconds]
ruurd has joined #ruby-lang
marr has joined #ruby-lang
v0yager has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby-lang
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby-lang
maxmanders has joined #ruby-lang
firstdayonthejob has quit [Quit: WeeChat 0.4.1]
_jpb_ has quit [Ping timeout: 240 seconds]
_jpb_ has joined #ruby-lang
julweber has joined #ruby-lang
kstuart has quit [Read error: Connection reset by peer]
Weems has quit [Ping timeout: 240 seconds]
mistym has joined #ruby-lang
mreq has joined #ruby-lang
glebm_ has quit [Quit: Computer has gone to sleep.]
barttenbrinke has joined #ruby-lang
barttenbrinke has quit [Remote host closed the connection]
skade has joined #ruby-lang
madb055 has quit [Quit: Konversation terminated!]
bzalasky has quit [Remote host closed the connection]
bzalasky has joined #ruby-lang
relix has joined #ruby-lang
_jpb_ has quit [Ping timeout: 240 seconds]
bzalasky has quit [Ping timeout: 240 seconds]
_jpb_ has joined #ruby-lang
jonahR has quit [Quit: jonahR]
vigintas has joined #ruby-lang
swav has quit [Remote host closed the connection]
glebm has joined #ruby-lang
lun__ has joined #ruby-lang
runeb has joined #ruby-lang
vlad_sta_ has quit [Remote host closed the connection]
kgrz has joined #ruby-lang
Muz_ has left #ruby-lang [#ruby-lang]
Muz has joined #ruby-lang
Muz has quit [Changing host]
Muz has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
lun__ has quit [Remote host closed the connection]
workmad3 has joined #ruby-lang
flip_digits has quit [Remote host closed the connection]
fosky_ has joined #ruby-lang
barttenbrinke has joined #ruby-lang
CaptainJet_ has quit []
<yorickpeterse> morning
julweber has quit [Remote host closed the connection]
<gnufied> morning yorick
workmad3 has quit [Ping timeout: 268 seconds]
barttenbrinke has quit [Ping timeout: 268 seconds]
vlad_starkov has joined #ruby-lang
<gnufied> Users/gnufied/.rbenv/versions/1936/lib/ruby/gems/1.9.1/gems/ruby-lint-0.0.3/lib/ruby-lint/definition/ruby_object.rb:272:in `block in lookup': undefined method `lookup' for nil:NilClass (NoMethodError)
mistym has quit [Remote host closed the connection]
ffio_ has quit [Ping timeout: 246 seconds]
kstuart has joined #ruby-lang
vigintas has quit [Read error: Connection reset by peer]
apeiros has joined #ruby-lang
andrewvos has joined #ruby-lang
fosky__ has joined #ruby-lang
fosky_ has quit [Ping timeout: 268 seconds]
vigintas has joined #ruby-lang
kgrz has quit [Remote host closed the connection]
_jpb_ has quit [Ping timeout: 246 seconds]
_jpb_ has joined #ruby-lang
Pupeno has joined #ruby-lang
Pupeno has quit [Changing host]
Pupeno has joined #ruby-lang
swav has joined #ruby-lang
maxmanders has quit [Ping timeout: 268 seconds]
mistym has joined #ruby-lang
Axsuul has quit [Ping timeout: 276 seconds]
maxmanders has joined #ruby-lang
barttenbrinke has joined #ruby-lang
mislav has joined #ruby-lang
barttenbrinke has quit [Ping timeout: 276 seconds]
ridget has joined #ruby-lang
Guest50727 has quit [Quit: This computer has gone to sleep]
julweber has joined #ruby-lang
<yorickpeterse> 0.0.3 is borken
<injekt> blorkan
Domon has quit [Remote host closed the connection]
<gnufied> cool. will try out develop branch. I was sure someone would have already reported this.
maxmanders has quit [Ping timeout: 268 seconds]
Drakanne has joined #ruby-lang
Drakanne has quit [Client Quit]
<yorickpeterse> I should probably at least push out a pre release though
kgrz has joined #ruby-lang
maxmanders has joined #ruby-lang
nazty has quit [Read error: Connection reset by peer]
Drakanne has joined #ruby-lang
nazty has joined #ruby-lang
<PaulePanter> Does anybody use `vim-ruby-debugger` successfully here?
Drakanne has left #ruby-lang [#ruby-lang]
Drakanne has joined #ruby-lang
Domon has joined #ruby-lang
maxmanders has quit [Ping timeout: 260 seconds]
faces has quit [Ping timeout: 256 seconds]
face has joined #ruby-lang
flip_digits has joined #ruby-lang
Kabaka has quit [Ping timeout: 240 seconds]
flip_digits has quit [Ping timeout: 240 seconds]
fragamus has quit [Quit: Computer has gone to sleep.]
pipework has joined #ruby-lang
Drakanne has left #ruby-lang [#ruby-lang]
Drakanne has joined #ruby-lang
Kabaka has joined #ruby-lang
Drakanne has quit [Quit: Page closed]
<yorickpeterse> Nope
<gnufied> why would anyone use a stupid editor like VIM in first place, when there is Emacs?
<gnufied> :-)
anildigital_work has joined #ruby-lang
anildigital_work has quit [Client Quit]
<yorickpeterse> Some people already have an OS they're happy with
<apeiros> emacs vs. vim vs. whatever editor flamewars always remind me of those one star trek episode
<apeiros> where two folks were punished to fight endlessly and could never die
<gnufied> yorickpeterse: lol
barttenbrinke has joined #ruby-lang
Bahman has quit [Quit: Leaving.]
<yorickpeterse> meh, just use whatever makes you feel happy
<yorickpeterse> if you enjoy pulling levers and pressing clutches then Emacs is probably your thing
<yorickpeterse> though you can also do the latter in Vim
<gnufied> to use debugger btw from emacs, I use something called comint buffers
mytrile has quit [Remote host closed the connection]
<gnufied> you can run your stuff, it will let to interface. though not quite as good as pressing n,p keys
KU0N has joined #ruby-lang
vigintas has quit [Read error: Connection reset by peer]
mdedetrich has quit [Quit: Computer has gone to sleep.]
vigintas has joined #ruby-lang
cd has joined #ruby-lang
djb has joined #ruby-lang
cd is now known as Guest24103
mistym has quit [Remote host closed the connection]
mdedetrich has joined #ruby-lang
barttenbrinke has quit [Remote host closed the connection]
kgrz has quit [Ping timeout: 240 seconds]
flip_digits has joined #ruby-lang
kstuart has quit [Ping timeout: 256 seconds]
kstuart has joined #ruby-lang
flip_digits has quit [Ping timeout: 246 seconds]
vigintas has quit [Remote host closed the connection]
vigintas has joined #ruby-lang
Mon_Ouie has quit [Read error: Operation timed out]
ffio has joined #ruby-lang
ledestin has quit [Quit: ledestin]
ledestin has joined #ruby-lang
ledestin has quit [Client Quit]
beiter has joined #ruby-lang
jstorimer has quit [Remote host closed the connection]
vigintas has quit [Read error: Connection reset by peer]
codeplay has joined #ruby-lang
beiter has left #ruby-lang [#ruby-lang]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby-lang
<charliesome> zzak yo you around?
codeplay has left #ruby-lang [#ruby-lang]
maxmanders has joined #ruby-lang
ruby-lang027 has joined #ruby-lang
vigintas has joined #ruby-lang
Johz has joined #ruby-lang
_jpb_ has quit [Ping timeout: 268 seconds]
barttenbrinke has joined #ruby-lang
_jpb_ has joined #ruby-lang
ruby-lang027 has quit [Quit: Page closed]
cofin has joined #ruby-lang
barttenbrinke has quit [Ping timeout: 256 seconds]
<mdedetrich> is there a bundler command that will put strict dependencies in your Gemfile according to your Gemfile.lock
barttenbrinke has joined #ruby-lang
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
mreq has quit [Ping timeout: 240 seconds]
mytrile has joined #ruby-lang
snafoo has quit []
tbuehlmann has quit [Remote host closed the connection]
relix has joined #ruby-lang
jstorimer has joined #ruby-lang
Domon has quit [Remote host closed the connection]
toretore has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
_jpb_ has quit [Ping timeout: 276 seconds]
_jpb_ has joined #ruby-lang
jstorimer has quit [Read error: Connection reset by peer]
<injekt> mdedetrich: no
maxmanders has quit [Quit: Computer has gone to sleep.]
<injekt> (I was looking for something similar recently)
maxmanders has joined #ruby-lang
mislav has quit [Remote host closed the connection]
bruceb3 has joined #ruby-lang
cofin has quit [Quit: cofin]
julweber has quit [Remote host closed the connection]
maxmanders has quit [Ping timeout: 260 seconds]
benlovell has quit [Ping timeout: 256 seconds]
maxmanders has joined #ruby-lang
kgrz has joined #ruby-lang
steez has quit [Ping timeout: 276 seconds]
maxmanders has quit [Ping timeout: 268 seconds]
MaddinXx_ has joined #ruby-lang
bruceb3 has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
nertzy2 has joined #ruby-lang
Aiea has joined #ruby-lang
Krimigis has quit [Quit: bye]
ridget has quit [Quit: Textual IRC Client: www.textualapp.com]
jstorimer has joined #ruby-lang
<yorickpeterse> http://www.jarvana.com/jarvana/view/org/aspectj/aspectjtools/1.6.12/aspectjtools-1.6.12-javadoc.jar!/org/aspectj/weaver/patterns/HasThisTypePatternTriedToSneakInSomeGenericOrParameterizedTypePatternMatchingStuffAnywhereVisitor.html
<yorickpeterse> lol
nertzy has quit [Ping timeout: 268 seconds]
<Aiea> Hi there, I have a string containing data like this : "windows\test\File-0507Jar", I would like to transform this "Jar" into .jar. I tried to so a gsub(/\d+JAR/,".jar") but it doesn't seem to work
<Aiea> any ideas ?
<yorickpeterse> use gsub(/(\d+)JAR/, '\\1.jar')
julweber has joined #ruby-lang
<yorickpeterse> You're not re-inserting the matched numbers
jstorimer has quit [Read error: Connection reset by peer]
<yorickpeterse> >> "windows\test\File-0507Jar".gsub(/(\d+)JAR/, '\\1.jar')
<eval-in> yorickpeterse => "windows\testFile-0507Jar" (https://eval.in/36878)
<yorickpeterse> errr
<gnufied> lol
<yorickpeterse> >> "windows\test\File-0507Jar".gsub(/(\d+)Jar/, '\\1.jar')
<eval-in> yorickpeterse => "windows\testFile-0507.jar" (https://eval.in/36879)
<yorickpeterse> and yeah, make it case insensitive if you must
<Aiea> Thanks :)
<gnufied> perhaps worth adding a $ at the end
<gnufied> but not big deal
<yorickpeterse> yeah you can definately tighten up that regex
Kero_ is now known as Kero
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
sepp2k has joined #ruby-lang
scholar01 has joined #ruby-lang
scholar01 has quit [Changing host]
scholar01 has joined #ruby-lang
tkuchiki_ has joined #ruby-lang
tkuchiki has quit [Read error: Connection reset by peer]
runeb has quit [Remote host closed the connection]
tkuchiki_ has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
kgrz has quit [Remote host closed the connection]
mytrile has quit [Remote host closed the connection]
runeb has joined #ruby-lang
codejury has joined #ruby-lang
maxmanders has joined #ruby-lang
<Aiea> Another question if I may, my data now contain something like "windows\test\File-0507.jar High Threat: Eicar File". I would like to retrieve the path of the file only. I thought about using the split() methods on the "High" substring, but I think it's kinda ugly... Is there a more elegant way of doing this ?
dhruvasagar has quit [Quit: leaving]
dhruvasagar has joined #ruby-lang
<Olipro> Aiea: what if the file has spaces in its name?
<Aiea> Not possible
spuk has joined #ruby-lang
<Olipro> well, there's a few ways to get it then, you could use split, or a regex
benlovell has joined #ruby-lang
<gnufied> Aiea: what is in the path in that string?
<gnufied> is "windows\test\File-0507.jar High Threat: Eicar File" full filename and "windows\test\" path?
<Olipro> e.g. thestring[/^([A-z0-9\/-])/,1]
<Olipro> obviously, expand the match group with whatever other chars are legal
<Olipro> and err
<Olipro> thestring[/^([A-z0-9\/-]+)/,1]
<Aiea> gnufied: the full name, till the .jar
<Aiea> gnufied: it can be .jar, .class or anything else
<Olipro> actually, it could be much simpler
<gnufied> there is File.basename()
<Olipro> thestring[/^([^ ]+)/,1]
<Aiea> gnufied: Actually, I just need to remove everything after the extension
<gnufied> which handles path separation automatically on windows and *nix
<Olipro> [4] pry(main)> str[/^([^ ]+)/,1]
<Olipro> => "windows\testFile-0507.jar"
<gnufied> pew pew
<Olipro> ah curses, it dropped the /
vlad_starkov has quit [Remote host closed the connection]
<Olipro> oh, no it didn't, it wasn't in the original string I entered, heh
<Olipro> so yeah, [/^([^ ]+)/,1] should work
Cakey has joined #ruby-lang
<Aiea> Let's try with a true string then (just analyzing metasploit files ) :
<Aiea> vmware-host\Shared Folders\metasploit-framework\data\exploits\CVE-2012-0507.jar[>msf\x\Exploit.class High Threat: Java:Agent-AXD [Expl]
<Aiea> will it work :D
<Olipro> I don't see whitespace between .jar and [>msf
<Aiea> Now there is
jstorimer has joined #ruby-lang
<Aiea> and your thing work :)
<Aiea> Thanks
<Aiea> Well I'm not a Ruby developper at all, so I guess my code is nightmarish xD
<Aiea> Here is what I did : puts line.gsub(/vmware-\w+\\\w+\s+\w+\\/,'').gsub(/(\d+)Jar/, '\\1.jar ')[/^([^ ]+)/,1]
<Aiea> It does do what I want
Aiea has quit [Ping timeout: 250 seconds]
duph has quit [Quit: Leaving.]
barttenbrinke has quit [Remote host closed the connection]
_jpb_ has quit [Ping timeout: 240 seconds]
fosky__ has quit [Ping timeout: 246 seconds]
_jpb_ has joined #ruby-lang
glebm has quit [Quit: Computer has gone to sleep.]
dhruvasagar has quit [Ping timeout: 260 seconds]
barttenbrinke has joined #ruby-lang
<injekt> mother of god
jstorimer has quit [Read error: Connection reset by peer]
<chris2> oO
<gnufied> thats exactly what doctor ordered.
<gnufied> oh hai chris2
kgrz has joined #ruby-lang
tbuehlmann has joined #ruby-lang
lguardiola has joined #ruby-lang
<chris2> hey gnufied
kgrz has quit [Ping timeout: 246 seconds]
maxmanders has quit [Ping timeout: 268 seconds]
sstrickl has quit [Quit: sstrickl]
kgrz has joined #ruby-lang
pipework has quit [Remote host closed the connection]
sstrickl has joined #ruby-lang
maxmanders has joined #ruby-lang
glebm has joined #ruby-lang
ezkl has quit [Ping timeout: 246 seconds]
scampbell has joined #ruby-lang
ldnunes has joined #ruby-lang
mytrile has joined #ruby-lang
jstorimer has joined #ruby-lang
breakingthings has joined #ruby-lang
jstorimer has quit [Remote host closed the connection]
flip_digits has joined #ruby-lang
pipework has joined #ruby-lang
postmodern has quit [Quit: Leaving]
jstorimer has joined #ruby-lang
tomzx_mac has joined #ruby-lang
Uranio has joined #ruby-lang
w00x has joined #ruby-lang
kgrz has quit [Remote host closed the connection]
pipework has quit [Remote host closed the connection]
wmoxam has joined #ruby-lang
krames has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vlad_starkov has joined #ruby-lang
Guedes1 has quit [Quit: Saindo]
Guedes has joined #ruby-lang
Guedes has joined #ruby-lang
vigintas_ has joined #ruby-lang
rickruby has quit [Remote host closed the connection]
vigintas has quit [Ping timeout: 240 seconds]
vlad_starkov has quit [Ping timeout: 268 seconds]
<GarethAdams> I'm passing a block to a method which is `instance_eval`ing it. Is anything from my outer scope available, or are *all* ivar/method/* lookups done on the target object, out of my control?
adambeynon has joined #ruby-lang
<gnufied> GarethAdams: no, nothing is available
<gnufied> look into instance_exec
<gnufied> if you want to pass something to a block that is executed like that
jstorimer has quit [Remote host closed the connection]
<GarethAdams> I didn't write the method that is doing the instance_eval, I just wanted to loop inside the callback based on some outside state
<GarethAdams> but I'll read up on instance_exec anyway
<gnufied> what you mean by outer scope though?
bgant has joined #ruby-lang
<gnufied> the place where you are calling the method (which instance_evals the block) or something in the method itself?
<GarethAdams> the place I'm calling it from
<gnufied> if you mean place from where you are calling the method, local variables should be captured
<gnufied> and should be available in your block
<GarethAdams> ah great, that works
<GarethAdams> a little ugly to need to write `items = items` so that my method call is saved in a local variable, but I can live with that
jstorimer has joined #ruby-lang
andrewvos has quit [Ping timeout: 256 seconds]
ffio has quit [Read error: Connection reset by peer]
ffio_ has joined #ruby-lang
maxmanders has quit [Quit: Computer has gone to sleep.]
maxmanders has joined #ruby-lang
davidfrey has joined #ruby-lang
<cout> hmm, my rspec process is hung reading from a unix socket
sstrickl has quit [Quit: sstrickl]
<gnufied> if it were hung on a tcp socket, I would be worried about NSA backdoor in rspec
swav has quit [Remote host closed the connection]
<cout> it could be a unix socket to a process that has a tcp socket...
<cout> but in this case I think it might be mysql
<darix> cout: lsof -n -p pid
<darix> doesnt tell you what socket?
<cout> it hangs on a different line every time I run it, but when I ctrl-c it, it's always on a line that's saving to the database
andrewvos has joined #ruby-lang
maxmanders has quit [Ping timeout: 260 seconds]
<cout> darix: ruby 7020 cout 7u unix 0x0000000000000000 0t0 23642412 socket
<darix> hm
<cout> doesn't tell me much :(
<gnufied> mysql2 ?
<gnufied> worth dropping to gdb perhaps
<cout> I suppose I could attach gdb to the process
<gnufied> if it is consistently reproducible
<cout> yeah, mysql2
_jpb_ has quit [Remote host closed the connection]
<cout> it seems inconsistent; this last run it actually went all the way through
_jpb_ has joined #ruby-lang
maxmanders has joined #ruby-lang
gja has quit [Quit: This computer has gone to sleep]
<cout> actually it looks like it might be going all the way through every time now
<cout> except two tests are consistently failing that I've never seen fail before
<cout> wait no it just hung again
jstorimer has quit [Remote host closed the connection]
scholar01 has quit [Quit: Leaving.]
tomzx_mac has quit [Read error: Operation timed out]
<cout> how do I get the current line number in gdb on 1.9?
<retro|cz> cout, list *$pc ?
<cout> ruby line number, not C
maxmanders has quit [Ping timeout: 268 seconds]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
mytrile has quit [Remote host closed the connection]
jstorimer has joined #ruby-lang
cofin has joined #ruby-lang
<maloik> For a gem that exposes some commandline tools for an API wrapper that requires a token, what's a good way to save said token? I thought I could write a method to either get it out of the ENV hash, and if it's not there, fallback to a file and then write it into the ENV vars... but it seems writing isn't an option in ruby, unless with some dirty hacks
<gnufied> writing isn't an option?
<maloik> well, each time you use one of the commands specified under /bin it'll spawn a new process I suppose, so it won't remember those variables
<gnufied> environment variables are inherited between processes?
<gnufied> s/?//
<maloik> I just tried, doesn't look like it ?
<maloik> open irb, ENV['FOO'] = 'bar', exit irb, open new one, returns nil
<cout> maloik: the modified environment is only passed to _child_ processes of the current process
<maloik> yea I thought something like that
kstuart has quit [Ping timeout: 276 seconds]
<maloik> so basically, how can I let the person using that gem 'install' the api token to make it available to that gem? Writing a textfile seems like a bad idea ?
<whitequark> maloik: ask a person to create a yourgem.yml config file
<whitequark> so they can put the token there
<toretore> i've seen some gems write files in ~
<whitequark> optionally, create it for them
<toretore> like the heroku app iirc
<toretore> but if it were me, i'd require the token every time
cofin has quit [Quit: cofin]
<toretore> export MYGEM_TOKEN=u472364f7uf236472
<toretore> mygem_dostuff
krames has joined #ruby-lang
<whitequark> yes, combined with the env var
<whitequark> env vars are useful for eg CI
<whitequark> where you don't want to store tokens in the repo
<maloik> hmm yea the heroku gem could be a good example, lets have a look
<cout> aha: p ((RString *)(rb_vm_get_ruby_level_next_cfp(ruby_current_vm->main_thread, ruby_current_vm->main_thread->cfp)->iseq->filename))->as.heap.pt
cofin has joined #ruby-lang
<cout> stuck in abstract_mysql_adapter:98
icesprite has joined #ruby-lang
glebm has quit [Quit: Computer has gone to sleep.]
mrfoo has joined #ruby-lang
cofin has quit [Client Quit]
sstrickl has joined #ruby-lang
sstrickl has quit [Changing host]
sstrickl has joined #ruby-lang
<icesprite> qq progrmrs
<maloik> Heroku uses a .netrc file in homedir, checks for mode and all - great example
<yorickpeterse> I present to you the following: https://coderwall.com/p/lrh0uq
<yorickpeterse> "One thing to notice is that we do not need to set self.class.layout back to our default layout. This is because in MVC, a controller is stateless for each request, so Rails creates an instance of the controller for every request."
<whitequark> I think .netrc is not heroku-specific
<yorickpeterse> GOOD THING YOU'RE SETTING IT ON CLASS LEVEL
<whitequark> what the fuck is that
<yorickpeterse> something I came across when googling for something rails related
pipework has joined #ruby-lang
<whitequark> both the snippet (there's a proper way) and the way rails solves this
<whitequark> oh. >frontend developer
erikgj has joined #ruby-lang
<whitequark> that explains
cofin has joined #ruby-lang
* yorickpeterse is trying to find a way to get before_filter to work with render() calls
<yorickpeterse> because fuck the noise of having to call them all manually
<whitequark> what exactly do you want?
vlad_starkov has joined #ruby-lang
<yorickpeterse> Upon calling render(:action => :derp) I want Rails to run the before_filters for the :derp action
<yorickpeterse> Like it normally does when processing an actual HTTP request
erikgj has quit [Client Quit]
<whitequark> Given a shitty Rails application / When I call render :action => :derp / Should fuck up all the MVC
<whitequark> and no, that is not what you want
<whitequark> that is how you are trying to solve your problem
<gnufied> .netrc is used by curl and many other things. it is def. not heroku specific
<yorickpeterse> whitequark: I'm pretty damn sure that is what I want
<whitequark> and not how you should be solve it. So, once again: what do you want?
<whitequark> *be solving
<maloik> whitequark: I don't think it is, indeed... don't find a whole lot on it, but it's pretty selfexplanatory
<yorickpeterse> whitequark: ...
<yorickpeterse> I think I made it pretty clear what I want
<whitequark> yorickpeterse: your business case is "running before_filters when you call render"?
<whitequark> pretty sure it isn't
<gnufied> yorickpeterse: how about just render :layout => false
<gnufied> or in fact render itself takes layout option
<gnufied> beats me, why we need that
<yorickpeterse> whitequark: Well then explain to me what I'm doing considering you seem to be knowing it so well
<whitequark> no, it's up to you to explain what you want to do with your code
<yorickpeterse> So I'm going to say this only once: for once stop being a fucking smartass
<yorickpeterse> You gain nothing by it
<yorickpeterse> What I asked is *exactly* what I'm trying to achieve, there's no beating around the bush
<yorickpeterse> I *am* curious to see if it's even possible, if not I'll resort to manually calling what I need
<gnufied> a note, if in future you run your app with puma or something you are in for fun
<yorickpeterse> But it appears you can somehow read my mind over TCP/IP
<gnufied> and in threaded environment
<yorickpeterse> and apparently know it better than I do
jstorimer has quit [Remote host closed the connection]
<yorickpeterse> gnufied: Puma is pretty cool
<whitequark> yorickpeterse: whatever. if you want to screw yourself, you will
<yorickpeterse> whitequark: also, the "Smart question" is fucking beating around the bush
<gnufied> and setting layout at class level will break the underlying assumption about state of controller
<yorickpeterse> gnufied: exactly
nathanstitt has joined #ruby-lang
<yorickpeterse> it doesn't work in threaded environments, messes up the next request, etc
<whitequark> yorickpeterse: if this is exactly what you want, then the answer is: no, there's no way. :action in render is just a shortcut for a particular template path.
<yorickpeterse> See, that wasn't so hard now was it?
* whitequark sighs
<yorickpeterse> Thank you, that's all I was looking for
<whitequark> it's described in the Rails docs, in the section about render
<whitequark> I assumed you looked there.
<yorickpeterse> I already found the answer before on SO
<yorickpeterse> But the answers were meh so I didn't fully trust them
<whitequark> ...
<yorickpeterse> Hey, I tried to tell you that what I was asking was actually what I was looking for
<yorickpeterse> And not some half-assed beating around the bush question (e.g. "How do I do the Rails?")
kgrz has joined #ruby-lang
jstorimer has joined #ruby-lang
<icesprite> oh
<icesprite> ahit
<icesprite> :D
snarfmason has joined #ruby-lang
<cout> is it a bad idea to fork inside a controller action?
<gnufied> :-)
<yorickpeterse> cout: yes
<yorickpeterse> Because you'll fork the entire Rails app
<cout> :(
glebm has joined #ruby-lang
<gnufied> but if you have to do something with your models etc, you will start another process anyways with entire rails env loaded
<gnufied> fork, if you know what you are doing.
kgrz has quit [Ping timeout: 268 seconds]
<gnufied> people use system() from actions all the time
<cout> apparently I don't know what I'm doing, because the fork is what's causing my tests to hang
<gnufied> wow
<gnufied> what does the forked process do?
<cout> sends some messages over SOAP
<cout> writes to the database (using it's own connection, not the one from the parent process)
<cout> I think maybe it should be closing all the parent's fds and it's not doing that
<gnufied> there is an option for that
joshuawscott has joined #ruby-lang
<gnufied> when you fork, you can specify close all parent's fds
<gnufied> don't remember the details, will have to look up
joshuawscott has quit [Client Quit]
<gnufied> how do you ensure, that you get new connection not inherited one?
<cout> are you thinking of FD_CLOEXEC ?
joshuawscott has joined #ruby-lang
dhruvasagar has joined #ruby-lang
GeissT has quit [Quit: MillBroChat AdIRC User]
<gnufied> sorry yes, but that works only on fork and exec
<cout> right
<cout> and I'm not doing an exec
thebastl_ has quit [Read error: Operation timed out]
<gnufied> wondering, if you are seeing a manifestation of this problem.
<cout> I think it's differnt
cofin has quit [Quit: cofin]
mdedetrich has quit [Quit: Computer has gone to sleep.]
cofin has joined #ruby-lang
lun__ has joined #ruby-lang
<maloik> Does anyone know of a good article/tutorial about optionparser? The docs make no sense to me
<gnufied> people generally use a higher level library, like slop, thor, gli
Johz has quit [Quit: Leaving]
vlad_starkov has quit [Read error: Connection reset by peer]
jstorimer has quit [Remote host closed the connection]
_jpb_ has quit [Ping timeout: 268 seconds]
vlad_starkov has joined #ruby-lang
eugenejen has joined #ruby-lang
_jpb_ has joined #ruby-lang
<maloik> gnufied: thanks, good to know... will read up on those
mdedetrich has joined #ruby-lang
mdedetrich has quit [Max SendQ exceeded]
<gnufied> if you have doubts you can always harass injekt
Johz has joined #ruby-lang
mdedetrich has joined #ruby-lang
julweber has quit [Read error: Connection reset by peer]
<maloik> good point :-)
julweber has joined #ruby-lang
<cout> maloik: look in lib/optparse.rb
<maloik> cout: those are the docs I was mentioning
<maloik> they're a mess if you ask me
<injekt> :)
<injekt> maloik: Slop is basically how I want optionparser to look, it's far more simple and it also gathers options which saves you a lot of manual labour
<yorickpeterse> cout: you'll want to use something like a background worker/queue for that
<maloik> yep just quickly read through it
<maloik> gonna have to experiment with it, the cli i'm building will be one with commands and subcommands :/
<maloik> like 'mycli account create', 'mycli xen host.name.com restart', ...
<injekt> sure, slop can do all that stuff
hogeo has quit [Remote host closed the connection]
<maloik> oh I just saw the subcommands part
<maloik> good stuff
<maloik> beer on me in october
<maloik> :-)
<injekt> :)
<maloik> this is some seriously brilliant stuff actually, my mess of handling all this is now solved
<injekt> good to hear, let me know if there's anything I can change/add to help you out
cofin has quit [Quit: cofin]
<maloik> suppose you can nest those command blocks ?
hashkey has joined #ruby-lang
hashkey has quit [Client Quit]
hashkey has joined #ruby-lang
hashkey has quit [Remote host closed the connection]
Drekonus has joined #ruby-lang
Drekonus has quit [Max SendQ exceeded]
JohnBat26 has joined #ruby-lang
<gnufied> injekt: recently a gem that uses slop. my only feedback is, it was not clear how to speficy flags/options for subcommands immediately
<gnufied> released*
<gnufied> perhaps I will jot down them in a ticket.
<injekt> gnufied: that would be helpful, thanks
anonymuse has joined #ruby-lang
hashkey has joined #ruby-lang
bougyman has quit [Ping timeout: 268 seconds]
cofin has joined #ruby-lang
krames has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
akurilin has joined #ruby-lang
icesprite has left #ruby-lang [#ruby-lang]
runeb has quit [Remote host closed the connection]
krames has joined #ruby-lang
_jpb_ has quit [Ping timeout: 246 seconds]
<erikh> fart
_jpb_ has joined #ruby-lang
jstorimer has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
jstorimer has quit [Read error: Connection reset by peer]
thebastl has joined #ruby-lang
havenwood has joined #ruby-lang
thebastl has quit [Remote host closed the connection]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<zzak> maloik: which part of optparse docs is confusing to you?
thebastl has joined #ruby-lang
mreq has joined #ruby-lang
erikgj has joined #ruby-lang
<zzak> "the docs are bad, use something else" is such an awful excuse
<zzak> lets make them better :)
wallerdev has joined #ruby-lang
cofin has quit [Quit: cofin]
arooni-mobile has joined #ruby-lang
arooni-mobile__ has joined #ruby-lang
_jpb_ has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 260 seconds]
_jpb_ has joined #ruby-lang
jstorimer has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby-lang
cofin has joined #ruby-lang
erikgj has quit [Quit: erikgj]
<yorickpeterse> http://xkcd.com/927/ very relevant
erikgj has joined #ruby-lang
thebastl has quit [Remote host closed the connection]
s0ber has quit [Read error: Connection reset by peer]
s0ber has joined #ruby-lang
mreq has quit [Ping timeout: 276 seconds]
hashkey has quit [Quit: Leaving]
hashkey has joined #ruby-lang
hashkey has quit [Client Quit]
jstorimer has quit [Remote host closed the connection]
mdedetrich has quit [Quit: Computer has gone to sleep.]
benlovell has quit [Ping timeout: 268 seconds]
<gnufied> i know what that will be,without clicking that link.
<gnufied> wondering, if that is a good thing
Cakey has quit [Ping timeout: 240 seconds]
bzalasky has joined #ruby-lang
hashkey has joined #ruby-lang
Johz has quit [Quit: Leaving]
erikgj has quit [Quit: erikgj]
shireesh has quit [Quit: Leaving]
lun__ has quit [Ping timeout: 268 seconds]
dhruvasagar has joined #ruby-lang
MaddinXx_ has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
hashkey has quit [Client Quit]
bzalasky has quit [Remote host closed the connection]
andrewvos has quit [Ping timeout: 240 seconds]
_jpb_ has quit [Ping timeout: 264 seconds]
_jpb_ has joined #ruby-lang
barttenbrinke has quit [Remote host closed the connection]
andrewvos has joined #ruby-lang
asellus has joined #ruby-lang
havenwood has joined #ruby-lang
thebastl has joined #ruby-lang
skade has joined #ruby-lang
hashkey has joined #ruby-lang
Weems has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
arooni-mobile__ has quit [Read error: Operation timed out]
jstorimer has joined #ruby-lang
jstorimer has quit [Remote host closed the connection]
_jpb_ has quit [Ping timeout: 246 seconds]
arooni-mobile has quit [Ping timeout: 246 seconds]
_jpb_ has joined #ruby-lang
<yorickpeterse> bah, a bundle install on this project takes forever
vmoravec has quit [Quit: Leaving]
lun__ has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
julweber has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
<andrewvos> - every Rails project ever
havenwood has quit [Remote host closed the connection]
<yorickpeterse> fucking 160 Gems
<yorickpeterse> now lets see if this runs on 2.0
<yorickpeterse> lol nope
<yorickpeterse> "cannot load such file iconv" uggghhh, I knew it
havenwood has joined #ruby-lang
<yorickpeterse> fuckit, I'll do that tomorrow
lun__ has quit [Remote host closed the connection]
Cakey has joined #ruby-lang
[[thufir]] has joined #ruby-lang
[[thufir]] has quit [Read error: Connection reset by peer]
randym_ has quit [Read error: Operation timed out]
Guest85414__ has quit [Read error: Operation timed out]
jstorimer has joined #ruby-lang
jstorimer has quit [Remote host closed the connection]
pothibo has joined #ruby-lang
UziMonkey___ has quit [Ping timeout: 264 seconds]
norplr_ has quit [Ping timeout: 245 seconds]
jacknagel has quit [Ping timeout: 245 seconds]
franckverrot has quit [Ping timeout: 264 seconds]
tylergillies has quit [Ping timeout: 264 seconds]
bcardarella has quit [Ping timeout: 245 seconds]
Spaceghost|cloud has quit [Ping timeout: 245 seconds]
beawesomeinstead has quit [Ping timeout: 264 seconds]
herpless___ has quit [Ping timeout: 264 seconds]
vivekrai_ has quit [Ping timeout: 264 seconds]
wycats_ has quit [Ping timeout: 264 seconds]
akahn has quit [Ping timeout: 264 seconds]
cofin has quit [Quit: cofin]
thebastl has quit [Remote host closed the connection]
bzalasky has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
vivekrai_ has joined #ruby-lang
Cakey has quit [Ping timeout: 276 seconds]
hashkey has quit [Ping timeout: 276 seconds]
beawesomeinstead has joined #ruby-lang
zmike123 has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
__butch__ has joined #ruby-lang
cofin has joined #ruby-lang
ohcomely has joined #ruby-lang
Weems has quit [Ping timeout: 256 seconds]
<apeiros> yorickpeterse: 161 gems then, iconv exists as a gem
<apeiros> (easy solution to 2.0 projects which depend on iconv)
lun__ has joined #ruby-lang
[[thufir]] has joined #ruby-lang
__butch__ has quit [Quit: Leaving.]
cofin has quit [Quit: cofin]
jstorimer has joined #ruby-lang
bgant has quit [Quit: Leaving.]
gregmoreno has joined #ruby-lang
asellus has quit [Quit: WeeChat 0.4.0]
jstorimer has quit [Remote host closed the connection]
tylersmi_ has quit [Remote host closed the connection]
zavier has joined #ruby-lang
__butch__ has joined #ruby-lang
ericwood_ has left #ruby-lang [#ruby-lang]
ericwood has joined #ruby-lang
thebastl has joined #ruby-lang
retro|cz has quit [Ping timeout: 268 seconds]
<ruurd> yorickpeterse forgot to install a library or something? what OS?
<ruurd> Besides. iconv is evil
MaddinXx_ has joined #ruby-lang
[[thufir]] has quit [Ping timeout: 256 seconds]
hogeo has joined #ruby-lang
jstorimer has joined #ruby-lang
gja has joined #ruby-lang
gja has quit [Changing host]
gja has joined #ruby-lang
jstorimer has quit [Remote host closed the connection]
ohcomely has quit [Quit: Linkinus - http://linkinus.com]
ohcomely has joined #ruby-lang
bgant has joined #ruby-lang
ohcomely has quit [Client Quit]
ohcomely has joined #ruby-lang
Pupeno has quit [Ping timeout: 240 seconds]
retro|cz has joined #ruby-lang
hogeo has quit [Remote host closed the connection]
krames has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gregmoreno has quit [Remote host closed the connection]
gregmoreno has joined #ruby-lang
vlad_starkov has joined #ruby-lang
[[thufir]] has joined #ruby-lang
headius has joined #ruby-lang
norplr_ has joined #ruby-lang
melter has quit [Read error: Connection reset by peer]
benlovell has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
[[thufir]] has quit [Ping timeout: 256 seconds]
_jpb_ has quit [Ping timeout: 256 seconds]
_jpb_ has joined #ruby-lang
DarkBushido has joined #ruby-lang
mistym has joined #ruby-lang
towski has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
saarinen has joined #ruby-lang
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
tallship has joined #ruby-lang
tylersmith has joined #ruby-lang
andrewvos has quit [Ping timeout: 276 seconds]
[[thufir]] has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
realDAB has joined #ruby-lang
brianpWins has joined #ruby-lang
skade has joined #ruby-lang
wallerdev has joined #ruby-lang
[[thufir]] has quit [Ping timeout: 264 seconds]
saarinen has quit [Quit: saarinen]
jsullivandigs has joined #ruby-lang
julweber has joined #ruby-lang
Vortico has joined #ruby-lang
dingus_khan has joined #ruby-lang
dingus_khan has quit [Remote host closed the connection]
jsullivandigs has quit [Remote host closed the connection]
jsullivandigs has joined #ruby-lang
saarinen has joined #ruby-lang
jsullivandigs has quit [Ping timeout: 257 seconds]
kstuart has joined #ruby-lang
benlovell has quit [Ping timeout: 246 seconds]
Cremno has quit [Quit: Cremno]
[[thufir]] has joined #ruby-lang
<yorickpeterse> eh no, icon is dropped from 2.0
<yorickpeterse> hm, that iconv gem might be a nice temp solution
<yorickpeterse> so I can at least try and boot the app
fenicks has joined #ruby-lang
justinram has joined #ruby-lang
Cremno has joined #ruby-lang
hashkey has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
mrfoo has quit [Ping timeout: 250 seconds]
ffio_ has quit [Ping timeout: 240 seconds]
_ffio_ has joined #ruby-lang
diegoviola has joined #ruby-lang
brianpWins has joined #ruby-lang
jstorimer has joined #ruby-lang
Pupeno has joined #ruby-lang
Pupeno has joined #ruby-lang
Pupeno has quit [Changing host]
vivekrai_ is now known as vivekrai
jstorimer has quit [Read error: Connection reset by peer]
w00x has quit [Ping timeout: 276 seconds]
ruurd has quit [Ping timeout: 246 seconds]
justinram has quit [Remote host closed the connection]
[[thufir]] has quit [Ping timeout: 260 seconds]
jonahR has joined #ruby-lang
ruurd has joined #ruby-lang
mistym has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
Pupeno has quit [Ping timeout: 256 seconds]
x0f has quit [Read error: Operation timed out]
glebm has quit [Ping timeout: 240 seconds]
Nisstyre-laptop has joined #ruby-lang
glebm has joined #ruby-lang
Nisstyre-laptop is now known as Nisstyre
ruurd has quit [Quit: Leaving...]
architbaweja__ has quit [Remote host closed the connection]
x0f has joined #ruby-lang
glebm has quit [Ping timeout: 260 seconds]
maxmanders has joined #ruby-lang
verto has joined #ruby-lang
ohcomely has quit [Quit: Leaving...]
skade has quit [Ping timeout: 264 seconds]
glebm has joined #ruby-lang
bcardarella has joined #ruby-lang
herpless___ has joined #ruby-lang
UziMonkey___ has joined #ruby-lang
jacknagel has joined #ruby-lang
akahn has joined #ruby-lang
[[thufir]] has joined #ruby-lang
tylergillies has joined #ruby-lang
franckverrot has joined #ruby-lang
realDAB has quit [Quit: realDAB]
randym_ has joined #ruby-lang
Spaceghost|cloud has joined #ruby-lang
wycats_ has joined #ruby-lang
Guest85414__ has joined #ruby-lang
thebastl has quit [Remote host closed the connection]
Cakey has joined #ruby-lang
zmike123 has quit [Quit: ~]
zmike123 has joined #ruby-lang
ruurd has joined #ruby-lang
maxmanders has quit [Quit: Computer has gone to sleep.]
levicole_ has left #ruby-lang [#ruby-lang]
levicole has joined #ruby-lang
Cakey has quit [Ping timeout: 256 seconds]
[[thufir]] has quit [Ping timeout: 256 seconds]
lun__ has quit [Ping timeout: 246 seconds]
maxmanders has joined #ruby-lang
tenderlove has joined #ruby-lang
lun__ has joined #ruby-lang
skade has joined #ruby-lang
zmike123 has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
realDAB has joined #ruby-lang
hashkey has quit [Read error: Connection reset by peer]
hashkey has joined #ruby-lang
w00x has joined #ruby-lang
TheNotary has joined #ruby-lang
hashkey is now known as Guest82600
gregmoreno has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 256 seconds]
TheNotary has quit [Client Quit]
maxmanders has quit [Quit: Computer has gone to sleep.]
gregmoreno has joined #ruby-lang
maxmanders has joined #ruby-lang
justinram has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
cofin has joined #ruby-lang
Guest82600 is now known as hashkey
fedesilva has joined #ruby-lang
vlad_starkov has joined #ruby-lang
[[thufir]] has joined #ruby-lang
dingus_khan has joined #ruby-lang
kgrz has joined #ruby-lang
[[thufir]] has quit [Ping timeout: 246 seconds]
dingus_khan has quit [Ping timeout: 276 seconds]
vlad_starkov has quit [Ping timeout: 264 seconds]
symm- has joined #ruby-lang
flip_digits has quit [Remote host closed the connection]
thepumpkin has joined #ruby-lang
flip_digits has joined #ruby-lang
Nisstyre has quit [Quit: Leaving]
krames has joined #ruby-lang
glebm has quit [Quit: Computer has gone to sleep.]
[[thufir]] has joined #ruby-lang
skmp has joined #ruby-lang
Weems has joined #ruby-lang
workmad3 has joined #ruby-lang
skade has quit [Ping timeout: 264 seconds]
Gaelan has quit [Ping timeout: 268 seconds]
[[thufir]] has quit [Ping timeout: 264 seconds]
hagabaka has quit [Read error: Connection reset by peer]
kstuart has quit [Ping timeout: 256 seconds]
tenderlove has quit [Remote host closed the connection]
hagabaka has joined #ruby-lang
hagabaka has quit [Remote host closed the connection]
Gaelan has joined #ruby-lang
symm- has quit [Ping timeout: 256 seconds]
skade has joined #ruby-lang
sstrickl has quit [Quit: sstrickl]
realDAB has quit [Quit: realDAB]
saarinen has quit [Quit: saarinen]
hashkey has quit [Quit: Leaving]
Gaelan has quit [Ping timeout: 268 seconds]
[[thufir]] has joined #ruby-lang
jonahR has quit [Quit: jonahR]
hagabaka has joined #ruby-lang
retro|cz has quit [Ping timeout: 246 seconds]
Gaelan has joined #ruby-lang
hashkey has joined #ruby-lang
davidfrey has quit [Ping timeout: 276 seconds]
davidfrey has joined #ruby-lang
v0yager has joined #ruby-lang
vigintas_ has quit [Read error: Connection reset by peer]
bgant has quit [Quit: Leaving.]
havenwood has joined #ruby-lang
[[thufir]] has quit [Ping timeout: 246 seconds]
brianpWins has quit [Quit: brianpWins]
hashkey has quit [Quit: Leaving]
cofin has quit [Quit: cofin]
sepp2k1 has joined #ruby-lang
_jpb_ has quit [Ping timeout: 256 seconds]
_jpb_ has joined #ruby-lang
sepp2k has quit [Ping timeout: 240 seconds]
brianpWins has joined #ruby-lang
cofin has joined #ruby-lang
flip_digits has quit [Remote host closed the connection]
hashkey has joined #ruby-lang
jasiek has joined #ruby-lang
_jpb_ has quit [Ping timeout: 240 seconds]
_jpb_ has joined #ruby-lang
[[thufir]] has joined #ruby-lang
Vortico has quit [Quit: leaving]
pothibo has quit [Quit: pothibo]
jonahR has joined #ruby-lang
jstorimer has joined #ruby-lang
fooqri has joined #ruby-lang
[[thufir]] has quit [Ping timeout: 268 seconds]
flip_digits has joined #ruby-lang
amerine has quit [Ping timeout: 264 seconds]
hhatch has quit [Ping timeout: 260 seconds]
skade has quit [Ping timeout: 256 seconds]
_jpb_ has quit [Ping timeout: 256 seconds]
_jpb_ has joined #ruby-lang
jstorimer has quit [Remote host closed the connection]
mistym has joined #ruby-lang
thmzlt has joined #ruby-lang
gja has quit [Quit: This computer has gone to sleep]
amerine has joined #ruby-lang
gja has joined #ruby-lang
gja has quit [Changing host]
gja has joined #ruby-lang
jstorimer has joined #ruby-lang
CaptainJet has joined #ruby-lang
maxmanders has quit [Quit: Computer has gone to sleep.]
thmzlt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
[[thufir]] has joined #ruby-lang
ohcomely has joined #ruby-lang
thmzlt has joined #ruby-lang
gja has quit [Quit: This computer has gone to sleep]
kgrz has quit [Remote host closed the connection]
gregmoreno has quit [Ping timeout: 246 seconds]
Uranio has quit [Quit: while you reading this, a kitty dies]
maxmanders has joined #ruby-lang
forrest has joined #ruby-lang
skade has joined #ruby-lang
[[thufir]] has quit [Ping timeout: 264 seconds]
Guest24103 has quit [Quit: This computer has gone to sleep]
mreq has joined #ruby-lang
jstorimer has quit [Remote host closed the connection]
ohcomely has quit [Quit: Leaving...]
vlad_starkov has joined #ruby-lang
bgant has joined #ruby-lang
duph has joined #ruby-lang
sstrickl has joined #ruby-lang
sstrickl has joined #ruby-lang
diegoviola has quit [Ping timeout: 264 seconds]
vlad_starkov has quit [Ping timeout: 248 seconds]
maxmanders has quit [Ping timeout: 248 seconds]
tenderlove has joined #ruby-lang
mbj has quit [Quit: leaving]
maxmanders has joined #ruby-lang
dingus_khan has joined #ruby-lang
diegoviola has joined #ruby-lang
flip_digits has quit [Remote host closed the connection]
pskosinski has joined #ruby-lang
__butch__ has quit [Quit: Leaving.]
__butch__ has joined #ruby-lang
kgrz has joined #ruby-lang
scampbell has quit [Remote host closed the connection]
kgrz has quit [Read error: Connection reset by peer]
kgrz has joined #ruby-lang
gregmoreno has joined #ruby-lang
maxmanders has quit [Ping timeout: 256 seconds]
kgrz has quit [Ping timeout: 256 seconds]
andrewvos has joined #ruby-lang
maxmanders has joined #ruby-lang
ruurd has quit [Quit: Leaving...]
cofin has quit [Quit: cofin]
MaddinXx_ has quit [Remote host closed the connection]
davidfre_ has joined #ruby-lang
workmad3 has quit [Ping timeout: 248 seconds]
toretore has quit [Quit: Leaving]
dingus_khan has quit [Remote host closed the connection]
davidfrey has quit [Ping timeout: 264 seconds]
jonahR has quit [Quit: jonahR]
davidfrey has joined #ruby-lang
davidfre_ has quit [Read error: Connection reset by peer]
dingus_khan has joined #ruby-lang
dingus_khan has quit [Remote host closed the connection]
ldnunes has quit [Quit: Leaving]
jstorimer has joined #ruby-lang
dingus_khan has joined #ruby-lang
justinra_ has joined #ruby-lang
flip_digits has joined #ruby-lang
justinram has quit [Ping timeout: 256 seconds]
workmad3 has joined #ruby-lang
adambeynon has quit [Quit: Computer has gone to sleep.]
jonahR has joined #ruby-lang
firstdayonthejob has joined #ruby-lang
andrewvos has quit [Ping timeout: 240 seconds]
_jpb_ has quit [Ping timeout: 264 seconds]
_jpb_ has joined #ruby-lang
flip_digits has quit [Ping timeout: 246 seconds]
jstorimer has quit [Remote host closed the connection]
breakingthings has quit [Quit: breakingthings]
bougyman has joined #ruby-lang
bougyman has quit [Changing host]
bougyman has joined #ruby-lang
poga has joined #ruby-lang
davidfre_ has joined #ruby-lang
davidfre_ has quit [Remote host closed the connection]
davidfre_ has joined #ruby-lang
jstorimer has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
saarinen has joined #ruby-lang
vlad_starkov has joined #ruby-lang
bgant has quit [Quit: Leaving.]
brianpWins has joined #ruby-lang
kgrz has joined #ruby-lang
davidfrey has quit [Ping timeout: 268 seconds]
w00x has quit [Quit: Leaving]
w00x has joined #ruby-lang
davidfre_ has quit [Ping timeout: 256 seconds]
kgrz has quit [Ping timeout: 256 seconds]
x0f has quit [Ping timeout: 246 seconds]
ohcomely has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 264 seconds]
llakey is now known as lk
jstorimer has quit [Remote host closed the connection]
nathanstitt has quit [Ping timeout: 240 seconds]
skade has quit [Quit: Computer has gone to sleep.]
x0f has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
brianpWins has joined #ruby-lang
x0f has quit [Ping timeout: 264 seconds]
io_syl has joined #ruby-lang
x0f has joined #ruby-lang
Akla has joined #ruby-lang
glebm has joined #ruby-lang
forrest has quit [Quit: Leaving]
solars has quit [Read error: Operation timed out]
_jpb_ has quit [Ping timeout: 248 seconds]
_jpb_ has joined #ruby-lang
wmoxam has quit [Ping timeout: 260 seconds]
gix has quit [Ping timeout: 264 seconds]
fbernier has quit [Ping timeout: 264 seconds]
w00x has quit [Ping timeout: 248 seconds]
CaptainJet_ has joined #ruby-lang
levicole has quit [Quit: ZNC - http://znc.sourceforge.net]
CaptainJet has quit [Disconnected by services]
levicole has joined #ruby-lang
spectra- has quit [Quit: ZNC - http://znc.sourceforge.net]
ahf has quit [Ping timeout: 264 seconds]
ahf has joined #ruby-lang
ahf has quit [Changing host]
ahf has joined #ruby-lang
spectra has joined #ruby-lang
fbernier has joined #ruby-lang
dingus_khan has quit [Remote host closed the connection]
gix has joined #ruby-lang
jstorimer has joined #ruby-lang
NemesisD has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
<NemesisD> hi guys. i have a gem that needs to behave slightly differently under jruby. it has 1 different dependency in the gemspec and has 1 case statement in the code
_jpb_ has quit [Ping timeout: 256 seconds]
jstorimer has quit [Remote host closed the connection]
_jpb_ has joined #ruby-lang
jkyle_ has left #ruby-lang [#ruby-lang]
<NemesisD> what's a best practice for generating multiple builds of the same gem for the ruby platform and jruby platform
<NemesisD> i looked at some example projects but they tend to have entirely separate repos for jruby
verto has quit [Ping timeout: 246 seconds]
jsullivandigs has joined #ruby-lang
mistym has quit [Remote host closed the connection]
mistym has joined #ruby-lang
Akla has quit [Quit: Page closed]
<zenspider> NemesisD: not separate repos. look at the rake-compiler gem
joshuawscott has quit [Quit: Leaving.]
<havenwood> NemesisD: Here's another example from the Atomic gem: https://github.com/headius/ruby-atomic/blob/master/lib/atomic.rb
realDAB has joined #ruby-lang
fess is now known as Guest23778
mistym has quit [Ping timeout: 240 seconds]
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
tomzx_mac has joined #ruby-lang
workmad3 has quit [Ping timeout: 264 seconds]
<NemesisD> zenspider: still getting to this but does this work with projects where the java side has no extensions? it just has different deps
jsullivandigs has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
maxmanders has quit [Quit: Computer has gone to sleep.]
skade has joined #ruby-lang
vlad_starkov has joined #ruby-lang
JoelMcCracken has joined #ruby-lang
ohcomely has quit [Quit: Leaving...]
<NemesisD> yeah this does not seem to be a good fit for what i'm doing
fragamus has joined #ruby-lang
<JoelMcCracken> is there a way to filter rake tasks, e.g. rake -T only lists a few instead of all, possibly with a note that says "use option ... for all"
scholar01 has joined #ruby-lang
scholar01 has quit [Changing host]
scholar01 has joined #ruby-lang
<drbrain> rake -T [PATTERN]
<JoelMcCracken> eh. what I mean is that I'd like to have rake -T display "normal, typical" tasks by default, and an extended version which lists "omg all possible tasks"
<JoelMcCracken> basically the problem is that going back into this octopress project, I cant immediately remember which tasks I was using
<rickhull> dumb idea, but can you make a rake task that walks/filters rake's task space?
vlad_starkov has quit [Ping timeout: 268 seconds]
<rickhull> i don't think rake itself has the metadata to know which tasks are common / typical
<JoelMcCracken> indeed; biggest problem is that it'd need to override the default -T action
<JoelMcCracken> i'd add the metadata manually somehow
Krimigis has joined #ruby-lang
<rickhull> it sounds like a rakefile problem moreso than a rake problem, to me
<JoelMcCracken> yeah, could be
<rickhull> i.e. solve it in the rakefile, not rake
<JoelMcCracken> (probably is)
mdedetrich has joined #ruby-lang
pipework has quit [Remote host closed the connection]
diegoviola has quit [Quit: WeeChat 0.4.1]
r0bby has joined #ruby-lang
lun__ has quit [Remote host closed the connection]
tylersmith has quit [Remote host closed the connection]
scholar01 has quit [Quit: Leaving.]
glebm has quit [Ping timeout: 268 seconds]
robbyoconnor has quit [Ping timeout: 260 seconds]
mdedetrich has quit [Quit: Computer has gone to sleep.]
duph has quit [Quit: Leaving.]
thmzlt has quit [Quit: Textual IRC Client: www.textualapp.com]
havenwood has joined #ruby-lang
dingus_khan has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
flip_digits has joined #ruby-lang
glebm has joined #ruby-lang
realDAB has quit [Quit: realDAB]
mdedetrich has joined #ruby-lang
justinra_ has quit [Remote host closed the connection]
flip_digits has quit [Ping timeout: 256 seconds]
_jpb_ has quit [Ping timeout: 240 seconds]
_jpb_ has joined #ruby-lang
<NemesisD> drbrain: i think you may have written Gem::PackageTask so i'm guessing you'll be a good resource on this: it looks like that task is built by passing it a full Gem::Specification, why does it need a .gemspec in the directory as well?
maxmanders has joined #ruby-lang
FiXato has quit [Excess Flood]
<rickhull> NemesisD: i've been working on this stuff recently
<NemesisD> drbrain: i'm trying to do something like [Gem::Platform::RUBY, Gem::Platform::JAVA].each {|p| spec = base_spec.dup; spec.platform = p; Gem::PackageTask.new(spec) {} }
<rickhull> Gem::PackageTask just needs a soft gemspec
FiXato has joined #ruby-lang
<rickhull> not a file
brianpWins has quit [Quit: brianpWins]
<NemesisD> rickhull: but when you run the tasks it creates, they want a gemspec file
<rickhull> not in my case
<rickhull> i'm coming at this from your side, as a Gem::PackageTask user
<NemesisD> rickhull: i'm looking for the least-trouble way of generating 2 gem files built for different platforms, they have 1 different dependency each
<rickhull> 2 gemspec files
<drbrain> NemesisD: a) don't use Gem::Platform::JAVA, use Gem::Platform.local
__butch__ has quit [Quit: Leaving.]
<drbrain> unless you really know what you're doing
<rickhull> btw, word on the street is that omitting a hard gemspec file breaks Bunder
<rickhull> Bundler, and you don't want to that
<drbrain> NemesisD: b) nokogiri does this
duph has joined #ruby-lang
ohcomely has joined #ruby-lang
<drbrain> NemesisD: it uses Rake::JavaExtensionTask which I think comes from rake-compiler
<NemesisD> drbrain: the trouble is my use case is much simpler, there are no extensions ot build on either side
<zenspider> rickhull: it doesn't break bundler. it breaks using git repos with bundler... and honestly, meh.
kgrz has joined #ruby-lang
maxmanders has quit [Ping timeout: 246 seconds]
<rickhull> oh, that's all?
<NemesisD> drbrain: i'd prefer a solution where I don't have to change to a different ruby to build it
<NemesisD> really hoping i can avoid having to do this with sed
<zenspider> in this case, since you don't have anything built, not doing Platform.local is probably better
<zenspider> that way you can have one rake task that builds both in one pass
<drbrain> NemesisD: if you don't have extensions why do you need a separate gem for java?
<zenspider> drbrain: is that gonna fuck up rubygems.org ?
<zenspider> different deps
<NemesisD> drbrain: the cruby dep locks up in jruby
wmoxam has joined #ruby-lang
<NemesisD> luckily theres a gem that is pretty much api-compatible with it so even the gem's source code is the same, minus one case off of RUBY_PLATFORM
<drbrain> zenspider: which?
apeiros has quit [Remote host closed the connection]
mike has joined #ruby-lang
r0bby is now known as robbyoconnor
apeiros has joined #ruby-lang
<drbrain> NemesisD: does Gem::PackageTask.new(spec) not work?
mike is now known as Guest59844
<drbrain> … twice not work
<drbrain> zenspider: the different dependencies shouldn't matter
Guest59844 has quit [Client Quit]
<NemesisD> drbrain: it would work except it wants a .gemspec in the current directory to actually build the gem
kgrz has quit [Ping timeout: 240 seconds]
jonahR has quit [Quit: jonahR]
<drbrain> NemesisD: it shouldn't
athaeryn has joined #ruby-lang
singpolyma has quit [Ping timeout: 264 seconds]
_jpb_ has quit [Ping timeout: 248 seconds]
<NemesisD> drbrain: hmm lemme try again, i could have been too raged to notice ;)
<drbrain> according to the source it only uses the Gem::Specification you pass in
_jpb_ has joined #ruby-lang
<drbrain> but maybe I'm missing something, rubygems is too big for me to remember all of it
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dingus_khan has quit [Remote host closed the connection]
brianpWins has joined #ruby-lang
<athaeryn> I have a question which has come up as I've been looking over Rails (briefly), but which I think is more related to Ruby than Rails (and I understand the distinction between the two). I'm not familiar with the syntax behind the way routing is set up, e.g. 'route to: "whatever#route"'
<NemesisD> drbrain: it complains Don't know how to build task 'event_stream_protocol.gemspec' when i run rake package
<athaeryn> What is that expression actually doing/
ohcomely has quit [Ping timeout: 240 seconds]
<NemesisD> drbrain: which indicates to me that it's expecting a filetask for 'event_stream_protocol.gemspec'
<drbrain> NemesisD: is it in your files list?
<drbrain> file gem_path => [package_dir, gem_dir] + @gem_spec.files do [build gem] end
<NemesisD> oh man..
<drbrain> was that it?
maxmanders has joined #ruby-lang
<NemesisD> drbrain: well it compiled! is there a way i can unpack or inspec the gem files it generated to make sure they have the right deps?
<zenspider> athaeryn: route(:to => "whatever#route")
jsullivandigs has joined #ruby-lang
DarkBushido has quit [Quit: Leaving...]
<zenspider> NemesisD: rake spec blah.gem
<zenspider> err
<zenspider> gem spec blah.gem
<drbrain> yeah
<athaeryn> zenspider: So... it's a different syntax for passing in hash keys/values?
JoelMcCracken has quit [Ping timeout: 256 seconds]
<zenspider> syntactic sugar for hashes with symbols for keys
<zenspider> personally, I think it is shite
<zenspider> in this case I wouldn't care one way or another, but as soon as I have 2? I prefer the old syntax
<athaeryn> That is weird.
flip_digits has joined #ruby-lang
anonymuse has quit [Remote host closed the connection]
anonymuse has joined #ruby-lang
<NemesisD> sweet. thanks drbrain and zenspider !
dingus_khan has joined #ruby-lang
TheNotary has joined #ruby-lang
<drbrain> NemesisD: \o/
beak has quit []
jstorimer has joined #ruby-lang
singpolyma has joined #ruby-lang
tenderlo_ has joined #ruby-lang
jstorimer has quit [Read error: Connection reset by peer]
realDAB has joined #ruby-lang
anonymuse has quit [Ping timeout: 264 seconds]
rickruby has joined #ruby-lang
tenderlove has quit [Ping timeout: 256 seconds]
joshuawscott has joined #ruby-lang
CaptainJet_ has quit []
NemesisD has quit [Quit: later]
vlad_starkov has joined #ruby-lang
CaptainJet has joined #ruby-lang
Weems has quit [Ping timeout: 256 seconds]
fooqri has quit [Quit: Textual IRC Client: www.textualapp.com]
arubin has joined #ruby-lang
ziggurat has joined #ruby-lang
_jpb_ has quit [Ping timeout: 246 seconds]
madb055 has joined #ruby-lang
jsullivandigs has quit [Remote host closed the connection]
_jpb_ has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 256 seconds]
maxmanders has quit [Ping timeout: 256 seconds]
symm- has joined #ruby-lang
Cremno has quit [Ping timeout: 256 seconds]
Cremno has joined #ruby-lang
mreq has quit [Read error: Operation timed out]
wmoxam has quit [Read error: Connection reset by peer]
tbuehlmann has quit [Remote host closed the connection]