guard-rspec 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.rdoc +69 -1
  2. data/lib/guard/rspec/version.rb +1 -1
  3. metadata +17 -19
data/README.rdoc CHANGED
@@ -1,3 +1,71 @@
1
1
  = Guard::RSpec
2
2
 
3
- Documentation is coming.
3
+ RSpec guard allows to automatically & intelligently launch specs when files are modified.
4
+
5
+ - Compatible with RSpec 1.3.x & RSpec 2.0.x
6
+ - Tested on Ruby 1.8.7 & 1.9.2.
7
+
8
+ == Install
9
+
10
+ Please be sure to have {guard}[http://github.com/guard/guard] installed before continue.
11
+
12
+ Install the gem:
13
+
14
+ gem install guard-rspec
15
+
16
+ Add it to your Gemfile (inside test group):
17
+
18
+ gem 'guard-rspec'
19
+
20
+ Add guard definition to your Guardfile with:
21
+
22
+ guard init rspec
23
+
24
+ == Usage
25
+
26
+ Please read {guard usage doc}[http://github.com/guard/guard#readme]
27
+
28
+ == Guardfile
29
+
30
+ RSpec guard can be really be adapated to all kind of projects.
31
+ Please read {guard doc}[http://github.com/guard/guard#readme] for more info about Guardfile DSL.
32
+
33
+ === Standard ruby gems
34
+
35
+ guard 'rspec' do
36
+ watch('^spec/(.*)_spec.rb')
37
+ watch('^lib/(.*)\.rb') { |m| "spec/lib/#{m[1]}_spec.rb" }
38
+ watch('^spec/spec_helper.rb') { "spec" }
39
+ end
40
+
41
+ === Rails app
42
+
43
+ guard 'rspec' do
44
+ watch('^spec/(.*)_spec.rb')
45
+ watch('^app/(.*)\.rb') { |m| "spec/#{m[1]}_spec.rb" }
46
+ watch('^lib/(.*)\.rb') { |m| "spec/lib/#{m[1]}_spec.rb" }
47
+ watch('^spec/spec_helper.rb') { "spec" }
48
+ watch('^config/routes.rb') { "spec/routing" }
49
+ watch('^app/controllers/application_controller.rb') { "spec/controllers" }
50
+ watch('^spec/factories.rb') { "spec/models" }
51
+ end
52
+
53
+ == Options
54
+
55
+ RSpec guard should automatically detect RSpec version (via spec_helper syntax or Bundler) but you can force version with:
56
+
57
+ guard 'rspec', :version => 2 do
58
+ ...
59
+ end
60
+
61
+ == Development
62
+
63
+ - Source hosted at {GitHub}[http://github.com/guard/guard-rspec]
64
+ - Report issues/Questions/Feature requests on {GitHub Issues}[http://github.com/guard/guard-rspec/issues]
65
+
66
+ Pull requests are very welcome! Make sure your patches are well tested. Please create a topic branch for every separate change
67
+ you make.
68
+
69
+ == Authors
70
+
71
+ {Thibaud Guillaume-Gentil}[http://github.com/thibaudgg]
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  class RSpec
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-rspec
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Thibaud Guillaume-Gentil
@@ -24,14 +24,12 @@ dependencies:
24
24
  requirements:
25
25
  - - ~>
26
26
  - !ruby/object:Gem::Version
27
- hash: 62196407
27
+ hash: 27
28
28
  segments:
29
29
  - 0
30
30
  - 1
31
31
  - 0
32
- - beta
33
- - 2
34
- version: 0.1.0.beta.2
32
+ version: 0.1.0
35
33
  name: guard
36
34
  prerelease: false
37
35
  requirement: *id001
@@ -42,30 +40,30 @@ dependencies:
42
40
  requirements:
43
41
  - - ~>
44
42
  - !ruby/object:Gem::Version
45
- hash: 7712058
43
+ hash: 19
46
44
  segments:
47
- - 2
48
- - 0
45
+ - 1
49
46
  - 0
50
- - rc
51
- version: 2.0.0.rc
52
- name: rspec
47
+ - 2
48
+ version: 1.0.2
49
+ name: bundler
53
50
  prerelease: false
54
51
  requirement: *id002
55
- type: :runtime
52
+ type: :development
56
53
  - !ruby/object:Gem::Dependency
57
54
  version_requirements: &id003 !ruby/object:Gem::Requirement
58
55
  none: false
59
56
  requirements:
60
57
  - - ~>
61
58
  - !ruby/object:Gem::Version
62
- hash: 19
59
+ hash: 7712058
63
60
  segments:
64
- - 1
65
- - 0
66
61
  - 2
67
- version: 1.0.2
68
- name: bundler
62
+ - 0
63
+ - 0
64
+ - rc
65
+ version: 2.0.0.rc
66
+ name: rspec
69
67
  prerelease: false
70
68
  requirement: *id003
71
69
  type: :development