![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
System is a pure ruby interface to gather current systems information.
System is a cross-platform and cross-implementation interface to gather system information from the current host.
System offers a simple to use interface to gather an array of information including; OS, CPU, Filesystem, etc.
gem 'system'
gem install system
require 'system'
System::Ruby.java? # => Are we running on java?
System::Ruby.jruby? # => Are we running on jruby?
System::OS.name # => Current OS name as a Symbol i.e. :windows, :linux, :osx, :bsd, :darwin, :solaris
System::CPU.count # => Current number of CPUs, including individual cores
Separate OS and Implementation specific logic into loadable mixins
i.e. require 'system/cpu'
would require 'system/cpu/java'
if running JRuby.
SPECS! Decide how to stub out system calls and replace with fixtures.
System::CPU[0].id # => The first CPU's physical ID as an integer
System::CPU[0].vendor # => The first CPU's vendor as a String
System::CPU[0].family # => The first CPU's family as an Integer
System::CPU[0].model # => The first CPU's model as an Integer
System::CPU[0].name # => The first CPU's model as a String
System::CPU[0].speed # => The first CPU's speed in MHz as a Float
System::CPU[0].cache # => The first CPU's cache size in KB as an Integer
System::CPU[0].multi_core? # => Does the first CPU contain multiple cores?
System::CPU[0].cores[0] # => The first CPU's first core as a System::CPU::Core
System::CPU[0].cores[0].id # => The ID of the first CPU's first core as an Integer
System::CPU[0].cores[0].flags # => An Array containing the Core's flags as Symbols
System::CPU[0].cores[0].siblings # => An Array containing the other Cores in the CPU
System::CPU[0].cores[0].siblings # => An Array containing the other Cores in the CPU
Copyright © 2009-2012 Roja Buck and Ryan Scott Lewis.
The MIT License (MIT) - See LICENSE for further details.
FAQs
Unknown package
We found that system demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.