aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
AgeCommit message (Collapse)Author
2014-08-14Fix mktmp to be generic as-per SUS/BSD.xxxajk
Closes #31586. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-08-09Pull effective arch detection into a methodJack Nagel
2014-08-06Use opt_binJack Nagel
2014-08-03Add another TODOJack Nagel
2014-08-03Remove an is_a checkJack Nagel
2014-07-29Pathname.binreadAdam Vandenberg
2014-07-27backport binwrite from Ruby 2.1+Adam Vandenberg
2014-07-27Rename write_binary to binwriteAdam Vandenberg
2014-07-27add Pathname.write_binaryAdam Vandenberg
2014-07-18Check nil? || empty? instead of to_s.empty?Jack Nagel
2014-07-18Drop pointless to_s callJack Nagel
2014-07-17Remove commentary from error messagePhillip Calvin
It might be best not to use the word "lame" here, as it's often considered to be an ableist slur. Closes #30915. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-07-13nudge formattingAdam Vandenberg
Needed for Emacs' ruby highlighting to work past this point in the file.
2014-07-13No need to cache lookup that is only done onceJack Nagel
2014-07-10Raise Errno::ENOENT instead of RuntimeError from Pathname#installJack Nagel
2014-07-10Make comment in Pathname#install more accurateJack Nagel
2014-07-05Remove a RUBY_VERSION check, add a FIXME commentJack Nagel
2014-07-03stop Xcode tools from overriding deps when CLT is not installedCamillo Lugaresi
Closes #30641. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-07-03Replace ComparableSet with a Requirements collectionJack Nagel
2014-07-02Accept -s as shorthand for --build-from-sourceJack Nagel
This is experimental and will be reverted if it causes problems. Closes #30392.
2014-07-02Move constants so we don't have to load all of ENV to get themJack Nagel
2014-07-01Replace find_all + each with grepJack Nagel
2014-06-26Use canonical_name in the exception messageJack Nagel
2014-06-26Use canonical_name when checking LinkedKegs and optJack Nagel
name is the user-provided string and may be an alias, path, or URL.
2014-06-26The rack variable is only used inside the block nowJack Nagel
2014-06-26Remove a dead branch from ARGV.kegsJack Nagel
rack cannot be nil at the point where FormulaUnavailableError is raised, so we don't need a branch to deal with that.
2014-06-26Simplify NoSuchKegError conditionJack Nagel
dirs will be empty if the rack directory does not exist.
2014-06-22Use a more descriptive variable nameJack Nagel
2014-06-22Use Pathname#splitJack Nagel
2014-06-22Move the compiler-selecting methods to ENV/sharedShaun Jackman
Closes #30210. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-06-22Move deprecated Formula class methods to compatJack Nagel
These have all been moved to Formulary.
2014-06-20Remove ARGV.filter_for_dependenciesJack Nagel
2014-06-20Decouple spec selection from ARGVJack Nagel
2014-06-17Add explicit mkpath to Pathname#write_env_scriptJack Nagel
2014-06-17Add explicit mkpath to Pathname#write_jar_scriptJack Nagel
2014-06-17Add explicit mkpath to Pathname#write_exec_scriptJack Nagel
2014-06-17Make signature of Pathname#write compatible with Ruby 2.1+Jack Nagel
2014-06-12Deprecate Pathname#cp and Pathname#chmod_RJack Nagel
As far as I can tell these methods have only ever been used in the test suite. Since Formula includes FileUtils, it is generally simpler (and in the case of cp, more readable) to use the FileUtils methods directly. Closes #30081.
2014-06-12Deprecate Pathname#/ with non-string/non-pathname argumentsJack Nagel
Ruby 2.2 will define Pathname#/ as a simple alias of Pathname#+. In practice, this means that it will raise a TypeError unless the argument responds to to_path or to_str. Currently we blindly convert the argument to a string using to_s, so deprecate this in the interest of matching the upstream behavior. In the future we can replace this with alias_method :/, :+ unless method_defined?(:/) Closes #30079.
2014-06-11Use Digest#file if it's availableJack Nagel
2014-06-10Stop caching Superenv.binJack Nagel
It is not a hotspot and causes an ordering dependency in the tests.
2014-06-09Fix visibility of FileUtils extension methodsJack Nagel
2014-06-09Stop exposing mktemp as a public method on formula objectsJack Nagel
2014-06-09Stop joining symbols to pathnamesJack Nagel
Ruby 2.2's native Pathname#/ accepts only string-like objects.
2014-06-08Just access the ivar directlyJack Nagel
2014-06-08Work around encoding issue in Pathname#inspect on Ruby 2.0Jack Nagel
Pathname#inspect on Ruby 2.0 throws away the encoding of the object's underlying string and returns a string tagged as ASCII-8BIT. If you simply write puts Pathname.new("some string with non-ascii bytes").inspect no error will be raised, because the implementation of Pathname#inspect does not call into Object#inspect. However, if you wrap that pathname object in an array first, then puts [Pathname.new("some string with non-ascii bytes")].inspect will raise Encoding::CompatibilityError: "inspected result must be ASCII only or use the same encoding with default external". Raising an error in this codepath is new in Ruby 2.0, and this specific bug is fixed in Ruby 2.1. I've opened a bug upstream: https://bugs.ruby-lang.org/issues/9915 Fixes #29947.
2014-06-07metafiles: simplify #copy? furtherJack Nagel
2014-06-07Simplify Pathname#install_metafilesJack Nagel
2014-06-07Eliminate FORMULA_META_FILES constantJack Nagel
2014-06-03Use a || bJack Nagel