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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: c8910d9d6c47f4115fa0fd05d20c8d1ce4f7f5a5
4
- data.tar.gz: d611a20b013cc367f1672d2f37e11167583fc906
2
+ SHA256:
3
+ metadata.gz: 72e69131ad6cd87126c07f6ee1b86f96bcb94fad06481b31e0af63b9e2e3d1f2
4
+ data.tar.gz: 04d76a92b4c30697055281729d04123e3c90bf382f3a75a6b1490f297593c026
5
5
  SHA512:
6
- metadata.gz: e241b2b7fce39af5831175f02c443fb661cbca0964450440b5b1efc4265f7b8cabd1cd6041271f1b63f191460ea481037ff4185af75bc9801622f855a31061e8
7
- data.tar.gz: 83dff6f51136751671eb5ae1c1b4a6a7721902d962258ca1a535bd7ade4c016629043621e1b3f7bff91a84cc481bde5af90bf63e37ce98901a157938c4f025f7
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
@@ -1,3 +1,8 @@
1
+ == 0.7.2 - 4-Nov-2018
2
+ * Added metadata to the gemspec.
3
+ * The VERSION constant is now frozen.
4
+ * Updated cert.
5
+
1
6
  == 0.7.1 - 14-May-2016
2
7
  * Altered internal layout, which also fixed a require bug. Thanks go
3
8
  to jkburges for the spot.
data/README CHANGED
@@ -43,7 +43,7 @@
43
43
  Apache 2.0
44
44
 
45
45
  == Copyright
46
- Copyright 2002-2015, Daniel J. Berger
46
+ Copyright 2002-2018, Daniel J. Berger
47
47
 
48
48
  All Rights Reserved. This module is free software. It may be used,
49
49
  redistributed and/or modified under the same terms as Ruby itself.
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::CURRENT
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('ffi', '>= 1.0.0')
20
18
  end
@@ -1,21 +1,26 @@
1
1
  -----BEGIN CERTIFICATE-----
2
- MIIDcDCCAligAwIBAgIBATANBgkqhkiG9w0BAQUFADA/MREwDwYDVQQDDAhkamJl
2
+ MIIEcDCCAtigAwIBAgIBATANBgkqhkiG9w0BAQsFADA/MREwDwYDVQQDDAhkamJl
3
3
  cmc5NjEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGRYDY29t
4
- MB4XDTE1MDkwMjIwNDkxOFoXDTE2MDkwMTIwNDkxOFowPzERMA8GA1UEAwwIZGpi
4
+ MB4XDTE4MDMxODE1MjIwN1oXDTI4MDMxNTE1MjIwN1owPzERMA8GA1UEAwwIZGpi
5
5
  ZXJnOTYxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkWA2Nv
6
- bTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMyTkvXqRp6hLs9eoJOS
7
- Hmi8kRYbq9Vkf15/hMxJpotYMgJVHHWrmDcC5Dye2PbnXjTkKf266Zw0PtT9h+lI
8
- S3ts9HO+vaCFSMwFFZmnWJSpQ3CNw2RcHxjWkk9yF7imEM8Kz9ojhiDXzBetdV6M
9
- gr0lV/alUr7TNVBDngbXEfTWscyXh1qd7xZ4EcOdsDktCe5G45N/o3662tPQvJsi
10
- FOF0CM/KuBsa/HL1/eoEmF4B3EKIRfTHrQ3hu20Kv3RJ88QM4ec2+0dd97uX693O
11
- zv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jUolD5r9KGBFSWH1R9u2I3n3SAyFF2yzv/7idQHLJJq
13
+ 74BMnx0FIq6fCpu5slAipvxZ3ZkZpEXZFr3cIBtO1gFvQWW7E/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
@@ -7,6 +7,6 @@ end
7
7
  module Sys
8
8
  class Uptime
9
9
  # The version of the sys-uptime library
10
- VERSION = '0.7.1'
10
+ VERSION = '0.7.2'.freeze
11
11
  end
12
12
  end
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.1'
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,
@@ -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.1', Uptime::VERSION)
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(Fixnum, Uptime.days)
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.1
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
- MIIDcDCCAligAwIBAgIBATANBgkqhkiG9w0BAQUFADA/MREwDwYDVQQDDAhkamJl
13
+ MIIEcDCCAtigAwIBAgIBATANBgkqhkiG9w0BAQsFADA/MREwDwYDVQQDDAhkamJl
14
14
  cmc5NjEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGRYDY29t
15
- MB4XDTE1MDkwMjIwNDkxOFoXDTE2MDkwMTIwNDkxOFowPzERMA8GA1UEAwwIZGpi
15
+ MB4XDTE4MDMxODE1MjIwN1oXDTI4MDMxNTE1MjIwN1owPzERMA8GA1UEAwwIZGpi
16
16
  ZXJnOTYxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkWA2Nv
17
- bTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMyTkvXqRp6hLs9eoJOS
18
- Hmi8kRYbq9Vkf15/hMxJpotYMgJVHHWrmDcC5Dye2PbnXjTkKf266Zw0PtT9h+lI
19
- S3ts9HO+vaCFSMwFFZmnWJSpQ3CNw2RcHxjWkk9yF7imEM8Kz9ojhiDXzBetdV6M
20
- gr0lV/alUr7TNVBDngbXEfTWscyXh1qd7xZ4EcOdsDktCe5G45N/o3662tPQvJsi
21
- FOF0CM/KuBsa/HL1/eoEmF4B3EKIRfTHrQ3hu20Kv3RJ88QM4ec2+0dd97uX693O
22
- zv6981fyEg+aXLkxrkViM/tz2qR2ZE0jPhHTREPYeMEgptRkTmWSKAuLVWrJEfgl
23
- DtkCAwEAAaN3MHUwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFEwe
24
- nn6bfJADmuIDiMSOzedOrL+xM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5MYQIDAQABo3cwdTAJBgNV
26
+ HRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNVHQ4EFgQUFZsMapgzJimzsbaBG2Tm8j5e
27
+ AzgwHQYDVR0RBBYwFIESZGpiZXJnOTZAZ21haWwuY29tMB0GA1UdEgQWMBSBEmRq
28
+ YmVyZzk2QGdtYWlsLmNvbTANBgkqhkiG9w0BAQsFAAOCAYEAW2tnYixXQtKxgGXq
29
+ /3iSWG2bLwvxS4go3srO+aRXZHrFUMlJ5W0mCxl03aazxxKTsVVpZD8QZxvK91OQ
30
+ h9zr9JBYqCLcCVbr8SkmYCi/laxIZxsNE5YI8cC8vvlLI7AMgSfPSnn/Epq1GjGY
31
+ 6L1iRcEDtanGCIvjqlCXO9+BmsnCfEVehqZkQHeYczA03tpOWb6pon2wzvMKSsKH
32
+ ks0ApVdstSLz1kzzAqem/uHdG9FyXdbTAwH1G4ZPv69sQAFAOCgAqYmdnzedsQtE
33
+ 1LQfaQrx0twO+CZJPcRLEESjq8ScQxWRRkfuh2VeR7cEU7L7KqT10mtUwrvw7APf
34
+ DYoeCY9KyjIBjQXfbj2ke5u1hZj94Fsq9FfbEQg8ygCgwThnmkTrrKEiMSs3alYR
35
+ ORVCZpRuCPpmC8qmqxUnARDArzucjaclkxjLWvCVHeFa9UP7K3Nl9oTjJNv+7/jM
36
+ WZs4eecIcUc4tKdHxcAJ0MO/Dkqq7hGaiHpwKY76wQ1+8xAh
32
37
  -----END CERTIFICATE-----
33
- date: 2016-05-14 00:00:00.000000000 Z
38
+ date: 2018-11-04 00:00:00.000000000 Z
34
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.4
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