Skip to content

Commit

Permalink
Merge pull request #3208 from MikeMcQuaid/more-leopard-fixes
Browse files Browse the repository at this point in the history
portable-ruby: fix installation on Leopard.
  • Loading branch information
MikeMcQuaid authored Sep 25, 2017
2 parents 46e6e99 + dd75dd8 commit 880f980
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Library/Homebrew/cmd/vendor-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ fetch() {
curl_args[${#curl_args[*]}]="--progress-bar"
fi

if [[ "$HOMEBREW_MACOS_VERSION_NUMERIC" -lt "100600" ]]
then
curl_args[${#curl_args[*]}]="--insecure"
fi

temporary_path="$CACHED_LOCATION.incomplete"

mkdir -p "$HOMEBREW_CACHE"
Expand Down
1 change: 1 addition & 0 deletions Library/Homebrew/os/mac/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class Version < ::Version
mountain_lion: "10.8",
lion: "10.7",
snow_leopard: "10.6",
leopard_64: "10.5",
leopard: "10.5",
tiger: "10.4",
}.freeze
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/utils/ruby.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ setup-ruby-path() {

if [[ -n "$HOMEBREW_RUBY_PATH" ]]
then
ruby_old_version="$("$HOMEBREW_RUBY_PATH" -e "puts Gem::Version.new('$minimum_ruby_version') > Gem::Version.new(RUBY_VERSION)")"
ruby_old_version="$("$HOMEBREW_RUBY_PATH" -rrubygems -e "puts Gem::Version.new('$minimum_ruby_version') > Gem::Version.new(RUBY_VERSION)")"
fi

if [[ "$ruby_old_version" == "true" || -n "$HOMEBREW_FORCE_VENDOR_RUBY" ]]
Expand Down

0 comments on commit 880f980

Please sign in to comment.