diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 74c7603..2691e51 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,7 +8,7 @@ jobs: fail-fast: false matrix: ruby: - - '2.7.5' + - '2.7.0' - '3.0' - '3.1' gemfile: diff --git a/CHANGELOG.md b/CHANGELOG.md index 88a3072..7744f93 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). -## [Unreleased] +## [0.5.1] + +### Added - 2022-09-03 + +- Ruby 2.7.0 is now supported, not just 2.7.3 and above. This allows usage on Ubuntu 20.04 by default. ## [0.5.0] - 2022-07-07 @@ -42,7 +46,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a - 🎉 Initial release! 🎉 -[unreleased]: https://github.com/ruby-syntax-tree/syntax_tree-rbs/compare/v0.5.0...HEAD +[unreleased]: https://github.com/ruby-syntax-tree/syntax_tree-rbs/compare/v0.5.1...HEAD +[0.5.1]: https://github.com/ruby-syntax-tree/syntax_tree-rbs/compare/v0.5.0...v0.5.1 [0.5.0]: https://github.com/ruby-syntax-tree/syntax_tree-rbs/compare/v0.4.0...v0.5.0 [0.4.0]: https://github.com/ruby-syntax-tree/syntax_tree-rbs/compare/v0.3.0...v0.4.0 [0.3.0]: https://github.com/ruby-syntax-tree/syntax_tree-rbs/compare/v0.2.0...v0.3.0 diff --git a/Gemfile.lock b/Gemfile.lock index 6f08923..0f380a6 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - syntax_tree-rbs (0.5.0) + syntax_tree-rbs (0.5.1) prettier_print rbs syntax_tree (>= 2.0.1) diff --git a/lib/syntax_tree/rbs.rb b/lib/syntax_tree/rbs.rb index f619c19..9af4f3e 100644 --- a/lib/syntax_tree/rbs.rb +++ b/lib/syntax_tree/rbs.rb @@ -24,8 +24,8 @@ def visit(node) class Formatter < PrettierPrint attr_reader :source - def initialize(source, ...) - super(...) + def initialize(source, *rest) + super(*rest) @source = source @force_parens = false end diff --git a/lib/syntax_tree/rbs/version.rb b/lib/syntax_tree/rbs/version.rb index ed6c84e..589d25f 100644 --- a/lib/syntax_tree/rbs/version.rb +++ b/lib/syntax_tree/rbs/version.rb @@ -2,6 +2,6 @@ module SyntaxTree module RBS - VERSION = "0.5.0" + VERSION = "0.5.1" end end