sys-uptime 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/CHANGES +5 -0
- data/README +1 -1
- data/Rakefile +1 -3
- data/certs/djberg96_pub.pem +22 -17
- data/lib/sys/uptime.rb +1 -1
- data/sys-uptime.gemspec +10 -1
- data/test/test_sys_uptime.rb +3 -2
- metadata +41 -30
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 72e69131ad6cd87126c07f6ee1b86f96bcb94fad06481b31e0af63b9e2e3d1f2
|
4
|
+
data.tar.gz: 04d76a92b4c30697055281729d04123e3c90bf382f3a75a6b1490f297593c026
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d68dc7da76c7e4c9968175b3ac7cb5355004345c087483d914096fa4e06232397adca500c2512c7136cc497cff944ffa0704a3737b080d53a1ec8528f97e3173
|
7
|
+
data.tar.gz: 86eb66468d20d99647a647e856e3a29364e08fcdd41ac8425bc9ec3f61f4525fde6054cbb83f96fbed99280a184da58b8f644caf1bf3bc15b91cad4baabc16c7
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/CHANGES
CHANGED
data/README
CHANGED
data/Rakefile
CHANGED
@@ -12,9 +12,7 @@ namespace 'gem' do
|
|
12
12
|
spec.signing_key = File.join(Dir.home, '.ssh', 'gem-private_key.pem')
|
13
13
|
|
14
14
|
if File::ALT_SEPARATOR
|
15
|
-
spec.platform = Gem::Platform
|
16
|
-
spec.platform.cpu = 'universal'
|
17
|
-
spec.platform.version = nil
|
15
|
+
spec.platform = Gem::Platform.new(['universal','mingw32'])
|
18
16
|
else
|
19
17
|
spec.add_dependency('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IBtO1gFvQWW7E/Y3ijliWJS1GQFq
|
14
|
+
058qERadHGu1yu1dojmFRo6W2KZvY9al2yIlbkpDrD5MYQIDAQABo3cwdTAJBgNV
|
15
|
+
HRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNVHQ4EFgQUFZsMapgzJimzsbaBG2Tm8j5e
|
16
|
+
AzgwHQYDVR0RBBYwFIESZGpiZXJnOTZAZ21haWwuY29tMB0GA1UdEgQWMBSBEmRq
|
17
|
+
YmVyZzk2QGdtYWlsLmNvbTANBgkqhkiG9w0BAQsFAAOCAYEAW2tnYixXQtKxgGXq
|
18
|
+
/3iSWG2bLwvxS4go3srO+aRXZHrFUMlJ5W0mCxl03aazxxKTsVVpZD8QZxvK91OQ
|
19
|
+
h9zr9JBYqCLcCVbr8SkmYCi/laxIZxsNE5YI8cC8vvlLI7AMgSfPSnn/Epq1GjGY
|
20
|
+
6L1iRcEDtanGCIvjqlCXO9+BmsnCfEVehqZkQHeYczA03tpOWb6pon2wzvMKSsKH
|
21
|
+
ks0ApVdstSLz1kzzAqem/uHdG9FyXdbTAwH1G4ZPv69sQAFAOCgAqYmdnzedsQtE
|
22
|
+
1LQfaQrx0twO+CZJPcRLEESjq8ScQxWRRkfuh2VeR7cEU7L7KqT10mtUwrvw7APf
|
23
|
+
DYoeCY9KyjIBjQXfbj2ke5u1hZj94Fsq9FfbEQg8ygCgwThnmkTrrKEiMSs3alYR
|
24
|
+
ORVCZpRuCPpmC8qmqxUnARDArzucjaclkxjLWvCVHeFa9UP7K3Nl9oTjJNv+7/jM
|
25
|
+
WZs4eecIcUc4tKdHxcAJ0MO/Dkqq7hGaiHpwKY76wQ1+8xAh
|
21
26
|
-----END CERTIFICATE-----
|
data/lib/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.7.
|
5
|
+
spec.version = '0.7.2'
|
6
6
|
spec.author = 'Daniel J. Berger'
|
7
7
|
spec.license = 'Apache 2.0'
|
8
8
|
spec.email = 'djberg96@gmail.com'
|
@@ -14,6 +14,15 @@ Gem::Specification.new do |spec|
|
|
14
14
|
|
15
15
|
spec.extra_rdoc_files = ['CHANGES', 'README', 'MANIFEST']
|
16
16
|
|
17
|
+
spec.metadata = {
|
18
|
+
'homepage_uri' => 'https://github.com/djberg96/sys-uptime',
|
19
|
+
'bug_tracker_uri' => 'https://github.com/djberg96/sys-uptime/issues',
|
20
|
+
'changelog_uri' => 'https://github.com/djberg96/sys-uptime/blob/ffi/CHANGES',
|
21
|
+
'documentation_uri' => 'https://github.com/djberg96/sys-uptime/wiki',
|
22
|
+
'source_code_uri' => 'https://github.com/djberg96/sys-uptime',
|
23
|
+
'wiki_uri' => 'https://github.com/djberg96/sys-uptime/wiki'
|
24
|
+
}
|
25
|
+
|
17
26
|
spec.description = <<-EOF
|
18
27
|
The sys-uptime library is a simple interface for gathering uptime
|
19
28
|
information. You can retrieve data in seconds, minutes, days, hours,
|
data/test/test_sys_uptime.rb
CHANGED
@@ -11,7 +11,8 @@ include Sys
|
|
11
11
|
|
12
12
|
class TC_Sys_Uptime < Test::Unit::TestCase
|
13
13
|
test "version is set to expected value" do
|
14
|
-
assert_equal('0.7.
|
14
|
+
assert_equal('0.7.2', Uptime::VERSION)
|
15
|
+
assert_true(Uptime::VERSION.frozen?)
|
15
16
|
end
|
16
17
|
|
17
18
|
test "seconds method basic functionality" do
|
@@ -50,7 +51,7 @@ class TC_Sys_Uptime < Test::Unit::TestCase
|
|
50
51
|
end
|
51
52
|
|
52
53
|
test "days method returns a plausible value" do
|
53
|
-
assert_kind_of(
|
54
|
+
assert_kind_of(Integer, Uptime.days)
|
54
55
|
assert_true(Uptime.days >= 0)
|
55
56
|
end
|
56
57
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sys-uptime
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel J. Berger
|
@@ -10,27 +10,32 @@ bindir: bin
|
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
|
-
|
13
|
+
MIIEcDCCAtigAwIBAgIBATANBgkqhkiG9w0BAQsFADA/MREwDwYDVQQDDAhkamJl
|
14
14
|
cmc5NjEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGRYDY29t
|
15
|
-
|
15
|
+
MB4XDTE4MDMxODE1MjIwN1oXDTI4MDMxNTE1MjIwN1owPzERMA8GA1UEAwwIZGpi
|
16
16
|
ZXJnOTYxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkWA2Nv
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
17
|
+
bTCCAaIwDQYJKoZIhvcNAQEBBQADggGPADCCAYoCggGBALgfaroVM6CI06cxr0/h
|
18
|
+
A+j+pc8fgpRgBVmHFaFunq28GPC3IvW7Nvc3Y8SnAW7pP1EQIbhlwRIaQzJ93/yj
|
19
|
+
u95KpkP7tA9erypnV7dpzBkzNlX14ACaFD/6pHoXoe2ltBxk3CCyyzx70mTqJpph
|
20
|
+
75IB03ni9a8yqn8pmse+s83bFJOAqddSj009sGPcQO+QOWiNxqYv1n5EHcvj2ebO
|
21
|
+
6hN7YTmhx7aSia4qL/quc4DlIaGMWoAhvML7u1fmo53CYxkKskfN8MOecq2vfEmL
|
22
|
+
iLu+SsVVEAufMDDFMXMJlvDsviolUSGMSNRTujkyCcJoXKYYxZSNtIiyd9etI0X3
|
23
|
+
ctu0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
39
|
dependencies:
|
35
40
|
- !ruby/object:Gem::Dependency
|
36
41
|
name: ffi
|
@@ -58,31 +63,37 @@ extra_rdoc_files:
|
|
58
63
|
- README
|
59
64
|
- MANIFEST
|
60
65
|
files:
|
66
|
+
- test
|
67
|
+
- test/test_sys_uptime.rb
|
68
|
+
- sys-uptime.gemspec
|
69
|
+
- CHANGES
|
70
|
+
- MANIFEST
|
71
|
+
- README
|
72
|
+
- Rakefile
|
61
73
|
- certs
|
62
74
|
- certs/djberg96_pub.pem
|
63
|
-
- CHANGES
|
64
75
|
- examples
|
65
76
|
- examples/uptime_test.rb
|
66
77
|
- lib
|
78
|
+
- lib/sys-uptime.rb
|
67
79
|
- lib/sys
|
80
|
+
- lib/sys/uptime.rb
|
68
81
|
- lib/sys/unix
|
69
82
|
- lib/sys/unix/sys
|
70
83
|
- lib/sys/unix/sys/uptime.rb
|
71
|
-
- lib/sys/uptime.rb
|
72
84
|
- lib/sys/windows
|
73
85
|
- lib/sys/windows/sys
|
74
86
|
- lib/sys/windows/sys/uptime.rb
|
75
|
-
- lib/sys-uptime.rb
|
76
|
-
- MANIFEST
|
77
|
-
- Rakefile
|
78
|
-
- README
|
79
|
-
- sys-uptime.gemspec
|
80
|
-
- test
|
81
|
-
- test/test_sys_uptime.rb
|
82
87
|
homepage: https://github.com/djberg96/sys-uptime
|
83
88
|
licenses:
|
84
89
|
- Apache 2.0
|
85
|
-
metadata:
|
90
|
+
metadata:
|
91
|
+
homepage_uri: https://github.com/djberg96/sys-uptime
|
92
|
+
bug_tracker_uri: https://github.com/djberg96/sys-uptime/issues
|
93
|
+
changelog_uri: https://github.com/djberg96/sys-uptime/blob/ffi/CHANGES
|
94
|
+
documentation_uri: https://github.com/djberg96/sys-uptime/wiki
|
95
|
+
source_code_uri: https://github.com/djberg96/sys-uptime
|
96
|
+
wiki_uri: https://github.com/djberg96/sys-uptime/wiki
|
86
97
|
post_install_message:
|
87
98
|
rdoc_options: []
|
88
99
|
require_paths:
|
@@ -99,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
99
110
|
version: '0'
|
100
111
|
requirements: []
|
101
112
|
rubyforge_project:
|
102
|
-
rubygems_version: 2.6
|
113
|
+
rubygems_version: 2.7.6
|
103
114
|
signing_key:
|
104
115
|
specification_version: 4
|
105
116
|
summary: A Ruby interface for getting system uptime information.
|
metadata.gz.sig
CHANGED
Binary file
|