terminal-notifier-guard 1.6.4 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 03bb1db479ef19787f57ac0c6aebcfdf29ef92a4
4
- data.tar.gz: 63645cd387bfe950ebdaf24d3ae539b0e3d50042
3
+ metadata.gz: ea0bfaf44ae88a389c6fd5dd95c7c0c879731d24
4
+ data.tar.gz: b437929f03ff02c3d43b99da82ed8348f5cb020f
5
5
  SHA512:
6
- metadata.gz: 16f8f5398b9ab5458b341db3e7a013b6b5d372071b09ce197e108172b59a03c5397e5e551fe750ed36e59917c4f89c3885c56d8dbdb842d73e651652c4a97691
7
- data.tar.gz: e859a738aa64d27425cb179daf28a7ef865b7d7d18c62541f83f6194ed92893fde02340c52ee78175d5d1fa45be42b3a9ed7faea1c59367d7a7a5d1e6223aac0
6
+ metadata.gz: a96884f7bb4caecc9962e6be5be1df866568046de509d21f4700edb81587098c53680a81dd6783ffc60f47ea37ce6173d3c9b58a1cb8e2e031934636b3ced220
7
+ data.tar.gz: 9dc03d445c2cc563d6eff882ea380bbd4da414040d0d9f623588e063fb8483e0f1e0343e95890d67b3c1db917947a1474cfb5cf41e34fb933b9ded56dfe1ed8e
@@ -31,10 +31,31 @@ $ gem install terminal-notifier-guard
31
31
 
32
32
  Or add it to your Gemfile:
33
33
 
34
+ ```ruby
35
+ gem 'terminal-notifier-guard', '~> 1.6.1'
34
36
  ```
35
- $ gem 'terminal-notifier-guard', '~> 1.6.1'
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'
36
43
  ```
37
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
+
38
59
  ### OSX 10.8 users
39
60
 
40
61
  As of version `1.6.1`, we no longer bundle notifiers binaries in this gem. Please revert to
@@ -82,3 +103,7 @@ See [LICENSE][LICENSE] for details.
82
103
  - @alloy (For the terminal-notifier)
83
104
  - @railsme (For a clean way to test for OSX version #15)
84
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)
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,6 +1,6 @@
1
1
  module TerminalNotifier
2
2
  module Guard
3
- VERSION = "1.6.4"
3
+ VERSION = "1.7.0"
4
4
  ICONS_PATH = File.expand_path("../../icons", __FILE__)
5
5
  GUARD_ICON = File.join(ICONS_PATH, 'Guard.icns')
6
6
 
@@ -10,7 +10,8 @@ module TerminalNotifier
10
10
 
11
11
  def self.terminal_notifier_version
12
12
  return Gem::Version("0.0.0") unless installed?
13
- Gem::Version.new(`#{bin_path}`.lines.first.match(/\d\.\d\.\d/)[0])
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])
14
15
  rescue
15
16
  Gem::Version.new("0.0.0")
16
17
  end
@@ -41,7 +42,9 @@ module TerminalNotifier
41
42
  end
42
43
 
43
44
  def self.bin_path
44
- @@binary ||= `which terminal-notifier`.chomp
45
+ ENV["TERMINAL_NOTIFIER_BIN"] || begin
46
+ @@binary ||= `which terminal-notifier`.chomp
47
+ end
45
48
  end
46
49
 
47
50
  def self.execute(verbose, options)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: terminal-notifier-guard
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.4
4
+ version: 1.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eloy Duran
@@ -9,62 +9,62 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-11-03 00:00:00.000000000 Z
12
+ date: 2016-02-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - '>='
18
+ - - ">="
19
19
  - !ruby/object:Gem::Version
20
20
  version: '0'
21
21
  type: :development
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - '>='
25
+ - - ">="
26
26
  - !ruby/object:Gem::Version
27
27
  version: '0'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: bacon
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - '>='
32
+ - - ">="
33
33
  - !ruby/object:Gem::Version
34
34
  version: '0'
35
35
  type: :development
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - '>='
39
+ - - ">="
40
40
  - !ruby/object:Gem::Version
41
41
  version: '0'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: mocha
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - '>='
46
+ - - ">="
47
47
  - !ruby/object:Gem::Version
48
48
  version: '0'
49
49
  type: :development
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - '>='
53
+ - - ">="
54
54
  - !ruby/object:Gem::Version
55
55
  version: '0'
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: mocha-on-bacon
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - '>='
60
+ - - ">="
61
61
  - !ruby/object:Gem::Version
62
62
  version: '0'
63
63
  type: :development
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - '>='
67
+ - - ">="
68
68
  - !ruby/object:Gem::Version
69
69
  version: '0'
70
70
  description:
@@ -83,7 +83,8 @@ files:
83
83
  - icons/Success.icns
84
84
  - lib/terminal-notifier-guard.rb
85
85
  homepage: https://github.com/Springest/terminal-notifier-guard
86
- licenses: []
86
+ licenses:
87
+ - MIT
87
88
  metadata: {}
88
89
  post_install_message:
89
90
  rdoc_options: []
@@ -91,18 +92,19 @@ require_paths:
91
92
  - lib
92
93
  required_ruby_version: !ruby/object:Gem::Requirement
93
94
  requirements:
94
- - - '>='
95
+ - - ">="
95
96
  - !ruby/object:Gem::Version
96
97
  version: '0'
97
98
  required_rubygems_version: !ruby/object:Gem::Requirement
98
99
  requirements:
99
- - - '>='
100
+ - - ">="
100
101
  - !ruby/object:Gem::Version
101
102
  version: '0'
102
103
  requirements: []
103
104
  rubyforge_project:
104
- rubygems_version: 2.4.2
105
+ rubygems_version: 2.2.2
105
106
  signing_key:
106
107
  specification_version: 4
107
108
  summary: Send User Notifications on Mac OS X 10.8 - with status icons.
108
109
  test_files: []
110
+ has_rdoc: