aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/software_spec.rb
diff options
context:
space:
mode:
authorVlad Shablinsky2016-07-11 16:09:35 +0300
committerXu Cheng2016-07-16 20:39:13 +0800
commit3fb5d70a729472a7d7f2a5d0d7b84248921fb583 (patch)
treeb23f70013abe231fe997f2601ae89814b1f338db /Library/Homebrew/software_spec.rb
parent454003c4c1ea43f4fd84db96017636fc4c50b318 (diff)
downloadbrew-3fb5d70a729472a7d7f2a5d0d7b84248921fb583.tar.bz2
Unify Version.create usage
Substitue each Version.new and HeadVersion.new with Version.create to unify Version and HeadVersion instantiation among core code. Note that this does not relate to Mac::OS::Version class.
Diffstat (limited to 'Library/Homebrew/software_spec.rb')
-rw-r--r--Library/Homebrew/software_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/software_spec.rb b/Library/Homebrew/software_spec.rb
index c7e91975a..47bd1bd85 100644
--- a/Library/Homebrew/software_spec.rb
+++ b/Library/Homebrew/software_spec.rb
@@ -204,7 +204,7 @@ end
class HeadSoftwareSpec < SoftwareSpec
def initialize
super
- @resource.version = HeadVersion.new("HEAD")
+ @resource.version = Version.create("HEAD")
end
def verify_download_integrity(_fn)