Commit 8db4a034 authored by Silvio Tomatis's avatar Silvio Tomatis

Specify a version for each gem in buildout cfg.

parent 35d8ca6a
Change History
**************
0.1.4 (UNRELEASED)
==================
- You can specify a version for each gem with a syntax similar to python eggs.
0.1.3 (2011-12-28)
==================
......
......@@ -162,16 +162,22 @@ class Recipe(object):
self._install_rubygems()
gem_executable = self.get_gem_executable(bindir)
s = {
'GEM': gem_executable,
'OPTIONS': ' '.join([
'--no-rdoc',
'--no-ri',
'--bindir=%s' % bindir,
]),
'GEMS': ' '.join(self.gems)
}
self.run('%(GEM)s install %(OPTIONS)s %(GEMS)s' % s, self._get_env())
for gem in self.gems:
s = {
'GEM': gem_executable,
'OPTIONS': ' '.join([
'--no-rdoc',
'--no-ri',
'--bindir=%s' % bindir,
]),
'GEMNAME': gem
}
if '=' in gem:
gemname, version = (gem.strip() for gem in gem.split('='))
s['GEMNAME'] = gemname
s['OPTIONS'] += ' --version %s' % version
print '%(GEM)s install %(OPTIONS)s %(GEMNAME)s' % s
self.run('%(GEM)s install %(OPTIONS)s %(GEMNAME)s' % s, self._get_env())
for executable in os.listdir(bindir):
installed_path = self._install_executable(
......
......@@ -4,7 +4,7 @@ import os
from setuptools import setup
version = '0.1.3'
version = '0.1.4-dev'
name = 'rubygemsrecipe'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment