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
c817d701
Commit
c817d701
authored
Sep 14, 2021
by
Léo-Paul Géneau
👾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix version cast to int
Ensure cast to int of 2 digits major version works
parent
54de2719
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
rubygems.py
rubygems.py
+1
-1
tests/test_rubygems.py
tests/test_rubygems.py
+5
-0
No files found.
rubygems.py
View file @
c817d701
...
...
@@ -275,7 +275,7 @@ class Recipe(object):
def
get_dependency_list
(
self
,
gem_dict
,
gem_executable
):
gem_search_pattern
=
'^'
+
gem_dict
[
'gemname'
].
replace
(
'.'
,
r'\
.
') + '
$
'
if
self.version[0] < '
3
'
:
if
int(self.version.split(".")[0]) < 3
:
gem_search_pattern = '
/
' + gem_search_pattern + '
/
'
cmd = [
...
...
tests/test_rubygems.py
View file @
c817d701
...
...
@@ -301,6 +301,11 @@ class RubyGemsDefaultTestCase(RubyGemsTestCase):
rubygems
.
Recipe
,
buildout
,
name
,
options
)
@
fixture
({
'recipe'
:
{
'gems'
:
'sass'
,
'version'
:
'10.0.0'
}})
def
test_2_digits_version
(
self
,
path
,
patches
,
buildout
,
name
,
options
,
version
):
recipe
=
rubygems
.
Recipe
(
buildout
,
name
,
options
)
recipe
.
update
()
class
deployment_fixture
(
fixture
):
def
check_output_mock
(
self
,
cmd
,
**
kwargs
):
...
...
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