apeiros changed the topic of #ruby-lang to: Ruby 1.9.3-p374: http://ruby-lang.org (ruby-2.0.0-rc1) || Paste >3 lines of text on http://gist.github.com
sullenel has quit [Quit: leaving]
Nisstyre-laptop has quit [Quit: Leaving]
ivanoats has joined #ruby-lang
<zenspider> I'm still confused why everyone is blaming yaml
dankest has quit [Quit: Leaving...]
slyv has joined #ruby-lang
Kuifje has quit [Ping timeout: 248 seconds]
cirenyc has quit [Quit: Leaving...]
znz_jp has quit [Quit: kill -QUIT $$]
znz_jp has joined #ruby-lang
outoftime has quit [Quit: Leaving]
brianpWins has quit [Quit: brianpWins]
srbaker has quit [Quit: Computer has gone to sleep.]
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
<ReinH> zenspider: because it's the thing everyone hears
<ReinH> zenspider: also ITT: people hating on things because it makes them feel good.
cmatheson has left #ruby-lang [#ruby-lang]
<yfeldblum> zenspider, don't know; isn't the real problem to do with not using a whitelist of tags?
carloslopes has quit [Remote host closed the connection]
carloslopes has joined #ruby-lang
RickHull has left #ruby-lang [#ruby-lang]
<ged> The real problem is trusting user input. Of any kind.
mephux has quit [Excess Flood]
<yfeldblum> ged, that would be the general class of problems which includes, as one item among many, the specific problem i mentioned
mephux has joined #ruby-lang
spuk has quit [Ping timeout: 260 seconds]
<zenspider> yfeldblum: no
sailias has joined #ruby-lang
<zenspider> latest rubygems issue was caused by rails having an eval in a []= method. previous rails issues were also caused by rails having evals. eval is the problem. stupid/clevar code is the problem.
<zenspider> yaml has yet to have a plain vanilla exploit against properly designed code that I can see
kain_ has joined #ruby-lang
<zenspider> plain vanilla == no rails / active_support and no unchecked eval on custom classes
<zenspider> ReinH: too true
aedorn has quit [Quit: Leaving]
<ReinH> zenspider: protip: when parsing untrusted input, don't use eval
<ReinH> just a thought
<zenspider> thanks... I'll add that to my toolbox :P
<ReinH> yeah good call
robotmay has quit [Ping timeout: 248 seconds]
<ReinH> :P
<yfeldblum> zenspider, ReinH, that doesn't solve any problems
kain has quit [Ping timeout: 276 seconds]
<ReinH> yfeldblum: ? it solves a lot of problems
<zenspider> huh?
<ReinH> it just doesn't solve *all* problems
<yfeldblum> this was an internal class meant only for internal consumption, and not meant to be instantiated and used willy-nilly
<ReinH> yfeldblum: what are you talking about?
<yfeldblum> ReinH, because this is ruby, and we use ruby to do magical things, which often involves eval
<zenspider> we're clearly not talking about the same thing
<yfeldblum> zenspider, the exploit i've seen, using an internal class in actiondispatch's routing
<ReinH> yfeldblum: are you planning on being coherent at some opint?
<yfeldblum> zenspider, YAML.load shouldn't go and make one of those objects just because a YAML document said it wants one
<ReinH> YAML shouldn't eval things. But that would change the behavior of YAML.
<yfeldblum> ReinH, YAML didn't eval anything
<ReinH> What I want is a new YAML spec that completely precludes embedded objects of any kind
<ReinH> yfeldblum: it *effectively* evals
<yfeldblum> ReinH, only when the object it instantiates evals in response to #[]=
<ReinH> yfeldblum: so yes, it evals
<ReinH> it doesn't matter if it only sometimes evals
<ReinH> if it happens at all, it happens. That's enough.
<zenspider> ReinH: I have to disagree with you on that. it isn't effectively evalling anything.
postmodern has joined #ruby-lang
<zenspider> it is method dispatching for hash subtypes to []= and that code was evalling the args
<ReinH> zenspider: YAML per se isn't but the bug allows arbitrary code to be evaluated
<ReinH> so we can argue semantics if you want
<zenspider> I just want the blame put where it belongs, and I have yet to see it actually fall on yaml with responsible code
<ReinH> unless I completely misunderstand what's happening
<ReinH> zenspider: what does "with responsible code" mean?
<zenspider> no, I think we're on the same page of HOW this is happening
<zenspider> I think we just have different goals on the analysis
<ReinH> ah
<yfeldblum> zenspider, i'm coming down on YAML.load instantiating objects of document-chosen types, while lacking any ability to whitelist what document-chosen types are allowed
<zenspider> in the case that I'm describing, yaml is parsing something that specifies a hash subclass, that loader dispatches key/value pairs to []=, which is this case was calling eval
<zenspider> yfeldblum: meh
<ReinH> zenspider: ok, that makes sense
<ReinH> zenspider: where does that eval-ing []= live?
banisterfiend has joined #ruby-lang
<zenspider> ReinH: it was on tenderlove's editor, and he's run off to j-school for the evening.
<zenspider> I could possibly chase it down... sec
<ReinH> it's not super important
<ReinH> do you remember generally where?
<ReinH> ActiveSupport?
<yfeldblum> ReinH, neither one by itself is a problem; the combination of the two without a mediating mechanism (e.g., tags whitelist) is a problem
<ReinH> yfeldblum: yes, but that's always true
<ReinH> security isn't a static property of systems
Nisstyre has joined #ruby-lang
<ReinH> whenever you have a new interaction you have to audit that interaction
<zenspider> yfeldblum: you keep harping on whitelists... yet whitelists still don't matter if you've got completely shitty irresponsible code running
gjaldon has joined #ruby-lang
<yfeldblum> zenspider, like what?
<zenspider> like rails
<banisterfiend> zenspider: what's j-school
<zenspider> ReinH: yeah. I can't find it. don't remember where it was
<zenspider> banisterfiend: tenderlove studies japanese
<banisterfiend> oh ok
carloslopes has quit [Remote host closed the connection]
<yfeldblum> zenspider, like what, more specifically, that couldn't be stopped by a yaml-tags whitelist?
<yfeldblum> zenspider, and i don't mean something that adds random nonsense to a whitelist
marr has quit [Ping timeout: 252 seconds]
workmad3 has quit [Ping timeout: 264 seconds]
<zenspider> ReinH: that might have been it. look at route_set.rb and walk down the #add method (aliased to []=)
<zenspider> boils down to define_url_helper which does a module_eval w/o scrubbing a damn thing
dankest has joined #ruby-lang
<yfeldblum> what cases are there of trying to hydrate an object tree from yaml where you don't know what finite list of classes would be allowed in that document?
<zenspider> we toyed with the idea of using taint strictly throughout rails, but it would take manyears to get cleanly working. not even sure if it is possible w/o breaking a huge class of apps the way routes and stuff work
<ReinH> metasploit code style makes me :(
<zenspider> ReinH: I know... so painful to read
<ReinH> where's the Ronin version
<ReinH> oh god, that doc hash
<ReinH> o_O
<zenspider> yfeldblum: anyone can define methods on whitelisted classes. just because you say `Hash` is safe doesn't mean it is.
<postmodern> ReinH, metasploit code, YOLO
<yfeldblum> zenspider, that doesn't solve terribly much
<postmodern> ReinH, you want rails_rce.rb or rails_omakase.rb?
innohero has quit [Quit: Leaving]
<yfeldblum> zenspider, if YAML.load isn't even allowed to build hashes, then the rest of us are likely to just go and build hashes from YAML.parse
spuk has joined #ruby-lang
<zenspider> ReinH: it's stupider than that. if the route arg in #add isn't scrubbed it could contain anything
<zenspider> ReinH: err... name arg.
<zenspider> ReinH: that code would be eval'd straight up on the first line of the module_eval of define_url_helper
<ReinH> zenspider: oh.
kmlawson has joined #ruby-lang
ulisescab has joined #ruby-lang
<zenspider> stupid simple tainting strategies could have addressed this, but since tainting wasn't a strategy when this code was designed, backfilling will be a serious bitch
<yfeldblum> zenspider, what would a tainting strategy look like?
<ReinH> zenspider: it's too bad Ruby's taint is so useless
__BigO__ has joined #ruby-lang
mercwithamouth has quit [Ping timeout: 248 seconds]
__BigO__ has quit [Remote host closed the connection]
<ReinH> agree taint in general is the way to handle this
<ReinH> zenspider: the problem is that taint has to be done at library level or below
<ReinH> and it has to be ubiquitus
<ReinH> and since Ruby's taint isn't suitable, you have to roll your own and then convince everyone to use it :/
hahuang65 has quit [Ping timeout: 252 seconds]
<epitron> stop talking about ruby's taint :(
kmlawson has left #ruby-lang [#ruby-lang]
krohrbaugh has joined #ruby-lang
krohrbaugh has quit [Read error: Connection reset by peer]
krohrbaugh has joined #ruby-lang
hahuang65 has joined #ruby-lang
hahuang65 has quit [Max SendQ exceeded]
<ReinH> ...
ulisescab has quit [Remote host closed the connection]
<ReinH> ok :(
<zenspider> ReinH: how isn't it suitable in ruby?
<ReinH> zenspider: you don't have enough control over when it's set/unset
mjio has quit []
<ReinH> you're overloading it if you use it for this
<ReinH> imo at least
<zenspider> ... splain?
<ReinH> maybe it works fine
<ReinH> zenspider: when are strings marked as tainted in Ruby?
idkazuma has quit [Remote host closed the connection]
<zenspider> depends on the safe level, iirc. or whenever you call it
<ReinH> right, so what you're worried about is anything untainting your string
<zenspider> so, when something comes in from IO, socket, File, etc.
<ReinH> although false positives could be annoying
<zenspider> you can't untaint
<ReinH> ah right
<ReinH> does taint follow cloning?
s1n4 has quit [Quit: leaving]
<zenspider> oh. shit. you can. meh. Object.remove_method :untaint
<zenspider> yeah, it follows
<ReinH> ok
<ReinH> so, as long as things you want tainted stay tainted
<zenspider> but like, it doesn't follow through $1 or other match accessors
<ReinH> and things you don't want tainted stay untainted
<ReinH> right
<zenspider> so safe = $1 if unsafe =~ /.../
<ReinH> "untainted string" << "tainted string"?
<ReinH> safe + unsafe ?
<ReinH> etc?
<ReinH> it's actually super hard to implement a taint system above the langauge level :/
<ReinH> so hopefully you can use Ruby's
<zenspider> ruby -e 'a = "safe"; b = "unsafe"; b.taint; a << b; p a.tainted?' # => true
<ReinH> zenspider: good, then it works properly :p
<ReinH> I've never messed with it much tbh
<ReinH> in Ruby at least
<zenspider> I believe it does... but like ruby -w, nobody seems to use it or care
<zenspider> but they sure like to throw a fit when something like these exploits come out
innohero has joined #ruby-lang
<zenspider> (for the record, I use -w on everything)
<ReinH> zenspider: well, Ruby doesn't have a good security story tbh
<ReinH> not compared to, say, Java
innohero has left #ruby-lang [#ruby-lang]
<ReinH> you might hate the language but they take security seriously
<ReinH> also low barrier to entry means you get a lot of programmers that wouldn't know what to do with a taint if...
brianpWins has joined #ruby-lang
<ReinH> I'm not going to finish that sentence
<zenspider> you mean the language that was forcibly removed from osx because of the security problems and how long they took to fix them?
<havenn> ^
<ReinH> zenspider: yes, that one
<zenspider> hah
<ReinH> we're living in a glass house, gentlemen
<zenspider> I do agree that low barrier to entry has caused a lot of problems
<zenspider> yup
AntiTyping has joined #ruby-lang
hahuang65 has joined #ruby-lang
<cored> I wonder how you guys know about all of this technisim
<cored> and of course how can I learn all of this :-)
<ReinH> cored: it's almost like it's our job :)
<zenspider> I don't think it would have been that hard or that much different if rails was built to be taint safe... but backfilling it into the design? that's not really feasible
<zenspider> at least... it'll take a looong time to identify and patch all the leaks and get the design feeling right again
<ReinH> zenspider: true, but is it impossible to introduce incrementally?
<zenspider> strong params and the like are a step in the right direction.
<ReinH> I'll write a sed script to find lines that contain eval and insert a "# TODO: check for taint" above them
<zenspider> ReinH: it's spaghetti code, in a sense. so if you taint params as they come in, you need to ensure everything below it is taint-safe. in rails that's a LOT of code
<ReinH> right, but there are also hotspots
<ReinH> routing
<zenspider> *nod*
<ReinH> you don't need to cover the entire attack surface at once
<ReinH> but reducing it at all is a bonus
<zenspider> or... you have to have the user absolutely positively untaint everything at the beginning of every request before you're allowed to move on. I could see some sort of declarative api added to controllers to say what params are allowed and what formats they can have
<zenspider> totally agree
gjaldon_ has joined #ruby-lang
krohrbaugh has quit [Quit: Leaving.]
gjaldon has quit [Ping timeout: 276 seconds]
sush24 has joined #ruby-lang
ryez has joined #ruby-lang
<zenspider> yfeldblum: well... sorta. I'm not talking about types. I'm talking about formats. :name => /\w+/ or somesuch
sn0wb1rd has quit [Quit: sn0wb1rd]
<ReinH> zenspider: thing about that is
<ReinH> it's really hard to prove that a given format is safe
<epitron> zenspider: in 1.9.3, regexp matches ($1, $2, etc.) stay tainted if you match a tainted string
<ReinH> just think about pathname expansion exploits
<yfeldblum> ReinH, such as?
<epitron> open(params[:user_id])
<epitron> :D
<ReinH> where is .\\..\.\\...\.\\../etc/hosts
<zenspider> epitron: kk. then $1.untaint if ...
<ReinH> etc
tomzx_mac has joined #ruby-lang
<epitron> eval doesn't warn if you eval a tainted string
<zenspider> ReinH: I agree. This isn't a fun or easy problem to solve. but the fact that we currently have nothing is more disturbing to me. there's been relatively no thought (until recently) on this subject
<epitron> that might be a useful thing
<ReinH> if you give your users the ability to write their own formats to verify input
<ReinH> for security purposes
<zenspider> aaron and I were toying with tainting last summer (? I think ?) and it just didn't pan out at all
<ReinH> you're giving them a gun and pointing at at their feet
<epitron> zenspider: so you're saying that the tainting is pointless if a hacker can inject some code that intaints itself? :)
<epitron> *untaints
<zenspider> if you don't, you're pointing the gun at their head
<ReinH> zenspider: false dichotomy
<ReinH> you shouldn't make your users responsible for security
<ReinH> that doesn't work out very well
<epitron> we don't have time for security! we're running a business!
<ReinH> famous last words
<epitron> we're losing sales!!!!
<epitron> :)
chimkan___ has joined #ruby-lang
<ReinH> zenspider: yes, agree the big problem is lack of awareness
<zenspider> ReinH: I just don't think you can have it both ways. Responsibility comes with the power of the library you're using. and the library CAN'T know what's valid and what's invalid w/o user input
<ReinH> you don't get secure software without security-conscious software developers
<ReinH> period
<ReinH> zenspider: it can know what's secure and insecure
<ReinH> or we wouldn't be able to secure anything ever
<zenspider> it can do some stupid simple checks... does this string I'm about to module_eval have a semicolon in it? but beyond that... neigh impossible
<ReinH> zenspider: it can do way better than that
<ReinH> never evaluate untrusted strings
wizonesolutions has quit [Ping timeout: 244 seconds]
<ReinH> asking your users to ensure that the thing that's about to get interpreted is safe
<ReinH> is such a bad idea
srbaker has joined #ruby-lang
<ReinH> because if WE aren't thinking about security enough to catch this kind of problem
<zenspider> srbaker: you never called me in
<ReinH> the chances that they are are basically zero
<epitron> heh
chimkan_ has quit [Ping timeout: 276 seconds]
<ReinH> what we need as library/framework developers is to make security a priority
<ReinH> check for security vulnerabilities using code reviews and other touch points
<srbaker> zenspider: hey, today was all gemstone management stuff :/
krohrbaugh has joined #ruby-lang
rsl has quit [Quit: Computer has gone to sleep.]
<ReinH> this is why I gave a talk at RubyConf last year called "Making Security Priority Zero"
<yfeldblum> using a regexp to validate evalable code in a Turing-complete language for malignancy doesn't sound like a good strategy
<srbaker> and we got a late start
<ReinH> Maybe people will start to listen to me now...
<zenspider> ReinH: give a talk "I told you so"
<ReinH> I certainly could.
<epitron> hahah
<ReinH> yfeldblum: it's the blacklist problem
<epitron> the year after: "You idiots never listen" by ReinH
<ReinH> using a finite set of rules to deal with an infinite set of inputs
<ReinH> yfeldblum: it's a failure of requisite variety
<ReinH> which is a technical failure
<ReinH> but it's also a people failure
<ReinH> by forcing the people who care least about security to be responsible for it
<ReinH> epitron: I could keep that up for yaers
<yfeldblum> or, it's basing one's security on solving the halting problem
<ReinH> yfeldblum: possibly true but not very useful
<epitron> "Users considered harmful"
<ReinH> a failure of requisite variety has two options:
wizonesolutions has joined #ruby-lang
wizonesolutions has quit [Changing host]
wizonesolutions has joined #ruby-lang
<ReinH> expand the solution space
mercwithamouth has joined #ruby-lang
<ReinH> contract the problem space
<ReinH> I'm suggesting the latter
<ReinH> which is also generally regarded as a good security principle
<ReinH> every place you remove an eval is one less vulnerability
<zenspider> but would rails have even taken off if it weren't for its liberal use of eval? I'm not so sure. As much as railz0rs have diluted our culture, it is obvious that a lot of money and opportunity came with them
unlikely_monkey has joined #ruby-lang
srbaker has quit [Ping timeout: 245 seconds]
<ReinH> zenspider: maybe 90% of Rails' eval use is strictly internal metarogramming
<ReinH> that's true
<epitron> ruby's squishiness is quite nice
<ReinH> but the problem is: which 90%
<yfeldblum> ReinH, for sure, eliminating calls to #eval improves security ... but that can't be the panacea because there's always going to be one more place that calls eval and someone else is going to find it
<epitron> i never use eval when metaprogramming though
phlipper is now known as phlipper_
<ReinH> yfeldblum: I never said I was looking for total solutions
<epitron> maybe sometimes i use instance_eval &block
<ReinH> there aren't any to begin with
<ReinH> yfeldblum: security is a process
ivanoats has quit [Remote host closed the connection]
<zenspider> ReinH: even that "Strictly Internal" thing needs to be locked down tho... because there's nothing really strict about ruby
<ReinH> but the problem is: which 90%
<ReinH> zenspider: yes, exactly
hahuang65 has quit [Quit: Computer has gone to sleep.]
<zenspider> it isn't just eval that is the problem... it is indiscriminate eval.
<zenspider> in the example I originally gave, just making sure name didn't contain ';' would have done a ton
gregmoreno has quit [Ping timeout: 252 seconds]
<zenspider> it was being used as a symbol and a method name. those have strict parseable definitions. If something was used to vet the arg before passed off to module_eval, this exploit would not be possible
<epitron> indeed. with something as widely used as rails, you should think hard about what you're doing with eval :)
<ReinH> zenspider: right, but that's the framework author's responsibility
<ReinH> not the user's
<ReinH> zenspider: the flip side of this 'vetting' approach is that it provides a false sense of security
<zenspider> ReinH: we're talking about DHH and cohort. There are about 3 people I can think of that actually take their coding responsibility on that library seriously
<zenspider> and they're burning out, if anything
sush24 has quit [Quit: This computer has gone to sleep]
<ReinH> fair
<ReinH> zenspider: by false sense of security, what I mean is:
<epitron> in production mode, all the metaprogramming/evalling should happen at startup time anyways.. you could probably just remove the eval method after startup :)
<ReinH> you won't know if that vetting code you wrote is correct
<ReinH> but you're going to operate as if it is
<ReinH> which means that when it's proved to be incorrect, you'll probably be more at risk
havenn has quit [Ping timeout: 248 seconds]
<ReinH> because you probably wrote less secure code based on that assumption
<ReinH> it's the same problem as a taint false negative
<zenspider> ReinH: in the general case, yes. in the case I described above, I believe there is a legitimate and easy way to vet it.
<ReinH> zenspider: it's definitely safer in that specific case
<ReinH> but I think in the larger context it could have adverse effects
<epitron> eval(sanitize(params[:query])) :D
<ReinH> if people start thinging "Oh I can use eval now because I used the sanitize library"
<ReinH> when they wouldn't have before
<ReinH> now the sanitize library is your new weak link
<yfeldblum> zenspider, is there not some clever way around it which avoids injecting a ; character but accomplishes the same result?
<ReinH> and you're reducing defense in depth
<epitron> i wanna see what happens if i remove all the eval methods after rails initialization
<zenspider> yfeldblum: && || . any operator really
<zenspider> but... if you guaranteed that the shape of the parse tree matched expectations before you evalled it? I don't think you CAN break through that
<zenspider> then again... I'm hungry :)
srbaker has joined #ruby-lang
<epitron> zenspider: that would be awesome
<epitron> i like the idea of AI pattern-analysis as a security tripwire
<yfeldblum> just make proc-based metaprogramming faster and we could stop resorting to eval-based metaprogramming ...
<zenspider> raise "Call Security!" unless RubyParser.parse(name).structure == s(:call)
jtoy has joined #ruby-lang
<zenspider> (call because a bare word will look like a message send to a virginal parser)
<ReinH> zenspider: anything that makes people thing they are more secure when they aren't is a bad thing
<ReinH> just keep that in mind
<epitron> it would also be awesome if you could then sandbox all that user's changes somehow, into a parallel universe, so you can roll them back... like a transaction :)
<yfeldblum> epitron, an ACID version of the many-worlds interpretation of QM?
<epitron> yfeldblum: yesss
<ReinH> yfeldblum: exactluy
<ReinH> get on that please
sn0wb1rd has joined #ruby-lang
<epitron> something like DATOMIC or VPRI WORLDS
<epitron> database as a value
<zenspider> ReinH: then rails is a bad thing :)
<yfeldblum> STM
<ReinH> zenspider: in that sense, yes
dankest has quit [Quit: Leaving...]
<epitron> or STM :D
<ReinH> zenspider: absolutely agree
<zenspider> epitron: what's DATOMIC ?
<ReinH> zenspider: want to try that again? :)
<epitron> zenspider: rich hickey's new database company
<zenspider> gotcha
<ReinH> moar liek derptomic amirite
<epitron> it's really slick.. there's a talk somewhere
alvaro_o has quit [Quit: Ex-Chat]
<zenspider> I can't watch that man talk
<zenspider> I've tried.
<epitron> hahah
<epitron> it took me a few tries
<epitron> my brain was in the right mode one day, and it was a good talk
<zenspider> too much smug
<zenspider> oh. pretty girl showed up. later
<epitron> he decomposes the database in some interesting ways
<epitron> smug? i think he's just kinda unemotional
havenn has joined #ruby-lang
<epitron> and tired
krohrbaugh has quit [Quit: Leaving.]
krohrbaugh has joined #ruby-lang
La0fer has quit [Ping timeout: 246 seconds]
jgv has quit [Quit: Textual IRC Client: www.textualapp.com]
kmlawson has joined #ruby-lang
mwjcomputing has joined #ruby-lang
mjio has joined #ruby-lang
krohrbaugh has quit [Quit: Leaving.]
towski has quit [Remote host closed the connection]
gjaldon_ has quit [Remote host closed the connection]
srbaker has quit [Quit: Computer has gone to sleep.]
techlife has quit [Ping timeout: 255 seconds]
io_syl has quit [Quit: Computer has gone to sleep.]
jtoy has quit [Quit: jtoy]
techlife has joined #ruby-lang
sailias has quit [Quit: Leaving.]
unlikely_monkey has quit [Remote host closed the connection]
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
Bosox20051 has quit [Quit: Leaving]
seanstickle has joined #ruby-lang
seanstickle has quit [Client Quit]
seanstickle has joined #ruby-lang
pr0ton has quit [Quit: pr0ton]
seanstickle has quit [Client Quit]
jonahR has joined #ruby-lang
gregmoreno has joined #ruby-lang
kmlawson has quit [Read error: Connection reset by peer]
kmlawson has joined #ruby-lang
cored has quit [Quit: leaving]
gregmoreno has quit [Ping timeout: 252 seconds]
bzalasky has joined #ruby-lang
S1kx has quit [Quit: Leaving]
mercwithamouth has quit [Ping timeout: 256 seconds]
ryanf has quit [Read error: Connection reset by peer]
ryanf has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
cardoni has joined #ruby-lang
norviller has joined #ruby-lang
erichmenge_ has joined #ruby-lang
ilyam has quit [Quit: ilyam]
krohrbaugh has joined #ruby-lang
erichmenge has quit [Ping timeout: 240 seconds]
erichmenge_ is now known as erichmenge
brianpWins has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
norviller has quit [Quit: Computer has gone to sleep.]
ryanf has quit [Read error: Connection reset by peer]
ryanf has joined #ruby-lang
tomzx_mac has quit [Ping timeout: 245 seconds]
sepp2k has joined #ruby-lang
ilyam has joined #ruby-lang
slyv has quit [Quit: Computer has gone to sleep.]
ilyam has quit [Remote host closed the connection]
mercwithamouth has joined #ruby-lang
Quatrerwin has quit [Remote host closed the connection]
sandbags has quit [Remote host closed the connection]
chimkan_ has joined #ruby-lang
Bearproof has quit [Quit: Leaving.]
lsegal has joined #ruby-lang
chimkan___ has quit [Ping timeout: 245 seconds]
cardoni has quit [Quit: cardoni]
dvorak has quit [Ping timeout: 276 seconds]
dvorak has joined #ruby-lang
bradland has quit [Quit: bradland]
mjio has quit []
cardoni has joined #ruby-lang
phlipper_ is now known as phlipper
mwjcomputing has quit [Quit: Leaving]
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
faces has joined #ruby-lang
facest has quit [Ping timeout: 264 seconds]
ryanf has quit [Quit: leaving]
lsegal` has joined #ruby-lang
krz has joined #ruby-lang
<postmodern> how do you test a private method with test/unit ?
<postmodern> must i resort to calling send
lsegal has quit [Read error: Connection reset by peer]
agib__ has quit [Ping timeout: 276 seconds]
Spaceghost|cloud has quit [Ping timeout: 276 seconds]
Guest85414 has quit [Ping timeout: 276 seconds]
<imperator> afaik, yes
towski has joined #ruby-lang
socialcoder has joined #ruby-lang
<drbrain> or you can make it public
CoverSlide has joined #ruby-lang
cordax has joined #ruby-lang
norviller has joined #ruby-lang
unlikely_monkey has joined #ruby-lang
bzalasky has joined #ruby-lang
unlikely_monkey has quit [Remote host closed the connection]
lsegal` has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
lsegal has joined #ruby-lang
sepp2k1 has joined #ruby-lang
norviller has quit [Quit: Computer has gone to sleep.]
bzalasky has quit [Remote host closed the connection]
sepp2k has quit [Ping timeout: 248 seconds]
<postmodern> drbrain, i dont think tenderlove would let me
<postmodern> drbrain, this is for psych
<postmodern> drbrain, want to test resolve_class directly but it's private
<drbrain> def test_resolve_class; public :resolve_class; …; ensure private :resolve_class; end
<drbrain> of course, you'll need to adjust it
ebarendt has joined #ruby-lang
norviller has joined #ruby-lang
norviller has quit [Remote host closed the connection]
<postmodern> drbrain, undefined method public
<drbrain> you'll need to call it in the scope of the defining module
<drbrain> or class
<postmodern> drbrain, is there a seattle.rb guide for test-unit style?
<drbrain> postmodern: not really
<postmodern> drbrain, im fearful using class_eval { public :resolve_class } is going to get this rejected
<drbrain> that alone won't get it rejected
banisterfiend has quit [Remote host closed the connection]
mistym has quit [Remote host closed the connection]
bluepojo has quit [Ping timeout: 252 seconds]
bzalasky has joined #ruby-lang
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
ivanoats has quit [Remote host closed the connection]
ebarendt has quit [Quit: Textual IRC Client: www.textualapp.com]
ivanoats has joined #ruby-lang
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
brianpWins has quit [Quit: brianpWins]
techlife has quit [Ping timeout: 272 seconds]
techlife has joined #ruby-lang
unlikely_monkey has joined #ruby-lang
ivanoats has quit [Remote host closed the connection]
socialcoder has quit []
bluepojo has joined #ruby-lang
rippa has joined #ruby-lang
toretore has joined #ruby-lang
intellitech has quit [Quit: intellitech]
dhruvasagar has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
noop has joined #ruby-lang
ryanf has joined #ruby-lang
methods has joined #ruby-lang
JohnBat26 has joined #ruby-lang
lcdhoffman has joined #ruby-lang
methods has left #ruby-lang [#ruby-lang]
Guest85414 has joined #ruby-lang
Spaceghost|cloud has joined #ruby-lang
robbyoconnor has joined #ruby-lang
guns has joined #ruby-lang
cordax has quit [Quit: Computer has gone to sleep.]
agib__ has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 246 seconds]
wmoxam has joined #ruby-lang
dhruvasagar has joined #ruby-lang
blacktulip has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 276 seconds]
rippa has quit [Ping timeout: 240 seconds]
dhruvasagar has joined #ruby-lang
blacktulip has quit [Ping timeout: 245 seconds]
blacktulip has joined #ruby-lang
guns has quit [Quit: guns]
dhruvasa1ar has joined #ruby-lang
stardiviner has joined #ruby-lang
vgoff has quit [Ping timeout: 248 seconds]
ivanoats has joined #ruby-lang
vgoff has joined #ruby-lang
neocoin has joined #ruby-lang
ryanf has quit [Ping timeout: 264 seconds]
lcdhoffman has quit [Quit: lcdhoffman]
dc5ala has joined #ruby-lang
tbuehlmann has joined #ruby-lang
havenn has quit [Remote host closed the connection]
havenn has joined #ruby-lang
havenn has quit [Read error: Connection reset by peer]
bzalasky has joined #ruby-lang
peppyheppy_ has joined #ruby-lang
whowantstolivefo has joined #ruby-lang
ryanf has joined #ruby-lang
unlikely_monkey has quit [Remote host closed the connection]
peppyheppy has quit [Ping timeout: 252 seconds]
ivanoats has quit [Remote host closed the connection]
peppyheppy_ has quit [Ping timeout: 256 seconds]
ivanoats has joined #ruby-lang
AntiTyping has quit [Quit: AntiTyping]
mytrile has joined #ruby-lang
solars has joined #ruby-lang
srbaker has joined #ruby-lang
peppyheppy has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
havenn has joined #ruby-lang
whowantstolivefo has quit [Read error: Connection reset by peer]
whowantstolivefo has joined #ruby-lang
dcwu has quit [Read error: Connection reset by peer]
dcwu has joined #ruby-lang
chendo_ has quit [Ping timeout: 248 seconds]
chendo_ has joined #ruby-lang
ivanoats has quit [Remote host closed the connection]
dcwu has quit [Read error: Connection reset by peer]
nXqd has joined #ruby-lang
ivanoats has joined #ruby-lang
dcwu has joined #ruby-lang
tdy_ has joined #ruby-lang
tdy has quit [Read error: Connection reset by peer]
dr_bob has joined #ruby-lang
<yorickpeterse> morning
<whowantstolivefo> yorickpeterse: morning!
robbyoconnor has quit [Ping timeout: 245 seconds]
ivanoats has quit [Remote host closed the connection]
gnufied has joined #ruby-lang
tdy_ has quit [Quit: WeeChat 0.4.0]
tdy has joined #ruby-lang
chekcmate has joined #ruby-lang
dr_bob has quit [Quit: Leaving.]
towski has quit [Remote host closed the connection]
<chekcmate> tach
workmad3 has joined #ruby-lang
facest has joined #ruby-lang
faces has quit [Ping timeout: 264 seconds]
gnufied has quit [Quit: Leaving.]
osaut has joined #ruby-lang
nXqd has quit [Ping timeout: 248 seconds]
gnufied has joined #ruby-lang
nXqd has joined #ruby-lang
sulo has joined #ruby-lang
srbaker has quit [Quit: Textual IRC Client: www.textualapp.com]
<injekt> moin
<gnufied> morning
Pain has joined #ruby-lang
stardiviner has quit [Ping timeout: 252 seconds]
sulo has quit [Ping timeout: 255 seconds]
setmeaway has quit [Quit: Leaving]
srbaker has joined #ruby-lang
Pain has quit [Client Quit]
stardiviner has joined #ruby-lang
<chekcmate> we-we-we-we-weekeeeend!
workmad3 has quit [Ping timeout: 245 seconds]
bzalasky has joined #ruby-lang
huugsy has joined #ruby-lang
huugsy has quit [Client Quit]
dhruvasa1ar has quit [Ping timeout: 245 seconds]
dhruvasagar has quit [Ping timeout: 255 seconds]
jonahR has quit [Quit: jonahR]
dhruvasagar has joined #ruby-lang
dhruvasa1ar has joined #ruby-lang
<thisboy> wtf
<thisboy> *checks calendar*
<thisboy> my god chekcmate you're right!
<chekcmate> hah :D
<chekcmate> are you one of those guys coming to work at saturday, wondering why everyone's absent?
<havenn> just turned friday here
ryanf has quit [Quit: leaving]
gnufied1 has joined #ruby-lang
<thisboy> haha :)
dcwu has quit [Quit: Leaving.]
gnufied has quit [Ping timeout: 252 seconds]
<chekcmate> thisboy: can you tell me something?
<thisboy> chekcmate: like what?
endy_c has joined #ruby-lang
<chekcmate> got a string and I want to check if the first word matches & I want the last char of the string as $1
<chekcmate> I know how to do that in 2 steps
<thisboy> nah sorry im not that good :/
* chekcmate 's nemesis is called regex
<thisboy> heheh
duckinator has joined #ruby-lang
chimkan__ has joined #ruby-lang
<chekcmate> I thought using this would work: test\()\/([^*])\z
jxie has quit [Quit: leaving]
endy_c has left #ruby-lang [#ruby-lang]
maxmanders has joined #ruby-lang
<gnufied1> hi
<chekcmate> hu
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
chimkan_ has quit [Ping timeout: 244 seconds]
<chekcmate> gnufied1: can I ask you a regex question?
poga has joined #ruby-lang
sandbags has joined #ruby-lang
sandbags has joined #ruby-lang
gnufied has joined #ruby-lang
<chekcmate> hu?
<certainty> chekcmate: what exactly are you trying to achieve?
<chekcmate> I want to check if the first 5 chars match and then have the ability to use the last char of the string as $1
<gnufied> that is quite simple
<chekcmate> I know how to achieve this, but only in two steps
noReligion has joined #ruby-lang
<gnufied> are those 5 characters fixed?
<chekcmate> the only thing I don't know is how to combine them
<certainty> the last char of the matched string?
<chekcmate> yes
<chekcmate> no
<chekcmate> yes @ gnufied and no@ certainty
<chekcmate> the last char of the whole string
<certainty> (.)
<gnufied> then - /foobar.*(.)\z/
gnufied1 has quit [Ping timeout: 252 seconds]
<chekcmate> but the stuff between first 5 chars and last char is not fixed
<gnufied> sure
<gnufied> try the regexp I put
<certainty> possibly at an anchor to word start if you need that too
<chekcmate> yay
<chekcmate> is (.) != (...)?
<chekcmate> I thought every dot was "one char"
<gnufied> nope.
<certainty> matches a single "anything" and captures it
<chekcmate> but I could use \d{1,x} at that point too?
<gnufied> and yeah, certainty is right, put beginning of string anchor for first match
bzalasky has quit [Remote host closed the connection]
<gnufied> is last character digit?
<chekcmate> yes
<gnufied> \d{1}
<certainty> \d
<certainty> is enough
<chekcmate> yup :)
<chekcmate> well, not sure if its always sonly 1 char ^^
<chekcmate> so better do 1,2 I thought
zmack has joined #ruby-lang
<gnufied> sure it should match
<chekcmate> so (.) does the trick here?
<manveru> >> "foobar1"[/^foobar(\d+)$/, 1]
<manveru> => "1"
<chekcmate> anything between foobar and the last char is ignored?
<certainty> yes
<certainty> well not ignored
<certainty> it must match but .* always succeeds
<chekcmate> alright, that's great - thanks a lot guys!
<gnufied> enough regular expressions for a day, I say!
<chekcmate> I wish, heh
<gnufied> btw - I need to write a streaming events server. where once client authenticates and subscribes, events are streamed to the browser in real time
<gnufied> choice is as hard as 5 years ago
<gnufied> :(
<ggreer> uhh... use socket.io?
srbaker has quit [Ping timeout: 255 seconds]
socialcoder has joined #ruby-lang
mercwithamouth has quit [Ping timeout: 248 seconds]
<gnufied> We will eventually release this as public API
<manveru> gnufied: i've done it with em-websocket
marr has joined #ruby-lang
<socialcoder> https://gist.github.com/4690191 how can I shorten the third line
charliesome has joined #ruby-lang
srbaker has joined #ruby-lang
<socialcoder> please help
<manveru> working on the grandma problem?
<gnufied> manveru: the problem is, it is really one way streaming. websocket does not seem right choice. I don't really need duplex
jxie has joined #ruby-lang
<charliesome> socialcoder: interpolation is your friend
<ggreer> ("What do you mean " + "\"" + answer + "\"???" + " shut the duck up DAWG!").upcase
hakunin_ has joined #ruby-lang
<ggreer> is my guess
hakunin has quit [Read error: Connection reset by peer]
<manveru> gnufied: artificially limiting doesn't give you more bandwidth...
<ggreer> also yeah. #{}
<epitron> gnufied: websocket is about not having to poll to get the events from the server
<epitron> sure, it gives you bidirectional communication
<epitron> but that magic event handler thing is pretty awesome
<socialcoder> thanks
<ggreer> websocket definitely gives you bi-directional
<ggreer> not all browsers support websocket though. that's why I recommend socket.io: it can fall back to other transports
<charliesome> socialcoder: http://eval.in/8145
<ggreer> and still give you two-way
<epitron> ggreer: but he's like, "my app idn't bidirectional! i don't need it!" :)
<ggreer> that's what everyone says
<gnufied> socket.io is exclusively node.js more or less. their ruby implementation is toy at best I think
<ggreer> but they probably will need full duplex at some point
<epitron> yeah, having a fallback is a good idea
<manveru> socialcoder: puts %(What do you mean "#{answer}"??? shut the duck up DAWG!).upcase
chimkan__ has quit [Ping timeout: 240 seconds]
<charliesome> manveru: yerp see my paste
<gnufied> manveru: I was really hoping I could use SSE. but not all browsers support CORS with it.
<gnufied> SSE = Server Send Events, CORS = Cross origin ...
<epitron> hah... CORS is painful
<ggreer> socket.io is definitely node.js-only
<manveru> i never saw the point of SSE :P
<gnufied> well, the protocol is really simple for one
GarethAdams has joined #ruby-lang
<manveru> hm
<gnufied> for example. em-websocket's websocket implementation is incomplete
<socialcoder> if x = Oliver y = Denton puts x + y -> it prints OliverDenton. How do I get the space in between
<gnufied> if I had to use websocket I would defenitely consider faye.
<manveru> i see you can polyfill SSE, so that'd make it worth it
<ggreer> gnufied: yeah.... you might want to bite the bullet and use socket.io. if you really wanted to avoid writing much js you could have a socket.io server connect to say.... rabbitmq
<GarethAdams> x + ' ' + y
<socialcoder> ah I see
<GarethAdams> is there somewhere else you expect it to get the space from?
<manveru> ggreer: srsly
<manveru> do i have to get my cane?
<ggreer> heh
<socialcoder> I am not sure Gareth
<socialcoder> just wanted it to look natural
<socialcoder> and was scratching my head
<GarethAdams> other options include `"%s %s" % [x, y]` or [x, y].join(' ')`
<manveru> ggreer: he has a simple problem, you give him 3 additional pieces of infrastructure to maintain, patch, admin, setup, config, and learn :P
<gnufied> ggreer: sorry, but we don't want to deploy node apps yet. our deployment environment is well built for ruby. some day we may bite the bullet but not now
<GarethAdams> (obviously the bcakticks are intended as delimiters there, not part of the code)
<socialcoder> right
<socialcoder> gotcha
wallerdev has quit [Quit: wallerdev]
<ggreer> manveru: I've seen people try to reimplement a bunch of socket.io in their language of choice. it's not pretty
<ggreer> there's *so* much you have to deal with, since browsers are insane
<epitron> gnufied: does latency of event updates matter? :)
<ggreer> and then throw in mobile connections where you're likely to drop the socket... bleh
<epitron> because, polling is way easier, given all your constraints
vmoravec_ has joined #ruby-lang
<gnufied> it matters somewhat yes.
<epitron> are the events pretty infrequent?
<gnufied> I am honestly considering faye (http://faye.jcoglan.com/) which is very close to socket.io,
<gnufied> but don't want to marry to bayeux protocol
<epitron> prenup
<gnufied> epitron: prenup ?
<epitron> joke
<gnufied> :-)
robotmay has joined #ruby-lang
<manveru> as long as you can rip your messaging out and replace it later, what's the issue :)
<manveru> can't say i've ever used bayeux
<gnufied> how solid is SSL over websockets these days?
ivanoats has joined #ruby-lang
<manveru> you mean websockets over SSL?
<epitron> hmm.. since it's just upgrading a regular HTTP connection, i assume it would just magically work
<gnufied> manveru: yeah
<manveru> afaik it's way more stable and usable than normal websockets
<manveru> because routers don't mess with it much
<epitron> haha
<epitron> nice
vmoravec has quit [Ping timeout: 276 seconds]
noReligion has quit [Ping timeout: 260 seconds]
vmoravec_ has quit [Ping timeout: 255 seconds]
<epitron> it's like the government -- if it's too sophisticated, they won't get involved. but if it's about the color of the bike shed... GAGGHRHRH
<manveru> i had some stats about it, but that's years old now
rue|w has joined #ruby-lang
<chekcmate> AWWW COME ON
<ggreer> it should be exactly the same. tls wraps tcp
<chekcmate> what? tcp? use x.25!
bzalasky has joined #ruby-lang
<epitron> i used a pulsed temporal encryption scheme over ICMP
<manveru> gnufied: bayeux doesn't look particularly bad...
<ggreer> speaking of which... if anyone has any recommendations for a C library that lets me ssl-wrap non-blocking sockets... I'm all ears
<ggreer> I'm guessing the answer is openssl :/
kain_ is now known as kain
ivanoats has quit [Ping timeout: 252 seconds]
srbaker has quit [Ping timeout: 264 seconds]
<gnufied> manveru: yeah, it doesn't look too bad. I am just annoyed at browsers!
<gnufied> firefox supports CORS over SSE, chrome/webkit doesn't
<gnufied> firefox's XHR2 supports auto splicing of chunked content
<epitron> ggreer: i think this is nonblocking: http://code.google.com/p/go/source/browse/src/pkg/crypto/tls/conn.go :D
<ggreer> hardy har har
<gnufied> i mean, if you are using chunked encoding and with right connection setting it can split data and stuff. chrome/webkit's xhr2 connections keep all data around, until you close the connection
<gnufied> promise of HTML5 is a damned lie! :-)
noReligion has joined #ruby-lang
srbaker has joined #ruby-lang
poga has quit [Remote host closed the connection]
noReligion has quit [Client Quit]
<epitron> i think browsers are just too complicated
<epitron> it's so much work to change things
<epitron> you ever downloaded the chrome source code?
<epitron> it's like 2 gigs
<manveru> chromium you mean... chrome must be even bigger
<epitron> yes.. :)
<epitron> chromium/chrome binaries are basically the same size
<epitron> isn't the major difference the auto-updater in chrome?
<manveru> also builtin flash and codecs
<epitron> pepperflash \o/
<epitron> chromium is linked to ffmpeg
<epitron> i'd imagine they do the same with chrome
<epitron> google probably has to pay license fees tho
<duckinator> should i be concerned that i'm enjoying embedding a ruby interpreter into a language which compiles down to C? :P
<epitron> for h264 or whatnot
<epitron> duckinator: nope! sounds healthy to me!
* epitron goes back to stacking pins
<manveru> duckinator: mruby?
<duckinator> manveru: nope, full out ruby in ooc: https://github.com/duckinator/ooc-ruby/blob/master/samples/test/test.ooc
<manveru> heh, neat
<manveru> i thought embedding ruby has all kinds of issues with locking
<duckinator> only issue i'm having trouble with is that after calling the equivalent of ruby_load_file(), i can't get it to actually *run* that code without segfaulting :P
<duckinator> well i know 1.8 didn't like being outside of the main thread. no clue what 1.9 thinks of that.
<epitron> whoa, OOC lets you monkeypatch types
<epitron> that's very un-C-like
vmoravec_ has joined #ruby-lang
<epitron> or un-static
<duckinator> yea, the name was originally a shortening of 'Object Oriented C', but that doesn't really apply anymore :P
<duckinator> but it compiles down to C and the generated code makes kittens cry
<epitron> i like the pascal variable definitions too
<epitron> like... func(var1, var2: type)
bzalasky has quit [Read error: Connection reset by peer]
bzalasky has joined #ruby-lang
<epitron> def: static func ~seventeenArgs (name: String, fn: Func (RubyValue, RubyValue, RubyValue, RubyValue, RubyValue, RubyValue, RubyValue, RubyValue, RubyValue, RubyValue, RubyValue, RubyValue, RubyValue, RubyValue, RubyValue, RubyValue, RubyValue, RubyValue) -> RubyValue) {
<epitron> lol
<duckinator> there is a reason i put that in a separate file :D
<duckinator> along with the other....17 of them, i believe it is?
<epitron> yep
<manveru> no varargs?
hakunin_ has quit [Remote host closed the connection]
<ggreer> whaat
<duckinator> it has varargs, but not for Funcs that you're passing as an arg
<gnufied> duckinator: so what you are doing with this language? morbid curiosity?
hakunin has joined #ruby-lang
<duckinator> manveru: basically: foo: func(args: ...) {} works, foo: func(fn: Func(args: ...)) { } does not. not sure of the details of that. the workings of Func are the part of the compiler i'm scared to touch ;)
<duckinator> gnufied: basically, yea. using it as an excuse to learn about both ooc/C interop and C/ruby interop at the same time
<ggreer> duckinator: have you looked at how some other languages behave when embeded in C?
<ggreer> (like lua)
<duckinator> i messed with embedding lua and some other thing i can't remember the name of in C++ at one point, but that was like 3 years ago
JonnieCache has quit [Quit: leaving]
<chekcmate> injekt ? mind answering my last regex-problem question? i'm finished except for that one part ^^
<gnufied> chekcmate: you have another regex question?
<chekcmate> well not really regex
<chekcmate> the one expression you guys helped me make
<chekcmate> it does not work with the input it gets, which is weird, because I very similar regexp in other places too and they work flawless
<gnufied> what does input look like?
<chekcmate> line =~ /(open).*(\d{1,3})\z/ && $2.to_i >= 3 and line =~ /write\((\d+)/ && $1.to_i >= 3 for example
<chekcmate> open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
<chekcmate> oh wait, /open.*(\d{1,3})\z/ && $1.to_i >= 3 it is
<chekcmate> though it does not matter
kcassidy has joined #ruby-lang
<gnufied> use a gist may be?
<chekcmate> not even line =~ /open/ works
<gnufied> in any case watch out for \n if you are reading the data from STDIN
<chekcmate> but why are the others working?
<gnufied> \z in regexp only matches for string ending
<chekcmate> ah
<chekcmate> $
<chekcmate> line ending
<chekcmate> learned that yesterday
sandbags has quit [Remote host closed the connection]
<chekcmate> that's it!
<epitron> i have an strace wrapper somewhere
<gnufied> pimp
<gnufied> :-)
<epitron> coderay \o/
<epitron> i could never get the strace output and the stdout to interleave properly, unfortunately
<epitron> some kind of buffering issue
<chekcmate> epitron: heh, some guys here already showed me some, but it's a task I got from my boss in order to learn a bit, tinker around... get used to it
<chekcmate> kinda like that
<chekcmate> i know connected the file-descriptor numbers to each operation
<chekcmate> so you can see which open()-fd points to which write,unlink,read,... op
<epitron> group by fd?
<chekcmate> hm?
<duckinator> since some of you seem to find abusing ruby as fun as i do, i'll leave this before going to bed: https://gist.github.com/4551735 actually works, courtesy of the horrid mess you can find at https://github.com/duckinator/ruby-hashdec/blob/master/lib/hashdec.rb
<chekcmate> epitron: it's only showing open->write,close,... not any other way around
<duckinator> ...i should warn you not to read hashdec.rb before bed. i had nightmares last time i tried that. 'night o/
<chekcmate> night duckinator
<chekcmate> have sweet ruby dreams tehe
<chekcmate> epitron: took a look at your wrapper - stdin/out/err is exactly what I don't want ^^
<epitron> strace outputs to stderr
<epitron> program outputs to stdout
<epitron> it's just a way of distinguishing the output
<chekcmate> er
<chekcmate> no
<epitron> strace is mixing its output together with the program
<chekcmate> not if -ff -o
<epitron> sure
<chekcmate> not sure why I would like to trace strace output?
<chekcmate> maybe I don't really understand what you mean
<epitron> strace program => stdout = program output, stderr = strace messages
<chekcmate> but only FD<3 are std
<chekcmate> 0, 1 and 2
guns has joined #ruby-lang
<epitron> fd 0 is input
<epitron> fd 1 is output
<epitron> fd 2 is err
<chekcmate> yes
<chekcmate> and those are I exclude with .to_i >= 3
<epitron> i think you're getting confused
<epitron> there's two programs
<epitron> one is strace, the other is "program"
<epitron> they both have 3 fds
<chekcmate> you mean the program strace traces, right?
<epitron> but strace is intercepting program's stderr and turning it into stdout
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<epitron> (if i recall correctly)
<chekcmate> what do you want to say then?
<epitron> that's why i'm using open3
<epitron> that's all i was saying :)
workmad3 has joined #ruby-lang
<chekcmate> but what would you miss when ignoring std?
bzalasky has quit [Remote host closed the connection]
<epitron> the program output..
<chekcmate> you only get things like open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 and close(3)
<chekcmate> or write(3, "HI, THIS IS A TEST!", 19) = 19 or things like that
socialcoder has quit []
<epitron> yes, there is redundant output
<epitron> of course, the writes are often broken up
<chekcmate> so if I "see" open("test_file", O_RDWR|O_CREAT|O_APPEND, 0666) = 3 and afterwards write(3, "HI, THIS IS A TEST!", 19) = 19
<epitron> or they'll have newlines in them
<chekcmate> I know that write(3, "HI, THIS IS A TEST!", 19) = 19 wrote into test_file
<epitron> the writes can be truncated too
<epitron> write(3, "blah blah blah blah ...", 293423)
<chekcmate> yes, I know
<epitron> wtf are we talking about
<epitron> i gotta go to bed
<epitron> nite!
<epitron> good luck!
<chekcmate> that's my way of knowing which fd# was used in the operation
<chekcmate> and which file was touched
Miraks has joined #ruby-lang
<chekcmate> nite epitron
JohnBat26 has joined #ruby-lang
endy_c has joined #ruby-lang
<endy_c> What should I do if I receive this error: You have already activated rack 1.5.1, but your Gemfile requires rack 1.4.4. Using bundle exec may solve this. (Gem::LoadError)
cardoni has quit [Quit: cardoni]
srbaker has quit [Ping timeout: 245 seconds]
<epitron> use bundle exec
<chekcmate> go to bed already!
<epitron> i was brushing my teeth!
<epitron> get off my back mom!
<manveru> no, you can't have more milk now
<epitron> ohh, i thought you said go to BREAD
<chekcmate> BRUSH THEM TIDY!
peppyheppy has quit [*.net *.split]
dhruvasagar has quit [*.net *.split]
whowantstolivefo has quit [*.net *.split]
dc5ala has quit [*.net *.split]
sora_h has quit [*.net *.split]
gix has quit [*.net *.split]
x0F has quit [*.net *.split]
jasiek has quit [*.net *.split]
yeltzooo has quit [*.net *.split]
llakey has quit [*.net *.split]
earthquake has quit [*.net *.split]
pbjorklund_ has quit [*.net *.split]
pcboy_ has quit [*.net *.split]
flexd has quit [*.net *.split]
singpolyma has quit [*.net *.split]
scrr has quit [*.net *.split]
floyd2_ has quit [*.net *.split]
beawesomeinstead has quit [*.net *.split]
<endy_c> epitron: i have run bundle update, but I see that it still uses rack 1.4.4, not 1.5.1
srbaker has joined #ruby-lang
* chekcmate likes the new youtube design http://i.imgur.com/0JiCSyR.png
mytrile has quit [Remote host closed the connection]
sora_h has joined #ruby-lang
mytrile has joined #ruby-lang
dhruvasagar has joined #ruby-lang
whowantstolivefo has joined #ruby-lang
dc5ala has joined #ruby-lang
x0F has joined #ruby-lang
peppyheppy has joined #ruby-lang
earthquake has joined #ruby-lang
jasiek has joined #ruby-lang
beawesomeinstead has joined #ruby-lang
llakey has joined #ruby-lang
yeltzooo has joined #ruby-lang
scrr has joined #ruby-lang
pbjorklund_ has joined #ruby-lang
singpolyma has joined #ruby-lang
pcboy_ has joined #ruby-lang
flexd has joined #ruby-lang
gix has joined #ruby-lang
floyd2_ has joined #ruby-lang
aef has quit [Excess Flood]
whowantstolivefo has quit [Max SendQ exceeded]
bzb has joined #ruby-lang
whowantstolivefo has joined #ruby-lang
aef has joined #ruby-lang
GarethAdams has quit [Quit: Leaving...]
GarethAdams has joined #ruby-lang
<workmad3> endy_c: whatever command you're using, do 'bundle exec <command>' instead
<workmad3> endy_c: if 'bundle update' didn't bring you up to 1.5.1, then that means bundler couldn't create a consistent bundle with that version (probably a gem that's locked to ~> 1.4.0 or something)
KillerFox has quit [Ping timeout: 248 seconds]
KillerFox has joined #ruby-lang
dr_bob has joined #ruby-lang
ahf has quit [Quit: Reconnecting]
ahf has joined #ruby-lang
ahf has joined #ruby-lang
<injekt> chekcmate: sorry was at the gym :)
<injekt> one does not simply bundle update
JohnBat26 has quit [Ping timeout: 276 seconds]
havenn has quit [Remote host closed the connection]
MaddinXx has joined #ruby-lang
<chekcmate> injekt: ah, training for my enjoyment, that's ok, heh! Solved the problem, thanks to gnufied
srbaker has quit [Ping timeout: 245 seconds]
JohnBat26 has joined #ruby-lang
<injekt> chekcmate: :)
srbaker has joined #ruby-lang
dhruvasa1ar has quit [Read error: Connection reset by peer]
dhruvasagar has quit [Ping timeout: 244 seconds]
peppyheppy has quit [Quit: peppyheppy]
dhruvasagar has joined #ruby-lang
dhruvasa1ar has joined #ruby-lang
<bzb> help with ruby grammar... http://pastebin.com/jJRyuJAy
sush24 has joined #ruby-lang
srbaker has quit [Ping timeout: 240 seconds]
srbaker has joined #ruby-lang
robotmay_ has joined #ruby-lang
banisterfiend has joined #ruby-lang
robotmay has quit [Ping timeout: 264 seconds]
<injekt> bzb: @layout = "foo" or self.layout = "foo"
lun_ has joined #ruby-lang
matti has joined #ruby-lang
matti has quit [Changing host]
bluepojo has quit [Read error: Connection reset by peer]
stardiviner has quit [Ping timeout: 256 seconds]
bluepojo_ has joined #ruby-lang
kleech has joined #ruby-lang
<kleech> Anyone know of a class which represents just a time (as in a HH:MM clock)?
<whitequark> no such thing
<whitequark> not a class, nor "just a time"
cultureulterior_ has joined #ruby-lang
<whitequark> because, for example, 02:00 + 1.second might be 03:15.
<zenspider> kleech: Time.now should do you fine
<kleech> whitequark: I mean outside of stdlib, e.g a gem. I'll just just a simple class which delegates a subset to a DateTime if not.
EvilJStoker has quit [Excess Flood]
<kleech> I just want less API than Time/DateTime :)
<zenspider> so USE less
<zenspider> Time.now
<zenspider> done
<whitequark> ^ that
<kleech> With respect I don't agree, I don't want the date part of the object to be used further down the line. Somewhere else in the system you pass in an object, it has a date and that gets used instead the correct date (returned by a different method).
<whitequark> kleech: what are you trying to accomplish?
cardoni has joined #ruby-lang
<GarethAdams> Ruby doesn't have one built in, but `class ClockTime < Struct.new(:hour, :minute, :second)` would be a good start
<kleech> GarethAdams: Thats what I'm going to go for.
<zenspider> there is no "date part"
<zenspider> it's just a point in time
<zenspider> and anyone who worries about "used further down the line" probably shouldn't be using ruby to begin with. control issues don't belong here
<kleech> wow
<GarethAdams> Time objects e.g. can't be compared (with > and <) in an intuitive clock-time way if there's a 'hidden' date part
<zenspider> just as easy to use composition instead of reinventing everything `class ClockTime; def initialize; @t = Time.now; end; ... rest of public interface; end`
<zenspider> s/just as easy/easier/
EvilJStoker has joined #ruby-lang
<kleech> I'm using a class which delegates just the "time" related methods to a DateTime object passed in to the constructor
srbaker has quit [Ping timeout: 252 seconds]
lun_ has quit []
Bearproof has joined #ruby-lang
lun_ has joined #ruby-lang
cardoni has quit [Ping timeout: 252 seconds]
sandbags has joined #ruby-lang
srbaker has joined #ruby-lang
matti has quit [Changing host]
matti has joined #ruby-lang
Future[Chimp] has joined #ruby-lang
<chekcmate> regex is EVERYWHERE
shtirlic has joined #ruby-lang
<chekcmate> first sentence tells it
<chekcmate> dang!
<whitequark> (the other answers provide explanations for various reasons it's wrong)
<chekcmate> but docArticles.css("div[id^=result_0] .productTitle").text[/(von([^"]*)\z)/, 2] works
<chekcmate> that's why I thought this might work too
<chekcmate> but after I read what stays after .text... well...
<chekcmate> H̸̡̪̯ͨ͊̽̅̾̎Ȩ̬̩̾͛ͪ̈́̀́͘ ̶̧̨̱̹̭̯ͧ̾ͬC̷̙̲̝͖ͭ̏ͥͮ͟Oͮ͏̮̪̝͍M̲̖͊̒ͪͩͬ̚̚͜Ȇ̴̟̟͙̞ͩ͌͝S̨̥̫͎̭ͯ̿̔̀ͅ
<whitequark> you broke my terminal, you bastard!
<chekcmate> tehe
vesan has quit [Read error: Connection reset by peer]
<thisboy> anybody know of any examples of people using ruby instead of spreadsheets for advanced financial models? i.e. for the planning of complex business operations, the governing of entire countries etc.?
<banisterfiend> thisboy: r u going to govern a country with ruby lulz
<thisboy> curious whether to drop openoffice.org calc and BASIC and go for something like ruby on rails
<injekt> chekcmate: you're using regex for stuff nokogiri can give you already :)
<thisboy> banisterfiend: maybe :P
<chekcmate> injekt: the href?
<banisterfiend> thisboy: strange guy
<injekt> chekcmate: of course
<chekcmate> like instead of .text there is .href?
<injekt> chekcmate: [:href]
<banisterfiend> thisboy: use this API: Country.govern!
<whitequark> thisboy: that is most certainly done with Java and COBOL.
<whitequark> mostly.
<chekcmate> lol banisterfiend
<injekt> href is an attribute, chekcmate. attributes are fetched via obj[:foo]
<thisboy> wakakakaka =)
<injekt> Nokogiri.HTML('<a href="foo">bar</a>').at('a')[:href]
<injekt> => "foo"
<GarethAdams> Ǧ͋͋͋͋͋͌͌͌͌͌͌͌͌͌͌͌͌͌͌͌͌͌ł͋͋͋͋͋͋͌͌͌͌͌͌͌͌͌͌͌͌͌͌͌͌ǐ͋͋͋͋͋͋͋͌͌͌͌͌͌͌͌͌͌͌͌͌͌ť͋͋͋͋͋͋͋͋͌͌͌͌͌͌͌͌͌͌͌͌͌͌č͋͋͋͋͋͋͋͋͋͌͌͌͌͌͌͌͌͌͌͌͌͌ȟ͋͋͋͋͋͋͋͋͋͋͌͌͌͌͌͌͌͌͌͌͌͌
<chekcmate> how about .map { |link| link['href'] }?
<injekt> chekcmate: sure
<chekcmate> probably only 2 out of 235 possible solutions, eh?
<injekt> chekcmate: also, every time you use a camelCase variable name a puppy is killed
<GarethAdams> chekcmate: Ǧ͋͋͋͋͋͌͌͌͌͌͌͌͌͌͌͌͌͌͌͌͌͌ł͋͋͋͋͋͋͌͌͌͌͌͌͌͌͌͌͌͌͌͌͌͌ǐ͋͋͋͋͋͋͋͌͌͌͌͌͌͌͌͌͌͌͌͌͌ť͋͋͋͋͋͋͋͋͌͌͌͌͌͌͌͌͌͌͌͌͌͌č͋͋͋͋͋͋͋͋͋͌͌͌͌͌͌͌͌͌͌͌͌͌ȟ͋͋͋͋͋͋͋͋͋͋͌͌͌͌͌͌͌͌͌͌͌͌
<rue|w> Hm, weird characters
<chekcmate> i didnt do that, that was google!
<injekt> chekcmate: test = docArticles.css
<banisterfiend> GarethAdams: how do i do that crazy shit
<injekt> docArticles wasn't you? ;)
<GarethAdams> teehee
<chekcmate> ah that is meant+
vesan has joined #ruby-lang
<chekcmate> i thought the link stuff
<chekcmate> GarethAdams: What are these thing called?
<GarethAdams> no idea
lajlev has joined #ruby-lang
<injekt> chekcmate: links = doc.css('.productTitle').map { |a| a[:href] }
lajlev has quit [Client Quit]
<heftig> chekcmate: combining diacritical marks
sush24 has quit [Quit: This computer has gone to sleep]
<heftig> most of those in the above text are Unicode Character 'COMBINING HOMOTHETIC ABOVE' (U+034B)
carloslopes has joined #ruby-lang
<chekcmate> heftig: thanks!
gnufied has quit [Quit: Leaving.]
srbaker has quit [Ping timeout: 248 seconds]
<chekcmate> link = docArticles.css("div[id^=result_0] .productTitle").map { |a| a[:href] } doesn't work, injekt
Miraks has quit []
<chekcmate> ah my mistake
<injekt> there's no need for the div stuff btw
poga has joined #ruby-lang
srbaker has joined #ruby-lang
<injekt> just .productTitle is fine
robbyoconnor has joined #ruby-lang
<chekcmate> injekt: hm, I get an array back with the length of 1 in both cases
<chekcmate> but it's [nil]
<injekt> can you show the full code?
<chekcmate> ok
<chekcmate> gtg, brb 46min
<chekcmate> sry
<chekcmate> cboss
<injekt> how specific
mytrile has quit [Remote host closed the connection]
endy_c has quit [Quit: ChatZilla 0.9.89 [Firefox 18.0.1/20130116073211]]
gnufied has joined #ruby-lang
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
ivanoats has joined #ruby-lang
adambeynon has joined #ruby-lang
rsl has joined #ruby-lang
shtirlic has quit [Remote host closed the connection]
ryez has quit [Ping timeout: 245 seconds]
<rue|w> Going to hold him to that
<rue|w> That’ll learn’m to estimate
<whitequark> what is that quote you're using
<whitequark> oh right, apostrophe.
ivanoats has quit [Ping timeout: 248 seconds]
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
tdy has quit [Ping timeout: 256 seconds]
thejspr__ has left #ruby-lang [#ruby-lang]
banisterfiend has quit [Remote host closed the connection]
sepp2k1 has quit [Remote host closed the connection]
xcombelle has joined #ruby-lang
Bearproof has quit [Quit: Leaving.]
madish has joined #ruby-lang
jxie has quit [Quit: leaving]
carloslopes has quit [Remote host closed the connection]
shtirlic has joined #ruby-lang
Kuifje has joined #ruby-lang
Kuifje has quit [Changing host]
Kuifje has joined #ruby-lang
mytrile has joined #ruby-lang
tdy has joined #ruby-lang
lun_ has quit [Read error: Connection reset by peer]
lun_ has joined #ruby-lang
<chekcmate> injekt: sorry, my boss called :)
mytrile has quit [Ping timeout: 255 seconds]
dhruvasagar has quit [Ping timeout: 248 seconds]
dhruvasa1ar has quit [Ping timeout: 240 seconds]
krz has quit [Quit: krz]
lun__ has joined #ruby-lang
lun_ has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby-lang
dhruvasa1ar has joined #ruby-lang
srbaker has quit [Ping timeout: 256 seconds]
srbaker has joined #ruby-lang
shtirlic has quit [Read error: Connection reset by peer]
wwerrt has joined #ruby-lang
shtirlic_ has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 240 seconds]
dhruvasa1ar has quit [Ping timeout: 255 seconds]
dhruvasagar has joined #ruby-lang
dhruvasa1ar has joined #ruby-lang
AndChat| has joined #ruby-lang
Banistergalaxy has quit [Ping timeout: 264 seconds]
wwerrt has quit [Ping timeout: 245 seconds]
guns has quit [Quit: guns]
shtirlic_ has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 252 seconds]
dhruvasa1ar has quit [Ping timeout: 252 seconds]
agile has quit [Ping timeout: 248 seconds]
dhruvasagar has joined #ruby-lang
dhruvasa1ar has joined #ruby-lang
agile has joined #ruby-lang
rue|w has quit [Read error: Connection reset by peer]
carloslopes has joined #ruby-lang
nyuszika7h has quit [Remote host closed the connection]
adambeynon has quit [Quit: Computer has gone to sleep.]
noop has quit [Remote host closed the connection]
agile has quit [Ping timeout: 245 seconds]
nyuszika7h has joined #ruby-lang
tdy has quit [Ping timeout: 255 seconds]
vlad_starkov has joined #ruby-lang
lcdhoffman has joined #ruby-lang
Kosova has joined #ruby-lang
kcassidy has left #ruby-lang [#ruby-lang]
srbaker has quit [Ping timeout: 252 seconds]
Kosova has left #ruby-lang [#ruby-lang]
srbaker has joined #ruby-lang
dustint has joined #ruby-lang
dustint has quit [Read error: Connection reset by peer]
jtoy has joined #ruby-lang
dustint has joined #ruby-lang
<injekt> rue: did you time it?
chekcmate has quit [Quit: Page closed]
tdy has joined #ruby-lang
chekcmate has joined #ruby-lang
jtoy has quit [Client Quit]
stiang has joined #ruby-lang
srbaker has quit [Ping timeout: 248 seconds]
mjolk has joined #ruby-lang
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
shtirlic has joined #ruby-lang
srbaker has joined #ruby-lang
cardoni has joined #ruby-lang
<imperator> bonjour
yalue has joined #ruby-lang
<mjolk> yo
cardoni has quit [Ping timeout: 248 seconds]
<yorickpeterse> for those that are interested in the signing debate, take a look at this page: https://github.com/rubygems-trust/rubygems.org/wiki/X509-vs-OpenPGP (and the project as a whole)
<yorickpeterse> Also, if you know any crypto nerds please introduce them, we could use the help
ngc has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 264 seconds]
dhruvasa1ar has quit [Ping timeout: 260 seconds]
Stilo has joined #ruby-lang
retro|cz has quit [Ping timeout: 252 seconds]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
<workmad3> yorickpeterse: I just dropped an email to a guy I know who knows a fair bit about crypto, don't know if he's got free time though
sush24 has joined #ruby-lang
<yorickpeterse> awesome
<chekcmate> hi yorickpeterse
mistym has quit [Remote host closed the connection]
<workmad3> yorickpeterse: I pointed him @ #rubygems if he's interested though, I guess that's about right? (I've started lurking in there :) )
ngc has quit [Ping timeout: 245 seconds]
<yorickpeterse> #rubygems-trust is preferred
<workmad3> ok, I'll redirect if I get a positive response then :)
<yorickpeterse> Thanks
<yorickpeterse> I'm tempted to shoot an Email to Bruce Schneier as well
<yorickpeterse> Seeing he knows a fuckton about this stuff
<darix> yorickpeterse: did you mail the guy who wrote this new crypto lib for ruby?
mytrile has joined #ruby-lang
<yorickpeterse> Hm, didn't even know of that
<darix> now you do! :D
<oddmunds> he did a talk on it semi recently
sailias has joined #ruby-lang
whowantstolivefo has left #ruby-lang ["gone with the wind"]
<yorickpeterse> darix: so does this support multiple algos or does it roll its own?
<yorickpeterse> it's not clear to me what exactly it does
<darix> yorickpeterse: it is explained in length in the blog post i linked :p
<yorickpeterse> it talks about "cross playform crypto", I don't see any algos mentioned
yfeldblum has quit [Ping timeout: 256 seconds]
<yorickpeterse> Hm, it seems to be a wrapper
workmad3_ has joined #ruby-lang
tbuehlmann has quit [Remote host closed the connection]
banister_ has joined #ruby-lang
<yorickpeterse> whitequark: oi, can you put your logger in #rubygems-trust? It saves us the trouble of having to upload logs in the future
<yorickpeterse> and if it's possible I'd be happy to provide an existing log to import into it
workmad3 has quit [Ping timeout: 245 seconds]
tbuehlmann has joined #ruby-lang
mjolk has quit [Quit: Leaving]
mjolk has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
workmad3 has joined #ruby-lang
Swimming_Bird has quit [Quit: Computer has gone to sleep.]
slyphon has joined #ruby-lang
srbaker has quit [Ping timeout: 240 seconds]
chekcmate has quit [Quit: Page closed]
workmad3_ has quit [Ping timeout: 255 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
chekcmate has joined #ruby-lang
* chekcmate just read "Don’t rescue Exception. EVER. or I will stab you."
srbaker has joined #ruby-lang
* chekcmate rescued Exception not only once... oh oh
sush24_ has joined #ruby-lang
vlad_starkov has joined #ruby-lang
<chekcmate> zenspider: please don't stab me, I'll learn how to do it better heh
tomzx_mac has joined #ruby-lang
<injekt> :)
<chekcmate> he means rescuing that "general" Exception, does he?
<chekcmate> like: rescue Exception => e?
<GarethAdams> unless you only log it and `raise` it again immediately
sandbags has quit [Remote host closed the connection]
<imperator> chekcmate, got a link?
<injekt> chekcmate: rescuing 'Exception' is bad because it's the root of rubys exception hierarchy
rippa has joined #ruby-lang
sush24 has quit [Ping timeout: 252 seconds]
<injekt> chekcmate: so it'll rescue SystemExit, LoadError and other stuff you wouldn't want to rescue
<chekcmate> injekt: better explicitly tell which exception to rescue, I assume?
* imperator disagrees
<injekt> chekcmate: exactly
<injekt> doing `rescue` with no exception rescues from StandardError
<injekt> which is much better than just Exception
<chekcmate> ahhh
<imperator> the problem isnt' rescuing Exception, the problem is swalling exceptions, doesn't matter what type they are
<chekcmate> yes
sush24_ has quit [Read error: Connection reset by peer]
<imperator> i do it rarely, but there are times when it's necessary
<chekcmate> so what would be the best way?
<injekt> list exceptions you're catching
<chekcmate> and process them seperately and explicit?
<chekcmate> so basically like in most other langs too
<GarethAdams> if you rescue `Exception`, you can't process it correctly because you don't know what kind of exception you have
<injekt> if you have that many exceptions being throw im gonna go ahead and guess you have way too much in a single block
<chekcmate> no, I mean rescue "all" the exceptions "my" program could throw
<injekt> separate blocks into methods and rescue where needed
<GarethAdams> chekcmate: if you're rescuing all those exceptions, why are they being raised in the first place?
sush24 has joined #ruby-lang
<chekcmate> i'm not rescuing anything, I just found this "Exception => e" on some tutorials page
<imperator> yorickpeterse, huh, looks like no one has ever wrapped the windows crytpo libs
<chekcmate> and thought "oh well, lets use it until someone tells me not top"
<chekcmate> *-p
<injekt> chekcmate: well now you've been told :D
* imperator was reading the "krypt" post
<chekcmate> injekt: yea :) seems like my way of learning works hah
lun__ has quit [Ping timeout: 255 seconds]
<yorickpeterse> imperator: probably good reasons for that :)
bradland has joined #ruby-lang
sush24 has quit [Client Quit]
<imperator> well, if he wants to use the "native" backend stuff, it will have to be done
<imperator> maybe he already has, haven't looked at the reop
<imperator> oops, github is behaving badly...
<chekcmate> why is github lagging?
slyphon has quit [Ping timeout: 246 seconds]
srbaker has quit [Ping timeout: 256 seconds]
<injekt> it's just you
<injekt> or maybe it's just not me
<injekt> who knows
sush24 has joined #ruby-lang
<chekcmate> works again
cardoni has joined #ruby-lang
<chekcmate> now I also have an account!
slyphon has joined #ruby-lang
<imperator> why is my xchat randomly putting text in bold? it is a mystery
yfeldblum has joined #ruby-lang
srbaker has joined #ruby-lang
<chekcmate> imperator: maybe only words your ISP will capture in order to prevent you from terroristic acts!
cored has quit [Ping timeout: 264 seconds]
gnufied has quit [Quit: Leaving.]
s1n4 has joined #ruby-lang
cardoni has quit [Ping timeout: 264 seconds]
unlikely_monkey has joined #ruby-lang
s1n4 has quit [Client Quit]
<imperator> pssh, i'm behind 7 proxies
<chekcmate> imperator: :o
grough has joined #ruby-lang
<chekcmate> I have not expected less, from out imperator ! Hail Rome!
lun_ has joined #ruby-lang
Swimming_Bird has joined #ruby-lang
workmad3_ has joined #ruby-lang
tomzx_mac has quit [Ping timeout: 256 seconds]
nkr has joined #ruby-lang
* chekcmate will now leave and learn about Enumerables... Bye & have a nice weekend, folks!
chekcmate has quit [Quit: Page closed]
shtirlic has quit [Read error: Connection reset by peer]
shtirlic has joined #ruby-lang
workmad3 has quit [Ping timeout: 260 seconds]
srbaker has quit [Ping timeout: 276 seconds]
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
srbaker has joined #ruby-lang
slyphon has quit [Ping timeout: 252 seconds]
osaut has quit [Read error: Operation timed out]
gnufied has joined #ruby-lang
cored has quit [Ping timeout: 240 seconds]
mistym has quit [Remote host closed the connection]
workmad3_ has quit [Ping timeout: 276 seconds]
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
workmad3 has joined #ruby-lang
chimkan has joined #ruby-lang
osaut has joined #ruby-lang
andreal has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
__BigO__ has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
jtoy has joined #ruby-lang
melter has quit [Remote host closed the connection]
slyphon has joined #ruby-lang
unlikely_monkey has quit [Remote host closed the connection]
blazes816 has quit [Quit: blazes816]
crudson has joined #ruby-lang
crudson1 has quit [Ping timeout: 256 seconds]
slyphon_ has joined #ruby-lang
srbaker has quit [Ping timeout: 260 seconds]
jtoy has quit [Ping timeout: 276 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
jesfre has joined #ruby-lang
srbaker has joined #ruby-lang
vlad_starkov has joined #ruby-lang
outoftime has joined #ruby-lang
slyphon has quit [Ping timeout: 276 seconds]
slyphon_ is now known as slyphon
Rarrikins has joined #ruby-lang
Rarrikins_v has quit [Ping timeout: 256 seconds]
melter has joined #ruby-lang
cordax has joined #ruby-lang
lcdhoffman has joined #ruby-lang
ryanv-raptor has joined #ruby-lang
cardoni has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
Future[Chimp] has quit [Ping timeout: 252 seconds]
methods has joined #ruby-lang
cardoni has quit [Ping timeout: 245 seconds]
forrest has joined #ruby-lang
methods has left #ruby-lang [#ruby-lang]
banister_ has quit [Remote host closed the connection]
carloslopes has quit [Remote host closed the connection]
Future[Chimp] has joined #ruby-lang
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
postmodern has quit [Quit: Leaving]
carloslopes has joined #ruby-lang
erichmenge has quit [Quit: Arrivederci!]
methods has joined #ruby-lang
methods has left #ruby-lang [#ruby-lang]
erichmenge has joined #ruby-lang
setmeaway has joined #ruby-lang
xcombelle has quit [Remote host closed the connection]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
vmoravec_ has quit [Quit: Leaving]
vlad_starkov has quit [Read error: Connection reset by peer]
cordax has quit [Quit: Computer has gone to sleep.]
vlad_starkov has joined #ruby-lang
jerikl has joined #ruby-lang
cored has quit [Ping timeout: 264 seconds]
jgv has joined #ruby-lang
maxmanders has quit [Quit: Computer has gone to sleep.]
maxmanders has joined #ruby-lang
maxmanders has quit [Client Quit]
jrafanie has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
nirc_trial has joined #ruby-lang
maxmanders has joined #ruby-lang
nirc_trial has quit [Remote host closed the connection]
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
nXqd has quit [Read error: Operation timed out]
dhruvasagar has joined #ruby-lang
dhruvasa1ar has joined #ruby-lang
banisterfiend has joined #ruby-lang
nXqd has joined #ruby-lang
jgv has quit [Quit: Computer has gone to sleep.]
madish_ has joined #ruby-lang
brian_amicus has joined #ruby-lang
jonahR has joined #ruby-lang
madish has quit [Ping timeout: 252 seconds]
grough has quit [Quit: Computer has gone to sleep.]
krohrbaugh has quit [Ping timeout: 264 seconds]
srbaker has quit [Ping timeout: 276 seconds]
madish has joined #ruby-lang
srbaker has joined #ruby-lang
madish has quit [Client Quit]
madish_ has quit [Ping timeout: 264 seconds]
jxie has joined #ruby-lang
lun_ has quit [Remote host closed the connection]
djbender has joined #ruby-lang
djbender has quit [Client Quit]
rins has joined #ruby-lang
djbender has joined #ruby-lang
AndChat| has quit [Ping timeout: 245 seconds]
andreal has quit [Quit: Leaving]
gnufied has quit [Quit: Leaving.]
jtoy has joined #ruby-lang
brimil01 has joined #ruby-lang
srbaker has quit [Ping timeout: 252 seconds]
totallymike has left #ruby-lang [#ruby-lang]
cored has quit [Ping timeout: 245 seconds]
nazty has quit [Ping timeout: 248 seconds]
srbaker has joined #ruby-lang
Banistergalaxy has joined #ruby-lang
bluepojo_ has quit [Remote host closed the connection]
carloslopes has quit [Remote host closed the connection]
srbaker has quit [Ping timeout: 240 seconds]
srbaker has joined #ruby-lang
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
sandbags has joined #ruby-lang
jesfre has quit [Ping timeout: 255 seconds]
sn0wb1rd has quit [Quit: sn0wb1rd]
srbaker has quit [Client Quit]
vbatts|work has joined #ruby-lang
srbaker has joined #ruby-lang
banisterfiend has quit [Remote host closed the connection]
bryno has quit [Quit: brb]
gnufied has joined #ruby-lang
dr_bob has quit [Read error: Connection reset by peer]
mercwithamouth has joined #ruby-lang
mephux has quit [Excess Flood]
Stilo has joined #ruby-lang
rue_XIV has joined #ruby-lang
osaut has quit [Read error: Operation timed out]
cordax has joined #ruby-lang
GarethAdams has quit [Quit: Leaving...]
chimkan___ has joined #ruby-lang
cored has joined #ruby-lang
rue has quit [Ping timeout: 245 seconds]
mephux has joined #ruby-lang
alvaro_o has joined #ruby-lang
__butch__ has joined #ruby-lang
chimkan has quit [Ping timeout: 260 seconds]
chimkan___ is now known as chimkan
stardiviner has joined #ruby-lang
carloslopes has joined #ruby-lang
chimkan has quit [Ping timeout: 244 seconds]
nazty has joined #ruby-lang
sn0wb1rd has joined #ruby-lang
erichmenge_ has joined #ruby-lang
zmack has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 246 seconds]
erichmenge has quit [Ping timeout: 245 seconds]
erichmenge_ is now known as erichmenge
thisboy has left #ruby-lang [#ruby-lang]
jgv has joined #ruby-lang
srbaker has quit [Ping timeout: 252 seconds]
dustint has quit [Remote host closed the connection]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
jfelchner has joined #ruby-lang
srbaker has joined #ruby-lang
bryno has joined #ruby-lang
blazes816 has joined #ruby-lang
stiang has quit [Quit: stiang]
zhul_mechanos has joined #ruby-lang
lun_ has joined #ruby-lang
sailias has quit [Ping timeout: 245 seconds]
glebm has joined #ruby-lang
bantic has joined #ruby-lang
lun_ has quit [Read error: Connection reset by peer]
jerikl has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
stiang has joined #ruby-lang
stiang has quit [Client Quit]
bzb has quit [Quit: Leaving]
gregmoreno has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
osaut has joined #ruby-lang
vlad_starkov has joined #ruby-lang
shaman42 has quit [Ping timeout: 245 seconds]
sailias has joined #ruby-lang
Drew has joined #ruby-lang
cyndis has quit [Quit: No Ping reply in 180 seconds.]
cyndis has joined #ruby-lang
Drew has left #ruby-lang [#ruby-lang]
cored has quit [Ping timeout: 276 seconds]
nXqd has quit [Ping timeout: 264 seconds]
havenn has joined #ruby-lang
shaman42 has joined #ruby-lang
kleech has quit [Remote host closed the connection]
nXqd has joined #ruby-lang
poga has quit [Remote host closed the connection]
dc5ala has quit [Quit: Ex-Chat]
krohrbaugh has joined #ruby-lang
soypirate has joined #ruby-lang
jacktrick has joined #ruby-lang
maxmanders has quit [Quit: Computer has gone to sleep.]
dustint has joined #ruby-lang
chimkan_ has joined #ruby-lang
lcdhoffman has joined #ruby-lang
tbuehlmann has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
cardoni has joined #ruby-lang
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
towski has joined #ruby-lang
peppyheppy has joined #ruby-lang
ttilley has joined #ruby-lang
jacktrick has quit [Quit: Leaving]
gregmoreno has quit [Ping timeout: 245 seconds]
spinagon has joined #ruby-lang
gregmoreno has joined #ruby-lang
benanne has joined #ruby-lang
rippa has quit [Read error: Connection reset by peer]
Bearproof has joined #ruby-lang
cultureulterior_ has quit [Quit: cultureulterior_]
neocoin has quit [Remote host closed the connection]
banisterfiend has joined #ruby-lang
cored has quit [Ping timeout: 246 seconds]
Mon_Ouie has quit [Ping timeout: 256 seconds]
robotmay_ has quit [Remote host closed the connection]
towski has quit [Ping timeout: 276 seconds]
shtirlic has quit [Remote host closed the connection]
techlife has quit [Ping timeout: 272 seconds]
madish has joined #ruby-lang
<yorickpeterse> In unrelated news, I managed to hack together a very basic Rubygems mirror that requires nothing but an HTTP server
Bearproof has left #ruby-lang [#ruby-lang]
<gnufied> awesome!
<yorickpeterse> Now I just need to turn this "pair brogramming code" into actual code
wyhaines has quit [Remote host closed the connection]
techlife has joined #ruby-lang
techlife has quit [Max SendQ exceeded]
dhruvasa1ar has quit [Ping timeout: 245 seconds]
techlife has joined #ruby-lang
techlife has quit [Max SendQ exceeded]
dhruvasagar has quit [Ping timeout: 252 seconds]
techlife has joined #ruby-lang
techlife has quit [Max SendQ exceeded]
techlife has joined #ruby-lang
techlife has quit [Max SendQ exceeded]
techlife has joined #ruby-lang
techlife has quit [Max SendQ exceeded]
lcdhoffman has quit [Quit: lcdhoffman]
techlife has joined #ruby-lang
techlife has quit [Max SendQ exceeded]
techlife has joined #ruby-lang
techlife has quit [Max SendQ exceeded]
techlife has joined #ruby-lang
techlife has quit [Max SendQ exceeded]
mrsolo has joined #ruby-lang
techlife has joined #ruby-lang
techlife has quit [Max SendQ exceeded]
krohrbaugh has quit [Read error: Connection reset by peer]
hahuang65 has joined #ruby-lang
techlife has joined #ruby-lang
krohrbaugh has joined #ruby-lang
<ryanv-raptor> no, god no…brogramming
<wmoxam> why not bra?
<yorickpeterse> haha
<yorickpeterse> Well, we did brink beer
<yorickpeterse> * drink
<yorickpeterse> We didn't wear sunglasses though
<ryanv-raptor> while I'll admit beer+programming is good
<ryanv-raptor> brogramming just sounds awful
<ryanv-raptor> should be "beergramming"
gustavnils has joined #ruby-lang
<yorickpeterse> well sorr Mr Raptor
<yorickpeterse> * Sorry
<yorickpeterse> ffs, lag
* yorickpeterse shouldn't use IRC over train wifi
kmlawson has quit [Quit: kmlawson]
<wmoxam> what is the readable version of $1 in Ruby?
<ryanv-raptor> I just read that slashdot article this morning about brogramming
<wmoxam> I want to avoid magic vars
<ryanv-raptor> made me cringe
<wmoxam> ryanv-raptor: 1998 called, it wants its tech news site back
<wmoxam> ;)
kmlawson has joined #ruby-lang
<ryanv-raptor> yeah yeah
lcdhoffman has joined #ruby-lang
<ryanv-raptor> I still read slashdot…all the cool kids seem to be on reddit nowadays
Bearproof has joined #ruby-lang
__butch__ has quit [Quit: Leaving.]
gnufied has quit [Quit: Leaving.]
<wmoxam> ryanv-raptor: that was 4 years ago, then HN was the place
<wmoxam> now I dunno if there's a good one left
<wmoxam> I have hope for lobste.rs
mjolk is now known as spacemilk
Bearproof has quit [Quit: Leaving.]
BigFatFatty has joined #ruby-lang
spacemilk is now known as spacedog
spacedog is now known as spacemilk
sullenel has joined #ruby-lang
sullenel has quit [Client Quit]
brian_amicus has quit [Remote host closed the connection]
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
workmad3 has joined #ruby-lang
cored_ has joined #ruby-lang
io_syl has joined #ruby-lang
cored has quit [Read error: Connection reset by peer]
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
jtoy has quit [Remote host closed the connection]
xcombelle has joined #ruby-lang
peppyheppy has quit [Quit: peppyheppy]
Bearproof has joined #ruby-lang
<ryanv-raptor> I read slashdot to lament about the future of humanity
<ryanv-raptor> when I read the comments
brian_amicus has joined #ruby-lang
wallerdev has joined #ruby-lang
<mistym> I read https://twitter.com/shit_hn_says to lament about the future of humanity
Rarrikins has quit [Ping timeout: 252 seconds]
s1n4 has joined #ruby-lang
chimkan_ has quit [Quit: chimkan_]
krohrbaugh has quit [Read error: Connection reset by peer]
krohrbaugh has joined #ruby-lang
spacemilk is now known as spacekitten
Rarrikins has joined #ruby-lang
spacekitten is now known as Spacehost
Spacehost is now known as Space6host|cloud
Space6host|cloud is now known as spacemjolk
<yorickpeterse> So I need a name for my Rubygems mirror, anybody got any suggestions?
<yorickpeterse> "rubygems-mirror" is to meh and doesn't make for a nice CLI name
<Smol> wmoxam: /regex/.match('str') returns a MatchData object
Bearproof has left #ruby-lang [#ruby-lang]
soypirate has quit [Ping timeout: 245 seconds]
<Smol> which acts like an array of matches
carloslopes has quit [Remote host closed the connection]
<ryanv-raptor> gemirror
<ryanv-raptor> idk
<yorickpeterse> hm, maybe there's some Japanese word for it
<Smol> gemakase
<rondale_sc> yorickpeterse: try wordoid.com
<yorickpeterse> hahaha, I was waiting for an omakase pun
<yorickpeterse> rondale_sc: oooh
<darix> yorickpeterse: "gem mirror"?
<yorickpeterse> hm, wordnik might be another idea
<yorickpeterse> darix: doesn't make for a nice CLI name
<yorickpeterse> All I could come up with was "rmirror"
<yorickpeterse> and that types like balls
spacemjolk is now known as mjolk
<darix> yorickpeterse: just make it a subcommand of "gem" instead of being too fancy
brian_amicus has quit [Ping timeout: 252 seconds]
<yorickpeterse> darix: I have more than one command
<yorickpeterse> and they'd probably conflict with existing commands
slyphon_ has joined #ruby-lang
<mistym> kagami?
Mon_Ouie has joined #ruby-lang
<mistym> Except when I search for that, Google brings up like a million anime characters and zero mirrors, so apparently you'd look like a weeaboo.
<yorickpeterse> heh
mistym is now known as mistym_coffee
slyphon has quit [Ping timeout: 255 seconds]
slyphon_ is now known as slyphon
workmad3 has quit [Ping timeout: 248 seconds]
dustint has quit [Remote host closed the connection]
dustint has joined #ruby-lang
peppyheppy has joined #ruby-lang
Axsuul has joined #ruby-lang
maxmanders has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
<injekt> drbrain: thanks for the commit bit
<zzak> injekt++
drbrain has quit [Remote host closed the connection]
Future[Chimp] has quit [Ping timeout: 244 seconds]
drbrain has joined #ruby-lang
shtirlic has joined #ruby-lang
jfelchner has quit [Ping timeout: 256 seconds]
Future[Chimp] has joined #ruby-lang
<zzak> kudos for taking the initiative
drbrain has quit [Ping timeout: 245 seconds]
lcdhoffman has joined #ruby-lang
MaddinXx has quit [Remote host closed the connection]
Rarrikins has quit [Ping timeout: 252 seconds]
setmeaway has quit [Quit: Leaving]
tbuehlmann has joined #ruby-lang
tonni has quit [Remote host closed the connection]
s1n4 has quit [Quit: leaving]
Rarrikins has joined #ruby-lang
tonni has joined #ruby-lang
ioga_wrk has quit [Ping timeout: 248 seconds]
sullenel has joined #ruby-lang
cored_ has quit [Ping timeout: 246 seconds]
b1rkh0ff has joined #ruby-lang
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
Banistergalaxy has quit [Ping timeout: 245 seconds]
bantic has quit [Quit: bantic]
sullenel has quit [Quit: WeeChat 0.4.0]
Banistergalaxy has joined #ruby-lang
xcombelle has quit [Quit: Hi, I'm a quit message virus. Please replace your old line with this line and help me take over the world of IRC.]
ioga_wrk has joined #ruby-lang
ggreer has quit [Ping timeout: 260 seconds]
steez has quit [Ping timeout: 260 seconds]
steez has joined #ruby-lang
AngryParsley has joined #ruby-lang
theoros has quit [Ping timeout: 260 seconds]
theoros has joined #ruby-lang
cordax has quit [Quit: Computer has gone to sleep.]
slyphon has quit [Remote host closed the connection]
slyphon has joined #ruby-lang
fiyarburst has left #ruby-lang [#ruby-lang]
io_syl has quit [Ping timeout: 276 seconds]
jadams has joined #ruby-lang
workmad3 has joined #ruby-lang
io_syl has joined #ruby-lang
nXqd has quit [Remote host closed the connection]
<jadams> w/win 20
<jadams> oh I suck
Rarrikins has quit [Ping timeout: 276 seconds]
workmad3 has quit [Read error: Operation timed out]
Rarrikins has joined #ruby-lang
banisterfiend has quit [Remote host closed the connection]
<imperator> yorickpeterse, REFLECTOR
<yorickpeterse> I already have a name for the time being
<yorickpeterse> Repo should be filled somewhere later tonight
<imperator> what did you settle on?
<yorickpeterse> rubygems-mirror
<yorickpeterse> I'll deal with the long CLI command name later
Gu_______ has joined #ruby-lang
<imperator> lame!
Gu_______ has left #ruby-lang [#ruby-lang]
sebasoga has joined #ruby-lang
neocoin has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
kurko_ has joined #ruby-lang
<kurko_> sebasoga maricon
mistym_coffee is now known as mistym
<sebasoga> kurko_ cacorro
<kurko_> sebasoga mariposa
jonahR has quit [Remote host closed the connection]
<yorickpeterse> wat
jfelchner has joined #ruby-lang
jonahR has joined #ruby-lang
glebm has quit [Quit: Computer has gone to sleep.]
swav has quit [Remote host closed the connection]
sullenel has joined #ruby-lang
sullenel has quit [Client Quit]
havenn is now known as havenwood
sullenel has joined #ruby-lang
banisterfiend has joined #ruby-lang
osaut has quit [Quit: osaut]
slyphon_ has joined #ruby-lang
slyphon has quit [Read error: Connection reset by peer]
slyphon_ is now known as slyphon
Rarrikins has quit [Ping timeout: 264 seconds]
Future[Chimp] has quit [Ping timeout: 256 seconds]
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
glebm has joined #ruby-lang
mercwithamouth has quit [Ping timeout: 244 seconds]
Future[Chimp] has joined #ruby-lang
mephux has quit [Excess Flood]
imajes has quit [Excess Flood]
mephux has joined #ruby-lang
imajes has joined #ruby-lang
sailias has quit [Ping timeout: 264 seconds]
ryanf has joined #ruby-lang
Future[Chimp] has quit [Quit: Leaving]
lun_ has joined #ruby-lang
Kuifje has quit [Read error: Connection reset by peer]
toretore has quit [Quit: Leaving]
havenwood has quit [Remote host closed the connection]
cirenyc has joined #ruby-lang
havenwood has joined #ruby-lang
<yorickpeterse> injekt: is it possible to display something like "Options:" above the list of options in Slop?
<injekt> yorickpeterse: separator: "Options: "
<injekt> yorickpeterse: just like with optparse
<yorickpeterse> sweet
havenwood has quit [Ping timeout: 264 seconds]
<ericwood> I'm annoyed, I'm trying to load an object with Marshal.load and get this: invalid encoding symbol (EncodingError)
workmad3 has joined #ruby-lang
<injekt> ericwood: did you force the encoding of the dumped object?
neocoin has quit [Remote host closed the connection]
sailias has joined #ruby-lang
<ericwood> injekt: I think this may have to do with writing in jruby and reading in 1.9.3...
<ericwood> d'oh
__BigO__ has quit [Remote host closed the connection]
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
<yorickpeterse> Organization question: a template directory (with template files/directories), would that go in ./lib/gem-name?
Rarrikins has joined #ruby-lang
tbuehlmann has quit [Remote host closed the connection]
shtirlic has quit [Remote host closed the connection]
almost9 has joined #ruby-lang
tbuehlmann has joined #ruby-lang
drbrain has joined #ruby-lang
Bearproof has joined #ruby-lang
krohrbaugh has quit [Quit: Leaving.]
krohrbaugh has joined #ruby-lang
Bearproof has quit [Client Quit]
almost9 has quit [Remote host closed the connection]
mercwithamouth has joined #ruby-lang
__BigO__ has joined #ruby-lang
tdy has quit [Read error: Connection reset by peer]
tdy has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
__butch__ has joined #ruby-lang
Rarrikins_l has joined #ruby-lang
Rarrikins has quit [Ping timeout: 256 seconds]
Nisstyre has quit [Ping timeout: 255 seconds]
swav has joined #ruby-lang
neocoin has joined #ruby-lang
tbuehlmann has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
swav has quit [Ping timeout: 264 seconds]
vbatts|work has quit [Quit: MeSoChatty 0.3.8]
carloslopes has joined #ruby-lang
sailias has quit [Ping timeout: 245 seconds]
sulo has joined #ruby-lang
__BigO__ has quit [Remote host closed the connection]
nkr has quit [Quit: Linkinus - http://linkinus.com]
bluepojo has joined #ruby-lang
snk has quit [Quit: rebooooooot]
sn0wb1rd has quit [Quit: sn0wb1rd]
AngryParsley has quit [Changing host]
AngryParsley has joined #ruby-lang
AngryParsley is now known as ggreer
thone has joined #ruby-lang
blacktulip has quit [Remote host closed the connection]
krohrbaugh has quit [Quit: Leaving.]
havenwood has joined #ruby-lang
thone_ has quit [Ping timeout: 264 seconds]
snk has joined #ruby-lang
yalue has quit [Quit: Leaving]
sn0wb1rd has joined #ruby-lang
<bcardarella> io/console is part of the ruby stdlib, right?
<mistym> bcardarella: Yes, as of 1.9.3
<bcardarella> ok, that is the issue. Guy with 1.9.2 isn't getting it
<bcardarella> thank you
carloslopes has quit [Remote host closed the connection]
slyphon_ has joined #ruby-lang
sandbags has quit [Remote host closed the connection]
slyphon_ has quit [Client Quit]
bradland has quit [Quit: bradland]
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
sandbags has joined #ruby-lang
<bcardarella> mistym: do you happen to know if the io-console gem is OK for 1.9.3 or do I have to selectively set the gem dependency?
slyphon has quit [Ping timeout: 252 seconds]
wyhaines has joined #ruby-lang
<mistym> bcardarella: Afraid I don't know; I've never used the gem.
<mistym> The gem is by nobu and the homepage is ruby-lang.org, so I'm going to assume it's a pure duplicate of the builtin functionality from 1.9.3. I'd suggest selectively setting the dependency based on that, but maybe worth testing?
cored has quit [Read error: Operation timed out]
cultureulterior_ has joined #ruby-lang
<bcardarella> good enough for me!
cultureulterior_ has quit [Client Quit]
cored has joined #ruby-lang
jonahR has quit [Ping timeout: 260 seconds]
sandbags1138 has joined #ruby-lang
sandbags has quit [Read error: Connection reset by peer]
jonahR has joined #ruby-lang
theoros is now known as lrnt
lrnt is now known as theoros
krohrbaugh has joined #ruby-lang
hackeron has quit [Ping timeout: 255 seconds]
hackeron has joined #ruby-lang
<zenspider> yorickpeterse: arbitrary
<zenspider> I've got mine in ./templates/*
<yorickpeterse> hmm
<yorickpeterse> I'll go with lib/gem/templates for now
<zenspider> if they're not valid ruby (because they're erb or whatever) then (I think) they shouldn't go in lib
<yorickpeterse> Hm, good point (they're not ruby files)
sandbags has joined #ruby-lang
sandbags1138 has quit [Ping timeout: 244 seconds]
krohrbaugh has quit [Quit: Leaving.]
krohrbaugh has joined #ruby-lang
peppyheppy has quit [Quit: peppyheppy]
jrafanie has quit [Quit: jrafanie]
havenwood has quit [Remote host closed the connection]
slyphon has joined #ruby-lang
krohrbaugh has quit [Read error: Connection reset by peer]
ivanoats has quit [Remote host closed the connection]
krohrbaugh has joined #ruby-lang
yfeldblum has quit [Ping timeout: 245 seconds]
forrest has quit [Quit: Leaving]
sandbags has quit [Remote host closed the connection]
krohrbaugh has quit [Quit: Leaving.]
rins has quit [Ping timeout: 244 seconds]
sullenel has quit [Quit: WeeChat 0.4.0]
ryanv-raptor has quit [Quit: Leaving.]
djbender has quit [Quit: leaving]
jonahR has quit [Quit: jonahR]
JMcAfreak has joined #ruby-lang
carloslopes has joined #ruby-lang
cardoni is now known as greg
jgv has quit [Quit: Textual IRC Client: www.textualapp.com]
ivanoats has joined #ruby-lang
krohrbaugh has joined #ruby-lang
slyphon has quit [Ping timeout: 245 seconds]
<zenspider> rawr
<zenspider> finding and killing maglev bugs...
greg is now known as cardoni
Asher has quit [Read error: No route to host]
mantono has joined #ruby-lang
Asher has joined #ruby-lang
carloslopes has quit [Ping timeout: 264 seconds]
gustavnils has quit [Quit: Textual IRC Client: www.textualapp.com]
yfeldblum has joined #ruby-lang
chimkan_ has joined #ruby-lang
Rarrikins_l has quit [Remote host closed the connection]
cored has quit [Ping timeout: 260 seconds]
cored has joined #ruby-lang
cored has joined #ruby-lang
cored has quit [Changing host]
Rarrikins_l has joined #ruby-lang
krohrbaugh has quit [Quit: Leaving.]
krohrbaugh has joined #ruby-lang
chimkan_ has quit [Ping timeout: 255 seconds]
chimkan_ has joined #ruby-lang
mistym has quit [Remote host closed the connection]
thufir_ has joined #ruby-lang
slyphon has joined #ruby-lang
chimkan_ has quit [Read error: Connection reset by peer]
outoftime has quit [Quit: Leaving]
Mon_Ouie has quit [Ping timeout: 245 seconds]
maxmanders has quit [Quit: Computer has gone to sleep.]
chimkan has joined #ruby-lang
krohrbaugh has quit [Quit: Leaving.]
Bearproof has joined #ruby-lang
banisterfiend has quit [Ping timeout: 276 seconds]
chimkan has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Remote host closed the connection]
chimkan has joined #ruby-lang
workmad3 has quit [Ping timeout: 244 seconds]
Bearproof has quit [Quit: Leaving.]
<andrewvos> rubygems still readonly :(
chimkan has quit [Read error: Connection reset by peer]
<andrewvos> You guys must not be having fun.
chimkan has joined #ruby-lang
solars has quit [Ping timeout: 245 seconds]
<drbrain> andrewvos: a few hours ago the word in #rubygems was that push would be up later today, I haven't been listening in #rubygems-aws for up to the minute status