Skip to content

Commit

Permalink
Merge pull request #990 from ruby/update-steep
Browse files Browse the repository at this point in the history
Update steep
  • Loading branch information
soutaro authored May 8, 2022
2 parents df336b0 + c4496a3 commit 01f9a90
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
11 changes: 6 additions & 5 deletions bin/steep
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
#!/bin/sh
#!/usr/bin/env bash

REPO_ROOT=$(cd $(dirname $0); pwd)
GEMFILE=${REPO_ROOT}/../steep/Gemfile
BINSTUB_DIR=$(cd $(dirname $0); pwd)
GEMFILE=$(readlink -f ${BINSTUB_DIR}/../steep/Gemfile)
ROOT_DIR=$(readlink -f ${BINSTUB_DIR}/..)

STEEP="bundle exec --gemfile=${GEMFILE} steep"

if type "rbenv" > /dev/null 2>&1; then
STEEP="rbenv exec ${STEEP}"
else
if type "rvm" > /dev/null 2>&1; then
STEEP="rvm ${REPO_ROOT} do ${STEEP}"
STEEP="rvm ${ROOT_DIR} do ${STEEP}"
fi
fi

exec $STEEP $*
exec $STEEP $@
6 changes: 0 additions & 6 deletions sig/polyfill.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@ module Gem
end
end

module Enumerable[unchecked out Elem]
def flat_map: [U] () { (Elem) -> Array[U] } -> Array[U]
| [U] () { (Elem) -> U } -> Array[U]
| ...
end

module Bundler
class LockfileParser
def initialize: (String) -> void
Expand Down

0 comments on commit 01f9a90

Please sign in to comment.