spicycode-micronaut 0.1.8.5 → 0.1.9.0
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/Rakefile +1 -1
- metadata +2 -5
- data/lib/autotest/discover.rb +0 -3
- data/lib/autotest/micronaut.rb +0 -44
    
        data/Rakefile
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification 
         | 
| 2 2 | 
             
            name: spicycode-micronaut
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version 
         | 
| 4 | 
            -
              version: 0.1. | 
| 4 | 
            +
              version: 0.1.9.0
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors: 
         | 
| 7 7 | 
             
            - Chad Humphries
         | 
| @@ -9,7 +9,7 @@ autorequire: micronaut | |
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 11 |  | 
| 12 | 
            -
            date: 2009-01- | 
| 12 | 
            +
            date: 2009-01-10 00:00:00 -08:00
         | 
| 13 13 | 
             
            default_executable: micronaut
         | 
| 14 14 | 
             
            dependencies: []
         | 
| 15 15 |  | 
| @@ -28,9 +28,6 @@ files: | |
| 28 28 | 
             
            - README.markdown
         | 
| 29 29 | 
             
            - RSPEC-LICENSE
         | 
| 30 30 | 
             
            - Rakefile
         | 
| 31 | 
            -
            - lib/autotest
         | 
| 32 | 
            -
            - lib/autotest/discover.rb
         | 
| 33 | 
            -
            - lib/autotest/micronaut.rb
         | 
| 34 31 | 
             
            - lib/micronaut
         | 
| 35 32 | 
             
            - lib/micronaut/behaviour.rb
         | 
| 36 33 | 
             
            - lib/micronaut/configuration.rb
         | 
    
        data/lib/autotest/discover.rb
    DELETED
    
    
    
        data/lib/autotest/micronaut.rb
    DELETED
    
    | @@ -1,44 +0,0 @@ | |
| 1 | 
            -
            require 'autotest'
         | 
| 2 | 
            -
             | 
| 3 | 
            -
            Autotest.add_hook :initialize do |at|
         | 
| 4 | 
            -
              at.clear_mappings
         | 
| 5 | 
            -
             | 
| 6 | 
            -
              at.add_mapping(%r%^examples/.*_example.rb$%) { |filename, _| 
         | 
| 7 | 
            -
                filename 
         | 
| 8 | 
            -
              }
         | 
| 9 | 
            -
              
         | 
| 10 | 
            -
              at.add_mapping(%r%^lib/(.*)\.rb$%) { |filename, m| 
         | 
| 11 | 
            -
                ["examples/lib/#{m[1]}_example.rb"]
         | 
| 12 | 
            -
              }
         | 
| 13 | 
            -
              
         | 
| 14 | 
            -
              at.add_mapping(%r%^examples/(example_helper|shared/.*)\.rb$%) { 
         | 
| 15 | 
            -
                at.files_matching %r%^examples/.*_example\.rb$%
         | 
| 16 | 
            -
              }
         | 
| 17 | 
            -
            end
         | 
| 18 | 
            -
             | 
| 19 | 
            -
            class MicronautCommandError < StandardError; end
         | 
| 20 | 
            -
             | 
| 21 | 
            -
            class Autotest::Micronaut < Autotest
         | 
| 22 | 
            -
             | 
| 23 | 
            -
              def initialize
         | 
| 24 | 
            -
                super
         | 
| 25 | 
            -
                self.failed_results_re = /^\d+\)\n(?:\e\[\d*m)?(?:.*?Error in )?'([^\n]*)'(?: FAILED)?(?:\e\[\d*m)?\n(.*?)\n\n/m
         | 
| 26 | 
            -
                self.completed_re = /\n(?:\e\[\d*m)?\d* examples?/m
         | 
| 27 | 
            -
              end
         | 
| 28 | 
            -
              
         | 
| 29 | 
            -
              def consolidate_failures(failed)
         | 
| 30 | 
            -
                filters = new_hash_of_arrays
         | 
| 31 | 
            -
                failed.each do |spec, trace|
         | 
| 32 | 
            -
                  if trace =~ /\n(\.\/)?(.*example\.rb):[\d]+:\Z?/
         | 
| 33 | 
            -
                    filters[$2] << spec
         | 
| 34 | 
            -
                  end
         | 
| 35 | 
            -
                end
         | 
| 36 | 
            -
                return filters
         | 
| 37 | 
            -
              end
         | 
| 38 | 
            -
             | 
| 39 | 
            -
              def make_test_cmd(files_to_test)
         | 
| 40 | 
            -
                return '' if files_to_test.size == 0
         | 
| 41 | 
            -
                "bin/micronaut #{files_to_test.keys.sort.join(' ')}"
         | 
| 42 | 
            -
              end
         | 
| 43 | 
            -
              
         | 
| 44 | 
            -
            end
         |