earl-report 0.3.2 → 0.3.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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/earl_report.rb +7 -5
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 58a78c63721d749252d6999020e87a4e6208871d
4
- data.tar.gz: a3c29d713373428535b130911c9b57881f7eea68
3
+ metadata.gz: c039e1ef5a3ead1a7d0656a638b364720ba0bf6e
4
+ data.tar.gz: ab8fba7475935a6ec3e0b2a3219357a1ab02b2aa
5
5
  SHA512:
6
- metadata.gz: c9387aa6f4019cea342f9959f6b7ec270eb1b1f5a4f02ca1b2a7f31ab16017cd2bce50d6705c4c8feb3885ac5afa15b55bf579cfc6b01b0d19a01cc49adb662d
7
- data.tar.gz: e9cb70546185bb7fa15f1b705c2ba5e7546aebe377a4168a7ba9309ea378574c0d10a2d0c018ea358d42898d01866ab84ad3c56ce2a05f734ba26b464bf1044a
6
+ metadata.gz: 0af9ec4b7cde8164c01316cc12bdd07d5664cc51462900d813d264c681d5535f1308d16a5b4ce43ad6e3940a34e09701e2eaa9fde2ca967a3cfcca9191341f94
7
+ data.tar.gz: d9515a76702a3ea1524373c23e68ca4abcbc3dc2a65cc956e13ab8db9243961c56dec915ec1c0483dc7bf881e144e3d3c94a8c2a806724c23f14534030253f8f
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.2
1
+ 0.3.3
@@ -342,9 +342,7 @@ class EarlReport
342
342
  # Map ids and values to array entries
343
343
  ts_info.keys.sort.map do |id|
344
344
  info = ts_info[id]
345
- subject = {}
346
- subject["@id"] = id
347
- subject["@type"] = %w(earl:TestSubject doap:Project)
345
+ subject = {"@id" => id, "@type" => %w(earl:TestSubject doap:Project)}
348
346
  %w(name developer doapDesc homepage language).each do |prop|
349
347
  subject[prop] = info[prop] if info[prop]
350
348
  end
@@ -446,11 +444,15 @@ class EarlReport
446
444
  $stderr.puts "No result found for #{solution[:test]}: #{solution.inspect}"
447
445
  next
448
446
  end
447
+ s unless solution[:outcome]
448
+ $stderr.puts "No test subject found for #{solution[:test]}: #{solution.inspect}"
449
+ next
450
+ end
449
451
  subject = solution[:subject].to_s
450
452
  found_solutions[subject] = true
451
453
  result_index = subjects.index(subject)
452
- unless solution[:outcome]
453
- $stderr.puts "No test subject found for #{solution[:test]}: #{solution.inspect}"
454
+ unless result_index
455
+ $stderr.puts "No test result subject found for #{subject}: #{solution.inspect}"
454
456
  next
455
457
  end
456
458
  ta_hash = tc['assertions'][result_index]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: earl-report
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregg Kellogg