terminal-notifier 1.7.2 → 1.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.markdown +1 -1
- data/lib/terminal-notifier.rb +5 -4
- data/vendor/terminal-notifier +0 -0
- metadata +6 -44
- data/vendor/terminal-notifier/LICENSE.md +0 -9
- data/vendor/terminal-notifier/README.markdown +0 -301
- data/vendor/terminal-notifier/Ruby/Gemfile +0 -2
- data/vendor/terminal-notifier/Ruby/Gemfile.lock +0 -23
- data/vendor/terminal-notifier/Ruby/LICENSE +0 -24
- data/vendor/terminal-notifier/Ruby/README.markdown +0 -48
- data/vendor/terminal-notifier/Ruby/Rakefile +0 -48
- data/vendor/terminal-notifier/Ruby/bin/terminal-notifier +0 -13
- data/vendor/terminal-notifier/Ruby/lib/terminal-notifier.rb +0 -92
- data/vendor/terminal-notifier/Ruby/spec/terminal-notifier_spec.rb +0 -79
- data/vendor/terminal-notifier/Ruby/terminal-notifier.gemspec +0 -26
- data/vendor/terminal-notifier/Terminal Notifier.xcodeproj/project.pbxproj +0 -315
- data/vendor/terminal-notifier/Terminal Notifier.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
- data/vendor/terminal-notifier/Terminal Notifier.xcodeproj/project.xcworkspace/xcshareddata/Terminal Notifier.xccheckout +0 -41
- data/vendor/terminal-notifier/Terminal Notifier.xcodeproj/xcshareddata/xcschemes/Terminal Notifier.xcscheme +0 -140
- data/vendor/terminal-notifier/Terminal Notifier/AppDelegate.h +0 -4
- data/vendor/terminal-notifier/Terminal Notifier/AppDelegate.m +0 -594
- data/vendor/terminal-notifier/Terminal Notifier/Terminal Notifier-Info.plist +0 -43
- data/vendor/terminal-notifier/Terminal Notifier/Terminal Notifier-Prefix.pch +0 -7
- data/vendor/terminal-notifier/Terminal Notifier/en.lproj/Credits.rtf +0 -29
- data/vendor/terminal-notifier/Terminal Notifier/en.lproj/InfoPlist.strings +0 -2
- data/vendor/terminal-notifier/Terminal Notifier/en.lproj/MainMenu.xib +0 -3387
- data/vendor/terminal-notifier/Terminal Notifier/main.m +0 -6
- data/vendor/terminal-notifier/Terminal.icns +0 -0
- data/vendor/terminal-notifier/assets/Example_1.png +0 -0
- data/vendor/terminal-notifier/assets/Example_2.png +0 -0
- data/vendor/terminal-notifier/assets/Example_3.png +0 -0
- data/vendor/terminal-notifier/assets/Example_4.png +0 -0
- data/vendor/terminal-notifier/assets/Example_5.png +0 -0
- data/vendor/terminal-notifier/assets/System_prefs.png +0 -0
- data/vendor/terminal-notifier/terminal-notifier.app/Contents/Info.plist +0 -63
- data/vendor/terminal-notifier/terminal-notifier.app/Contents/MacOS/terminal-notifier +0 -0
- data/vendor/terminal-notifier/terminal-notifier.app/Contents/PkgInfo +0 -1
- data/vendor/terminal-notifier/terminal-notifier.app/Contents/Resources/Terminal.icns +0 -0
- data/vendor/terminal-notifier/terminal-notifier.app/Contents/Resources/en.lproj/Credits.rtf +0 -29
- data/vendor/terminal-notifier/terminal-notifier.app/Contents/Resources/en.lproj/InfoPlist.strings +0 -0
- data/vendor/terminal-notifier/terminal-notifier.app/Contents/Resources/en.lproj/MainMenu.nib +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fae5b013616ebd7f4511c2949c3cffb6475d9cb4
|
4
|
+
data.tar.gz: e5b4e8c7cea64c8ab937ed72ea12ee81bb73050f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 403cdb78cf741009db3a64815369001835082ea8690c71138f7723b8a904e3f0fcf6b38babdb1b777418db87deb2af975a08e5547d22bd7ad26b4975f8fe700e
|
7
|
+
data.tar.gz: eb4d72aa0ab3fac697c6b5d0900c4eca016c579986356733df4e34beaacde75734f081a53c8332f930445a80c0027c2adb759662858002a4fd440f35d61e9fd8
|
data/README.markdown
CHANGED
data/lib/terminal-notifier.rb
CHANGED
@@ -1,13 +1,14 @@
|
|
1
|
+
# coding: utf-8
|
1
2
|
require 'shellwords'
|
2
3
|
require 'rbconfig'
|
3
4
|
|
4
5
|
module TerminalNotifier
|
5
|
-
BIN_PATH = File.expand_path('../../vendor/terminal-notifier
|
6
|
+
BIN_PATH = File.expand_path('../../vendor/terminal-notifier', __FILE__)
|
6
7
|
|
7
8
|
class UnsupportedPlatformError < StandardError; end
|
8
|
-
# Returns wether or not the current platform is Mac OS X 10.
|
9
|
+
# Returns wether or not the current platform is Mac OS X 10.10, or higher.
|
9
10
|
def self.available?
|
10
|
-
@available ||= (/darwin|mac os/ =~ RbConfig::CONFIG['host_os']) && Gem::Version.new(version) > Gem::Version.new('10.
|
11
|
+
@available ||= (/darwin|mac os/ =~ RbConfig::CONFIG['host_os']) && Gem::Version.new(version) > Gem::Version.new('10.10')
|
11
12
|
end
|
12
13
|
|
13
14
|
def self.version
|
@@ -26,7 +27,7 @@ module TerminalNotifier
|
|
26
27
|
end
|
27
28
|
result
|
28
29
|
else
|
29
|
-
STDERR.print "terminal-notifier is only supported on Mac OS X 10.
|
30
|
+
STDERR.print "terminal-notifier is only supported on Mac OS X 10.10, or higher."
|
30
31
|
end
|
31
32
|
end
|
32
33
|
|
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: terminal-notifier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eloy Duran
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-05-
|
12
|
+
date: 2017-05-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bacon
|
@@ -66,46 +66,8 @@ files:
|
|
66
66
|
- README.markdown
|
67
67
|
- bin/terminal-notifier
|
68
68
|
- lib/terminal-notifier.rb
|
69
|
-
- vendor/terminal-notifier
|
70
|
-
|
71
|
-
- vendor/terminal-notifier/Ruby/Gemfile
|
72
|
-
- vendor/terminal-notifier/Ruby/Gemfile.lock
|
73
|
-
- vendor/terminal-notifier/Ruby/LICENSE
|
74
|
-
- vendor/terminal-notifier/Ruby/README.markdown
|
75
|
-
- vendor/terminal-notifier/Ruby/Rakefile
|
76
|
-
- vendor/terminal-notifier/Ruby/bin/terminal-notifier
|
77
|
-
- vendor/terminal-notifier/Ruby/lib/terminal-notifier.rb
|
78
|
-
- vendor/terminal-notifier/Ruby/spec/terminal-notifier_spec.rb
|
79
|
-
- vendor/terminal-notifier/Ruby/terminal-notifier.gemspec
|
80
|
-
- vendor/terminal-notifier/Terminal Notifier.xcodeproj/project.pbxproj
|
81
|
-
- vendor/terminal-notifier/Terminal Notifier.xcodeproj/project.xcworkspace/contents.xcworkspacedata
|
82
|
-
- vendor/terminal-notifier/Terminal Notifier.xcodeproj/project.xcworkspace/xcshareddata/Terminal
|
83
|
-
Notifier.xccheckout
|
84
|
-
- vendor/terminal-notifier/Terminal Notifier.xcodeproj/xcshareddata/xcschemes/Terminal
|
85
|
-
Notifier.xcscheme
|
86
|
-
- vendor/terminal-notifier/Terminal Notifier/AppDelegate.h
|
87
|
-
- vendor/terminal-notifier/Terminal Notifier/AppDelegate.m
|
88
|
-
- vendor/terminal-notifier/Terminal Notifier/Terminal Notifier-Info.plist
|
89
|
-
- vendor/terminal-notifier/Terminal Notifier/Terminal Notifier-Prefix.pch
|
90
|
-
- vendor/terminal-notifier/Terminal Notifier/en.lproj/Credits.rtf
|
91
|
-
- vendor/terminal-notifier/Terminal Notifier/en.lproj/InfoPlist.strings
|
92
|
-
- vendor/terminal-notifier/Terminal Notifier/en.lproj/MainMenu.xib
|
93
|
-
- vendor/terminal-notifier/Terminal Notifier/main.m
|
94
|
-
- vendor/terminal-notifier/Terminal.icns
|
95
|
-
- vendor/terminal-notifier/assets/Example_1.png
|
96
|
-
- vendor/terminal-notifier/assets/Example_2.png
|
97
|
-
- vendor/terminal-notifier/assets/Example_3.png
|
98
|
-
- vendor/terminal-notifier/assets/Example_4.png
|
99
|
-
- vendor/terminal-notifier/assets/Example_5.png
|
100
|
-
- vendor/terminal-notifier/assets/System_prefs.png
|
101
|
-
- vendor/terminal-notifier/terminal-notifier.app/Contents/Info.plist
|
102
|
-
- vendor/terminal-notifier/terminal-notifier.app/Contents/MacOS/terminal-notifier
|
103
|
-
- vendor/terminal-notifier/terminal-notifier.app/Contents/PkgInfo
|
104
|
-
- vendor/terminal-notifier/terminal-notifier.app/Contents/Resources/Terminal.icns
|
105
|
-
- vendor/terminal-notifier/terminal-notifier.app/Contents/Resources/en.lproj/Credits.rtf
|
106
|
-
- vendor/terminal-notifier/terminal-notifier.app/Contents/Resources/en.lproj/InfoPlist.strings
|
107
|
-
- vendor/terminal-notifier/terminal-notifier.app/Contents/Resources/en.lproj/MainMenu.nib
|
108
|
-
homepage: https://github.com/alloy/terminal-notifier
|
69
|
+
- vendor/terminal-notifier
|
70
|
+
homepage: https://github.com/julienXX/terminal-notifier
|
109
71
|
licenses:
|
110
72
|
- MIT
|
111
73
|
metadata: {}
|
@@ -125,8 +87,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
125
87
|
version: '0'
|
126
88
|
requirements: []
|
127
89
|
rubyforge_project:
|
128
|
-
rubygems_version: 2.5.
|
90
|
+
rubygems_version: 2.5.1
|
129
91
|
signing_key:
|
130
92
|
specification_version: 4
|
131
|
-
summary: Send User Notifications on Mac OS X 10.
|
93
|
+
summary: Send User Notifications on Mac OS X 10.10 or higher.
|
132
94
|
test_files: []
|
@@ -1,9 +0,0 @@
|
|
1
|
-
All the works are available under the MIT license. Except for ‘Terminal.icns’, which is a copy of Apple’s Terminal.app icon and as such is copyright of Apple.
|
2
|
-
|
3
|
-
Copyright (C) 2012-2016 Eloy Durán eloy.de.enige@gmail.com, Julien Blanchard julien@sideburns.eu
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
6
|
-
|
7
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
8
|
-
|
9
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@@ -1,301 +0,0 @@
|
|
1
|
-
# terminal-notifier
|
2
|
-
|
3
|
-
terminal-notifier is a command-line tool to send macOS User Notifications,
|
4
|
-
which are available on macOS 10.8 and higher.
|
5
|
-
|
6
|
-
|
7
|
-
## Caveats
|
8
|
-
|
9
|
-
* On macOS 10.8, the `-appIcon` and `-contentImage` options do nothing.
|
10
|
-
This is because Notification Center on 10.8 _always_ uses the application’s own icon.
|
11
|
-
|
12
|
-
You can do one of the following to work around this limitation on 10.8:
|
13
|
-
- Use the `-sender` option to “fake it” (see below)
|
14
|
-
- Include a build of terminal-notifier with your icon **and a different bundle identifier**.
|
15
|
-
(If you don’t change the bundle identifier, launch services uses a cached version of the icon.)
|
16
|
-
|
17
|
-
However, you _can_ use unicode symbols and emojis! See the examples.
|
18
|
-
|
19
|
-
* It is currently packaged as an application bundle, because `NSUserNotification`
|
20
|
-
does not work from a ‘Foundation tool’. [radar://11956694](radar://11956694)
|
21
|
-
|
22
|
-
* If you intend to package terminal-notifier with your app to distribute it on the Mac App Store, please use 1.5.2; version 1.6.0+ uses a private method override, which is not allowed in the App Store Guidelines.
|
23
|
-
|
24
|
-
* To enable actions on the notification (the buttons that allow the user to select an option),
|
25
|
-
open System Preferences > Notifications, select terminal-notifer in the sidebar, and select the "Alerts" alert style.
|
26
|
-
![Enable alerts in System Preferences](assets/System_prefs.png)
|
27
|
-
|
28
|
-
|
29
|
-
## Download
|
30
|
-
|
31
|
-
Prebuilt binaries are available from the
|
32
|
-
[releases section](https://github.com/julienXX/terminal-notifier/releases).
|
33
|
-
|
34
|
-
Or if you want to use this from
|
35
|
-
[Ruby](https://github.com/alloy/terminal-notifier/tree/master/Ruby), you can
|
36
|
-
install it through RubyGems:
|
37
|
-
|
38
|
-
```
|
39
|
-
$ [sudo] gem install terminal-notifier
|
40
|
-
```
|
41
|
-
|
42
|
-
You can also install it via [Homebrew](https://github.com/Homebrew/homebrew):
|
43
|
-
```
|
44
|
-
$ brew install terminal-notifier
|
45
|
-
```
|
46
|
-
|
47
|
-
## Usage
|
48
|
-
|
49
|
-
```
|
50
|
-
$ ./terminal-notifier.app/Contents/MacOS/terminal-notifier -[message|group|list] [VALUE|ID|ID] [options]
|
51
|
-
```
|
52
|
-
|
53
|
-
In order to use terminal-notifier, you have to call the binary _inside_ the
|
54
|
-
application bundle.
|
55
|
-
|
56
|
-
The Ruby gem, which wraps this tool, _does_ have a bin wrapper. If installed
|
57
|
-
you can simply do:
|
58
|
-
|
59
|
-
```
|
60
|
-
$ terminal-notifier -[message|group|list] [VALUE|ID|ID] [options]
|
61
|
-
```
|
62
|
-
|
63
|
-
This will obviously be a bit slower than using the tool without the wrapper.
|
64
|
-
|
65
|
-
|
66
|
-
### Example Uses
|
67
|
-
|
68
|
-
Display piped data with a sound:
|
69
|
-
```
|
70
|
-
$ echo 'Piped Message Data!' | terminal-notifier -sound default
|
71
|
-
```
|
72
|
-
|
73
|
-
![Example 1](assets/Example_1.png)
|
74
|
-
|
75
|
-
Multiple actions and custom dropdown list:
|
76
|
-
```
|
77
|
-
$ terminal-notifier -message "Deploy now on UAT ?" -actions Now,"Later today","Tomorrow" -dropdownLabel "When ?"
|
78
|
-
```
|
79
|
-
|
80
|
-
![Example 2](assets/Example_2.png)
|
81
|
-
|
82
|
-
“Yes or No ?”:
|
83
|
-
```
|
84
|
-
$ terminal-notifier -title ProjectX -subtitle "new tag detected" -message "Deploy now on UAT ?" -closeLabel No -actions Yes -appIcon http://vjeantet.fr/images/logo.png
|
85
|
-
```
|
86
|
-
|
87
|
-
![Example 3](assets/Example_3.png)
|
88
|
-
|
89
|
-
Open an URL when the notification is clicked:
|
90
|
-
```
|
91
|
-
$ terminal-notifier -title '💰' -message 'Check your Apple stock!' -open 'http://finance.yahoo.com/q?s=AAPL'
|
92
|
-
```
|
93
|
-
|
94
|
-
![Example 4](assets/Example_4.png)
|
95
|
-
|
96
|
-
Open an app when the notification is clicked:
|
97
|
-
```
|
98
|
-
$ terminal-notifier -group 'address-book-sync' -title 'Address Book Sync' -subtitle 'Finished' -message 'Imported 42 contacts.' -activate 'com.apple.AddressBook'
|
99
|
-
```
|
100
|
-
|
101
|
-
![Example 5](assets/Example_5.png)
|
102
|
-
|
103
|
-
|
104
|
-
### Options
|
105
|
-
|
106
|
-
At a minimum, you must specify either the `-message` , the `-remove`, or the
|
107
|
-
`-list` option.
|
108
|
-
|
109
|
-
-------------------------------------------------------------------------------
|
110
|
-
|
111
|
-
`-message VALUE` **[required]**
|
112
|
-
|
113
|
-
The message body of the notification.
|
114
|
-
|
115
|
-
If you pipe data into terminal-notifier, you can omit this option,
|
116
|
-
and the piped data will become the message body instead.
|
117
|
-
|
118
|
-
-------------------------------------------------------------------------------
|
119
|
-
|
120
|
-
`-title VALUE`
|
121
|
-
|
122
|
-
The title of the notification. This defaults to ‘Terminal’.
|
123
|
-
|
124
|
-
-------------------------------------------------------------------------------
|
125
|
-
|
126
|
-
`-subtitle VALUE`
|
127
|
-
|
128
|
-
The subtitle of the notification.
|
129
|
-
|
130
|
-
-------------------------------------------------------------------------------
|
131
|
-
|
132
|
-
`-sound NAME`
|
133
|
-
|
134
|
-
Play the `NAME` sound when the notification appears.
|
135
|
-
Sound names are listed in Sound Preferences.
|
136
|
-
|
137
|
-
Use the special `NAME` “default” for the default notification sound.
|
138
|
-
|
139
|
-
-------------------------------------------------------------------------------
|
140
|
-
|
141
|
-
`-reply` **[10.9+ only]**
|
142
|
-
|
143
|
-
Display the notification as a reply type alert.
|
144
|
-
|
145
|
-
-------------------------------------------------------------------------------
|
146
|
-
|
147
|
-
`-actions VALUE1,VALUE2,"VALUE 3"` **[10.9+ only]**
|
148
|
-
|
149
|
-
Use `VALUE*` as actions for the notification.
|
150
|
-
When you provide more than one value, a dropdown will be displayed.
|
151
|
-
|
152
|
-
You can customize this dropdown label with the `-dropdownLabel` option.
|
153
|
-
|
154
|
-
Does not work when `-reply` is used.
|
155
|
-
|
156
|
-
-------------------------------------------------------------------------------
|
157
|
-
|
158
|
-
`-dropdownLabel VALUE` **[10.9+ only]**
|
159
|
-
|
160
|
-
Use the `VALUE` label for the notification’s dropdown menu actions
|
161
|
-
(only when multiple `-actions` values are provided).
|
162
|
-
|
163
|
-
Does not work when `-reply` is used.
|
164
|
-
|
165
|
-
-------------------------------------------------------------------------------
|
166
|
-
|
167
|
-
`-closeLabel VALUE` **[10.9+ only]**
|
168
|
-
|
169
|
-
Use the `VALUE` label for the notification’s “Close” button.
|
170
|
-
|
171
|
-
-------------------------------------------------------------------------------
|
172
|
-
|
173
|
-
`-timeout NUMBER`
|
174
|
-
|
175
|
-
Automatically close the alert notification after `NUMBER` seconds.
|
176
|
-
|
177
|
-
-------------------------------------------------------------------------------
|
178
|
-
|
179
|
-
`-json`
|
180
|
-
|
181
|
-
Output the event as JSON.
|
182
|
-
|
183
|
-
-------------------------------------------------------------------------------
|
184
|
-
|
185
|
-
`-group ID`
|
186
|
-
|
187
|
-
Specifies the notification’s ‘group’. For any ‘group’, only _one_
|
188
|
-
notification will ever be shown, replacing previously posted notifications.
|
189
|
-
|
190
|
-
A notification can be explicitly removed with the `-remove` option (see
|
191
|
-
below).
|
192
|
-
|
193
|
-
Example group IDs:
|
194
|
-
|
195
|
-
* The sender’s name (to scope the notifications by tool).
|
196
|
-
* The sender’s process ID (to scope the notifications by a unique process).
|
197
|
-
* The current working directory (to scope notifications by project).
|
198
|
-
|
199
|
-
-------------------------------------------------------------------------------
|
200
|
-
|
201
|
-
`-remove ID` **[required]**
|
202
|
-
|
203
|
-
Remove a previous notification from the `ID` ‘group’, if one exists.
|
204
|
-
|
205
|
-
Use the special `ID` “ALL” to remove all messages.
|
206
|
-
|
207
|
-
-------------------------------------------------------------------------------
|
208
|
-
|
209
|
-
`-list ID` **[required]**
|
210
|
-
|
211
|
-
Lists details about the specified ‘group’ `ID`.
|
212
|
-
|
213
|
-
Use the special `ID` “ALL” to list details about all currently active messages.
|
214
|
-
|
215
|
-
The output of this command is tab-separated, which makes it easy to parse.
|
216
|
-
|
217
|
-
-------------------------------------------------------------------------------
|
218
|
-
|
219
|
-
`-activate ID`
|
220
|
-
|
221
|
-
Activate the application specified by `ID` when the user clicks the
|
222
|
-
notification.
|
223
|
-
|
224
|
-
You can find the bundle identifier (`CFBundleIdentifier`) of an application in its `Info.plist` file
|
225
|
-
_inside_ the application bundle.
|
226
|
-
|
227
|
-
Examples application IDs are:
|
228
|
-
|
229
|
-
* `com.apple.Terminal` to activate Terminal.app
|
230
|
-
* `com.apple.Safari` to activate Safari.app
|
231
|
-
|
232
|
-
-------------------------------------------------------------------------------
|
233
|
-
|
234
|
-
`-sender ID`
|
235
|
-
|
236
|
-
Fakes the sender application of the notification. This uses the specified
|
237
|
-
application’s icon, and will launch it when the notification is clicked.
|
238
|
-
|
239
|
-
Because this option fakes the notification sender, it cannot be used with options
|
240
|
-
like `-execute`, `-open`, and `-activate`, because they depend on the sender being
|
241
|
-
‘terminal-notifier’ to work.
|
242
|
-
|
243
|
-
For information on the `ID`, see the `-activate` option.
|
244
|
-
|
245
|
-
-------------------------------------------------------------------------------
|
246
|
-
|
247
|
-
`-appIcon PATH` **[10.9+ only]**
|
248
|
-
|
249
|
-
Specify an image `PATH` to display instead of the application icon.
|
250
|
-
|
251
|
-
**WARNING: This option is subject to change, since it relies on a private method.**
|
252
|
-
|
253
|
-
-------------------------------------------------------------------------------
|
254
|
-
|
255
|
-
`-contentImage PATH` **[10.9+ only]**
|
256
|
-
|
257
|
-
Specify an image `PATH` to attach inside of the notification.
|
258
|
-
|
259
|
-
**WARNING: This option is subject to change since it relies on a private method.**
|
260
|
-
|
261
|
-
-------------------------------------------------------------------------------
|
262
|
-
|
263
|
-
`-open URL`
|
264
|
-
|
265
|
-
Open `URL` when the user clicks the notification. This can be a web or file URL,
|
266
|
-
or any custom URL scheme.
|
267
|
-
|
268
|
-
-------------------------------------------------------------------------------
|
269
|
-
|
270
|
-
`-execute COMMAND`
|
271
|
-
|
272
|
-
Run the shell command `COMMAND` when the user clicks the notification.
|
273
|
-
|
274
|
-
|
275
|
-
## License
|
276
|
-
|
277
|
-
All the works are available under the MIT license. **Except** for
|
278
|
-
‘Terminal.icns’, which is a copy of Apple’s Terminal.app icon and as such is
|
279
|
-
copyright of Apple.
|
280
|
-
|
281
|
-
Copyright (C) 2012-2017 Eloy Durán <eloy.de.enige@gmail.com>, Julien Blanchard
|
282
|
-
<julien@sideburns.eu>
|
283
|
-
|
284
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
285
|
-
this software and associated documentation files (the "Software"), to deal in
|
286
|
-
the Software without restriction, including without limitation the rights to
|
287
|
-
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
288
|
-
of the Software, and to permit persons to whom the Software is furnished to do
|
289
|
-
so, subject to the following conditions:
|
290
|
-
|
291
|
-
The above copyright notice and this permission notice shall be included in all
|
292
|
-
copies or substantial portions of the Software.
|
293
|
-
|
294
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
295
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
296
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
297
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
298
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
299
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
300
|
-
SOFTWARE.
|
301
|
-
|
@@ -1,23 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
terminal-notifier (1.5.1)
|
5
|
-
|
6
|
-
GEM
|
7
|
-
remote: https://rubygems.org/
|
8
|
-
specs:
|
9
|
-
bacon (1.1.0)
|
10
|
-
metaclass (0.0.1)
|
11
|
-
mocha (0.11.4)
|
12
|
-
metaclass (~> 0.0.1)
|
13
|
-
mocha-on-bacon (0.2.0)
|
14
|
-
mocha (>= 0.9.8)
|
15
|
-
|
16
|
-
PLATFORMS
|
17
|
-
ruby
|
18
|
-
|
19
|
-
DEPENDENCIES
|
20
|
-
bacon
|
21
|
-
mocha
|
22
|
-
mocha-on-bacon
|
23
|
-
terminal-notifier!
|