summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-12-23 13:50:19 -0800
committerTim Smith <tsmith84@gmail.com>2020-12-23 13:51:34 -0800
commitb219fee9fb00de4f029eadc66f5c658cf981c99a (patch)
treeb82ed29c35dee40b75b4745113147d3d2cd061e6
parentd6ccd995f47034ce8c2b3f31ebd503f610e7ee03 (diff)
downloadohai-ruby27.tar.gz
Require Ruby 2.7 or laterruby27
We support N-1 and Ohai will support Ruby 3 and 2.7 Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--.expeditor/verify.pipeline.yml8
-rw-r--r--.rubocop.yml2
-rw-r--r--ohai.gemspec6
3 files changed, 6 insertions, 10 deletions
diff --git a/.expeditor/verify.pipeline.yml b/.expeditor/verify.pipeline.yml
index 763e633c..88a87c76 100644
--- a/.expeditor/verify.pipeline.yml
+++ b/.expeditor/verify.pipeline.yml
@@ -24,21 +24,21 @@ steps:
docker:
image: ruby:2.7-buster
-- label: run-specs-ruby-2.6
+- label: run-specs-ruby-2.7
command:
- .expeditor/run_linux_tests.sh rspec
expeditor:
executor:
docker:
- image: ruby:2.6-buster
+ image: ruby:2.7-buster
-- label: run-specs-ruby-2.7
+- label: run-specs-ruby-3.0rc
command:
- .expeditor/run_linux_tests.sh rspec
expeditor:
executor:
docker:
- image: ruby:2.7-buster
+ image: ruby:3.0-rc-buster
- label: run-specs-windows
command:
diff --git a/.rubocop.yml b/.rubocop.yml
index 9f82e5e8..37560a23 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -2,7 +2,7 @@ require: rubocop-performance
AllCops:
NewCops: enable
- TargetRubyVersion: 2.5
+ TargetRubyVersion: 2.7
Exclude:
- "spec/data/**/*"
- "vendor/**/*"
diff --git a/ohai.gemspec b/ohai.gemspec
index d9217002..e4baad37 100644
--- a/ohai.gemspec
+++ b/ohai.gemspec
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
s.email = "adam@chef.io"
s.homepage = "https://github.com/chef/ohai/"
- s.required_ruby_version = ">= 2.6"
+ s.required_ruby_version = ">= 2.7"
s.add_dependency "chef-config", ">= 12.8", "< 18"
s.add_dependency "chef-utils", ">= 16.0", "< 18"
@@ -26,10 +26,6 @@ Gem::Specification.new do |s|
s.add_dependency "plist", "~> 3.1"
s.add_dependency "train-core"
s.add_dependency "wmi-lite", "~> 1.0"
- # Note for ohai developers: If chef-config causes you grief, try:
- # bundle install --with development
- # this should work as long as chef is a development dependency in Gemfile.
- #
s.bindir = "bin"
s.executables = %w{ohai}