guard 2.2.2 → 2.2.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: 4e1d7c529d6a5cd4e5c2380c23df591a3142c2c3
4
- data.tar.gz: 875dd1d02b15e4f2a417a34d492cdb4feb61dd0b
3
+ metadata.gz: eb89fd8c33c9157806648b93f82adc1756ae93d3
4
+ data.tar.gz: 39596d5b723687f2e0aab7e31aeca974ee952af2
5
5
  SHA512:
6
- metadata.gz: 6c1712377b0a2e164edf99dff15f3ea07647b5963d1f961f850021f6e7acba79719f47f27917223acdc386a404e2c95b0edbbcd9e24b8bad09779bbe3324c728
7
- data.tar.gz: 227ed3338dbb01ef94ba96fccd1aea460f63c60747e1d0d3697148adfa32dbc23ac210d7ea9b1f83c9fcf5d4bebd5ab8d69f10d437a78b1324c00391850fcfda
6
+ metadata.gz: 33195a00ad0b4dfce3e70ab175254aba5a485e2eb8e5cf72ba601b34b31e948f5eb13c6f88a5bdfc6c200bf1b5d7c08d1c0a26f3658faf04c10d5fe54dea8f52
7
+ data.tar.gz: 74db8ad59ac2ecda8d0c3cdd2aa2fcf9967ed3ef809ee0e0e5de1b523e6374b5f03d24c3feafa3b59519ac0eaa0dac8f9b6abb20f7c169497fed1aae8851b53f
data/README.md CHANGED
@@ -718,7 +718,7 @@ Please try to follow these simple rules:
718
718
  #### Core Team
719
719
 
720
720
  * [Michael Kessler](https://github.com/netzpirat) ([@netzpirat](http://twitter.com/netzpirat), [mksoft.ch](https://mksoft.ch))
721
- * [Rémy Coutable](https://github.com/rymai) ([@rymai](http://twitter.com/rymai), [rym.ai](http://rym.ai))
721
+ * [Rémy Coutable](https://github.com/rymai)
722
722
  * [Thibaud Guillaume-Gentil](https://github.com/thibaudgg) ([@thibaudgg](http://twitter.com/thibaudgg), [thibaud.me](http://thibaud.me/))
723
723
 
724
724
  #### Contributors
@@ -76,7 +76,7 @@ module Guard
76
76
 
77
77
  within_preserved_state do
78
78
  ::Guard::UI.clear(force: true)
79
- ::Guard::UI.action_with_scopes('Run all', scopes)
79
+ ::Guard::UI.action_with_scopes('Run', scopes)
80
80
  runner.run(:run_all, scopes)
81
81
  end
82
82
  end
@@ -86,7 +86,8 @@ module Guard
86
86
  private
87
87
 
88
88
  def _run_cmd(*args)
89
- IO.popen(args).readlines
89
+ p = IO.popen(args).readlines
90
+ p.close
90
91
  end
91
92
 
92
93
  end
@@ -69,7 +69,7 @@ module Guard
69
69
  def notify(message, opts = {})
70
70
  super
71
71
 
72
- command = [title, message]
72
+ command = [opts[:title], message]
73
73
  opts = DEFAULTS.merge(
74
74
  i: opts.delete(:image),
75
75
  u: _notifysend_urgency(opts.delete(:type))
@@ -134,7 +134,11 @@ module Guard
134
134
  teaser_message = message.split("\n").first
135
135
  display_title = title_format % [title, teaser_message]
136
136
 
137
- _run_client "set-option -q set-titles-string '#{ display_title }'"
137
+ if _tmux_version >= 1.7
138
+ _run_client "set-option -q set-titles-string '#{ display_title }'"
139
+ else
140
+ _run_client "set-option set-titles-string '#{ display_title }'"
141
+ end
138
142
  end
139
143
 
140
144
  # Displays a message in the status bar of tmux.
@@ -256,6 +260,10 @@ module Guard
256
260
  }
257
261
  end
258
262
 
263
+ def _tmux_version
264
+ @tmux_version ||= `tmux -V`.chomp.gsub(/[^0-9.]/,'').to_f
265
+ end
266
+
259
267
  end
260
268
 
261
269
  end
@@ -1,3 +1,3 @@
1
1
  module Guard
2
- VERSION = '2.2.2'
2
+ VERSION = '2.2.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.2
4
+ version: 2.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thibaud Guillaume-Gentil
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-23 00:00:00.000000000 Z
11
+ date: 2013-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -193,7 +193,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
193
193
  version: '0'
194
194
  requirements: []
195
195
  rubyforge_project:
196
- rubygems_version: 2.0.7
196
+ rubygems_version: 2.1.10
197
197
  signing_key:
198
198
  specification_version: 4
199
199
  summary: Guard keeps an eye on your file modifications