Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/matsumotory/mruby-uname
system uname bindings
https://github.com/matsumotory/mruby-uname
Last synced: about 2 months ago
JSON representation
system uname bindings
- Host: GitHub
- URL: https://github.com/matsumotory/mruby-uname
- Owner: matsumotory
- License: other
- Created: 2014-06-03T04:14:00.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-06-03T08:29:50.000Z (over 10 years ago)
- Last Synced: 2024-10-18T18:16:58.888Z (3 months ago)
- Language: C
- Size: 145 KB
- Stars: 1
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-mruby - mruby-uname - Uname class, system uname bindings. (System)
README
# mruby-uname [![Build Status](https://travis-ci.org/matsumoto-r/mruby-uname.svg?branch=master)](https://travis-ci.org/matsumoto-r/mruby-uname)
Uname class, system uname bindings
## install by mrbgems
- add conf.gem line to `build_config.rb````ruby
MRuby::Build.new do |conf|# ... (snip) ...
conf.gem :git => 'https://github.com/matsumoto-r/mruby-uname.git'
end
```
## example
```ruby
$ ./bin/mirb
mirb - Embeddable Interactive Ruby Shell> Uname.version
=> "#46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014"
> Uname.release
=> "3.13.0-24-generic"
> Uname.sysname
=> "Linux"
> Uname.nodename
=> "ubuntu14-04-64"
> Uname.machine
=> "x86_64"
>
```## License
under the MIT License:
- see LICENSE file