guard 2.0.5 → 2.1.0
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 +4 -4
- data/README.md +1 -1
- data/lib/guard/interactor.rb +6 -3
- data/lib/guard/notifiers/tmux.rb +5 -3
- data/lib/guard/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6500e7d2927db23543d36ec1dc5574f0678e68b6
|
4
|
+
data.tar.gz: ebb55bd7d63bacfd3a927bbe7060ad5c4eaecd5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 071db2999a5902a860dfd4c25635dee9a72c309fe92246f0998072ed4904593df288c4c36fba61703b1f1a5e63a7688f497bb706a80cdb1d5defa3d7d5bd5aa5
|
7
|
+
data.tar.gz: b8c9f33e9272a26a29f25e293963a48107c1f0f595cecfaf43fa6037b93ebf8560e1848598cadb7b7e15d50f8d2729576bbb5c5b3301e993373c0f04b8a38e45
|
data/README.md
CHANGED
@@ -330,7 +330,7 @@ $ bundle exec guard notifiers
|
|
330
330
|
+-------------------+-----------+------+------------------------+-------------------+
|
331
331
|
```
|
332
332
|
|
333
|
-
This shows if a notifier is available on the current system,
|
333
|
+
This shows if a notifier is available on the current system, if it's being used and the
|
334
334
|
current options (which reflects your custom options merged into the default options).
|
335
335
|
|
336
336
|
Interactions
|
data/lib/guard/interactor.rb
CHANGED
@@ -270,7 +270,7 @@ module Guard
|
|
270
270
|
#
|
271
271
|
def _scope_for_prompt
|
272
272
|
[:plugins, :groups].each do |scope_name|
|
273
|
-
return _join_scope_for_prompt(scope_name) unless ::Guard.scope[scope_name].empty?
|
273
|
+
return "#{_join_scope_for_prompt(scope_name)} " unless ::Guard.scope[scope_name].empty?
|
274
274
|
end
|
275
275
|
|
276
276
|
''
|
@@ -289,13 +289,16 @@ module Guard
|
|
289
289
|
proc do |target_self, nest_level, pry|
|
290
290
|
history = pry.input_array.size
|
291
291
|
process = ::Guard.listener.paused? ? 'pause' : 'guard'
|
292
|
-
clip = Pry.view_clip(target_self)
|
293
292
|
level = ":#{ nest_level }" unless nest_level.zero?
|
294
293
|
|
295
|
-
"[#{ history }] #{ _scope_for_prompt }#{ process }(#{
|
294
|
+
"[#{ history }] #{ _scope_for_prompt }#{ process }(#{ _clip_name(target_self) })#{ level }#{ ending_char } "
|
296
295
|
end
|
297
296
|
end
|
298
297
|
|
298
|
+
def _clip_name(target)
|
299
|
+
Pry.view_clip(target)
|
300
|
+
end
|
301
|
+
|
299
302
|
# Detects whether or not the stty command exists
|
300
303
|
# on the user machine.
|
301
304
|
#
|
data/lib/guard/notifiers/tmux.rb
CHANGED
@@ -83,7 +83,7 @@ module Guard
|
|
83
83
|
# @option opts [String] image the path to the notification image
|
84
84
|
# @option opts [Boolean] change_color whether to show a color
|
85
85
|
# notification
|
86
|
-
# @option opts [String] color_location the location where to draw the
|
86
|
+
# @option opts [String,Array] color_location the location where to draw the
|
87
87
|
# color notification
|
88
88
|
# @option opts [Boolean] display_message whether to display a message
|
89
89
|
# or not
|
@@ -93,10 +93,12 @@ module Guard
|
|
93
93
|
opts.delete(:image)
|
94
94
|
|
95
95
|
if opts.fetch(:change_color, DEFAULTS[:change_color])
|
96
|
-
|
96
|
+
color_locations = Array(opts.fetch(:color_location, DEFAULTS[:color_location]))
|
97
97
|
color = tmux_color(opts[:type], opts)
|
98
98
|
|
99
|
-
|
99
|
+
color_locations.each do |color_location|
|
100
|
+
_run_client "set #{ color_location } #{ color }"
|
101
|
+
end
|
100
102
|
end
|
101
103
|
|
102
104
|
if opts.fetch(:display_message, DEFAULTS[:display_message])
|
data/lib/guard/version.rb
CHANGED
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.0
|
4
|
+
version: 2.1.0
|
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-
|
11
|
+
date: 2013-10-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '2.
|
33
|
+
version: '2.1'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ~>
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '2.
|
40
|
+
version: '2.1'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: pry
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|