testrailtagging 0.3.8.1 → 0.3.8.2
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/lib/files/testcase_modifications.rb +19 -13
- data/lib/files/version.rb +1 -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: 4489d20a210e470948fd94d53f255aa1ce6465bc
         | 
| 4 | 
            +
              data.tar.gz: a5a72c15c57261dc987b0fd25623731a3ad5d323
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 9615d755ccb9aee73aaf1d94e6511ee1066d19e0d0b1d9e9c2a2f348c479d4d4236c332d3e785b0b111d50088718b261b1d8e72e82c7395149d717ee21e12bd8
         | 
| 7 | 
            +
              data.tar.gz: 47bc60753a07094ba1f766eaccfd4009791d6cf42bc4fdee53864f051ec6f0f781b27cd8618479bef83312f2100e5d68537c1eda3b4f2f62bfb760c1311d237d
         | 
| @@ -245,7 +245,7 @@ module TestCaseModifications | |
| 245 245 | 
             
                        tc = test_cases.delete(id)
         | 
| 246 246 | 
             
                        if tc
         | 
| 247 247 | 
             
                          if file != tc.file
         | 
| 248 | 
            -
                            puts "\r\nID: #{id} - #{tc.title[0,50]}#{(tc.title.length > 50) ? '...' : ''} | 
| 248 | 
            +
                            puts "\r\nID: #{id} - #{tc.title[0,50]}#{(tc.title.length > 50) ? '...' : ''}"
         | 
| 249 249 | 
             
                            puts "  Old File: #{tc.file}"
         | 
| 250 250 | 
             
                            puts "  New File: #{file}"
         | 
| 251 251 | 
             
                            tc.file = file
         | 
| @@ -274,20 +274,26 @@ module TestCaseModifications | |
| 274 274 | 
             
                # remaining testcases should be unautomated, ensure they are
         | 
| 275 275 | 
             
                check_unautomated(test_cases, changed_cases)
         | 
| 276 276 |  | 
| 277 | 
            -
                 | 
| 278 | 
            -
                 | 
| 279 | 
            -
             | 
| 280 | 
            -
                   | 
| 281 | 
            -
                   | 
| 282 | 
            -
             | 
| 283 | 
            -
             | 
| 284 | 
            -
             | 
| 285 | 
            -
             | 
| 286 | 
            -
             | 
| 287 | 
            -
             | 
| 277 | 
            +
                # update testrail if needed
         | 
| 278 | 
            +
                if changed_cases.count > 0
         | 
| 279 | 
            +
                  puts "\nTest Cases that will get modified"
         | 
| 280 | 
            +
                  trclient = TestRailOperations.get_test_rail_client
         | 
| 281 | 
            +
                  changed_cases.each do |id_key, tc_val|
         | 
| 282 | 
            +
                    puts "Test Case: id: #{id_key}, #{tc_val.file}" if tc_val.file
         | 
| 283 | 
            +
                    url = "update_case/#{id_key}"
         | 
| 284 | 
            +
                    data = { "custom_spec_location" => tc_val.file,
         | 
| 285 | 
            +
                             "custom_automated" => tc_val.automated,
         | 
| 286 | 
            +
                             "custom_run_once" => tc_val.run_once
         | 
| 287 | 
            +
                           }
         | 
| 288 | 
            +
                    unless dryrun
         | 
| 289 | 
            +
                      trclient.send_post_retry(url, data)
         | 
| 290 | 
            +
                    end
         | 
| 288 291 | 
             
                  end
         | 
| 292 | 
            +
                else
         | 
| 293 | 
            +
                  puts "Nothing to update \\o/"
         | 
| 289 294 | 
             
                end
         | 
| 290 | 
            -
             | 
| 295 | 
            +
             | 
| 296 | 
            +
                puts "Number of orphaned testcase IDs: #{orphaned_ids_count}" unless orphaned_ids_count.zero?
         | 
| 291 297 | 
             
              end
         | 
| 292 298 |  | 
| 293 299 | 
             
              # Inspects all request specs and checks if their associated testcase is marked as
         | 
    
        data/lib/files/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: testrailtagging
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.3.8. | 
| 4 | 
            +
              version: 0.3.8.2
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Chris Johnson
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: exe
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date:  | 
| 11 | 
            +
            date: 2017-01-16 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: bundler
         |