Commit edd2f1da authored by Ed Reel's avatar Ed Reel Committed by GitHub

Update composer from 2.0.13 to 2.1.3 (#5905)

parent 77c83889
......@@ -3,7 +3,7 @@ require 'package'
class Composer < Package
description 'Dependency Manager for PHP'
homepage 'https://getcomposer.org/'
version '2.0.13'
version '2.1.3'
license 'MIT'
compatibility 'all'
source_url 'SKIP'
......@@ -23,7 +23,7 @@ class Composer < Package
def self.install
system "curl -Ls -o composer https://github.com/composer/composer/releases/download/#{version}/composer.phar"
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read('composer') ) == '116fdf07cc926af646635a6abc92d88aff7b02a5dc36538f81c50a7d27366dbf'
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read('composer') ) == 'f8a72e98dec8da736d8dac66761ca0a8fbde913753e9a43f34112367f5174d11'
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
FileUtils.install 'composer', "#{CREW_DEST_PREFIX}/bin/composer", mode: 0o755
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment