guard-cucumber 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +1 -1
- data/README.md +1 -1
- data/lib/guard/cucumber/focuser.rb +3 -0
- data/lib/guard/cucumber/version.rb +1 -1
- metadata +2 -2
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -241,7 +241,7 @@ so much growing and comprehensive.
|
|
241
241
|
|
242
242
|
(The MIT License)
|
243
243
|
|
244
|
-
Copyright (c) 2010-
|
244
|
+
Copyright (c) 2010-2013 Michael Kessler
|
245
245
|
|
246
246
|
Permission is hereby granted, free of charge, to any person obtaining
|
247
247
|
a copy of this software and associated documentation files (the
|
@@ -44,6 +44,7 @@ module Guard
|
|
44
44
|
end
|
45
45
|
|
46
46
|
# Checks to see if the file at path contains the focus tag
|
47
|
+
# It will return an empty array if the path is a directory.
|
47
48
|
#
|
48
49
|
# @param [String] path the file path to search
|
49
50
|
# @param [String] focus_tag the focus tag to look for in each path
|
@@ -52,6 +53,8 @@ module Guard
|
|
52
53
|
def scan_path_for_focus_tag(path, focus_tag)
|
53
54
|
line_numbers = []
|
54
55
|
|
56
|
+
return line_numbers if File.directory?(path)
|
57
|
+
|
55
58
|
File.open(path, 'r') do |f|
|
56
59
|
while (line = f.gets)
|
57
60
|
if line.include?(focus_tag)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-cucumber
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
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:
|
12
|
+
date: 2013-01-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: guard
|