onering-report-plugins 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,7 +8,7 @@ report do
8
8
  :@run_list => Facter.value('chef_runlist'),
9
9
  :enabled => Facter.value('chef_enabled'),
10
10
  :version => Facter.value('chef_version'),
11
- :last_ran_at => (Time.at(Facter.value('chef_lastrun')) rescue nil)
11
+ :last_ran_at => (Time.at(Facter.value('chef_lastrun')).strftime('%Y-%m-%d %H:%M:%S %z') rescue nil)
12
12
  }.reject{|k,v| v === nil }
13
13
 
14
14
  property :chef, chef unless chef.empty?
@@ -47,8 +47,8 @@ report do
47
47
  #
48
48
  stat :memory, stats_mem
49
49
  stat :cpu, ({
50
- 'count' => Facter.value('processorcount'),
51
- 'physical' => Facter.value('physicalprocessorcount'),
50
+ 'count' => Facter.value('processorcount').to_i,
51
+ 'physical' => Facter.value('physicalprocessorcount').to_i,
52
52
  'speed' => stats_cpu[:processors].collect{|i| i[:speed] }.compact.uniq.sort{|a,b| a.to_f <=> b.to_f }.last.to_f
53
53
  } rescue nil)
54
54
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onering-report-plugins
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2013-04-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: onering-client
16
- requirement: &19860780 !ruby/object:Gem::Requirement
16
+ requirement: &16602500 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *19860780
24
+ version_requirements: *16602500
25
25
  description: Base plugins for providing system information via the Onering client
26
26
  utility
27
27
  email: ghetzel@outbrain.com