aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/testball.rb
diff options
context:
space:
mode:
authorJack Nagel2012-08-07 15:19:08 -0500
committerJack Nagel2012-08-09 23:56:54 -0500
commitf5eaef0aeef134468f3681962d4bf2934ec015d3 (patch)
tree3be1f424277c83fa6c675f07f43a8435c67a9f44 /Library/Homebrew/test/testball.rb
parent2104510b63a6233a1fdac4b7c6b6c12a5285bbf7 (diff)
downloadbrew-f5eaef0aeef134468f3681962d4bf2934ec015d3.tar.bz2
Deprecate ancient formula syntax
Closes Homebrew/homebrew#13444. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Homebrew/test/testball.rb')
-rw-r--r--Library/Homebrew/test/testball.rb29
1 files changed, 7 insertions, 22 deletions
diff --git a/Library/Homebrew/test/testball.rb b/Library/Homebrew/test/testball.rb
index 66036d927..c7118d3ee 100644
--- a/Library/Homebrew/test/testball.rb
+++ b/Library/Homebrew/test/testball.rb
@@ -3,8 +3,9 @@ require 'formula'
class TestBall < Formula
# name parameter required for some Formula::factory
def initialize name=nil
- @url="file:///#{TEST_FOLDER}/tarballs/testball-0.1.tbz"
@homepage = 'http://example.com/'
+ @stable ||= SoftwareSpec.new
+ @stable.url "file:///#{TEST_FOLDER}/tarballs/testball-0.1.tbz"
super "testball"
end
def install
@@ -21,24 +22,21 @@ class TestBallWithRealPath < TestBall
end
class TestBallWithMirror < Formula
- # `url` is bogus---curl should fail to download it. The mirror is fine
- # though.
url "file:///#{TEST_FOLDER}/bad_url/testball-0.1.tbz"
mirror "file:///#{TEST_FOLDER}/tarballs/testball-0.1.tbz"
def initialize name=nil
- @homepage = 'http://example.com/'
super "testballwithmirror"
end
end
class ConfigureFails < Formula
# name parameter required for some Formula::factory
+ url "file:///#{TEST_FOLDER}/tarballs/configure_fails.tar.gz"
+ version '1.0.0'
+ md5 '9385e1b68ab8af68ac2c35423443159b'
+
def initialize name=nil
- @url="file:///#{TEST_FOLDER}/tarballs/configure_fails.tar.gz"
- @homepage = 'http://example.com/'
- @version = '1.0.0'
- @md5 = '9385e1b68ab8af68ac2c35423443159b'
super "configurefails"
end
@@ -49,8 +47,7 @@ end
class TestCompilerFailures < Formula
def initialize name=nil
- @url="file:///#{TEST_FOLDER}/tarballs/testball-0.1.tbz"
- @homepage = 'http://example.com/'
+ @stable = SoftwareSpec.new "file:///#{TEST_FOLDER}/tarballs/testball-0.1.tbz"
super "compilerfailures"
end
end
@@ -120,18 +117,6 @@ class SpecTestBall < Formula
end
end
-class AncientSpecTestBall < Formula
- @homepage='http://example.com'
- @url='file:///foo.com/testball-0.1.tbz'
- @md5='060844753f2a3b36ecfc3192d307dab2'
- @head='https://github.com/mxcl/homebrew.git'
- @specs={ :tag => 'foo' }
-
- def initialize name=nil
- super "ancientspectestball"
- end
-end
-
class ExplicitVersionSpecTestBall < Formula
homepage 'http://example.com'
url 'file:///foo.com/testball-stable.tbz'