Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 0c810a6

Browse files
authored
Merge pull request #32 from raxod502/rr-ruby-2.7.0
Add support for Ruby 2.7.0
2 parents ba5e32a + 7dfa216 commit 0c810a6

File tree

6 files changed

+13
-7
lines changed

6 files changed

+13
-7
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
PATH
22
remote: .
33
specs:
4-
syntax_tree-haml (1.3.2)
5-
haml (>= 5.2)
4+
syntax_tree-haml (1.3.3)
5+
haml (>= 5.2, != 6.0.0)
66
prettier_print
77
syntax_tree (>= 2.0.1)
88

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

syntax_tree-haml.gemspec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ Gem::Specification.new do |spec|
2424
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
2525
spec.require_paths = %w[lib]
2626

27-
spec.add_dependency "haml", ">= 5.2"
27+
# Can't use 6.0.0 due to https://github.com/haml/haml/issues/1085
28+
spec.add_dependency "haml", ">= 5.2", "!= 6.0.0"
2829
spec.add_dependency "prettier_print"
2930
spec.add_dependency "syntax_tree", ">= 2.0.1"
3031

0 commit comments

Comments
 (0)