mudguard 0.1.3 → 0.1.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.
- checksums.yaml +4 -4
 - data/.rubocop.yml +1 -1
 - data/Gemfile.lock +1 -1
 - data/Guardfile +2 -0
 - data/exe/mudguard +17 -2
 - data/lib/mudguard/version.rb +1 -1
 - metadata +2 -2
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: e84d450c1adfd300b6be1e11244dd8eec43bc4ef2dffdd090974290591bce06f
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: c36b94a49c130dc29b6ce80befc227121348c53b977a88451337bc6987b5a0fa
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 4db49720f6381c3c67a7e2e669235e070d8ed2cb650f48f41752dd95a243da43dc1bbc7bec7947828fd40c7abf3c7dc786c366cd04efb026d2c732cc5908d8d2
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 84291c975dce9b7b893ae831dcfc54cafe16313d17b86f590d27a529b231fe4e1c2a4683455746c7a5143bbf880fe39f17ffb7be16954a63647eb98bda5a22ad
         
     | 
    
        data/.rubocop.yml
    CHANGED
    
    
    
        data/Gemfile.lock
    CHANGED
    
    
    
        data/Guardfile
    CHANGED
    
    | 
         @@ -8,7 +8,9 @@ rspec_options = { 
     | 
|
| 
       8 
8 
     | 
    
         | 
| 
       9 
9 
     | 
    
         
             
            guard "rspec", rspec_options do
         
     | 
| 
       10 
10 
     | 
    
         
             
              watch(%r{^spec/.+_spec\.rb$})
         
     | 
| 
      
 11 
     | 
    
         
            +
              watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
         
     | 
| 
       11 
12 
     | 
    
         
             
              watch(%r{^lib/mudguard/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
         
     | 
| 
       12 
13 
     | 
    
         
             
              watch(%r{^lib/mudguard/(.+)\.rb$}) { |m| Dir.glob("spec/lib/#{m[1]}_*.rb") }
         
     | 
| 
       13 
14 
     | 
    
         
             
              watch("spec/spec_helper.rb") { "spec" }
         
     | 
| 
      
 15 
     | 
    
         
            +
              watch(%r{^exe\/mudguard$}) { |_| "spec/bin/mudguard_spec.rb" }
         
     | 
| 
       14 
16 
     | 
    
         
             
            end
         
     | 
    
        data/exe/mudguard
    CHANGED
    
    | 
         @@ -1,5 +1,20 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            #!/usr/bin/env ruby
         
     | 
| 
      
 2 
     | 
    
         
            +
            # frozen_string_literal: true
         
     | 
| 
      
 3 
     | 
    
         
            +
             
     | 
| 
       2 
4 
     | 
    
         
             
            require "mudguard"
         
     | 
| 
      
 5 
     | 
    
         
            +
            require "optparse"
         
     | 
| 
      
 6 
     | 
    
         
            +
             
     | 
| 
      
 7 
     | 
    
         
            +
            # Checks the dependencies of a ruby project
         
     | 
| 
      
 8 
     | 
    
         
            +
            module Mudguard
         
     | 
| 
      
 9 
     | 
    
         
            +
              parser = OptionParser.new do |opts|
         
     | 
| 
      
 10 
     | 
    
         
            +
                opts.banner = "Usage: mudguard [options] [directory]"
         
     | 
| 
      
 11 
     | 
    
         
            +
                opts.on("-h", "--help", "Prints this help") do
         
     | 
| 
      
 12 
     | 
    
         
            +
                  puts opts
         
     | 
| 
      
 13 
     | 
    
         
            +
                  exit
         
     | 
| 
      
 14 
     | 
    
         
            +
                end
         
     | 
| 
      
 15 
     | 
    
         
            +
              end
         
     | 
| 
       3 
16 
     | 
    
         | 
| 
       4 
     | 
    
         
            -
             
     | 
| 
       5 
     | 
    
         
            -
             
     | 
| 
      
 17 
     | 
    
         
            +
              directories = parser.parse!
         
     | 
| 
      
 18 
     | 
    
         
            +
              ok = directories.all?(&Mudguard.method(:check))
         
     | 
| 
      
 19 
     | 
    
         
            +
              exit(ok ? 0 : 1)
         
     | 
| 
      
 20 
     | 
    
         
            +
            end
         
     | 
    
        data/lib/mudguard/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: mudguard
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.1. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.1.4
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Jorg Jenni
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: exe
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2020-03- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2020-03-20 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: bundler
         
     |