wireframe-rack-bug 0.3.1 → 0.3.1.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/.gitignore +2 -1
- data/lib/rack/bug/panels/cache_panel/dalli_extension.rb +16 -0
- data/rack-bug.gemspec +2 -1
- metadata +4 -2
data/.gitignore
CHANGED
@@ -0,0 +1,16 @@
|
|
1
|
+
begin
|
2
|
+
|
3
|
+
require 'dalli'
|
4
|
+
|
5
|
+
Dalli::Client.class_eval do
|
6
|
+
def perform_with_rack_bug(op, *args)
|
7
|
+
Rack::Bug::CachePanel.record(op, args.first) do
|
8
|
+
perform_without_rack_bug(op, *args)
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
alias_method_chain :perform, :rack_bug
|
13
|
+
end
|
14
|
+
|
15
|
+
rescue NameError, LoadError
|
16
|
+
end
|
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.1"
|
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"]
|
@@ -29,6 +29,7 @@ Gem::Specification.new do |s|
|
|
29
29
|
"lib/rack/bug/panels/active_record_panel/activerecord_extensions.rb",
|
30
30
|
"lib/rack/bug/panels/cache_panel.rb",
|
31
31
|
"lib/rack/bug/panels/cache_panel/memcache_extension.rb",
|
32
|
+
"lib/rack/bug/panels/cache_panel/dalli_extension.rb",
|
32
33
|
"lib/rack/bug/panels/cache_panel/panel_app.rb",
|
33
34
|
"lib/rack/bug/panels/cache_panel/stats.rb",
|
34
35
|
"lib/rack/bug/panels/log_panel.rb",
|
metadata
CHANGED
@@ -1,13 +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: 81
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
9
|
- 1
|
10
|
-
|
10
|
+
- 1
|
11
|
+
version: 0.3.1.1
|
11
12
|
platform: ruby
|
12
13
|
authors:
|
13
14
|
- Bryan Helmkamp
|
@@ -115,6 +116,7 @@ files:
|
|
115
116
|
- lib/rack/bug/panels/active_record_panel/activerecord_extensions.rb
|
116
117
|
- lib/rack/bug/panels/cache_panel.rb
|
117
118
|
- lib/rack/bug/panels/cache_panel/memcache_extension.rb
|
119
|
+
- lib/rack/bug/panels/cache_panel/dalli_extension.rb
|
118
120
|
- lib/rack/bug/panels/cache_panel/panel_app.rb
|
119
121
|
- lib/rack/bug/panels/cache_panel/stats.rb
|
120
122
|
- lib/rack/bug/panels/log_panel.rb
|