sys-uptime 0.6.2 → 0.7.0

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
2
  SHA1:
3
- metadata.gz: 402ba267eb34c60b8745561aaf1f3d9c98a287c2
4
- data.tar.gz: 7a07fa972b3a900fc89d226c64c85e03b67c7eeb
3
+ metadata.gz: 4fb2b350ac33649154689cab59e6a6be3990bb88
4
+ data.tar.gz: d0b9d228376f30f6cf204f52f9af9902374cb018
5
5
  SHA512:
6
- metadata.gz: b1b9dab33ef4b67ee99115eb999239d28cad573bb5a84898307b1f2ff0a0d100c37e35d6ff7a4cd76386d5e89ba72fb1918a688de37a6633774d5d68584ff1a3
7
- data.tar.gz: 070734e09612a40f18a317a71978c03831f612b6e393ccb2706d831bd8dada52dc763d0f5d9b05f3088152c8d950352f3e57e575ee6e3f2d687d95bb4daff895
6
+ metadata.gz: ab51211b12dd86d2a3ed46e4885279685154af70a89ee16824a05aee644053c27f6e1062a43df177c0fa71c4bc21f6877add34e42000b4e77518fa9570b05ff3
7
+ data.tar.gz: 77bcdef1132f60190e5f0eb6a64a0ea3b8c3cd48c35f488afd989bbcb02f4be60d9b797e0c8cf77c04a0adf6ba4d3419b2652c15acfd369fb111daac05f1675f
@@ -0,0 +1,2 @@
1
+ *Q��T�qf�$�#+�`H.������IH���82�L�ZH;%Zk��4�R�,�
2
+ ]��w���eV��7��@�B[,���y�{�|5�I��$ZԷ2$o������et��8��Еg7⎑�zv���0�ӳ�ï}�D���̀&>�tW�1Jj& Q�}ջ+��U��m*�s`�&k2�$��
Binary file
data/CHANGES CHANGED
@@ -1,3 +1,9 @@
1
+ == 0.7.0 - 3-Oct-2015
2
+ * Changed license to Apache 2.0.
3
+ * Added a cert. This gem is now signed.
4
+ * Added a sys-uptime.rb file for convenience.
5
+ * Gem related tasks in the Rakefile now assume Rubygems 2.x.
6
+
1
7
  == 0.6.2 - 8-Nov-2014
2
8
  * Minor updates to gemspec and Rakefile.
3
9
 
data/MANIFEST CHANGED
@@ -2,12 +2,10 @@
2
2
  * MANIFEST
3
3
  * Rakefile
4
4
  * README
5
- * install.rb
6
5
  * sys-uptime.gemspec
7
- * doc/uptime.txt
6
+ * certs/djberg96_pub.pem
8
7
  * examples/test.rb
9
- * ext/extconf.rb
10
- * ext/sys/uptime.c
11
- * lib/sys/linux.rb
12
- * lib/sys/windows.rb
13
- * test/test_sys_uptime.rb
8
+ * lib/sys-uptime.rb
9
+ * lib/unix/sys/uptime.rb
10
+ * lib/windows/sys/uptime.rb
11
+ * test/test_sys_uptime.rb
data/README CHANGED
@@ -40,10 +40,10 @@
40
40
  "Doesn't Struct::Tms do this?" - No.
41
41
 
42
42
  == License
43
- Artistic 2.0
43
+ Apache 2.0
44
44
 
45
45
  == Copyright
46
- Copyright 2002-2014, Daniel J. Berger
46
+ Copyright 2002-2015, 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
@@ -7,7 +7,9 @@ CLEAN.include("**/*.gem", "**/*.rbx", "**/*.rbc")
7
7
  namespace 'gem' do
8
8
  desc 'Build the sys-uptime gem'
9
9
  task :create => [:clean] do
10
+ require 'rubygems/package'
10
11
  spec = eval(IO.read('sys-uptime.gemspec'))
12
+ spec.signing_key = File.join(Dir.home, '.ssh', 'gem-private_key.pem')
11
13
 
12
14
  if File::ALT_SEPARATOR
13
15
  spec.require_paths = ['lib', 'lib/windows']
@@ -19,12 +21,7 @@ namespace 'gem' do
19
21
  spec.add_dependency('ffi', '>= 1.0.0')
20
22
  end
21
23
 
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
24
+ Gem::Package.build(spec)
28
25
  end
29
26
 
30
27
  desc 'Install the sys-uptime gem'
@@ -0,0 +1,21 @@
1
+ -----BEGIN CERTIFICATE-----
2
+ MIIDcDCCAligAwIBAgIBATANBgk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+Gr2
18
+ wKJnmzb5rIPS1cmsqv0M9LPWflzfwoZ/SpnmhagP+g05p8bRNKjZSA2iImM/GyYZ
19
+ EJYzxdPOrx2n6NYR3Hk+vHP0U7UBSveI6+qx+ndQYaeyCn+GRX2PKS9h66YF/Q1V
20
+ tGSHgAmcLlkdGgan182qsE/4kKM=
21
+ -----END CERTIFICATE-----
@@ -0,0 +1,5 @@
1
+ if File::ALT_SEPARATOR
2
+ require_relative 'windows/sys/uptime'
3
+ else
4
+ require_relative 'unix/sys/uptime'
5
+ end
@@ -13,7 +13,7 @@ module Sys
13
13
  class Error < StandardError; end
14
14
 
15
15
  # The version of the sys-uptime library
16
- VERSION = '0.6.2'
16
+ VERSION = '0.7.0'
17
17
 
18
18
  private
19
19
 
@@ -14,7 +14,7 @@ module Sys
14
14
  class Error < StandardError; end
15
15
 
16
16
  # The version of the sys-uptime library.
17
- VERSION = '0.6.2'
17
+ VERSION = '0.7.0'
18
18
 
19
19
  # Returns the boot time as a Time object.
20
20
  #
@@ -1,15 +1,16 @@
1
1
  require 'rubygems'
2
2
 
3
3
  Gem::Specification.new do |spec|
4
- spec.name = 'sys-uptime'
5
- spec.version = '0.6.2'
6
- spec.author = 'Daniel J. Berger'
7
- spec.license = 'Artistic 2.0'
8
- spec.email = 'djberg96@gmail.com'
9
- spec.homepage = 'https://github.com/djberg96/sys-uptime'
10
- spec.summary = 'A Ruby interface for getting system uptime information.'
11
- spec.test_file = 'test/test_sys_uptime.rb'
12
- spec.files = Dir["**/*"].reject{ |f| f.include?('git') }
4
+ spec.name = 'sys-uptime'
5
+ spec.version = '0.7.0'
6
+ spec.author = 'Daniel J. Berger'
7
+ spec.license = 'Apache 2.0'
8
+ spec.email = 'djberg96@gmail.com'
9
+ spec.homepage = 'https://github.com/djberg96/sys-uptime'
10
+ spec.summary = 'A Ruby interface for getting system uptime information.'
11
+ spec.test_file = 'test/test_sys_uptime.rb'
12
+ spec.files = Dir["**/*"].reject{ |f| f.include?('git') }
13
+ spec.cert_chain = ['certs/djberg96_pub.pem']
13
14
 
14
15
  spec.extra_rdoc_files = ['CHANGES', 'README', 'MANIFEST']
15
16
 
@@ -11,7 +11,7 @@ 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.6.2', Uptime::VERSION)
14
+ assert_equal('0.7.0', Uptime::VERSION)
15
15
  end
16
16
 
17
17
  test "seconds method basic functionality" do
metadata CHANGED
@@ -1,14 +1,36 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sys-uptime
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel J. Berger
8
8
  autorequire:
9
9
  bindir: bin
10
- cert_chain: []
11
- date: 2014-11-09 00:00:00.000000000 Z
10
+ cert_chain:
11
+ - |
12
+ -----BEGIN CERTIFICATE-----
13
+ MIIDcDCCAligAwIBAgIBATANBgkqhkiG9w0BAQUFADA/MREwDwYDVQQDDAhkamJl
14
+ cmc5NjEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGRYDY29t
15
+ MB4XDTE1MDkwMjIwNDkxOFoXDTE2MDkwMTIwNDkxOFowPzERMA8GA1UEAwwIZGpi
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+xMB0GA1UdEQQWMBSBEmRqYmVyZzk2QGdtYWlsLmNv
25
+ bTAdBgNVHRIEFjAUgRJkamJlcmc5NkBnbWFpbC5jb20wDQYJKoZIhvcNAQEFBQAD
26
+ ggEBAHmNOCWoDVD75zHFueY0viwGDVP1BNGFC+yXcb7u2GlK+nEMCORqzURbYPf7
27
+ tL+/hzmePIRz7i30UM//64GI1NLv9jl7nIwjhPpXpf7/lu2I9hOTsvwSumb5UiKC
28
+ /sqBxI3sfj9pr79Wpv4MuikX1XPik7Ncb7NPsJPw06Lvyc3Hkg5X2XpPtLtS+Gr2
29
+ wKJnmzb5rIPS1cmsqv0M9LPWflzfwoZ/SpnmhagP+g05p8bRNKjZSA2iImM/GyYZ
30
+ EJYzxdPOrx2n6NYR3Hk+vHP0U7UBSveI6+qx+ndQYaeyCn+GRX2PKS9h66YF/Q1V
31
+ tGSHgAmcLlkdGgan182qsE/4kKM=
32
+ -----END CERTIFICATE-----
33
+ date: 2015-10-03 00:00:00.000000000 Z
12
34
  dependencies:
13
35
  - !ruby/object:Gem::Dependency
14
36
  name: ffi
@@ -40,14 +62,16 @@ files:
40
62
  - MANIFEST
41
63
  - README
42
64
  - Rakefile
65
+ - certs/djberg96_pub.pem
43
66
  - examples/uptime_test.rb
67
+ - lib/sys-uptime.rb
44
68
  - lib/unix/sys/uptime.rb
45
69
  - lib/windows/sys/uptime.rb
46
70
  - sys-uptime.gemspec
47
71
  - test/test_sys_uptime.rb
48
72
  homepage: https://github.com/djberg96/sys-uptime
49
73
  licenses:
50
- - Artistic 2.0
74
+ - Apache 2.0
51
75
  metadata: {}
52
76
  post_install_message:
53
77
  rdoc_options: []
@@ -66,7 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
66
90
  version: '0'
67
91
  requirements: []
68
92
  rubyforge_project:
69
- rubygems_version: 2.2.2
93
+ rubygems_version: 2.4.5
70
94
  signing_key:
71
95
  specification_version: 4
72
96
  summary: A Ruby interface for getting system uptime information.
@@ -0,0 +1,2 @@
1
+ �K<����d=IN0���r����_/�R�g 5��Y.��fP��X֌ N�9�;�S� �T��GoA�gw��N�-ȗ͐p_�!DK��ڭ�P�}��������I�A��!-�279�"n��O��#�W��a,�B,�f�ڽ
2
+ Ӵ4��d����P���������[���澐[��L=a7bV��E��#��\���K���op���>��sCQh�o���F3�]Rf(�~���5�S|*�