terminal-notifier 1.6.2 → 1.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f6420104ac52e5455d13b92461b2a9a18d4788e3
4
- data.tar.gz: 41b655846b9d7e83f246cc093b148d36c8eccad3
3
+ metadata.gz: 5afe4cd6d1162d0d12055588de958198f4fb7d25
4
+ data.tar.gz: 4d1ef9b9eba16dbdaa7430d2949e9cacea415956
5
5
  SHA512:
6
- metadata.gz: 69e1373385c99b778b905fe4cb21e236c030902c6e6f53fa28793cf116cfa7a74cac943da32b27993ec5496c2d79c74f2d54f088759328374350525c3700433e
7
- data.tar.gz: 9eee293a152cb079f3690fd2c0d90649dfba0d9651e9672761e6a8c5c1352efa331c07cbdfaaf815c0ef32912cd652bf9e53363df9a19ab9173f59a13275c847
6
+ metadata.gz: 18f9caf213dacd0cbb12fe1131e274cda5af603730f7ad7d6e234d8c2aec609ff8d55f696ee18ef64078e5476836d46bf3f73574e343c02c98c10f6fc106b659
7
+ data.tar.gz: ce0affb0440336a34be7e5f7aa22f68429d562a8e106111315dfe92c08ddedce453401db1bcfa524af6914669c4ce5f1eecc6755ed04b2878050989b474f0700
@@ -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/ =~ RUBY_PLATFORM) && Gem::Version.new(version) > Gem::Version.new('10.8')
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-2013 Eloy Durán <eloy.de.enige@gmail.com>
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/ =~ RUBY_PLATFORM) && Gem::Version.new(version) > Gem::Version.new('10.8')
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:@(true) forKey:@"_identityImageHasBorder"];
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>14A388a</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.2</string>
22
+ <string>1.6.3</string>
23
23
  <key>CFBundleSignature</key>
24
24
  <string>????</string>
25
25
  <key>CFBundleVersion</key>
26
- <string>13</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>6A1052d</string>
30
+ <string>6C131e</string>
31
31
  <key>DTPlatformVersion</key>
32
32
  <string>GM</string>
33
33
  <key>DTSDKBuild</key>
34
- <string>14A382</string>
34
+ <string>14A383</string>
35
35
  <key>DTSDKName</key>
36
36
  <string>macosx10.10</string>
37
37
  <key>DTXcode</key>
38
- <string>0610</string>
38
+ <string>0620</string>
39
39
  <key>DTXcodeBuild</key>
40
- <string>6A1052d</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>
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.2
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: 2014-11-02 00:00:00.000000000 Z
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.2.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.