language stringclasses 1
value | owner stringlengths 2 15 | repo stringlengths 2 21 | sha stringlengths 45 45 | message stringlengths 7 36.3k | path stringlengths 1 199 | patch stringlengths 15 102k | is_multipart bool 2
classes |
|---|---|---|---|---|---|---|---|
Other | Homebrew | brew | 2047dbd50e05cf03a7f7912011fd510cbc9172f5.json | Update all references to taps.
- Remove taps that are (or will shortly be) deprecated.
- Remove commands that are only relevant to the boneyard (which will
shortly be removed). | Library/Homebrew/dev-cmd/boneyard-formula-pr.rb | @@ -1,166 +0,0 @@
-#: @hide_from_man_page
-#: * `boneyard-formula-pr` [`--dry-run`] [`--local`] [`--reason=<reason>`] <formula> :
-#: Creates a pull request to boneyard a formula.
-#:
-#: If `--dry-run` is passed, print what would be done rather than doing it.
-#:
-#: If `--local` is passed, perform only loca... | true |
Other | Homebrew | brew | 2047dbd50e05cf03a7f7912011fd510cbc9172f5.json | Update all references to taps.
- Remove taps that are (or will shortly be) deprecated.
- Remove commands that are only relevant to the boneyard (which will
shortly be removed). | Library/Homebrew/exceptions.rb | @@ -363,14 +363,6 @@ def dump
end
end
- if formula.tap && formula.tap.name == "homebrew/boneyard"
- onoe <<-EOS.undent
- #{formula} was moved to homebrew-boneyard because it has unfixable issues.
- Please do not file any issues about this. Sorry!
- EOS
- return
- end
-
... | true |
Other | Homebrew | brew | 2047dbd50e05cf03a7f7912011fd510cbc9172f5.json | Update all references to taps.
- Remove taps that are (or will shortly be) deprecated.
- Remove commands that are only relevant to the boneyard (which will
shortly be removed). | Library/Homebrew/official_taps.rb | @@ -1,11 +1,8 @@
OFFICIAL_TAPS = %w[
apache
- dupes
- fuse
nginx
php
science
- tex
].freeze
OFFICIAL_CMD_TAPS = { | true |
Other | Homebrew | brew | 2047dbd50e05cf03a7f7912011fd510cbc9172f5.json | Update all references to taps.
- Remove taps that are (or will shortly be) deprecated.
- Remove commands that are only relevant to the boneyard (which will
shortly be removed). | completions/zsh/_brew | @@ -205,14 +205,6 @@ _brew_audit() {
'*:formula:__brew_formulae'
}
-# brew boneyard-formula-pr [--dry-run] [--local] formula-name
-_brew_boneyard_formula_pr() {
- _arguments \
- '--dry-run[print what would be done rather than doing it]' \
- '--local[perform only local operations(i.e. don''t push or crea... | true |
Other | Homebrew | brew | 2047dbd50e05cf03a7f7912011fd510cbc9172f5.json | Update all references to taps.
- Remove taps that are (or will shortly be) deprecated.
- Remove commands that are only relevant to the boneyard (which will
shortly be removed). | docs/Interesting-Taps-&-Forks.md | @@ -1,37 +1,19 @@
# Interesting Taps & Forks
A _tap_ is homebrew-speak for a Git repository containing extra formulae.
-Homebrew has the capability to add (and remove) multiple taps to your local installation with the `brew tap` and `brew untap` commands. Type `man brew` in your Terminal. The main repository <https... | true |
Other | Homebrew | brew | 024264c381a5dc02dea8680dea29e83bdce9d13b.json | vendor: Update ruby-macho to 1.1.0. | Library/Homebrew/vendor/README.md | @@ -3,7 +3,7 @@ Vendored Dependencies
* [plist](https://github.com/bleything/plist), version 3.1.0
-* [ruby-macho](https://github.com/Homebrew/ruby-macho), version 0.2.6
+* [ruby-macho](https://github.com/Homebrew/ruby-macho), version 1.1.0
## Licenses:
@@ -33,7 +33,7 @@ Vendored Dependencies
### ruby-macho
... | true |
Other | Homebrew | brew | 024264c381a5dc02dea8680dea29e83bdce9d13b.json | vendor: Update ruby-macho to 1.1.0. | Library/Homebrew/vendor/macho/macho.rb | @@ -5,13 +5,36 @@
require "#{File.dirname(__FILE__)}/macho/sections"
require "#{File.dirname(__FILE__)}/macho/macho_file"
require "#{File.dirname(__FILE__)}/macho/fat_file"
-require "#{File.dirname(__FILE__)}/macho/open"
require "#{File.dirname(__FILE__)}/macho/exceptions"
require "#{File.dirname(__FILE__)}/macho/... | true |
Other | Homebrew | brew | 024264c381a5dc02dea8680dea29e83bdce9d13b.json | vendor: Update ruby-macho to 1.1.0. | Library/Homebrew/vendor/macho/macho/exceptions.rb | @@ -80,7 +80,8 @@ class CPUSubtypeError < MachOError
# @param cputype [Fixnum] the CPU type of the unknown pair
# @param cpusubtype [Fixnum] the CPU sub-type of the unknown pair
def initialize(cputype, cpusubtype)
- super "Unrecognized CPU sub-type: 0x#{"%08x" % cpusubtype} (for CPU type: 0x#{"%08x"... | true |
Other | Homebrew | brew | 024264c381a5dc02dea8680dea29e83bdce9d13b.json | vendor: Update ruby-macho to 1.1.0. | Library/Homebrew/vendor/macho/macho/fat_file.rb | @@ -1,24 +1,50 @@
+require "forwardable"
+
module MachO
# Represents a "Fat" file, which contains a header, a listing of available
# architectures, and one or more Mach-O binaries.
# @see https://en.wikipedia.org/wiki/Mach-O#Multi-architecture_binaries
- # @see MachO::MachOFile
+ # @see MachOFile
class F... | true |
Other | Homebrew | brew | 024264c381a5dc02dea8680dea29e83bdce9d13b.json | vendor: Update ruby-macho to 1.1.0. | Library/Homebrew/vendor/macho/macho/headers.rb | @@ -1,587 +1,665 @@
module MachO
- # big-endian fat magic
- # @api private
- FAT_MAGIC = 0xcafebabe
-
- # little-endian fat magic
- # this is defined, but should never appear in ruby-macho code because
- # fat headers are always big-endian and therefore always unpacked as such.
- # @api private
- FAT_CIGAM = 0... | true |
Other | Homebrew | brew | 024264c381a5dc02dea8680dea29e83bdce9d13b.json | vendor: Update ruby-macho to 1.1.0. | Library/Homebrew/vendor/macho/macho/load_commands.rb | @@ -1,1314 +1,1350 @@
module MachO
- # load commands added after OS X 10.1 need to be bitwise ORed with
- # LC_REQ_DYLD to be recognized by the dynamic linder (dyld)
- # @api private
- LC_REQ_DYLD = 0x80000000
-
- # association of load commands to symbol representations
- # @api private
- LOAD_COMMANDS = {
- ... | true |
Other | Homebrew | brew | 024264c381a5dc02dea8680dea29e83bdce9d13b.json | vendor: Update ruby-macho to 1.1.0. | Library/Homebrew/vendor/macho/macho/macho_file.rb | @@ -1,27 +1,33 @@
+require "forwardable"
+
module MachO
# Represents a Mach-O file, which contains a header and load commands
# as well as binary executable instructions. Mach-O binaries are
# architecture specific.
# @see https://en.wikipedia.org/wiki/Mach-O
- # @see MachO::FatFile
+ # @see FatFile
c... | true |
Other | Homebrew | brew | 024264c381a5dc02dea8680dea29e83bdce9d13b.json | vendor: Update ruby-macho to 1.1.0. | Library/Homebrew/vendor/macho/macho/open.rb | @@ -1,25 +0,0 @@
-module MachO
- # Opens the given filename as a MachOFile or FatFile, depending on its magic.
- # @param filename [String] the file being opened
- # @return [MachO::MachOFile] if the file is a Mach-O
- # @return [MachO::FatFile] if the file is a Fat file
- # @raise [ArgumentError] if the given fil... | true |
Other | Homebrew | brew | 024264c381a5dc02dea8680dea29e83bdce9d13b.json | vendor: Update ruby-macho to 1.1.0. | Library/Homebrew/vendor/macho/macho/sections.rb | @@ -1,170 +1,176 @@
module MachO
- # type mask
- SECTION_TYPE = 0x000000ff
-
- # attributes mask
- SECTION_ATTRIBUTES = 0xffffff00
-
- # user settable attributes mask
- SECTION_ATTRIBUTES_USR = 0xff000000
-
- # system settable attributes mask
- SECTION_ATTRIBUTES_SYS = 0x00ffff00
-
- # association of section ... | true |
Other | Homebrew | brew | 024264c381a5dc02dea8680dea29e83bdce9d13b.json | vendor: Update ruby-macho to 1.1.0. | Library/Homebrew/vendor/macho/macho/structure.rb | @@ -19,7 +19,7 @@ def self.bytesize
# @param endianness [Symbol] either `:big` or `:little`
# @param bin [String] the string to be unpacked into the new structure
- # @return [MachO::MachOStructure] a new MachOStructure initialized with `bin`
+ # @return [MachO::MachOStructure] the resulting structure... | true |
Other | Homebrew | brew | 024264c381a5dc02dea8680dea29e83bdce9d13b.json | vendor: Update ruby-macho to 1.1.0. | Library/Homebrew/vendor/macho/macho/tools.rb | @@ -1,5 +1,6 @@
module MachO
- # A collection of convenient methods for common operations on Mach-O and Fat binaries.
+ # A collection of convenient methods for common operations on Mach-O and Fat
+ # binaries.
module Tools
# @param filename [String] the Mach-O or Fat binary being read
# @return [Array... | true |
Other | Homebrew | brew | 024264c381a5dc02dea8680dea29e83bdce9d13b.json | vendor: Update ruby-macho to 1.1.0. | Library/Homebrew/vendor/macho/macho/utils.rb | @@ -5,23 +5,25 @@ module Utils
# @param value [Fixnum] the number being rounded
# @param round [Fixnum] the number being rounded with
# @return [Fixnum] the rounded value
- # @see https://www.opensource.apple.com/source/cctools/cctools-870/libstuff/rnd.c
+ # @see http://www.opensource.apple.com/sou... | true |
Other | Homebrew | brew | 59fab56afdf6129c37ff30eb842bf7bff41348e0.json | docs: update sample formula
Also works around bug in Jekyll where a URL with a "#" will cause links
in the same paragraph to not have their extensions replaced by using
"#" instead. | docs/Formula-Cookbook.md | @@ -59,10 +59,18 @@ class Foo < Formula
# depends_on "cmake" => :build
def install
- system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
+ # ENV.deparallelize
+ system "./configure", "--disable-debug",
+ "--disable-dependency-tracking"... | false |
Other | Homebrew | brew | 689e35a1e7eed6e499f90866a768be1260558bbc.json | README: add some more shields.
For the current release, Travis CI and Coveralls status. | README.md | @@ -1,4 +1,6 @@
# Homebrew
+[](https://github.com/Homebrew/brew/releases)
+
Features, usage and installation instructions are [summarised on the homepage](https://brew.sh). Terminology (e.g. the difference between a Cellar, Tap, Cask and so for... | false |
Other | Homebrew | brew | 4cae6a724e6d684eb157dd6d7328755694f228b2.json | link: tell users of `brew link --force` about opt.
If people are force-linking keg-only things they should probably be told
that they can add the opt prefix to their PATH instead. | Library/Homebrew/cmd/link.rb | @@ -44,6 +44,7 @@ def link
elsif keg_only && !ARGV.force?
opoo "#{keg.name} is keg-only and must be linked with --force"
puts "Note that doing so can interfere with building software."
+ puts_keg_only_path_message(keg)
next
elsif mode.dry_run && mode.overwrite
pu... | false |
Other | Homebrew | brew | 5fc4cabdeb37d47b59bddfa41f28dc3ff92d17ad.json | tap-new: fix symlink creation.
Ensure the full HOMEBREW_TAP_DIR path is created before deleting and
creating the symlink for it. This ensures that non-`homebrew` taps will
have the necessary username/organisation folder created.
Fixes #2378. | Library/Homebrew/dev-cmd/tap-new.rb | @@ -60,6 +60,7 @@ def tap_new
- git -C "$HOMEBREW_REPOSITORY" reset --hard origin/master
- brew update || brew update
- HOMEBREW_TAP_DIR="$(brew --repo "$TRAVIS_REPO_SLUG")"
+ - mkdir -p "$HOMEBREW_TAP_DIR"
- rm -rf "$HOMEBREW_TAP_DIR"
- ln -s "$PWD" "$HOMEBREW_TAP_DI... | false |
Other | Homebrew | brew | b41a88eac4a1fe75af18d115d40c8821bcd2a160.json | update-report: check migration symlinks.
Check if `HOMEBREW_CELLAR/old_name` is a symlink. If so, it's already
been migrated so can be skipped. | Library/Homebrew/cmd/update-report.rb | @@ -503,7 +503,9 @@ def migrate_tap_migration
def migrate_formula_rename
Formula.installed.map(&:oldname).compact.each do |old_name|
- next unless (dir = HOMEBREW_CELLAR/old_name).directory? && !dir.subdirs.empty?
+ old_name_dir = HOMEBREW_CELLAR/old_name
+ next if old_name_dir.symlink?
+ ... | false |
Other | Homebrew | brew | f59eb358c29c5f40601a99e3f1bf7e8e891f10ba.json | missing_formula: subsume historic logic.
These methods belong together so combine them in a single class to
provide a simpler API. | Library/Homebrew/cmd/info.rb | @@ -23,7 +23,6 @@
require "keg"
require "tab"
require "json"
-require "historic"
module Homebrew
module_function
@@ -57,22 +56,10 @@ def print_info
end
rescue FormulaUnavailableError => e
# No formula with this name, try a missing formula lookup
- if (missing_formula = H... | true |
Other | Homebrew | brew | f59eb358c29c5f40601a99e3f1bf7e8e891f10ba.json | missing_formula: subsume historic logic.
These methods belong together so combine them in a single class to
provide a simpler API. | Library/Homebrew/cmd/install.rb | @@ -62,7 +62,6 @@
require "tap"
require "hardware"
require "development_tools"
-require "historic"
module Homebrew
module_function
@@ -207,24 +206,13 @@ def install
# formula was found, but there's a problem with its implementation).
ofail e.message
rescue FormulaUnavailableError => e
- ... | true |
Other | Homebrew | brew | f59eb358c29c5f40601a99e3f1bf7e8e891f10ba.json | missing_formula: subsume historic logic.
These methods belong together so combine them in a single class to
provide a simpler API. | Library/Homebrew/cmd/search.rb | @@ -67,12 +67,12 @@ def search
if $stdout.tty?
count = local_results.length + tap_results.length
- if msg = Homebrew::MissingFormula.missing_formula(query)
+ if reason = Homebrew::MissingFormula.reason(query)
if count > 0
puts
puts "If you meant #{que... | true |
Other | Homebrew | brew | f59eb358c29c5f40601a99e3f1bf7e8e891f10ba.json | missing_formula: subsume historic logic.
These methods belong together so combine them in a single class to
provide a simpler API. | Library/Homebrew/exceptions.rb | @@ -94,19 +94,6 @@ def to_s
end
end
-class FormulaExistsError < RuntimeError
- attr_reader :name, :path
-
- def initialize(name, path)
- @name = name
- @path = path
- end
-
- def to_s
- "Formula #{name} exists in #{path}"
- end
-end
-
class FormulaClassUnavailableError < FormulaUnavailableError
... | true |
Other | Homebrew | brew | f59eb358c29c5f40601a99e3f1bf7e8e891f10ba.json | missing_formula: subsume historic logic.
These methods belong together so combine them in a single class to
provide a simpler API. | Library/Homebrew/historic.rb | @@ -1,57 +0,0 @@
-require "formulary"
-require "tap"
-
-module Homebrew
- module_function
-
- # name should not be qualified, since migration of qualified names is already
- # handled in Formulary::TapLoader.formula_name_path.
- def search_for_migrated_formula(name, options = {})
- print_messages = options.fetch... | true |
Other | Homebrew | brew | f59eb358c29c5f40601a99e3f1bf7e8e891f10ba.json | missing_formula: subsume historic logic.
These methods belong together so combine them in a single class to
provide a simpler API. | Library/Homebrew/missing_formula.rb | @@ -6,7 +6,7 @@ module Homebrew
module MissingFormula
class << self
def reason(name)
- blacklisted_reason(name)
+ blacklisted_reason(name) || tap_migration_reason(name) || deleted_reason(name)
end
def blacklisted_reason(name)
@@ -100,6 +100,59 @@ def blacklisted_reason(name)... | true |
Other | Homebrew | brew | f59eb358c29c5f40601a99e3f1bf7e8e891f10ba.json | missing_formula: subsume historic logic.
These methods belong together so combine them in a single class to
provide a simpler API. | Library/Homebrew/test/historic_test.rb | @@ -1,46 +0,0 @@
-require "testing_env"
-require "historic"
-
-class HistoricTest < Homebrew::TestCase
- def setup
- super
-
- @path = Tap::TAP_DIRECTORY/"homebrew/homebrew-foo"
- @path.mkpath
- @tap = Tap.new("Homebrew", "foo")
-
- (@path/"tap_migrations.json").write <<-EOS.undent
- { "migrated-fo... | true |
Other | Homebrew | brew | f59eb358c29c5f40601a99e3f1bf7e8e891f10ba.json | missing_formula: subsume historic logic.
These methods belong together so combine them in a single class to
provide a simpler API. | Library/Homebrew/test/missing_formula_spec.rb | @@ -1,13 +1,13 @@
require "missing_formula"
describe Homebrew::MissingFormula do
- context ".reason" do
+ context "::reason" do
subject { described_class.reason("gem") }
it { is_expected.to_not be_nil }
end
- context ".blacklisted_reason" do
+ context "::blacklisted_reason" do
matcher(:be_... | true |
Other | Homebrew | brew | 623c95b3f8660d5c77936483ec9b9a4db16aff00.json | cmd/log: improve output messaging.
This wasn’t adapted to the new, multiple repository world. | Library/Homebrew/cmd/log.rb | @@ -9,20 +9,32 @@ module Homebrew
def log
if ARGV.named.empty?
- cd HOMEBREW_REPOSITORY
- git_log
+ git_log HOMEBREW_REPOSITORY
else
path = Formulary.path(ARGV.named.first)
- cd path.dirname # supports taps
- git_log path
+ tap = Tap.from_path(path)
+ git_log pat... | true |
Other | Homebrew | brew | 623c95b3f8660d5c77936483ec9b9a4db16aff00.json | cmd/log: improve output messaging.
This wasn’t adapted to the new, multiple repository world. | Library/Homebrew/test/cmd/log_spec.rb | @@ -33,7 +33,7 @@
expect { brew "log", "#{shallow_tap}/testball" }
.to output(/This is a test commit for Testball/).to_stdout
- .and output(/Warning: The git repository is a shallow clone/).to_stderr
+ .and output(%r{Warning: homebrew/shallow is a shallow clone}).to_stderr
.and be_a_succe... | true |
Other | Homebrew | brew | ac10b2ab50e987858b9fa5514785b12b7600787f.json | Tap: add from_path helper method.
This makes it easier to turn an arbitrary path into a tap path. | Library/Homebrew/tap.rb | @@ -41,6 +41,15 @@ def self.fetch(*args)
CACHE.fetch(cache_key) { |key| CACHE[key] = Tap.new(user, repo) }
end
+ def self.from_path(path)
+ path.to_s =~ HOMEBREW_TAP_PATH_REGEX
+ raise "Invalid tap path '#{path}'" unless $1
+ fetch($1, $2)
+ rescue
+ # No need to error as a nil tap is sufficient... | false |
Other | Homebrew | brew | d11e417105c04a1c21edfb4481bc26e21f1c94f9.json | Hide output from brew cask uninstall test
This test showed extraneous info in the test output | Library/Homebrew/test/cask/cli/uninstall_spec.rb | @@ -30,7 +30,9 @@
it "tries anyway on a non-present Cask when --force is given" do
expect {
- Hbc::CLI::Uninstall.run("local-caffeine", "--force")
+ shutup do
+ Hbc::CLI::Uninstall.run("local-caffeine", "--force")
+ end
}.not_to raise_error
end
| false |
Other | Homebrew | brew | 3703ef1885ba4afce1ed4ae531dcb7ddc573b3c2.json | Show messages when (un)installing Casks
Addresses an issue where it can be unclear at times exactly which part
of the (un|re)installation processes is reporting an error. See
https://github.com/caskroom/homebrew-cask/issues/30968 | Library/Homebrew/cask/lib/hbc/installer.rb | @@ -85,6 +85,8 @@ def install
print_caveats
fetch
uninstall_if_neccessary
+
+ oh1 "Installing Cask #{@cask}"
stage
install_artifacts
enable_accessibility_access
@@ -322,7 +324,7 @@ def save_caskfile
end
def uninstall
- odebug "Hbc::Installer#uninstall"
+ ... | true |
Other | Homebrew | brew | 3703ef1885ba4afce1ed4ae531dcb7ddc573b3c2.json | Show messages when (un)installing Casks
Addresses an issue where it can be unclear at times exactly which part
of the (un|re)installation processes is reporting an error. See
https://github.com/caskroom/homebrew-cask/issues/30968 | Library/Homebrew/test/cask/cli/install_spec.rb | @@ -1,4 +1,18 @@
describe Hbc::CLI::Install, :cask do
+ it "displays the installation progress" do
+ output = Regexp.new <<-EOS.undent
+ ==> Downloading file:.*/caffeine.zip
+ ==> Verifying checksum for Cask local-caffeine
+ ==> Installing Cask local-caffeine
+ ==> Moving App 'Caffeine.app' to ... | true |
Other | Homebrew | brew | 3703ef1885ba4afce1ed4ae531dcb7ddc573b3c2.json | Show messages when (un)installing Casks
Addresses an issue where it can be unclear at times exactly which part
of the (un|re)installation processes is reporting an error. See
https://github.com/caskroom/homebrew-cask/issues/30968 | Library/Homebrew/test/cask/cli/reinstall_spec.rb | @@ -1,4 +1,27 @@
describe Hbc::CLI::Reinstall, :cask do
+ it "displays the reinstallation progress" do
+ caffeine = Hbc::CaskLoader.load_from_file(TEST_FIXTURE_DIR/"cask/Casks/local-caffeine.rb")
+
+ shutup do
+ Hbc::Installer.new(caffeine).install
+ end
+
+ output = Regexp.new <<-EOS.undent
+ =... | true |
Other | Homebrew | brew | 3703ef1885ba4afce1ed4ae531dcb7ddc573b3c2.json | Show messages when (un)installing Casks
Addresses an issue where it can be unclear at times exactly which part
of the (un|re)installation processes is reporting an error. See
https://github.com/caskroom/homebrew-cask/issues/30968 | Library/Homebrew/test/cask/cli/uninstall_spec.rb | @@ -1,4 +1,21 @@
describe Hbc::CLI::Uninstall, :cask do
+ it "displays the uninstallation progress" do
+ caffeine = Hbc::CaskLoader.load_from_file(TEST_FIXTURE_DIR/"cask/Casks/local-caffeine.rb")
+
+ shutup do
+ Hbc::Installer.new(caffeine).install
+ end
+
+ output = Regexp.new <<-EOS.undent
+ =... | true |
Other | Homebrew | brew | 1206e9e3f296b2876238da0ce1e5248d94df9002.json | Remove double space. | docs/How-to-Create-and-Maintain-a-Tap.md | @@ -42,7 +42,7 @@ avoid conflicts.
## Maintaining a tap
A tap is just a git repository so you don’t have to do anything specific when
-making modifications, apart from committing and pushing your changes.
+making modifications, apart from committing and pushing your changes.
### Updating
Once your tap is insta... | false |
Other | Homebrew | brew | ed10135da4fbabca2798afe949b6f5af9544ec9f.json | Replace `Hbc.load` with `CaskLoader.load`. | Library/Homebrew/cask/lib/hbc.rb | @@ -42,8 +42,4 @@ def self.init
Cache.ensure_cache_exists
Caskroom.ensure_caskroom_exists
end
-
- def self.load(ref)
- CaskLoader.load(ref)
- end
end | true |
Other | Homebrew | brew | ed10135da4fbabca2798afe949b6f5af9544ec9f.json | Replace `Hbc.load` with `CaskLoader.load`. | Library/Homebrew/cask/lib/hbc/cask_dependencies.rb | @@ -15,7 +15,7 @@ def graph_dependencies
walk = lambda do |acc, deps|
deps.each do |dep|
next if acc.key?(dep)
- succs = deps_in.call Hbc.load(dep)
+ succs = deps_in.call CaskLoader.load(dep)
acc[dep] = succs
walk.call(acc, succs)
end | true |
Other | Homebrew | brew | ed10135da4fbabca2798afe949b6f5af9544ec9f.json | Replace `Hbc.load` with `CaskLoader.load`. | Library/Homebrew/cask/lib/hbc/cli/audit.rb | @@ -40,7 +40,7 @@ def casks_to_audit
if cask_tokens.empty?
Hbc.all
else
- cask_tokens.map { |token| Hbc.load(token) }
+ cask_tokens.map { |token| CaskLoader.load(token) }
end
end
| true |
Other | Homebrew | brew | ed10135da4fbabca2798afe949b6f5af9544ec9f.json | Replace `Hbc.load` with `CaskLoader.load`. | Library/Homebrew/cask/lib/hbc/cli/fetch.rb | @@ -8,7 +8,7 @@ def self.run(*args)
cask_tokens.each do |cask_token|
ohai "Downloading external files for Cask #{cask_token}"
- cask = Hbc.load(cask_token)
+ cask = CaskLoader.load(cask_token)
downloaded_path = Download.new(cask, force: force).perform
Verify... | true |
Other | Homebrew | brew | ed10135da4fbabca2798afe949b6f5af9544ec9f.json | Replace `Hbc.load` with `CaskLoader.load`. | Library/Homebrew/cask/lib/hbc/cli/home.rb | @@ -8,7 +8,7 @@ def self.run(*cask_tokens)
else
cask_tokens.each do |cask_token|
odebug "Opening homepage for Cask #{cask_token}"
- cask = Hbc.load(cask_token)
+ cask = CaskLoader.load(cask_token)
system "/usr/bin/open", "--", cask.homepage
... | true |
Other | Homebrew | brew | ed10135da4fbabca2798afe949b6f5af9544ec9f.json | Replace `Hbc.load` with `CaskLoader.load`. | Library/Homebrew/cask/lib/hbc/cli/info.rb | @@ -6,7 +6,7 @@ def self.run(*args)
raise CaskUnspecifiedError if cask_tokens.empty?
cask_tokens.each do |cask_token|
odebug "Getting info for Cask #{cask_token}"
- cask = Hbc.load(cask_token)
+ cask = CaskLoader.load(cask_token)
info(cask)
end | true |
Other | Homebrew | brew | ed10135da4fbabca2798afe949b6f5af9544ec9f.json | Replace `Hbc.load` with `CaskLoader.load`. | Library/Homebrew/cask/lib/hbc/cli/install.rb | @@ -18,7 +18,7 @@ def self.install_casks(cask_tokens, force, skip_cask_deps, require_sha)
count = 0
cask_tokens.each do |cask_token|
begin
- cask = Hbc.load(cask_token)
+ cask = CaskLoader.load(cask_token)
Installer.new(cask,
... | true |
Other | Homebrew | brew | ed10135da4fbabca2798afe949b6f5af9544ec9f.json | Replace `Hbc.load` with `CaskLoader.load`. | Library/Homebrew/cask/lib/hbc/cli/internal_appcast_checkpoint.rb | @@ -24,7 +24,7 @@ def self.appcask_checkpoint(cask_tokens, calculate)
count = 0
cask_tokens.each do |cask_token|
- cask = Hbc.load(cask_token)
+ cask = CaskLoader.load(cask_token)
if cask.appcast.nil?
opoo "Cask '#{cask}' is missing an `appcast` stanza." | true |
Other | Homebrew | brew | ed10135da4fbabca2798afe949b6f5af9544ec9f.json | Replace `Hbc.load` with `CaskLoader.load`. | Library/Homebrew/cask/lib/hbc/cli/internal_audit_modified_casks.rb | @@ -84,7 +84,7 @@ def git_filter_cask_files(filter)
def modified_casks
return @modified_casks if defined? @modified_casks
- @modified_casks = modified_cask_files.map { |f| Hbc.load(f) }
+ @modified_casks = modified_cask_files.map { |f| CaskLoader.load(f) }
if @modified_casks.any... | true |
Other | Homebrew | brew | ed10135da4fbabca2798afe949b6f5af9544ec9f.json | Replace `Hbc.load` with `CaskLoader.load`. | Library/Homebrew/cask/lib/hbc/cli/internal_checkurl.rb | @@ -2,7 +2,7 @@ module Hbc
class CLI
class InternalCheckurl < InternalUseBase
def self.run(*args)
- casks_to_check = args.empty? ? Hbc.all : args.map { |arg| Hbc.load(arg) }
+ casks_to_check = args.empty? ? Hbc.all : args.map { |arg| CaskLoader.load(arg) }
casks_to_check.each do |c... | true |
Other | Homebrew | brew | ed10135da4fbabca2798afe949b6f5af9544ec9f.json | Replace `Hbc.load` with `CaskLoader.load`. | Library/Homebrew/cask/lib/hbc/cli/internal_dump.rb | @@ -16,7 +16,7 @@ def self.dump_casks(*cask_tokens)
count = 0
cask_tokens.each do |cask_token|
begin
- cask = Hbc.load(cask_token)
+ cask = CaskLoader.load(cask_token)
count += 1
cask.dumpcask
rescue StandardError => e | true |
Other | Homebrew | brew | ed10135da4fbabca2798afe949b6f5af9544ec9f.json | Replace `Hbc.load` with `CaskLoader.load`. | Library/Homebrew/cask/lib/hbc/cli/internal_stanza.rb | @@ -84,7 +84,7 @@ def self.print_stanzas(stanza, format = nil, table = nil, quiet = nil, *cask_tok
print "#{cask_token}\t" if table
begin
- cask = Hbc.load(cask_token)
+ cask = CaskLoader.load(cask_token)
rescue StandardError
opoo "Cask '#{cask_token... | true |
Other | Homebrew | brew | ed10135da4fbabca2798afe949b6f5af9544ec9f.json | Replace `Hbc.load` with `CaskLoader.load`. | Library/Homebrew/cask/lib/hbc/cli/list.rb | @@ -28,7 +28,7 @@ def self.list(*cask_tokens)
cask_tokens.each do |cask_token|
odebug "Listing files for Cask #{cask_token}"
begin
- cask = Hbc.load(cask_token)
+ cask = CaskLoader.load(cask_token)
if cask.installed?
if @options[:one] | true |
Other | Homebrew | brew | ed10135da4fbabca2798afe949b6f5af9544ec9f.json | Replace `Hbc.load` with `CaskLoader.load`. | Library/Homebrew/cask/lib/hbc/cli/outdated.rb | @@ -9,7 +9,7 @@ def self.run(*args)
casks_to_check = if cask_tokens.empty?
Hbc.installed
else
- cask_tokens.map { |token| Hbc.load(token) }
+ cask_tokens.map { |token| CaskLoader.load(token) }
end
casks_to_check.each do |cask| | true |
Other | Homebrew | brew | ed10135da4fbabca2798afe949b6f5af9544ec9f.json | Replace `Hbc.load` with `CaskLoader.load`. | Library/Homebrew/cask/lib/hbc/cli/reinstall.rb | @@ -5,7 +5,7 @@ def self.install_casks(cask_tokens, force, skip_cask_deps, require_sha)
count = 0
cask_tokens.each do |cask_token|
begin
- cask = Hbc.load(cask_token)
+ cask = CaskLoader.load(cask_token)
installer = Installer.new(cask,
... | true |
Other | Homebrew | brew | ed10135da4fbabca2798afe949b6f5af9544ec9f.json | Replace `Hbc.load` with `CaskLoader.load`. | Library/Homebrew/cask/lib/hbc/cli/uninstall.rb | @@ -8,7 +8,7 @@ def self.run(*args)
cask_tokens.each do |cask_token|
odebug "Uninstalling Cask #{cask_token}"
- cask = Hbc.load(cask_token)
+ cask = CaskLoader.load(cask_token)
raise CaskNotInstalledError, cask unless cask.installed? || force
| true |
Other | Homebrew | brew | ed10135da4fbabca2798afe949b6f5af9544ec9f.json | Replace `Hbc.load` with `CaskLoader.load`. | Library/Homebrew/cask/lib/hbc/cli/zap.rb | @@ -6,7 +6,7 @@ def self.run(*args)
raise CaskUnspecifiedError if cask_tokens.empty?
cask_tokens.each do |cask_token|
odebug "Zapping Cask #{cask_token}"
- cask = Hbc.load(cask_token)
+ cask = CaskLoader.load(cask_token)
Installer.new(cask).zap
end
... | true |
Other | Homebrew | brew | ed10135da4fbabca2798afe949b6f5af9544ec9f.json | Replace `Hbc.load` with `CaskLoader.load`. | Library/Homebrew/cask/lib/hbc/installer.rb | @@ -229,7 +229,7 @@ def cask_dependencies
deps = CaskDependencies.new(@cask)
deps.sorted.each do |dep_token|
puts "#{dep_token} ..."
- dep = Hbc.load(dep_token)
+ dep = CaskLoader.load(dep_token)
if dep.installed?
puts "already installed"
else | true |
Other | Homebrew | brew | ed10135da4fbabca2798afe949b6f5af9544ec9f.json | Replace `Hbc.load` with `CaskLoader.load`. | Library/Homebrew/cask/lib/hbc/scopes.rb | @@ -23,10 +23,10 @@ def all_tokens
end
def installed
- # Hbc.load has some DWIM which is slow. Optimize here
- # by spoon-feeding Hbc.load fully-qualified paths.
+ # CaskLoader.load has some DWIM which is slow. Optimize here
+ # by spoon-feeding CaskLoader.load fully-qualif... | true |
Other | Homebrew | brew | ed10135da4fbabca2798afe949b6f5af9544ec9f.json | Replace `Hbc.load` with `CaskLoader.load`. | Library/Homebrew/test/cask/audit_spec.rb | @@ -79,7 +79,7 @@ def include_msg?(messages, msg)
end
describe "#run!" do
- let(:cask) { Hbc.load(cask_token) }
+ let(:cask) { Hbc::CaskLoader.load(cask_token) }
subject { audit.run! }
describe "required stanzas" do
@@ -320,7 +320,7 @@ def include_msg?(messages, msg)
describe "audit of ... | true |
Other | Homebrew | brew | ed10135da4fbabca2798afe949b6f5af9544ec9f.json | Replace `Hbc.load` with `CaskLoader.load`. | Library/Homebrew/test/cask/cask_spec.rb | @@ -27,20 +27,20 @@
let(:relative_tap_path) { tap_path.relative_path_from(file_dirname) }
it "returns an instance of the Cask for the given token" do
- c = Hbc.load("local-caffeine")
+ c = Hbc::CaskLoader.load("local-caffeine")
expect(c).to be_kind_of(Hbc::Cask)
expect(c.token).to eq... | true |
Other | Homebrew | brew | ed10135da4fbabca2798afe949b6f5af9544ec9f.json | Replace `Hbc.load` with `CaskLoader.load`. | Library/Homebrew/test/cask/cli/audit_spec.rb | @@ -13,7 +13,7 @@
it "audits specified Casks if tokens are given" do
cask_token = "nice-app"
- expect(Hbc).to receive(:load).with(cask_token).and_return(cask)
+ expect(Hbc::CaskLoader).to receive(:load).with(cask_token).and_return(cask)
expect(auditor).to receive(:audit).with(cask, audi... | true |
Other | Homebrew | brew | ed10135da4fbabca2798afe949b6f5af9544ec9f.json | Replace `Hbc.load` with `CaskLoader.load`. | Library/Homebrew/test/cask/cli/list_spec.rb | @@ -1,6 +1,6 @@
describe Hbc::CLI::List, :cask do
it "lists the installed Casks in a pretty fashion" do
- casks = %w[local-caffeine local-transmission].map { |c| Hbc.load(c) }
+ casks = %w[local-caffeine local-transmission].map { |c| Hbc::CaskLoader.load(c) }
casks.each do |c|
InstallHelper.inst... | true |
Other | Homebrew | brew | ed10135da4fbabca2798afe949b6f5af9544ec9f.json | Replace `Hbc.load` with `CaskLoader.load`. | Library/Homebrew/test/cask/cli/zap_spec.rb | @@ -32,7 +32,7 @@
# The above tests that implicitly.
#
# it "dispatches both uninstall and zap stanzas" do
- # with_zap = Hbc.load('with-zap')
+ # with_zap = Hbc::CaskLoader.load('with-zap')
#
# shutup do
# Hbc::Installer.new(with_zap).install | true |
Other | Homebrew | brew | ed10135da4fbabca2798afe949b6f5af9544ec9f.json | Replace `Hbc.load` with `CaskLoader.load`. | Library/Homebrew/test/cask/depends_on_spec.rb | @@ -17,7 +17,7 @@
context do
let(:cask) { Hbc::CaskLoader.load_from_file(TEST_FIXTURE_DIR/"cask/Casks/with-depends-on-cask.rb") }
- let(:dependency) { Hbc.load(cask.depends_on.cask.first) }
+ let(:dependency) { Hbc::CaskLoader.load(cask.depends_on.cask.first) }
it "installs the dependen... | true |
Other | Homebrew | brew | ed10135da4fbabca2798afe949b6f5af9544ec9f.json | Replace `Hbc.load` with `CaskLoader.load`. | Library/Homebrew/test/cask/download_strategy_spec.rb | @@ -291,7 +291,7 @@
# does not work yet, because (for unknown reasons), the tar command
# returns an error code when running under the test suite
# it 'creates a tarball matching the expected checksum' do
- # cask = Hbc.load('svn-download-check-cask')
+ # cask = Hbc::CaskLoader.load('svn-download-check-c... | true |
Other | Homebrew | brew | ed10135da4fbabca2798afe949b6f5af9544ec9f.json | Replace `Hbc.load` with `CaskLoader.load`. | Library/Homebrew/test/cask/scopes_spec.rb | @@ -1,15 +1,15 @@
describe Hbc::Scopes, :cask do
describe "installed" do
it "returns a list installed Casks by loading Casks for all the dirs that exist in the caskroom" do
- allow(Hbc).to receive(:load) { |token| "loaded-#{token}" }
+ allow(Hbc::CaskLoader).to receive(:load) { |token| "loaded-#{toke... | true |
Other | Homebrew | brew | d1995dad4bf76b447d9c97f1c2db99c6b3854b51.json | Use a `Formulary`-like approach to load Casks. | Library/Homebrew/cask/lib/hbc.rb | @@ -7,7 +7,6 @@
require "hbc/cache"
require "hbc/cask"
require "hbc/cask_loader"
-require "hbc/without_source"
require "hbc/caskroom"
require "hbc/checkable"
require "hbc/cli"
@@ -24,7 +23,6 @@
require "hbc/pkg"
require "hbc/qualified_token"
require "hbc/scopes"
-require "hbc/source"
require "hbc/staged"
req... | true |
Other | Homebrew | brew | d1995dad4bf76b447d9c97f1c2db99c6b3854b51.json | Use a `Formulary`-like approach to load Casks. | Library/Homebrew/cask/lib/hbc/cask_loader.rb | @@ -1,44 +1,167 @@
module Hbc
- class CaskLoader
- def self.load_from_file(path)
- raise CaskError, "File '#{path}' does not exist" unless path.exist?
- raise CaskError, "File '#{path}' is not readable" unless path.readable?
- raise CaskError, "File '#{path}' is not a plain file" unless pat... | true |
Other | Homebrew | brew | d1995dad4bf76b447d9c97f1c2db99c6b3854b51.json | Use a `Formulary`-like approach to load Casks. | Library/Homebrew/cask/lib/hbc/locations.rb | @@ -126,15 +126,14 @@ def path(query)
end
if token_with_tap
- user, repo, token = token_with_tap.split("/")
+ user, repo, token = token_with_tap.split("/", 3)
tap = Tap.fetch(user, repo)
else
token = query_without_extension
tap = Hbc.defaul... | true |
Other | Homebrew | brew | d1995dad4bf76b447d9c97f1c2db99c6b3854b51.json | Use a `Formulary`-like approach to load Casks. | Library/Homebrew/cask/lib/hbc/scopes.rb | @@ -11,15 +11,15 @@ def all
end
def all_tapped_cask_dirs
- Tap.map(&:cask_dir).compact
+ Tap.map(&:cask_dir).select(&:directory?)
end
def all_tokens
- Tap.map do |t|
+ Tap.flat_map do |t|
t.cask_files.map do |p|
"#{t.name}/#{File.basena... | true |
Other | Homebrew | brew | d1995dad4bf76b447d9c97f1c2db99c6b3854b51.json | Use a `Formulary`-like approach to load Casks. | Library/Homebrew/cask/lib/hbc/source.rb | @@ -1,37 +0,0 @@
-require "hbc/source/gone"
-require "hbc/source/path_slash_required"
-require "hbc/source/path_slash_optional"
-require "hbc/source/tapped_qualified"
-require "hbc/source/untapped_qualified"
-require "hbc/source/tapped"
-require "hbc/source/uri"
-
-module Hbc
- module Source
- def self.sources
- ... | true |
Other | Homebrew | brew | d1995dad4bf76b447d9c97f1c2db99c6b3854b51.json | Use a `Formulary`-like approach to load Casks. | Library/Homebrew/cask/lib/hbc/source/gone.rb | @@ -1,23 +0,0 @@
-module Hbc
- module Source
- class Gone
- def self.me?(query)
- WithoutSource.new(query).installed?
- end
-
- attr_reader :query
-
- def initialize(query)
- @query = query
- end
-
- def load
- WithoutSource.new(query)
- end
-
- def to_s
... | true |
Other | Homebrew | brew | d1995dad4bf76b447d9c97f1c2db99c6b3854b51.json | Use a `Formulary`-like approach to load Casks. | Library/Homebrew/cask/lib/hbc/source/path_base.rb | @@ -1,29 +0,0 @@
-require "rubygems"
-require "hbc/cask_loader"
-
-module Hbc
- module Source
- class PathBase
- # derived classes must define method self.me?
-
- def self.path_for_query(query)
- Pathname.new(query).sub(/(\.rb)?$/, ".rb")
- end
-
- attr_reader :path
-
- def initializ... | true |
Other | Homebrew | brew | d1995dad4bf76b447d9c97f1c2db99c6b3854b51.json | Use a `Formulary`-like approach to load Casks. | Library/Homebrew/cask/lib/hbc/source/path_slash_optional.rb | @@ -1,12 +0,0 @@
-require "hbc/source/path_base"
-
-module Hbc
- module Source
- class PathSlashOptional < PathBase
- def self.me?(query)
- path = path_for_query(query)
- path.exist?
- end
- end
- end
-end | true |
Other | Homebrew | brew | d1995dad4bf76b447d9c97f1c2db99c6b3854b51.json | Use a `Formulary`-like approach to load Casks. | Library/Homebrew/cask/lib/hbc/source/path_slash_required.rb | @@ -1,12 +0,0 @@
-require "hbc/source/path_base"
-
-module Hbc
- module Source
- class PathSlashRequired < PathBase
- def self.me?(query)
- path = path_for_query(query)
- path.to_s.include?("/") && path.exist?
- end
- end
- end
-end | true |
Other | Homebrew | brew | d1995dad4bf76b447d9c97f1c2db99c6b3854b51.json | Use a `Formulary`-like approach to load Casks. | Library/Homebrew/cask/lib/hbc/source/tapped.rb | @@ -1,24 +0,0 @@
-module Hbc
- module Source
- class Tapped
- def self.me?(query)
- Hbc.path(query).exist?
- end
-
- attr_reader :token
-
- def initialize(token)
- @token = token
- end
-
- def load
- PathSlashOptional.new(Hbc.path(token)).load
- end
-
- d... | true |
Other | Homebrew | brew | d1995dad4bf76b447d9c97f1c2db99c6b3854b51.json | Use a `Formulary`-like approach to load Casks. | Library/Homebrew/cask/lib/hbc/source/tapped_qualified.rb | @@ -1,21 +0,0 @@
-require "hbc/source/tapped"
-
-module Hbc
- module Source
- class TappedQualified < Tapped
- def self.me?(query)
- return if (tap = tap_for_query(query)).nil?
-
- tap.installed? && Hbc.path(query).exist?
- end
-
- def self.tap_for_query(query)
- qualified_token ... | true |
Other | Homebrew | brew | d1995dad4bf76b447d9c97f1c2db99c6b3854b51.json | Use a `Formulary`-like approach to load Casks. | Library/Homebrew/cask/lib/hbc/source/untapped_qualified.rb | @@ -1,14 +0,0 @@
-require "hbc/source/tapped_qualified"
-
-module Hbc
- module Source
- class UntappedQualified < TappedQualified
- def self.me?(query)
- return if (tap = tap_for_query(query)).nil?
-
- tap.install
- tap.installed? && Hbc.path(query).exist?
- end
- end
- end
-end | true |
Other | Homebrew | brew | d1995dad4bf76b447d9c97f1c2db99c6b3854b51.json | Use a `Formulary`-like approach to load Casks. | Library/Homebrew/cask/lib/hbc/source/uri.rb | @@ -1,32 +0,0 @@
-module Hbc
- module Source
- class URI
- def self.me?(query)
- !(query.to_s =~ ::URI.regexp).nil?
- end
-
- attr_reader :uri
-
- def initialize(uri)
- @uri = uri
- end
-
- def load
- Hbc.cache.mkpath
- path = Hbc.cache.join(File.basename(ur... | true |
Other | Homebrew | brew | d1995dad4bf76b447d9c97f1c2db99c6b3854b51.json | Use a `Formulary`-like approach to load Casks. | Library/Homebrew/cask/lib/hbc/without_source.rb | @@ -1,17 +0,0 @@
-module Hbc
- class WithoutSource < Cask
- # Override from `Hbc::DSL` because we don't have a cask source file to work
- # with, so we don't know the cask's `version`.
- def staged_path
- (caskroom_path.children - [metadata_master_container_path]).first
- end
-
- def to_s
- "#... | true |
Other | Homebrew | brew | d1995dad4bf76b447d9c97f1c2db99c6b3854b51.json | Use a `Formulary`-like approach to load Casks. | Library/Homebrew/cmd/irb.rb | @@ -19,6 +19,11 @@ def f(*args)
end
end
+def cask
+ $LOAD_PATH.unshift("#{HOMEBREW_LIBRARY_PATH}/cask/lib")
+ require "hbc"
+end
+
module Homebrew
module_function
| true |
Other | Homebrew | brew | d1995dad4bf76b447d9c97f1c2db99c6b3854b51.json | Use a `Formulary`-like approach to load Casks. | Library/Homebrew/compat/hbc/cask_loader.rb | @@ -12,7 +12,11 @@ def cask(header_token, &block)
end
module Hbc
- class CaskLoader
- prepend CaskLoaderCompatibilityLayer
+ module CaskLoader
+ class FromContentLoader; end
+
+ class FromPathLoader < FromContentLoader
+ prepend CaskLoaderCompatibilityLayer
+ end
end
end | true |
Other | Homebrew | brew | d1995dad4bf76b447d9c97f1c2db99c6b3854b51.json | Use a `Formulary`-like approach to load Casks. | Library/Homebrew/tap.rb | @@ -285,7 +285,7 @@ def custom_remote?
# path to the directory of all {Formula} files for this {Tap}.
def formula_dir
- @formula_dir ||= potential_formula_dirs.detect(&:directory?)
+ @formula_dir ||= potential_formula_dirs.detect(&:directory?) || path/"Formula"
end
def potential_formula_dirs
@@ -2... | true |
Other | Homebrew | brew | d1995dad4bf76b447d9c97f1c2db99c6b3854b51.json | Use a `Formulary`-like approach to load Casks. | Library/Homebrew/test/cask/cli/list_spec.rb | @@ -40,23 +40,6 @@
end
end
- describe "when Casks have been renamed" do
- let(:caskroom_path) { Hbc.caskroom.join("ive-been-renamed") }
- let(:staged_path) { caskroom_path.join("latest") }
-
- before do
- staged_path.mkpath
- end
-
- it "lists installed Casks without backing ruby files (d... | true |
Other | Homebrew | brew | 2c8544832eb75d2ce7a76ac178d1018c166d653a.json | Add test for command help strings. | Library/Homebrew/cask/lib/hbc/cli/base.rb | @@ -14,7 +14,7 @@ def self.cask_tokens_from(args)
end
def self.help
- "No help available for the #{command_name} command"
+ nil
end
def self.needs_init? | true |
Other | Homebrew | brew | 2c8544832eb75d2ce7a76ac178d1018c166d653a.json | Add test for command help strings. | Library/Homebrew/cask/lib/hbc/cli/internal_audit_modified_casks.rb | @@ -23,6 +23,10 @@ def self.posargs(args)
args.reject { |a| a.empty? || a.chars.first == "-" }
end
+ def self.help
+ "audit all modified Casks in a given commit range"
+ end
+
def self.usage
<<-EOS.undent
Usage: brew cask _audit_modified_casks [options...] <... | true |
Other | Homebrew | brew | 2c8544832eb75d2ce7a76ac178d1018c166d653a.json | Add test for command help strings. | Library/Homebrew/test/cask/cli_spec.rb | @@ -63,4 +63,10 @@
described_class.process("noop")
end
end
+
+ it "provides a help message for all commands" do
+ described_class.command_classes.each do |command_class|
+ expect(command_class.help).to match(/\w+/), command_class.name
+ end
+ end
end | true |
Other | Homebrew | brew | ca303f6195bbe0a8cc47e87a6fa530a35d3b6b5e.json | gpg2_requirement: set default_formula to gnupg (2.1.x) | Library/Homebrew/requirements/gpg2_requirement.rb | @@ -3,7 +3,7 @@
class GPG2Requirement < Requirement
fatal true
- default_formula "gnupg2"
+ default_formula "gnupg"
# MacGPG2/GPGTools installs GnuPG 2.0.x as a vanilla `gpg` symlink
# pointing to `gpg2`, as do we. Ensure we're actually using a 2.0 `gpg`. | false |
Other | Homebrew | brew | 7058c089a6c38681d1d84cfec9f40f499a3cf885.json | gpg: add the 2.1.x series as a recognized GnuPG version | Library/Homebrew/gpg.rb | @@ -5,7 +5,9 @@ def self.find_gpg(executable)
which_all(executable).detect do |gpg|
gpg_short_version = Utils.popen_read(gpg, "--version")[/\d\.\d/, 0]
next unless gpg_short_version
- Version.create(gpg_short_version.to_s) == Version.create("2.0")
+ gpg_version = Version.create(gpg_short_ve... | false |
Other | Homebrew | brew | e1670a9210d461184708217285975a0023afc20b.json | Remove `sort` from `each_artifact`. | Library/Homebrew/cask/lib/hbc/artifact/relocated.rb | @@ -43,8 +43,7 @@ def add_altname_metadata(file, altname)
end
def each_artifact
- # the sort is for predictability between Ruby versions
- @cask.artifacts[self.class.artifact_dsl_key].sort.each do |artifact|
+ @cask.artifacts[self.class.artifact_dsl_key].each do |artifact|
... | false |
Other | Homebrew | brew | cc8f029f222a618eb30b585ccb22efcce1e5cf91.json | secure urls + remove -k from in-doc curl command | Library/Homebrew/cask/lib/hbc/cli/home.rb | @@ -4,7 +4,7 @@ class Home < Base
def self.run(*cask_tokens)
if cask_tokens.empty?
odebug "Opening project homepage"
- system "/usr/bin/open", "--", "http://caskroom.github.io/"
+ system "/usr/bin/open", "--", "https://caskroom.github.io/"
else
cask_token... | true |
Other | Homebrew | brew | cc8f029f222a618eb30b585ccb22efcce1e5cf91.json | secure urls + remove -k from in-doc curl command | Library/Homebrew/cask/lib/hbc/url.rb | @@ -2,7 +2,7 @@
module Hbc
class URL
- FAKE_USER_AGENT = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10) http://caskroom.github.io".freeze
+ FAKE_USER_AGENT = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10) https://caskroom.github.io".freeze
attr_reader :using, :revision, :trust_cert, :uri, :cookies, :refere... | true |
Other | Homebrew | brew | cc8f029f222a618eb30b585ccb22efcce1e5cf91.json | secure urls + remove -k from in-doc curl command | Library/Homebrew/dev-cmd/aspell-dictionaries.rb | @@ -10,7 +10,7 @@ module Homebrew
module_function
def aspell_dictionaries
- dict_url = "http://ftpmirror.gnu.org/aspell/dict"
+ dict_url = "https://ftpmirror.gnu.org/aspell/dict"
dict_mirror = "https://ftp.gnu.org/gnu/aspell/dict"
languages = {}
| true |
Other | Homebrew | brew | cc8f029f222a618eb30b585ccb22efcce1e5cf91.json | secure urls + remove -k from in-doc curl command | Library/Homebrew/dev-cmd/pull.rb | @@ -13,7 +13,7 @@
#:
#: ~ The URL of a commit on GitHub
#:
-#: ~ A "http://bot.brew.sh/job/..." string specifying a testing job ID
+#: ~ A "https://bot.brew.sh/job/..." string specifying a testing job ID
#:
#: If `--bottle` is passed, handle bottles, pulling the bottle-update
#: commit and pu... | true |
Other | Homebrew | brew | cc8f029f222a618eb30b585ccb22efcce1e5cf91.json | secure urls + remove -k from in-doc curl command | Library/Homebrew/diagnostic.rb | @@ -647,7 +647,7 @@ def check_dyld_vars
Setting DYLD_INSERT_LIBRARIES can cause Go builds to fail.
Having this set is common if you use this software:
- #{Formatter.url("http://asepsis.binaryage.com/")}
+ #{Formatter.url("https://asepsis.binaryage.com/")}
... | true |
Other | Homebrew | brew | cc8f029f222a618eb30b585ccb22efcce1e5cf91.json | secure urls + remove -k from in-doc curl command | Library/Homebrew/extend/os/mac/hardware/cpu.rb | @@ -102,7 +102,7 @@ def universal_archs
# Amazingly, this order (64, then 32) matters. It shouldn't, but it
# does. GCC (some versions? some systems?) can blow up if the other
# order is used.
- # http://superuser.com/questions/740563/gcc-4-8-on-macos-fails-depending-on-arch-or... | true |
Other | Homebrew | brew | cc8f029f222a618eb30b585ccb22efcce1e5cf91.json | secure urls + remove -k from in-doc curl command | Library/Homebrew/keg_relocate.rb | @@ -119,7 +119,7 @@ def text_files
# file has known issues with reading files on other locales. Has
# been fixed upstream for some time, but a sufficiently new enough
# file with that fix is only available in macOS Sierra.
- # http://bugs.gw.com/view.php?id=292
+ # https://bugs.gw.com/view.php?id=2... | true |
Other | Homebrew | brew | cc8f029f222a618eb30b585ccb22efcce1e5cf91.json | secure urls + remove -k from in-doc curl command | Library/Homebrew/manpages/brew-cask.1.md | @@ -64,7 +64,7 @@ names, and other aspects of this manual are still subject to change.
* `home` or `homepage` [ <token> ... ]:
Display the homepage associated with a given Cask in a browser.
- With no arguments, display the project page <http://caskroom.github.io>.
+ With no arguments, display the proje... | true |
Other | Homebrew | brew | cc8f029f222a618eb30b585ccb22efcce1e5cf91.json | secure urls + remove -k from in-doc curl command | Library/Homebrew/test/cask/cli/home_spec.rb | @@ -40,7 +40,7 @@ def self.system_commands
it "opens the project page when no Cask is specified" do
Hbc::CLI::Home.run
expect(Hbc::CLI::Home.system_commands).to eq [
- ["/usr/bin/open", "--", "http://caskroom.github.io/"],
+ ["/usr/bin/open", "--", "https://caskroom.github.io/"],
]
end
e... | true |
Other | Homebrew | brew | cc8f029f222a618eb30b585ccb22efcce1e5cf91.json | secure urls + remove -k from in-doc curl command | Library/Homebrew/test/cask/download_strategy_spec.rb | @@ -60,7 +60,7 @@
downloader.fetch
end
- expect(curl_args.each_cons(2)).to include(["-A", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10) http://caskroom.github.io"])
+ expect(curl_args.each_cons(2)).to include(["-A", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10) https://caskroom.github.io... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.