guard 1.3.2 → 1.3.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 1.3.3 - 20 September, 2012
2
+
3
+ - Add Guard application icon to GNTP notifier. ([@netzpirat][])
4
+ - [#324][] Allow Terminal Notifier title to be customizable. ([@mattgreen][])
5
+
1
6
  ## 1.3.2 - 15 August, 2012
2
7
 
3
8
  ### Improvements
@@ -23,13 +28,13 @@
23
28
  - Add support for Emacs notifications ([@maio][])
24
29
  - Add support for multiple guards being passed to `guard init`. ([@jredville][])
25
30
 
26
- ### 1.2.1 - 2 Juli, 2012
31
+ ### 1.2.1 - 2 July, 2012
27
32
 
28
33
  ### Bug fix
29
34
 
30
35
  - Fix template methods in the Guard plugin class that causes loss of listen changes. ([@netzpirat][])
31
36
 
32
- ### 1.2.2 - 2 Juli, 2012
37
+ ### 1.2.2 - 2 July, 2012
33
38
 
34
39
  ### Bug fix
35
40
 
@@ -589,6 +594,7 @@ The Listen integration has been supervised by [@thibaudgg][] and executed by [@M
589
594
  [#315]: https://github.com/guard/guard/issues/315
590
595
  [#316]: https://github.com/guard/guard/issues/316
591
596
  [#317]: https://github.com/guard/guard/issues/317
597
+ [#324]: https://github.com/guard/guard/issues/324
592
598
  [@Gazer]: https://github.com/Gazer
593
599
  [@Maher4Ever]: https://github.com/Maher4Ever
594
600
  [@alandipert]: https://github.com/alandipert
@@ -627,6 +633,7 @@ The Listen integration has been supervised by [@thibaudgg][] and executed by [@M
627
633
  [@limeyd]: https://github.com/limeyd
628
634
  [@madtrick]: https://github.com/madtrick
629
635
  [@maio]: https://github.com/maio
636
+ [@mattgreen]: https://github.com/mattgreen
630
637
  [@mcmire]: https://github.com/mcmire
631
638
  [@mislav]: https://github.com/mislav
632
639
  [@monocle]: https://github.com/monocle
data/README.md CHANGED
@@ -69,31 +69,8 @@ the time, try the [Rubygems Bundler](https://github.com/mpapis/rubygems-bundler)
69
69
  You can configure Guard to make use of the following system notification libraries, but it's strongly recommended
70
70
  to use either Ruby GNTP, Libnotify or Notifu:
71
71
 
72
- #### Growl
73
-
74
- * Runs on Mac OS X
75
- * Supports all [Growl](http://growl.info/) versions
76
-
77
- The [growl](https://rubygems.org/gems/growl) gem is compatible with all versions of Growl and uses a command line tool
78
- [growlnotify](http://growl.info/extras.php#growlnotify) that must be separately downloaded and installed. The version of
79
- the command line tool must match your Growl version. The `growl` gem does **not** support multiple notification
80
- channels.
81
-
82
- You have to download the installer for `growlnotify` from the [Growl download section](http://growl.info/downloads).
83
-
84
- To use `growl` you have to add it to your `Gemfile` and run bundler:
85
-
86
- ```ruby
87
- group :development do
88
- gem 'growl'
89
- end
90
- ```
91
-
92
72
  #### Ruby GNTP
93
73
 
94
- **There's currently a bug in Growl that prevents displaying the icons through GNTP, see
95
- [issue #231](https://github.com/guard/guard/issues/231). Use the growl gem until fixed.**
96
-
97
74
  * Runs on Mac OS X, Linux and Windows
98
75
  * Supports [Growl](http://growl.info/) version >= 1.3, [Growl for Linux](http://mattn.github.com/growl-for-linux/),
99
76
  [Growl for Windows](http://www.growlforwindows.com/gfw/default.aspx) and
@@ -101,7 +78,8 @@ end
101
78
 
102
79
  The [ruby_gntp](https://rubygems.org/gems/ruby_gntp) gem sends system notifications over the network with the
103
80
  [Growl Notification Transport Protocol](http://www.growlforwindows.com/gfw/help/gntp.aspx) and supports local and
104
- remote notifications.
81
+ remote notifications. To have the images be displayed, you have to use `127.0.0.1` instead of `localhost` in your GTNP
82
+ configuration.
105
83
 
106
84
  Guard supports multiple notification channels for customizing each notification type. For Growl on Mac OS X you need
107
85
  to have at least version 1.3 installed.
@@ -114,6 +92,26 @@ group :development do
114
92
  end
115
93
  ```
116
94
 
95
+ #### Growl
96
+
97
+ * Runs on Mac OS X
98
+ * Supports all [Growl](http://growl.info/) versions
99
+
100
+ The [growl](https://rubygems.org/gems/growl) gem is compatible with all versions of Growl and uses a command line tool
101
+ [growlnotify](http://growl.info/extras.php#growlnotify) that must be separately downloaded and installed. The version of
102
+ the command line tool must match your Growl version. The `growl` gem does **not** support multiple notification
103
+ channels.
104
+
105
+ You have to download the installer for `growlnotify` from the [Growl download section](http://growl.info/downloads).
106
+
107
+ To use `growl` you have to add it to your `Gemfile` and run bundler:
108
+
109
+ ```ruby
110
+ group :development do
111
+ gem 'growl'
112
+ end
113
+ ```
114
+
117
115
  #### Libnotify
118
116
 
119
117
  * Runs on Linux, FreeBSD, OpenBSD and Solaris
data/images/guard.png ADDED
Binary file
@@ -32,7 +32,7 @@ module Guard
32
32
  # Default options for the ruby gtnp gem
33
33
  DEFAULTS = {
34
34
  :sticky => false,
35
- :host => 'localhost',
35
+ :host => '127.0.0.1',
36
36
  :password => '',
37
37
  :port => 23053
38
38
  }
@@ -91,12 +91,15 @@ module Guard
91
91
  gntp = ::GNTP.new('Guard', options.delete(:host), options.delete(:password), options.delete(:port))
92
92
 
93
93
  unless registered?
94
- gntp.register(:notifications => [
95
- { :name => 'notify', :enabled => true },
96
- { :name => 'failed', :enabled => true },
97
- { :name => 'pending', :enabled => true },
98
- { :name => 'success', :enabled => true }
99
- ])
94
+ gntp.register({
95
+ :app_icon => File.expand_path(File.join(__FILE__, '..', '..', '..', '..', 'images', 'guard.png')),
96
+ :notifications => [
97
+ { :name => 'notify', :enabled => true },
98
+ { :name => 'failed', :enabled => true },
99
+ { :name => 'pending', :enabled => true },
100
+ { :name => 'success', :enabled => true }
101
+ ]
102
+ })
100
103
 
101
104
  registered!
102
105
  end
@@ -56,7 +56,7 @@ module Guard
56
56
  #
57
57
  def notify(type, title, message, image, options = { })
58
58
  require 'terminal-notifier-guard'
59
- options[:title] = [options[:app_name] || 'Guard', type.downcase.capitalize, title].join ' '
59
+ options[:title] = title || [options[:app_name] || 'Guard', type.downcase.capitalize].join(' ')
60
60
  options.merge!(:type => type.to_sym, :message => message)
61
61
  options.delete :app_name if options[:app_name]
62
62
  ::TerminalNotifier::Guard.execute(false, options)
data/lib/guard/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Guard
2
2
  # The current gem version of Guard
3
- VERSION = '1.3.2'
3
+ VERSION = '1.3.3'
4
4
  end
@@ -0,0 +1,130 @@
1
+ !RBIX
2
+ 9595534255132031488
3
+ x
4
+ M
5
+ 1
6
+ n
7
+ n
8
+ x
9
+ 10
10
+ __script__
11
+ i
12
+ 28
13
+ 99
14
+ 7
15
+ 0
16
+ 65
17
+ 49
18
+ 1
19
+ 2
20
+ 13
21
+ 99
22
+ 12
23
+ 7
24
+ 2
25
+ 12
26
+ 7
27
+ 3
28
+ 12
29
+ 65
30
+ 12
31
+ 49
32
+ 4
33
+ 4
34
+ 15
35
+ 49
36
+ 2
37
+ 0
38
+ 15
39
+ 2
40
+ 11
41
+ I
42
+ 6
43
+ I
44
+ 0
45
+ I
46
+ 0
47
+ I
48
+ 0
49
+ n
50
+ p
51
+ 5
52
+ x
53
+ 5
54
+ Guard
55
+ x
56
+ 11
57
+ open_module
58
+ x
59
+ 15
60
+ __module_init__
61
+ M
62
+ 1
63
+ n
64
+ n
65
+ x
66
+ 5
67
+ Guard
68
+ i
69
+ 12
70
+ 5
71
+ 66
72
+ 65
73
+ 7
74
+ 0
75
+ 7
76
+ 1
77
+ 64
78
+ 49
79
+ 2
80
+ 2
81
+ 11
82
+ I
83
+ 3
84
+ I
85
+ 0
86
+ I
87
+ 0
88
+ I
89
+ 0
90
+ n
91
+ p
92
+ 3
93
+ x
94
+ 7
95
+ VERSION
96
+ s
97
+ 5
98
+ 1.3.1
99
+ x
100
+ 9
101
+ const_set
102
+ p
103
+ 3
104
+ I
105
+ 2
106
+ I
107
+ 3
108
+ I
109
+ c
110
+ x
111
+ 52
112
+ /Users/michi/Repositories/guard/lib/guard/version.rb
113
+ p
114
+ 0
115
+ x
116
+ 13
117
+ attach_method
118
+ p
119
+ 3
120
+ I
121
+ 0
122
+ I
123
+ 1
124
+ I
125
+ 1c
126
+ x
127
+ 52
128
+ /Users/michi/Repositories/guard/lib/guard/version.rb
129
+ p
130
+ 0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ version: 1.3.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-15 00:00:00.000000000 Z
12
+ date: 2012-09-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor
@@ -99,9 +99,9 @@ executables:
99
99
  extensions: []
100
100
  extra_rdoc_files: []
101
101
  files:
102
- - bin/fsevent_watch_guard
103
102
  - bin/guard
104
103
  - images/failed.png
104
+ - images/guard.png
105
105
  - images/pending.png
106
106
  - images/success.png
107
107
  - lib/guard/cli.rb
@@ -130,6 +130,7 @@ files:
130
130
  - lib/guard/templates/Guardfile
131
131
  - lib/guard/ui.rb
132
132
  - lib/guard/version.rb
133
+ - lib/guard/version.rbc
133
134
  - lib/guard/watcher.rb
134
135
  - lib/guard.rb
135
136
  - CHANGELOG.md
@@ -149,6 +150,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
149
150
  - - ! '>='
150
151
  - !ruby/object:Gem::Version
151
152
  version: '0'
153
+ segments:
154
+ - 0
155
+ hash: -172955566511919154
152
156
  required_rubygems_version: !ruby/object:Gem::Requirement
153
157
  none: false
154
158
  requirements:
@@ -162,3 +166,4 @@ signing_key:
162
166
  specification_version: 3
163
167
  summary: Guard keeps an eye on your file modifications
164
168
  test_files: []
169
+ has_rdoc:
Binary file