Skip to content

Drop dependency on abbrev - #1866

Merged
soutaro merged 1 commit into
ruby:masterfrom
Earlopain:drop-abbrev-dep
Jun 6, 2024
Merged

soutaro merged 1 commit into
ruby:masterfrom
Earlopain:drop-abbrev-dep

Conversation

@Earlopain

Copy link
Copy Markdown
Contributor

Pulling in something extra just for this seems pretty wasteful in my opinion

Pulling in something extra just for this seems pretty wasteful
Comment thread lib/rbs/cli.rb
case subcommand
when 'install'
case args[0]
when 'install', 'instal', 'insta', 'inst', 'ins', 'in', 'i'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'install'.start_with? args[0]? ε:

@soutaro

soutaro commented Jun 6, 2024

Copy link
Copy Markdown
Member

I'm open to this change. It implements the same feature after dropping abbrev.
Just curious if there is some real problem installing the library?

@Earlopain

Copy link
Copy Markdown
Contributor Author

No real problem, I just like having a small dependency tree if possible. Abbrev isn't buildin anymore, if it did something more complicated there could be an argument for it but it really isn't doing much as it is used here.

@soutaro soutaro added this to the RBS 3.5 milestone Jun 6, 2024

@soutaro soutaro left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@soutaro
soutaro added this pull request to the merge queue Jun 6, 2024
Merged via the queue into ruby:master with commit 82df1eb Jun 6, 2024
@soutaro soutaro added the Released PRs already included in the released version label Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Released PRs already included in the released version

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants