Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ruby-syntax-tree/syntax_tree
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.2.1
Choose a base ref
...
head repository: ruby-syntax-tree/syntax_tree
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v3.3.0
Choose a head ref
  • 11 commits
  • 10 files changed
  • 3 contributors

Commits on Jul 22, 2022

  1. Deal better with multi-statement blocks inside parenthesized method c…

    …alls. Fixes #120.
    Tony Spataro committed Jul 22, 2022
    Configuration menu
    Copy the full SHA
    35cf388 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #121 from xeger/block-in-parenthesized-method

    Deal better with multi-statement blocks inside parenthesized method calls
    kddnewton authored Jul 22, 2022
    Configuration menu
    Copy the full SHA
    515aaff View commit details
    Browse the repository at this point in the history

Commits on Jul 26, 2022

  1. Configuration menu
    Copy the full SHA
    b5758af View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2022

  1. Merge pull request #123 from molawson/rake-print-width-arg

    Add print_width config option for rake tasks
    kddnewton authored Jul 31, 2022
    Configuration menu
    Copy the full SHA
    cf97c1b View commit details
    Browse the repository at this point in the history

Commits on Aug 1, 2022

  1. Fix up CI on main

    kddnewton committed Aug 1, 2022
    Configuration menu
    Copy the full SHA
    f1ed1e9 View commit details
    Browse the repository at this point in the history
  2. 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.
    molawson committed Aug 1, 2022
    Configuration menu
    Copy the full SHA
    bd85cd5 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #125 from molawson/config-file-support

    Add support for a simple config file
    kddnewton authored Aug 1, 2022
    Configuration menu
    Copy the full SHA
    3b81273 View commit details
    Browse the repository at this point in the history
  4. Fix up tests on main

    kddnewton committed Aug 1, 2022
    Configuration menu
    Copy the full SHA
    4b9a3b7 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    282eb1d View commit details
    Browse the repository at this point in the history

Commits on Aug 2, 2022

  1. Fix up CLI tests on main

    kddnewton committed Aug 2, 2022
    Configuration menu
    Copy the full SHA
    ddd6406 View commit details
    Browse the repository at this point in the history
  2. Bump to version 3.3.0

    kddnewton committed Aug 2, 2022
    Configuration menu
    Copy the full SHA
    dd07d31 View commit details
    Browse the repository at this point in the history
Loading