Skip to content

Commit

Permalink
crystal-lang: style nits
Browse files Browse the repository at this point in the history
  • Loading branch information
DomT4 committed Jul 27, 2016
1 parent 6206bae commit 9e5178f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Formula/crystal-lang.rb
Expand Up @@ -38,7 +38,7 @@ class CrystalLang < Formula
depends_on "libevent"
depends_on "bdw-gc"
depends_on "llvm"
depends_on "libyaml" if build.with?("shards")
depends_on "libyaml" if build.with? "shards"

resource "boot" do
url "https://github.com/crystal-lang/crystal/releases/download/0.18.6/crystal-0.18.6-1-darwin-x86_64.tar.gz"
Expand All @@ -55,7 +55,7 @@ def install
(buildpath/"boot").install resource("boot")

if build.head?
ENV["CRYSTAL_CONFIG_VERSION"] = `git rev-parse --short HEAD`.strip
ENV["CRYSTAL_CONFIG_VERSION"] = Utils.popen_read("git rev-parse --short HEAD").strip
else
ENV["CRYSTAL_CONFIG_VERSION"] = version
end
Expand Down Expand Up @@ -85,6 +85,6 @@ def install
end

test do
system "#{bin}/crystal", "eval", "puts 1"
assert_match "1", shell_output("#{bin}/crystal eval puts 1")
end
end

0 comments on commit 9e5178f

Please sign in to comment.