Xzyx987X has quit [Read error: Connection reset by peer]
Xzyx987X has joined #ruby-lang
relix has joined #ruby-lang
julweber has quit [Ping timeout: 245 seconds]
mbj has quit [Quit: leaving]
face has joined #ruby-lang
faces has quit [Ping timeout: 260 seconds]
sjltaylor has joined #ruby-lang
barttenbrinke has quit [Remote host closed the connection]
barttenbrinke has joined #ruby-lang
sreffotsirk has joined #ruby-lang
barttenbrinke has quit [Ping timeout: 268 seconds]
banister has joined #ruby-lang
<yorickpeterse>
heh, spent the better part of my morning benchmarking Faraday.new's overhead
<yorickpeterse>
as in, `many.times { Faraday.new.get }` versus `client = Faraday.new; many.times { client.get }`
<yorickpeterse>
end verdict: the latter is only slightly faster
<judofyr>
yorickpeterse: I'm guessing you're not getting keep-alive with Faraday.new.get?
toretore has joined #ruby-lang
<yorickpeterse>
Could be, not sure though
<yorickpeterse>
I'm benchmarking this to see if we should go with dependency injection (create one client, push it further down) or with a factory approach (create a client for every request)
zmike1234 has joined #ruby-lang
<yorickpeterse>
because multithreading
thebastl has quit [Ping timeout: 245 seconds]
tobiasvl has left #ruby-lang [#ruby-lang]
julweber has joined #ruby-lang
cads2 has quit [Ping timeout: 245 seconds]
emiltin has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby-lang
sr78ger has joined #ruby-lang
apeiros has quit [Ping timeout: 245 seconds]
sonofben has joined #ruby-lang
kstuart has joined #ruby-lang
gja has quit [Quit: This computer has gone to sleep]
sonofben has left #ruby-lang [#ruby-lang]
banister has quit [Remote host closed the connection]
ffio has joined #ruby-lang
banister has joined #ruby-lang
maxmanders has quit [Quit: Computer has gone to sleep.]
havenwood has quit [Remote host closed the connection]
barttenbrinke has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
nevill has joined #ruby-lang
Cakey has joined #ruby-lang
cads2 has joined #ruby-lang
fosky has quit [Ping timeout: 256 seconds]
FastJack has quit [Quit: leaving]
gja has joined #ruby-lang
gja has quit [Changing host]
gja has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
emiltin has joined #ruby-lang
vlad_starkov has joined #ruby-lang
barttenbrinke has quit [Remote host closed the connection]
barttenbrinke has joined #ruby-lang
gja has quit [Quit: This computer has gone to sleep]
barttenbrinke has quit [Read error: Connection reset by peer]
barttenbrinke has joined #ruby-lang
apeiros has joined #ruby-lang
hyp has joined #ruby-lang
nevill has quit [Quit: nevill]
rolfb_ has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 264 seconds]
gja has joined #ruby-lang
rolfb has quit [Read error: Connection reset by peer]
<jperry>
haven wood, does that check rubygems.org?
<drbrain>
jperry: it does not
<jperry>
haven wood, that isn't what I'm looking for
<drbrain>
there's no longer index support to do reverse dependencies for remote gems
hhatch has quit [Ping timeout: 264 seconds]
<jperry>
does ruby gems expose anything in their api for this info?
<jperry>
maybe I could build a service that caches some of this data and a gem plugin that hits my service
<havenwood>
jperry: There is a `gem-dependent` gem if it is compatible with your version of RubyGems. (I think it needs a bit of work to support latest stable.): https://github.com/grosser/gem-dependent#readme
<jperry>
at the least if I have results that are a week old I think that is fine
<jperry>
havenwood: thanks I'll check that out
<havenwood>
jperry: Or just download 61,108 gems locally. :P
<jperry>
ha
<jperry>
thats why I was thinking the caching thing could help
<drbrain>
you don't need to download gems
<drbrain>
just the specs
<jperry>
yeah
<jperry>
it would be nice to check against a specific version too
diegoviola has joined #ruby-lang
gja has joined #ruby-lang
gja has quit [Changing host]
gja has joined #ruby-lang
nneko001__ has quit [Quit: Konversation terminated!]
<spike|spiegel>
also, rubygems.org is quite easy to DOS :) please don't do that.
workmad3 has joined #ruby-lang
richardburton has joined #ruby-lang
<drbrain>
gems and gemspecs come from S3 which are not easy to DOS
<drbrain>
I've downloaded all the gems using around 100 processes distributed across a dozen machines, no harm was done
banister has quit [Remote host closed the connection]
<spike|spiegel>
(not talking about downloads)
iliketurtles has quit [Quit: zzzzz…..]
maxmanders has joined #ruby-lang
efrainolivares has joined #ruby-lang
gja has quit [Quit: This computer has gone to sleep]
<spike|spiegel>
the API is a bit insane that it returns Marshal dump'd data
Pupeno has joined #ruby-lang
rue has quit [Remote host closed the connection]
rue has joined #ruby-lang
<drbrain>
spike|spiegel: how so?
<drbrain>
note that Marshal is the most time and memory efficient data exchange format Ruby supports
postmodern has joined #ruby-lang
joshuawscott has joined #ruby-lang
Pupeno has quit [Ping timeout: 256 seconds]
<spike|spiegel>
drbrain: it's insane because it's ruby specific and Marshal loading of data coming from the internets is right on top of crazy list
<drbrain>
so only load the data from trusted sources
<spike|spiegel>
tell that to bundler?
<drbrain>
AFAIK bundler only loads data from rubygems.org unless you configure it otherwise
robbyoconnor has quit [Max SendQ exceeded]
robbyoconnor has joined #ruby-lang
<spike|spiegel>
naive, network pipes
<drbrain>
I don't know this feature of bundler
banister has joined #ruby-lang
<spike|spiegel>
I meant the data doesn't magically transfer from rubygems.org to your little bunder.
<drbrain>
so I guess HTTPS doesn't count?
<spike|spiegel>
yeah, also, it's trivial for a moron to remove the s in Gemfile and be royally screwed
Ch00k has quit [Quit: Ch00k]
<drbrain>
if you're installing gems you're always taking a risk
<drbrain>
as far as I can tell there's no exploitable way to send malicious Marshal to RubyGems (and would love a counterexample)
jbsan has joined #ruby-lang
<drbrain>
but there's still the problem of RubyGems being a way to run arbitrary code in as the current user at install-time
<spike|spiegel>
and the fact that there isn't even a simple checksum is maddening.
<drbrain>
you mean the Etag?
<spike|spiegel>
file sha1/256
<drbrain>
S3 provides you an MD5
<spike|spiegel>
who is you?
<drbrain>
the person downloading from rubygems.org
<spike|spiegel>
I want the damn gem author to provde it
MaddinXx_ has quit [Remote host closed the connection]
<spike|spiegel>
checksum done locally before anything is ever uploaded
<drbrain>
then ask the user to sign their gems
<spike|spiegel>
security 101
<drbrain>
this is built-in to rubygems
<spike|spiegel>
all I'm saying is that this adds value.
<spike|spiegel>
and could be done without much hassle
<drbrain>
I don't understand
<drbrain>
it's already supported
<spike|spiegel>
gem signing?
<drbrain>
yes
<drbrain>
I think since 0.8.something
<spike|spiegel>
the signature is on the checksum of packaged gem?
<drbrain>
yes
<spike|spiegel>
where is it stored then?
<drbrain>
and it is embedded in the gem so rubygems can verify it for you at install time
* spike|spiegel
looks up the docs
benanne has joined #ruby-lang
<drbrain>
ri Gem::Security
<drbrain>
and the -P option to `gem install` and friends
<spike|spiegel>
umm, it's not on the packaged gem file if it's embedded in it
<drbrain>
I don't understand the difference between "on" and "in"
<spike|spiegel>
signature is on metadata.gz and data.tar.gz huh
<spike|spiegel>
well, I can sign it, where is the chain/web of trust?
efrainolivares has quit [Quit: efrainolivares]
<drbrain>
that's the part that hasn't been popular, but the cert command supports certificate chains
<drbrain>
there's been people interested in implementing an alternate system, but they haven't had the spare time to complete it
<spike|spiegel>
people who btw?
towski has quit [Remote host closed the connection]
<drbrain>
mostly James Tucker
<spike|spiegel>
umm raggi?
<drbrain>
yeah
<spike|spiegel>
k thanks for your patience
<spike|spiegel>
and but still, marshal over wire is a bad idea
<drbrain>
I'm not a cryptographer so I am nervous about altering what is currently present
<spike|spiegel>
there seems to be all sorts of loop holes here
jbsan has quit [Quit: jbsan]
<spike|spiegel>
if I publish a gem signed, can I publish a newer version without signing it?
<drbrain>
yes, as rubygems.org does not enforce anything wrt signatures
<spike|spiegel>
that makes this pointless, pretty much
<spike|spiegel>
unless users always expect gems to be signed
<drbrain>
rubygems (the client) could also pin a gem name to a certificate and complain when it changes
<spike|spiegel>
don't let it to the user to decide. period.
<drbrain>
… on different versions
<drbrain>
yeah
mbj has quit [Read error: Connection reset by peer]
<spike|spiegel>
transfering ownership would be another nice topic :)
slash_nick has joined #ruby-lang
JohnBat26 has quit [Remote host closed the connection]
<drbrain>
yeah
hashkey has quit [Ping timeout: 256 seconds]
solars has joined #ruby-lang
<spike|spiegel>
drbrain: interesting thought :) can gems names contain non-pritable characters? higher plane unicode chars?
<drbrain>
on rubygems.org, no
<drbrain>
for `gem install foo.gem` yes (if your FS supports it)
mbj has joined #ruby-lang
<spike|spiegel>
awww, sad, so much fun lost :)
<mistym>
So I can't name a gem, say, "
diegoviola has quit [Ping timeout: 276 seconds]
<drbrain>
mistym: as a git gem via bundler you probably can
krohrbaugh has quit [Quit: Leaving.]
<erikh>
¡.gem
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<GarethAdams>
opinion question: If you were writing a general purpose gem today (for example, a library providing access to a web API), would you make much effort to make it 1.8 compatible (old style hashes, any reliance on hash order, encodings if relevant)?
<drbrain>
GarethAdams: I wouldn't bother at all
<apeiros>
GarethAdams: nope
<apeiros>
1.8 is dead
<erikh>
please keep it that way
<GarethAdams>
good stuff
<drbrain>
I maintain 1.8 support for some old gems
<spike|spiegel>
GarethAdams: what old style hashes? they are *still* best way to write hashes.
<Nilium>
Probably shouldn't bother.
<apeiros>
GarethAdams: you can always leave that to the community
<apeiros>
as in: if someone really needs 1.8 support - fork & patch please
mbj_ has joined #ruby-lang
<mistym>
I support back to 1.8.2 where I absolutely need it but not sure it's worth it if you don't have a usecase for 1.8, and it's really extra bother that no one probably needs
<drbrain>
mistym: I'm sorry
<Nilium>
If someone needs 1.8 support, tell them to fix their stupid code. >_>
mbj has quit [Ping timeout: 245 seconds]
<erikh>
not always that simple
<Nilium>
For them, no, but it's simple for you to say it.
<mistym>
drbrain: On the plus side I encounter some gloriously bizarre bugs in the ruby stdlib of that era and that's its own kind of fun
<Nilium>
It's up to them to figure out the details.
<erikh>
welp. back to work.
<erikh>
drbrain: you get shadowrun yet?!?!?!
<erikh>
because OMG
<GarethAdams>
thanks all
<drbrain>
erikh: not yet
<Nilium>
Shadowrun's fun. Didn't feel like the combat had any difficulty to at all, but fun.
<Nilium>
to it, even
saarinen has joined #ruby-lang
Guest77690 has joined #ruby-lang
Guest77690 is now known as diegoviola
thebastl has quit [Quit: Ex-Chat]
barttenb_ has quit [Remote host closed the connection]
Nisstyre has quit [Quit: Leaving]
efrainolivares has joined #ruby-lang
mbj has joined #ruby-lang
krohrbaugh has joined #ruby-lang
mbj_ has quit [Ping timeout: 240 seconds]
ffio_ has quit [Quit: WeeChat 0.4.1]
saarinen has quit [Quit: saarinen]
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
<_tockitj>
if there is a class C which includes module M, and overrides method meth defined in M#meth, is there a way to call M#meth from C#meth ?
banister has left #ruby-lang [#ruby-lang]
banisterfiend has joined #ruby-lang
<banisterfiend>
_tockitj: yeah
<banisterfiend>
_tockitj: super :P
<_tockitj>
there is! how? :D
<_tockitj>
it will work? it is not real inheritance ?
<_tockitj>
just a sec - will try
<banisterfiend>
It'll work, it is real inheritance
cored has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Remote host closed the connection]
<_tockitj>
how is it inheritance :D
<Nilium>
Alternatively, you can also alias the method before including the module if you want the original method to still be available.
<_tockitj>
ah, right - modules introduce proxy classes :D
tonni has quit [Remote host closed the connection]
<jperry>
drbrain and spiegel: sorry had to run to a meeting, looks like you guys had a good discussion there :)
<_tockitj>
yeah - seems like a sound reason for aliasing, but if super works - the better :)
iliketurtles has joined #ruby-lang
<jperry>
so back to my point sounds like there isn't an easy way to get a list of gems in rubygems.org that contain my gem
<jperry>
I could smash the server to get that info right but sounds like it's not a good idea
mbj has quit [Read error: Connection reset by peer]
thepumpkin has quit [Remote host closed the connection]
sr78ger has quit [Ping timeout: 264 seconds]
<slash_nick>
jperry: search github... look for file matches... look for file matches that are in gemspecs.
Dernise has joined #ruby-lang
mbj has joined #ruby-lang
Dernise has quit [Client Quit]
fcahoon has joined #ruby-lang
fcahoon has quit [Client Quit]
efrainolivares_ has joined #ruby-lang
tonni has joined #ruby-lang
efrainolivares__ has joined #ruby-lang
saarinen has joined #ruby-lang
efrainolivares has quit [Ping timeout: 264 seconds]
efrainolivares_ has quit [Ping timeout: 256 seconds]
jaimef has quit [Excess Flood]
cads has quit [Ping timeout: 276 seconds]
jaimef has joined #ruby-lang
Senjai is now known as sirsenjai
sirsenjai is now known as Senjai
anonymuse has joined #ruby-lang
jbsan has joined #ruby-lang
mbj_ has joined #ruby-lang
mbj has quit [Ping timeout: 256 seconds]
saarinen has quit [Quit: saarinen]
pipework has quit [Remote host closed the connection]
saarinen has joined #ruby-lang
<_tockitj>
hmm.. since ruby classes are open - included modules could be placed in different files
vlad_starkov has joined #ruby-lang
<_tockitj>
so inheritance chain depends on the list of require statements too
<_tockitj>
which is kind of suprising
<_tockitj>
hmmmz.. though if one has too many methods with same name in his code, order of require statements will be least of his concernes
TvL2386 has quit [Remote host closed the connection]
sjltaylor has joined #ruby-lang
scampbell has quit [Remote host closed the connection]
pabs_ is now known as pabs
sjltaylor has quit [Client Quit]
efrainolivares__ has quit [Read error: Operation timed out]
breakingthings has quit [Quit: breakingthings]
thepumpkin has joined #ruby-lang
<_tockitj>
singleton class is always the last class (if at all) in the inheritance chain ?
<_tockitj>
or rather - is there a way to inherit a singleton class ?
arBmind has joined #ruby-lang
<zenspider>
wtf are you doing?
<zenspider>
jperry: contain? or depend on?
<_tockitj>
just contemplating on ruby
sjltaylor has joined #ruby-lang
<_tockitj>
trying to figure it out :)
vlad_sta_ has joined #ruby-lang
<zenspider>
_tockitj: menturbation
<zenspider>
write code you actually need
<_tockitj>
huh, this is a way of learning too, no?
<zenspider>
not a very efficient one imo
nathanstitt has quit [Ping timeout: 240 seconds]
vlad_starkov has quit [Ping timeout: 268 seconds]
<zenspider>
drbrain: do you know how to use the reverse_dependencies api on rubygems.org ? I couldn't get it to work at all last night
nathanstitt has joined #ruby-lang
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
<_tockitj>
zenspider, thanks
saarinen has quit [Quit: saarinen]
slash_nick is now known as slash_nickcomple
jp- has quit [Quit: OK, I believe you… but my tommy gun don't]
tylersmi_ has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby-lang
jvrmaia has quit [Quit: Leaving]
Nisstyre-laptop has joined #ruby-lang
<zenspider>
for?
Nisstyre-laptop is now known as Nisstyre
pskosinski has joined #ruby-lang
tsion has joined #ruby-lang
tsion has left #ruby-lang [#ruby-lang]
solars has quit [Ping timeout: 264 seconds]
<ddfreyne>
FOR EVERYTHING
<ddfreyne>
zenspider: you have my random gratitude too
imajes has quit [Ping timeout: 264 seconds]
<zenspider>
:P
imajes has joined #ruby-lang
<zenspider>
grr... looks like freeimage is sending warnings to their error handler function
<zenspider>
fuckers
madumo has quit [Quit: madumo]
elia has joined #ruby-lang
<_tockitj>
zenspider, for opinion
<_tockitj>
& everything :)
<_tockitj>
you did lots of awesome code
pothibo has quit [Ping timeout: 245 seconds]
pothibo has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maxmanders has quit [Quit: Computer has gone to sleep.]
brianpWins has joined #ruby-lang
tanema has quit [Remote host closed the connection]
nertzy has joined #ruby-lang
iliketurtles has quit [Quit: zzzzz…..]
iliketurtles has joined #ruby-lang
joshuawscott has quit [Quit: Leaving.]
nertzy has quit [Client Quit]
tylersmi_ has joined #ruby-lang
go|dfish has quit [Remote host closed the connection]
tylersmith has quit [Read error: Connection reset by peer]
go|dfish has joined #ruby-lang
wmoxam has quit [Ping timeout: 268 seconds]
Guest6856 has joined #ruby-lang
Z4PP3r has left #ruby-lang [#ruby-lang]
w00x has quit [Ping timeout: 240 seconds]
diegoviola has quit [Ping timeout: 240 seconds]
sascha_d has quit [Quit: bai]
sascha_d has joined #ruby-lang
toertore has joined #ruby-lang
fedesilv_ has joined #ruby-lang
itcharlie has left #ruby-lang [#ruby-lang]
mbj_ has quit [Read error: Connection reset by peer]
dhsmith_ has joined #ruby-lang
Guest6856 has quit [Ping timeout: 264 seconds]
fedesilva has quit [Ping timeout: 276 seconds]
toretore has quit [Ping timeout: 276 seconds]
dhsmith has quit [Ping timeout: 276 seconds]
sjltaylor has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
apeiros has quit [Read error: Connection reset by peer]
apeiros_ has joined #ruby-lang
workmad3 has quit [Ping timeout: 268 seconds]
slash_nickcomple is now known as slash_quit
sjltaylor has joined #ruby-lang
pskosinski_ has joined #ruby-lang
joshuawscott has joined #ruby-lang
<zenspider>
hah! I helped on a python problem...
<zenspider>
it's been a really really long time since I coded in it... also, blech
ssb123 has quit [Remote host closed the connection]
pskosinski has quit [Ping timeout: 240 seconds]
elia has quit [Ping timeout: 245 seconds]
pskosinski_ has quit [Client Quit]
fedesilv_ has quit [Ping timeout: 240 seconds]
jbsan has quit [Quit: jbsan]
elia has joined #ruby-lang
apeiros_ has quit [Ping timeout: 245 seconds]
joshuawscott has quit [Ping timeout: 268 seconds]
saarinen has joined #ruby-lang
joshuawscott has joined #ruby-lang
julweber has joined #ruby-lang
rickruby has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
fedesilva has joined #ruby-lang
jonahR has joined #ruby-lang
mbj has joined #ruby-lang
mbj has quit [Client Quit]
rickruby has quit [Remote host closed the connection]
vlad_sta_ has quit [Remote host closed the connection]
sjltaylor has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ledestin has joined #ruby-lang
jbsan has joined #ruby-lang
apeiros has joined #ruby-lang
yhsgw has joined #ruby-lang
iliketurtles has quit [Quit: zzzzz…..]
ssb123 has joined #ruby-lang
iliketurtles has joined #ruby-lang
apeiros has quit [Ping timeout: 276 seconds]
tanema has joined #ruby-lang
__butch__ has quit [Quit: Leaving.]
ssb123 has quit [Read error: Connection reset by peer]
ssb123_ has joined #ruby-lang
tomzx_mac has joined #ruby-lang
tanema has quit [Ping timeout: 276 seconds]
kurko_ has quit [Ping timeout: 268 seconds]
tylersmi_ has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby-lang
chuck has joined #ruby-lang
apeiros has joined #ruby-lang
anonymuse has quit [Remote host closed the connection]
kstuart has quit [Ping timeout: 245 seconds]
elia has quit [Ping timeout: 276 seconds]
fosky has joined #ruby-lang
Radagast has joined #ruby-lang
poga has quit [Remote host closed the connection]
tylersmith has quit [Read error: Connection reset by peer]
tylersmi_ has joined #ruby-lang
Nisstyre has quit [Ping timeout: 240 seconds]
tylersmi_ has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby-lang
tylersmi_ has joined #ruby-lang
tylersmith has quit [Read error: Connection reset by peer]
mdedetrich has joined #ruby-lang
hashkey has joined #ruby-lang
hashkey is now known as Guest59220
Guest59220 is now known as hashkey
xandr_ has joined #ruby-lang
rickruby has joined #ruby-lang
heftig has quit [Quit: Quitting]
hashkey_ has joined #ruby-lang
hashkey is now known as Guest93697
Guest93697 has quit [Killed (asimov.freenode.net (Nickname regained by services))]
hashkey_ is now known as hashkey
heftig has joined #ruby-lang
rickruby has quit [Ping timeout: 264 seconds]
ssb123_ has quit [Remote host closed the connection]
gregmoreno has joined #ruby-lang
benanne has quit [Quit: kbai]
tylersmi_ has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby-lang
jxie has joined #ruby-lang
ssb123 has joined #ruby-lang
vlad_starkov has joined #ruby-lang
toertore has quit [Quit: Leaving]
krohrbaugh has quit [Quit: Leaving.]
krohrbaugh has joined #ruby-lang
jwoods has quit [Ping timeout: 268 seconds]
vlad_starkov has quit [Ping timeout: 268 seconds]
nignaztic has quit [Read error: Connection reset by peer]