terminal-notifier-guard 1.5.3 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +7 -0
  2. data/README.markdown +57 -7
  3. data/icons/Failed.icns +0 -0
  4. data/icons/Guard.icns +0 -0
  5. data/icons/Notify.icns +0 -0
  6. data/icons/Pending.icns +0 -0
  7. data/icons/Success.icns +0 -0
  8. data/lib/terminal-notifier-guard.rb +56 -28
  9. metadata +27 -81
  10. data/bin/terminal-notifier-failed +0 -9
  11. data/bin/terminal-notifier-notify +0 -9
  12. data/bin/terminal-notifier-pending +0 -9
  13. data/bin/terminal-notifier-success +0 -9
  14. data/lib/terminal_notifier/guard/failed.rb +0 -7
  15. data/lib/terminal_notifier/guard/notify.rb +0 -7
  16. data/lib/terminal_notifier/guard/pending.rb +0 -7
  17. data/lib/terminal_notifier/guard/success.rb +0 -7
  18. data/lib/terminal_notifier/guard/version.rb +0 -5
  19. data/vendor/terminal-notifier-failed.app/Contents/Info.plist +0 -52
  20. data/vendor/terminal-notifier-failed.app/Contents/MacOS/terminal-notifier +0 -0
  21. data/vendor/terminal-notifier-failed.app/Contents/PkgInfo +0 -1
  22. data/vendor/terminal-notifier-failed.app/Contents/Resources/Failed.icns +0 -0
  23. data/vendor/terminal-notifier-failed.app/Contents/Resources/en.lproj/Credits.rtf +0 -29
  24. data/vendor/terminal-notifier-failed.app/Contents/Resources/en.lproj/InfoPlist.strings +0 -0
  25. data/vendor/terminal-notifier-failed.app/Contents/Resources/en.lproj/MainMenu.nib +0 -0
  26. data/vendor/terminal-notifier-failed.app/Contents/_CodeSignature/CodeResources +0 -61
  27. data/vendor/terminal-notifier-notify.app/Contents/Info.plist +0 -52
  28. data/vendor/terminal-notifier-notify.app/Contents/MacOS/terminal-notifier +0 -0
  29. data/vendor/terminal-notifier-notify.app/Contents/PkgInfo +0 -1
  30. data/vendor/terminal-notifier-notify.app/Contents/Resources/Notify.icns +0 -0
  31. data/vendor/terminal-notifier-notify.app/Contents/Resources/en.lproj/Credits.rtf +0 -29
  32. data/vendor/terminal-notifier-notify.app/Contents/Resources/en.lproj/InfoPlist.strings +0 -0
  33. data/vendor/terminal-notifier-notify.app/Contents/Resources/en.lproj/MainMenu.nib +0 -0
  34. data/vendor/terminal-notifier-notify.app/Contents/_CodeSignature/CodeResources +0 -61
  35. data/vendor/terminal-notifier-pending.app/Contents/Info.plist +0 -52
  36. data/vendor/terminal-notifier-pending.app/Contents/MacOS/terminal-notifier +0 -0
  37. data/vendor/terminal-notifier-pending.app/Contents/PkgInfo +0 -1
  38. data/vendor/terminal-notifier-pending.app/Contents/Resources/Pending.icns +0 -0
  39. data/vendor/terminal-notifier-pending.app/Contents/Resources/en.lproj/Credits.rtf +0 -29
  40. data/vendor/terminal-notifier-pending.app/Contents/Resources/en.lproj/InfoPlist.strings +0 -0
  41. data/vendor/terminal-notifier-pending.app/Contents/Resources/en.lproj/MainMenu.nib +0 -0
  42. data/vendor/terminal-notifier-pending.app/Contents/_CodeSignature/CodeResources +0 -61
  43. data/vendor/terminal-notifier-success.app/Contents/Info.plist +0 -52
  44. data/vendor/terminal-notifier-success.app/Contents/MacOS/terminal-notifier +0 -0
  45. data/vendor/terminal-notifier-success.app/Contents/PkgInfo +0 -1
  46. data/vendor/terminal-notifier-success.app/Contents/Resources/Success.icns +0 -0
  47. data/vendor/terminal-notifier-success.app/Contents/Resources/en.lproj/Credits.rtf +0 -29
  48. data/vendor/terminal-notifier-success.app/Contents/Resources/en.lproj/InfoPlist.strings +0 -0
  49. data/vendor/terminal-notifier-success.app/Contents/Resources/en.lproj/MainMenu.nib +0 -0
  50. data/vendor/terminal-notifier-success.app/Contents/_CodeSignature/CodeResources +0 -61
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: ea0bfaf44ae88a389c6fd5dd95c7c0c879731d24
4
+ data.tar.gz: b437929f03ff02c3d43b99da82ed8348f5cb020f
5
+ SHA512:
6
+ metadata.gz: a96884f7bb4caecc9962e6be5be1df866568046de509d21f4700edb81587098c53680a81dd6783ffc60f47ea37ce6173d3c9b58a1cb8e2e031934636b3ced220
7
+ data.tar.gz: 9dc03d445c2cc563d6eff882ea380bbd4da414040d0d9f623588e063fb8483e0f1e0343e95890d67b3c1db917947a1474cfb5cf41e34fb933b9ded56dfe1ed8e
data/README.markdown CHANGED
@@ -1,10 +1,10 @@
1
1
  # TerminalNotifier - Guard Style
2
2
 
3
- A simple Ruby wrapper around the [`terminal-notifier`][HOMEPAGE] command-line
3
+ A simple Ruby wrapper around the [`terminal-notifier`](https://github.com/alloy/terminal-notifier) command-line
4
4
  tool, which allows you to send User Notifications to the Notification Center on
5
5
  Mac OS X 10.8, or higher.
6
6
 
7
- This version has 4 different `terminal-notifiers` included for each status that
7
+ This version has 4 different icons included for each status that
8
8
  [Guard][GUARD] supports:
9
9
 
10
10
  1. Failed
@@ -12,19 +12,59 @@ This version has 4 different `terminal-notifiers` included for each status that
12
12
  3. Pending
13
13
  4. Success
14
14
 
15
- And each one with their own icon representing it's status.
16
-
17
15
 
18
16
  ## Installation
19
17
 
18
+ This version depends on the official [`terminal-notifier`](https://github.com/alloy/terminal-notifier).
19
+ Install it with [Homebrew](http://brew.sh/) or see the official
20
+ [Installation instructions](https://github.com/alloy/terminal-notifier#download).
21
+
22
+ ```
23
+ $ brew install terminal-notifier
24
+ ```
25
+
26
+ Then, install the gem
27
+
20
28
  ```
21
29
  $ gem install terminal-notifier-guard
22
30
  ```
23
31
 
32
+ Or add it to your Gemfile:
33
+
34
+ ```ruby
35
+ gem 'terminal-notifier-guard', '~> 1.6.1'
36
+ ```
37
+
38
+ Then, add the notifier to your Guardfile:
39
+
40
+ ```ruby
41
+ # Guardfile
42
+ notification :terminal_notifier #, app_name: "MyApp ::", activate: 'com.googlecode.iTerm2'
43
+ ```
44
+
45
+ ### Configure Binary Path
46
+
47
+ You can override the binary path detection with an environment variable. This solves a problem where the default binary found by `which` is the Ruby gem version of `terminal-notifier`. This version is slow, especially in a Bundler environment.
48
+
49
+ In this scenario we would much rather use the version installed by Homebrew at `/usr/local/bin/terminal-notifier` which is noticeably faster.
50
+
51
+ This commit allows us to set an environment variable to explicitly specify the binary to use, like this:
52
+
53
+ ```bash
54
+ export TERMINAL_NOTIFIER_BIN=/usr/local/bin/terminal-notifier
55
+ ```
56
+
57
+ _When using guard to monitor test results in TDD, speed is of the essence. Using the right binary can save a half second or more during each test run, which doesn't seem like much but makes a big difference in productivity._
58
+
59
+ ### OSX 10.8 users
60
+
61
+ As of version `1.6.1`, we no longer bundle notifiers binaries in this gem. Please revert to
62
+ version `1.5.3` for OSX 10.8 support.
63
+
24
64
 
25
65
  ## Usage
26
66
 
27
- For full information on all the options, see the tool’s [README][README].
67
+ You could also use the notifier directly.
28
68
 
29
69
  Examples are:
30
70
 
@@ -55,5 +95,15 @@ See [LICENSE][LICENSE] for details.
55
95
 
56
96
  [HOMEPAGE]: https://github.com/Springest/terminal-notifier-guard
57
97
  [GUARD]: https://github.com/guard/guard
58
- [README]: https://github.com/Springest/terminal-notifier-guard/blob/master/README.markdown
59
- [LICENSE]: https://github.com/Springest/terminal-notifier-guard/blob/master/Ruby/LICENSE
98
+ [LICENSE]: https://github.com/Springest/terminal-notifier-guard/blob/master/LICENSE
99
+
100
+
101
+ ## Contributors & Thanks to
102
+
103
+ - @alloy (For the terminal-notifier)
104
+ - @railsme (For a clean way to test for OSX version #15)
105
+ - @jamilbx (For support for local terminal-notifier command #8)
106
+ - @mattbrictson (For adding support for the TERMINAL_NOTIFIER_BIN env var)
107
+ - @goronfreeman (For the lovely icon set!)
108
+ - @bbonamin (For fixing the license issue)
109
+ - @croeck (For fixing the binary detection)
data/icons/Failed.icns ADDED
Binary file
data/icons/Guard.icns ADDED
Binary file
data/icons/Notify.icns ADDED
Binary file
Binary file
Binary file
@@ -1,35 +1,55 @@
1
- %w(version failed notify pending success).each do |type|
2
- require File.expand_path("../terminal_notifier/guard/#{type}", __FILE__)
3
- end
4
-
5
1
  module TerminalNotifier
6
2
  module Guard
7
- include TerminalNotifier::Guard::Notify
8
- include TerminalNotifier::Guard::Success
9
- include TerminalNotifier::Guard::Failed
10
- include TerminalNotifier::Guard::Pending
3
+ VERSION = "1.7.0"
4
+ ICONS_PATH = File.expand_path("../../icons", __FILE__)
5
+ GUARD_ICON = File.join(ICONS_PATH, 'Guard.icns')
6
+
7
+ def self.osx_version
8
+ Gem::Version.new(`sw_vers -productVersion`.strip)
9
+ end
10
+
11
+ def self.terminal_notifier_version
12
+ return Gem::Version("0.0.0") unless installed?
13
+ # invoke the help option since the binary otherwise may get stuck
14
+ Gem::Version.new(`#{bin_path} -help`.lines.first.match(/\d\.\d\.\d/)[0])
15
+ rescue
16
+ Gem::Version.new("0.0.0")
17
+ end
18
+
19
+ def self.deprecation_check
20
+ if osx_version <= Gem::Version.new('10.8')
21
+ raise "OSX 10.8 is no longer supported by this gem. Please revert to version <= 1.5.3."
22
+ end
23
+
24
+ if terminal_notifier_version < Gem::Version.new('1.6.0')
25
+ puts "Notice: Your terminal-notifier is older than what terminal-notifier-guard supports, consider upgrading."
26
+ end
27
+ end
11
28
 
12
29
  # Returns wether or not the current platform is Mac OS X 10.8, or higher.
13
30
  def self.available?
31
+ deprecation_check
14
32
  if @available.nil?
15
- @available = `uname`.strip == 'Darwin' && `sw_vers -productVersion`.strip >= '10.8'
33
+ @available = `uname`.strip == 'Darwin' &&
34
+ osx_version >= Gem::Version.new('10.9')
16
35
  end
17
36
  @available
18
37
  end
19
38
 
39
+ # Whether or not the terminal notifier is installed
40
+ def self.installed?
41
+ File.exist? bin_path
42
+ end
43
+
44
+ def self.bin_path
45
+ ENV["TERMINAL_NOTIFIER_BIN"] || begin
46
+ @@binary ||= `which terminal-notifier`.chomp
47
+ end
48
+ end
49
+
20
50
  def self.execute(verbose, options)
21
- if available?
22
- case options[:type]
23
- when :failed
24
- bin_path = TerminalNotifier::Guard::Failed::BIN_PATH
25
- when :success
26
- bin_path = TerminalNotifier::Guard::Success::BIN_PATH
27
- when :pending
28
- bin_path = TerminalNotifier::Guard::Pending::BIN_PATH
29
- else
30
- bin_path = TerminalNotifier::Guard::Notify::BIN_PATH
31
- end
32
- options.delete(:type) if options[:type]
51
+ if available? && installed?
52
+ options.merge!({ :contentImage=> GUARD_ICON, :appIcon => icon(options.delete(:type)) })
33
53
 
34
54
  command = [bin_path, *options.map { |k,v| ["-#{k}", v.to_s] }.flatten]
35
55
  if RUBY_VERSION < '1.9'
@@ -44,7 +64,8 @@ module TerminalNotifier
44
64
  end
45
65
  result
46
66
  else
47
- raise "terminal-notifier is only supported on Mac OS X 10.8, or higher."
67
+ raise "terminal-notifier is only supported on Mac OS X 10.8, or higher." if !available?
68
+ raise "TerminalNotifier not installed. Please do so by running `brew install terminal-notifier`" if !installed?
48
69
  end
49
70
  end
50
71
 
@@ -57,12 +78,12 @@ module TerminalNotifier
57
78
  #
58
79
  # Examples are:
59
80
  #
60
- # TerminalNotifier.notify('Hello World')
61
- # TerminalNotifier.notify('Hello World', :title => 'Ruby')
62
- # TerminalNotifier.notify('Hello World', :group => Process.pid)
63
- # TerminalNotifier.notify('Hello World', :activate => 'com.apple.Safari')
64
- # TerminalNotifier.notify('Hello World', :open => 'http://twitter.com/alloy')
65
- # TerminalNotifier.notify('Hello World', :execute => 'say "OMG"')
81
+ # TerminalNotifier::Guard.notify('Hello World')
82
+ # TerminalNotifier::Guard.notify('Hello World', :title => 'Ruby')
83
+ # TerminalNotifier::Guard.notify('Hello World', :group => Process.pid)
84
+ # TerminalNotifier::Guard.notify('Hello World', :activate => 'com.apple.Safari')
85
+ # TerminalNotifier::Guard.notify('Hello World', :open => 'http://twitter.com/alloy')
86
+ # TerminalNotifier::Guard.notify('Hello World', :execute => 'say "OMG"')
66
87
  #
67
88
  # Raises if not supported on the current platform.
68
89
  def notify(message, options = {}, verbose = false)
@@ -89,6 +110,13 @@ module TerminalNotifier
89
110
  end
90
111
  module_function :success
91
112
 
113
+ def icon(type = :notify)
114
+ type ||= :notify
115
+ file_name = "#{type}.icns".capitalize
116
+ File.join(ICONS_PATH, file_name)
117
+ end
118
+ module_function :icon
119
+
92
120
  # Removes a notification that was previously sent with the specified
93
121
  # ‘group’ ID, if one exists.
94
122
  #
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: terminal-notifier-guard
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.3
5
- prerelease:
4
+ version: 1.7.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Eloy Duran
@@ -10,155 +9,102 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2012-08-14 00:00:00.000000000 Z
12
+ date: 2016-02-20 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: rake
17
16
  requirement: !ruby/object:Gem::Requirement
18
- none: false
19
17
  requirements:
20
- - - ! '>='
18
+ - - ">="
21
19
  - !ruby/object:Gem::Version
22
20
  version: '0'
23
21
  type: :development
24
22
  prerelease: false
25
23
  version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
24
  requirements:
28
- - - ! '>='
25
+ - - ">="
29
26
  - !ruby/object:Gem::Version
30
27
  version: '0'
31
28
  - !ruby/object:Gem::Dependency
32
29
  name: bacon
33
30
  requirement: !ruby/object:Gem::Requirement
34
- none: false
35
31
  requirements:
36
- - - ! '>='
32
+ - - ">="
37
33
  - !ruby/object:Gem::Version
38
34
  version: '0'
39
35
  type: :development
40
36
  prerelease: false
41
37
  version_requirements: !ruby/object:Gem::Requirement
42
- none: false
43
38
  requirements:
44
- - - ! '>='
39
+ - - ">="
45
40
  - !ruby/object:Gem::Version
46
41
  version: '0'
47
42
  - !ruby/object:Gem::Dependency
48
43
  name: mocha
49
44
  requirement: !ruby/object:Gem::Requirement
50
- none: false
51
45
  requirements:
52
- - - ! '>='
46
+ - - ">="
53
47
  - !ruby/object:Gem::Version
54
48
  version: '0'
55
49
  type: :development
56
50
  prerelease: false
57
51
  version_requirements: !ruby/object:Gem::Requirement
58
- none: false
59
52
  requirements:
60
- - - ! '>='
53
+ - - ">="
61
54
  - !ruby/object:Gem::Version
62
55
  version: '0'
63
56
  - !ruby/object:Gem::Dependency
64
57
  name: mocha-on-bacon
65
58
  requirement: !ruby/object:Gem::Requirement
66
- none: false
67
59
  requirements:
68
- - - ! '>='
60
+ - - ">="
69
61
  - !ruby/object:Gem::Version
70
62
  version: '0'
71
63
  type: :development
72
64
  prerelease: false
73
65
  version_requirements: !ruby/object:Gem::Requirement
74
- none: false
75
66
  requirements:
76
- - - ! '>='
67
+ - - ">="
77
68
  - !ruby/object:Gem::Version
78
69
  version: '0'
79
70
  description:
80
71
  email:
81
- - wouter.de.vos@springest.com
82
- executables:
83
- - terminal-notifier-notify
84
- - terminal-notifier-success
85
- - terminal-notifier-failed
86
- - terminal-notifier-pending
72
+ - wouter@springest.com
73
+ executables: []
87
74
  extensions: []
88
75
  extra_rdoc_files:
89
76
  - README.markdown
90
77
  files:
91
- - lib/terminal-notifier-guard.rb
92
- - vendor/terminal-notifier-failed.app/Contents/_CodeSignature/CodeResources
93
- - vendor/terminal-notifier-failed.app/Contents/Info.plist
94
- - vendor/terminal-notifier-failed.app/Contents/MacOS/terminal-notifier
95
- - vendor/terminal-notifier-failed.app/Contents/PkgInfo
96
- - vendor/terminal-notifier-failed.app/Contents/Resources/en.lproj/Credits.rtf
97
- - vendor/terminal-notifier-failed.app/Contents/Resources/en.lproj/InfoPlist.strings
98
- - vendor/terminal-notifier-failed.app/Contents/Resources/en.lproj/MainMenu.nib
99
- - vendor/terminal-notifier-failed.app/Contents/Resources/Failed.icns
100
- - vendor/terminal-notifier-notify.app/Contents/_CodeSignature/CodeResources
101
- - vendor/terminal-notifier-notify.app/Contents/Info.plist
102
- - vendor/terminal-notifier-notify.app/Contents/MacOS/terminal-notifier
103
- - vendor/terminal-notifier-notify.app/Contents/PkgInfo
104
- - vendor/terminal-notifier-notify.app/Contents/Resources/en.lproj/Credits.rtf
105
- - vendor/terminal-notifier-notify.app/Contents/Resources/en.lproj/InfoPlist.strings
106
- - vendor/terminal-notifier-notify.app/Contents/Resources/en.lproj/MainMenu.nib
107
- - vendor/terminal-notifier-notify.app/Contents/Resources/Notify.icns
108
- - vendor/terminal-notifier-pending.app/Contents/_CodeSignature/CodeResources
109
- - vendor/terminal-notifier-pending.app/Contents/Info.plist
110
- - vendor/terminal-notifier-pending.app/Contents/MacOS/terminal-notifier
111
- - vendor/terminal-notifier-pending.app/Contents/PkgInfo
112
- - vendor/terminal-notifier-pending.app/Contents/Resources/en.lproj/Credits.rtf
113
- - vendor/terminal-notifier-pending.app/Contents/Resources/en.lproj/InfoPlist.strings
114
- - vendor/terminal-notifier-pending.app/Contents/Resources/en.lproj/MainMenu.nib
115
- - vendor/terminal-notifier-pending.app/Contents/Resources/Pending.icns
116
- - vendor/terminal-notifier-success.app/Contents/_CodeSignature/CodeResources
117
- - vendor/terminal-notifier-success.app/Contents/Info.plist
118
- - vendor/terminal-notifier-success.app/Contents/MacOS/terminal-notifier
119
- - vendor/terminal-notifier-success.app/Contents/PkgInfo
120
- - vendor/terminal-notifier-success.app/Contents/Resources/en.lproj/Credits.rtf
121
- - vendor/terminal-notifier-success.app/Contents/Resources/en.lproj/InfoPlist.strings
122
- - vendor/terminal-notifier-success.app/Contents/Resources/en.lproj/MainMenu.nib
123
- - vendor/terminal-notifier-success.app/Contents/Resources/Success.icns
124
- - lib/terminal_notifier/guard/failed.rb
125
- - lib/terminal_notifier/guard/notify.rb
126
- - lib/terminal_notifier/guard/pending.rb
127
- - lib/terminal_notifier/guard/success.rb
128
- - lib/terminal_notifier/guard/version.rb
129
- - bin/terminal-notifier-failed
130
- - bin/terminal-notifier-notify
131
- - bin/terminal-notifier-pending
132
- - bin/terminal-notifier-success
133
78
  - README.markdown
134
- homepage: https://github.com/foxycoder/terminal-notifier
135
- licenses: []
79
+ - icons/Failed.icns
80
+ - icons/Guard.icns
81
+ - icons/Notify.icns
82
+ - icons/Pending.icns
83
+ - icons/Success.icns
84
+ - lib/terminal-notifier-guard.rb
85
+ homepage: https://github.com/Springest/terminal-notifier-guard
86
+ licenses:
87
+ - MIT
88
+ metadata: {}
136
89
  post_install_message:
137
90
  rdoc_options: []
138
91
  require_paths:
139
92
  - lib
140
93
  required_ruby_version: !ruby/object:Gem::Requirement
141
- none: false
142
94
  requirements:
143
- - - ! '>='
95
+ - - ">="
144
96
  - !ruby/object:Gem::Version
145
97
  version: '0'
146
- segments:
147
- - 0
148
- hash: 2966011371531771803
149
98
  required_rubygems_version: !ruby/object:Gem::Requirement
150
- none: false
151
99
  requirements:
152
- - - ! '>='
100
+ - - ">="
153
101
  - !ruby/object:Gem::Version
154
102
  version: '0'
155
- segments:
156
- - 0
157
- hash: 2966011371531771803
158
103
  requirements: []
159
104
  rubyforge_project:
160
- rubygems_version: 1.8.24
105
+ rubygems_version: 2.2.2
161
106
  signing_key:
162
- specification_version: 3
107
+ specification_version: 4
163
108
  summary: Send User Notifications on Mac OS X 10.8 - with status icons.
164
109
  test_files: []
110
+ has_rdoc:
@@ -1,9 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- if $0 == __FILE__
4
- $:.unshift File.expand_path('../../lib', __FILE__)
5
- end
6
-
7
- require 'terminal-notifier-guard'
8
-
9
- exec TerminalNotifier::Guard::Failed::BIN_PATH, *ARGV
@@ -1,9 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- if $0 == __FILE__
4
- $:.unshift File.expand_path('../../lib', __FILE__)
5
- end
6
-
7
- require 'terminal-notifier-guard'
8
-
9
- exec TerminalNotifier::Guard::Notify::BIN_PATH, *ARGV
@@ -1,9 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- if $0 == __FILE__
4
- $:.unshift File.expand_path('../../lib', __FILE__)
5
- end
6
-
7
- require 'terminal-notifier-guard'
8
-
9
- exec TerminalNotifier::Guard::Pending::BIN_PATH, *ARGV
@@ -1,9 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- if $0 == __FILE__
4
- $:.unshift File.expand_path('../../lib', __FILE__)
5
- end
6
-
7
- require 'terminal-notifier-guard'
8
-
9
- exec TerminalNotifier::Guard::Success::BIN_PATH, *ARGV
@@ -1,7 +0,0 @@
1
- module TerminalNotifier
2
- module Guard
3
- module Failed
4
- BIN_PATH = File.expand_path('../../../../vendor/terminal-notifier-failed.app/Contents/MacOS/terminal-notifier', __FILE__)
5
- end
6
- end
7
- end
@@ -1,7 +0,0 @@
1
- module TerminalNotifier
2
- module Guard
3
- module Notify
4
- BIN_PATH = File.expand_path('../../../../vendor/terminal-notifier-notify.app/Contents/MacOS/terminal-notifier', __FILE__)
5
- end
6
- end
7
- end
@@ -1,7 +0,0 @@
1
- module TerminalNotifier
2
- module Guard
3
- module Pending
4
- BIN_PATH = File.expand_path('../../../../vendor/terminal-notifier-pending.app/Contents/MacOS/terminal-notifier', __FILE__)
5
- end
6
- end
7
- end
@@ -1,7 +0,0 @@
1
- module TerminalNotifier
2
- module Guard
3
- module Success
4
- BIN_PATH = File.expand_path('../../../../vendor/terminal-notifier-success.app/Contents/MacOS/terminal-notifier', __FILE__)
5
- end
6
- end
7
- end
@@ -1,5 +0,0 @@
1
- module TerminalNotifier
2
- module Guard
3
- VERSION = '1.5.3'
4
- end
5
- end
@@ -1,52 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
- <plist version="1.0">
4
- <dict>
5
- <key>BuildMachineOSBuild</key>
6
- <string>12A269</string>
7
- <key>CFBundleDevelopmentRegion</key>
8
- <string>en</string>
9
- <key>CFBundleExecutable</key>
10
- <string>terminal-notifier</string>
11
- <key>CFBundleIconFile</key>
12
- <string>Failed</string>
13
- <key>CFBundleIdentifier</key>
14
- <string>nl.superalloy.oss.failed.terminal-notifier</string>
15
- <key>CFBundleInfoDictionaryVersion</key>
16
- <string>6.0</string>
17
- <key>CFBundleName</key>
18
- <string>terminal-notifier</string>
19
- <key>CFBundlePackageType</key>
20
- <string>APPL</string>
21
- <key>CFBundleShortVersionString</key>
22
- <string>1.5.0</string>
23
- <key>CFBundleSignature</key>
24
- <string>????</string>
25
- <key>CFBundleVersion</key>
26
- <string>7</string>
27
- <key>DTCompiler</key>
28
- <string></string>
29
- <key>DTPlatformBuild</key>
30
- <string>4F1003</string>
31
- <key>DTPlatformVersion</key>
32
- <string>GM</string>
33
- <key>DTSDKBuild</key>
34
- <string>12A264</string>
35
- <key>DTSDKName</key>
36
- <string>macosx10.8</string>
37
- <key>DTXcode</key>
38
- <string>0441</string>
39
- <key>DTXcodeBuild</key>
40
- <string>4F1003</string>
41
- <key>LSMinimumSystemVersion</key>
42
- <string>10.8</string>
43
- <key>LSUIElement</key>
44
- <true/>
45
- <key>NSHumanReadableCopyright</key>
46
- <string>Copyright © 2012 Eloy Durán. All rights reserved.</string>
47
- <key>NSMainNibFile</key>
48
- <string>MainMenu</string>
49
- <key>NSPrincipalClass</key>
50
- <string>NSApplication</string>
51
- </dict>
52
- </plist>
@@ -1 +0,0 @@
1
- APPL????
@@ -1,29 +0,0 @@
1
- {\rtf0\ansi{\fonttbl\f0\fswiss Helvetica;}
2
- {\colortbl;\red255\green255\blue255;}
3
- \paperw9840\paperh8400
4
- \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural
5
-
6
- \f0\b\fs24 \cf0 Engineering:
7
- \b0 \
8
- Some people\
9
- \
10
-
11
- \b Human Interface Design:
12
- \b0 \
13
- Some other people\
14
- \
15
-
16
- \b Testing:
17
- \b0 \
18
- Hopefully not nobody\
19
- \
20
-
21
- \b Documentation:
22
- \b0 \
23
- Whoever\
24
- \
25
-
26
- \b With special thanks to:
27
- \b0 \
28
- Mom\
29
- }
@@ -1,61 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
- <plist version="1.0">
4
- <dict>
5
- <key>files</key>
6
- <dict>
7
- <key>Resources/Failed.icns</key>
8
- <data>
9
- 5PTHyCZ2DVpqH9uT1YhHCjnGTLM=
10
- </data>
11
- <key>Resources/en.lproj/Credits.rtf</key>
12
- <dict>
13
- <key>hash</key>
14
- <data>
15
- YKJIFIsxneJuNkJNJQIcJIjiPOg=
16
- </data>
17
- <key>optional</key>
18
- <true/>
19
- </dict>
20
- <key>Resources/en.lproj/InfoPlist.strings</key>
21
- <dict>
22
- <key>hash</key>
23
- <data>
24
- MiLKDDnrUKr4EmuvhS5VQwxHGK8=
25
- </data>
26
- <key>optional</key>
27
- <true/>
28
- </dict>
29
- <key>Resources/en.lproj/MainMenu.nib</key>
30
- <dict>
31
- <key>hash</key>
32
- <data>
33
- N1QqAM17vgDk7XNtv27koaE4IhE=
34
- </data>
35
- <key>optional</key>
36
- <true/>
37
- </dict>
38
- </dict>
39
- <key>rules</key>
40
- <dict>
41
- <key>^Resources/</key>
42
- <true/>
43
- <key>^Resources/.*\.lproj/</key>
44
- <dict>
45
- <key>optional</key>
46
- <true/>
47
- <key>weight</key>
48
- <real>1000</real>
49
- </dict>
50
- <key>^Resources/.*\.lproj/locversion.plist$</key>
51
- <dict>
52
- <key>omit</key>
53
- <true/>
54
- <key>weight</key>
55
- <real>1100</real>
56
- </dict>
57
- <key>^version.plist$</key>
58
- <true/>
59
- </dict>
60
- </dict>
61
- </plist>
@@ -1,52 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
- <plist version="1.0">
4
- <dict>
5
- <key>BuildMachineOSBuild</key>
6
- <string>12A269</string>
7
- <key>CFBundleDevelopmentRegion</key>
8
- <string>en</string>
9
- <key>CFBundleExecutable</key>
10
- <string>terminal-notifier</string>
11
- <key>CFBundleIconFile</key>
12
- <string>Notify</string>
13
- <key>CFBundleIdentifier</key>
14
- <string>nl.superalloy.oss.notify.terminal-notifier</string>
15
- <key>CFBundleInfoDictionaryVersion</key>
16
- <string>6.0</string>
17
- <key>CFBundleName</key>
18
- <string>terminal-notifier</string>
19
- <key>CFBundlePackageType</key>
20
- <string>APPL</string>
21
- <key>CFBundleShortVersionString</key>
22
- <string>1.5.0</string>
23
- <key>CFBundleSignature</key>
24
- <string>????</string>
25
- <key>CFBundleVersion</key>
26
- <string>7</string>
27
- <key>DTCompiler</key>
28
- <string></string>
29
- <key>DTPlatformBuild</key>
30
- <string>4F1003</string>
31
- <key>DTPlatformVersion</key>
32
- <string>GM</string>
33
- <key>DTSDKBuild</key>
34
- <string>12A264</string>
35
- <key>DTSDKName</key>
36
- <string>macosx10.8</string>
37
- <key>DTXcode</key>
38
- <string>0441</string>
39
- <key>DTXcodeBuild</key>
40
- <string>4F1003</string>
41
- <key>LSMinimumSystemVersion</key>
42
- <string>10.8</string>
43
- <key>LSUIElement</key>
44
- <true/>
45
- <key>NSHumanReadableCopyright</key>
46
- <string>Copyright © 2012 Eloy Durán. All rights reserved.</string>
47
- <key>NSMainNibFile</key>
48
- <string>MainMenu</string>
49
- <key>NSPrincipalClass</key>
50
- <string>NSApplication</string>
51
- </dict>
52
- </plist>
@@ -1 +0,0 @@
1
- APPL????
@@ -1,29 +0,0 @@
1
- {\rtf0\ansi{\fonttbl\f0\fswiss Helvetica;}
2
- {\colortbl;\red255\green255\blue255;}
3
- \paperw9840\paperh8400
4
- \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural
5
-
6
- \f0\b\fs24 \cf0 Engineering:
7
- \b0 \
8
- Some people\
9
- \
10
-
11
- \b Human Interface Design:
12
- \b0 \
13
- Some other people\
14
- \
15
-
16
- \b Testing:
17
- \b0 \
18
- Hopefully not nobody\
19
- \
20
-
21
- \b Documentation:
22
- \b0 \
23
- Whoever\
24
- \
25
-
26
- \b With special thanks to:
27
- \b0 \
28
- Mom\
29
- }
@@ -1,61 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
- <plist version="1.0">
4
- <dict>
5
- <key>files</key>
6
- <dict>
7
- <key>Resources/Notify.icns</key>
8
- <data>
9
- KcJRIuj13j1C56RrHQi7g7sxcr8=
10
- </data>
11
- <key>Resources/en.lproj/Credits.rtf</key>
12
- <dict>
13
- <key>hash</key>
14
- <data>
15
- YKJIFIsxneJuNkJNJQIcJIjiPOg=
16
- </data>
17
- <key>optional</key>
18
- <true/>
19
- </dict>
20
- <key>Resources/en.lproj/InfoPlist.strings</key>
21
- <dict>
22
- <key>hash</key>
23
- <data>
24
- MiLKDDnrUKr4EmuvhS5VQwxHGK8=
25
- </data>
26
- <key>optional</key>
27
- <true/>
28
- </dict>
29
- <key>Resources/en.lproj/MainMenu.nib</key>
30
- <dict>
31
- <key>hash</key>
32
- <data>
33
- N1QqAM17vgDk7XNtv27koaE4IhE=
34
- </data>
35
- <key>optional</key>
36
- <true/>
37
- </dict>
38
- </dict>
39
- <key>rules</key>
40
- <dict>
41
- <key>^Resources/</key>
42
- <true/>
43
- <key>^Resources/.*\.lproj/</key>
44
- <dict>
45
- <key>optional</key>
46
- <true/>
47
- <key>weight</key>
48
- <real>1000</real>
49
- </dict>
50
- <key>^Resources/.*\.lproj/locversion.plist$</key>
51
- <dict>
52
- <key>omit</key>
53
- <true/>
54
- <key>weight</key>
55
- <real>1100</real>
56
- </dict>
57
- <key>^version.plist$</key>
58
- <true/>
59
- </dict>
60
- </dict>
61
- </plist>
@@ -1,52 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
- <plist version="1.0">
4
- <dict>
5
- <key>BuildMachineOSBuild</key>
6
- <string>12A269</string>
7
- <key>CFBundleDevelopmentRegion</key>
8
- <string>en</string>
9
- <key>CFBundleExecutable</key>
10
- <string>terminal-notifier</string>
11
- <key>CFBundleIconFile</key>
12
- <string>Pending</string>
13
- <key>CFBundleIdentifier</key>
14
- <string>nl.superalloy.oss.pending.terminal-notifier</string>
15
- <key>CFBundleInfoDictionaryVersion</key>
16
- <string>6.0</string>
17
- <key>CFBundleName</key>
18
- <string>terminal-notifier</string>
19
- <key>CFBundlePackageType</key>
20
- <string>APPL</string>
21
- <key>CFBundleShortVersionString</key>
22
- <string>1.5.0</string>
23
- <key>CFBundleSignature</key>
24
- <string>????</string>
25
- <key>CFBundleVersion</key>
26
- <string>7</string>
27
- <key>DTCompiler</key>
28
- <string></string>
29
- <key>DTPlatformBuild</key>
30
- <string>4F1003</string>
31
- <key>DTPlatformVersion</key>
32
- <string>GM</string>
33
- <key>DTSDKBuild</key>
34
- <string>12A264</string>
35
- <key>DTSDKName</key>
36
- <string>macosx10.8</string>
37
- <key>DTXcode</key>
38
- <string>0441</string>
39
- <key>DTXcodeBuild</key>
40
- <string>4F1003</string>
41
- <key>LSMinimumSystemVersion</key>
42
- <string>10.8</string>
43
- <key>LSUIElement</key>
44
- <true/>
45
- <key>NSHumanReadableCopyright</key>
46
- <string>Copyright © 2012 Eloy Durán. All rights reserved.</string>
47
- <key>NSMainNibFile</key>
48
- <string>MainMenu</string>
49
- <key>NSPrincipalClass</key>
50
- <string>NSApplication</string>
51
- </dict>
52
- </plist>
@@ -1 +0,0 @@
1
- APPL????
@@ -1,29 +0,0 @@
1
- {\rtf0\ansi{\fonttbl\f0\fswiss Helvetica;}
2
- {\colortbl;\red255\green255\blue255;}
3
- \paperw9840\paperh8400
4
- \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural
5
-
6
- \f0\b\fs24 \cf0 Engineering:
7
- \b0 \
8
- Some people\
9
- \
10
-
11
- \b Human Interface Design:
12
- \b0 \
13
- Some other people\
14
- \
15
-
16
- \b Testing:
17
- \b0 \
18
- Hopefully not nobody\
19
- \
20
-
21
- \b Documentation:
22
- \b0 \
23
- Whoever\
24
- \
25
-
26
- \b With special thanks to:
27
- \b0 \
28
- Mom\
29
- }
@@ -1,61 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
- <plist version="1.0">
4
- <dict>
5
- <key>files</key>
6
- <dict>
7
- <key>Resources/Pending.icns</key>
8
- <data>
9
- VVQz2MdrOoLA6hP40qOZQD2yiCA=
10
- </data>
11
- <key>Resources/en.lproj/Credits.rtf</key>
12
- <dict>
13
- <key>hash</key>
14
- <data>
15
- YKJIFIsxneJuNkJNJQIcJIjiPOg=
16
- </data>
17
- <key>optional</key>
18
- <true/>
19
- </dict>
20
- <key>Resources/en.lproj/InfoPlist.strings</key>
21
- <dict>
22
- <key>hash</key>
23
- <data>
24
- MiLKDDnrUKr4EmuvhS5VQwxHGK8=
25
- </data>
26
- <key>optional</key>
27
- <true/>
28
- </dict>
29
- <key>Resources/en.lproj/MainMenu.nib</key>
30
- <dict>
31
- <key>hash</key>
32
- <data>
33
- N1QqAM17vgDk7XNtv27koaE4IhE=
34
- </data>
35
- <key>optional</key>
36
- <true/>
37
- </dict>
38
- </dict>
39
- <key>rules</key>
40
- <dict>
41
- <key>^Resources/</key>
42
- <true/>
43
- <key>^Resources/.*\.lproj/</key>
44
- <dict>
45
- <key>optional</key>
46
- <true/>
47
- <key>weight</key>
48
- <real>1000</real>
49
- </dict>
50
- <key>^Resources/.*\.lproj/locversion.plist$</key>
51
- <dict>
52
- <key>omit</key>
53
- <true/>
54
- <key>weight</key>
55
- <real>1100</real>
56
- </dict>
57
- <key>^version.plist$</key>
58
- <true/>
59
- </dict>
60
- </dict>
61
- </plist>
@@ -1,52 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
- <plist version="1.0">
4
- <dict>
5
- <key>BuildMachineOSBuild</key>
6
- <string>12A269</string>
7
- <key>CFBundleDevelopmentRegion</key>
8
- <string>en</string>
9
- <key>CFBundleExecutable</key>
10
- <string>terminal-notifier</string>
11
- <key>CFBundleIconFile</key>
12
- <string>Success</string>
13
- <key>CFBundleIdentifier</key>
14
- <string>nl.superalloy.oss.success.terminal-notifier</string>
15
- <key>CFBundleInfoDictionaryVersion</key>
16
- <string>6.0</string>
17
- <key>CFBundleName</key>
18
- <string>terminal-notifier</string>
19
- <key>CFBundlePackageType</key>
20
- <string>APPL</string>
21
- <key>CFBundleShortVersionString</key>
22
- <string>1.5.0</string>
23
- <key>CFBundleSignature</key>
24
- <string>????</string>
25
- <key>CFBundleVersion</key>
26
- <string>7</string>
27
- <key>DTCompiler</key>
28
- <string></string>
29
- <key>DTPlatformBuild</key>
30
- <string>4F1003</string>
31
- <key>DTPlatformVersion</key>
32
- <string>GM</string>
33
- <key>DTSDKBuild</key>
34
- <string>12A264</string>
35
- <key>DTSDKName</key>
36
- <string>macosx10.8</string>
37
- <key>DTXcode</key>
38
- <string>0441</string>
39
- <key>DTXcodeBuild</key>
40
- <string>4F1003</string>
41
- <key>LSMinimumSystemVersion</key>
42
- <string>10.8</string>
43
- <key>LSUIElement</key>
44
- <true/>
45
- <key>NSHumanReadableCopyright</key>
46
- <string>Copyright © 2012 Eloy Durán. All rights reserved.</string>
47
- <key>NSMainNibFile</key>
48
- <string>MainMenu</string>
49
- <key>NSPrincipalClass</key>
50
- <string>NSApplication</string>
51
- </dict>
52
- </plist>
@@ -1 +0,0 @@
1
- APPL????
@@ -1,29 +0,0 @@
1
- {\rtf0\ansi{\fonttbl\f0\fswiss Helvetica;}
2
- {\colortbl;\red255\green255\blue255;}
3
- \paperw9840\paperh8400
4
- \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural
5
-
6
- \f0\b\fs24 \cf0 Engineering:
7
- \b0 \
8
- Some people\
9
- \
10
-
11
- \b Human Interface Design:
12
- \b0 \
13
- Some other people\
14
- \
15
-
16
- \b Testing:
17
- \b0 \
18
- Hopefully not nobody\
19
- \
20
-
21
- \b Documentation:
22
- \b0 \
23
- Whoever\
24
- \
25
-
26
- \b With special thanks to:
27
- \b0 \
28
- Mom\
29
- }
@@ -1,61 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
- <plist version="1.0">
4
- <dict>
5
- <key>files</key>
6
- <dict>
7
- <key>Resources/Success.icns</key>
8
- <data>
9
- 78sPBudKpASNEPzsDGG9KML1+uw=
10
- </data>
11
- <key>Resources/en.lproj/Credits.rtf</key>
12
- <dict>
13
- <key>hash</key>
14
- <data>
15
- YKJIFIsxneJuNkJNJQIcJIjiPOg=
16
- </data>
17
- <key>optional</key>
18
- <true/>
19
- </dict>
20
- <key>Resources/en.lproj/InfoPlist.strings</key>
21
- <dict>
22
- <key>hash</key>
23
- <data>
24
- MiLKDDnrUKr4EmuvhS5VQwxHGK8=
25
- </data>
26
- <key>optional</key>
27
- <true/>
28
- </dict>
29
- <key>Resources/en.lproj/MainMenu.nib</key>
30
- <dict>
31
- <key>hash</key>
32
- <data>
33
- N1QqAM17vgDk7XNtv27koaE4IhE=
34
- </data>
35
- <key>optional</key>
36
- <true/>
37
- </dict>
38
- </dict>
39
- <key>rules</key>
40
- <dict>
41
- <key>^Resources/</key>
42
- <true/>
43
- <key>^Resources/.*\.lproj/</key>
44
- <dict>
45
- <key>optional</key>
46
- <true/>
47
- <key>weight</key>
48
- <real>1000</real>
49
- </dict>
50
- <key>^Resources/.*\.lproj/locversion.plist$</key>
51
- <dict>
52
- <key>omit</key>
53
- <true/>
54
- <key>weight</key>
55
- <real>1100</real>
56
- </dict>
57
- <key>^version.plist$</key>
58
- <true/>
59
- </dict>
60
- </dict>
61
- </plist>