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
nexedi
rubygemsrecipe
Commits
c2f38e2c
Commit
c2f38e2c
authored
Jan 03, 2012
by
sirex
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated documentation for gem versions feature and made some improvements to
this feature.
parent
f36bfcc7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
15 deletions
+19
-15
README.rst
README.rst
+3
-1
rubygems.py
rubygems.py
+16
-14
No files found.
README.rst
View file @
c2f38e2c
...
...
@@ -20,6 +20,7 @@ Usage
recipe = rubygemsrecipe
gems =
sass
compass==0.10
After running buildout you can use SASS from buildout environment::
...
...
@@ -29,7 +30,8 @@ Options
=======
gems
list of gem package names.
list of gem package names, also you can specify gem version, example:
``sass==3.1.1``.
version
rubygems version, if not specified, recipe will try to find most recent
...
...
rubygems.py
View file @
c2f38e2c
...
...
@@ -162,7 +162,6 @@ class Recipe(object):
self
.
_install_rubygems
()
gem_executable
=
self
.
get_gem_executable
(
bindir
)
for
gem
in
self
.
gems
:
s
=
{
'GEM'
:
gem_executable
,
'OPTIONS'
:
' '
.
join
([
...
...
@@ -170,13 +169,16 @@ class Recipe(object):
'--no-ri'
,
'--bindir=%s'
%
bindir
,
]),
'GEMNAME'
:
gem
}
if
'='
in
gem
:
gemname
,
version
=
(
gem
.
strip
()
for
gem
in
gem
.
split
(
'='
))
for
gemname
in
self
.
gems
:
if
'=='
in
gemname
:
gemname
,
version
=
gemname
.
split
(
'=='
,
1
)
s
[
'GEMNAME'
]
=
gemname
.
strip
()
s
[
'OPTIONS'
]
+=
' --version %s'
%
version
.
strip
()
else
:
s
[
'GEMNAME'
]
=
gemname
s
[
'OPTIONS'
]
+=
' --version %s'
%
version
self
.
run
(
'%(GEM)s install %(OPTIONS)s %(GEMNAME)s'
%
s
,
self
.
_get_env
())
self
.
run
(
'%(GEM)s install %(OPTIONS)s %(GEMNAME)s'
%
s
,
self
.
_get_env
())
for
executable
in
os
.
listdir
(
bindir
):
installed_path
=
self
.
_install_executable
(
...
...
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