iStats 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +18 -2
- data/Rakefile +4 -1
- data/iStats.gemspec +19 -18
- data/lib/iStats.rb +1 -1
- data/lib/iStats/cpu.rb +1 -1
- data/lib/iStats/version.rb +1 -1
- metadata +3 -4
- data/lib/osx_stats/osx_stats.bundle +0 -0
- data/lib/osx_stats/test.rb +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aee9dfc4f388921ce4fee43b4b55dcd82e8b0e05
|
4
|
+
data.tar.gz: 227f1cdf64824cc28ad25f39a70bec2ca0aad48d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94840adaefe38c418798232714c9b74c3f9ce8aca70c6e6392ab3b6f7c3454f912412a6eee1c6a9ffc2b5e834bfb6661bf30f69f107d21b57397c68dd5bf1d65
|
7
|
+
data.tar.gz: 79476455860bdbdf6bd3ac2298a3b37aa5f0170211c4a1185fa31ad064f4b737cf528e73fc7254d6c90065e256fce6c0906fd261a3760b6795f5f6530c71fd4c
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
iStats
|
2
2
|
======
|
3
3
|
|
4
|
-
Quick attempt at writing a Ruby wrapper for a small C library that interacts with the IOKit library (apple) to get the CPU temperature.
|
4
|
+
Quick attempt at writing a Ruby wrapper for a small C library that interacts with the IOKit library (apple) to get the CPU temperature. Will expand to more hardware data and stats in the future.
|
5
|
+
|
6
|
+
__Note:__ Currently only works for Ruby 2.0. Working on a new gem that will work on 1.9, 2.0 and 2.1.
|
7
|
+
|
8
|
+
## Screenshot
|
9
|
+
![](http://i.imgur.com/ht2NZCL.gif)
|
5
10
|
|
6
11
|
## Installation
|
7
12
|
|
@@ -19,7 +24,18 @@ Or install it yourself as:
|
|
19
24
|
|
20
25
|
## Usage
|
21
26
|
|
22
|
-
|
27
|
+
```
|
28
|
+
- iStats: help ---------------------------------------------------
|
29
|
+
|
30
|
+
istats --help This help text
|
31
|
+
istats --version Print current version
|
32
|
+
|
33
|
+
istats all Print all stats
|
34
|
+
istats cpu Print all CPU stats
|
35
|
+
istats cpu [temp | temperature] Print CPU temperature
|
36
|
+
|
37
|
+
for more help see: https://github.com/Chris911/iStats
|
38
|
+
```
|
23
39
|
|
24
40
|
## Contributing
|
25
41
|
|
data/Rakefile
CHANGED
@@ -1,6 +1,9 @@
|
|
1
1
|
require 'bundler/gem_tasks'
|
2
2
|
require 'rake/extensiontask'
|
3
3
|
|
4
|
-
|
4
|
+
GEMSPEC = Gem::Specification.load(File.expand_path("../iStats.gemspec", __FILE__))
|
5
|
+
|
6
|
+
Rake::ExtensionTask.new('osx_stats', GEMSPEC) do |ext|
|
7
|
+
ext.name = 'osx_stats'
|
5
8
|
ext.lib_dir = 'lib/osx_stats'
|
6
9
|
end
|
data/iStats.gemspec
CHANGED
@@ -5,26 +5,27 @@ lib = File.expand_path('../lib', __FILE__)
|
|
5
5
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
6
6
|
require 'iStats/version'
|
7
7
|
|
8
|
-
Gem::Specification.new do |
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
8
|
+
spec = Gem::Specification.new do |s|
|
9
|
+
s.name = "iStats"
|
10
|
+
s.version = IStats::VERSION
|
11
|
+
s.authors = ["Chris911"]
|
12
|
+
s.email = ["christophe.naud.dulude@gmail.com"]
|
13
|
+
s.description = "Stats for your mac"
|
14
|
+
s.summary = "Stats for your mac"
|
15
|
+
s.homepage = "https://github.com/Chris911/iStats"
|
16
|
+
s.license = "MIT"
|
17
17
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
18
|
+
s.files = `git ls-files`.split($/)
|
19
|
+
s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
20
|
+
s.test_files = s.files.grep(%r{^(test|spec|features)/})
|
21
|
+
s.require_paths = ["lib", "ext"]
|
22
22
|
|
23
|
-
|
23
|
+
s.platform = Gem::Platform::RUBY
|
24
|
+
s.extensions = FileList["ext/**/extconf.rb"]
|
24
25
|
|
25
|
-
|
26
|
+
s.add_dependency "sparkr"
|
26
27
|
|
27
|
-
|
28
|
-
|
29
|
-
|
28
|
+
s.add_development_dependency "bundler", "~> 1.3"
|
29
|
+
s.add_development_dependency "rake"
|
30
|
+
s.add_development_dependency "rake-compiler"
|
30
31
|
end
|
data/lib/iStats.rb
CHANGED
data/lib/iStats/cpu.rb
CHANGED
data/lib/iStats/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iStats
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris911
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-04-
|
11
|
+
date: 2014-04-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sparkr
|
@@ -91,8 +91,6 @@ files:
|
|
91
91
|
- lib/iStats/command.rb
|
92
92
|
- lib/iStats/cpu.rb
|
93
93
|
- lib/iStats/version.rb
|
94
|
-
- lib/osx_stats/osx_stats.bundle
|
95
|
-
- lib/osx_stats/test.rb
|
96
94
|
homepage: https://github.com/Chris911/iStats
|
97
95
|
licenses:
|
98
96
|
- MIT
|
@@ -101,6 +99,7 @@ post_install_message:
|
|
101
99
|
rdoc_options: []
|
102
100
|
require_paths:
|
103
101
|
- lib
|
102
|
+
- ext
|
104
103
|
required_ruby_version: !ruby/object:Gem::Requirement
|
105
104
|
requirements:
|
106
105
|
- - '>='
|
Binary file
|