Commit bb00696c authored by sirex's avatar sirex

Added possibility to specify explicit ruby gems version to be used.

parent 9d1f0b1d
......@@ -24,3 +24,13 @@ Usage
After running buildout you can use SASS from buildout environment::
./bin/sass --version
Options
=======
gems
list of gem package names.
version
rubygems version, if not specified, recipe will try to find most recent
version.
......@@ -28,6 +28,7 @@ class Recipe(object):
raise zc.buildout.UserError('Configuration error')
self.gems = options['gems'].split()
self.version = options.get('version')
def run(self, cmd, environ=None):
......@@ -78,6 +79,10 @@ class Recipe(object):
}
def _get_latest_rubygems(self):
if self.version:
return ('http://production.cf.rubygems.org/rubygems/'
'rubygems-%s.zip' % self.version, self.version)
f = urllib.urlopen('http://rubygems.org/pages/download')
s = f.read()
f.close()
......
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