DanKnox is now known as DanKnox_away
jalessio has joined #rubygems
hakunin has joined #rubygems
hakunin has quit [Remote host closed the connection]
hakunin has joined #rubygems
jalessio has quit [Ping timeout: 245 seconds]
tenderlove has quit [Remote host closed the connection]
havenwood has joined #rubygems
tjbiddle has quit [Quit: tjbiddle]
tjbiddle has joined #rubygems
tjbiddle has quit [Client Quit]
jfoy has quit [Quit: jfoy]
lsegal has joined #rubygems
dwknoxy has quit [Quit: Computer has gone to sleep.]
dvu_ has joined #rubygems
dvu has quit [Ping timeout: 248 seconds]
TheComrade has joined #rubygems
hasrb has quit [Remote host closed the connection]
huoxito has joined #rubygems
bjessbrown has joined #rubygems
havenwood has quit [Remote host closed the connection]
havenwood has joined #rubygems
dvu_ has quit [Ping timeout: 260 seconds]
dvu has joined #rubygems
havenwood has quit [Remote host closed the connection]
havenwood has joined #rubygems
havenwood has quit [Read error: Connection reset by peer]
DanKnox_away is now known as DanKnox
<
swills>
rubygems-mirror stopped working a while back, anyone have recommendations for replacements?
<
drbrain>
evan: ↑ swills is a FreeBSD person
<
swills>
you can't prove that!
<
drbrain>
swills: :D
<
drbrain>
swills: evan knows about mirroring and can figure out something that meets your needs
<
swills>
i just want to mirror locally so that i can find things that updated and update ports
<
swills>
have a crappy shell script i wrote which looks at ports and compares that with timestamps in the mirror, etc.
<
swills>
perhaps gem-mirror will work...
<
drbrain>
I wonder if the web hooks API would be useful to you
<
drbrain>
it's more work to set up than a shell script, though
<
drbrain>
but you can get notifications of when gems update
<
swills>
could i get a list of updated gems?
<
swills>
ie, is the latest version newer than the version i have?
<
drbrain>
you can do that through the rubygems API
<
drbrain>
as in, you would need ruby installed
<
swills>
sure, that's no problem
<
drbrain>
the fast way is to to walk Gem::Specification.latest_specs and check each version off against what you have locally
<
drbrain>
there's also Gem::Specification.outdated, but it is slower as it fetches the specification from rubygems.org (which you probably don't need)
<
swills>
i think that may be exactly what i need
<
drbrain>
hrm, I gave you the wrong API
<
drbrain>
Gem::Specification.latest_specs is the latest local specs
<
drbrain>
sorry, the web hook API is the correct one, Gem::Specification.latest_specs is the wrong one
<
swills>
hmm, lots of requests to GET - /api/v1/versions/[GEM NAME].(json|xml|yaml)...
<
drbrain>
it should need only one remote request
<
drbrain>
I just have to find the right spot
<
drbrain>
list, = Gem::SpecFetcher.fetcher.available_specs :latest; specs = list.values.first
<
drbrain>
this is better in RubyGems 2, but that isn't released yet
<
drbrain>
should be by end of week
<
drbrain>
that gives you the latest versions of all the remote specs, assuming you only have rubygems.org as your suorce
<
swills>
i guess the , was a typo
<
drbrain>
no, it grabs the first item from the array that is returned
<
drbrain>
you can unpack the array through multiple assignment, but you can omit a variable if you don't care about the rest
<
drbrain>
a better way to write it would be:
<
drbrain>
list, _ = Gem::SpecFetcher. …
<
swills>
undefined method `available_specs'
<
drbrain>
which RubyGems do you have?
<
drbrain>
I was using 2.x
<
drbrain>
let me see what's in 1.8
<
swills>
i made an attempt at getting 2.x into ports once, but gave up, i should get back to it
<
drbrain>
ah, on 1.8.x it's easier
<
drbrain>
tuples = Gem::SpecFetcher.fetcher.list
<
drbrain>
you get [name, version, platform] tuples
<
swills>
awesome, thanks
<
swills>
i'm finally finding TFM now...
<
drbrain>
you probably want to ignore platforms that aren't "ruby"
<
drbrain>
swills: here we go
<
drbrain>
pairs = Gem::SpecFetcher.fetcher.list.values.first.map { |n, v, _| [n, v] }
<
drbrain>
latest = Hash[*pairs.flatten]
<
drbrain>
then you can do something like:
<
drbrain>
to_update = local.select { |name, version| latest[name] > version }
<
drbrain>
if I got the comparison operator correct
<
swills>
version comparisons can be tricky...
<
drbrain>
this uses Gem::Version
<
swills>
does that eliminate the ones that aren't "ruby" platform?
<
drbrain>
so it will follow RubyGems rules
<
drbrain>
you can do that before the .map { } in the pairs= line
<
drbrain>
.select { |_, _, platform| platform == "ruby" }.map { … }
<
drbrain>
I'm assuming your local gems are in the same format as the latest Hash
<
drbrain>
name as a String, version as a Gem::Version
<
swills>
i will have to figure out how to convert the string i have for version into Gem::Version, but that should be easy
<
drbrain>
Gem::Version.new
<
swills>
of course!
<
swills>
stupid quesiton, to_update = local... what is local?
<
drbrain>
local is your local gems
<
drbrain>
it could be an array like: local = [["rake", Gem::Version.new("10.0.0")], ["rails", Gem::Version.new("4.0.0")], ...]
<
swills>
so random example, name = "cinch", version = Gem::Version.new("2.0.5")
<
swills>
gotcha, thanks
<
drbrain>
I need to catch a bus to talk with some people about accessible RDoc output
<
swills>
thanks again, ttyl
bjessbrown has quit [Remote host closed the connection]
Gibheer_ has joined #rubygems
ereslibre_laptop has joined #rubygems
ereslibre_laptop has joined #rubygems
Gibheer has quit [Read error: Connection reset by peer]
ereslibre has quit [Read error: Connection reset by peer]
JonathanT has quit [Ping timeout: 264 seconds]
aalmenar has quit [Ping timeout: 264 seconds]
jalessio has joined #rubygems
clouder`grr has quit [Read error: No buffer space available]
aalmenar has joined #rubygems
aalmenar has quit [Changing host]
aalmenar has joined #rubygems
clouder`grr has joined #rubygems
bjessbrown has joined #rubygems
bjessbrown has quit [Ping timeout: 264 seconds]
Gibheer_ is now known as Gibheer
jalessio has quit [Quit: Leaving.]
jasoncx has joined #rubygems
bjessbrown has joined #rubygems
jasoncx has quit [Remote host closed the connection]
bjessbrown has quit [Ping timeout: 260 seconds]
Kennsen has joined #rubygems
pencil has joined #rubygems
JonathanT has joined #rubygems
tjbiddle has joined #rubygems
vertis has quit [Quit: Leaving.]
tjbiddle has quit [Quit: tjbiddle]
huoxito has quit [Quit: Leaving]
Kennsen has quit [Remote host closed the connection]
tjbiddle has joined #rubygems
tjbiddle has quit [Quit: tjbiddle]
specialunderwear has joined #rubygems
pencil has left #rubygems ["Bye."]
DanKnox is now known as DanKnox_away
adambeynon has joined #rubygems
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
vertis has joined #rubygems
vertis has quit [Quit: Leaving.]
vertis has joined #rubygems
vertis has quit [Client Quit]
guilleiguaran_ has quit [Ping timeout: 248 seconds]
qrush has quit [Ping timeout: 248 seconds]
vertis has joined #rubygems
Guest85414__ has quit [Ping timeout: 256 seconds]
randym_ has quit [Ping timeout: 268 seconds]
johnmwilliams___ has quit [Ping timeout: 264 seconds]
karlfreeman has quit [Ping timeout: 245 seconds]
xerxas has quit [Ping timeout: 246 seconds]
davidjrice has quit [Ping timeout: 248 seconds]
JSharp has quit [Ping timeout: 268 seconds]
capen has quit [Remote host closed the connection]
Guest85414__ has joined #rubygems
davidjrice has joined #rubygems
qrush has joined #rubygems
hakunin has quit [Ping timeout: 248 seconds]
vertis has quit [Quit: Leaving.]
guilleiguaran_ has joined #rubygems
xerxas has joined #rubygems
capen has joined #rubygems
JSharp has joined #rubygems
randym_ has joined #rubygems
johnmwilliams___ has joined #rubygems
karlfreeman has joined #rubygems
neo_ has joined #rubygems
jleishman has quit [Remote host closed the connection]
davidjrice has quit [Ping timeout: 250 seconds]
jleishman has joined #rubygems
tcopeland has quit [Quit: Leaving.]
zachrab has joined #rubygems
zachrab has quit [Client Quit]
zachrab has joined #rubygems
neo_ has quit [Quit: Leaving]
dvu has quit [Remote host closed the connection]
vertis has joined #rubygems
jcaudle has joined #rubygems
bjessbrown has joined #rubygems
vertis has quit [Ping timeout: 256 seconds]
stevenharman has quit [Quit: Leaving...]
yerhot has joined #rubygems
davidjrice has joined #rubygems
tcopeland has joined #rubygems
vertis has joined #rubygems
hasrb has joined #rubygems
vertis has quit [Ping timeout: 264 seconds]
pencil has joined #rubygems
yerhot has quit [Remote host closed the connection]
yerhot has joined #rubygems
marpaia has joined #rubygems
yerhot has quit [Remote host closed the connection]
zachrab has quit [Remote host closed the connection]
zachrab has joined #rubygems
zachrab has quit [Remote host closed the connection]
vertis has joined #rubygems
zachrab has joined #rubygems
vertis has quit [Ping timeout: 264 seconds]
dml has joined #rubygems
dml is now known as Guest19311
vertis has joined #rubygems
vertis has quit [Ping timeout: 246 seconds]
dml_ has joined #rubygems
pencil has left #rubygems ["Bye."]
dml_ has quit [Client Quit]
dml_ has joined #rubygems
specialunderwear has quit [Remote host closed the connection]
huoxito has joined #rubygems
stevenharman has joined #rubygems
vertis has joined #rubygems
yerhot has joined #rubygems
vertis has quit [Ping timeout: 256 seconds]
yerhot has quit [Ping timeout: 264 seconds]
zachrab has quit [Remote host closed the connection]
tjbiddle has joined #rubygems
havenwood has joined #rubygems
vertis has joined #rubygems
havenwood has quit [Remote host closed the connection]
vertis has quit [Ping timeout: 240 seconds]
havenwood has joined #rubygems
zachrab has joined #rubygems
zachrab has quit [Remote host closed the connection]
yerhot has joined #rubygems
tjbiddle has quit [Quit: tjbiddle]
marpaia has quit [Ping timeout: 240 seconds]
marpaia has joined #rubygems
rhythm_and_code has joined #rubygems
Kennsen has joined #rubygems
jfoy has joined #rubygems
vertis has joined #rubygems
vertis has quit [Ping timeout: 240 seconds]
tjbiddle has joined #rubygems
vertis has joined #rubygems
vertis has quit [Ping timeout: 264 seconds]
x1337807x has joined #rubygems
dvu has joined #rubygems
dvu has quit [Remote host closed the connection]
dvu has joined #rubygems
DanKnox_away is now known as DanKnox
vertis has joined #rubygems
vertis has quit [Ping timeout: 246 seconds]
Kennsen has quit [Remote host closed the connection]
Kennsen has joined #rubygems
jaimef has quit [Excess Flood]
zachrab has joined #rubygems
Kennsen has quit [Remote host closed the connection]
vertis has joined #rubygems
jaimef has joined #rubygems
vertis has quit [Ping timeout: 246 seconds]
yerhot has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
havenwood has joined #rubygems
<
drbrain>
evan: I don't know if you saw it but
<
drbrain>
evan: but it seems working to me
havenwood has quit [Ping timeout: 260 seconds]
vertis has joined #rubygems
vertis has quit [Ping timeout: 264 seconds]
<
indirect>
drbrain: evan: I tested and it seems to be working for me as well, both at bb-m and at s3
<
drbrain>
must be on their network's end, then
<
indirect>
there were some crazy s3 shenanigans yesterday with another gemspec
<
indirect>
where I could get a 200
<
indirect>
but Larry got a 404
<
indirect>
for about 6 hours
<
indirect>
and while Larry was getting a 404, it wasn't on cloudfront
wdperson has joined #rubygems
<
indirect>
so gem install failed
<
indirect>
and then suggested that you might have meant the same gem nae
havenwood has joined #rubygems
yerhot has joined #rubygems
tenderlove has joined #rubygems
zachrab has quit [Remote host closed the connection]
yerhot has quit [Ping timeout: 240 seconds]
zachrab has joined #rubygems
zachrab has quit [Read error: Connection reset by peer]
zachrab has joined #rubygems
zachrab has quit [Remote host closed the connection]
yerhot has joined #rubygems
tenderlove has quit [Remote host closed the connection]
huoxito has quit [Quit: Leaving]
shevy has joined #rubygems
<
shevy>
got a question. let's say I have a project that would create (simple) .pdf files
<
shevy>
now is there a way for people to search for that, through gem? something like
<
shevy>
"please gem, show me all projects that have a pdf-tag in their .gemspec file written down"
<
shevy>
so that people could filter and sort through things quickly
<
shevy>
gem show all-game-projects
Kennsen has joined #rubygems
vertis has joined #rubygems
shtirlic has quit [Read error: Operation timed out]
perry has quit [Read error: Operation timed out]
brixen has quit [Ping timeout: 240 seconds]
DanKnox has quit [Ping timeout: 248 seconds]
Guest41314 has quit [Ping timeout: 248 seconds]
sindork has quit [Ping timeout: 240 seconds]
samkottler has quit [Ping timeout: 260 seconds]
danmcclain has quit [Ping timeout: 268 seconds]
vertis has quit [Ping timeout: 264 seconds]
DanKnox has joined #rubygems
perry has joined #rubygems
brixen has joined #rubygems
danmcclain has joined #rubygems
samkottler has joined #rubygems
samkottler has joined #rubygems
samkottler has quit [Changing host]
sindork has joined #rubygems
brixen has quit [Excess Flood]
Gnubie has joined #rubygems
Gnubie is now known as Guest38604
shtirlic has joined #rubygems
huoxito has joined #rubygems
brixen has joined #rubygems
huoxito has quit [Client Quit]
Kennsen has quit [Remote host closed the connection]
vertis has joined #rubygems
<
drbrain>
shevy: the metadata feature in rubygems 2 could support such a feature
vertis has quit [Ping timeout: 240 seconds]
Karunamon has joined #rubygems
Karunamon has quit [Quit: Page closed]
jcaudle has quit [Quit: jcaudle]
jcaudle has joined #rubygems
tenderlo_ has joined #rubygems
zachrab has joined #rubygems
vertis has joined #rubygems
zachrab has quit [Ping timeout: 245 seconds]
jcaudle has quit [Quit: jcaudle]
havenwood has quit [Remote host closed the connection]
zachrab has joined #rubygems
havenwood has joined #rubygems
havenwood has quit [Read error: Connection reset by peer]
blackjid has quit [Remote host closed the connection]
vertis has quit [Quit: Leaving.]
blackjid has joined #rubygems
blackjid has quit [Remote host closed the connection]
blackjid has joined #rubygems
blackjid has quit [Remote host closed the connection]
stevenharman has quit [Quit: Leaving...]
tcopeland has quit [Quit: Leaving.]
blackjid has joined #rubygems
zachrab has quit [Remote host closed the connection]
stevenharman has joined #rubygems
havenwood has joined #rubygems
yerhot has quit [Remote host closed the connection]
<
shevy>
okay thanks
hasrb has quit [Remote host closed the connection]
marpaia has quit [Quit: WeeChat 0.4.1]
dvu has quit [Remote host closed the connection]
TheComrade has quit [Quit: TheComrade]
martinisoft has joined #rubygems
bjessbrown has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
x1337807x has joined #rubygems
tcopeland has joined #rubygems
bjessbrown has joined #rubygems
vertis has joined #rubygems
vertis has quit [Ping timeout: 264 seconds]
bjessbrown has quit [Ping timeout: 264 seconds]
dml_ has quit [Quit: Computer has gone to sleep.]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]