push
travis-ci
136 of 136 new or added lines in 17 files covered. (100.0%)
3118 of 5522 relevant lines covered (56.47%)
4.86 hits per line
1 |
module Guard |
4✔ |
2 |
module Commands |
4✔ |
3 |
class Scope |
4✔ |
4 |
def self.import |
4✔ |
5 |
Pry::Commands.create_command 'scope' do |
4✔ |
6 |
group 'Guard'
|
4✔ |
7 |
description 'Scope Guard actions to groups and plugins.'
|
4✔ |
8 |
|
|
9 |
banner <<-BANNER |
3 all except 1.9.3 ✔ |
10 |
Usage: scope <scope> |
|
11 |
|
|
12 |
Set the global Guard scope.
|
|
13 |
BANNER |
1 only 1.9.3 ✔ |
14 |
|
|
15 |
def process(*entries) |
4✔ |
16 |
scope, unknown = Guard::Interactor.convert_scope(entries) |
1 only 2.1.0 ✔ |
17 |
|
|
18 |
unless unknown.empty?
|
1 only 2.1.0 ✔ |
19 |
output.puts "Unknown scopes: #{unknown.join(',') }"
|
1 only 2.1.0 ✔ |
20 |
return
|
1 only 2.1.0 ✔ |
21 |
end
|
|
22 |
|
|
23 |
if scope[:plugins].empty? && scope[:groups].empty? |
× |
24 |
output.puts 'Usage: scope <scope>'
|
× |
25 |
return
|
× |
26 |
end
|
|
27 |
|
|
28 |
Guard.scope = scope
|
× |
29 |
end
|
|
30 |
end
|
|
31 |
end
|
|
32 |
end
|
|
33 |
end
|
|
34 |
end
|
|
35 |
|
|
36 |
Guard::Commands::Scope.import |
4✔ |