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

added function that returns more detailed platform information #86

Closed
wants to merge 7 commits into from

Conversation

mfittko
Copy link

@mfittko mfittko commented May 9, 2014

we had a requirement in our project that forced us to extend the platform methods with a method that returns more detailed information of platform version (especially windows). I would suggest to merge it into your repo.


def platform_version
case
when linux?
Copy link
Collaborator

Choose a reason for hiding this comment

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

Indent when as deep as case.

@@ -108,5 +108,35 @@ def platform
:other
end
end

#returns platform as string and additionally OS version in case of Windows
Copy link
Collaborator

Choose a reason for hiding this comment

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

Missing space after #.

@rui-ribeiro
Copy link

Hi,

Do you have a similar feature like this yet?

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

5 participants