guard-cucumber 1.3.0 → 1.3.1

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.
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2010-2012 Michael Kessler
1
+ Copyright (c) 2010-2013 Michael Kessler
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
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-2012 Michael Kessler
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)
@@ -1,6 +1,6 @@
1
1
  module Guard
2
2
  module CucumberVersion
3
3
  # Guard::Cucumber version that is used for the Gem specification
4
- VERSION = '1.3.0'
4
+ VERSION = '1.3.1'
5
5
  end
6
6
  end
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.0
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: 2012-12-28 00:00:00.000000000 Z
12
+ date: 2013-01-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: guard