From 993cb5fc05e46b310efd47a12fca1d96bd900104 Mon Sep 17 00:00:00 2001 From: David Schmitt Date: Mon, 29 Jan 2018 16:16:53 +0000 Subject: [PATCH 1/2] Update to non-vulnerable yard version --- Gemfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index 8c2bd55..3e50762 100644 --- a/Gemfile +++ b/Gemfile @@ -4,7 +4,7 @@ gemspec gem 'rgen' gem 'redcarpet' -gem 'yard', '0.9.5' +gem 'yard', '~> 0.9.11' if ENV['PUPPET_GEM_VERSION'] gem 'puppet', ENV['PUPPET_GEM_VERSION'], :require => false From ad35df8f894acf5d0056d47610703b0f94a838c0 Mon Sep 17 00:00:00 2001 From: Eric Putnam Date: Mon, 29 Jan 2018 16:07:57 -0800 Subject: [PATCH 2/2] yard is smarter now? On the changed line, YARD thought the bin path given was a regex and was interpretting it as such. It is not a regex. --- .../puppet-strings/yard/handlers/ruby/provider_handler_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/unit/puppet-strings/yard/handlers/ruby/provider_handler_spec.rb b/spec/unit/puppet-strings/yard/handlers/ruby/provider_handler_spec.rb index 3daa8ba..de31c5d 100644 --- a/spec/unit/puppet-strings/yard/handlers/ruby/provider_handler_spec.rb +++ b/spec/unit/puppet-strings/yard/handlers/ruby/provider_handler_spec.rb @@ -82,7 +82,7 @@ Puppet::Type.type(:custom).provide :linux do defaultfor :osfamily => 'RedHat', :operatingsystemmajrelease => '7' has_feature :implements_some_feature has_feature :some_other_feature - commands foo: /usr/bin/foo + commands foo: '/usr/bin/foo' end SOURCE }