syntax_tree-haml 1.0.1 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/main.yml +8 -1
- data/CHANGELOG.md +8 -1
- data/Gemfile.lock +5 -2
- data/lib/syntax_tree/haml/silent_script.rb +8 -3
- data/lib/syntax_tree/haml/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 45b9e5cb48cbd477c782d5e20e0175ae2c6a32bdf6274efdbd8f7e18a7f0a58c
|
|
4
|
+
data.tar.gz: 07fce35b6424bed30ad41940cd47733387baadc6b6646f3aa03f981832043a47
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 56687885f72f36b1f0eed8db02762b759b1b17067efcd134f014877e342b4d1efe3803882a3f77dda29ec650097f68b9e0bff31a5bba316e877fc834178f67c9
|
|
7
|
+
data.tar.gz: 786907f623cbd5b39fdd7b8ff2f95855ddc833f549b9ef16beb1d106e59edf427bdb2059633722ed8f9cfb0ed72d467567174235fcb2d136ba807eda95832031
|
data/.github/workflows/main.yml
CHANGED
|
@@ -4,6 +4,13 @@ on:
|
|
|
4
4
|
- pull_request_target
|
|
5
5
|
jobs:
|
|
6
6
|
ci:
|
|
7
|
+
strategy:
|
|
8
|
+
fail-fast: false
|
|
9
|
+
matrix:
|
|
10
|
+
ruby:
|
|
11
|
+
- '2.7'
|
|
12
|
+
- '3.0'
|
|
13
|
+
- '3.1'
|
|
7
14
|
name: CI
|
|
8
15
|
runs-on: ubuntu-latest
|
|
9
16
|
env:
|
|
@@ -13,7 +20,7 @@ jobs:
|
|
|
13
20
|
- uses: ruby/setup-ruby@v1
|
|
14
21
|
with:
|
|
15
22
|
bundler-cache: true
|
|
16
|
-
ruby-version:
|
|
23
|
+
ruby-version: ${{ matrix.ruby }}
|
|
17
24
|
- name: Test
|
|
18
25
|
run: bundle exec rake test
|
|
19
26
|
automerge:
|
data/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [1.1.0] - 2022-04-22
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- Support for Ruby 2.7 added back.
|
|
14
|
+
|
|
9
15
|
## [1.0.1] - 2022-03-31
|
|
10
16
|
|
|
11
17
|
### Changed
|
|
@@ -24,7 +30,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
|
|
|
24
30
|
|
|
25
31
|
- 🎉 Initial release! 🎉
|
|
26
32
|
|
|
27
|
-
[unreleased]: https://github.com/ruby-syntax-tree/syntax_tree-haml/compare/v1.0
|
|
33
|
+
[unreleased]: https://github.com/ruby-syntax-tree/syntax_tree-haml/compare/v1.1.0...HEAD
|
|
34
|
+
[1.1.0]: https://github.com/ruby-syntax-tree/syntax_tree-haml/compare/v1.0.1...v1.1.0
|
|
28
35
|
[1.0.1]: https://github.com/ruby-syntax-tree/syntax_tree-haml/compare/v1.0.0...v1.0.1
|
|
29
36
|
[1.0.0]: https://github.com/ruby-syntax-tree/syntax_tree-haml/compare/v0.1.0...v1.0.0
|
|
30
37
|
[0.1.0]: https://github.com/ruby-syntax-tree/syntax_tree-haml/compare/c1264c...v0.1.0
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
syntax_tree-haml (1.0
|
|
4
|
+
syntax_tree-haml (1.1.0)
|
|
5
5
|
haml (>= 5.2)
|
|
6
6
|
syntax_tree (>= 2.0.1)
|
|
7
7
|
|
|
@@ -20,11 +20,14 @@ GEM
|
|
|
20
20
|
simplecov_json_formatter (~> 0.1)
|
|
21
21
|
simplecov-html (0.12.3)
|
|
22
22
|
simplecov_json_formatter (0.1.4)
|
|
23
|
-
syntax_tree (2.0
|
|
23
|
+
syntax_tree (2.3.0)
|
|
24
24
|
temple (0.8.2)
|
|
25
25
|
tilt (2.0.10)
|
|
26
26
|
|
|
27
27
|
PLATFORMS
|
|
28
|
+
ruby
|
|
29
|
+
x86_64-darwin-19
|
|
30
|
+
x86_64-darwin-20
|
|
28
31
|
x86_64-darwin-21
|
|
29
32
|
x86_64-linux
|
|
30
33
|
|
|
@@ -48,9 +48,14 @@ module SyntaxTree
|
|
|
48
48
|
def continuation?(child)
|
|
49
49
|
return false if child.type != :silent_script
|
|
50
50
|
|
|
51
|
-
[node.value[:keyword], child.value[:keyword]]
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
case [node.value[:keyword], child.value[:keyword]]
|
|
52
|
+
in ["case", "in" | "when" | "else"]
|
|
53
|
+
true
|
|
54
|
+
in ["if" | "unless", "elsif" | "else"]
|
|
55
|
+
true
|
|
56
|
+
else
|
|
57
|
+
false
|
|
58
|
+
end
|
|
54
59
|
end
|
|
55
60
|
end
|
|
56
61
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: syntax_tree-haml
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0
|
|
4
|
+
version: 1.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kevin Newton
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-04-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: haml
|
|
@@ -145,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
145
145
|
- !ruby/object:Gem::Version
|
|
146
146
|
version: '0'
|
|
147
147
|
requirements: []
|
|
148
|
-
rubygems_version: 3.
|
|
148
|
+
rubygems_version: 3.3.3
|
|
149
149
|
signing_key:
|
|
150
150
|
specification_version: 4
|
|
151
151
|
summary: Syntax Tree support for Haml
|