Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #291 don't trim gem version. #292

Merged
merged 1 commit into from Nov 27, 2012
Merged

Fix #291 don't trim gem version. #292

merged 1 commit into from Nov 27, 2012

Conversation

r4um
Copy link
Contributor

@r4um r4um commented Nov 26, 2012

Avoid trimming gem version when there are greater than 3 version sequences.

@r4um r4um mentioned this pull request Nov 26, 2012
@@ -111,8 +111,8 @@ def load_package_info(gem_path)
# expand spec's version to match RationalVersioningPolicy to prevent cases
# where missing 'build' number prevents correct dependency resolution by target
# package manager. Ie. for dpkg 1.1 != 1.1.0
m = spec.version.to_s.match /^(\d)?.?(\d+)?.?(\d+)?/
self.version = m.captures.map {|m| m ? m : 0}.join('.')
m = spec.version.to_s.scan(/(\d)\.?/)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think the \d should be \d+ here

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll fix that prior to release.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah! yes. Thanks for taking care of it.

jordansissel added a commit that referenced this pull request Nov 27, 2012
Fix #291 don't trim gem version.
@jordansissel jordansissel merged commit 9ba788d into jordansissel:master Nov 27, 2012
prof-milki pushed a commit to prof-milki/xpm that referenced this pull request Dec 18, 2014
prof-milki pushed a commit to prof-milki/xpm that referenced this pull request Dec 27, 2014
jordansissel added a commit that referenced this pull request Apr 24, 2015
Fix #291 don't trim gem version.
jordansissel added a commit that referenced this pull request Jun 20, 2016
Fix #291 don't trim gem version.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants