terminal-notifier 1.6.2 → 1.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/terminal-notifier.rb +4 -3
- data/vendor/terminal-notifier/README.markdown +2 -1
- data/vendor/terminal-notifier/Ruby/LICENSE +2 -1
- data/vendor/terminal-notifier/Ruby/lib/terminal-notifier.rb +4 -3
- data/vendor/terminal-notifier/Ruby/terminal-notifier.gemspec +2 -2
- data/vendor/terminal-notifier/Terminal Notifier/AppDelegate.m +1 -1
- data/vendor/terminal-notifier/Terminal Notifier/Terminal Notifier-Info.plist +1 -1
- data/vendor/terminal-notifier/terminal-notifier.app/Contents/Info.plist +8 -8
- data/vendor/terminal-notifier/terminal-notifier.app/Contents/MacOS/terminal-notifier +0 -0
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5afe4cd6d1162d0d12055588de958198f4fb7d25
|
4
|
+
data.tar.gz: 4d1ef9b9eba16dbdaa7430d2949e9cacea415956
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18f9caf213dacd0cbb12fe1131e274cda5af603730f7ad7d6e234d8c2aec609ff8d55f696ee18ef64078e5476836d46bf3f73574e343c02c98c10f6fc106b659
|
7
|
+
data.tar.gz: ce0affb0440336a34be7e5f7aa22f68429d562a8e106111315dfe92c08ddedce453401db1bcfa524af6914669c4ce5f1eecc6755ed04b2878050989b474f0700
|
data/lib/terminal-notifier.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'shellwords'
|
2
|
+
require 'rbconfig'
|
2
3
|
|
3
4
|
module TerminalNotifier
|
4
5
|
BIN_PATH = File.expand_path('../../vendor/terminal-notifier/terminal-notifier.app/Contents/MacOS/terminal-notifier', __FILE__)
|
@@ -6,7 +7,7 @@ module TerminalNotifier
|
|
6
7
|
class UnsupportedPlatformError < StandardError; end
|
7
8
|
# Returns wether or not the current platform is Mac OS X 10.8, or higher.
|
8
9
|
def self.available?
|
9
|
-
@available ||= (/darwin/ =~
|
10
|
+
@available ||= (/darwin|mac os/ =~ RbConfig::CONFIG['host_os']) && Gem::Version.new(version) > Gem::Version.new('10.8')
|
10
11
|
end
|
11
12
|
|
12
13
|
def self.version
|
@@ -50,7 +51,7 @@ module TerminalNotifier
|
|
50
51
|
# Raises if not supported on the current platform.
|
51
52
|
def notify(message, options = {}, verbose = false)
|
52
53
|
TerminalNotifier.execute(verbose, options.merge(:message => message))
|
53
|
-
$?.success?
|
54
|
+
$? && $?.success?
|
54
55
|
end
|
55
56
|
module_function :notify
|
56
57
|
|
@@ -60,7 +61,7 @@ module TerminalNotifier
|
|
60
61
|
# If no ‘group’ ID is given, all notifications are removed.
|
61
62
|
def remove(group = 'ALL', verbose = false)
|
62
63
|
TerminalNotifier.execute(verbose, :remove => group)
|
63
|
-
$?.success?
|
64
|
+
$? && $?.success?
|
64
65
|
end
|
65
66
|
module_function :remove
|
66
67
|
|
@@ -200,7 +200,8 @@ All the works are available under the MIT license. **Except** for
|
|
200
200
|
‘Terminal.icns’, which is a copy of Apple’s Terminal.app icon and as such is
|
201
201
|
copyright of Apple.
|
202
202
|
|
203
|
-
Copyright (C) 2012-
|
203
|
+
Copyright (C) 2012-2015 Eloy Durán <eloy.de.enige@gmail.com>, Julien Blanchard
|
204
|
+
<julien@sideburns.eu>
|
204
205
|
|
205
206
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
206
207
|
this software and associated documentation files (the "Software"), to deal in
|
@@ -2,7 +2,8 @@ All the works are available under the MIT license. **Except** for
|
|
2
2
|
‘Terminal.icns’, which is a copy of Apple’s Terminal.app icon and as such is
|
3
3
|
copyright of Apple.
|
4
4
|
|
5
|
-
Copyright (C) 2012-2013 Eloy Durán <eloy.de.enige@gmail.com
|
5
|
+
Copyright (C) 2012-2013 Eloy Durán <eloy.de.enige@gmail.com>, Julien Blanchard
|
6
|
+
<julien@sideburns.eu>
|
6
7
|
|
7
8
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
8
9
|
this software and associated documentation files (the "Software"), to deal in
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'shellwords'
|
2
|
+
require 'rbconfig'
|
2
3
|
|
3
4
|
module TerminalNotifier
|
4
5
|
BIN_PATH = File.expand_path('../../vendor/terminal-notifier/terminal-notifier.app/Contents/MacOS/terminal-notifier', __FILE__)
|
@@ -6,7 +7,7 @@ module TerminalNotifier
|
|
6
7
|
class UnsupportedPlatformError < StandardError; end
|
7
8
|
# Returns wether or not the current platform is Mac OS X 10.8, or higher.
|
8
9
|
def self.available?
|
9
|
-
@available ||= (/darwin/ =~
|
10
|
+
@available ||= (/darwin|mac os/ =~ RbConfig::CONFIG['host_os']) && Gem::Version.new(version) > Gem::Version.new('10.8')
|
10
11
|
end
|
11
12
|
|
12
13
|
def self.version
|
@@ -50,7 +51,7 @@ module TerminalNotifier
|
|
50
51
|
# Raises if not supported on the current platform.
|
51
52
|
def notify(message, options = {}, verbose = false)
|
52
53
|
TerminalNotifier.execute(verbose, options.merge(:message => message))
|
53
|
-
$?.success?
|
54
|
+
$? && $?.success?
|
54
55
|
end
|
55
56
|
module_function :notify
|
56
57
|
|
@@ -60,7 +61,7 @@ module TerminalNotifier
|
|
60
61
|
# If no ‘group’ ID is given, all notifications are removed.
|
61
62
|
def remove(group = 'ALL', verbose = false)
|
62
63
|
TerminalNotifier.execute(verbose, :remove => group)
|
63
|
-
$?.success?
|
64
|
+
$? && $?.success?
|
64
65
|
end
|
65
66
|
module_function :remove
|
66
67
|
|
@@ -9,8 +9,8 @@ Gem::Specification.new do |gem|
|
|
9
9
|
gem.name = "terminal-notifier"
|
10
10
|
gem.version = version
|
11
11
|
gem.summary = 'Send User Notifications on Mac OS X 10.8 or higher.'
|
12
|
-
gem.authors = ["Eloy Duran"]
|
13
|
-
gem.email = ["eloy.de.enige@gmail.com"]
|
12
|
+
gem.authors = ["Eloy Duran", "Julien Blanchard"]
|
13
|
+
gem.email = ["eloy.de.enige@gmail.com", "julien@sideburns.eu"]
|
14
14
|
gem.homepage = 'https://github.com/alloy/terminal-notifier'
|
15
15
|
gem.license = 'MIT'
|
16
16
|
|
@@ -260,7 +260,7 @@ isMavericks()
|
|
260
260
|
if(options[@"appIcon"]){
|
261
261
|
// replacement app icon
|
262
262
|
[userNotification setValue:[self getImageFromURL:options[@"appIcon"]] forKey:@"_identityImage"];
|
263
|
-
[userNotification setValue:@(
|
263
|
+
[userNotification setValue:@(false) forKey:@"_identityImageHasBorder"];
|
264
264
|
}
|
265
265
|
if(options[@"contentImage"]){
|
266
266
|
// content image
|
@@ -27,7 +27,7 @@
|
|
27
27
|
<key>LSUIElement</key>
|
28
28
|
<true/>
|
29
29
|
<key>NSHumanReadableCopyright</key>
|
30
|
-
<string>Copyright © 2012 Eloy Durán. All rights reserved.</string>
|
30
|
+
<string>Copyright © 2012-2015 Eloy Durán, Julien Blanchard. All rights reserved.</string>
|
31
31
|
<key>NSMainNibFile</key>
|
32
32
|
<string>MainMenu</string>
|
33
33
|
<key>NSPrincipalClass</key>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<plist version="1.0">
|
4
4
|
<dict>
|
5
5
|
<key>BuildMachineOSBuild</key>
|
6
|
-
<string>
|
6
|
+
<string>14C1514</string>
|
7
7
|
<key>CFBundleDevelopmentRegion</key>
|
8
8
|
<string>en</string>
|
9
9
|
<key>CFBundleExecutable</key>
|
@@ -19,31 +19,31 @@
|
|
19
19
|
<key>CFBundlePackageType</key>
|
20
20
|
<string>APPL</string>
|
21
21
|
<key>CFBundleShortVersionString</key>
|
22
|
-
<string>1.6.
|
22
|
+
<string>1.6.3</string>
|
23
23
|
<key>CFBundleSignature</key>
|
24
24
|
<string>????</string>
|
25
25
|
<key>CFBundleVersion</key>
|
26
|
-
<string>
|
26
|
+
<string>14</string>
|
27
27
|
<key>DTCompiler</key>
|
28
28
|
<string>com.apple.compilers.llvm.clang.1_0</string>
|
29
29
|
<key>DTPlatformBuild</key>
|
30
|
-
<string>
|
30
|
+
<string>6C131e</string>
|
31
31
|
<key>DTPlatformVersion</key>
|
32
32
|
<string>GM</string>
|
33
33
|
<key>DTSDKBuild</key>
|
34
|
-
<string>
|
34
|
+
<string>14A383</string>
|
35
35
|
<key>DTSDKName</key>
|
36
36
|
<string>macosx10.10</string>
|
37
37
|
<key>DTXcode</key>
|
38
|
-
<string>
|
38
|
+
<string>0620</string>
|
39
39
|
<key>DTXcodeBuild</key>
|
40
|
-
<string>
|
40
|
+
<string>6C131e</string>
|
41
41
|
<key>LSMinimumSystemVersion</key>
|
42
42
|
<string>10.8</string>
|
43
43
|
<key>LSUIElement</key>
|
44
44
|
<true/>
|
45
45
|
<key>NSHumanReadableCopyright</key>
|
46
|
-
<string>Copyright © 2012 Eloy Durán. All rights reserved.</string>
|
46
|
+
<string>Copyright © 2012-2015 Eloy Durán, Julien Blanchard. All rights reserved.</string>
|
47
47
|
<key>NSMainNibFile</key>
|
48
48
|
<string>MainMenu</string>
|
49
49
|
<key>NSPrincipalClass</key>
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: terminal-notifier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eloy Duran
|
8
|
+
- Julien Blanchard
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date:
|
12
|
+
date: 2015-04-06 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: bacon
|
@@ -55,6 +56,7 @@ dependencies:
|
|
55
56
|
description:
|
56
57
|
email:
|
57
58
|
- eloy.de.enige@gmail.com
|
59
|
+
- julien@sideburns.eu
|
58
60
|
executables:
|
59
61
|
- terminal-notifier
|
60
62
|
extensions: []
|
@@ -116,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
116
118
|
version: '0'
|
117
119
|
requirements: []
|
118
120
|
rubyforge_project:
|
119
|
-
rubygems_version: 2.
|
121
|
+
rubygems_version: 2.4.5
|
120
122
|
signing_key:
|
121
123
|
specification_version: 4
|
122
124
|
summary: Send User Notifications on Mac OS X 10.8 or higher.
|