Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5
tag release#52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Closed
Uh oh!
There was an error while loading.Please reload this page.
Closed
tag release#52
Changes fromall commits
Commits
Show all changes
74 commits Select commitHold shift + click to select a range
419727a
ERB: Managed to format first example
davidwessman2cc26ac
Format all ruby files
davidwessman45d7f45
First implementation of blocks
davidwessman0877f91
Merge pull request #1 from davidwessman/blocks
davidwessmana51e673
Handles basic vue-components (#2)
davidwessman4deaeb1
Changes register_handler
davidwessman7320b93
Handles empty and invalid files (#3)
davidwessmanc87ffc4
Handles attribute names like vue events `@click` (#4)
davidwessmane2f8307
Adds ErbUnless to handle `unless` syntax (#5)
davidwessmanc26791e
Handles more formats for ERB syntax (#6)
davidwessman6d31d98
Keep blank lines (#7)
davidwessmand56cf87
Support full layouts and doctype (#8)
davidwessman995ed0f
Changes error handling (#9)
davidwessmanac9b4d3
Handles edge cases where blocks failed to parse (#10)
davidwessmane4d42a1
Adds test for parsing unmatched quotes (#11)
davidwessman23a3056
Doctype: Handles casing (#12)
davidwessmanb8e0e0c
ERB: Consider newlines before parsing the code (#13)
davidwessman10c73d0
Handles HTML-comments (#14)
davidwessmandc3ab8d
Handles non-ascii ERB-code (#15)
davidwessmandf4acbf
Support quotes in HTML-text (#16)
davidwessman526b80a
Allow html attribute to start with @:# (#17)
davidwessman1894714
Handles dot, dash and underscore in attribute names (#18)
davidwessmanad3647e
HTML: Handles attribute values without quotes (#19)
davidwessman412b54f
Adds script for parsing all .html.erb and output (#20)
davidwessman357e8e5
Failing to format long if-statements multiple times (#21)
davidwessmanb366e80
Changed how blocks are formatted (#22)
davidwessman9c929ab
Changes print width if erb tag has IfNode (#23)
davidwessman3be3202
Fixes handling of comments in ERB (#24)
davidwessman12b5e01
Handles formatting of IfOp (#25)
davidwessmanf310a7b
Updates README (#26)
davidwessman743db1e
Update issue templates (#27)
davidwessman4cad3d7
Updates README and gemspec (#29)
davidwessmanb18b871
Update issue templates
davidwessman8028145
Handles Alpine.js syntax (#31)
davidwessmanb67eb2b
Github Actions: Adds ruby matrix (#33)
davidwessman15b11a5
Adds support for case-when-statements (#32)
davidwessman927f3c4
Github Actions: Fixes triggers (#34)
davidwessman1c2f658
Handles ternaries as arguments (#36)
davidwessman36da1d2
Bump minitest from 5.18.0 to 5.18.1 (#35)
dependabot[bot]582e694
Setup gem and tag v0.9.0 (#37)
davidwessman8b5aca9
Handles ERB-tags with multiple statements (#38)
davidwessmanb43c4d6
v0.9.1 (#39)
davidwessman7a4c3bd
Handle whitespace in HTML-strings with ERB (#40)
davidwessman3dbc3d9
v0.9.2 2023-06-30 (#41)
davidwessman98227e3
Format empty html-tags on one line if possible (#42)
davidwessmanbf18cbe
0.9.4: Format empty HTML-tags as a group (#43)
davidwessmanaa97395
Fixes bundle warnings (#44)
davidwessmanf89f7a0
v0.9.5 - Fixes formatting of ruby comment in ERB-tag (#45)
davidwessmanbec4339
Adds pre-commit hooks using Husky (#46)
davidwessman20e4ec4
Removes unused breakable(force: true) (#49)
davidwessman4ac2a14
Adds handler for .html.erb (#52)
davidwessman71f6d23
Bump minitest from 5.18.1 to 5.19.0 (#50)
dependabot[bot]c311c54
Refactor line breaks and whitespace (#51)
davidwessman0a513a5
Tests: Refactors test cases and namings (#53)
davidwessman7679304
Handles self-closing new lines (#54)
davidwessman375d720
Release v0.10.0 (#55)
davidwessmancf23af0
Handles doctype more freely (#56)
davidwessman0cd3195
Handles empty documents and leading new lines (#57)
davidwessman67cc3e9
Handles trailing whitespace in char data (#58)
davidwessmanf24718a
Release v0.10.2 (#59)
davidwessmanf8559fe
Supports ERB-tags with if-else-end in same tag (#61)
davidwessman605300d
Avoid grouping single ERB-tags and handle ERB-comments with newlines …
davidwessmand2b7eea
Release v0.10.4 (#63)
davidwessman56470a8
Handles ERB-tag inside HTML tags (#64)
davidwessmanc2f2a05
Handles indentation for multiline ERB-comments (#65)
davidwessmanbad2142
Handle do-arguments in ERB-tags and release 0.10.5 (#67)
davidwessman9e55b88
Update formatting-report.md
davidwessmana348c86
ErbContent: Adds value to elements (#69)
davidwessmane386ec5
Bump minitest from 5.19.0 to 5.20.0 (#68)
dependabot[bot]f2269fd
Removes auto-merge workflow (#70)
davidwessman9ad25b5
Bump syntax_tree from 6.1.1 to 6.2.0 (#71)
dependabot[bot]f0e51e5
Bump rake from 13.0.6 to 13.1.0 (#72)
dependabot[bot]b91d2b8
Allow html void tags (#73)
rdimartinoedc8267
Release v0.11.0
davidwessmanFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
37 changes: 37 additions & 0 deletions.github/ISSUE_TEMPLATE/formatting-report.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
name: Formatting report | ||
about: Create a report to help us improve | ||
title: "[Formatting] " | ||
labels: bug | ||
assignees: davidwessman | ||
--- | ||
<details> | ||
<summary>ERB-snippet</summary> | ||
```html | ||
<% code %> | ||
``` | ||
</details> | ||
<details> | ||
<summary>Expected formatting</summary> | ||
```html | ||
<% code %> | ||
``` | ||
</details> | ||
<details> | ||
<summary>Actual formatting</summary> | ||
```html | ||
<% code %> | ||
``` | ||
</details> | ||
## Comment | ||
## Versions | ||
syntax_tree: | ||
syntax_tree-erb: |
10 changes: 10 additions & 0 deletions.github/ISSUE_TEMPLATE/general.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
name: General | ||
about: General issues | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
--- | ||
22 changes: 0 additions & 22 deletions.github/workflows/auto-merge.yml
This file was deleted.
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
35 changes: 24 additions & 11 deletions.github/workflows/main.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,33 @@ | ||
name: Main | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
jobs: | ||
ci: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ruby: | ||
- "3.0" | ||
- "3.1" | ||
- "3.2" | ||
- "3.3" | ||
name: CI | ||
runs-on: ubuntu-latest | ||
env: | ||
CI: true | ||
steps: | ||
- uses: actions/checkout@master | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
bundler-cache: true | ||
ruby-version:${{ matrix.ruby }} | ||
- name: Test | ||
run: | | ||
bundle exec rake test | ||
bundle exec rake stree:check |
2 changes: 1 addition & 1 deletion.gitignore
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -7,4 +7,4 @@ | ||
/spec/reports/ | ||
/tmp/ | ||
test.erb |
4 changes: 4 additions & 0 deletions.husky/pre-commit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env sh | ||
."$(dirname --"$0")/_/husky.sh" | ||
npx lint-staged |
1 change: 1 addition & 0 deletions.tool-versions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ruby 3.2.3 |
25 changes: 25 additions & 0 deletions.vscode/launch.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "ruby_lsp", | ||
"name": "Debug file", | ||
"request": "launch", | ||
"program": "ruby ${file}" | ||
}, | ||
{ | ||
"type": "ruby_lsp", | ||
"name": "Debug test", | ||
"request": "launch", | ||
"program": "ruby -Itest ${relativeFile}" | ||
}, | ||
{ | ||
"type": "ruby_lsp", | ||
"name": "Debug attach", | ||
"request": "attach" | ||
} | ||
] | ||
} |
121 changes: 117 additions & 4 deletionsCHANGELOG.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
26 changes: 14 additions & 12 deletionsGemfile.lock
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,39 @@ | ||
PATH | ||
remote: . | ||
specs: | ||
w_syntax_tree-erb (0.11.0) | ||
prettier_print (~> 1.2, >= 1.2.0) | ||
syntax_tree (~> 6.1, >= 6.1.1) | ||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
docile (1.4.0) | ||
minitest (5.20.0) | ||
prettier_print (1.2.1) | ||
rake (13.1.0) | ||
simplecov (0.22.0) | ||
docile (~> 1.1) | ||
simplecov-html (~> 0.11) | ||
simplecov_json_formatter (~> 0.1) | ||
simplecov-html (0.12.3) | ||
simplecov_json_formatter (0.1.4) | ||
syntax_tree (6.2.0) | ||
prettier_print (>= 1.2.0) | ||
PLATFORMS | ||
arm64-darwin-21 | ||
arm64-darwin-23 | ||
x86_64-darwin-21 | ||
x86_64-darwin-22 | ||
x86_64-linux | ||
DEPENDENCIES | ||
bundler (~> 2) | ||
minitest (~> 5) | ||
rake (~> 13) | ||
simplecov (~> 0.22) | ||
w_syntax_tree-erb! | ||
BUNDLED WITH | ||
2.4.1 |
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.