committee 2.1.0 → 2.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.
- checksums.yaml +4 -4
- data/bin/committee-stub +5 -7
- data/lib/committee/test/methods.rb +1 -1
- data/test/bin_test.rb +1 -0
- data/test/string_params_coercer_test.rb +6 -1
- metadata +2 -2
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 8b9b7fded711273c72d2e35628376206b082f115
         | 
| 4 | 
            +
              data.tar.gz: f89a74a16ed6d15b2a6f8f363182776675e7418d
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 7e356500e91bf48bde973b1cfa352e1fafa788d0be4b8d1f4303b338a29b2b49f0f7688b0caa84ac28f33eddadef762ed04c9bd60a8f01c5c9fac185a85fc5d3
         | 
| 7 | 
            +
              data.tar.gz: ec9773029e7b1052b634f78e64370cbe1f265d94c89fd4893069d1854f9e8bb336c6d0de0049a71fcbca5c83479907ccb89c8bb25382145db87cc9b3c7a51197
         | 
    
        data/bin/committee-stub
    CHANGED
    
    | @@ -9,14 +9,12 @@ args = ARGV.dup | |
| 9 9 | 
             
            bin = Committee::Bin::CommitteeStub.new
         | 
| 10 10 | 
             
            options, parser = bin.get_options_parser
         | 
| 11 11 |  | 
| 12 | 
            -
             | 
| 13 | 
            -
              parser.parse!(args)
         | 
| 14 | 
            -
             | 
| 15 | 
            -
              unless args.count == 1 || options[:help] || !options[:driver]
         | 
| 16 | 
            -
                puts parser.to_s
         | 
| 17 | 
            -
                exit
         | 
| 18 | 
            -
              end
         | 
| 12 | 
            +
            parser.parse!(args)
         | 
| 19 13 |  | 
| 14 | 
            +
            if options[:help] || !options[:driver] || args.length < 1
         | 
| 15 | 
            +
              # shows help information
         | 
| 16 | 
            +
              puts parser.to_s
         | 
| 17 | 
            +
            else
         | 
| 20 18 | 
             
              driver = Committee::Drivers.driver_from_name(options[:driver])
         | 
| 21 19 | 
             
              schema = driver.parse(::YAML.load(File.read(args[0])))
         | 
| 22 20 |  | 
    
        data/test/bin_test.rb
    CHANGED
    
    
| @@ -121,7 +121,12 @@ describe Committee::StringParamsCoercer do | |
| 121 121 | 
             
              def check_convert(key, before_value, after_value)
         | 
| 122 122 | 
             
                data = {key => before_value}
         | 
| 123 123 | 
             
                call(data)
         | 
| 124 | 
            -
             | 
| 124 | 
            +
             | 
| 125 | 
            +
                if !after_value.nil?
         | 
| 126 | 
            +
                  assert_equal(data[key], after_value)
         | 
| 127 | 
            +
                else
         | 
| 128 | 
            +
                  assert_nil(data[key])
         | 
| 129 | 
            +
                end
         | 
| 125 130 | 
             
              end
         | 
| 126 131 |  | 
| 127 132 | 
             
              def call(data, options={})
         | 
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: committee
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 2.1. | 
| 4 | 
            +
              version: 2.1.1
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Brandur
         | 
| @@ -9,7 +9,7 @@ authors: | |
| 9 9 | 
             
            autorequire: 
         | 
| 10 10 | 
             
            bindir: bin
         | 
| 11 11 | 
             
            cert_chain: []
         | 
| 12 | 
            -
            date: 2018- | 
| 12 | 
            +
            date: 2018-08-04 00:00:00.000000000 Z
         | 
| 13 13 | 
             
            dependencies:
         | 
| 14 14 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 15 15 | 
             
              name: json_schema
         |