From 6d5e7d542870acef588417e095105adb84519df9 Mon Sep 17 00:00:00 2001 From: Radon Rosborough Date: Fri, 2 Sep 2022 20:08:47 -0700 Subject: [PATCH 1/4] Support Ruby 2.7.0 --- lib/syntax_tree/rbs.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/syntax_tree/rbs.rb b/lib/syntax_tree/rbs.rb index f619c19..ad143bc 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, *, **) + super @source = source @force_parens = false end From 19032e073399c7b46add51d74f394a8660043ebc Mon Sep 17 00:00:00 2001 From: Radon Rosborough Date: Sat, 3 Sep 2022 10:14:58 -0700 Subject: [PATCH 2/4] But do the syntax correctly --- lib/syntax_tree/rbs.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/syntax_tree/rbs.rb b/lib/syntax_tree/rbs.rb index ad143bc..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 From acf337f5297172e1c8ea8d953b14cace0d9f1266 Mon Sep 17 00:00:00 2001 From: Radon Rosborough Date: Sat, 3 Sep 2022 10:17:10 -0700 Subject: [PATCH 3/4] Update CI and changelog --- .github/workflows/main.yml | 2 +- CHANGELOG.md | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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..0895204 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a ## [Unreleased] +### Added + +- 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 ### Added From 1a46d73ba394cf0b72f69bcc9c8d43ec40be2d94 Mon Sep 17 00:00:00 2001 From: Radon Rosborough Date: Sat, 3 Sep 2022 10:19:31 -0700 Subject: [PATCH 4/4] Update version to 0.5.1 --- CHANGELOG.md | 7 ++++--- Gemfile.lock | 2 +- lib/syntax_tree/rbs/version.rb | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0895204..7744f93 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,9 +4,9 @@ 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 +### 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. @@ -46,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/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