action_tracer 0.2.5 → 0.2.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7214356083ad06c96fe92939aa010ea7ad918d2273431eedecd9edfe3d358f3d
4
- data.tar.gz: 13e9c9b139723297a2a92407786761a7f1df0bfc58a793e980daaa7232d665f8
3
+ metadata.gz: 44b673efea32af55f62a1376f6e31be7155c60554317588535a98a841dd477c1
4
+ data.tar.gz: 9b0db3964dbc4789dc64f7aaf26f598938defd70729a0f340f4aa67d2c3d9988
5
5
  SHA512:
6
- metadata.gz: da46b25d92b0c5fba47b21cda6ccd555a6bf89dd9bcb40be436bbc55b7dc4c7cc4cce1d662927d26f492bc0fda5eba4f2ff1cddc0347b2f7f3450978dd0c7beb
7
- data.tar.gz: 074af54035733e26735e927a84e0e1bc2717a28cddb583af30035deae31f29d3bd9391eed8830b4a684eb40355f75b67b6fbd031fd48d0775dfdd4ad2112613f
6
+ metadata.gz: 03fdc176e562858664af1e5af1323f362c45fd555b31632e0b6f8b171873d8f9a34b6dcb1c17501695ddcd28d2bbb12c3779d04c06630c2085465b339d30c3d8
7
+ data.tar.gz: 8eaa24e2fbb31936b392a5e753925686fc61db40ed64db17a842df8860edbd7d5ddb0d60530855c540eec93a200592245ecd45706c9d257c5fbb53b9de98be94
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.2.6
2
+
3
+ * Fix bug when actions aren't defined in the controller.
4
+
1
5
  ## 0.2.5
2
6
 
3
7
  * Be able to inject logger.
@@ -17,7 +17,7 @@ module ActionTracer
17
17
  def to_a
18
18
  if @method.respond_to? :source_location
19
19
  source_location, line_number = *@method.source_location
20
- source_location = source_location.sub(::ActionTracer.config.omitted_source_location_path, '')
20
+ source_location = source_location&.sub(::ActionTracer.config.omitted_source_location_path, '')
21
21
  [APPLIED[@applied], @filter, source_location, line_number].compact
22
22
  else
23
23
  [APPLIED[:unrecognized], @method]
@@ -46,7 +46,7 @@ module ActionTracer
46
46
 
47
47
  def to_a
48
48
  source_location, line_number = *@method.source_location
49
- source_location = source_location.sub(::ActionTracer.config.omitted_source_location_path, '')
49
+ source_location = source_location&.sub(::ActionTracer.config.omitted_source_location_path, '')
50
50
  [APPLIED[:action], @name, source_location, line_number].compact
51
51
  end
52
52
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActionTracer
4
- VERSION = '0.2.5'
4
+ VERSION = '0.2.6'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: action_tracer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - makicamel