server_metrics 1.2.13 → 1.2.14.pre0

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: b1c071daf7639d12dcceabb2384c0e5ad18763aa
4
- data.tar.gz: 5ad55bfa4d347bf91bd4f550fde7699710d0b076
3
+ metadata.gz: 88a82742a5020e4f14ca867581f2b45139bc0a87
4
+ data.tar.gz: 3d140a2097c994753f09edc7793219d89a052759
5
5
  SHA512:
6
- metadata.gz: fa2ac80dd0bb32a58ea790ffdf700a51bd07b978d44d36096a9c444e7db699b0e895956fc2491f7d55cc408dd485fa620af01ae14ebdf4ae4bbc0a2c321dbeee
7
- data.tar.gz: fe45f5cbf3b20bce06aea88d4130d469a4a1d5b35de1f9ce62b0ae3f21fca55ba869da2d2ee21a5da60d3071f90e0eeea52cb8e782638d1680d2e57f66edaefe
6
+ metadata.gz: 66940f2ac63d6e09f5b9cc8c01ff4e8ef58260e527b5253a70c8170c3bfa46b39f6cb05ba6c0a2af1c2addc27becf939f2ddf1338fa7e78acebfcf1d6c12f03d
7
+ data.tar.gz: 8ea57079bf84b9671d3a786dcc1e916e9c095413c18a3a474570a7847df88c46c49aa00a30ccf12b7918ab6a5f825e364f6df5ede2e9f6a24a69c9d4a1e39214
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 1.2.14
2
+
3
+ * Disk symlink alias uses full path
4
+
1
5
  # 1.2.13
2
6
 
3
7
  * Handle CPU interrupt rollover
@@ -46,7 +46,8 @@ class ServerMetrics::Disk < ServerMetrics::MultiCollector
46
46
  end
47
47
  @devices.each do |device|
48
48
  symlink_name = File.readlink(device[:name]) rescue nil
49
- device[:aliases] << symlink_name if symlink_name
49
+ symlink_full_path = File.expand_path(symlink_name, File.dirname(device[:name]))
50
+ device[:aliases] << symlink_full_path if symlink_full_path && File.exist?(symlink_full_path)
50
51
  end
51
52
  end
52
53
  @devices
@@ -1,3 +1,3 @@
1
1
  module ServerMetrics
2
- VERSION = '1.2.13'
2
+ VERSION = '1.2.14.pre0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: server_metrics
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.13
4
+ version: 1.2.14.pre0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andre Lewis
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-01-20 00:00:00.000000000 Z
13
+ date: 2016-06-06 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler
@@ -165,9 +165,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
165
165
  version: '0'
166
166
  required_rubygems_version: !ruby/object:Gem::Requirement
167
167
  requirements:
168
- - - ">="
168
+ - - ">"
169
169
  - !ruby/object:Gem::Version
170
- version: '0'
170
+ version: 1.3.1
171
171
  requirements: []
172
172
  rubyforge_project:
173
173
  rubygems_version: 2.2.2