sys-uptime 0.7.0 → 0.7.1

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: 4fb2b350ac33649154689cab59e6a6be3990bb88
4
- data.tar.gz: d0b9d228376f30f6cf204f52f9af9902374cb018
3
+ metadata.gz: c8910d9d6c47f4115fa0fd05d20c8d1ce4f7f5a5
4
+ data.tar.gz: d611a20b013cc367f1672d2f37e11167583fc906
5
5
  SHA512:
6
- metadata.gz: ab51211b12dd86d2a3ed46e4885279685154af70a89ee16824a05aee644053c27f6e1062a43df177c0fa71c4bc21f6877add34e42000b4e77518fa9570b05ff3
7
- data.tar.gz: 77bcdef1132f60190e5f0eb6a64a0ea3b8c3cd48c35f488afd989bbcb02f4be60d9b797e0c8cf77c04a0adf6ba4d3419b2652c15acfd369fb111daac05f1675f
6
+ metadata.gz: e241b2b7fce39af5831175f02c443fb661cbca0964450440b5b1efc4265f7b8cabd1cd6041271f1b63f191460ea481037ff4185af75bc9801622f855a31061e8
7
+ data.tar.gz: 83dff6f51136751671eb5ae1c1b4a6a7721902d962258ca1a535bd7ade4c016629043621e1b3f7bff91a84cc481bde5af90bf63e37ce98901a157938c4f025f7
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: ruby
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
  - !ruby/object:Gem::Dependency
36
36
  name: ffi
@@ -58,16 +58,26 @@ extra_rdoc_files:
58
58
  - README
59
59
  - MANIFEST
60
60
  files:
61
- - CHANGES
62
- - MANIFEST
63
- - README
64
- - Rakefile
61
+ - certs
65
62
  - certs/djberg96_pub.pem
63
+ - CHANGES
64
+ - examples
66
65
  - examples/uptime_test.rb
66
+ - lib
67
+ - lib/sys
68
+ - lib/sys/unix
69
+ - lib/sys/unix/sys
70
+ - lib/sys/unix/sys/uptime.rb
71
+ - lib/sys/uptime.rb
72
+ - lib/sys/windows
73
+ - lib/sys/windows/sys
74
+ - lib/sys/windows/sys/uptime.rb
67
75
  - lib/sys-uptime.rb
68
- - lib/unix/sys/uptime.rb
69
- - lib/windows/sys/uptime.rb
76
+ - MANIFEST
77
+ - Rakefile
78
+ - README
70
79
  - sys-uptime.gemspec
80
+ - test
71
81
  - test/test_sys_uptime.rb
72
82
  homepage: https://github.com/djberg96/sys-uptime
73
83
  licenses:
@@ -77,7 +87,6 @@ post_install_message:
77
87
  rdoc_options: []
78
88
  require_paths:
79
89
  - lib
80
- - lib/unix
81
90
  required_ruby_version: !ruby/object:Gem::Requirement
82
91
  requirements:
83
92
  - - ">="
@@ -90,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
99
  version: '0'
91
100
  requirements: []
92
101
  rubyforge_project:
93
- rubygems_version: 2.4.5
102
+ rubygems_version: 2.6.4
94
103
  signing_key:
95
104
  specification_version: 4
96
105
  summary: A Ruby interface for getting system uptime information.
metadata.gz.sig CHANGED
Binary file