audit_weasel 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -3
- data/lib/audit_weasel.rb +5 -5
- data/lib/audit_weasel/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0855be3f36e51c54a434e56d9c8ae7411aabbae1
|
4
|
+
data.tar.gz: 898889ea5f79251bccb787f6ef6b087bcadef115
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52bccd1dcfee1ab4e5356d9068160b246f9b29d74532a1cda9af9ac0a2ea57996defec58ea8f00d9759bca3175e6cd1c70f876ab08d22bf950c94be71397f043
|
7
|
+
data.tar.gz: dcf961d7155f57c92ddef2377a134815762c393d568603b7b1199cb7c5d202b78a31ad8baa975b80975e82629b4ec77fcc084960f415b4b6e02d7a4ed38a7851
|
data/README.md
CHANGED
@@ -15,8 +15,10 @@ created_by_user_id and updated_by_user_id fields. Now user B comes along and
|
|
15
15
|
makes a change to the record, the updated_by_user_Id will change to user B.
|
16
16
|
|
17
17
|
This is pretty handy if you don't want to burden your system with heavy
|
18
|
-
auditing, but you do want to
|
19
|
-
have done.
|
18
|
+
auditing, but you do want to have insight into what your users
|
19
|
+
have done. It's all in the background and if you want to expose the
|
20
|
+
auditing data through the front end your can since it's just a normal
|
21
|
+
field on the model.
|
20
22
|
|
21
23
|
## Installation
|
22
24
|
|
@@ -40,7 +42,7 @@ To install audit_weasel:
|
|
40
42
|
rails generate audit_weasel:install
|
41
43
|
```
|
42
44
|
|
43
|
-
This will generate a config file under the initializers
|
45
|
+
This will generate a config file under the initializers directory. Right now
|
44
46
|
there no configuration settings, but I am looking to add a couple of things.
|
45
47
|
|
46
48
|
To audit a table:
|
data/lib/audit_weasel.rb
CHANGED
@@ -7,11 +7,11 @@ require 'audit_weasel/callbacks'
|
|
7
7
|
require 'audit_weasel/request_registry'
|
8
8
|
require 'audit_weasel/railtie' if defined?(Rails)
|
9
9
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
10
|
+
begin
|
11
|
+
require 'pry'
|
12
|
+
rescue
|
13
|
+
LoadError
|
14
|
+
end
|
15
15
|
|
16
16
|
# Load all functionality required by the gem
|
17
17
|
module AuditWeasel
|
data/lib/audit_weasel/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: audit_weasel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan-Neal Mes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-12-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|