aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/tab.rb
AgeCommit message (Collapse)Author
2016-11-20Replace Utils::JSON with corelib JSON calls.William Woodruff
2016-11-17formula: make cache clearing methods, *ahem*, clearerAlyssa Ross
2016-11-17tab: clear Formula.installed cache when created.Alyssa Ross
This was causing the flaky tests that #1508 started skipping. This is the second time that `Formula.installed`'s cache has bitten me with intermittent test failures, and I'd like it to be the last, so I've made it so the cache is cleared automatically when a tab is created. This _should_ mean that the cache is cleared any time it needs to be, with the exception of when a Keg is created artificially with no tab. I don't think there's anything I can do to automatically handle that use-case, though.
2016-10-24keg_relocate: refactor relocate_text_filesJosh Hagins
Replace relocate_text_files with three methods that clarify intent: replace_locations_with_placeholders, replace_placeholders_with_locations and replace_text_in_files, the first two calling the third.
2016-10-24keg_relocate: cache files rewritten during brew bottleJosh Hagins
`brew bottle` replaces instances of the Homebrew prefix, cellar, and repository with placeholders in all text files. Cache these files in INSTALL_RECEIPT.json so that we don't have to check every single text file for placeholders on install.
2016-10-11tab: don't interpret unknown deps as no depsAlyssa Ross
2016-09-23Fix Style/IfUnlessModifier.Markus Reiter
2016-09-19Save runtime dependencies in INSTALL_RECEIPT.jsonAlyssa Ross
Fixes #930
2016-09-17rubocop --auto-correct all remaining files.Mike McQuaid
But remove some manual `.freeze`s on constants that shouldn't be constants.
2016-09-09Merge pull request #863 from penman/preserve_aliasMike McQuaid
Save aliases in INSTALL_RECEIPT
2016-09-07Explain more Tab instantiation methodsAlyssa Ross
2016-09-07Explain Tab.create vs Tab.for_formulaAlyssa Ross
This was really confusing to me, and I had to go looking through the Tab history, where I found a comment explaining it that has since been deleted. This wasn't a great experience. This commit basically adds that explanation back in.
2016-09-07Combine Tab alias_path with source.pathAlyssa Ross
2016-09-05More consistent styleAlyssa Ross
2016-09-05Update Tap for alias_pathAlyssa Ross
2016-09-05Replace install_name/install_ref with alias_pathAlyssa Ross
2016-09-03Preserve alias when installing formulaeAlyssa Ross
Part of #567
2016-08-18Use epochs in tabsVlad Shablinsky
2016-08-13tab: fix Tab.for_formula versions (#687)Uladzislau Shablinski
versions should be initialized even if formula is not installed
2016-08-06tab: allow to store versionsVlad Shablinsky
2016-07-29Add missing development_tools requires.Mike McQuaid
2016-07-29tab: use the correct default compiler.Mike McQuaid
2016-07-17Tab#for_formula: using Formula#installed_prefixXu Cheng
Closes #529. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-07-15tab: add missing methodsXu Cheng
This makes `Tab` compatible with `BuildOptions`.
2016-07-08tab: eliminate redundant 'Tab.create' arguments (#468)Martin Afanasjew
The `build` and `source_modified_time` arguments are always coming from the matching attributes of the `Formula` instance. Thus query `formula` for them instead of passing them individually.
2016-07-07Use GitRepositoryExtension for HOMEBREW_REPOSITORYMartin Afanasjew
2016-05-08tab: fix bad default_compiler referenceMartin Afanasjew
Partially addresses #219. Related to changes introduced in #168.
2016-05-05tab: include installation date in string representationZhiming Wang
This way brew info will include the installation date for each installed version. Closes #196. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-04-02various: Homebrew/core is the core tapXu Cheng
Also make `Homebrew/homebrew` as an alias of this tap to keep backward compatibility.
2016-01-15tab: add source modified time metadataXu Cheng
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-12-09Tab#tap: returns tap objectXu Cheng
2015-11-29tab: use installed_prefixesXu Cheng
2015-11-27tab: use cache to avoid rereading the same files.Mike McQuaid
Closes Homebrew/homebrew#46400. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03Core files style updates.BrewTestBot
Closes Homebrew/homebrew#42354. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-02tab: check mxcl/master synonym unconditionallyXu Cheng
2015-08-02handle mxcl/master synonym inside Tab#from_file_contentXu Cheng
2015-07-31tab: set stable as default specXu Cheng
Fixes Homebrew/homebrew#42297.
2015-07-31Tab: store spec of formulaXu Cheng
2015-06-27Stdlib check should use the compiler used to build the bottleJack Nagel
2015-06-27tab: tweak options info outputDominyk Tiller
Closes Homebrew/homebrew#41101. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-06-02tab: allow load from file contentXu Cheng
2015-05-27tab: add method to set tap.Mike McQuaid
2015-03-14Switch to a more useful serialization of tap infoJack Nagel
Closes Homebrew/homebrew#37383.
2015-03-11add bottle? method to TabTim D. Smith
Closes Homebrew/homebrew#37621.
2015-03-07Decouple the install receipt from ARGVJack Nagel
2015-02-21Switch to string keysJack Nagel
The OpenStruct initializer accepts both symbols and strings, but any nested hashes will only allow access via string keys, so let's always construct the object with strings for consistency.
2015-02-21Eliminate conditionalJack Nagel
2015-02-21Set the path on "fake" install receiptsJack Nagel
2015-02-20Compiler is always a stringJack Nagel