programmable-ventouse 0.1.3 → 0.1.4
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/ventouse/suppress_logging_for.rb +18 -0
- data/lib/ventouse.rb +1 -0
- metadata +5 -5
@@ -0,0 +1,18 @@
|
|
1
|
+
module SuppressLoggingFor
|
2
|
+
def self.suppress_logging_for *actions
|
3
|
+
unless defined? @@actions_without_logging
|
4
|
+
@@actions_without_logging = []
|
5
|
+
|
6
|
+
def process(request, *)
|
7
|
+
if @@actions_without_logging.include?((request['action'] || 'index').to_sym)
|
8
|
+
logger.silence { super }
|
9
|
+
else
|
10
|
+
super
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
@@actions_without_logging.concat actions.flatten
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
ActionController::Base.send :include, SuppressLoggingFor
|
data/lib/ventouse.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: programmable-ventouse
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ilia Ablamonov
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2009-
|
13
|
+
date: 2009-08-04 00:00:00 -07:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -23,7 +23,7 @@ dependencies:
|
|
23
23
|
- !ruby/object:Gem::Version
|
24
24
|
version: 2.3.2
|
25
25
|
version:
|
26
|
-
description: Various usefull ruby/rails shit
|
26
|
+
description: Various usefull ruby/rails shit
|
27
27
|
email: pro@grammable.com
|
28
28
|
executables: []
|
29
29
|
|
@@ -43,11 +43,11 @@ files:
|
|
43
43
|
- lib/ventouse/rename_type_column.rb
|
44
44
|
- lib/ventouse/rescue_ext.rb
|
45
45
|
- lib/ventouse/resource_as_root.rb
|
46
|
+
- lib/ventouse/suppress_logging_for.rb
|
46
47
|
- lib/ventouse.rb
|
47
48
|
- test/declarations_test.rb
|
48
49
|
has_rdoc: true
|
49
50
|
homepage: http://github.com/programmable/ventouse
|
50
|
-
licenses:
|
51
51
|
post_install_message:
|
52
52
|
rdoc_options:
|
53
53
|
- --quiet
|
@@ -71,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
71
71
|
requirements: []
|
72
72
|
|
73
73
|
rubyforge_project:
|
74
|
-
rubygems_version: 1.
|
74
|
+
rubygems_version: 1.2.0
|
75
75
|
signing_key:
|
76
76
|
specification_version: 2
|
77
77
|
summary: Various usefull ruby/rails shit.
|