rack-action_logger 0.3.0 → 0.4.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c699cc16212b714dbb03fbdc789f8a6f2820ccfc
4
- data.tar.gz: 9502d93c2f958b57cd5507c6e51541b51edb3e26
3
+ metadata.gz: e18ab4320677ee507a94caa05aba7147bb2d7364
4
+ data.tar.gz: 30698a584013dcb2b5efd494f896ab5287dd0035
5
5
  SHA512:
6
- metadata.gz: 2d6f3b08d1a49fe068e42034a57acd239abdf3730b62a6a672ce2bc1d1af5e3cc68cf8b38179183ccc3cd07ec9e0ac496ecbf8bcce6b161a6b4909127387680c
7
- data.tar.gz: 26e7cfddc5335a447500f510380d4c805492f7a6f198cc9aeaa36450adda7a186b75d46ed17f0be74af67228b8bdc38c00ad303fc684712d366ac481b794e7de
6
+ metadata.gz: 51e2a88fef78ea45eda103e67bb5a965873456f60813c681e12b87f225f6c35881f4fcad7407bed2c664cbc0e4652b244c60a4e7d15816958f8f5056d0310ac5
7
+ data.tar.gz: 48a12f019575ace08ed456210c1ba2aeedb0d82ec7a23e509e7e9a4e1404df006cab29c7af93ddbf083d0c2dcde487b338409d480874b7bcb2fd2b5cd9ebf576
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rack-action_logger (0.3.0)
4
+ rack-action_logger (0.4.0)
5
5
  activesupport
6
6
  fluent-logger (~> 0.5)
7
7
  woothee (~> 1.4)
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Rack::ActionLogger
2
2
 
3
+ [![Join the chat at https://gitter.im/wapa5pow/rack-action_logger](https://badges.gitter.im/wapa5pow/rack-action_logger.svg)](https://gitter.im/wapa5pow/rack-action_logger?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
4
+
3
5
  [![CircleCI](https://circleci.com/gh/wapa5pow/rack-action_logger.svg?style=shield)](https://circleci.com/gh/wapa5pow/rack-action_logger)
4
6
  [![Gem Version](https://badge.fury.io/rb/rack-action_logger.svg)](https://badge.fury.io/rb/rack-action_logger)
5
7
  [![Code Climate](https://codeclimate.com/github/wapa5pow/rack-action_logger/badges/gpa.svg)](https://codeclimate.com/github/wapa5pow/rack-action_logger)
@@ -9,7 +11,7 @@
9
11
 
10
12
  It is intended to collect user request log, action log and any other custome logs.
11
13
 
12
- **Rails 4 or Rails 5** is required to use it.
14
+ **Rails 5.1 or above** is required to use it. If you want to use it with other than these versions, please use 0.3.0
13
15
 
14
16
  ## Sample Logs
15
17
 
@@ -25,9 +25,9 @@ module Rack::ActionLogger
25
25
  self.class.column_names.each do |column_name|
26
26
  if column_name.end_with?('_id')
27
27
  record["_#{column_name}"] = self.try(column_name)
28
- elsif self.try("#{column_name}_changed?")
28
+ elsif self.try("saved_change_to_#{column_name}?")
29
29
  record["_after:#{column_name}"] = self.try(column_name)
30
- record["_before:#{column_name}"] = self.try("#{column_name}_was")
30
+ record["_before:#{column_name}"] = self.try("#{column_name}_before_last_save")
31
31
  end
32
32
  end
33
33
  record = Rack::ActionLogger::ParameterFiltering.apply_filter(record)
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  module ActionLogger
3
- VERSION = '0.3.0'
3
+ VERSION = '0.4.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-action_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Koichi Ishida
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-07-03 00:00:00.000000000 Z
11
+ date: 2017-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport