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
7b0f27ca3929faeff3deb0fcbbecb314f805884e.json
style: Fix style errors
Library/Homebrew/dev-cmd/test.rb
@@ -1,4 +1,4 @@ -#: * test [--devel|--HEAD] [--debug] [--keep-tmp] [formula]: +#: * `test` [`--devel`|`--HEAD`] [`--debug`] [`--keep-tmp`] <formula>: #: Most formulae provide a test method. `brew test` <formula> runs this #: test method. There is no standard output or return code, but it should #: general...
true
Other
Homebrew
brew
7b0f27ca3929faeff3deb0fcbbecb314f805884e.json
style: Fix style errors
Library/Homebrew/help.rb
@@ -40,7 +40,7 @@ module Help def help(cmd = nil, flags = {}) # Let OptionParser generate help text for commands which have a parser defined begin - Homebrew.send("#{cmd.gsub('-','_')}_args".to_sym) + Homebrew.send("#{cmd.tr("-", "_")}_args".to_sym) return rescue NoMetho...
true
Other
Homebrew
brew
7b0f27ca3929faeff3deb0fcbbecb314f805884e.json
style: Fix style errors
docs/Manpage.md
@@ -832,13 +832,14 @@ Return a failing status code if changes are detected in the manpage outputs. Thi It is now done automatically by `brew update`. ###`mirror` `formulae`: - + Reuploads the stable URL for a formula to Bintray to use it as a mirror. - * `prof` [ruby options]: + * `prof` [`ruby options`]: ...
true
Other
Homebrew
brew
7b0f27ca3929faeff3deb0fcbbecb314f805884e.json
style: Fix style errors
manpages/brew.1
@@ -863,8 +863,8 @@ It is now done automatically by \fBbrew update\fR\. Reuploads the stable URL for a formula to Bintray to use it as a mirror\. . .TP -\fBprof\fR [ruby options] -Run Homebrew with the Ruby profiler\. For example: +\fBprof\fR [\fIruby options\fR] +Run Homebrew with the Ruby profiler\. For example: b...
true
Other
Homebrew
brew
446b1cb9e3c5d93c731cfc16013f1aa8cc24451a.json
man: Seperate global options into a section
Library/Homebrew/cli_parser.rb
@@ -11,6 +11,15 @@ def self.parse(args = ARGV, &block) new(&block).parse(args) end + def self.global_options + { + quiet: [["-q", "--quiet"], :quiet, "Suppress any warnings."], + verbose: [["-v", "--verbose"], :verbose, "Make some output more verbose."], + debug:...
true
Other
Homebrew
brew
446b1cb9e3c5d93c731cfc16013f1aa8cc24451a.json
man: Seperate global options into a section
Library/Homebrew/dev-cmd/audit.rb
@@ -55,7 +55,7 @@ module Homebrew def audit_args Homebrew::CLI::Parser.new do usage_banner <<~EOS - ### audit [options] [formulae]: + `audit` [`options`] [<formulae>]: Check <formulae> for Homebrew coding style violations. This should be run before submitting a new formu...
true
Other
Homebrew
brew
446b1cb9e3c5d93c731cfc16013f1aa8cc24451a.json
man: Seperate global options into a section
Library/Homebrew/dev-cmd/bottle.rb
@@ -72,7 +72,7 @@ module Homebrew def bottle_args Homebrew::CLI::Parser.new do usage_banner <<~EOS - ### bottle [options] [formulae]: + `bottle` [<options>] [<formulae>]: Generate a bottle (binary package) from a formula installed with `--build-bottle`.
true
Other
Homebrew
brew
446b1cb9e3c5d93c731cfc16013f1aa8cc24451a.json
man: Seperate global options into a section
Library/Homebrew/dev-cmd/bump-formula-pr.rb
@@ -50,7 +50,7 @@ module Homebrew def bump_formula_pr_args Homebrew::CLI::Parser.new do usage_banner <<~EOS - ### bump-formula-pr [options] [formula]: + `bump-formula-pr` [<options>] <formula>: Creates a pull request to update the formula with a new URL or a new tag.
true
Other
Homebrew
brew
446b1cb9e3c5d93c731cfc16013f1aa8cc24451a.json
man: Seperate global options into a section
Library/Homebrew/dev-cmd/create.rb
@@ -30,7 +30,7 @@ module Homebrew def create_args Homebrew::CLI::Parser.new do usage_banner <<~EOS - ### create URL [options]: + `create` <URL> [<options>]: Generate a formula for the downloadable file at <URL> and open it in the editor. Homebrew will attempt to automati...
true
Other
Homebrew
brew
446b1cb9e3c5d93c731cfc16013f1aa8cc24451a.json
man: Seperate global options into a section
Library/Homebrew/dev-cmd/edit.rb
@@ -13,11 +13,9 @@ module Homebrew def edit_args Homebrew::CLI::Parser.new do usage_banner <<~EOS - ### edit: - Open all of Homebrew for editing. - - ### edit [formula]: - Open <formula> in the editor. + `edit` <formula>: + Open <formula> in the edito...
true
Other
Homebrew
brew
446b1cb9e3c5d93c731cfc16013f1aa8cc24451a.json
man: Seperate global options into a section
Library/Homebrew/dev-cmd/formula.rb
@@ -10,7 +10,7 @@ module Homebrew def formula_args Homebrew::CLI::Parser.new do usage_banner <<~EOS - ### formula [formula]: + `formula` <formula>: Display the path where <formula> is located. EOS
true
Other
Homebrew
brew
446b1cb9e3c5d93c731cfc16013f1aa8cc24451a.json
man: Seperate global options into a section
Library/Homebrew/dev-cmd/irb.rb
@@ -25,7 +25,7 @@ module Homebrew def irb_args Homebrew::CLI::Parser.new do usage_banner <<~EOS - ### irb [options]: + `irb` [<options>]: Enter the interactive Homebrew Ruby shell. EOS
true
Other
Homebrew
brew
446b1cb9e3c5d93c731cfc16013f1aa8cc24451a.json
man: Seperate global options into a section
Library/Homebrew/dev-cmd/linkage.rb
@@ -22,7 +22,7 @@ module Homebrew def linkage_args Homebrew::CLI::Parser.new do usage_banner <<~EOS - ### linkage [options] [formula]: + `linkage` [<options>] <formula>: Checks the library links of an installed formula.
true
Other
Homebrew
brew
446b1cb9e3c5d93c731cfc16013f1aa8cc24451a.json
man: Seperate global options into a section
Library/Homebrew/dev-cmd/man.rb
@@ -36,7 +36,7 @@ module Homebrew def man_args Homebrew::CLI::Parser.new do usage_banner <<~EOS - ### man [options]: + `man` [<options>]: Generate Homebrew's manpages. EOS @@ -93,6 +93,7 @@ def build_man_page variables[:commands] = path_glob_commands("#{HOMEBREW_LIBRA...
true
Other
Homebrew
brew
446b1cb9e3c5d93c731cfc16013f1aa8cc24451a.json
man: Seperate global options into a section
Library/Homebrew/dev-cmd/mirror.rb
@@ -10,9 +10,9 @@ module Homebrew def mirror_args Homebrew::CLI::Parser.new do usage_banner <<~EOS - ### mirror [formulae]: + `mirror` <formulae>: - Reuploads the stable URL for a formula to Bintray to use it as a mirror. + Reuploads the stable URL for a formula to...
true
Other
Homebrew
brew
446b1cb9e3c5d93c731cfc16013f1aa8cc24451a.json
man: Seperate global options into a section
Library/Homebrew/dev-cmd/prof.rb
@@ -1,4 +1,4 @@ -#: ### prof [ruby options]: +#: * `prof` [ruby options]: #: Run Homebrew with the Ruby profiler. #: For example: # brew prof readall
true
Other
Homebrew
brew
446b1cb9e3c5d93c731cfc16013f1aa8cc24451a.json
man: Seperate global options into a section
Library/Homebrew/dev-cmd/pull.rb
@@ -75,7 +75,7 @@ module Homebrew def pull_args Homebrew::CLI::Parser.new do usage_banner <<~EOS - ### pull [options] [formula]: + pull [options] [formula]: Gets a patch from a GitHub commit or pull request and applies it to Homebrew. Optionally, installs the formulae ch...
true
Other
Homebrew
brew
446b1cb9e3c5d93c731cfc16013f1aa8cc24451a.json
man: Seperate global options into a section
Library/Homebrew/dev-cmd/release-notes.rb
@@ -13,7 +13,7 @@ module Homebrew def release_notes_args Homebrew::CLI::Parser.new do usage_banner <<~EOS - ### release-notes [previous_tag] [end_ref]: + `release-notes` [<previous_tag>] [<end_ref>]: Output the merged pull requests on Homebrew/brew between two Git refs. ...
true
Other
Homebrew
brew
446b1cb9e3c5d93c731cfc16013f1aa8cc24451a.json
man: Seperate global options into a section
Library/Homebrew/dev-cmd/tap-new.rb
@@ -18,7 +18,7 @@ def write_path(tap, filename, content) def tap_new_args Homebrew::CLI::Parser.new do usage_banner <<~EOS - ### tap-new [user]/[repo]: + `tap-new` <user>/<repo>: Generate the template files for a new tap. EOS
true
Other
Homebrew
brew
446b1cb9e3c5d93c731cfc16013f1aa8cc24451a.json
man: Seperate global options into a section
Library/Homebrew/dev-cmd/test.rb
@@ -1,4 +1,4 @@ -#: ### test [--devel|--HEAD] [--debug] [--keep-tmp] [formula]: +#: * test [--devel|--HEAD] [--debug] [--keep-tmp] [formula]: #: Most formulae provide a test method. `brew test` <formula> runs this #: test method. There is no standard output or return code, but it should #: generally indic...
true
Other
Homebrew
brew
446b1cb9e3c5d93c731cfc16013f1aa8cc24451a.json
man: Seperate global options into a section
Library/Homebrew/dev-cmd/tests.rb
@@ -24,7 +24,7 @@ module Homebrew def tests_args Homebrew::CLI::Parser.new do usage_banner <<~EOS - ### tests [options] [formula]: + `tests` [<options>] <formula>: Run Homebrew's unit and integration tests. If provided, `--only=`<test_script> runs only <test_script>_spec...
true
Other
Homebrew
brew
446b1cb9e3c5d93c731cfc16013f1aa8cc24451a.json
man: Seperate global options into a section
Library/Homebrew/dev-cmd/update-test.rb
@@ -22,11 +22,11 @@ module Homebrew def update_test_args Homebrew::CLI::Parser.new do usage_banner <<~EOS - ### update-test [options]: + `update-test` [options]: - Runs a test of `brew update` with a new repository clone. + Runs a test of `brew update` with a new repository...
true
Other
Homebrew
brew
446b1cb9e3c5d93c731cfc16013f1aa8cc24451a.json
man: Seperate global options into a section
Library/Homebrew/manpages/brew.1.md.erb
@@ -54,6 +54,10 @@ With `--verbose` or `-v`, many commands print extra debugging information. Note <%= developer_commands.join("\n") %> +## GLOBAL OPTIONS + +<%= global_options.join("\n") %> + ## OFFICIAL EXTERNAL COMMANDS <%= homebrew_bundle.join("\n ").strip %>
true
Other
Homebrew
brew
446b1cb9e3c5d93c731cfc16013f1aa8cc24451a.json
man: Seperate global options into a section
docs/Manpage.md
@@ -663,11 +663,11 @@ With `--verbose` or `-v`, many commands print extra debugging information. Note ## DEVELOPER COMMANDS -### audit [options] [formulae]: +###audit [options] [formulae]: -Check `formulae` for Homebrew coding style violations. This should be +Check formulae for Homebrew coding style violations....
true
Other
Homebrew
brew
446b1cb9e3c5d93c731cfc16013f1aa8cc24451a.json
man: Seperate global options into a section
manpages/brew.1
@@ -622,7 +622,7 @@ If \fB\-\-force\fR (or \fB\-f\fR) is specified then always do a slower, full upd .SH "DEVELOPER COMMANDS" . .SS "audit [options] [formulae]:" -Check \fIformulae\fR for Homebrew coding style violations\. This should be run before submitting a new formula\. If no \fIformulae\fR are provided, all of...
true
Other
Homebrew
brew
cfaaa0eb71acc9ffea245594a0a82ecde5b3c09b.json
Move option descriptions to new line
Library/Homebrew/cli_parser.rb
@@ -30,6 +30,7 @@ def post_initialize .gsub(/`(.*?)`/, "#{Tty.bold}\\1#{Tty.reset}") .gsub(%r{<([^\s]+?://[^\s]+?)>}) { |url| Formatter.url(url) } .gsub(/<(.*?)>/, "#{Tty.underline}\\1#{Tty.reset}") + exit end end @@ -54,7 +...
true
Other
Homebrew
brew
cfaaa0eb71acc9ffea245594a0a82ecde5b3c09b.json
Move option descriptions to new line
Library/Homebrew/dev-cmd/audit.rb
@@ -61,41 +61,38 @@ def audit_args run before submitting a new formula. If no <formulae> are provided, all of them are checked. - EOS - switch "--strict", description: "Run additional style checks, "\ - "including Ruboc...
true
Other
Homebrew
brew
cfaaa0eb71acc9ffea245594a0a82ecde5b3c09b.json
Move option descriptions to new line
Library/Homebrew/dev-cmd/man.rb
@@ -168,6 +168,6 @@ def format_short_opt(opt) end def format_long_opt(opt) - "`#{opt}`".ljust(30) + "`#{opt}`" end end
true
Other
Homebrew
brew
cfaaa0eb71acc9ffea245594a0a82ecde5b3c09b.json
Move option descriptions to new line
docs/Manpage.md
@@ -671,43 +671,43 @@ run before submitting a new formula. If no `formulae` are provided, all of them are checked. -* `--strict` : +* `--strict`: Run additional style checks, including Rubocop style checks. -* `--online` : +* `--online`: Run additional slower style che...
true
Other
Homebrew
brew
cfaaa0eb71acc9ffea245594a0a82ecde5b3c09b.json
Move option descriptions to new line
manpages/brew.1
@@ -639,15 +639,15 @@ Activates debugging and profiling . .TP \fB\-\-only\fR -Passing \fB\-\-only\fR=\fImethod\fR will run only themethods named audit_method, \fBmethod\fR should be a comma\-separated list\. +Passing \fB\-\-only\fR=\fImethod\fR will run only the methods named audit_\fImethod\fR, \fBmethod\fR should ...
true
Other
Homebrew
brew
32e5a5686bf73cb165e750f0ee8715ca9d9b8fac.json
audit: Use OptionParser to generate help text
Library/Homebrew/brew.rb
@@ -73,7 +73,7 @@ # - a help flag is passed AND there is no command specified # - no arguments are passed # - if cmd is Cask, let Cask handle the help command instead - if (empty_argv || help_flag) && cmd != "cask" + if (empty_argv || help_flag) && cmd != "cask" && !internal_dev_cmd require "help" ...
true
Other
Homebrew
brew
32e5a5686bf73cb165e750f0ee8715ca9d9b8fac.json
audit: Use OptionParser to generate help text
Library/Homebrew/cli_parser.rb
@@ -17,13 +17,21 @@ def initialize(&block) @constraints = [] @conflicts = [] instance_eval(&block) + post_initialize + end + + def post_initialize + @parser.on_tail("-h", "--help", "Show this message") do + puts @parser + exit + end end ...
true
Other
Homebrew
brew
32e5a5686bf73cb165e750f0ee8715ca9d9b8fac.json
audit: Use OptionParser to generate help text
Library/Homebrew/dev-cmd/audit.rb
@@ -54,19 +54,27 @@ module Homebrew def audit Homebrew::CLI::Parser.parse do - switch "--strict" - switch "--online" - switch "--new-formula" - switch "--fix" - switch "--display-cop-names" - switch "--display-filename" + banner <<~EOS + ...
true
Other
Homebrew
brew
fdcdf7cb5c2bd86e2ab8943bcabf0a96cb6e0c82.json
CoreTap.default_remote: Use Linuxbrew/core [Linux]
Library/Homebrew/cmd/update.sh
@@ -24,7 +24,12 @@ git() { git_init_if_necessary() { BREW_OFFICIAL_REMOTE="https://github.com/Homebrew/brew" - CORE_OFFICIAL_REMOTE="https://github.com/Homebrew/homebrew-core" + if [[ -n "$HOMEBREW_MACOS" ]] || [[ -n "$HOMEBREW_FORCE_HOMEBREW_ORG" ]] + then + CORE_OFFICIAL_REMOTE="https://github.com/Homebre...
true
Other
Homebrew
brew
fdcdf7cb5c2bd86e2ab8943bcabf0a96cb6e0c82.json
CoreTap.default_remote: Use Linuxbrew/core [Linux]
Library/Homebrew/extend/os/linux/tap.rb
@@ -0,0 +1,9 @@ +class CoreTap < Tap + def default_remote + if ENV["HOMEBREW_FORCE_HOMEBREW_ORG"] + "https://github.com/Homebrew/homebrew-core".freeze + else + "https://github.com/Linuxbrew/homebrew-core".freeze + end + end +end
true
Other
Homebrew
brew
fdcdf7cb5c2bd86e2ab8943bcabf0a96cb6e0c82.json
CoreTap.default_remote: Use Linuxbrew/core [Linux]
Library/Homebrew/extend/os/tap.rb
@@ -0,0 +1 @@ +require "extend/os/linux/tap" if OS.linux?
true
Other
Homebrew
brew
fdcdf7cb5c2bd86e2ab8943bcabf0a96cb6e0c82.json
CoreTap.default_remote: Use Linuxbrew/core [Linux]
Library/Homebrew/tap.rb
@@ -735,3 +735,5 @@ def []=(key, value) end end end + +require "extend/os/tap"
true
Other
Homebrew
brew
447baab9a05ca7f860a70adf52017ec69e687a8b.json
DevelopmentTools::locate: Prefer brewed tools [Linux]
Library/Homebrew/extend/os/linux/development_tools.rb
@@ -1,5 +1,15 @@ class DevelopmentTools class << self + def locate(tool) + (@locate ||= {}).fetch(tool) do |key| + @locate[key] = if (path = HOMEBREW_PREFIX/"bin/#{tool}").executable? + path + elsif File.executable?(path = "/usr/bin/#{tool}") + Pathname.new path + end ...
false
Other
Homebrew
brew
292361eaf04be33a2b6641dde9fb01701637870f.json
docs: move sample commands into code blocks
docs/How-To-Open-a-Homebrew-Pull-Request.md
@@ -2,7 +2,7 @@ The following commands are used by Homebrew contributors to set up a fork of Homebrew's Git repository on GitHub, create a new branch and create a GitHub pull request ("PR") of the changes in that branch. -Depending on the change you want to make, you need to send the pull request to the appropriat...
false
Other
Homebrew
brew
78ddc34847983002609bd1991b68df0437a88000.json
config: hide optional system packages. Java, XQuartz and the CLT separate header package aren't required for everyone's Homebrew usage or a default macOS development install. As a result, only show then in `brew config` when they are actually installed.
Library/Homebrew/extend/os/mac/system_config.rb
@@ -57,11 +57,9 @@ def dump_verbose_config(f = $stdout) dump_generic_verbose_config(f) f.puts "macOS: #{MacOS.full_version}-#{kernel}" f.puts "CLT: #{clt || "N/A"}" - if MacOS::CLT.separate_header_package? - f.puts "CLT headers: #{clt_headers || "N/A"}" - end f.puts "Xcode: ...
true
Other
Homebrew
brew
78ddc34847983002609bd1991b68df0437a88000.json
config: hide optional system packages. Java, XQuartz and the CLT separate header package aren't required for everyone's Homebrew usage or a default macOS development install. As a result, only show then in `brew config` when they are actually installed.
Library/Homebrew/system_config.rb
@@ -196,7 +196,7 @@ def dump_verbose_config(f = $stdout) end f.puts "Git: #{describe_git}" f.puts "Curl: #{describe_curl}" - f.puts "Java: #{describe_java}" + f.puts "Java: #{describe_java}" if describe_java != "N/A" end alias dump_generic_verbose_config dump_verbose_config e...
true
Other
Homebrew
brew
25b9a7d35bb5a4615df2509f3f29c2542c0c574d.json
rubocop: move requirement to configuration file If you are using en external rubocop binary you will encounter the following error. .rubocop_todo.yml: RSpec/FilePath has the wrong namespace - should be Rails By moving the option to the config file an external rubocop would be treated equally to brew style without ...
Library/.rubocop.yml
@@ -5,7 +5,9 @@ AllCops: - '**/vendor/**/*' DisplayCopNames: false -require: ./Homebrew/rubocops.rb +require: + - rubocop-rspec + - ./Homebrew/rubocops.rb # enable all formulae audits FormulaAudit:
true
Other
Homebrew
brew
25b9a7d35bb5a4615df2509f3f29c2542c0c574d.json
rubocop: move requirement to configuration file If you are using en external rubocop binary you will encounter the following error. .rubocop_todo.yml: RSpec/FilePath has the wrong namespace - should be Rails By moving the option to the config file an external rubocop would be treated equally to brew style without ...
Library/Homebrew/style.rb
@@ -23,7 +23,6 @@ def check_style_impl(files, output_type, options = {}) require "rubocops" args = %w[ - --require rubocop-rspec --force-exclusion ] if fix
true
Other
Homebrew
brew
9a4b54f85d076e1d7eefe45f1db510b19339915e.json
Remove dbm_test_read analytics. This can now be removed because my paranoia was unjustified and it's successful 99.93% of the time.
Library/Homebrew/cache_store.rb
@@ -97,7 +97,6 @@ def db end false end - Utils::Analytics.report_event("dbm_test_read", dbm_test_read_success.to_s) cache_path.delete unless dbm_test_read_success end DBM.open(dbm_file_path, DATABASE_MODE, DBM::WRCREAT)
true
Other
Homebrew
brew
9a4b54f85d076e1d7eefe45f1db510b19339915e.json
Remove dbm_test_read analytics. This can now be removed because my paranoia was unjustified and it's successful 99.93% of the time.
docs/Analytics.md
@@ -29,7 +29,6 @@ Homebrew's analytics records the following different events: - an `event` hit type with the `install_on_request` event category and the Homebrew formula from a non-private GitHub tap you have requested to install (e.g. explicitly named it with a `brew install`) plus options and an event label as abov...
true
Other
Homebrew
brew
3ce4caeb1aa8d5b9cd818bc114b4810b717ced3b.json
Add tests for language/python
Library/Homebrew/test/language/python_spec.rb
@@ -1,6 +1,35 @@ require "language/python" require "resource" +describe Language::Python, :needs_python do + describe "#major_minor_version" do + it "returns a Version for Python 2" do + expect(subject).to receive(:major_minor_version).and_return(Version) + subject.major_minor_version("python") + e...
false
Other
Homebrew
brew
876021a926f9ef1ba6c555353f7a43678e97fb8b.json
prune: preserve some directories Some directories, while empty, are created in brew upgrade and should be kept.
Library/Homebrew/cmd/prune.rb
@@ -32,7 +32,8 @@ def prune path.unlink end end - elsif path.directory? && !Keg::PRUNEABLE_DIRECTORIES.include?(path) + elsif path.directory? && !Keg::PRUNEABLE_DIRECTORIES.include?(path) && + !Keg::MUST_BE_WRITABLE_DIRECTORIES.include?(path) ...
false
Other
Homebrew
brew
f99f1b611fbc8f37eecdf465bdc21a4ceb101f20.json
cache_store_spec: fix bad rebase. https://github.com/Homebrew/brew/pull/4948#discussion_r219276137
Library/Homebrew/test/cache_store_spec.rb
@@ -124,7 +124,7 @@ allow(subject).to receive(:cache_path).and_return(cache_path) end - context "`File.exist?(cache_path)` returns `true`" do + context "`cache_path.exist?` returns `true`" do before do allow(cache_path).to receive(:exist?).and_return(true) end @@ -134,7 +134,7...
false
Other
Homebrew
brew
752714b71ceeb473bdbdb008e645c645cb428d96.json
cache_store: add dbm_test_read analytics.
Library/Homebrew/cache_store.rb
@@ -97,6 +97,7 @@ def db end false end + Utils::Analytics.report_event("dbm_test_read", dbm_test_read_success.to_s) cache_path.delete unless dbm_test_read_success end DBM.open(dbm_file_path, DATABASE_MODE, DBM::WRCREAT)
true
Other
Homebrew
brew
752714b71ceeb473bdbdb008e645c645cb428d96.json
cache_store: add dbm_test_read analytics.
docs/Analytics.md
@@ -28,7 +28,8 @@ Homebrew's analytics records the following different events: - an `event` hit type with the `install` event category and the Homebrew formula from a non-private GitHub tap you install plus any used options, e.g. `wget --with-pcre` as the action and an event label e.g. `macOS 10.12, non-/usr/local, CI...
true
Other
Homebrew
brew
7eb4b92d309a2118881f78893271bc1c8e5d57b4.json
cache_store: handle missing process. If we try to kill the process but it's already dead just ignore it.
Library/Homebrew/cache_store.rb
@@ -89,7 +89,12 @@ def db end rescue ErrorDuringExecution, Timeout::Error odebug "Failed to read #{dbm_file_path}!" - Process.kill(:KILL, dbm_test_read_cmd.pid) + begin + Process.kill(:KILL, dbm_test_read_cmd.pid) + rescue Errno::ESRCH + # ...
false
Other
Homebrew
brew
eb9f9f5e36bc033f9b4227e1ca49697b1556d4df.json
language/haskell: use `v1` commands
Library/Homebrew/language/haskell.rb
@@ -16,7 +16,7 @@ def cabal_sandbox(options = {}) saved_home = ENV["HOME"] ENV["HOME"] = home - system "cabal", "sandbox", "init" + system "cabal", "v1-sandbox", "init" cabal_sandbox_bin = pwd/".cabal-sandbox/bin" mkdir_p cabal_sandbox_bin @@ -25,7 +25,7 @@ def caba...
false
Other
Homebrew
brew
25249f0114a8792de803699c704c7e9e9652f934.json
shims/super/cc: detect High Sierra differently. Don't rely on `RUBY_PLATFORM`'s kernel version as it's the machine that Ruby was built on (10.5) for portable ruby.
Library/Homebrew/brew.sh
@@ -167,6 +167,7 @@ export HOMEBREW_PROCESSOR export HOMEBREW_PRODUCT export HOMEBREW_OS_VERSION export HOMEBREW_MACOS_VERSION +export HOMEBREW_MACOS_VERSION_NUMERIC export HOMEBREW_USER_AGENT export HOMEBREW_USER_AGENT_CURL
true
Other
Homebrew
brew
25249f0114a8792de803699c704c7e9e9652f934.json
shims/super/cc: detect High Sierra differently. Don't rely on `RUBY_PLATFORM`'s kernel version as it's the machine that Ruby was built on (10.5) for portable ruby.
Library/Homebrew/shims/scm/git
@@ -122,12 +122,7 @@ then xcode_path="$(/usr/bin/xcode-select -print-path 2>/dev/null)" if [[ -z "$xcode_path" ]] then - if [[ -z "$HOMEBREW_MACOS_VERSION" ]] - then - HOMEBREW_MACOS_VERSION="$(/usr/bin/sw_vers -productVersion)" - fi - printf -v macos_version_numeric "%02d%02d%02d" ${HOMEBREW_...
true
Other
Homebrew
brew
25249f0114a8792de803699c704c7e9e9652f934.json
shims/super/cc: detect High Sierra differently. Don't rely on `RUBY_PLATFORM`'s kernel version as it's the machine that Ruby was built on (10.5) for portable ruby.
Library/Homebrew/shims/super/cc
@@ -18,7 +18,7 @@ def mac? end def high_sierra_or_later? - mac? && RUBY_PLATFORM[/darwin\d+/][/\d+/].to_i >= 17 + mac? && ENV["HOMEBREW_MACOS_VERSION_NUMERIC"].to_s.to_i >= 101300 end def linux?
true
Other
Homebrew
brew
79c2ccd0bc444e0017a61f9fed5777a4d6e7b0eb.json
Generate rubocop_todo.yml for RuboCop RSpec
Library/Homebrew/.rubocop-rspec.yml
@@ -1,6 +0,0 @@ -inherit_from: - - .rubocop.yml - -RSpec/ExpectActual: - Exclude: - - 'test/missing_formula_spec.rb'
true
Other
Homebrew
brew
79c2ccd0bc444e0017a61f9fed5777a4d6e7b0eb.json
Generate rubocop_todo.yml for RuboCop RSpec
Library/Homebrew/.rubocop.yml
@@ -1,5 +1,6 @@ inherit_from: - ../.rubocop.yml + - .rubocop_todo.yml AllCops: Include:
true
Other
Homebrew
brew
79c2ccd0bc444e0017a61f9fed5777a4d6e7b0eb.json
Generate rubocop_todo.yml for RuboCop RSpec
Library/Homebrew/.rubocop_todo.yml
@@ -0,0 +1,141 @@ +# This configuration was generated by +# `rubocop --auto-gen-config` +# on 2018-09-20 09:03:52 +0100 using RuboCop version 0.59.1. +# The point is for the user to remove these configuration records +# one by one as the offenses are removed from the code base. +# Note that changes in the inspected cod...
true
Other
Homebrew
brew
a11fe57cd2c6b982288a8f7436e013fc53e8458b.json
cache_store: handle corrupt DBM database. When the DBM database cannot be read by the current version of Ruby's DBM library (due to corruption or another incompatibility) it segfaults or freezes which takes down the entire Homebrew Ruby process. This isn't desirable so instead perform a shell out with the Homebrew Ru...
Library/Homebrew/cache_store.rb
@@ -1,5 +1,6 @@ require "dbm" require "json" +require "timeout" # # `CacheStoreDatabase` acts as an interface to a persistent storage mechanism @@ -46,7 +47,7 @@ def close_if_open! # # @return [Boolean] def created? - File.exist?(cache_path) + cache_path.exist? end private @@ -57,6 +58,10 @...
true
Other
Homebrew
brew
a11fe57cd2c6b982288a8f7436e013fc53e8458b.json
cache_store: handle corrupt DBM database. When the DBM database cannot be read by the current version of Ruby's DBM library (due to corruption or another incompatibility) it segfaults or freezes which takes down the entire Homebrew Ruby process. This isn't desirable so instead perform a shell out with the Homebrew Ru...
Library/Homebrew/system_command.rb
@@ -19,6 +19,8 @@ def system_command!(*args) class SystemCommand extend Predicable + attr_reader :pid + def self.run(executable, **options) new(executable, **options).run! end @@ -122,6 +124,7 @@ def each_output_line(&b) raw_stdin, raw_stdout, raw_stderr, raw_wait_thr = Open3.popen3(env,...
true
Other
Homebrew
brew
a11fe57cd2c6b982288a8f7436e013fc53e8458b.json
cache_store: handle corrupt DBM database. When the DBM database cannot be read by the current version of Ruby's DBM library (due to corruption or another incompatibility) it segfaults or freezes which takes down the entire Homebrew Ruby process. This isn't desirable so instead perform a shell out with the Homebrew Ru...
Library/Homebrew/test/cache_store_spec.rb
@@ -118,25 +118,25 @@ end describe "#created?" do - let(:cache_path) { "path/to/homebrew/cache/sample.db" } + let(:cache_path) { Pathname("path/to/homebrew/cache/sample.db") } before(:each) do allow(subject).to receive(:cache_path).and_return(cache_path) end - context "`File.exist?...
true
Other
Homebrew
brew
a11fe57cd2c6b982288a8f7436e013fc53e8458b.json
cache_store: handle corrupt DBM database. When the DBM database cannot be read by the current version of Ruby's DBM library (due to corruption or another incompatibility) it segfaults or freezes which takes down the entire Homebrew Ruby process. This isn't desirable so instead perform a shell out with the Homebrew Ru...
Library/Homebrew/utils/ruby.sh
@@ -47,7 +47,7 @@ setup-ruby-path() { then odie "Failed to install vendor Ruby." fi - rm -rf "$vendor_dir/bundle/ruby" "$HOMEBREW_CACHE/linkage.db" + rm -rf "$vendor_dir/bundle/ruby" HOMEBREW_RUBY_PATH="$vendor_ruby_path" fi fi
true
Other
Homebrew
brew
e5aaf36f7d8dae5978d345763cd479cb5e5c3678.json
Add spec for `FormulaInstaller#audit_installed`.
Library/Homebrew/test/formula_installer_spec.rb
@@ -150,4 +150,15 @@ class #{Formulary.class_s(dep_name)} < Formula temporary_install(Failball.new) }.to raise_error(RuntimeError) end + + describe "#caveats" do + subject(:formula_installer) { described_class.new(Testball.new) } + + it "shows audit problems if HOMEBREW_DEVELOPER is set" do + ...
false
Other
Homebrew
brew
7a991985a47cf523e95fce32a49e195b964841a8.json
Run tests with `HOMEBREW_DEVELOPER` unset.
Library/Homebrew/brew.rb
@@ -51,8 +51,10 @@ internal_dev_cmd = require? HOMEBREW_LIBRARY_PATH/"dev-cmd"/cmd internal_cmd = internal_dev_cmd if internal_dev_cmd && !ARGV.homebrew_developer? - system "git", "config", "--file=#{HOMEBREW_REPOSITORY}/.git/config", - "--replace-all", "homebr...
true
Other
Homebrew
brew
7a991985a47cf523e95fce32a49e195b964841a8.json
Run tests with `HOMEBREW_DEVELOPER` unset.
Library/Homebrew/dev-cmd/tests.rb
@@ -43,8 +43,8 @@ def tests ENV.delete("HOMEBREW_TEMP") ENV.delete("HOMEBREW_NO_GITHUB_API") ENV.delete("HOMEBREW_NO_EMOJI") + ENV.delete("HOMEBREW_DEVELOPER") ENV["HOMEBREW_NO_ANALYTICS_THIS_RUN"] = "1" - ENV["HOMEBREW_DEVELOPER"] = "1" ENV["HOMEBREW_NO_COMPAT"] = "1" if ar...
true
Other
Homebrew
brew
7a991985a47cf523e95fce32a49e195b964841a8.json
Run tests with `HOMEBREW_DEVELOPER` unset.
Library/Homebrew/test/cmd/uninstall_spec.rb
@@ -42,6 +42,8 @@ describe "::handle_unsatisfied_dependents" do specify "when developer" do + ENV["HOMEBREW_DEVELOPER"] = "1" + expect { described_class.handle_unsatisfied_dependents(opts) }.to output(/Warning/).to_stderr @@ -50,25 +52,21 @@ end specify "when not develo...
true
Other
Homebrew
brew
7a991985a47cf523e95fce32a49e195b964841a8.json
Run tests with `HOMEBREW_DEVELOPER` unset.
Library/Homebrew/test/utils_spec.rb
@@ -118,18 +118,6 @@ def esc(code) end end - describe "#run_as_not_developer" do - it "temporarily unsets HOMEBREW_DEVELOPER" do - ENV["HOMEBREW_DEVELOPER"] = "foo" - - run_as_not_developer do - expect(ENV["HOMEBREW_DEVELOPER"]).to be nil - end - - expect(ENV["HOMEBREW_DEVELOPER...
true
Other
Homebrew
brew
7a991985a47cf523e95fce32a49e195b964841a8.json
Run tests with `HOMEBREW_DEVELOPER` unset.
Library/Homebrew/utils.rb
@@ -296,12 +296,6 @@ def with_custom_locale(locale) end end -def run_as_not_developer - with_env(HOMEBREW_DEVELOPER: nil) do - yield - end -end - # Kernel.system but with exceptions def safe_system(cmd, *args, **options) return if Homebrew.system(cmd, *args, **options)
true
Other
Homebrew
brew
3063b7fadeb60fc0fa8a859eb4ac90c71c5d4bb5.json
update-reset: allow specifying repositories. This makes it easier to use this in e.g. CI to quickly reset various repositories to their upstream versions.
Library/Homebrew/cmd/update-reset.sh
@@ -1,10 +1,11 @@ -#: * `update-reset`: -#: Fetches and resets Homebrew and all tap repositories using `git`(1) to -#: their latest `origin/master`. Note this will destroy all your uncommitted -#: or committed changes. +#: * `update-reset` [<repositories>]: +#: Fetches and resets Homebrew and all tap repo...
true
Other
Homebrew
brew
3063b7fadeb60fc0fa8a859eb4ac90c71c5d4bb5.json
update-reset: allow specifying repositories. This makes it easier to use this in e.g. CI to quickly reset various repositories to their upstream versions.
docs/Manpage.md
@@ -578,10 +578,10 @@ With `--verbose` or `-v`, many commands print extra debugging information. Note If `--force` (or `-f`) is specified then always do a slower, full update check even if unnecessary. - * `update-reset`: - Fetches and resets Homebrew and all tap repositories using `git`(1) to - thei...
true
Other
Homebrew
brew
3063b7fadeb60fc0fa8a859eb4ac90c71c5d4bb5.json
update-reset: allow specifying repositories. This makes it easier to use this in e.g. CI to quickly reset various repositories to their upstream versions.
manpages/brew.1
@@ -527,7 +527,7 @@ If \fB\-\-merge\fR is specified then \fBgit merge\fR is used to include updates If \fB\-\-force\fR (or \fB\-f\fR) is specified then always do a slower, full update check even if unnecessary\. . .IP "\(bu" 4 -\fBupdate\-reset\fR: Fetches and resets Homebrew and all tap repositories using \fBgit\fR...
true
Other
Homebrew
brew
ead23d1f4c6eb3ba83e3d126d3874609957325bd.json
Use ActiveSupport File.atomic_write nd delete our own implementation.
Library/Homebrew/extend/pathname.rb
@@ -162,45 +162,13 @@ def append_lines(content, *open_args) # NOTE always overwrites def atomic_write(content) - require "tempfile" - tf = Tempfile.new(basename.to_s, dirname) - begin - tf.binmode - tf.write(content) - - begin - old_stat = stat - rescue Errno::ENOENT - ...
true
Other
Homebrew
brew
ead23d1f4c6eb3ba83e3d126d3874609957325bd.json
Use ActiveSupport File.atomic_write nd delete our own implementation.
Library/Homebrew/global.rb
@@ -132,6 +132,7 @@ def auditing? require "extend/string" require "active_support/core_ext/object/blank" require "active_support/core_ext/hash/deep_merge" +require "active_support/core_ext/file/atomic" require "constants" require "exceptions"
true
Other
Homebrew
brew
ead23d1f4c6eb3ba83e3d126d3874609957325bd.json
Use ActiveSupport File.atomic_write nd delete our own implementation.
Library/Homebrew/test/pathname_spec.rb
@@ -105,14 +105,14 @@ it "preserves permissions" do File.open(file, "w", 0100777) {} file.atomic_write("CONTENT") - expect(file.stat.mode).to eq(0100777 & ~File.umask) + expect(file.stat.mode.to_s(8)).to eq((0100777 & ~File.umask).to_s(8)) end it "preserves default permissions" ...
true
Other
Homebrew
brew
ead23d1f4c6eb3ba83e3d126d3874609957325bd.json
Use ActiveSupport File.atomic_write nd delete our own implementation.
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/core_ext/file/atomic.rb
@@ -0,0 +1,70 @@ +# frozen_string_literal: true + +require "fileutils" + +class File + # Write to a file atomically. Useful for situations where you don't + # want other processes or threads to see half-written files. + # + # File.atomic_write('important.file') do |file| + # file.write('hello') + # end + ...
true
Other
Homebrew
brew
188aca10759f5b1efee03b4c176b6bafcd71357b.json
Remove blank line
Library/Homebrew/test/cmd/commands_spec.rb
@@ -11,7 +11,6 @@ end it "prints a list without headers with the --quiet flag" do - expect { brew "commands", "--quiet" } .to be_a_success .and not_to_output.to_stderr
false
Other
Homebrew
brew
0c6331878f0a0c33b3f22dbd6cd6ebf1fb9232ae.json
Use ActiveSupport Hash#deep_merge And delete our own implementation.
Library/Homebrew/dev-cmd/bottle.rb
@@ -412,7 +412,7 @@ def merge write = args.write? bottles_hash = ARGV.named.reduce({}) do |hash, json_file| - deep_merge_hashes hash, JSON.parse(IO.read(json_file)) + hash.deep_merge(JSON.parse(IO.read(json_file))) end bottles_hash.each do |formula_name, bottle_hash|
true
Other
Homebrew
brew
0c6331878f0a0c33b3f22dbd6cd6ebf1fb9232ae.json
Use ActiveSupport Hash#deep_merge And delete our own implementation.
Library/Homebrew/global.rb
@@ -131,6 +131,7 @@ def auditing? require "extend/predicable" require "extend/string" require "active_support/core_ext/object/blank" +require "active_support/core_ext/hash/deep_merge" require "constants" require "exceptions"
true
Other
Homebrew
brew
0c6331878f0a0c33b3f22dbd6cd6ebf1fb9232ae.json
Use ActiveSupport Hash#deep_merge And delete our own implementation.
Library/Homebrew/utils.rb
@@ -5,7 +5,6 @@ require "utils/formatter" require "utils/git" require "utils/github" -require "utils/hash" require "utils/inreplace" require "utils/link" require "utils/popen"
true
Other
Homebrew
brew
0c6331878f0a0c33b3f22dbd6cd6ebf1fb9232ae.json
Use ActiveSupport Hash#deep_merge And delete our own implementation.
Library/Homebrew/utils/hash.rb
@@ -1,10 +0,0 @@ -def deep_merge_hashes(hash1, hash2) - merger = proc do |_key, v1, v2| - if v1.is_a?(Hash) && v2.is_a?(Hash) - v1.merge v2, &merger - else - v2 - end - end - hash1.merge hash2, &merger -end
true
Other
Homebrew
brew
0c6331878f0a0c33b3f22dbd6cd6ebf1fb9232ae.json
Use ActiveSupport Hash#deep_merge And delete our own implementation.
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.1/lib/active_support/core_ext/hash/deep_merge.rb
@@ -0,0 +1,34 @@ +# frozen_string_literal: true + +class Hash + # Returns a new hash with +self+ and +other_hash+ merged recursively. + # + # h1 = { a: true, b: { c: [1, 2, 3] } } + # h2 = { a: false, b: { x: [3, 4, 5] } } + # + # h1.deep_merge(h2) # => { a: false, b: { c: [1, 2, 3], x: [3, 4, 5] } } + # +...
true
Other
Homebrew
brew
05b71b80e41bdef370235f7722719e17a6c2078d.json
Update RuboCop to 0.58.2.
Library/Homebrew/constants.rb
@@ -1,5 +1,5 @@ # frozen_string_literal: true # RuboCop version used for `brew style` and `brew cask style` -HOMEBREW_RUBOCOP_VERSION = "0.57.2" -HOMEBREW_RUBOCOP_CASK_VERSION = "~> 0.20.0" # has to be updated when RuboCop version changes +HOMEBREW_RUBOCOP_VERSION = "0.58.2" +HOMEBREW_RUBOCOP_CASK_VERSION = "~> 0.2...
true
Other
Homebrew
brew
05b71b80e41bdef370235f7722719e17a6c2078d.json
Update RuboCop to 0.58.2.
Library/Homebrew/test/Gemfile.lock
@@ -37,10 +37,10 @@ GEM rspec-support (3.8.0) rspec-wait (0.0.9) rspec (>= 3, < 4) - rubocop (0.57.2) + rubocop (0.58.2) jaro_winkler (~> 1.5.1) parallel (~> 1.10) - parser (>= 2.5) + parser (>= 2.5, != 2.5.1.1) powerpack (~> 0.1) rainbow (>= 2.2.2, < 4.0) ...
true
Other
Homebrew
brew
a4020db526fc8476b4c8606a1f0c6473e1a197c8.json
Add test for brew info --json=v1
Library/Homebrew/test/cmd/info_spec.rb
@@ -8,6 +8,11 @@ .to output(/testball: stable 0.1/).to_stdout .and not_to_output.to_stderr .and be_a_success + + expect { brew "info", "testball", "--json=v1" } + .to output(/\{.+testball.+\}/).to_stdout + .and not_to_output.to_stderr + .and be_a_success end end
false
Other
Homebrew
brew
193b5aa07ac9e278dfe123d03566c14572321deb.json
Add test for brew commands --quiet
Library/Homebrew/test/cmd/commands_spec.rb
@@ -6,6 +6,12 @@ it "prints a list of all available commands" do expect { brew "commands" } .to output(/Built-in commands/).to_stdout + .and not_to_output.to_stderr + .and be_a_success + + expect { brew "commands", "--quiet" } + .to output.to_stdout + .and not_to_output.to_stderr ...
false
Other
Homebrew
brew
955214abc0e776a234d9a52f7c287cfa010f9d97.json
Use ActiveSupport Object#blank? and #present?
Library/Homebrew/cask/cmd/doctor.rb
@@ -75,7 +75,7 @@ def check_taps ohai "Homebrew Cask Taps:" [default_tap, *alt_taps].each do |tap| - if tap.path.nil? || tap.path.to_s.empty? + if tap.path.blank? puts none_string else puts "#{tap.path} (#{cask_count_for_tap(tap)})"
true
Other
Homebrew
brew
955214abc0e776a234d9a52f7c287cfa010f9d97.json
Use ActiveSupport Object#blank? and #present?
Library/Homebrew/dev-cmd/audit.rb
@@ -961,7 +961,7 @@ def audit def audit_version if version.nil? problem "missing version" - elsif version.to_s.empty? + elsif version.blank? problem "version is set to an empty string" elsif !version.detected_from_url? version_text = version
true
Other
Homebrew
brew
955214abc0e776a234d9a52f7c287cfa010f9d97.json
Use ActiveSupport Object#blank? and #present?
Library/Homebrew/dev-cmd/bottle.rb
@@ -453,7 +453,7 @@ def merge tag = tag.to_s.delete ":" unless tag.empty? - if !bottle_hash["bottle"]["tags"][tag].to_s.empty? + if bottle_hash["bottle"]["tags"][tag].present? mismatches << "#{key} => #{tag}" e...
true
Other
Homebrew
brew
955214abc0e776a234d9a52f7c287cfa010f9d97.json
Use ActiveSupport Object#blank? and #present?
Library/Homebrew/download_strategy.rb
@@ -1109,7 +1109,7 @@ def initialize(url, name, version, **meta) def source_modified_time out, = system_command("bzr", args: ["log", "-l", "1", "--timezone=utc", cached_location]) timestamp = out.chomp - raise "Could not get any timestamps from bzr!" if timestamp.to_s.empty? + raise "Could not get an...
true
Other
Homebrew
brew
955214abc0e776a234d9a52f7c287cfa010f9d97.json
Use ActiveSupport Object#blank? and #present?
Library/Homebrew/extend/os/linux/diagnostic.rb
@@ -35,7 +35,7 @@ def check_tmpdir_executable end def check_xdg_data_dirs - return if ENV["XDG_DATA_DIRS"].to_s.empty? + return if ENV["XDG_DATA_DIRS"].blank? return if ENV["XDG_DATA_DIRS"].split("/").include?(HOMEBREW_PREFIX/"share") <<~EOS Homebrew's share wa...
true
Other
Homebrew
brew
955214abc0e776a234d9a52f7c287cfa010f9d97.json
Use ActiveSupport Object#blank? and #present?
Library/Homebrew/global.rb
@@ -130,6 +130,7 @@ def auditing? require "extend/module" require "extend/predicable" require "extend/string" +require "active_support/core_ext/object/blank" require "constants" require "exceptions"
true
Other
Homebrew
brew
955214abc0e776a234d9a52f7c287cfa010f9d97.json
Use ActiveSupport Object#blank? and #present?
Library/Homebrew/missing_formula.rb
@@ -142,8 +142,7 @@ def deleted_reason(name, silent: false) hash, short_hash, *commit_message, relative_path = Utils.popen_read(log_command).gsub("\\n", "\n").lines.map(&:chomp) - if hash.to_s.empty? || short_hash.to_s.empty? || - relative_path.to_s.empty? + if ha...
true
Other
Homebrew
brew
a6f25419aaaeb5fae3eb743d961ed7892ae86075.json
Update vendored gems - backports to 3.11.4 - plist to 3.4.0
Library/Homebrew/vendor/Gemfile.lock
@@ -1,8 +1,8 @@ GEM remote: https://rubygems.org/ specs: - backports (3.8.0) - plist (3.3.0) + backports (3.11.4) + plist (3.4.0) ruby-macho (2.0.0) PLATFORMS
true
Other
Homebrew
brew
a6f25419aaaeb5fae3eb743d961ed7892ae86075.json
Update vendored gems - backports to 3.11.4 - plist to 3.4.0
Library/Homebrew/vendor/bundle-standalone/bundler/setup.rb
@@ -3,7 +3,7 @@ ruby_engine = defined?(RUBY_ENGINE) ? RUBY_ENGINE : 'ruby' ruby_version = RbConfig::CONFIG["ruby_version"] path = File.expand_path('..', __FILE__) -$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/backports-3.8.0/lib" +$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/backports-3.1...
true
Other
Homebrew
brew
a6f25419aaaeb5fae3eb743d961ed7892ae86075.json
Update vendored gems - backports to 3.11.4 - plist to 3.4.0
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/backports-3.11.4/lib/backports/2.4.0/string/match.rb
@@ -0,0 +1,7 @@ +unless String.method_defined? :match? + class String + def match?(*args) + !match(*args).nil? + end + end +end
true
Other
Homebrew
brew
a6f25419aaaeb5fae3eb743d961ed7892ae86075.json
Update vendored gems - backports to 3.11.4 - plist to 3.4.0
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/backports-3.8.0/lib/backports/2.4.0/string/match.rb
@@ -1,11 +0,0 @@ -unless String.method_defined? :match? - class String - def match?(*args) - # Fiber to avoid setting $~ - f = Fiber.new do - !match(*args).nil? - end - f.resume - end - end -end
true
Other
Homebrew
brew
a6f25419aaaeb5fae3eb743d961ed7892ae86075.json
Update vendored gems - backports to 3.11.4 - plist to 3.4.0
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/plist-3.3.0/lib/plist/generator.rb
@@ -1,222 +0,0 @@ -# encoding: utf-8 - -# = plist -# -# Copyright 2006-2010 Ben Bleything and Patrick May -# Distributed under the MIT License -# - -module Plist; end - -# === Create a plist -# You can dump an object to a plist in one of two ways: -# -# * <tt>Plist::Emit.dump(obj)</tt> -# * <tt>obj.to_plist</tt> -# *...
true
Other
Homebrew
brew
a6f25419aaaeb5fae3eb743d961ed7892ae86075.json
Update vendored gems - backports to 3.11.4 - plist to 3.4.0
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/plist-3.4.0/lib/plist.rb
@@ -16,6 +16,3 @@ require 'plist/generator' require 'plist/parser' require 'plist/version' - -module Plist -end
true
Other
Homebrew
brew
a6f25419aaaeb5fae3eb743d961ed7892ae86075.json
Update vendored gems - backports to 3.11.4 - plist to 3.4.0
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/plist-3.4.0/lib/plist/generator.rb
@@ -0,0 +1,230 @@ +# encoding: utf-8 + +# = plist +# +# Copyright 2006-2010 Ben Bleything and Patrick May +# Distributed under the MIT License +# + +module Plist + # === Create a plist + # You can dump an object to a plist in one of two ways: + # + # * <tt>Plist::Emit.dump(obj)</tt> + # * <tt>obj.to_plist</tt> + ...
true
Other
Homebrew
brew
a6f25419aaaeb5fae3eb743d961ed7892ae86075.json
Update vendored gems - backports to 3.11.4 - plist to 3.4.0
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/plist-3.4.0/lib/plist/parser.rb
@@ -11,41 +11,41 @@ # === Load a plist file # This is the main point of the library: # -# r = Plist::parse_xml( filename_or_xml ) +# r = Plist.parse_xml(filename_or_xml) module Plist -# Note that I don't use these two elements much: -# -# + Date elements are returned as DateTime objects. -# + Data elements ar...
true