Skip to content

Commit e1219e6

Browse files
committed
Add support for Ruby 2.7.0
1 parent 8dac220 commit e1219e6

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ jobs:
88
fail-fast: false
99
matrix:
1010
ruby:
11-
- '2.7'
11+
- '2.7.0'
12+
- '2.7.5'
1213
- '3.0'
1314
- '3.1'
1415
name: CI

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
66

77
## [Unreleased]
88

9+
### Added
10+
11+
- Support for Ruby 2.7.0, not just 2.7.3
12+
913
## [1.3.2] - 2022-09-19
1014

1115
### Added

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
syntax_tree-haml (1.3.2)
4+
syntax_tree-haml (1.3.3)
55
haml (>= 5.2)
66
prettier_print
77
syntax_tree (>= 2.0.1)

lib/syntax_tree/haml/format.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class Format < Visitor
66
class Formatter < ::SyntaxTree::Formatter
77
attr_reader :literal_lines, :quote
88

9-
def initialize(source, ...)
9+
def initialize(source, *rest)
1010
@literal_lines = {}
1111
source
1212
.lines
@@ -15,7 +15,7 @@ def initialize(source, ...)
1515
@literal_lines[index] = line.rstrip if line.start_with?("!")
1616
end
1717

18-
super(source, ...)
18+
super(source, *rest)
1919
end
2020
end
2121

lib/syntax_tree/haml/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
module SyntaxTree
44
module Haml
5-
VERSION = "1.3.2"
5+
VERSION = "1.3.3"
66
end
77
end

0 commit comments

Comments
 (0)