-
-
Notifications
You must be signed in to change notification settings - Fork 56
Comparing changes
Open a pull request
base repository: ruby-syntax-tree/syntax_tree
base: v3.2.1
head repository: ruby-syntax-tree/syntax_tree
compare: v3.3.0
- 11 commits
- 10 files changed
- 3 contributors
Commits on Jul 22, 2022
-
Deal better with multi-statement blocks inside parenthesized method c…
…alls. Fixes #120.
Tony Spataro committedJul 22, 2022 Configuration menu - View commit details
-
Copy full SHA for 35cf388 - Browse repository at this point
Copy the full SHA 35cf388View commit details -
Merge pull request #121 from xeger/block-in-parenthesized-method
Deal better with multi-statement blocks inside parenthesized method calls
Configuration menu - View commit details
-
Copy full SHA for 515aaff - Browse repository at this point
Copy the full SHA 515aaffView commit details
Commits on Jul 26, 2022
-
Configuration menu - View commit details
-
Copy full SHA for b5758af - Browse repository at this point
Copy the full SHA b5758afView commit details
Commits on Jul 31, 2022
-
Merge pull request #123 from molawson/rake-print-width-arg
Add print_width config option for rake tasks
Configuration menu - View commit details
-
Copy full SHA for cf97c1b - Browse repository at this point
Copy the full SHA cf97c1bView commit details
Commits on Aug 1, 2022
-
Configuration menu - View commit details
-
Copy full SHA for f1ed1e9 - Browse repository at this point
Copy the full SHA f1ed1e9View commit details -
Add support for a simple config file
As syntax_tree gains wider usage, it'll be very helpful to allow projects to commit their particular configs within their repo for use by any tool that uses `stree` instead of having to create wrapper scripts, rely on rake tasks that come with their own overhead, or manually keep settings up to date among all contributors. This set of changes takes inspiration from sorbet to provide users with a simple config file that's also easy to parse and use within the gem. It's a text file that has the exact options you'd pass on the command line, each on their own line. These are parsed and prepended to the arguments array within `CLI.run`, still allowing for other options to passed from the command line. I decided to restrict this only to the command line options and avoid the source files argument, opting to let other tools pass their own source file from the command line, which is preferable for tools like editor integrations that might interact with a single file at a time. If users want to interact with all of their Ruby files at once, the rake tasks are perfect for providing larger, static patterns of files. And since they use `CLI.run` as well, they'll pick up options from a .streerc file, if present. I also opted for only supporting a single .streerc file at the project root. If there's a need for multiple configs or config locations, this can be easily extended to look up through a directory structure or accept an option for a specific config file location (or even a different filename). Those felt out of scope for this initial support.
Configuration menu - View commit details
-
Copy full SHA for bd85cd5 - Browse repository at this point
Copy the full SHA bd85cd5View commit details -
Merge pull request #125 from molawson/config-file-support
Add support for a simple config file
Configuration menu - View commit details
-
Copy full SHA for 3b81273 - Browse repository at this point
Copy the full SHA 3b81273View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4b9a3b7 - Browse repository at this point
Copy the full SHA 4b9a3b7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 282eb1d - Browse repository at this point
Copy the full SHA 282eb1dView commit details
Commits on Aug 2, 2022
-
Configuration menu - View commit details
-
Copy full SHA for ddd6406 - Browse repository at this point
Copy the full SHA ddd6406View commit details -
Configuration menu - View commit details
-
Copy full SHA for dd07d31 - Browse repository at this point
Copy the full SHA dd07d31View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v3.2.1...v3.3.0