diff --git a/bin/steep b/bin/steep index dac5d6d10..a1a2810fa 100755 --- a/bin/steep +++ b/bin/steep @@ -1,7 +1,8 @@ -#!/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" @@ -9,8 +10,8 @@ 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 $@ diff --git a/sig/polyfill.rbs b/sig/polyfill.rbs index 4024f165e..38ac18e0b 100644 --- a/sig/polyfill.rbs +++ b/sig/polyfill.rbs @@ -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