guard-rspec 0.1.0 → 0.1.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/README.rdoc +69 -1
 - data/lib/guard/rspec/version.rb +1 -1
 - metadata +17 -19
 
    
        data/README.rdoc
    CHANGED
    
    | 
         @@ -1,3 +1,71 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            = Guard::RSpec
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
     | 
    
         
            -
             
     | 
| 
      
 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]
         
     | 
    
        data/lib/guard/rspec/version.rb
    CHANGED
    
    
    
        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:  
     | 
| 
      
 4 
     | 
    
         
            +
              hash: 25
         
     | 
| 
       5 
5 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       6 
6 
     | 
    
         
             
              segments: 
         
     | 
| 
       7 
7 
     | 
    
         
             
              - 0
         
     | 
| 
       8 
8 
     | 
    
         
             
              - 1
         
     | 
| 
       9 
     | 
    
         
            -
              -  
     | 
| 
       10 
     | 
    
         
            -
              version: 0.1. 
     | 
| 
      
 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:  
     | 
| 
      
 27 
     | 
    
         
            +
                    hash: 27
         
     | 
| 
       28 
28 
     | 
    
         
             
                    segments: 
         
     | 
| 
       29 
29 
     | 
    
         
             
                    - 0
         
     | 
| 
       30 
30 
     | 
    
         
             
                    - 1
         
     | 
| 
       31 
31 
     | 
    
         
             
                    - 0
         
     | 
| 
       32 
     | 
    
         
            -
                     
     | 
| 
       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:  
     | 
| 
      
 43 
     | 
    
         
            +
                    hash: 19
         
     | 
| 
       46 
44 
     | 
    
         
             
                    segments: 
         
     | 
| 
       47 
     | 
    
         
            -
                    -  
     | 
| 
       48 
     | 
    
         
            -
                    - 0
         
     | 
| 
      
 45 
     | 
    
         
            +
                    - 1
         
     | 
| 
       49 
46 
     | 
    
         
             
                    - 0
         
     | 
| 
       50 
     | 
    
         
            -
                    -  
     | 
| 
       51 
     | 
    
         
            -
                    version:  
     | 
| 
       52 
     | 
    
         
            -
              name:  
     | 
| 
      
 47 
     | 
    
         
            +
                    - 2
         
     | 
| 
      
 48 
     | 
    
         
            +
                    version: 1.0.2
         
     | 
| 
      
 49 
     | 
    
         
            +
              name: bundler
         
     | 
| 
       53 
50 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       54 
51 
     | 
    
         
             
              requirement: *id002
         
     | 
| 
       55 
     | 
    
         
            -
              type: : 
     | 
| 
      
 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:  
     | 
| 
      
 59 
     | 
    
         
            +
                    hash: 7712058
         
     | 
| 
       63 
60 
     | 
    
         
             
                    segments: 
         
     | 
| 
       64 
     | 
    
         
            -
                    - 1
         
     | 
| 
       65 
     | 
    
         
            -
                    - 0
         
     | 
| 
       66 
61 
     | 
    
         
             
                    - 2
         
     | 
| 
       67 
     | 
    
         
            -
                     
     | 
| 
       68 
     | 
    
         
            -
             
     | 
| 
      
 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
         
     |