Skip to content

Instantly share code, notes, and snippets.

@geoffballinger
geoffballinger / pebble-sdk.rb
Created September 18, 2015 07:06
Tweaked Pebble SDK brew formula for Xcode 7
require 'curses'
class PebbleSdk < Formula
class Version < ::Version
def <=> (other)
mine = ::Version.new(self.to_s.sub('dp', 'alpha'))
other = ::Version.new(other.to_s.sub('dp', 'alpha'))
mine <=> other
end
end