aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/requirement.rb
AgeCommit message (Collapse)Author
2017-07-30formula_installer: use default_formula for bottlesMike McQuaid
This was the original, intended functionality before this was broken in fe117bf79b244c42b7e4049d353c3c003eae4880. Fixes https://github.com/Homebrew/homebrew-core/issues/13680.
2017-06-10Autocorrect Rubocop Style/PerlBackrefs.Mike McQuaid
2017-05-15Use scoped RSpec matchers.Markus Reiter
2017-04-30Make `PATH` enumerable.Markus Reiter
2017-04-30Use `PATH` where possible.Markus Reiter
2017-04-22More deprecations.Mike McQuaid
Deprecate more methods. Internal APIs have been verified to be unused elsewhere and removed. External APIs have had deprecation methods added. Existing deprecations have been either upgraded to produce warnings or no longer deprecated and the reasoning documented.
2017-03-25formula_installer: tweak req formula additions.Mike McQuaid
Rather than just checking if a requirement's dependency is installed or not check if the requirement was actually satisfied by a particular formula rather than e.g. just having a `default_formula` defined.
2017-01-11requirement: get formula from satisfy.Mike McQuaid
If satisfy returns a `Pathname` from `which` then we can use that to infer a formula dependency from that `Requirement`.
2016-10-06“Homebrew Cask” -> “Homebrew-Cask”Markus Reiter
2016-09-27Merge pull request #1004 from apjanke/print-requirementsMike McQuaid
info: print requirements
2016-09-24info: include versions and other details in Requirements displayAndrew Janke
2016-09-24Fix Style/GuardClause.Markus Reiter
2016-09-23Style/Alias: Prefer `alias`.Markus Reiter
2016-09-23Fix DoubleNegation.Markus Reiter
2016-09-23Fix RuboCop CaseEquality.Markus Reiter
2016-09-17rubocop --auto-correct all hash-rocket usage.Mike McQuaid
2016-07-11requirement: more obvious error message.Mike McQuaid
Make it more obvious which class was unsatisfied to produce this error message.
2016-07-01requirement: update cask wordingDominyk Tiller
We now have "magic" to automatically handle `brew cask` and `brew bundle` calls without needing to tap those taps manually beforehand. Let's reflect that in this wording for consistency. Closes #427. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2016-01-13Fix typo [ci skip]Satoshi Ohmori
Closes Homebrew/homebrew#48008. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-03utils: add which_allXu Cheng
Similar to which, except it returns all of paths where binary is found. i.e. it's equivalent to `which -a`.
2015-12-15Allow multiple option_names in dep/reqs.Mike McQuaid
This means that dependencies can be merged but still maintain all their option names. Closes Homebrew/homebrew#46916. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-09-01remove Requirement#pour_bottle?Xu Cheng
It's never used since a0a93f1b3b7b2be9b8a319be91086ffe220f8e32. Closes Homebrew/homebrew#43462. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-20Requirement: support tap formula as default_formulaXu Cheng
Closes Homebrew/homebrew#43107. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-03Core files style updates.BrewTestBot
Closes Homebrew/homebrew#42354. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-06-07requirement: allow access default_formula directlyXu Cheng
2014-12-28requirement: add cask and download attributes.Mike McQuaid
Print out the message pointing to the Cask and/or download location too.a
2014-12-06Remove {start,stop}doc as we're using Yard now.Mike McQuaid
2014-11-12Fix Requirement equalityJack Nagel
2014-11-12Don't allocate arrays in Requirement#hashJack Nagel
2014-10-09Use alias_method instead of an extra ivarJack Nagel
2014-09-24Generate RDoc documentation.Mike McQuaid
This is currently still very messy and we probably want to work out the best way to declare what parts of our DSL/what files are "public". Still, even if this is a WIP I'd rather get something committed sooner rather than later and start iterating on this as a replacement for `example_formula.rb` and the formula cookbook. To test: ```bash cd $(brew --prefix)/Library/Homebrew && \ rdoc formula.rb requirement.rb utils.rb &&\ open doc/index.html ``` Closes Homebrew/homebrew#32470.
2014-08-14Remove two more unnecessary default argumentsJack Nagel
2014-07-07Eliminate some indirection in evaluating requirement env blocksJack Nagel
2014-07-07Don't set @env on instancesJack Nagel
2014-07-07Keep DSL related code in one placeJack Nagel
2014-07-03Replace ComparableSet with a Requirements collectionJack Nagel
2014-07-02Move require into method to avoid circular requireJack Nagel
There is a nasty circular dependency here: formula.rb requirement.rb extend/ENV.rb extend/ENV/shared.rb formula.rb Probably the information that the build environment needs from formula should be passed in at runtime, but that seems hard and I really just want to be able to run the tests with warnings turned on. :/
2014-07-01Always use class.name to build inspect stringsJack Nagel
2014-06-12Prefer self.class.name to self.class.to_sJack Nagel
2014-05-30Deprecate implicit build-time requirementsJack Nagel
2014-04-03requirement: add pour_bottle? method.Mike McQuaid
Allows disabling bottles from requirements.
2014-03-05Remove special X11 proxy depsJack Nagel
2014-02-27Eliminate mutation of Dependency objectsJack Nagel
2013-12-09Ensure option names are consistent for default formula requirementsJack Nagel
2013-08-19Use ENV.append_pathJack Nagel
2013-08-19No longer call ENV.userpaths! in requirementsJack Nagel
Instead we use which with a custom PATH.
2013-08-19Move common stuff to extend/ENV.rbJack Nagel
2013-06-27Fix some #eql? correctness issuesJack Nagel
The implementation of #eql? and #hash should ensure that if a.eql?(b), then a.hash == b.hash, but #eql? itself should not *depend* on #hash. For example, given class Thingy def eql? instance_of?(other.class) && hash == other.hash end def hash [name, *tags].hash end end if #hash produces a collision for different values of [name, *tags], two Thingy objects will appear to be eql?, even though this is not the case. Instead, #eql? should depend on the equality of name and tags directly.
2013-06-25Yield correct dependent when expanding requirementsJack Nagel
2013-06-24Requirement: callers are responsible for invoking #satisfied?Jack Nagel
This hack was necessary since requirements were not checked again in the forked build process, but now they are, and calling it again after the build environment has been set up can produce incorrect results. In fact, if it happens to return false the second time, the env modification will be skipped altogether.