aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend/pathname.rb
AgeCommit message (Collapse)Author
2018-02-11write_jar_script: add java version optionAndrew Janke
2018-01-19pathname: fix rmdir_if_possible with mount pointsilovezfs
Attempting to rmdir a directory that is a mount point results in EBUSY, not EACCES or ENOENT, so also rescue EBUSY in rmdir_if_possible.
2018-01-03pathname: Use CI env variable rather than TRAVISShaun Jackman
2017-12-03Implement linkage for LinuxShaun Jackman
2017-11-27More environment filtering fixesMike McQuaid
- Make `brew pull` pass through Git environment variables - Whitelist all `TRAVIS_` variables.
2017-11-13environment filtering: pass through TRAVIS vars.Mike McQuaid
We use these internally so let's map them to `HOMEBREW_` variables.
2017-11-07pathname: improvements, cleanups, and new methodsMaxim Belkin
- atomic_write: close file before renaming to prevent error: 'Device or resource busy' - ensure_writable: preserve executable bit - new elf? and dynamic? methods
2017-10-18Use “squiggly” heredocs.Markus Reiter
2017-10-08Clean up code style and remove `.rubocop_todo.yml`.Markus Reiter
2017-08-22upgrade more urls to httpsViktor Szakats
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>