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 gem build licence warning #104

Merged
merged 1 commit into from Nov 3, 2016
Merged

Conversation

CrCs2O4
Copy link
Contributor

@CrCs2O4 CrCs2O4 commented Oct 26, 2016

When building gem created with Methadone there is a warning:

WARNING: license value 'mit' is invalid.  Use a license identifier from
http://spdx.org/licenses or 'Nonstandard' for a nonstandard license.

Thanks for awesome app!

@@ -69,7 +69,7 @@ main do |app_name|
if gemspec_content =~ /(^\s*#{gem_variable}\.license\s*=\s*).*/
gemspec_content.gsub!(/(^\s*#{gem_variable}\.license\s*=\s*).*/,"\\1#{license.to_s.inspect}")
else
gemspec_content.gsub!(/(^\s*#{gem_variable}\.name\s*=\s*.*)/,"\\1\n #{gem_variable}.license=#{license.to_s.inspect}")
gemspec_content.gsub!(/(^\s*#{gem_variable}\.name\s*=\s*.*)/,"\\1\n#{" #{gem_variable}.license".ljust(20)} = #{license.to_s.inspect.upcase}")
Copy link
Owner

Choose a reason for hiding this comment

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

Is this needed?

Copy link
Owner

Choose a reason for hiding this comment

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

@CrCs2O4 what is the ljust for here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ljust align license string with others

Before PR:
ljust

After PR:
ljust

Copy link
Owner

Choose a reason for hiding this comment

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

ok, cool. make sense.

@davetron5000
Copy link
Owner

d'oh. thanks for finding this!

@CrCs2O4
Copy link
Contributor Author

CrCs2O4 commented Nov 3, 2016

@davetron5000 you need something more from me to merge this PR?

@davetron5000 davetron5000 merged commit 1f3acbe into davetron5000:master Nov 3, 2016
@davetron5000
Copy link
Owner

Released as https://github.com/davetron5000/methadone/releases/tag/v1.9.3

Thanks again!

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