facter 4.5.2 → 4.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. checksums.yaml +4 -4
  2. data/bin/facter +1 -1
  3. data/lib/docs/generate.rb +1 -6
  4. data/lib/facter/custom_facts/core/directed_graph.rb +2 -4
  5. data/lib/facter/custom_facts/core/execution/base.rb +1 -1
  6. data/lib/facter/custom_facts/core/execution/posix.rb +6 -2
  7. data/lib/facter/custom_facts/core/execution/windows.rb +4 -1
  8. data/lib/facter/custom_facts/core/execution.rb +1 -1
  9. data/lib/facter/custom_facts/core/file_loader.rb +0 -4
  10. data/lib/facter/custom_facts/core/suitable.rb +1 -1
  11. data/lib/facter/custom_facts/util/collection.rb +2 -4
  12. data/lib/facter/custom_facts/util/confine.rb +4 -1
  13. data/lib/facter/custom_facts/util/fact.rb +1 -1
  14. data/lib/facter/custom_facts/util/loader.rb +2 -2
  15. data/lib/facter/custom_facts/util/resolution.rb +8 -4
  16. data/lib/facter/custom_facts/util/values.rb +1 -1
  17. data/lib/facter/facts/linux/dmi/product/version.rb +19 -0
  18. data/lib/facter/facts/linux/kernelmajversion.rb +1 -1
  19. data/lib/facter/facts/macosx/is_virtual.rb +1 -1
  20. data/lib/facter/facts/macosx/virtual.rb +3 -3
  21. data/lib/facter/facts/mariner/os/release.rb +1 -1
  22. data/lib/facter/facts/photon/os/release.rb +1 -1
  23. data/lib/facter/facts/solaris/kernelmajversion.rb +1 -1
  24. data/lib/facter/facts/solaris/ldom.rb +1 -1
  25. data/lib/facter/facts/windows/hypervisors/kvm.rb +1 -1
  26. data/lib/facter/facts/windows/interfaces.rb +1 -1
  27. data/lib/facter/framework/benchmarking/timer.rb +2 -2
  28. data/lib/facter/framework/cli/cli.rb +6 -8
  29. data/lib/facter/framework/cli/cli_launcher.rb +1 -1
  30. data/lib/facter/framework/config/fact_groups.rb +1 -1
  31. data/lib/facter/framework/core/cache_manager.rb +5 -6
  32. data/lib/facter/framework/core/fact_loaders/fact_loader.rb +1 -3
  33. data/lib/facter/framework/core/fact_manager.rb +4 -4
  34. data/lib/facter/framework/core/file_loader.rb +734 -733
  35. data/lib/facter/framework/core/options/config_file_options.rb +4 -6
  36. data/lib/facter/framework/formatters/hocon_fact_formatter.rb +3 -2
  37. data/lib/facter/framework/formatters/legacy_fact_formatter.rb +4 -4
  38. data/lib/facter/framework/logging/logger.rb +6 -6
  39. data/lib/facter/framework/logging/logger_helper.rb +10 -11
  40. data/lib/facter/resolvers/aix/ffi/ffi_helper.rb +1 -1
  41. data/lib/facter/resolvers/aix/networking.rb +1 -1
  42. data/lib/facter/resolvers/aix/serialnumber.rb +1 -1
  43. data/lib/facter/resolvers/amzn/os_release_rpm.rb +1 -1
  44. data/lib/facter/resolvers/dmi.rb +2 -1
  45. data/lib/facter/resolvers/fips_enabled.rb +1 -1
  46. data/lib/facter/resolvers/freebsd/dmi.rb +1 -1
  47. data/lib/facter/resolvers/freebsd/swap_memory.rb +1 -1
  48. data/lib/facter/resolvers/freebsd/virtual.rb +1 -1
  49. data/lib/facter/resolvers/linux/hostname.rb +1 -1
  50. data/lib/facter/resolvers/macosx/dmi.rb +1 -1
  51. data/lib/facter/resolvers/macosx/filesystems.rb +1 -1
  52. data/lib/facter/resolvers/memory.rb +1 -1
  53. data/lib/facter/resolvers/networking.rb +3 -3
  54. data/lib/facter/resolvers/os_release.rb +1 -1
  55. data/lib/facter/resolvers/partitions.rb +2 -2
  56. data/lib/facter/resolvers/processors_lscpu.rb +2 -2
  57. data/lib/facter/resolvers/solaris/ffi/ffi.rb +2 -2
  58. data/lib/facter/resolvers/solaris/mountpoints.rb +1 -1
  59. data/lib/facter/resolvers/solaris/networking.rb +1 -1
  60. data/lib/facter/resolvers/solaris/os_release.rb +2 -2
  61. data/lib/facter/resolvers/virt_what.rb +2 -1
  62. data/lib/facter/resolvers/windows/memory.rb +3 -2
  63. data/lib/facter/resolvers/windows/product_release.rb +7 -7
  64. data/lib/facter/util/aix/odm_query.rb +1 -1
  65. data/lib/facter/util/api_debugger.rb +2 -2
  66. data/lib/facter/util/facts/posix/virtual_detector.rb +8 -5
  67. data/lib/facter/util/facts/unit_converter.rb +2 -2
  68. data/lib/facter/util/file_helper.rb +1 -2
  69. data/lib/facter/util/macosx/system_profile_executor.rb +3 -3
  70. data/lib/facter/util/resolvers/networking/networking.rb +4 -3
  71. data/lib/facter/util/utils.rb +2 -2
  72. data/lib/facter/version.rb +1 -1
  73. data/lib/facter.rb +7 -0
  74. metadata +10 -9
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: facter
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.5.2
4
+ version: 4.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-15 00:00:00.000000000 Z
11
+ date: 2024-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi
@@ -64,42 +64,42 @@ dependencies:
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: 0.81.0
67
+ version: '1.50'
68
68
  type: :development
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: 0.81.0
74
+ version: '1.50'
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: rubocop-performance
77
77
  requirement: !ruby/object:Gem::Requirement
78
78
  requirements:
79
79
  - - "~>"
80
80
  - !ruby/object:Gem::Version
81
- version: 1.5.2
81
+ version: '1.17'
82
82
  type: :development
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
86
  - - "~>"
87
87
  - !ruby/object:Gem::Version
88
- version: 1.5.2
88
+ version: '1.17'
89
89
  - !ruby/object:Gem::Dependency
90
90
  name: rubocop-rspec
91
91
  requirement: !ruby/object:Gem::Requirement
92
92
  requirements:
93
93
  - - "~>"
94
94
  - !ruby/object:Gem::Version
95
- version: '1.38'
95
+ version: '2.20'
96
96
  type: :development
97
97
  prerelease: false
98
98
  version_requirements: !ruby/object:Gem::Requirement
99
99
  requirements:
100
100
  - - "~>"
101
101
  - !ruby/object:Gem::Version
102
- version: '1.38'
102
+ version: '2.20'
103
103
  - !ruby/object:Gem::Dependency
104
104
  name: simplecov
105
105
  requirement: !ruby/object:Gem::Requirement
@@ -444,6 +444,7 @@ files:
444
444
  - lib/facter/facts/linux/dmi/product/name.rb
445
445
  - lib/facter/facts/linux/dmi/product/serial_number.rb
446
446
  - lib/facter/facts/linux/dmi/product/uuid.rb
447
+ - lib/facter/facts/linux/dmi/product/version.rb
447
448
  - lib/facter/facts/linux/ec2_metadata.rb
448
449
  - lib/facter/facts/linux/ec2_userdata.rb
449
450
  - lib/facter/facts/linux/facterversion.rb
@@ -1092,7 +1093,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
1092
1093
  requirements:
1093
1094
  - - ">="
1094
1095
  - !ruby/object:Gem::Version
1095
- version: '2.5'
1096
+ version: '2.6'
1096
1097
  - - "<"
1097
1098
  - !ruby/object:Gem::Version
1098
1099
  version: '4.0'