Jack Nagel
4b6abc7da2
Use assert_includes
2014-06-18 20:34:10 -05:00
Jack Nagel
58a75b0f71
Use assert_predicate
2014-06-18 20:34:09 -05:00
Jack Nagel
06305e6211
Switch to Minitest
2014-06-18 20:34:09 -05:00
Jack Nagel
89d74ec475
Move test helpers into Homebrew::TestCase
2014-06-18 20:32:51 -05:00
Jack Nagel
982e9239b8
Use a custom test class so we can avoid monkeypatching
2014-06-18 20:32:51 -05:00
Jack Nagel
55950bec59
bottle: cd to the repository before committing
2014-06-18 19:31:18 -05:00
Jack Nagel
4fd63dc4f8
Expose inreplace as a class method
2014-06-18 19:25:35 -05:00
Marc Sowen
ce78b11710
Modified tap regex to support formulas with a +-sign, e.g. gtk+.rb
...
Fixes Homebrew/homebrew#30204 .
Closes Homebrew/homebrew#30217 .
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-06-17 22:47:58 -05:00
Jack Nagel
53afdae10e
Use Pathname#subdirs
2014-06-17 22:12:46 -05:00
Jack Nagel
c73baa39cb
Add explicit mkpath to Pathname#write_env_script
2014-06-17 21:51:45 -05:00
Jack Nagel
5cbc5437f5
Add explicit mkpath to Pathname#write_jar_script
2014-06-17 21:51:45 -05:00
Jack Nagel
d96f15e324
Add explicit mkpath to Pathname#write_exec_script
2014-06-17 21:51:45 -05:00
Jack Nagel
b2c42fc63c
Make signature of Pathname#write compatible with Ruby 2.1+
2014-06-17 12:14:51 -05:00
Mike McQuaid
40f552f891
connect: redact formula, move to boneyard.
...
Closes Homebrew/homebrew#30028 .
2014-06-17 08:06:28 +01:00
Jack Nagel
9b4bb3d9e4
Fix retry condition when auto-tapping deps
...
Fixes Homebrew/homebrew#30212 .
2014-06-17 00:06:10 -05:00
Adam Vandenberg
ff047a88a5
Move aplus to the boneyard
...
Does not compile with modern compilers and has not been updated
since 2008.
Closes Homebrew/homebrew#30040 .
2014-06-16 20:27:36 -07:00
Jack Nagel
c6d75bfcec
Move head-only checks to cmd/install
...
Fixes Homebrew/homebrew#30084 .
Closes Homebrew/homebrew#30203 .
2014-06-16 18:39:59 -05:00
Jack Nagel
9d030f8397
Combine conditionals
2014-06-16 16:58:13 -05:00
Jack Nagel
be1822dd72
Place alias adjacent to aliased method
2014-06-16 16:40:09 -05:00
Jack Nagel
ff2d8fece3
Remove unused method alias
...
Unlike CompilerFailure, the interface of Compiler is entirely internal,
so we don't need to maintain compatibility with anything.
2014-06-16 16:39:07 -05:00
Jack Nagel
344f77e179
Don't load unused compat files for tests
2014-06-16 14:32:24 -05:00
Jack Nagel
3b3c03159a
Remove compat/brewkit
...
Formulae from the "brewkit" era are no longer compatible with the
Formula class.
This file was (unintentionally) removed from the $LOAD_PATH quite
a while ago, and nobody has complained, so remove it.
2014-06-16 13:58:54 -05:00
Jack Nagel
86942aeaee
Remove an internal method from compat
2014-06-16 13:53:30 -05:00
Jack Nagel
f3817b58ee
install: move requires to top of file
2014-06-16 13:36:17 -05:00
Jack Nagel
e91f359a56
Remove an unnecessary use of ARGV.build_head?
2014-06-15 23:31:58 -05:00
Jack Nagel
5c24876d02
Fix audit suggestion
2014-06-15 23:28:06 -05:00
Jack Nagel
6e1450e974
Handle illegal constant names when fetching remote formulae
2014-06-15 20:23:20 -05:00
Adam Vandenberg
9c4d309a80
readall: fix permissions
2014-06-15 16:21:28 -07:00
Adam Vandenberg
53826bdb0e
Migrate readall
2014-06-15 15:48:14 -07:00
Jack Nagel
c8fd1214bd
Revert "Only do formula class sanity checks once"
...
This reverts commit ace78b1f3a59a893c7068e485555acf792470080.
Fixes Homebrew/homebrew#30154 .
2014-06-14 16:04:38 -05:00
Ben Hale
014ac21193
Remove cloudfoundry-cli
...
This change removes the cloudfoundry-cli formula from the repository.
It will now be available from pivotal/tap tap.
Closes Homebrew/homebrew#30105 .
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-06-14 09:35:17 -05:00
Jack Nagel
4b07dbbf78
Only define intel family test on intel CPU
2014-06-13 16:32:26 -05:00
Jack Nagel
1b9aed4025
Always pass path to formula constructor
2014-06-12 23:14:01 -05:00
Jack Nagel
d3ad1212fb
Make compiler objects directly
2014-06-12 23:13:17 -05:00
Jack Nagel
718b6f8b0c
No need to send, just call the method
2014-06-12 21:47:36 -05:00
Jack Nagel
4c0d2c2bfb
Handle failures in temporary_install better
2014-06-12 21:33:55 -05:00
Jack Nagel
1beefdb5d0
Remove repeated test code
2014-06-12 21:31:51 -05:00
Jack Nagel
e9cf30eb2c
Support older Minitest constant
2014-06-12 21:28:00 -05:00
Jack Nagel
3f3ba8462e
Always expand __FILE__
2014-06-12 18:14:48 -05:00
Jack Nagel
8c2db70cf8
Always pass a path to formula constructor in tests
2014-06-12 17:58:12 -05:00
Jack Nagel
59981c5b4c
Move a test class that is only used once into the test
2014-06-12 17:58:12 -05:00
Jack Nagel
a50f09c343
Remove an extra slash in file:// URLs in tests
2014-06-12 17:58:12 -05:00
Jack Nagel
9a554f5f4b
Use example.com as domain in tests
2014-06-12 17:58:12 -05:00
Jack Nagel
4f476d7066
Remove dummy method
2014-06-12 17:58:12 -05:00
Jack Nagel
502078099f
Prefer self.class.name to self.class.to_s
2014-06-12 16:13:07 -05:00
Jack Nagel
4651b5214f
Remove a const_defined? check
2014-06-12 16:09:03 -05:00
Shaun Jackman
ae3e567daa
Linuxbrew: Use xdg-open
...
Closes Homebrew/homebrew#29817 .
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-06-12 13:11:05 -05:00
Jack Nagel
96195295a3
Deprecate Pathname#cp and Pathname#chmod_R
...
As far as I can tell these methods have only ever been used in the test
suite.
Since Formula includes FileUtils, it is generally simpler (and in the
case of cp, more readable) to use the FileUtils methods directly.
Closes Homebrew/homebrew#30081 .
2014-06-12 09:00:58 -05:00
Jack Nagel
faaa622820
Deprecate Pathname#/ with non-string/non-pathname arguments
...
Ruby 2.2 will define Pathname#/ as a simple alias of Pathname#+.
In practice, this means that it will raise a TypeError unless the
argument responds to to_path or to_str.
Currently we blindly convert the argument to a string using to_s, so
deprecate this in the interest of matching the upstream behavior. In the
future we can replace this with
alias_method :/, :+ unless method_defined?(:/)
Closes Homebrew/homebrew#30079 .
2014-06-12 09:00:51 -05:00
Jack Nagel
6eb7e0c27f
Eliminate an uninitialized ivar warning
2014-06-11 21:34:09 -05:00