Skip to content

Commit

Permalink
update: parser deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
joel committed Sep 30, 2021
1 parent 0a27bdd commit 1941f9b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions lib/rails5/spec_converter/hash_rewriter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -255,4 +255,8 @@ def log(str)

puts str
end

def transform_format(params)
log params
end
end
2 changes: 1 addition & 1 deletion lib/rails5/spec_converter/test_type_identifier.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def initialize(content, options = TextTransformerOptions.new)
ast_builder = Astrolabe::Builder.new
@parser = Parser::CurrentRuby.new(ast_builder)

@source_rewriter = Parser::Source::Rewriter.new(@source_buffer)
@source_rewriter = Parser::Source::TreeRewriter.new(@source_buffer)
end

def test_type
Expand Down
2 changes: 1 addition & 1 deletion lib/rails5/spec_converter/text_transformer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def initialize(content, options = TextTransformerOptions.new)
ast_builder = Astrolabe::Builder.new
@parser = Parser::CurrentRuby.new(ast_builder)

@source_rewriter = Parser::Source::Rewriter.new(@source_buffer)
@source_rewriter = Parser::Source::TreeRewriter.new(@source_buffer)
end

def transform
Expand Down

0 comments on commit 1941f9b

Please sign in to comment.