-
Notifications
You must be signed in to change notification settings - Fork 330
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make gem building work on all platforms.
- Loading branch information
Showing
2 changed files
with
8 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
# -*- encoding: utf-8 -*- | ||
plist = File.expand_path('../../Terminal Notifier/Terminal Notifier-Info.plist', __FILE__) | ||
#version = `/usr/libexec/PlistBuddy -c 'Print :CFBundleShortVersionString' '#{plist}'`.strip | ||
#at least allow rake spec to run and fail on Linux | ||
version = '1.4.2' | ||
# Also run on non-OSX machines, otherwise bundle installs directly from the repo will fail. | ||
# version = `/usr/libexec/PlistBuddy -c 'Print :CFBundleShortVersionString' '#{plist}'`.strip | ||
version = File.read(plist).match(%r{<string>(\d+\.\d+\.\d+)</string>})[1] | ||
|
||
|
||
Gem::Specification.new do |gem| | ||
gem.name = "terminal-notifier" | ||
gem.version = version | ||
gem.summary = 'Send User Notifications on Mac OS X 10.8.' | ||
gem.summary = 'Send User Notifications on Mac OS X 10.8 or higher.' | ||
gem.authors = ["Eloy Duran"] | ||
gem.email = ["[email protected]"] | ||
gem.homepage = 'https://github.com/alloy/terminal-notifier' | ||
|