wireframe-rack-bug 0.3.1.1 → 0.3.1.2
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/lib/rack/bug/panels/sql_panel/sql_extension.rb +3 -2
- data/rack-bug.gemspec +1 -1
- metadata +3 -3
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
if defined?(ActiveRecord) && defined?(ActiveRecord::ConnectionAdapters)
|
|
2
2
|
ActiveRecord::ConnectionAdapters::AbstractAdapter.class_eval do
|
|
3
|
-
def log_with_rack_bug(
|
|
3
|
+
def log_with_rack_bug(*args, &block)
|
|
4
|
+
sql = args.first
|
|
4
5
|
Rack::Bug::SQLPanel.record(sql, Kernel.caller) do
|
|
5
|
-
log_without_rack_bug(
|
|
6
|
+
log_without_rack_bug(*args, &block)
|
|
6
7
|
end
|
|
7
8
|
end
|
|
8
9
|
|
data/rack-bug.gemspec
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |s|
|
|
4
4
|
s.name = %q{wireframe-rack-bug}
|
|
5
|
-
s.version = "0.3.1.
|
|
5
|
+
s.version = "0.3.1.2"
|
|
6
6
|
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
8
8
|
s.authors = ["Bryan Helmkamp", "Ryan Sonnek"]
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: wireframe-rack-bug
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 87
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 3
|
|
9
9
|
- 1
|
|
10
|
-
-
|
|
11
|
-
version: 0.3.1.
|
|
10
|
+
- 2
|
|
11
|
+
version: 0.3.1.2
|
|
12
12
|
platform: ruby
|
|
13
13
|
authors:
|
|
14
14
|
- Bryan Helmkamp
|