cia 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Readme.md +2 -2
- data/lib/cia/auditable.rb +9 -1
- data/lib/cia/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 234bc3aa9cfec16e08ee99ab9cd84ab4d2091c57
|
4
|
+
data.tar.gz: c50e8d44618065c7db976ae8d576e9aaba3b248f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a31749f5da2bc7f9b3cdd446f3306b2781b4cfa6424c5bc0c1366b8c83f326184c64a3182ba4a2eab6f6249101e1812e74c16c6a872997d361863985c1b11b24
|
7
|
+
data.tar.gz: 947727ff296e99de71db0d534abe8381d68d532c22391b2b848b255fd11fe15fc862493de2541d09a4d48693e449082101b6e120a999df8695fd695694771057
|
data/Readme.md
CHANGED
@@ -5,7 +5,7 @@ Audit model actions like update/create/destroy/<custom> + attribute changes.
|
|
5
5
|
|
6
6
|
- normalized and queryable through table layout
|
7
7
|
- actors and subjects are polymorphic
|
8
|
-
- works on ActiveRecord 3.2
|
8
|
+
- works on ActiveRecord 3.2+
|
9
9
|
|
10
10
|
Table layout:
|
11
11
|
|
@@ -63,7 +63,7 @@ CIA.current_actor = @user
|
|
63
63
|
# custom changes
|
64
64
|
class User < ActiveRecord::Base
|
65
65
|
def cia_changes
|
66
|
-
|
66
|
+
super.merge("this" => ["always", "changes"])
|
67
67
|
end
|
68
68
|
end
|
69
69
|
|
data/lib/cia/auditable.rb
CHANGED
data/lib/cia/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cia
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Grosser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -133,7 +133,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
133
133
|
requirements:
|
134
134
|
- - ">="
|
135
135
|
- !ruby/object:Gem::Version
|
136
|
-
version: 2.
|
136
|
+
version: 2.2.0
|
137
137
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
138
138
|
requirements:
|
139
139
|
- - ">="
|
@@ -141,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
141
141
|
version: '0'
|
142
142
|
requirements: []
|
143
143
|
rubyforge_project:
|
144
|
-
rubygems_version: 2.
|
144
|
+
rubygems_version: 2.5.2
|
145
145
|
signing_key:
|
146
146
|
specification_version: 4
|
147
147
|
summary: Audit model events like update/create/delete + attribute changes + group
|