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
4fcfb6ec
Commit
4fcfb6ec
authored
Feb 01, 2013
by
Laurence Rowe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add option to sepcify rubygems url now that download location has changed.
parent
c58a8063
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
README.rst
README.rst
+4
-0
rubygems.py
rubygems.py
+7
-0
No files found.
README.rst
View file @
4fcfb6ec
...
...
@@ -33,6 +33,10 @@ gems
list of gem package names, also you can specify gem version, example:
``sass==3.1.1``.
url
rubygems zip download url, if not specified, recipe will try to find most
recent version.
version
rubygems version, if not specified, recipe will try to find most recent
version.
...
...
rubygems.py
View file @
4fcfb6ec
...
...
@@ -29,6 +29,7 @@ class Recipe(object):
self
.
gems
=
options
[
'gems'
].
split
()
self
.
version
=
options
.
get
(
'version'
)
self
.
url
=
options
.
get
(
'url'
)
# Allow to define specific ruby executable. If not, take just 'ruby'
self
.
ruby_executable
=
options
.
get
(
'ruby-executable'
,
'ruby'
)
...
...
@@ -80,6 +81,12 @@ class Recipe(object):
}
def
_get_latest_rubygems
(
self
):
if
self
.
url
:
version
=
self
.
version
if
not
version
:
version
=
re
.
search
(
r'rubygems-([0-9.]+).zip$'
,
self
.
url
).
group
(
1
)
return
(
self
.
url
,
version
)
if
self
.
version
:
return
(
'http://production.cf.rubygems.org/rubygems/'
'rubygems-%s.zip'
%
self
.
version
,
self
.
version
)
...
...
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