mirror of
https://github.com/inspec/inspec
synced 2024-11-10 07:04:15 +00:00
Fix uninitialized constant Parser::AST::Processor::Mixin (#7030)
parser 3.3.1.0 introduced https://github.com/whitequark/parser/pull/1000, which causes this failure: ``` % bundle exec ruby -Itest test/unit/profiles/profile_test.rb inspec/lib/inspec/utils/profile_ast_helpers.rb:7:in `<class:CollectorBase>': uninitialized constant Parser::AST::Processor::Mixin (NameError) include Parser::AST::Processor::Mixin ^^^^^^^ ``` Fix this by inherting from `Parser::AST::Processor` instead. Closes #7029 Signed-off-by: Stan Hu <stanhu@gmail.com>
This commit is contained in:
parent
3478886b56
commit
c9bb58e908
1 changed files with 1 additions and 2 deletions
|
@ -3,8 +3,7 @@ require "rubocop-ast"
|
|||
module Inspec
|
||||
class Profile
|
||||
class AstHelper
|
||||
class CollectorBase
|
||||
include Parser::AST::Processor::Mixin
|
||||
class CollectorBase < Parser::AST::Processor
|
||||
include RuboCop::AST::Traversal
|
||||
|
||||
attr_reader :memo
|
||||
|
|
Loading…
Reference in a new issue