Skip to content

Commit

Permalink
Update code to remove ruby 2.4 support
Browse files Browse the repository at this point in the history
Signed-off-by: Vasu1105 <[email protected]>
  • Loading branch information
Vasu1105 committed Sep 1, 2021
1 parent 4893180 commit 06bb902
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion support/rebuild_inspec_test_fixture_plugin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ FIXTURE_BASE=test/fixtures/config_dirs
FIXTURE_VERSIONS="1 2"

# The format here is "<actual_version>,<abi_version> <another_version><<another_abi_version>""
RUBY_VERSIONS="2.4.5,2.4.0 2.5.3,2.5.0 2.6.2,2.6.0"
RUBY_VERSIONS="2.5.3,2.5.0 2.6.2,2.6.0"

# Make two fresh gems
cd $PLUGIN_SRC_DIR
Expand Down
3 changes: 1 addition & 2 deletions test/functional/inspec_exec_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -962,8 +962,7 @@ def stderr
describe "when specifying the execution target" do
let(:local_plat) do
json = run_inspec_process("detect --format json", {}).stdout
# .slice is available in ruby 2.5+
JSON.parse(json).select { |k, v| %w{name release}.include? k }
JSON.parse(json).slice("name", "release")
end
let(:run_result) { run_inspec_process("exec " + File.join(profile_path, "simple-metadata") + " " + cli_args, json: true) }
let(:seen_platform) { run_result; @json["platform"].select { |k, v| %w{name release target_id}.include? k } }
Expand Down

0 comments on commit 06bb902

Please sign in to comment.