Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename Hbc module to Cask. #4838

Merged
merged 2 commits into from
Sep 6, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion Library/Homebrew/cask/artifact.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
require "cask/artifact/uninstall"
require "cask/artifact/zap"

module Hbc
module Cask
module Artifact
end
end
2 changes: 1 addition & 1 deletion Library/Homebrew/cask/artifact/abstract_artifact.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module Hbc
module Cask
module Artifact
class AbstractArtifact
include Comparable
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/cask/artifact/abstract_flight_block.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "cask/artifact/abstract_artifact"

module Hbc
module Cask
module Artifact
class AbstractFlightBlock < AbstractArtifact
def self.dsl_key
Expand Down
4 changes: 2 additions & 2 deletions Library/Homebrew/cask/artifact/abstract_uninstall.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require "cask/artifact/abstract_artifact"

module Hbc
module Cask
module Artifact
class AbstractUninstall < AbstractArtifact
ORDERED_DIRECTIVES = [
Expand Down Expand Up @@ -218,7 +218,7 @@ def uninstall_script(directives, directive_name: :script, force: false, command:
def uninstall_pkgutil(*pkgs, command: nil, **_)
ohai "Uninstalling packages:"
pkgs.each do |regex|
Hbc::Pkg.all_matching(regex, command).each do |pkg|
::Cask::Pkg.all_matching(regex, command).each do |pkg|
puts pkg.package_id
pkg.uninstall
end
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/cask/artifact/app.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "cask/artifact/moved"

module Hbc
module Cask
module Artifact
class App < Moved
end
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/cask/artifact/artifact.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require "extend/hash_validator"
using HashValidator

module Hbc
module Cask
module Artifact
class Artifact < Moved
def self.english_name
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/cask/artifact/audio_unit_plugin.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "cask/artifact/moved"

module Hbc
module Cask
module Artifact
class AudioUnitPlugin < Moved
end
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/cask/artifact/binary.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "cask/artifact/symlinked"

module Hbc
module Cask
module Artifact
class Binary < Symlinked
def link(command: nil, **options)
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/cask/artifact/colorpicker.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "cask/artifact/moved"

module Hbc
module Cask
module Artifact
class Colorpicker < Moved
end
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/cask/artifact/dictionary.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "cask/artifact/moved"

module Hbc
module Cask
module Artifact
class Dictionary < Moved
end
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/cask/artifact/font.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "cask/artifact/moved"

module Hbc
module Cask
module Artifact
class Font < Moved
end
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/cask/artifact/input_method.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "cask/artifact/moved"

module Hbc
module Cask
module Artifact
class InputMethod < Moved
end
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/cask/artifact/installer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require "extend/hash_validator"
using HashValidator

module Hbc
module Cask
module Artifact
class Installer < AbstractArtifact
VALID_KEYS = Set.new [
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/cask/artifact/internet_plugin.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "cask/artifact/moved"

module Hbc
module Cask
module Artifact
class InternetPlugin < Moved
end
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/cask/artifact/moved.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "cask/artifact/relocated"

module Hbc
module Cask
module Artifact
class Moved < Relocated
def self.english_description
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/cask/artifact/pkg.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
require "extend/hash_validator"
using HashValidator

module Hbc
module Cask
module Artifact
class Pkg < AbstractArtifact
attr_reader :pkg_relative_path
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/cask/artifact/postflight_block.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "cask/artifact/abstract_flight_block"

module Hbc
module Cask
module Artifact
class PostflightBlock < AbstractFlightBlock
end
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/cask/artifact/preflight_block.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "cask/artifact/abstract_flight_block"

module Hbc
module Cask
module Artifact
class PreflightBlock < AbstractFlightBlock
end
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/cask/artifact/prefpane.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "cask/artifact/moved"

module Hbc
module Cask
module Artifact
class Prefpane < Moved
def self.english_name
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/cask/artifact/qlplugin.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "cask/artifact/moved"

module Hbc
module Cask
module Artifact
class Qlplugin < Moved
def self.english_name
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/cask/artifact/relocated.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require "extend/hash_validator"
using HashValidator

module Hbc
module Cask
module Artifact
class Relocated < AbstractArtifact
def self.from_args(cask, *args)
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/cask/artifact/screen_saver.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "cask/artifact/moved"

module Hbc
module Cask
module Artifact
class ScreenSaver < Moved
end
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/cask/artifact/service.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "cask/artifact/moved"

module Hbc
module Cask
module Artifact
class Service < Moved
end
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/cask/artifact/stage_only.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "cask/artifact/abstract_artifact"

module Hbc
module Cask
module Artifact
class StageOnly < AbstractArtifact
def self.from_args(cask, *args)
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/cask/artifact/suite.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "cask/artifact/moved"

module Hbc
module Cask
module Artifact
class Suite < Moved
def self.english_name
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/cask/artifact/symlinked.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "cask/artifact/relocated"

module Hbc
module Cask
module Artifact
class Symlinked < Relocated
def self.link_type_english_name
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/cask/artifact/uninstall.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "cask/artifact/abstract_uninstall"

module Hbc
module Cask
module Artifact
class Uninstall < AbstractUninstall
def uninstall_phase(**options)
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/cask/artifact/vst3_plugin.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "cask/artifact/moved"

module Hbc
module Cask
module Artifact
class Vst3Plugin < Moved
end
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/cask/artifact/vst_plugin.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "cask/artifact/moved"

module Hbc
module Cask
module Artifact
class VstPlugin < Moved
end
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/cask/artifact/zap.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "cask/artifact/abstract_uninstall"

module Hbc
module Cask
module Artifact
class Zap < AbstractUninstall
def zap_phase(**options)
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/cask/audit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require "digest"
require "utils/git"

module Hbc
module Cask
class Audit
include Checkable

Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/cask/auditor.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "cask/download"

module Hbc
module Cask
class Auditor
def self.audit(cask, audit_download: false, check_token_conflicts: false, quarantine: true, commit_range: nil)
new(cask, audit_download, check_token_conflicts, quarantine, commit_range).audit
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/cask/cache.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module Hbc
module Cask
module Cache
module_function

Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/cask/cask.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
require "cask/metadata"
require "searchable"

module Hbc
module Cask
class Cask
extend Enumerable
extend Forwardable
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/cask/cask_dependencies.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require "cask/topological_hash"

module Hbc
module Cask
class CaskDependencies < DelegateClass(Array)
attr_reader :cask, :graph

Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/cask/cask_loader.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require "cask/cask"
require "uri"

module Hbc
module Cask
module CaskLoader
class FromContentLoader
attr_reader :content
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/cask/caskroom.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module Hbc
module Cask
module Caskroom
module_function

Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/cask/checkable.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module Hbc
module Cask
module Checkable
def errors
@errors ||= []
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/cask/cmd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
require "cask/cmd/internal_help"
require "cask/cmd/internal_stanza"

module Hbc
module Cask
class Cmd
ALIASES = {
"ls" => "list",
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/cask/cmd/abstract_command.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require_relative "options"
require "search"

module Hbc
module Cask
class Cmd
class AbstractCommand
include Options
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/cask/cmd/abstract_internal_command.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module Hbc
module Cask
class Cmd
class AbstractInternalCommand < AbstractCommand
def self.command_name
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/cask/cmd/audit.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module Hbc
module Cask
class Cmd
class Audit < AbstractCommand
option "--download", :download, false
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/cask/cmd/cat.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module Hbc
module Cask
class Cmd
class Cat < AbstractCommand
def initialize(*)
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/cask/cmd/create.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module Hbc
module Cask
class Cmd
class Create < AbstractCommand
def initialize(*)
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/cask/cmd/doctor.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require "system_config"
require "cask/checkable"

module Hbc
module Cask
class Cmd
class Doctor < AbstractCommand
include Checkable
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/cask/cmd/edit.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module Hbc
module Cask
class Cmd
class Edit < AbstractCommand
def initialize(*)
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/cask/cmd/fetch.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "cask/download"

module Hbc
module Cask
class Cmd
class Fetch < AbstractCommand
option "--force", :force, false
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/cask/cmd/home.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module Hbc
module Cask
class Cmd
class Home < AbstractCommand
def run
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/cask/cmd/info.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "json"

module Hbc
module Cask
class Cmd
class Info < AbstractCommand
option "--json=VERSION", :json
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/cask/cmd/install.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module Hbc
module Cask
class Cmd
class Install < AbstractCommand
option "--force", :force, false
Expand Down