aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/bottle_version.rb
diff options
context:
space:
mode:
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