diff options
| author | Jack Nagel | 2015-01-03 23:01:23 -0500 | 
|---|---|---|
| committer | Jack Nagel | 2015-01-03 23:03:07 -0500 | 
| commit | a7589a5e3689dad4f67417af3ee34d2d26e5b891 (patch) | |
| tree | b394702f9c539bcd6b225104ec1e6277eea502e0 | |
| parent | 46485c8dd2efabc6bc3ca5b10d63e76aa5862cf9 (diff) | |
| download | homebrew-a7589a5e3689dad4f67417af3ee34d2d26e5b891.tar.bz2 | |
scalastyle: use version method
| -rw-r--r-- | Library/Formula/scalastyle.rb | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/Library/Formula/scalastyle.rb b/Library/Formula/scalastyle.rb index 9fa41afa6..caea6262a 100644 --- a/Library/Formula/scalastyle.rb +++ b/Library/Formula/scalastyle.rb @@ -10,13 +10,13 @@ class Scalastyle < Formula    end    def install -    libexec.install "scalastyle_2.10-0.6.0-batch.jar" +    libexec.install "scalastyle_2.10-#{version}-batch.jar"      etc.install resource("default_config")      (bin/"scalastyle").write <<-EOS.undent        #!/bin/sh -      java -jar "#{libexec}/scalastyle_2.10-0.6.0-batch.jar" --config "#{etc}/scalastyle_config.xml" "$@" +      java -jar "#{libexec}/scalastyle_2.10-#{version}-batch.jar" --config "#{etc}/scalastyle_config.xml" "$@"      EOS    end | 
