spicycode-micronaut 0.1.7.3 → 0.1.7.4
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
 - data/lib/micronaut/configuration.rb +4 -10
 - data/lib/micronaut/world.rb +2 -1
 - metadata +2 -2
 
    
        data/Rakefile
    CHANGED
    
    
| 
         @@ -97,20 +97,14 @@ module Micronaut 
     | 
|
| 
       97 
97 
     | 
    
         
             
                  $stdout
         
     | 
| 
       98 
98 
     | 
    
         
             
                end
         
     | 
| 
       99 
99 
     | 
    
         | 
| 
      
 100 
     | 
    
         
            +
                # RJS I think we should rename include/extend so they don't conflict or confuse with the ruby builtin
         
     | 
| 
      
 101 
     | 
    
         
            +
                #  maybe register_include, setup_include, add_include, or just _include ?
         
     | 
| 
       100 
102 
     | 
    
         
             
                def include(mod, options={})
         
     | 
| 
       101 
     | 
    
         
            -
                   
     | 
| 
       102 
     | 
    
         
            -
                    Micronaut::Behaviour.send(:include, mod)
         
     | 
| 
       103 
     | 
    
         
            -
                  else
         
     | 
| 
       104 
     | 
    
         
            -
                    include_or_extend_modules << [:include, mod, options]
         
     | 
| 
       105 
     | 
    
         
            -
                  end
         
     | 
| 
      
 103 
     | 
    
         
            +
                  include_or_extend_modules << [:include, mod, options]
         
     | 
| 
       106 
104 
     | 
    
         
             
                end
         
     | 
| 
       107 
105 
     | 
    
         | 
| 
       108 
106 
     | 
    
         
             
                def extend(mod, options={})
         
     | 
| 
       109 
     | 
    
         
            -
                   
     | 
| 
       110 
     | 
    
         
            -
                    Micronaut::Behaviour.send(:extend, mod)
         
     | 
| 
       111 
     | 
    
         
            -
                  else
         
     | 
| 
       112 
     | 
    
         
            -
                    include_or_extend_modules << [:extend, mod, options]
         
     | 
| 
       113 
     | 
    
         
            -
                  end
         
     | 
| 
      
 107 
     | 
    
         
            +
                  include_or_extend_modules << [:extend, mod, options]
         
     | 
| 
       114 
108 
     | 
    
         
             
                end
         
     | 
| 
       115 
109 
     | 
    
         | 
| 
       116 
110 
     | 
    
         
             
                def find_modules(group)
         
     | 
    
        data/lib/micronaut/world.rb
    CHANGED
    
    | 
         @@ -17,6 +17,7 @@ module Micronaut 
     | 
|
| 
       17 
17 
     | 
    
         | 
| 
       18 
18 
     | 
    
         
             
                  if filter
         
     | 
| 
       19 
19 
     | 
    
         
             
                    @behaviours_to_run = filter_behaviours
         
     | 
| 
      
 20 
     | 
    
         
            +
                    # RJS the line below is very confusing and looks like a dupe of the line below it -- is it dead code or does it serve a purpose?
         
     | 
| 
       20 
21 
     | 
    
         
             
                    behaviours_to_run.size == 0 && Micronaut.configuration.run_all_when_everything_filtered?
         
     | 
| 
       21 
22 
     | 
    
         
             
                    if @behaviours_to_run.size == 0 && Micronaut.configuration.run_all_when_everything_filtered?
         
     | 
| 
       22 
23 
     | 
    
         
             
                      puts "No behaviours were matched by #{filter.inspect}, running all"
         
     | 
| 
         @@ -24,7 +25,7 @@ module Micronaut 
     | 
|
| 
       24 
25 
     | 
    
         
             
                      @behaviours_to_run = @behaviours
         
     | 
| 
       25 
26 
     | 
    
         
             
                      @behaviours.each { |b| b.examples_to_run.replace(b.examples) }
         
     | 
| 
       26 
27 
     | 
    
         
             
                    else
         
     | 
| 
       27 
     | 
    
         
            -
                      puts "Run filtered using #{filter.inspect}"          
         
     | 
| 
      
 28 
     | 
    
         
            +
                      Micronaut.configuration.output.puts "Run filtered using #{filter.inspect}"          
         
     | 
| 
       28 
29 
     | 
    
         
             
                    end
         
     | 
| 
       29 
30 
     | 
    
         
             
                  else
         
     | 
| 
       30 
31 
     | 
    
         
             
                    @behaviours_to_run = @behaviours
         
     | 
    
        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.7. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.1.7.4
         
     | 
| 
       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: 2008-12- 
     | 
| 
      
 12 
     | 
    
         
            +
            date: 2008-12-30 00:00:00 -08:00
         
     | 
| 
       13 
13 
     | 
    
         
             
            default_executable: micronaut
         
     | 
| 
       14 
14 
     | 
    
         
             
            dependencies: []
         
     | 
| 
       15 
15 
     | 
    
         |