testrailtagging 0.3.8.2 → 0.3.8.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4489d20a210e470948fd94d53f255aa1ce6465bc
4
- data.tar.gz: a5a72c15c57261dc987b0fd25623731a3ad5d323
3
+ metadata.gz: 255ff6aaa6d669963a11e5f9238368685285b6e7
4
+ data.tar.gz: e429dc94325ba160713b5a4804d5293100f2e109
5
5
  SHA512:
6
- metadata.gz: 9615d755ccb9aee73aaf1d94e6511ee1066d19e0d0b1d9e9c2a2f348c479d4d4236c332d3e785b0b111d50088718b261b1d8e72e82c7395149d717ee21e12bd8
7
- data.tar.gz: 47bc60753a07094ba1f766eaccfd4009791d6cf42bc4fdee53864f051ec6f0f781b27cd8618479bef83312f2100e5d68537c1eda3b4f2f62bfb760c1311d237d
6
+ metadata.gz: 058a42733aa3d316d73f4cc74668e3b300622f308c25cb8025b0fc00b95f01c867b0981e43ad0a40f1511f9788e23c24ed62130d4d3a151235a5ede7d90bb8be
7
+ data.tar.gz: ce4d61d0d2ee53baa3f992475ea0d7183f9d56bf76e1e93afb90175d1693812311335c9b7bbb0c32bbdf0f04787d9e3d1e7b8834440abd5f2ff32af334896b3b
@@ -279,7 +279,7 @@ module TestCaseModifications
279
279
  puts "\nTest Cases that will get modified"
280
280
  trclient = TestRailOperations.get_test_rail_client
281
281
  changed_cases.each do |id_key, tc_val|
282
- puts "Test Case: id: #{id_key}, #{tc_val.file}" if tc_val.file
282
+ puts "\t#{id_key} -> " + (!!tc_val.file ? tc_val.file : "no spec location")
283
283
  url = "update_case/#{id_key}"
284
284
  data = { "custom_spec_location" => tc_val.file,
285
285
  "custom_automated" => tc_val.automated,
@@ -454,21 +454,27 @@ module TestCaseModifications
454
454
  testcases.each do |id, testcase|
455
455
  # if the testcase is marked as automated or has a spec location
456
456
  if testcase.automated || !!testcase.file
457
+ puts "Test Case #{id} is out of sync /o\\"
457
458
  testcase.automated = false
458
459
 
459
460
  if !!testcase.file
461
+ puts "\tspec location is not nil"
460
462
  regex = /testrail_id:(.*)(\[|\s)#{testcase.id}(\]|\s)/
461
463
 
462
464
  begin
463
465
  if File.foreach(testcase.file).grep(regex).empty?
464
- testcase.file = ""
466
+ puts "\t\tmarking spec location as nil"
467
+ testcase.file = nil
465
468
  else
469
+ puts "\t\tmarking as automated"
466
470
  testcase.automated = true # should only ever hit this if #update_automated_status doesn't work correctly
467
471
  end
468
472
  rescue Errno::ENOENT
469
- puts "No such file or directory: #{testcase.file}"
470
- testcase.file = ""
473
+ puts "\t\tNo such file or directory: #{testcase.file}"
474
+ testcase.file = nil
471
475
  end
476
+ else
477
+ puts "\tmarked as automated"
472
478
  end
473
479
 
474
480
  changed_cases[id] = testcase
@@ -1,3 +1,3 @@
1
1
  module Testrailtagging
2
- VERSION = "0.3.8.2"
2
+ VERSION = "0.3.8.3"
3
3
  end
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.2
4
+ version: 0.3.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Johnson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-01-16 00:00:00.000000000 Z
11
+ date: 2017-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler