Skip to content

Commit

Permalink
Call require "bundler/setup" to run bins without bundle exec
Browse files Browse the repository at this point in the history
  • Loading branch information
mtsmfm committed Apr 2, 2020
1 parent b1e836e commit 9ad0556
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions bin/annotate-with-rdoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env ruby

require "bundler/setup"
require "ruby/signature"
require "rdoc"

Expand Down
1 change: 1 addition & 0 deletions bin/sort
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env ruby

require "bundler/setup"
require "ruby/signature"

Members = Ruby::Signature::AST::Members
Expand Down
2 changes: 1 addition & 1 deletion docs/stdlib.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ One non-trivial but absolutely better solution is to make a tool:
The next step should be importing RDoc documents.

```
$ bundle exec bin/annotate-with-rdoc stdlib/pathname/pathname.rbs
$ bin/annotate-with-rdoc stdlib/pathname/pathname.rbs
Loading store from /Users/soutaro/.rbenv/versions/2.7.0-dev/share/ri/2.7.0/system...
Loading store from /Users/soutaro/.rbenv/versions/2.7.0-dev/share/ri/2.7.0/site...
Opening stdlib/pathname/pathname.rbs...
Expand Down

0 comments on commit 9ad0556

Please sign in to comment.