guard-rspec 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -87,6 +87,14 @@ guard 'rspec', :spec_paths => ["spec", "vendor/engines/reset/spec"] do
87
87
  # ...
88
88
  end
89
89
  ```
90
+ If you have only one path to look, you can configure `:spec_paths` option with a string:
91
+
92
+ ``` ruby
93
+ guard 'rspec', :spec_paths => "test" do
94
+ # ...
95
+ end
96
+ ```
97
+
90
98
 
91
99
  Former `:color`, `:drb`, `:fail_fast` and `:formatter` options are thus deprecated and have no effect anymore.
92
100
 
@@ -9,13 +9,13 @@ module Guard
9
9
  def excluded=(glob)
10
10
  @excluded = Dir[glob.to_s]
11
11
  end
12
-
12
+
13
13
  def spec_paths
14
14
  @spec_paths || []
15
15
  end
16
-
16
+
17
17
  def spec_paths=(path_array)
18
- @spec_paths = path_array
18
+ @spec_paths = Array(path_array)
19
19
  end
20
20
 
21
21
  def clean(paths)
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  module RSpecVersion
3
- VERSION = "0.4.2"
3
+ VERSION = "0.4.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-08-15 00:00:00.000000000Z
12
+ date: 2011-08-25 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: guard
16
- requirement: &70211257686060 !ruby/object:Gem::Requirement
16
+ requirement: &70177972077340 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.4.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70211257686060
24
+ version_requirements: *70177972077340
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: bundler
27
- requirement: &70211257685480 !ruby/object:Gem::Requirement
27
+ requirement: &70177972076880 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '1.0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70211257685480
35
+ version_requirements: *70177972076880
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rspec
38
- requirement: &70211257684920 !ruby/object:Gem::Requirement
38
+ requirement: &70177972076420 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '2.6'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70211257684920
46
+ version_requirements: *70177972076420
47
47
  description: Guard::RSpec automatically run your specs (much like autotest).
48
48
  email:
49
49
  - thibaud@thibaud.me
@@ -81,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
81
81
  version: 1.3.6
82
82
  requirements: []
83
83
  rubyforge_project: guard-rspec
84
- rubygems_version: 1.8.7
84
+ rubygems_version: 1.8.6
85
85
  signing_key:
86
86
  specification_version: 3
87
87
  summary: Guard gem for RSpec