aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/bottle_version.rb
diff options
context:
space:
mode:
authorMike McQuaid2013-08-03 20:02:10 -0700
committerMike McQuaid2013-08-03 22:27:42 -0700
commitcfdd23b3efcfc994908dfb6792c8d062a19f12f1 (patch)
tree56cb67c1eb66d20e4774868c1082696bd2397b5b /Library/Homebrew/bottle_version.rb
parent705a24871993f9eeac108e38f0e587836e4a087a (diff)
downloadbrew-cfdd23b3efcfc994908dfb6792c8d062a19f12f1.tar.bz2
bottles: use dedicated version class.
Diffstat (limited to 'Library/Homebrew/bottle_version.rb')
-rw-r--r--Library/Homebrew/bottle_version.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Homebrew/bottle_version.rb b/Library/Homebrew/bottle_version.rb
new file mode 100644
index 000000000..6ad8ebeb7
--- /dev/null
+++ b/Library/Homebrew/bottle_version.rb
@@ -0,0 +1,8 @@
+class BottleVersion < Version
+ def self._parse spec
+ spec = Pathname.new(spec) unless spec.is_a? Pathname
+ stem = spec.stem
+
+ super
+ end
+end