aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend/pathname.rb
AgeCommit message (Collapse)Author
2017-06-02Re-revert "Fix operator spacing."Markus Reiter
2017-06-01Revert "Fix operator spacing."ilovezfs
2017-05-31Fix operator spacing.Markus Reiter
2017-05-30Pathname: use Digest::SHA256 aliasMisty De Meo
Digest::SHA2 wasn't exposed under that name in older versions of Ruby.
2017-04-23Fix and remove various TODOs.Mike McQuaid
Fix those that can be done so without tearing Homebrew to pieces and remove the comments for those that can never be done.
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-02-27Merge branch 'master' into exclude-executable-metafilesNaoto Kaneko
Added tests in keg_test and pathname_test was moved into keg_spec and pathname_spec.
2017-02-24Extend #ds_file? in PathnameNaoto Kaneko
2017-02-23Add integration test helper methods.Markus Reiter
2017-01-06pathname: make compute_disk_usage handle symlinks.Mike McQuaid
2016-11-13No if/unless-modifier on multiline blocks.Markus Reiter
2016-09-23Style/Alias: Prefer `alias`.Markus Reiter
2016-09-23Fix Lint/NonLocalExitFromIterator.Markus Reiter
2016-09-13extend/pathname: fix Rubocop warnings.Mike McQuaid
2016-08-24Merge Cask’s `Pathname` extension with Homebrew’s.Markus Reiter
2016-08-18remove ruby 1.8 compatible codesXu Cheng
2016-05-15Synchronize counts for link and unlink (#242)Paolo G. Giarrusso
Closes #239.
2016-04-01Pathname: improve compute_disk_usageXu Cheng
* Count .DS_Store disk usage but not file count. * Count symlink's own disk usage instead of ignoring it. * Count hardlinks disk usage only once. * Add testcase. Closes Homebrew/homebrew#50563. Closes Homebrew/homebrew#50566. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-03-31Pathname#version: only parse version from file basenameXu Cheng
i.e. Ignoring the file's directory for version parsing. Closes Homebrew/homebrew#50568. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-03-20deprecate SHA1Xu Cheng
2016-03-08install_renamed: handle recursive installs.Mike McQuaid
Closes Homebrew/homebrew#49845. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-02-21pathname: add append_lines methodDominyk Tiller
* Blocks writing of new files via accidental typos, etc, which the normal open("blah", "a") doesn't. * Where files don't exist they should ideally be using `(buildpath/"dog").write` instead of open("blah", "a") already. * It's a bit less cluttered looking if you need several writes to different files in the formula, IMO.
2016-01-03pathname: remove redundant spacingDominyk Tiller
2016-01-03pathname: become less introspectiveDominyk Tiller
These self references are unnecessary.
2015-12-30pathname: don't try to calculate symlink size.Mike McQuaid
Closes https://github.com/Homebrew/homebrew/issues/47532 Closes https://github.com/Homebrew/homebrew-dupes/issues/542
2015-12-30pathname: improve compute_disk_usageXu Cheng
* Avoid parallel assignment. * Use Pathname#size instead of File#size * Use Pathname#directory? instead of File#directory? * Use basename to check `.DS_Store`. Original regex has poor performance, and may match with incorrect file.
2015-12-30pathname: fix use of `find` on Ruby 1.8.Mike McQuaid
2015-12-30pathname: store file count and disk usage.Rakesh
especially for directory instances of `Pathname` class and all instances of `Keg` class.
2015-11-17move more deprecated methods to compat folderXu Cheng
2015-10-18move mach.rb to os/mac/mach.rbXu Cheng
2015-10-08ObserverPathnameExtension: only puts first 100 operationsXu Cheng
Fixes https://github.com/Homebrew/homebrew/issues/44320#issuecomment-143951973 Closes Homebrew/homebrew#44440. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-29More API documentation.Mike McQuaid
And remove the documented stuff from the `example-formula.rb`. Closes Homebrew/homebrew#43241. 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-07-22Pathname#abv: handle the case `du` returns empty stringXu Cheng
This can happen when read permission is denied. Fixes Homebrew/homebrew#41925. Closes Homebrew/homebrew#42011. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-06-11remove Pathname#find_formulaXu Cheng
Closes Homebrew/homebrew#40486. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-06-07Revert "Pathname#version: support bottle version"Xu Cheng
This reverts commit 02fba8ce25f1e34c981cb30197e2b4711f88b266.
2015-06-04Pathname#version: support bottle versionXu Cheng
Closes Homebrew/homebrew#40365. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-04-26Add support for extracting LHA archivesMisty De Meo
2015-04-07pathname: prune unnecessary whitespaceDominyk Tiller
Closes Homebrew/homebrew#38413. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-03-31pathname: remove hyphen from BOTTLE_EXTNAME_RXShaun Jackman
A hyphen is not a valid character in a Ruby symbol, and the bottle tag should be a valid Ruby symbol for its use in the bottle stanza. Closes Homebrew/homebrew#38235. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-03-31pathname: Add [-0-9] to BOTTLE_EXTNAME_RXShaun Jackman
Change [a-z_]+(32)? to [-a-z0-9_]+ The Linuxbrew bottle tag is x86_64-linux. Closes Homebrew/homebrew#32687. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-03-26Pass around only pathname objectsJack Nagel
2015-03-26Always yield a path from install_p extensionJack Nagel
2015-03-25Combine assignmentsJack Nagel
2015-03-24Make install_p and install_symlink_p privateJack Nagel
2015-03-24Always pass basename to install_symlink_pJack Nagel
2015-03-24Always pass basename to install_pJack Nagel
Currently, when called with one argument, dst is set to self, i.e. the directory into which the source file should be moved. When called with a second argument (for renames), dst is the full path, including the basename, to the moved file. Instead, let's always pass the full path, which means we can remove the branching logic around computing dst.
2015-03-23Go through regular logic when installing a fileJack Nagel
2015-03-06test-bot pathname: use Utils.popen_read instead of backticksXu Cheng
Closes Homebrew/homebrew#37418. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-02-25pathname: skip directory in env_script_all_filesXu Cheng
Closes Homebrew/homebrew#37180. Signed-off-by: Xu Cheng <xucheng@me.com>