sql_origin 1.0.0 → 1.0.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.
data/README.md CHANGED
@@ -10,7 +10,7 @@ Why do I want this?
10
10
 
11
11
  Simple. To turn this
12
12
 
13
- ![Without backtrace logging](https://img.skitch.com/20120614-b5bw4bqxsitde6ej6776was6tx.png)
13
+ ![Without backtrace logging](https://img.skitch.com/20120614-rg8sqa2t7eweaj4swjqcufrcjr.png)
14
14
 
15
15
  into this.
16
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.0.1
@@ -24,7 +24,7 @@ module SQLOrigin
24
24
  included { alias_method_chain :sql, :backtrace }
25
25
 
26
26
  def sql_with_backtrace(event)
27
- sql_without_backtrace event
27
+ return unless sql_without_backtrace(event)
28
28
 
29
29
  if event.payload[:backtrace].any?
30
30
  event.payload[:backtrace].each do |line|
data/lib/sql_origin.rb CHANGED
@@ -13,6 +13,7 @@ module SQLOrigin
13
13
  line.sub /^#{Regexp.escape Rails.root.to_s}\//, ''
14
14
  end.select do |line|
15
15
  !line.starts_with?("/") &&
16
+ !line.starts_with?("(") &&
16
17
  LIBRARY_PATHS.none? { |path| line.starts_with?(path) }
17
18
  end
18
19
  end
data/sql_origin.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "sql_origin"
8
- s.version = "1.0.0"
8
+ s.version = "1.0.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Tim Morgan"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sql_origin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -127,7 +127,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
127
127
  version: '0'
128
128
  segments:
129
129
  - 0
130
- hash: -915926160300598218
130
+ hash: 2360449008841273446
131
131
  required_rubygems_version: !ruby/object:Gem::Requirement
132
132
  none: false
133
133
  requirements: