Cédric Boutillier escreveu isso aí:
> On Mon, Feb 27, 2012 at 05:18:34PM +0100, Matijs van Zuijlen wrote:
>
> > I would definitely check the actual version of the gem rather than
> > the mtime. There are all kinds of reasons an earlier version might
> > have a later mtime accidentally.
>
> Thanks for your feedback. Here is thus a second attempt, with the use of
> Gem::Version.
A simpler solution that does not require Gem::Version is to glob before and
after fetching:
before = Dir::glob("#{gemfile}-*.gem")
run("gem fetch #{gemfile}")
after = Dir::glob("#{gemfile}-*.gem")
gemfile = (after - before).first
--
Antonio Terceiro <terceiro@debian.org>
Attachment:
signature.asc
Description: Digital signature