knapsack_pro 9.2.0 → 9.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 69f4cd183de10604ce425379105354fd37da56929568c6bac466d682dc893088
4
- data.tar.gz: 3c9c33a0aed5050e6d6582ff66550d8497b833383b1b34c09e622dd8f57bc6b8
3
+ metadata.gz: c214021f95c75ade998199d051fde0a287ae357174f82fb9193833a70792ae76
4
+ data.tar.gz: 5987335be91251d6dba92a1656d981932172897bca175525db2e3421ad718775
5
5
  SHA512:
6
- metadata.gz: bac25fed3f1e309e57f21bbce67391ed2d638d8484c91ce99900aa9ab22bbebde61bf0a968e9bf208f45d9d684574cb8a0b9fd549a0f5875c036b4c0e6aeec30
7
- data.tar.gz: 35f0c05d901993faa07ceeffc211e596b693aa852671e9a04aa12ca845ef78bb39e332b8011b846a93be6cab17f803197f2e7a008fe9f7d9140ba9df75240561
6
+ metadata.gz: a47a53fb26eb3aba28c60045d13fda33fb00c6ea46321adb63986e662b74bc7b011097c2fbf90ec68a5be236cf06986a901b6ffef524864352d06d053dcbd962
7
+ data.tar.gz: f3210244a10fbd129649586d8ed09441bbb63202bfde66ca3bd1f997c235772cdb4891681b0b8a3918d204f18b4ad3c2522a25ed445bdb830a69423c09b695c2
@@ -10,15 +10,18 @@ module KnapsackPro
10
10
  path, _line =
11
11
  begin
12
12
  Object.const_source_location(obj.class.to_s)
13
- rescue NameError
14
- test_method_name = obj.class.runnable_methods.first
15
- obj.method(test_method_name).source_location
13
+ rescue NameError # Dynamically defined class (Minitest::Spec `describe "more words"`)
14
+ nil
16
15
  end
16
+
17
+ if path.nil? # Dynamically defined class (Minitest::Spec `describe "oneword"`)
18
+ test_method_name = obj.class.runnable_methods.first
19
+ path, _line = obj.method(test_method_name).source_location
20
+ end
21
+
17
22
  path.gsub(Regexp.new("^#{@@parent_of_test_dir}"), '.')
18
23
  end
19
24
 
20
- # See how to write hooks and plugins
21
- # https://github.com/seattlerb/minitest/blob/master/lib/minitest/test.rb
22
25
  module BindTimeTrackerMinitestPlugin
23
26
  def before_setup
24
27
  super
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module KnapsackPro
4
- VERSION = '9.2.0'
4
+ VERSION = '9.2.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knapsack_pro
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.2.0
4
+ version: 9.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ArturT