sys-uptime 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGES +3 -0
- data/README +1 -1
- data/Rakefile +7 -2
- data/lib/unix/sys/uptime.rb +1 -1
- data/lib/windows/sys/uptime.rb +1 -1
- data/sys-uptime.gemspec +1 -2
- data/test/test_sys_uptime.rb +1 -1
- metadata +17 -20
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 402ba267eb34c60b8745561aaf1f3d9c98a287c2
|
4
|
+
data.tar.gz: 7a07fa972b3a900fc89d226c64c85e03b67c7eeb
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: b1b9dab33ef4b67ee99115eb999239d28cad573bb5a84898307b1f2ff0a0d100c37e35d6ff7a4cd76386d5e89ba72fb1918a688de37a6633774d5d68584ff1a3
|
7
|
+
data.tar.gz: 070734e09612a40f18a317a71978c03831f612b6e393ccb2706d831bd8dada52dc763d0f5d9b05f3088152c8d950352f3e57e575ee6e3f2d687d95bb4daff895
|
data/CHANGES
CHANGED
data/README
CHANGED
data/Rakefile
CHANGED
@@ -19,13 +19,18 @@ namespace 'gem' do
|
|
19
19
|
spec.add_dependency('ffi', '>= 1.0.0')
|
20
20
|
end
|
21
21
|
|
22
|
-
Gem::
|
22
|
+
if Gem::VERSION < "2.0"
|
23
|
+
Gem::Builder.new(spec).build
|
24
|
+
else
|
25
|
+
require 'rubygems/package'
|
26
|
+
Gem::Package.build(spec)
|
27
|
+
end
|
23
28
|
end
|
24
29
|
|
25
30
|
desc 'Install the sys-uptime gem'
|
26
31
|
task :install => [:create] do
|
27
32
|
file = Dir["*.gem"].first
|
28
|
-
sh "gem install #{file}"
|
33
|
+
sh "gem install -l #{file}"
|
29
34
|
end
|
30
35
|
end
|
31
36
|
|
data/lib/unix/sys/uptime.rb
CHANGED
data/lib/windows/sys/uptime.rb
CHANGED
data/sys-uptime.gemspec
CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = 'sys-uptime'
|
5
|
-
spec.version = '0.6.
|
5
|
+
spec.version = '0.6.2'
|
6
6
|
spec.author = 'Daniel J. Berger'
|
7
7
|
spec.license = 'Artistic 2.0'
|
8
8
|
spec.email = 'djberg96@gmail.com'
|
@@ -12,7 +12,6 @@ Gem::Specification.new do |spec|
|
|
12
12
|
spec.files = Dir["**/*"].reject{ |f| f.include?('git') }
|
13
13
|
|
14
14
|
spec.extra_rdoc_files = ['CHANGES', 'README', 'MANIFEST']
|
15
|
-
spec.rubyforge_project = 'sysutils'
|
16
15
|
|
17
16
|
spec.description = <<-EOF
|
18
17
|
The sys-uptime library is a simple interface for gathering uptime
|
data/test/test_sys_uptime.rb
CHANGED
metadata
CHANGED
@@ -1,35 +1,33 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sys-uptime
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
5
|
-
prerelease:
|
4
|
+
version: 0.6.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Daniel J. Berger
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2014-11-09 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: ffi
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - ">="
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: 1.0.0
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - ">="
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: 1.0.0
|
30
|
-
description:
|
31
|
-
|
32
|
-
|
27
|
+
description: |2
|
28
|
+
The sys-uptime library is a simple interface for gathering uptime
|
29
|
+
information. You can retrieve data in seconds, minutes, days, hours,
|
30
|
+
or all of the above.
|
33
31
|
email: djberg96@gmail.com
|
34
32
|
executables: []
|
35
33
|
extensions: []
|
@@ -39,39 +37,38 @@ extra_rdoc_files:
|
|
39
37
|
- MANIFEST
|
40
38
|
files:
|
41
39
|
- CHANGES
|
40
|
+
- MANIFEST
|
41
|
+
- README
|
42
|
+
- Rakefile
|
42
43
|
- examples/uptime_test.rb
|
43
44
|
- lib/unix/sys/uptime.rb
|
44
45
|
- lib/windows/sys/uptime.rb
|
45
|
-
- MANIFEST
|
46
|
-
- Rakefile
|
47
|
-
- README
|
48
46
|
- sys-uptime.gemspec
|
49
47
|
- test/test_sys_uptime.rb
|
50
48
|
homepage: https://github.com/djberg96/sys-uptime
|
51
49
|
licenses:
|
52
50
|
- Artistic 2.0
|
51
|
+
metadata: {}
|
53
52
|
post_install_message:
|
54
53
|
rdoc_options: []
|
55
54
|
require_paths:
|
56
55
|
- lib
|
57
56
|
- lib/unix
|
58
57
|
required_ruby_version: !ruby/object:Gem::Requirement
|
59
|
-
none: false
|
60
58
|
requirements:
|
61
|
-
- -
|
59
|
+
- - ">="
|
62
60
|
- !ruby/object:Gem::Version
|
63
61
|
version: '0'
|
64
62
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
63
|
requirements:
|
67
|
-
- -
|
64
|
+
- - ">="
|
68
65
|
- !ruby/object:Gem::Version
|
69
66
|
version: '0'
|
70
67
|
requirements: []
|
71
|
-
rubyforge_project:
|
72
|
-
rubygems_version:
|
68
|
+
rubyforge_project:
|
69
|
+
rubygems_version: 2.2.2
|
73
70
|
signing_key:
|
74
|
-
specification_version:
|
71
|
+
specification_version: 4
|
75
72
|
summary: A Ruby interface for getting system uptime information.
|
76
73
|
test_files:
|
77
74
|
- test/test_sys_uptime.rb
|