Commit Graph
28 Commits
Author SHA1 Message Date
Max Howell d3b41f29e1 Pathname.ensure_writable
Yields after chmoding (if necessary), once block is complete restores permissions.
2011-03-12 11:55:04 -08:00
Adam Vandenberg d6f02b5a2c Allow underscore in github version numbers. 2010-11-07 11:25:20 -08:00
Michael Dippery 172eddd15e More .DS_Store ignoring
* Don't link .DS_Store files
* Don't list .DS_Store files in `brew info`

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-11-05 19:44:56 -07:00
Jamie Macey 030888b42f fix warnings: ambiguous first arg
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-10-30 14:47:44 -07:00
arlolra 314c54ff3e Handle dashed tags at github.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-10-28 21:19:42 -07:00
Max Howell f493853179 Pathname./ because it looks a lot better than + 2010-09-12 21:57:17 +01:00
lukas bdd131a6a5 Fixed recognition of versions like 'foobar-4.50-beta' in Pathname#version
Sphinx currently has a download name 'http://sphinxsearch.com/downloads/sphinx-1.10-beta.tar.gz', which homebrew currently can't correctly identify - with a small change to the regex for 'foobar-4.5.0-beta1' (make that trailing number optional) - it works like a charm.

Signed-off-by: David Höppner <0xffea@gmail.com>
2010-08-27 17:53:06 +02:00
Adam Vandenberg 760c1182c9 Move method back to Pathname. 2010-08-15 17:17:26 -07:00
Adam Vandenberg e719d94b48 Move Pathname.starts_with? into Pathname 2010-08-08 09:13:27 -07:00
Adam Vandenberg 64e026a550 Add Pathname.resolved_path 2010-07-25 12:07:35 -07:00
Adam Vandenberg 2dadd63190 Move method from ObserverPathnameExtension to extend/Pathname
* This method is generally useful, even without the Observer extensions.
2010-07-08 22:41:50 -07:00
Adam Vandenberg eab7053dda Add debian style names to version checker. 2010-07-06 13:17:50 -07:00
Adam Vandenberg 7220273b91 Pathname - fix RC version detection. 2010-07-04 14:10:04 -07:00
Adam Vandenberg 562fc5caac Update Pathname version checks.
* allow capital 'RC'
* allow 'stable' suffix
2010-07-04 11:02:54 -07:00
Jake Good 404cc2b4b4 More hashing refactoring to work with byte chunks
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-03-30 09:24:12 -07:00
Joshua Peek 74ec7a12fa fix github version parser with multidigit number
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-03-27 14:01:19 -07:00
Jake Good 3eb6c617da More effective use of incremental MD5 to eliminate loading entire tarball into memory
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-03-23 21:23:25 -07:00
Adam Vandenberg 8eefb17e2c Change the return value of Pathname.install.
The change to Pathname to support renaming changed the return value.
This commit puts it back, so the associated unit test passes again.
2010-03-08 23:42:01 -08:00
Max Howell 1104bda928 Fixes Pathname.install(:foo => :bar) to work when File.exist?(:bar) 2010-03-07 11:24:22 -08:00
Adam Vandenberg fabb640b06 Allow Pathname.install to take a Hash.
The keys of the hash are original file names, the values are new file
names. Originals are renamed, and then installed under the new name.
2010-03-07 11:24:22 -08:00
Adam Vandenberg e182e5f5b7 Move license block to separate LICENSE file. 2010-03-01 11:41:24 -08:00
Max Howell 4e772f2a34 Pathname.subdirs and Pathname.cd{} 2010-02-27 12:29:45 +00:00
Max Howell bc76879a64 Fix Pathname.install for relative symlinks
If you have a bunch of symlinks and they all point at one file and you use Pathname.install on them all the error checking would fail if the file was moved before the symlinks because the symlinks would then point at a non existent file.
2010-02-18 17:16:02 +00:00
Max Howell 3fcc55d90d Fix GitHub tarball version detection 2010-02-18 11:59:29 +00:00
Max Howell fc3915c4c9 Use full path to du
Fixes #354
2010-01-06 21:02:36 +00:00
Max Howell 270a1bcd9b Pathname.md5 method 2009-12-30 20:49:16 +00:00
Adam Vandenberg 4dcd83e6fe Also match -source tarballs. 2009-12-17 19:19:33 +00:00
Max Howell 0b192930f0 Some subdirs and renames to aid homebrew n00bs
The classes better reflect their contents. I'm sure this change may be
contentious, but I am a sucker for trying to create source bases that are easy
to get to grips with and easy to navigate.

brewkit.rb is now a deprecated file.
2009-10-15 16:51:53 +01:00