Skip to content

Commit

Permalink
create: always use double quotes.
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMcQuaid committed Jan 7, 2014
1 parent d0391e2 commit 2ed303f
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Library/Homebrew/cmd/create.rb
Expand Up @@ -115,24 +115,24 @@ def generate!
end

def template; <<-EOS.undent
require 'formula'
require "formula"
# Documentation: https://github.com/Homebrew/homebrew/wiki/Formula-Cookbook
# #{HOMEBREW_CONTRIB}/example-formula.rb
# PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST!
class #{Formula.class_s name} < Formula
homepage ''
url '#{url}'
homepage ""
url "#{url}"
<% unless version.nil? or version.detected_from_url? %>
version '#{version}'
version "#{version}"
<% end %>
sha1 '#{sha1}'
sha1 "#{sha1}"
<% if mode == :cmake %>
depends_on 'cmake' => :build
depends_on "cmake" => :build
<% elsif mode.nil? %>
# depends_on 'cmake' => :build
# depends_on "cmake" => :build
<% end %>
depends_on :x11 # if your formula requires any X11/XQuartz components
Expand Down Expand Up @@ -161,12 +161,12 @@ def install
test do
# `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
# "false" with the main program this formula installs, but it'd be nice if you
# 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
# 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
# executables being tested: `system "\#{bin}/program", "--version"`.
# executables being tested: `system "\#{bin}/program", "do", "something"`.
system "false"
end
end
Expand Down

0 comments on commit 2ed303f

Please sign in to comment.