mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
Add Rubocop CI (#7083)
* 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>
This commit is contained in:
committed by
GitHub
parent
4c0f15a6f3
commit
de24923ee8
@@ -9,17 +9,17 @@ class Dosbox < Package
|
||||
source_url 'https://downloads.sourceforge.net/project/dosbox/dosbox/0.74-3/dosbox-0.74-3.tar.gz'
|
||||
source_sha256 'c0d13dd7ed2ed363b68de615475781e891cd582e8162b5c3669137502222260a'
|
||||
|
||||
binary_url ({
|
||||
binary_url({
|
||||
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/dosbox/0.74-3_armv7l/dosbox-0.74-3-chromeos-armv7l.tar.xz',
|
||||
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/dosbox/0.74-3_armv7l/dosbox-0.74-3-chromeos-armv7l.tar.xz',
|
||||
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/dosbox/0.74-3_i686/dosbox-0.74-3-chromeos-i686.tar.xz',
|
||||
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/dosbox/0.74-3_x86_64/dosbox-0.74-3-chromeos-x86_64.tar.xz',
|
||||
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/dosbox/0.74-3_x86_64/dosbox-0.74-3-chromeos-x86_64.tar.xz'
|
||||
})
|
||||
binary_sha256 ({
|
||||
binary_sha256({
|
||||
aarch64: '4d63eeba4d2e93696ff90cf61f806ea64b86552a7739651a6b717427e9ebe94f',
|
||||
armv7l: '4d63eeba4d2e93696ff90cf61f806ea64b86552a7739651a6b717427e9ebe94f',
|
||||
i686: 'ff371f1229c13dd11e11bf052c22f556373bf3d2c5eac1c12df8116a2b0bbed3',
|
||||
x86_64: '1e45f3a2ef42431b06cc98f4c3769f8f1ce65094d71b0a9ff871eaabb6f22e86',
|
||||
x86_64: '1e45f3a2ef42431b06cc98f4c3769f8f1ce65094d71b0a9ff871eaabb6f22e86'
|
||||
})
|
||||
|
||||
depends_on 'libpng'
|
||||
@@ -42,12 +42,12 @@ class Dosbox < Package
|
||||
end
|
||||
|
||||
def self.remove
|
||||
print "Would you like to remove the config directory? [y/N] "
|
||||
response = STDIN.getc
|
||||
print 'Would you like to remove the config directory? [y/N] '
|
||||
response = $stdin.getc
|
||||
config_dir = "#{HOME}/.dosbox"
|
||||
if Dir.exist? config_dir
|
||||
case response
|
||||
when "y", "Y"
|
||||
when 'y', 'Y'
|
||||
FileUtils.rm_rf config_dir
|
||||
puts "#{config_dir} removed.".lightred
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user