spring_onion 0.1.3 → 0.1.4

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: ce732c781280bd7df0bce88ccc8654d20efcf0d526fadeaa5ebcd263de43102d
4
- data.tar.gz: 4d7b643b28a2afd962df5882bdef1d38ba4c12d00dc90ab8ce960d3b3f1f3e37
3
+ metadata.gz: 5dc46f208b6c23dee53529598492e790c4b7335a694540312932b27eb4613889
4
+ data.tar.gz: d94debb3984be7370cefccd527e38ae56d90fcef1a42fac8277b011a171359bd
5
5
  SHA512:
6
- metadata.gz: ea8d9b77ed18bd515b75bde75237cc3ab0384c7f9ea64ea3258cb73d66f22589e9320df6e557ac11a8496f8ec2d86a3fef15153c3a9b5eff789a08544be5b6e8
7
- data.tar.gz: 75b6de58da35b12b310d30353203f679e930f79faca793c9ee7ec2007dd2d0db057a1cb2f80bbdb66f16a2621048bf15b5167a3a8693cfc2197abea1359c6f6c
6
+ metadata.gz: 89f5da00f467539f3829439824b3610886893e3cf7b47ada519f178d96b99e85b07885c3390e05a1a15c3850038625a5ae2e3bed64bd1ac19cf34538dd2a2bac
7
+ data.tar.gz: be8e4de6c3fd4a4e5758761047f57eb6145fc0739911171756092c2006479d1d4d742262bbd485275ceae7844684b3cf389e76785b08977811e6b0b25a09e377
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- spring_onion (0.1.3)
4
+ spring_onion (0.1.4)
5
5
  activerecord
6
6
  coderay
7
7
  mysql2
@@ -50,14 +50,16 @@ module SpringOnion
50
50
  )
51
51
 
52
52
  @ignore_source_filter_re = Regexp.union(
53
- [RbConfig::TOPDIR, *Gem.path].tap do |ary|
53
+ [RbConfig::TOPDIR, *Gem.path, '/.rbenv/versions/'].tap do |ary|
54
54
  re = ENV['SPRING_ONION_IGNORE_SOURCE_FILTER_RE']
55
55
  ary << Regexp.new(re) if re
56
56
  end
57
57
  )
58
58
 
59
59
  @source_filter = lambda do |backtrace_lines|
60
- backtrace_lines.grep_v(@ignore_source_filter_re).grep(@source_filter_re)
60
+ backtrace_lines = backtrace_lines.grep_v(@ignore_source_filter_re)
61
+ idx = backtrace_lines.index { |l| @source_filter_re =~ l }
62
+ idx ? backtrace_lines.slice(idx..-1) : []
61
63
  end
62
64
 
63
65
  @logger = Logger.new($stdout).tap do |logger|
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SpringOnion
4
- VERSION = '0.1.3'
4
+ VERSION = '0.1.4'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spring_onion
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - winebarrel
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-07-17 00:00:00.000000000 Z
11
+ date: 2020-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord