Skip to content

Commit

Permalink
Support Ruby 2.7.0 (#34)
Browse files Browse the repository at this point in the history
* Support Ruby 2.7.0

* But do the syntax correctly

* Update CI and changelog

* Update version to 0.5.1
  • Loading branch information
raxod502 committed Sep 6, 2022
1 parent e5c0485 commit 568684f
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
fail-fast: false
matrix:
ruby:
- '2.7.5'
- '2.7.0'
- '3.0'
- '3.1'
gemfile:
Expand Down
9 changes: 7 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
4 changes: 2 additions & 2 deletions lib/syntax_tree/rbs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/syntax_tree/rbs/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

module SyntaxTree
module RBS
VERSION = "0.5.0"
VERSION = "0.5.1"
end
end

0 comments on commit 568684f

Please sign in to comment.