Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
rubygemsrecipe
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
rubygemsrecipe
Commits
bb00696c
Commit
bb00696c
authored
Dec 28, 2011
by
sirex
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added possibility to specify explicit ruby gems version to be used.
parent
9d1f0b1d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
README.rst
README.rst
+10
-0
rubygems.py
rubygems.py
+5
-0
No files found.
README.rst
View file @
bb00696c
...
@@ -24,3 +24,13 @@ Usage
...
@@ -24,3 +24,13 @@ Usage
After running buildout you can use SASS from buildout environment::
After running buildout you can use SASS from buildout environment::
./bin/sass --version
./bin/sass --version
Options
=======
gems
list of gem package names.
version
rubygems version, if not specified, recipe will try to find most recent
version.
rubygems.py
View file @
bb00696c
...
@@ -28,6 +28,7 @@ class Recipe(object):
...
@@ -28,6 +28,7 @@ class Recipe(object):
raise
zc
.
buildout
.
UserError
(
'Configuration error'
)
raise
zc
.
buildout
.
UserError
(
'Configuration error'
)
self
.
gems
=
options
[
'gems'
].
split
()
self
.
gems
=
options
[
'gems'
].
split
()
self
.
version
=
options
.
get
(
'version'
)
def
run
(
self
,
cmd
,
environ
=
None
):
def
run
(
self
,
cmd
,
environ
=
None
):
...
@@ -78,6 +79,10 @@ class Recipe(object):
...
@@ -78,6 +79,10 @@ class Recipe(object):
}
}
def
_get_latest_rubygems
(
self
):
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'
)
f
=
urllib
.
urlopen
(
'http://rubygems.org/pages/download'
)
s
=
f
.
read
()
s
=
f
.
read
()
f
.
close
()
f
.
close
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment