create: always use double quotes.

This commit is contained in:
Mike McQuaid 2014-01-07 08:10:31 +00:00
parent 5f060a09ff
commit cb0b6a0fa3

View File

@ -115,24 +115,24 @@ class FormulaCreator
end end
def template; <<-EOS.undent def template; <<-EOS.undent
require 'formula' require "formula"
# Documentation: https://github.com/Homebrew/homebrew/wiki/Formula-Cookbook # Documentation: https://github.com/Homebrew/homebrew/wiki/Formula-Cookbook
# #{HOMEBREW_CONTRIB}/example-formula.rb # #{HOMEBREW_CONTRIB}/example-formula.rb
# PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST! # PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST!
class #{Formula.class_s name} < Formula class #{Formula.class_s name} < Formula
homepage '' homepage ""
url '#{url}' url "#{url}"
<% unless version.nil? or version.detected_from_url? %> <% unless version.nil? or version.detected_from_url? %>
version '#{version}' version "#{version}"
<% end %> <% end %>
sha1 '#{sha1}' sha1 "#{sha1}"
<% if mode == :cmake %> <% if mode == :cmake %>
depends_on 'cmake' => :build depends_on "cmake" => :build
<% elsif mode.nil? %> <% elsif mode.nil? %>
# depends_on 'cmake' => :build # depends_on "cmake" => :build
<% end %> <% end %>
depends_on :x11 # if your formula requires any X11/XQuartz components depends_on :x11 # if your formula requires any X11/XQuartz components
@ -161,12 +161,12 @@ class FormulaCreator
test do test do
# `test do` will create, run in and delete a temporary directory. # `test do` will create, run in and delete a temporary directory.
# #
# This test will fail and we won't accept that! It's enough to just replace # This test will fail and we won"t accept that! It"s enough to just replace
# "false" with the main program this formula installs, but it'd be nice if you # "false" with the main program this formula installs, but it"d be nice if you
# were more thorough. Run the test with `brew test #{name}`. # were more thorough. Run the test with `brew test #{name}`.
# #
# The installed folder is not in the path, so use the entire path to any # The installed folder is not in the path, so use the entire path to any
# executables being tested: `system "\#{bin}/program", "--version"`. # executables being tested: `system "\#{bin}/program", "do", "something"`.
system "false" system "false"
end end
end end