ohai 16.3.2 → 16.5.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (120) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +6 -4
  3. data/bin/ohai +1 -1
  4. data/lib/ohai.rb +1 -1
  5. data/lib/ohai/application.rb +2 -2
  6. data/lib/ohai/config.rb +2 -3
  7. data/lib/ohai/dsl.rb +1 -1
  8. data/lib/ohai/dsl/plugin.rb +5 -5
  9. data/lib/ohai/dsl/plugin/versionvii.rb +1 -1
  10. data/lib/ohai/exception.rb +1 -1
  11. data/lib/ohai/hints.rb +1 -1
  12. data/lib/ohai/loader.rb +2 -3
  13. data/lib/ohai/log.rb +2 -2
  14. data/lib/ohai/mixin/azure_metadata.rb +1 -1
  15. data/lib/ohai/mixin/chef_utils_wiring.rb +39 -0
  16. data/lib/ohai/mixin/command.rb +3 -54
  17. data/lib/ohai/mixin/constant_helper.rb +1 -1
  18. data/lib/ohai/mixin/dmi_decode.rb +1 -1
  19. data/lib/ohai/mixin/do_metadata.rb +1 -1
  20. data/lib/ohai/mixin/ec2_metadata.rb +3 -3
  21. data/lib/ohai/mixin/http_helper.rb +1 -1
  22. data/lib/ohai/mixin/network_helper.rb +1 -1
  23. data/lib/ohai/mixin/os.rb +2 -2
  24. data/lib/ohai/mixin/scaleway_metadata.rb +1 -1
  25. data/lib/ohai/mixin/seconds_to_human.rb +1 -1
  26. data/lib/ohai/mixin/shell_out.rb +50 -0
  27. data/lib/ohai/mixin/softlayer_metadata.rb +1 -1
  28. data/lib/ohai/mixin/string.rb +1 -1
  29. data/lib/ohai/mixin/which.rb +38 -0
  30. data/lib/ohai/plugin_config.rb +1 -1
  31. data/lib/ohai/plugins/aix/kernel.rb +1 -1
  32. data/lib/ohai/plugins/aix/memory.rb +3 -3
  33. data/lib/ohai/plugins/aix/network.rb +3 -2
  34. data/lib/ohai/plugins/aix/platform.rb +1 -1
  35. data/lib/ohai/plugins/aix/uptime.rb +2 -2
  36. data/lib/ohai/plugins/aix/virtualization.rb +1 -1
  37. data/lib/ohai/plugins/azure.rb +1 -1
  38. data/lib/ohai/plugins/bsd/virtualization.rb +2 -2
  39. data/lib/ohai/plugins/cloud.rb +2 -2
  40. data/lib/ohai/plugins/command.rb +1 -1
  41. data/lib/ohai/plugins/cpu.rb +3 -3
  42. data/lib/ohai/plugins/darwin/memory.rb +1 -1
  43. data/lib/ohai/plugins/darwin/network.rb +1 -1
  44. data/lib/ohai/plugins/darwin/platform.rb +2 -2
  45. data/lib/ohai/plugins/darwin/virtualization.rb +1 -1
  46. data/lib/ohai/plugins/docker.rb +3 -3
  47. data/lib/ohai/plugins/dragonflybsd/platform.rb +2 -4
  48. data/lib/ohai/plugins/ec2.rb +4 -3
  49. data/lib/ohai/plugins/erlang.rb +1 -1
  50. data/lib/ohai/plugins/eucalyptus.rb +1 -1
  51. data/lib/ohai/plugins/filesystem.rb +8 -14
  52. data/lib/ohai/plugins/fips.rb +2 -6
  53. data/lib/ohai/plugins/freebsd/platform.rb +2 -4
  54. data/lib/ohai/plugins/gce.rb +1 -1
  55. data/lib/ohai/plugins/hostname.rb +5 -5
  56. data/lib/ohai/plugins/init_package.rb +1 -1
  57. data/lib/ohai/plugins/java.rb +1 -1
  58. data/lib/ohai/plugins/kernel.rb +3 -3
  59. data/lib/ohai/plugins/keys.rb +1 -1
  60. data/lib/ohai/plugins/languages.rb +1 -1
  61. data/lib/ohai/plugins/libvirt.rb +1 -1
  62. data/lib/ohai/plugins/linode.rb +1 -1
  63. data/lib/ohai/plugins/linux/block_device.rb +1 -1
  64. data/lib/ohai/plugins/linux/hostnamectl.rb +1 -2
  65. data/lib/ohai/plugins/linux/ipc.rb +1 -1
  66. data/lib/ohai/plugins/linux/lsb.rb +2 -3
  67. data/lib/ohai/plugins/linux/lspci.rb +1 -2
  68. data/lib/ohai/plugins/linux/machineid.rb +2 -2
  69. data/lib/ohai/plugins/linux/memory.rb +1 -1
  70. data/lib/ohai/plugins/linux/network.rb +21 -13
  71. data/lib/ohai/plugins/linux/platform.rb +15 -18
  72. data/lib/ohai/plugins/linux/virtualization.rb +1 -1
  73. data/lib/ohai/plugins/netbsd/network.rb +4 -8
  74. data/lib/ohai/plugins/netbsd/platform.rb +2 -4
  75. data/lib/ohai/plugins/network.rb +5 -4
  76. data/lib/ohai/plugins/ohai_time.rb +1 -1
  77. data/lib/ohai/plugins/openbsd/network.rb +4 -8
  78. data/lib/ohai/plugins/openbsd/platform.rb +2 -4
  79. data/lib/ohai/plugins/openstack.rb +3 -2
  80. data/lib/ohai/plugins/os.rb +1 -1
  81. data/lib/ohai/plugins/packages.rb +21 -1
  82. data/lib/ohai/plugins/passwd.rb +2 -1
  83. data/lib/ohai/plugins/perl.rb +1 -1
  84. data/lib/ohai/plugins/platform.rb +1 -1
  85. data/lib/ohai/plugins/powershell.rb +1 -1
  86. data/lib/ohai/plugins/ps.rb +1 -1
  87. data/lib/ohai/plugins/python.rb +1 -1
  88. data/lib/ohai/plugins/rackspace.rb +5 -4
  89. data/lib/ohai/plugins/root_group.rb +1 -1
  90. data/lib/ohai/plugins/ruby.rb +4 -15
  91. data/lib/ohai/plugins/scaleway.rb +1 -1
  92. data/lib/ohai/plugins/shard.rb +2 -2
  93. data/lib/ohai/plugins/shells.rb +1 -1
  94. data/lib/ohai/plugins/softlayer.rb +1 -1
  95. data/lib/ohai/plugins/solaris2/dmi.rb +2 -3
  96. data/lib/ohai/plugins/solaris2/memory.rb +1 -2
  97. data/lib/ohai/plugins/solaris2/network.rb +8 -14
  98. data/lib/ohai/plugins/solaris2/platform.rb +2 -3
  99. data/lib/ohai/plugins/solaris2/virtualization.rb +3 -6
  100. data/lib/ohai/plugins/ssh_host_key.rb +1 -1
  101. data/lib/ohai/plugins/uptime.rb +2 -2
  102. data/lib/ohai/plugins/virtualbox.rb +1 -1
  103. data/lib/ohai/plugins/vmware.rb +1 -1
  104. data/lib/ohai/plugins/windows/dmi.rb +2 -2
  105. data/lib/ohai/plugins/windows/drivers.rb +2 -2
  106. data/lib/ohai/plugins/windows/memory.rb +1 -1
  107. data/lib/ohai/plugins/windows/network.rb +3 -3
  108. data/lib/ohai/plugins/windows/platform.rb +1 -1
  109. data/lib/ohai/plugins/windows/system_enclosure.rb +1 -1
  110. data/lib/ohai/plugins/windows/virtualization.rb +2 -2
  111. data/lib/ohai/plugins/zpools.rb +1 -1
  112. data/lib/ohai/provides_map.rb +1 -1
  113. data/lib/ohai/runner.rb +2 -2
  114. data/lib/ohai/system.rb +2 -3
  115. data/lib/ohai/util/file_helper.rb +4 -37
  116. data/lib/ohai/util/ip_helper.rb +2 -2
  117. data/lib/ohai/util/win32.rb +1 -1
  118. data/lib/ohai/version.rb +3 -3
  119. data/ohai.gemspec +5 -7
  120. metadata +62 -73
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # Author:: Benjamin Black (<nostromo@gmail.com>)
3
- # Copyright:: Copyright (c) 2008-2016 Chef Software, Inc.
3
+ # Copyright:: Copyright (c) Chef Software Inc.
4
4
  # License:: Apache License, Version 2.0
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -26,8 +26,7 @@ Ohai.plugin(:Platform) do
26
26
  uname_exec = "uname"
27
27
  end
28
28
 
29
- so = shell_out("#{uname_exec} -X")
30
- so.stdout.lines do |line|
29
+ shell_out("#{uname_exec} -X").stdout.lines do |line|
31
30
  case line
32
31
  when /^Release =\s+(.+)$/
33
32
  platform_version $1
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # Author:: Sean Walbran (<seanwalbran@gmail.com>)
3
3
  # Author:: Kurt Yoder (<ktyopscode@yoderhome.com>)
4
- # Copyright:: Copyright (c) 2009-2016 Chef Software, Inc.
4
+ # Copyright:: Copyright (c) Chef Software Inc.
5
5
  # Copyright:: Copyright (c) 2010 Kurt Yoder
6
6
  # License:: Apache License, Version 2.0
7
7
  #
@@ -25,9 +25,7 @@ Ohai.plugin(:Virtualization) do
25
25
  depends "dmi"
26
26
 
27
27
  def collect_solaris_guestid
28
- command = "/usr/sbin/zoneadm list -p"
29
- so = shell_out(command)
30
- so.stdout.split(":").first
28
+ shell_out("/usr/sbin/zoneadm list -p").stdout.split(":").first
31
29
  end
32
30
 
33
31
  collect_data(:solaris2) do
@@ -56,8 +54,7 @@ Ohai.plugin(:Virtualization) do
56
54
 
57
55
  if File.executable?("/usr/sbin/zoneadm")
58
56
  zones = Mash.new
59
- so = shell_out("zoneadm list -pc")
60
- so.stdout.lines do |line|
57
+ shell_out("zoneadm list -pc").stdout.lines do |line|
61
58
  info = line.chomp.split(/:/)
62
59
  zones[info[1]] = {
63
60
  "id" => info[0],
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # Author:: Bryan McLellan <btm@chef.io>
3
- # Copyright:: Copyright (c) 2012-2016 Chef Software, Inc.
3
+ # Copyright:: Copyright (c) Chef Software Inc.
4
4
  # License:: Apache License, Version 2.0
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -5,7 +5,7 @@
5
5
  # Author:: Doug MacEachern (<dougm@vmware.com>)
6
6
  # Author:: Kurt Yoder (<ktyopscode@yoderhome.com>)
7
7
  # Author:: Paul Mooring (<paul@chef.io>)
8
- # Copyright:: Copyright (c) 2008-2016 Chef Software, Inc.
8
+ # Copyright:: Copyright (c) Chef Software Inc.
9
9
  # Copyright:: Copyright (c) 2009 Bryan McLellan
10
10
  # Copyright:: Copyright (c) 2010 VMware, Inc.
11
11
  # License:: Apache License, Version 2.0
@@ -84,7 +84,7 @@ Ohai.plugin(:Uptime) do
84
84
  end
85
85
 
86
86
  collect_data(:windows) do
87
- require "wmi-lite/wmi"
87
+ require "wmi-lite/wmi" unless defined?(WmiLite::Wmi)
88
88
  wmi = WmiLite::Wmi.new
89
89
  last_boot_up_time = wmi.first_of("Win32_OperatingSystem")["lastbootuptime"]
90
90
  uptime_seconds Time.new.to_i - Time.parse(last_boot_up_time).to_i
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # Author:: Tim Smith <tsmith@chef.io>
3
3
  # Author:: Joshua Colson <joshua.colson@gmail.com>
4
- # Copyright:: 2015-2019 Chef Software, Inc.
4
+ # Copyright:: Copyright (c) Chef Software Inc.
5
5
  # Copyright:: 2019 Joshua Colson
6
6
  # License:: Apache License, Version 2.0
7
7
  #
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # Author:: "Dan Robinson" <drobinson@chef.io>
3
3
  # Author:: "Christopher M. Luciano" <cmlucian@us.ibm.com>
4
- # Copyright:: Copyright (c) 2014-2016 Chef Software, Inc.
4
+ # Copyright:: Copyright (c) Chef Software Inc.
5
5
  # Copyright (C) 2015 IBM Corp.
6
6
  # License:: Apache License, Version 2.0
7
7
  #
@@ -45,8 +45,8 @@ Ohai.plugin(:DMI) do
45
45
  ].freeze
46
46
 
47
47
  collect_data(:windows) do
48
- require "ohai/common/dmi"
49
- require "wmi-lite/wmi"
48
+ require_relative "../../common/dmi"
49
+ require "wmi-lite/wmi" unless defined?(WmiLite::Wmi)
50
50
  wmi = WmiLite::Wmi.new
51
51
 
52
52
  dmi Mash.new
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2015 Chef Software
2
+ # Copyright:: Copyright (c) Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -22,7 +22,7 @@ Ohai.plugin(:Drivers) do
22
22
  collect_data(:windows) do
23
23
  if configuration(:enabled)
24
24
 
25
- require "wmi-lite/wmi"
25
+ require "wmi-lite/wmi" unless defined?(WmiLite::Wmi)
26
26
 
27
27
  kext = Mash.new
28
28
  pnp_drivers = Mash.new
@@ -17,7 +17,7 @@ Ohai.plugin(:Memory) do
17
17
  provides "memory"
18
18
 
19
19
  collect_data(:windows) do
20
- require "wmi-lite/wmi"
20
+ require "wmi-lite/wmi" unless defined?(WmiLite::Wmi)
21
21
 
22
22
  memory Mash.new
23
23
  memory[:swap] = Mash.new
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # Author:: James Gartrell (<jgartrel@gmail.com>)
3
- # Copyright:: Copyright (c) 2008-2017, Chef Software Inc.
3
+ # Copyright:: Copyright (c) Chef Software Inc.
4
4
  # License:: Apache License, Version 2.0
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -117,8 +117,8 @@ Ohai.plugin(:Network) do
117
117
  end
118
118
 
119
119
  collect_data(:windows) do
120
-
121
- require "wmi-lite/wmi"
120
+ require "ipaddress" unless defined?(IPAddress)
121
+ require "wmi-lite/wmi" unless defined?(WmiLite::Wmi)
122
122
 
123
123
  iface = Mash.new
124
124
  iface_config = Mash.new
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # Author:: James Gartrell (<jgartrel@gmail.com>)
3
- # Copyright:: Copyright (c) 2009-2016 Chef Software, Inc.
3
+ # Copyright:: Copyright (c) Chef Software Inc.
4
4
  # License:: Apache License, Version 2.0
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # Author:: Stuart Preston (<stuart@chef.io>)
3
- # Copyright:: Copyright (c) 2018, Chef Software Inc.
3
+ # Copyright:: Copyright (c) Chef Software Inc.
4
4
  # License:: Apache License, Version 2.0
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -2,7 +2,7 @@
2
2
  # Author:: Pavel Yudin (<pyudin@parallels.com>)
3
3
  # Author:: Tim Smith (<tsmith@chef.io>)
4
4
  # Copyright:: Copyright (c) 2015 Pavel Yudin
5
- # Copyright:: Copyright (c) 2015-2016 Chef Software, Inc.
5
+ # Copyright:: Copyright (c) Chef Software Inc.
6
6
  # License:: Apache License, Version 2.0
7
7
  #
8
8
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -24,7 +24,7 @@ Ohai.plugin(:Virtualization) do
24
24
  include Ohai::Mixin::DmiDecode
25
25
 
26
26
  collect_data(:windows) do
27
- require "wmi-lite/wmi"
27
+ require "wmi-lite/wmi" unless defined?(WmiLite::Wmi)
28
28
 
29
29
  virtualization Mash.new unless virtualization
30
30
  virtualization[:systems] ||= Mash.new
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # Author:: Jason J. W. Williams (williamsjj@digitar.com)
3
- # Copyright:: Copyright (c) 2011-2017 Chef Software, Inc.
3
+ # Copyright:: Copyright (c) Chef Software Inc.
4
4
  # License:: Apache License, Version 2.0
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # Author:: Adam Jacob (<adam@chef.io>)
3
3
  # Author:: Daniel DeLeo (<dan@chef.io>)
4
- # Copyright:: Copyright (c) 2008-2016 Chef Software, Inc.
4
+ # Copyright:: Copyright (c) Chef Software Inc.
5
5
  # License:: Apache License, Version 2.0
6
6
  #
7
7
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # Author:: Claire McQuin (<claire@chef.io>)
3
- # Copyright:: Copyright (c) 2013-2019, Chef Software Inc.
3
+ # Copyright:: Copyright (c) Chef Software Inc.
4
4
  # License:: Apache License, Version 2.0
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License"); you
@@ -18,7 +18,7 @@
18
18
  #
19
19
 
20
20
  require_relative "dsl"
21
- require "benchmark"
21
+ require "benchmark" unless defined?(Benchmark)
22
22
 
23
23
  module Ohai
24
24
  class Runner
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # Author:: Adam Jacob (<adam@chef.io>)
3
- # Copyright:: Copyright (c) 2008-2019, Chef Software Inc.
3
+ # Copyright:: Copyright (c) Chef Software Inc.
4
4
  # License:: Apache License, Version 2.0
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -22,13 +22,12 @@ require_relative "log"
22
22
  require_relative "mash"
23
23
  require_relative "runner"
24
24
  require_relative "dsl"
25
- require_relative "mixin/command"
25
+ require_relative "mixin/shell_out"
26
26
  require_relative "mixin/os"
27
27
  require_relative "mixin/string"
28
28
  require_relative "mixin/constant_helper"
29
29
  require_relative "provides_map"
30
30
  require_relative "hints"
31
- require "mixlib/shellout" unless defined?(Mixlib::ShellOut::DEFAULT_READ_TIMEOUT)
32
31
  require_relative "config"
33
32
  require "ffi_yajl" unless defined?(FFI_Yajl)
34
33
 
@@ -1,38 +1,5 @@
1
- # Author:: Lamont Granquist (<lamont@chef.io>)
2
- #
3
- # Copyright:: Copyright (c) 2013-14 Chef Software, Inc.
4
- #
5
- # License:: Apache License, Version 2.0
6
- #
7
- # Licensed under the Apache License, Version 2.0 (the "License");
8
- # you may not use this file except in compliance with the License.
9
- # You may obtain a copy of the License at
10
- #
11
- # http://www.apache.org/licenses/LICENSE-2.0
12
- #
13
- # Unless required by applicable law or agreed to in writing, software
14
- # distributed under the License is distributed on an "AS IS" BASIS,
15
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- # See the License for the specific language governing permissions and
17
- # limitations under the License.
18
-
19
- # Copied from chef/lib/chef/util/selinux.rb
20
-
21
- module Ohai
22
- module Util
23
- module FileHelper
24
- def which(cmd)
25
- paths = ENV["PATH"].split(File::PATH_SEPARATOR) + [ "/bin", "/usr/bin", "/sbin", "/usr/sbin" ]
26
- paths.each do |path|
27
- filename = File.join(path, cmd)
28
- if File.executable?(filename)
29
- logger.trace("Plugin #{name}: found #{cmd} at #{filename}")
30
- return filename
31
- end
32
- end
33
- logger.trace("Plugin #{name}: did not find #{cmd}")
34
- false
35
- end
36
- end
37
- end
1
+ $stderr.puts "WARN: Ohai::Util::FileHelper is deprecated, please use Ohai::Mixin::Which or remove if the reference is unnecessary"
2
+ require_relative "../mixin/which"
3
+ module Ohai::Util
4
+ FileHelper = Ohai::Mixin::Which
38
5
  end
@@ -14,11 +14,11 @@
14
14
  # See the License for the specific language governing permissions and
15
15
  # limitations under the License.
16
16
 
17
- require "ipaddress"
18
-
19
17
  module Ohai
20
18
  module Util
21
19
  module IpHelper
20
+ require "ipaddress" unless defined?(IPAddress)
21
+
22
22
  # Corresponding to RFC 4192 + RFC 4193
23
23
  IPV6_LINK_LOCAL_UNICAST_BLOCK = IPAddress("fe80::/10")
24
24
  IPV6_PRIVATE_ADDRESS_BLOCK = IPAddress("fc00::/7")
@@ -1,6 +1,6 @@
1
1
  # Author:: Adam Edwards (<adamed@chef.io>)
2
2
  #
3
- # Copyright:: Copyright (c) 2013-14 Chef Software, Inc.
3
+ # Copyright:: Copyright (c) Chef Software Inc.
4
4
  #
5
5
  # License:: Apache License, Version 2.0
6
6
  #
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # Author:: Adam Jacob (<adam@chef.io>)
3
- # Copyright:: Copyright (c) 2008-2018, Chef Software Inc.
3
+ # Copyright:: Copyright (c) Chef Software Inc.
4
4
  # License:: Apache License, Version 2.0
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -17,6 +17,6 @@
17
17
  #
18
18
 
19
19
  module Ohai
20
- OHAI_ROOT = File.expand_path(File.dirname(__FILE__))
21
- VERSION = "16.3.2".freeze
20
+ OHAI_ROOT = File.expand_path(__dir__)
21
+ VERSION = "16.5.6".freeze
22
22
  end
@@ -1,5 +1,4 @@
1
-
2
- $:.unshift File.expand_path("../lib", __FILE__)
1
+ $:.unshift File.expand_path("lib", __dir__)
3
2
  require "ohai/version"
4
3
 
5
4
  Gem::Specification.new do |s|
@@ -14,18 +13,17 @@ Gem::Specification.new do |s|
14
13
 
15
14
  s.required_ruby_version = ">= 2.5"
16
15
 
17
- s.add_dependency "systemu", "~> 2.6.4"
16
+ s.add_dependency "chef-config", ">= 12.8", "< 17"
17
+ s.add_dependency "chef-utils", ">= 16.0", "< 17"
18
+ s.add_dependency "ffi", "~> 1.9"
18
19
  s.add_dependency "ffi-yajl", "~> 2.2"
20
+ s.add_dependency "ipaddress"
19
21
  s.add_dependency "mixlib-cli", ">= 1.7.0" # 1.7+ needed to support passing multiple options
20
22
  s.add_dependency "mixlib-config", ">= 2.0", "< 4.0"
21
23
  s.add_dependency "mixlib-log", ">= 2.0.1", "< 4.0"
22
24
  s.add_dependency "mixlib-shellout", ">= 2.0", "< 4.0"
23
25
  s.add_dependency "plist", "~> 3.1"
24
- s.add_dependency "ipaddress"
25
26
  s.add_dependency "wmi-lite", "~> 1.0"
26
- s.add_dependency "ffi", "~> 1.9"
27
- s.add_dependency "chef-config", ">= 12.8", "< 17"
28
- s.add_dependency "chef-utils", ">= 16.0", "< 17"
29
27
  # Note for ohai developers: If chef-config causes you grief, try:
30
28
  # bundle install --with development
31
29
  # this should work as long as chef is a development dependency in Gemfile.
metadata CHANGED
@@ -1,29 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ohai
3
3
  version: !ruby/object:Gem::Version
4
- version: 16.3.2
4
+ version: 16.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Jacob
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-28 00:00:00.000000000 Z
11
+ date: 2020-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: systemu
14
+ name: chef-config
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '12.8'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '17'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '12.8'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '17'
33
+ - !ruby/object:Gem::Dependency
34
+ name: chef-utils
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '16.0'
40
+ - - "<"
41
+ - !ruby/object:Gem::Version
42
+ version: '17'
43
+ type: :runtime
44
+ prerelease: false
45
+ version_requirements: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: '16.0'
50
+ - - "<"
51
+ - !ruby/object:Gem::Version
52
+ version: '17'
53
+ - !ruby/object:Gem::Dependency
54
+ name: ffi
15
55
  requirement: !ruby/object:Gem::Requirement
16
56
  requirements:
17
57
  - - "~>"
18
58
  - !ruby/object:Gem::Version
19
- version: 2.6.4
59
+ version: '1.9'
20
60
  type: :runtime
21
61
  prerelease: false
22
62
  version_requirements: !ruby/object:Gem::Requirement
23
63
  requirements:
24
64
  - - "~>"
25
65
  - !ruby/object:Gem::Version
26
- version: 2.6.4
66
+ version: '1.9'
27
67
  - !ruby/object:Gem::Dependency
28
68
  name: ffi-yajl
29
69
  requirement: !ruby/object:Gem::Requirement
@@ -38,6 +78,20 @@ dependencies:
38
78
  - - "~>"
39
79
  - !ruby/object:Gem::Version
40
80
  version: '2.2'
81
+ - !ruby/object:Gem::Dependency
82
+ name: ipaddress
83
+ requirement: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - ">="
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
88
+ type: :runtime
89
+ prerelease: false
90
+ version_requirements: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - ">="
93
+ - !ruby/object:Gem::Version
94
+ version: '0'
41
95
  - !ruby/object:Gem::Dependency
42
96
  name: mixlib-cli
43
97
  requirement: !ruby/object:Gem::Requirement
@@ -126,20 +180,6 @@ dependencies:
126
180
  - - "~>"
127
181
  - !ruby/object:Gem::Version
128
182
  version: '3.1'
129
- - !ruby/object:Gem::Dependency
130
- name: ipaddress
131
- requirement: !ruby/object:Gem::Requirement
132
- requirements:
133
- - - ">="
134
- - !ruby/object:Gem::Version
135
- version: '0'
136
- type: :runtime
137
- prerelease: false
138
- version_requirements: !ruby/object:Gem::Requirement
139
- requirements:
140
- - - ">="
141
- - !ruby/object:Gem::Version
142
- version: '0'
143
183
  - !ruby/object:Gem::Dependency
144
184
  name: wmi-lite
145
185
  requirement: !ruby/object:Gem::Requirement
@@ -154,60 +194,6 @@ dependencies:
154
194
  - - "~>"
155
195
  - !ruby/object:Gem::Version
156
196
  version: '1.0'
157
- - !ruby/object:Gem::Dependency
158
- name: ffi
159
- requirement: !ruby/object:Gem::Requirement
160
- requirements:
161
- - - "~>"
162
- - !ruby/object:Gem::Version
163
- version: '1.9'
164
- type: :runtime
165
- prerelease: false
166
- version_requirements: !ruby/object:Gem::Requirement
167
- requirements:
168
- - - "~>"
169
- - !ruby/object:Gem::Version
170
- version: '1.9'
171
- - !ruby/object:Gem::Dependency
172
- name: chef-config
173
- requirement: !ruby/object:Gem::Requirement
174
- requirements:
175
- - - ">="
176
- - !ruby/object:Gem::Version
177
- version: '12.8'
178
- - - "<"
179
- - !ruby/object:Gem::Version
180
- version: '17'
181
- type: :runtime
182
- prerelease: false
183
- version_requirements: !ruby/object:Gem::Requirement
184
- requirements:
185
- - - ">="
186
- - !ruby/object:Gem::Version
187
- version: '12.8'
188
- - - "<"
189
- - !ruby/object:Gem::Version
190
- version: '17'
191
- - !ruby/object:Gem::Dependency
192
- name: chef-utils
193
- requirement: !ruby/object:Gem::Requirement
194
- requirements:
195
- - - ">="
196
- - !ruby/object:Gem::Version
197
- version: '16.0'
198
- - - "<"
199
- - !ruby/object:Gem::Version
200
- version: '17'
201
- type: :runtime
202
- prerelease: false
203
- version_requirements: !ruby/object:Gem::Requirement
204
- requirements:
205
- - - ">="
206
- - !ruby/object:Gem::Version
207
- version: '16.0'
208
- - - "<"
209
- - !ruby/object:Gem::Version
210
- version: '17'
211
197
  description: Ohai profiles your system and emits JSON
212
198
  email: adam@chef.io
213
199
  executables:
@@ -231,6 +217,7 @@ files:
231
217
  - lib/ohai/log.rb
232
218
  - lib/ohai/mash.rb
233
219
  - lib/ohai/mixin/azure_metadata.rb
220
+ - lib/ohai/mixin/chef_utils_wiring.rb
234
221
  - lib/ohai/mixin/command.rb
235
222
  - lib/ohai/mixin/constant_helper.rb
236
223
  - lib/ohai/mixin/dmi_decode.rb
@@ -242,8 +229,10 @@ files:
242
229
  - lib/ohai/mixin/os.rb
243
230
  - lib/ohai/mixin/scaleway_metadata.rb
244
231
  - lib/ohai/mixin/seconds_to_human.rb
232
+ - lib/ohai/mixin/shell_out.rb
245
233
  - lib/ohai/mixin/softlayer_metadata.rb
246
234
  - lib/ohai/mixin/string.rb
235
+ - lib/ohai/mixin/which.rb
247
236
  - lib/ohai/plugin_config.rb
248
237
  - lib/ohai/plugins/aix/kernel.rb
249
238
  - lib/ohai/plugins/aix/memory.rb