ioled 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/bin/ioled +4 -0
  4. metadata +24 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8212ffb0d6a77810014825c72f3e64130bff30ae
4
- data.tar.gz: 9c440c56fa25a6e6ebb19d45bd3c39a8c5ca5db4
3
+ metadata.gz: 63ef18836f4025f801c28209fbbba9b832bbb8b0
4
+ data.tar.gz: c4a88a0345b5c8add287fac0089dfd80e20219a8
5
5
  SHA512:
6
- metadata.gz: c606f0af3e7e551231e6ebabdb16ba185a9b7bc397cdac539cb982160c2df2fb6eb8cd327b2c0e1a959bc3cc6f23b8eabe199a1498ba8314f3ec57a4dea0e7f4
7
- data.tar.gz: 5fa3af2ddd32d2261cc56613d803b99200940b52ec5e1570613301ffbc29e32371ab314a967801cd27ccc35fbbc30217289723a80b8d84a3dea99f05fb0a2702
6
+ metadata.gz: e5e143805d1f705f58fc694bcd6adf1995f773d1216eb54202dc7a6b853beffbfdd90d0d092b1fae332820112cfa6b2b2f27e01457a1444054cdae48d3557f9c
7
+ data.tar.gz: cfbbd83dd4a7a7aab458a943640281655b1187b07590ab49394d3df3cf87e9c741f7bff06a5a3ed25d95cfe152dbdac176dfcc2a7f23349fae839826666537cc
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
  This utility converts your keyboards's capslock led to a disk access indicator led. It only works on OS X and requires the use of fs_usage, which in turn requires root privileges. Hence, run with sudo or suggest some other method of monitoring disk access.
3
3
 
4
4
  # Installation
5
- `gem install ioled`
5
+ `sudo gem install ioled`
6
6
 
7
7
  # Usage
8
8
  `sudo ioled`
data/bin/ioled CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  require 'maclight'
4
4
 
5
+ if Process.uid != 0
6
+ puts "Root privileges required. Run like this:\nsudo ioled"
7
+ exit
8
+ end
5
9
 
6
10
  # what to monitor (fs_usage requires root privileges)
7
11
  cmd = 'fs_usage -f diskio -w'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ioled
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juha-Jarmo Heinonen
@@ -9,11 +9,32 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
  date: 2016-09-01 00:00:00.000000000 Z
12
- dependencies: []
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: maclight
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '3.0'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 3.0.0
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '3.0'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 3.0.0
13
33
  description: This utility converts your keyboards's capslock led to a disk access
14
34
  indicator led. It only works on OS X.
15
35
  email: o@sorsacode.com
16
- executables: []
36
+ executables:
37
+ - ioled
17
38
  extensions: []
18
39
  extra_rdoc_files: []
19
40
  files: