Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Improve generating module name from gem name in gem generator #3483

Merged
merged 1 commit into from
Apr 1, 2015
Merged

Improve generating module name from gem name in gem generator #3483

merged 1 commit into from
Apr 1, 2015

Conversation

janlelis
Copy link
Contributor

I encountered the bug that the gem generator would fail on gem names containing two dashes (like a--a). I updated the module name generator to use a more robust regex based approach.

@indirect
Copy link
Member

Thank you for the patch! Unfortunately we can't accept it because your change breaks the tests. Could you update this pull request so the tests pass, and add a test for the gem with two dashes in its name? Thanks.

@janlelis
Copy link
Contributor Author

I rewrote the regex to be 1.8 compatible and added a simple test.

@janlelis
Copy link
Contributor Author

The travis fail seems to be a timeout.

@indirect
Copy link
Member

indirect commented Apr 1, 2015

Thanks!

indirect added a commit that referenced this pull request Apr 1, 2015
Improve generating module name from gem name in gem generator
@indirect indirect merged commit af7997b into rubygems:master Apr 1, 2015
@coilysiren coilysiren modified the milestone: Release Archive Oct 9, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants