rack-bug-rails-3 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,7 +7,7 @@ require "rack/bug/autoloading"
7
7
  class Rack::Bug
8
8
  include Options
9
9
 
10
- VERSION = "0.3.0"
10
+ VERSION = "0.3.1"
11
11
 
12
12
  class SecurityError < StandardError
13
13
  end
@@ -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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{rack-bug-rails-3}
5
- s.version = "0.3.0"
5
+ s.version = "0.3.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"]
@@ -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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-bug-rails-3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2010-09-03 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rack
16
- requirement: &70149728835280 !ruby/object:Gem::Requirement
16
+ requirement: &70206844759420 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '1.0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70149728835280
24
+ version_requirements: *70206844759420
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: webrat
27
- requirement: &70149728834800 !ruby/object:Gem::Requirement
27
+ requirement: &70206844758940 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70149728834800
35
+ version_requirements: *70206844758940
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rspec
38
- requirement: &70149728834320 !ruby/object:Gem::Requirement
38
+ requirement: &70206844758460 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70149728834320
46
+ version_requirements: *70206844758460
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: sinatra
49
- requirement: &70149728833840 !ruby/object:Gem::Requirement
49
+ requirement: &70206844757980 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70149728833840
57
+ version_requirements: *70206844757980
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: git
60
- requirement: &70149728833360 !ruby/object:Gem::Requirement
60
+ requirement: &70206844757500 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,7 +65,7 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70149728833360
68
+ version_requirements: *70206844757500
69
69
  description:
70
70
  email: bryan@brynary.com
71
71
  executables: []
@@ -90,6 +90,7 @@ files:
90
90
  - lib/rack/bug/panels/active_record_panel/activerecord_extensions.rb
91
91
  - lib/rack/bug/panels/cache_panel.rb
92
92
  - lib/rack/bug/panels/cache_panel/memcache_extension.rb
93
+ - lib/rack/bug/panels/cache_panel/dalli_extension.rb
93
94
  - lib/rack/bug/panels/cache_panel/panel_app.rb
94
95
  - lib/rack/bug/panels/cache_panel/stats.rb
95
96
  - lib/rack/bug/panels/log_panel.rb