Jack Nagel
618b894c3e
Replace ComparableSet with a Requirements collection
2014-07-03 14:50:57 -05:00
Jack Nagel
3ad6fc6636
Don't invoke mdfind in the tests
2014-07-03 13:02:26 -05:00
Jack Nagel
191e017d56
Add inspect to mock updater so test failures are readable
2014-07-03 12:57:16 -05:00
Jack Nagel
ef9f6ec4af
Accept -s as shorthand for --build-from-source
...
This is experimental and will be reverted if it causes problems.
Closes Homebrew/homebrew#30392 .
2014-07-02 23:15:22 -05:00
Jack Nagel
32d84377d5
Move constants so we don't have to load all of ENV to get them
2014-07-02 21:58:43 -05:00
Jack Nagel
2e44ffe80f
Move require into method to avoid circular require
...
There is a nasty circular dependency here:
formula.rb
requirement.rb
extend/ENV.rb
extend/ENV/shared.rb
formula.rb
Probably the information that the build environment needs from formula
should be passed in at runtime, but that seems hard and I really just
want to be able to run the tests with warnings turned on. :/
2014-07-02 21:27:19 -05:00
Jack Nagel
cabc451ca8
Add min_version to X11Dependency inspect string
2014-07-02 15:45:24 -05:00
Jack Nagel
9106f221cb
Add regression test for decf7acced44bb156ba18677f55609b19ff6ca5a
2014-07-02 15:22:32 -05:00
Jack Nagel
4cbae37d62
Don't expose the dependency cache data structure
2014-07-02 15:15:59 -05:00
Jack Nagel
07e00061a7
Pass relative paths into link exceptions
2014-07-02 10:48:18 -05:00
Jack Nagel
fbe8dc8fc6
Add a test that exercises the code in X11Dependency#satisfied?
2014-07-02 00:25:01 -05:00
Jack Nagel
4743105216
Fix typo
2014-07-01 23:56:00 -05:00
Jack Nagel
330e18bb17
Use predicate methods instead of inspecting the tags array
2014-07-01 21:57:30 -05:00
Jack Nagel
177eee419a
Replace find_all + each with grep
2014-07-01 21:39:15 -05:00
Jack Nagel
fe3e802c50
X11Dependency objects: fix hash equality
2014-07-01 21:26:41 -05:00
Jack Nagel
fc2d403a82
X11Dependency: use Version objects
2014-07-01 21:26:41 -05:00
Jack Nagel
3f6827374f
Use to_a definition from Enumerable
2014-07-01 21:26:41 -05:00
Jack Nagel
804872fc94
Use sort_by in missing deps doctor check
2014-07-01 20:11:55 -05:00
Jack Nagel
5375f2397e
Better Formula#inspect string
2014-07-01 18:39:15 -05:00
Jack Nagel
fbefa76ce2
Always use class.name to build inspect strings
2014-07-01 18:39:15 -05:00
Jack Nagel
6a1ad36fbd
Use sort_by in PrettyListing
2014-07-01 13:33:49 -05:00
Jack Nagel
a6c514024b
Flesh out linking tests
2014-07-01 09:01:06 -05:00
Jack Nagel
c2228c0d0f
Remove default argument from make_relative_symlink
...
All callers of this method now pass a mode object.
2014-06-30 22:14:18 -05:00
Jack Nagel
4ea3997d9c
Pass the mode through the optlink method
2014-06-30 22:14:09 -05:00
Jack Nagel
548d66be59
Simplify optlink method
...
delete/unlink on a directory is the same operation as rmdir.
2014-06-30 22:14:07 -05:00
Jack Nagel
c0baad7e68
Add tests around opt links
2014-06-30 22:14:06 -05:00
Jack Nagel
a3958c6d8b
Use formula opt shortcuts
2014-06-30 20:31:14 -05:00
Jack Nagel
d792b64655
Add methods for manipulating the opt record
2014-06-30 20:31:13 -05:00
Jack Nagel
0744ed9410
Store the opt record so we don't have to keep reconstructing it
2014-06-30 20:30:50 -05:00
Jack Nagel
30e273c2d1
Group methods that operate on the linked keg record
2014-06-30 20:30:02 -05:00
Jack Nagel
4c05d411f3
Add a method for getting the repo HEAD
2014-06-30 19:18:28 -05:00
Jack Nagel
c904c71792
Fix tab tests
2014-06-30 08:54:47 -05:00
Jack Nagel
d083efdbda
Don't mutate the tab object
2014-06-29 23:18:09 -05:00
Jack Nagel
ac687d3b5f
Remove explicit self
2014-06-29 22:26:15 -05:00
Jack Nagel
07171f5527
Test that the tab round-trips through JSON
2014-06-29 22:18:44 -05:00
Jack Nagel
cd91709120
Fix typo in tab test setup
...
This is one of the many problems with using OpenStruct.
2014-06-29 22:18:44 -05:00
Jack Nagel
391bc4c981
Normalize paths before calling Tab.from_file
2014-06-29 21:50:08 -05:00
Jack Nagel
4d11def53c
Add tests documenting install receipt loading behavior
2014-06-29 21:49:34 -05:00
Jack Nagel
34db1bd1ef
Remove test that is now covered by tab tests
2014-06-29 19:27:28 -05:00
Jack Nagel
b0cffe4a7c
explicitly initialize stdlib
2014-06-29 00:56:29 -05:00
Jack Nagel
e2e5839a9a
Get the Tab class under test
2014-06-29 00:55:56 -05:00
Jack Nagel
fde884e319
Use TEST_SHA1 constant in checksum tests
2014-06-28 23:46:23 -05:00
Jack Nagel
58e5ac6835
Implement directory? on keg
...
Fixes Homebrew/homebrew#30484 .
2014-06-28 19:43:52 -05:00
Jack Nagel
7cd31377a4
Convert update report to use composition
2014-06-27 21:58:15 -05:00
Jack Nagel
346fa5098f
Simplify valid_formula_location? method
2014-06-27 21:58:15 -05:00
Jack Nagel
982a165e52
Use the keg object to manipulate the linked keg record
2014-06-27 16:20:17 -05:00
Jack Nagel
2de2d64907
Give more detailed information about link errors at install-time
2014-06-27 16:10:42 -05:00
Jack Nagel
35267d7c22
Disable "ignore" and "irb" debugger options unless we have a continuation
...
Fixes Homebrew/homebrew#30472 .
2014-06-27 15:19:30 -05:00
Jack Nagel
c5fcdb1f21
Convert to pathname before calling relative_path_from
...
Fixes Homebrew/homebrew#30494 .
2014-06-27 14:45:20 -05:00
Jack Nagel
70f22fc31e
Use canonical_name in the exception message
2014-06-26 22:59:45 -05:00