capistrano-nc 0.1.2 → 0.1.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: 2d36db6ff8dcbdd68e82a41e4c41ff043eb04e8a
4
- data.tar.gz: 15ae6f52d8fa803d6ebafacff5834afa4d25f42f
3
+ metadata.gz: 3bd39f7abc6b164289b237ffb244b75959025ba7
4
+ data.tar.gz: 080bf44790411987693464c2956429a5fda0a096
5
5
  SHA512:
6
- metadata.gz: a310ebdc8bc353737fb1b4443aee869ff6836dfb1ad756efa8bc5a6466d94b6f7b95af35fef5c2b924935da75b2d3c52bd541cd2e28b34114b8d980042cb5104
7
- data.tar.gz: bb9b008c7095668477329e496147c710495d689c130310c5dcb66b64ff38f66b09b93508687b3b75f0ead24ea38e43aa3ec354badf8a6299e3a40ff901caf9e2
6
+ metadata.gz: ac78dda7e526987342efe87d0a256f4334429f2d1f5ef675e6536fa081643f486b9f4aabd755c7113421f75e80c46da978e117f9194201610210fdb7383c5e5c
7
+ data.tar.gz: 8eef3e0cb48dc1f79098f9b83cef04920369dcabb66869b055652ec6fe15a9e86aab4dabd932aee5ba5a89262cd1db85d36f85e732260bcfa78f002053de0bc6
@@ -1,3 +1,7 @@
1
+ ## 0.1.3
2
+
3
+ * Added support for "activate" and "sender" terminal-notifier options (#5)
4
+
1
5
  ## 0.1.2
2
6
 
3
7
  * Fixed dependency on Capistrano core
data/README.md CHANGED
@@ -10,7 +10,7 @@ capistrano-nc integrates Capistrano and Mountain Lion's Notification Center.
10
10
 
11
11
  ```ruby
12
12
  # Gemfile
13
- gem 'capistrano-nc', '~> 0.1.0'
13
+ gem 'capistrano-nc', '~> 0.1.3'
14
14
  ```
15
15
 
16
16
  ```ruby
@@ -36,6 +36,8 @@ By default it will run the `nc:finished` task after your `deploy` or `deploy:mig
36
36
  after `your:task`, `nc:finished`
37
37
  ```
38
38
 
39
+ Terminal.app is opened when the notification is clicked. To use an alternative terminal set `:nc_terminal` to the bundle identifier e.g. `set :nc_terminal, 'com.googlecode.iterm2'` for iTerm2.
40
+
39
41
  ## Contributors
40
42
 
41
43
  - [Kir Shatrov](https://github.com/kirs/)
@@ -1,7 +1,7 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  Gem::Specification.new do |gem|
3
3
  gem.name = 'capistrano-nc'
4
- gem.version = '0.1.2'
4
+ gem.version = '0.1.3'
5
5
  gem.authors = ['Kir Shatrov']
6
6
  gem.email = ['shatrov@me.com']
7
7
  gem.summary = "Capistrano 3 integration with Mountain Lion's Notification Center"
@@ -22,9 +22,18 @@ namespace :nc do
22
22
  "#{application} to #{announced_stage}"
23
23
  end
24
24
 
25
- TerminalNotifier.notify(announcement, title: "Capistrano")
25
+ terminal = fetch(:nc_terminal, 'com.apple.Terminal')
26
+ TerminalNotifier.notify(announcement, title: "Capistrano", sender: terminal, activate: terminal)
26
27
  end
27
28
  end
28
29
  end
29
30
 
30
31
  after 'deploy:finished', 'nc:finished'
32
+
33
+ namespace :load do
34
+ task :defaults do
35
+
36
+ set :nc_terminal, 'com.apple.Terminal'
37
+
38
+ end
39
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-nc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kir Shatrov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-12 00:00:00.000000000 Z
11
+ date: 2014-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: terminal-notifier
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  version: '0'
76
76
  requirements: []
77
77
  rubyforge_project:
78
- rubygems_version: 2.0.3
78
+ rubygems_version: 2.2.1
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Capistrano 3 integration with Mountain Lion's Notification Center