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

new_from_short_name falls back on Software::License::ShortName #31

Closed
wants to merge 1 commit into from

Conversation

dod38fr
Copy link
Contributor

@dod38fr dod38fr commented Sep 20, 2014

Hello

Previously,new_from_short_name worked using a set of pre-defined short names like GPL-1...

Unfortunately, this means that this method failed when using a short name like MIT.

This patch fixes this behavior: when the passed short name is not known (say Foo), new_from_short_name tries to load a class like Software::License::Foo.

I believe that this behavior makes more sense.

All the best

@@ -194,7 +194,11 @@ my %short_name = (

Create a new L<Software::License> object from the license specified
with C<short_name>. Known short license names are C<GPL-*>, C<LGPL-*> ,
C<Artistic> and C<Artistic-*>
C<Artistic> and C<Artistic-*>. If the short name is not know, this
Copy link
Member

Choose a reason for hiding this comment

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

"know" -> "known"

@karenetheridge
Copy link
Member

With some squashing, and correcting the typo noted above, this looks reasonable to me on first glance.

@dod38fr
Copy link
Contributor Author

dod38fr commented Nov 13, 2015

No problem. I'll do this tomorrow.

All the best

@dod38fr
Copy link
Contributor Author

dod38fr commented Nov 14, 2015

Done. The typo is fixed and the commits were squashed.

All the best

@dod38fr
Copy link
Contributor Author

dod38fr commented Nov 14, 2015

Actutally, this PR was merged a while ago by rjbs. I don't know why this PR was not closed before.

@dod38fr dod38fr closed this Nov 14, 2015
@dod38fr
Copy link
Contributor Author

dod38fr commented Nov 14, 2015

Hum, I messed up the above squash. I've now fixed everything but I cannot re-open this PR.

I'm going to create another PR.

Sorry about the mess

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