mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 07:57:59 -05:00
* Rename IgnoredPatterns to AllowedPatterns. * Exclude docopt.rb (not our code) from Rubocop * Disable Style/RedundantReturn * Disable Style/MutableConstant * Disable Style/NumericLiterals * Set Layout/IndentationStyle to spaces * Temporarily disable various cops. * Add Rubocop CI via Octocop * Lint tree with rubocop -A -c .rubocop.yml Co-authored-by: Satadru Pramanik <satadru@gmail.com>
18 lines
768 B
Ruby
18 lines
768 B
Ruby
require 'package'
|
|
|
|
class Spark < Package
|
|
description 'sparklines for your shell'
|
|
homepage 'https://zachholman.com/spark/'
|
|
version 'ab88ac'
|
|
license 'GPL-3'
|
|
compatibility 'all'
|
|
source_url 'https://raw.githubusercontent.com/holman/spark/ab88ac6f8f33698f39ece2f109b1117ef39a68eb/README.md'
|
|
source_sha256 '85a153beeafea5637615644f2e92e47e71c621ffa1b0d995acadf51d1c9bbd0d'
|
|
|
|
def self.install
|
|
system 'curl -#LO https://raw.githubusercontent.com/holman/spark/ab88ac6f8f33698f39ece2f109b1117ef39a68eb/spark'
|
|
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest(File.read('spark')) == '1fa0ef384309239f27f8c98c843639cac2c59e4fe51413cca9836ea64f73329d'
|
|
system "install -Dm755 spark #{CREW_DEST_PREFIX}/bin/spark"
|
|
end
|
|
end
|