travis-ci
1070 of 1070 new or added lines in 76 files covered. (100.0%)
6653 of 6922 relevant lines covered (96.11%)
11.35 hits per line
1 |
require "pry"
|
5✔ |
2 |
|
|
3 |
# TODO: remove
|
|
|
require "guard"
|
5✔ |
5 |
|
|
6 |
module Guard |
5✔ |
7 |
module Commands |
5✔ |
8 |
class Change |
5✔ |
9 |
def self.import |
5✔ |
10 |
Pry::Commands.create_command "change" do |
11 all except rbx ✔ |
11 |
group "Guard"
|
11 all except rbx ✔ |
12 |
description "Trigger a file change."
|
11 all except rbx ✔ |
13 |
|
|
14 |
banner <<-BANNER |
11 all except rbx ✔ |
15 |
Usage: change <file> <other_file> |
|
16 |
|
|
17 |
Pass the given files to the Guard plugin `run_on_changes` action.
|
|
18 |
BANNER |
× |
19 |
|
|
20 |
def process(*files) |
11 all except rbx ✔ |
21 |
if files.empty?
|
3 all except rbx ✔ |
22 |
output.puts "Please specify a file."
|
1 all except rbx ✔ |
23 |
return
|
1 all except rbx ✔ |
24 |
end
|
|
25 |
|
|
26 |
::Guard.async_queue_add(modified: files, added: [], removed: []) |
2 all except rbx ✔ |
27 |
end
|
|
28 |
end
|
|
29 |
end
|
|
30 |
end
|
|
31 |
end
|
|
32 |
end
|