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
8db4a034
Commit
8db4a034
authored
Jan 02, 2012
by
Silvio Tomatis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Specify a version for each gem in buildout cfg.
parent
35d8ca6a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
11 deletions
+23
-11
CHANGES.rst
CHANGES.rst
+6
-0
rubygems.py
rubygems.py
+16
-10
setup.py
setup.py
+1
-1
No files found.
CHANGES.rst
View file @
8db4a034
Change History
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)
0.1.3 (2011-12-28)
==================
==================
...
...
rubygems.py
View file @
8db4a034
...
@@ -162,16 +162,22 @@ class Recipe(object):
...
@@ -162,16 +162,22 @@ class Recipe(object):
self
.
_install_rubygems
()
self
.
_install_rubygems
()
gem_executable
=
self
.
get_gem_executable
(
bindir
)
gem_executable
=
self
.
get_gem_executable
(
bindir
)
s
=
{
for
gem
in
self
.
gems
:
'GEM'
:
gem_executable
,
s
=
{
'OPTIONS'
:
' '
.
join
([
'GEM'
:
gem_executable
,
'--no-rdoc'
,
'OPTIONS'
:
' '
.
join
([
'--no-ri'
,
'--no-rdoc'
,
'--bindir=%s'
%
bindir
,
'--no-ri'
,
]),
'--bindir=%s'
%
bindir
,
'GEMS'
:
' '
.
join
(
self
.
gems
)
]),
}
'GEMNAME'
:
gem
self
.
run
(
'%(GEM)s install %(OPTIONS)s %(GEMS)s'
%
s
,
self
.
_get_env
())
}
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
):
for
executable
in
os
.
listdir
(
bindir
):
installed_path
=
self
.
_install_executable
(
installed_path
=
self
.
_install_executable
(
...
...
setup.py
View file @
8db4a034
...
@@ -4,7 +4,7 @@ import os
...
@@ -4,7 +4,7 @@ import os
from
setuptools
import
setup
from
setuptools
import
setup
version
=
'0.1.
3
'
version
=
'0.1.
4-dev
'
name
=
'rubygemsrecipe'
name
=
'rubygemsrecipe'
...
...
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