minimal_logging 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 045a84ef7671156a04c221f155c1be24576b6566
4
- data.tar.gz: e4106e4fcab7f09b10162f34295ec4511fb386c7
3
+ metadata.gz: 17503e27b9db04c34238c7787f47bdbbee88f0b1
4
+ data.tar.gz: 38d419ed2fd8a8463ad3ae7e3eedbef0c07423c1
5
5
  SHA512:
6
- metadata.gz: c2c118ada8038e06dc9d523d11072bbb5c2fb94c40d4390245a7fff5a6b53b3e0e593a9abf345ee22552ab9b486fe8965b67c0e21e5a45bbe92765168fd3f9a0
7
- data.tar.gz: 4e9474c1c0a8034320434fd751821bc1d24a947e90ec42bcf5a98272bb87980653cf4be5c934a1f24fc7cd04e0351da7f33860ecf6428600649c1352021a5f09
6
+ metadata.gz: 958d80e9a551cc1f9a38fc87f7a8525b0135557515e7cc9b33d574f464ae6dceff0854e45e36a720b385235a95b24f69ed22bd78cea3e9c9a28a2b05a1ada151
7
+ data.tar.gz: 7f99d891d2b0cb7b472b342a2c74a3c64a93f7684a1c6d3ff99515931131af2cce9451e2b1d0df67fc496c2582633ca786ea708ac6893273bc3a19b1aab39ea2
@@ -10,13 +10,12 @@ class ActionController::LogSubscriber
10
10
  params = payload[:params].except(*INTERNAL_PARAMS)
11
11
  format = payload[:format]
12
12
  format = format.to_s.upcase if format.is_a?(Symbol)
13
+ action = "#{payload[:action]}".upcase.red
14
+ controller = " #{payload[:controller]}".red
13
15
 
14
- info "#{payload[:action]}".upcase.colorize(:red) + " #{payload[:controller]}".colorize(:red)
15
-
16
- unless params.empty?
17
- info " Params: ".colorize(:blue)
18
- ap params
19
- end
16
+ info(action + controller)
17
+ info "Format #{format}".light_magenta
18
+ info("Params".blue) && ap(params) unless params.empty?
20
19
  end
21
20
 
22
21
  def process_action(event)
@@ -40,8 +40,8 @@ Rails::Rack::Logger.class_eval do
40
40
  end
41
41
 
42
42
  def started_request_message(request)
43
- method = request.request_method.colorize(:blue)
44
- path = request.filtered_path.colorize(:magenta)
43
+ method = request.request_method.blue
44
+ path = request.filtered_path.magenta
45
45
  output = method + " " + path
46
46
  end
47
47
  end
@@ -1,3 +1,3 @@
1
1
  module MinimalLogging
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minimal_logging
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Nelson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-16 00:00:00.000000000 Z
11
+ date: 2015-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler