trace_location 0.9.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b7f8eaee17fe797de0ea3da6917dabcaa764bf9037a5748905061775edb9d3df
4
- data.tar.gz: c54da8e56e1ab1d10eaab5ca1c946914ed79b9b371a6705f7854a2f96165ed91
3
+ metadata.gz: 2194441a9de2b0331c15d48e202e61e05d208703821e62b7d53db4b0baf1e958
4
+ data.tar.gz: 87e55afcd03311a0735fecd7a2d6f37865c2bd06df25f60805e57aec0b0f16e4
5
5
  SHA512:
6
- metadata.gz: afc12795bbe5f3fcd185ae87163c978484bc4be5bc793ed6df4da83dd8885ccac1df7c3cd2e059520d41577ec95bcda8e3b49ba426abe7daf1a03894ce833405
7
- data.tar.gz: 6b680efb7dc27b7dc804df6ef55cdb07f5a78c4f4e0fb42f6733d125f6d04fa07ce2962c65140c502953038c94a6789c827e8c151c7f8713c60051d85b5b3672
6
+ metadata.gz: eabe3716b3a56ff70aa15a25887cbbfd056953ace2eb1e4c7e532041ca245b160d7d8c5b6e52ad8ff294747d6937c3841fa911d82150770ff45d22d7efa2bc54
7
+ data.tar.gz: 631ee8e05dbbf7aeb65c35ec955f8cd56e6f1931fa34e979109f9c4d90dcb5e11b0755f5cc6495df42271dcc0ef047b29040adc57e8a142ec9486a4343a07b6f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- trace_location (0.9.0)
4
+ trace_location (0.9.1)
5
5
  binding_of_caller
6
6
  pry
7
7
 
@@ -36,11 +36,7 @@ module TraceLocation
36
36
  MARKDOWN
37
37
 
38
38
  events.select(&:call?).each do |e|
39
- pm = begin
40
- Pry::Method.from_str(e.method_str)
41
- rescue StandardError
42
- nil
43
- end
39
+ pm = Pry::Method.from_str(e.method_str)
44
40
  next if pm.nil?
45
41
 
46
42
  path = e.path.to_s.gsub(%r{#{gems_dir}/}, '')
@@ -50,13 +46,15 @@ module TraceLocation
50
46
  <summary>#{path}:#{e.lineno}</summary>
51
47
 
52
48
  ##### #{pm.name_with_owner}
49
+
53
50
  ```#{pm.source_type}
54
51
  #{pm.source.chomp}
55
52
  # called from #{caller_path}:#{e.caller_lineno}
56
53
  ```
57
-
58
54
  </details>
59
55
  MARKDOWN
56
+ rescue StandardError
57
+ next
60
58
  end
61
59
  end
62
60
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TraceLocation
4
- VERSION = '0.9.0'
4
+ VERSION = '0.9.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trace_location
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoshiyuki Hirano
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-06-03 00:00:00.000000000 Z
11
+ date: 2019-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: binding_of_caller