| Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
Digest::SHA2 wasn't exposed under that name in older versions of Ruby.
|
|
Fix those that can be done so without tearing Homebrew to pieces and
remove the comments for those that can never be done.
|
|
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.
|
|
Added tests in keg_test and pathname_test was
moved into keg_spec and pathname_spec.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Closes #239.
|
|
* 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>
|
|
i.e. Ignoring the file's directory for version parsing.
Closes Homebrew/homebrew#50568.
Signed-off-by: Xu Cheng <xucheng@me.com>
|
|
|
|
Closes Homebrew/homebrew#49845.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
|
|
* 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.
|
|
|
|
These self references are unnecessary.
|
|
Closes https://github.com/Homebrew/homebrew/issues/47532
Closes https://github.com/Homebrew/homebrew-dupes/issues/542
|
|
* 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.
|
|
|
|
especially for directory instances of `Pathname` class and all
instances of `Keg` class.
|
|
|
|
|
|
Fixes https://github.com/Homebrew/homebrew/issues/44320#issuecomment-143951973
Closes Homebrew/homebrew#44440.
Signed-off-by: Xu Cheng <xucheng@me.com>
|
|
And remove the documented stuff from the `example-formula.rb`.
Closes Homebrew/homebrew#43241.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
|
|
Closes Homebrew/homebrew#42354.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
|
|
This can happen when read permission is denied.
Fixes Homebrew/homebrew#41925.
Closes Homebrew/homebrew#42011.
Signed-off-by: Xu Cheng <xucheng@me.com>
|
|
Closes Homebrew/homebrew#40486.
Signed-off-by: Xu Cheng <xucheng@me.com>
|
|
This reverts commit 02fba8ce25f1e34c981cb30197e2b4711f88b266.
|
|
Closes Homebrew/homebrew#40365.
Signed-off-by: Xu Cheng <xucheng@me.com>
|
|
|
|
Closes Homebrew/homebrew#38413.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
|
|
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>
|
|
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>
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
Closes Homebrew/homebrew#37418.
Signed-off-by: Xu Cheng <xucheng@me.com>
|
|
Closes Homebrew/homebrew#37180.
Signed-off-by: Xu Cheng <xucheng@me.com>
|