Platform

0.4.2last stable release 6 years ago
Complexity Score
Low
Open Issues
0
Dependent Projects
6
Weekly Downloadsglobal
8,437

License

  • MIT
    • Yesattribution
    • Permissivelinking
    • Permissivedistribution
    • Permissivemodification
    • Nopatent grant
    • Yesprivate use
    • Permissivesublicensing
    • Notrademark grant

Downloads

Readme

Platform

author: Matt Mower self@mattmower.com

license: MIT

The Platform library offers a simple, reliable, means of

determining what platform Ruby is running on. Underlying

Platform is the RUBY_PLATFORM constant. This library is

parsing this constant for information. You could easily do

this yourself. We’ve just taken the hassle out of it for

you and hopefully covered a few of the more unusual cases

you mightn’t have thought of yourself.

On the other hand, if you’ve got cases we haven’t please

mail the authors.

==Use

require ‘platform’

defines

Platform::OS

:unix

:hybrid (e.g. Cygwin)

:win32

:vms

:os2

:unknown

Platform::IMPL

:macosx

:linux

:freebsd

:netbsd

:mswin

:cygwin

:mingw

:bccwin

:wince

:vms

:os2

:solaris

:aix

:irix

:hpux

:unknown

Platform::ARCH

:x86

:x86_64

:ia64

:powerpc

:alpha

:sparc

:mips

:parisc

:unknown

Dependencies

Loading dependencies...

CVE IssuesActive
0
Scorecards Score
No Data
Test Coverage
No Data
Follows Semver
Yes
Github Stars
0
Dependenciestotal
0
DependenciesOutdated
0
DependenciesDeprecated
0
Threat Modelling
No
Repo Audits
No

Learn how to distribute Platform in your own private RubyGems registry

gem install Platform
Processing...
Done

Releases

Loading Version Data
RubyGems on Cloudsmith

Getting started with RubyGems on Cloudsmith is fast and easy.