diff --git a/inspec.gemspec b/inspec.gemspec index a447e3e5a..a7e58a4cd 100644 --- a/inspec.gemspec +++ b/inspec.gemspec @@ -26,7 +26,7 @@ Gem::Specification.new do |spec| spec.required_ruby_version = '>= 2.3' - spec.add_dependency 'train', '~> 1.1' + spec.add_dependency 'train', '~> 1.2' spec.add_dependency 'thor', '~> 0.19' spec.add_dependency 'json', '>= 1.8', '< 3.0' spec.add_dependency 'method_source', '~> 0.8' diff --git a/lib/inspec/backend.rb b/lib/inspec/backend.rb index 15c43bfb1..c47f86dcc 100644 --- a/lib/inspec/backend.rb +++ b/lib/inspec/backend.rb @@ -65,6 +65,7 @@ module Inspec connection.disable_cache(:command) else Inspec::Log.debug 'Option backend_cache is disabled' + connection.disable_cache(:file) connection.disable_cache(:command) end diff --git a/lib/inspec/base_cli.rb b/lib/inspec/base_cli.rb index 1a8fa845d..c6236e37c 100644 --- a/lib/inspec/base_cli.rb +++ b/lib/inspec/base_cli.rb @@ -76,7 +76,7 @@ module Inspec option :create_lockfile, type: :boolean, desc: 'Write out a lockfile based on this execution (unless one already exists)' option :backend_cache, type: :boolean, - desc: 'Allow caching for backend command output.' + desc: 'Allow caching for backend command output. (default: true)' option :show_progress, type: :boolean, desc: 'Show progress while executing tests.' end @@ -88,7 +88,7 @@ module Inspec 'show_progress' => false, 'color' => true, 'create_lockfile' => true, - 'backend_cache' => false, + 'backend_cache' => true, }, shell: { 'reporter' => ['cli'], diff --git a/test/unit/resources/platform_test.rb b/test/unit/resources/platform_test.rb index f002a5442..f7366f0a4 100644 --- a/test/unit/resources/platform_test.rb +++ b/test/unit/resources/platform_test.rb @@ -21,7 +21,7 @@ describe 'Inspec::Resources::Platform' do end it 'verify platform families' do - expect = ["debian", "linux", "unix"] + expect = ["debian", "linux", "unix", "os"] _(resource.families).must_equal expect end