sys-uptime 0.7.0-x86-mingw32 → 0.7.1-x86-mingw32

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: 8bd8db7364c4029f77d5562915b87ea475f85eb5
4
- data.tar.gz: a3c51004bd919520d6ce05bc0a55f84aee2bc487
3
+ metadata.gz: e49c77c470759bc2d4bc1ec361b4f6e19bb9e555
4
+ data.tar.gz: 2e00a05597aba35fe29cc9cb1f094736a5673599
5
5
  SHA512:
6
- metadata.gz: fcfd087ad13db7096956429dcdb1a597375ec5b03ec7c81f8bc64543e3b7546ee78b58043c12bdd0bae6cbfe0aa5f5ec791e335e1fdec6b680348f101c4d071b
7
- data.tar.gz: 9ab1407ea85abf1ba85aff527324d23d77684fa150c1a436ac42b0050308f3f4721a8652b6479033a351ecc73879f6d5e09b00f1c9fbb1aab808d494892d7921
6
+ metadata.gz: 1c706eb1b770dcdb091b41c4e2af7ffd73d79fae4f8aaf7bb0013f1a4dc881ffc324e0c09585fdb8f3b14ebfe56d8d4e2b179e14069f8f0b9933872a059d2ea3
7
+ data.tar.gz: 16eb380c0f7d536bf5bd5367affc2d599eb28ffe414e571eda300b301aac442a63dc6d2243798995864dbb31d791afacacc83af8fd13769b60288598ae9177e4
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/CHANGES CHANGED
@@ -1,3 +1,8 @@
1
+ == 0.7.1 - 14-May-2016
2
+ * Altered internal layout, which also fixed a require bug. Thanks go
3
+ to jkburges for the spot.
4
+ * Moved the VERSION constant into a single file shared by all platforms.
5
+
1
6
  == 0.7.0 - 3-Oct-2015
2
7
  * Changed license to Apache 2.0.
3
8
  * Added a cert. This gem is now signed.
data/README CHANGED
@@ -8,7 +8,7 @@
8
8
  gem install sys-uptime
9
9
 
10
10
  = Synopsis
11
- require 'sys/uptime'
11
+ require 'sys-uptime'
12
12
  include Sys
13
13
 
14
14
  # Get everything
data/Rakefile CHANGED
@@ -12,16 +12,14 @@ 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.require_paths = ['lib', 'lib/windows']
16
15
  spec.platform = Gem::Platform::CURRENT
17
16
  spec.platform.cpu = 'universal'
18
17
  spec.platform.version = nil
19
18
  else
20
- spec.require_paths = ['lib', 'lib/unix']
21
19
  spec.add_dependency('ffi', '>= 1.0.0')
22
20
  end
23
21
 
24
- Gem::Package.build(spec)
22
+ Gem::Package.build(spec, true)
25
23
  end
26
24
 
27
25
  desc 'Install the sys-uptime gem'
data/lib/sys-uptime.rb CHANGED
@@ -1,5 +1 @@
1
- if File::ALT_SEPARATOR
2
- require_relative 'windows/sys/uptime'
3
- else
4
- require_relative 'unix/sys/uptime'
5
- end
1
+ require_relative 'sys/uptime'
@@ -12,9 +12,6 @@ module Sys
12
12
  # Error typically raised in one of the Uptime methods should fail.
13
13
  class Error < StandardError; end
14
14
 
15
- # The version of the sys-uptime library
16
- VERSION = '0.7.0'
17
-
18
15
  private
19
16
 
20
17
  # Hit this issue on Linux, not sure why
data/lib/sys/uptime.rb ADDED
@@ -0,0 +1,12 @@
1
+ if File::ALT_SEPARATOR
2
+ require_relative 'windows/sys/uptime'
3
+ else
4
+ require_relative 'unix/sys/uptime'
5
+ end
6
+
7
+ module Sys
8
+ class Uptime
9
+ # The version of the sys-uptime library
10
+ VERSION = '0.7.1'
11
+ end
12
+ end
@@ -13,9 +13,6 @@ module Sys
13
13
  # Error typically raised in one of the Uptime methods should fail.
14
14
  class Error < StandardError; end
15
15
 
16
- # The version of the sys-uptime library.
17
- VERSION = '0.7.0'
18
-
19
16
  # Returns the boot time as a Time object.
20
17
  #
21
18
  # Example:
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.0'
5
+ spec.version = '0.7.1'
6
6
  spec.author = 'Daniel J. Berger'
7
7
  spec.license = 'Apache 2.0'
8
8
  spec.email = 'djberg96@gmail.com'
@@ -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.7.0', Uptime::VERSION)
14
+ assert_equal('0.7.1', Uptime::VERSION)
15
15
  end
16
16
 
17
17
  test "seconds method basic functionality" do
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.0
4
+ version: 0.7.1
5
5
  platform: x86-mingw32
6
6
  authors:
7
7
  - Daniel J. Berger
@@ -30,7 +30,7 @@ cert_chain:
30
30
  EJYzxdPOrx2n6NYR3Hk+vHP0U7UBSveI6+qx+ndQYaeyCn+GRX2PKS9h66YF/Q1V
31
31
  tGSHgAmcLlkdGgan182qsE/4kKM=
32
32
  -----END CERTIFICATE-----
33
- date: 2015-10-03 00:00:00.000000000 Z
33
+ date: 2016-05-14 00:00:00.000000000 Z
34
34
  dependencies: []
35
35
  description: |2
36
36
  The sys-uptime library is a simple interface for gathering uptime
@@ -44,16 +44,26 @@ extra_rdoc_files:
44
44
  - README
45
45
  - MANIFEST
46
46
  files:
47
- - CHANGES
48
- - MANIFEST
49
- - README
50
- - Rakefile
47
+ - certs
51
48
  - certs/djberg96_pub.pem
49
+ - CHANGES
50
+ - examples
52
51
  - examples/uptime_test.rb
52
+ - lib
53
+ - lib/sys
54
+ - lib/sys/unix
55
+ - lib/sys/unix/sys
56
+ - lib/sys/unix/sys/uptime.rb
57
+ - lib/sys/uptime.rb
58
+ - lib/sys/windows
59
+ - lib/sys/windows/sys
60
+ - lib/sys/windows/sys/uptime.rb
53
61
  - lib/sys-uptime.rb
54
- - lib/unix/sys/uptime.rb
55
- - lib/windows/sys/uptime.rb
62
+ - MANIFEST
63
+ - Rakefile
64
+ - README
56
65
  - sys-uptime.gemspec
66
+ - test
57
67
  - test/test_sys_uptime.rb
58
68
  homepage: https://github.com/djberg96/sys-uptime
59
69
  licenses:
@@ -63,7 +73,6 @@ post_install_message:
63
73
  rdoc_options: []
64
74
  require_paths:
65
75
  - lib
66
- - lib/windows
67
76
  required_ruby_version: !ruby/object:Gem::Requirement
68
77
  requirements:
69
78
  - - ">="
metadata.gz.sig CHANGED
Binary file