File tree 2 files changed +8
-6
lines changed
2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ def version
6
6
end
7
7
8
8
def filename
9
- "terminal-notifier_ #{ version } "
9
+ "terminal-notifier- #{ version } "
10
10
end
11
11
12
12
def zipfile
@@ -18,9 +18,10 @@ task :clean do
18
18
rm_rf "vendor"
19
19
end
20
20
21
+ desc "Fetch latest build from the GitHub releases"
21
22
task :update_build do
22
23
unless File . exist? ( zipfile )
23
- sh "curl -O 'http ://cloud. github.com/downloads/ alloy/terminal-notifier/terminal-notifier_ #{ version } .zip'"
24
+ sh "curl -L - O 'https ://github.com/alloy/terminal-notifier/releases/download/ #{ version } / terminal-notifier- #{ version } .zip'"
24
25
end
25
26
26
27
rm_rf "vendor"
Original file line number Diff line number Diff line change 1
1
# -*- encoding: utf-8 -*-
2
2
plist = File . expand_path ( '../../Terminal Notifier/Terminal Notifier-Info.plist' , __FILE__ )
3
- #version = `/usr/libexec/PlistBuddy -c 'Print :CFBundleShortVersionString' '#{plist}'`.strip
4
- #at least allow rake spec to run and fail on Linux
5
- version = '1.4.2'
3
+ # Also run on non-OSX machines, otherwise bundle installs directly from the repo will fail.
4
+ # version = `/usr/libexec/PlistBuddy -c 'Print :CFBundleShortVersionString' '#{plist}'`.strip
5
+ version = File . read ( plist ) . match ( %r{<string>(\d +\. \d +\. \d +)</string>} ) [ 1 ]
6
+
6
7
7
8
Gem ::Specification . new do |gem |
8
9
gem . name = "terminal-notifier"
9
10
gem . version = version
10
- gem . summary = 'Send User Notifications on Mac OS X 10.8.'
11
+ gem . summary = 'Send User Notifications on Mac OS X 10.8 or higher .'
11
12
gem . authors = [ "Eloy Duran" ]
12
13
13
14
gem . homepage = 'https://github.com/alloy/terminal-notifier'
You can’t perform that action at this time.
0 commit comments