calasmash 0.0.5 → 0.0.6
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/lib/calasmash/version.rb +1 -1
- data/lib/calasmash.rb +7 -4
- metadata +2 -2
    
        data/lib/calasmash/version.rb
    CHANGED
    
    
    
        data/lib/calasmash.rb
    CHANGED
    
    | @@ -49,12 +49,10 @@ module Calasmash | |
| 49 49 | 
             
            				end
         | 
| 50 50 |  | 
| 51 51 | 
             
            				opt.on('-f', "--format FORMAT", "test report format e.g. junit") do |tags|
         | 
| 52 | 
            -
            					puts @opt_parser
         | 
| 53 52 | 
             
            					options[:format] = tags
         | 
| 54 53 | 
             
            				end
         | 
| 55 54 |  | 
| 56 55 | 
             
            				opt.on('-o', "--out OUTPUT", "test report output path e.g. test") do |tags|
         | 
| 57 | 
            -
            					puts @opt_parser
         | 
| 58 56 | 
             
            					options[:out] = tags
         | 
| 59 57 | 
             
            				end
         | 
| 60 58 | 
             
            			end
         | 
| @@ -64,6 +62,7 @@ module Calasmash | |
| 64 62 | 
             
            			options[:valid] = true
         | 
| 65 63 |  | 
| 66 64 | 
             
            			validate_options(options)
         | 
| 65 | 
            +
            			return options
         | 
| 67 66 | 
             
            		end
         | 
| 68 67 |  | 
| 69 68 | 
             
            		def validate_options(options)
         | 
| @@ -108,10 +107,14 @@ module Calasmash | |
| 108 107 |  | 
| 109 108 | 
             
            			optional_params = ""
         | 
| 110 109 | 
             
            			if(@options[:out] && @options[:format])
         | 
| 111 | 
            -
            				optional_params = "--format #{@options[:format]} --out #{@options[: | 
| 110 | 
            +
            				optional_params = " --format #{@options[:format]} --out #{@options[:out]} "
         | 
| 112 111 | 
             
            			end
         | 
| 113 112 |  | 
| 114 | 
            -
            			 | 
| 113 | 
            +
            			if(@options[:tags])
         | 
| 114 | 
            +
            				optional_params += " --tags #{@options[:tags]}"
         | 
| 115 | 
            +
            			end
         | 
| 116 | 
            +
             | 
| 117 | 
            +
            			cucumber_command = "cucumber OS=ios7 SDK_VERSION=7.0 DEVICE_TARGET=simulator"
         | 
| 115 118 | 
             
            			cucumber_command += optional_params
         | 
| 116 119 |  | 
| 117 120 | 
             
            			IO.popen(cucumber_command) {|output|
         | 
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: calasmash
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.0. | 
| 4 | 
            +
              version: 0.0.6
         | 
| 5 5 | 
             
              prerelease: 
         | 
| 6 6 | 
             
            platform: ruby
         | 
| 7 7 | 
             
            authors:
         | 
| @@ -9,7 +9,7 @@ authors: | |
| 9 9 | 
             
            autorequire: 
         | 
| 10 10 | 
             
            bindir: bin
         | 
| 11 11 | 
             
            cert_chain: []
         | 
| 12 | 
            -
            date: 2013-09- | 
| 12 | 
            +
            date: 2013-09-25 00:00:00.000000000 Z
         | 
| 13 13 | 
             
            dependencies:
         | 
| 14 14 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 15 15 | 
             
              name: bundler
         |