notifiably_audited-activerecord 0.0.7 → 0.1.11
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 +8 -8
- data/lib/generators/{audited → notifiably_audited}/install_generator.rb +0 -0
- data/lib/generators/{audited → notifiably_audited}/templates/add_association_to_audits.rb +0 -0
- data/lib/generators/{audited → notifiably_audited}/templates/add_comment_to_audits.rb +0 -0
- data/lib/generators/{audited → notifiably_audited}/templates/add_remote_address_to_audits.rb +0 -0
- data/lib/generators/{audited → notifiably_audited}/templates/install.rb +0 -0
- data/lib/generators/{audited → notifiably_audited}/templates/rename_association_to_associated.rb +0 -0
- data/lib/generators/{audited → notifiably_audited}/templates/rename_changes_to_audited_changes.rb +0 -0
- data/lib/generators/{audited → notifiably_audited}/templates/rename_parent_to_association.rb +0 -0
- data/lib/generators/{audited → notifiably_audited}/upgrade_generator.rb +0 -0
- data/lib/notifiably_audited-activerecord.rb +2 -0
- data/lib/notifiably_audited/adapters/active_record.rb +15 -0
- data/lib/{audited → notifiably_audited}/adapters/active_record/audit.rb +3 -3
- metadata +15 -15
- data/lib/audited-activerecord.rb +0 -2
- data/lib/audited/adapters/active_record.rb +0 -15
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YmMzMzU2YzAzODYxZWE2ZDc2MTIzMjA3YzMzYmQyNWQ5ZGUxMjdjOQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NWEyN2ZlNGVlMzJkMGFmODQyMjU3NjI4ODNhNWFhZWMyYWIwOTVjOQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MWRkNjQ5Y2Y3OTZkYWY5MTY1M2EyZThkY2M1NWJiMTE2NTQ5NTNkYmVlOTBk
|
10
|
+
MDBhYjk2MDM4NGI3ZmRiNzI4Yjk2NTdkMTc5MGMxNGQwNmQyODQxMDFmMTI2
|
11
|
+
MzlhNWJlMzI0MGNkZDdhNTEwNjhmNTM3ZGNhZjQ2YmMzOWViYjM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YmNmMDQzMzI3ZWMxNjQxMWM2YzM2NDQ0M2FhMTg4ZDJkNTc4NGI3NjMxYjcz
|
14
|
+
MmRkNzU0NjE3MTMwMWQ0NDNhNTVjZmM3NjY3MjY2YzBjODI4YjlhMDVmYmNl
|
15
|
+
M2U4NjBjNjI3ZGYwNDM5YjY3MWUzYmNmOWVjYjllNTNlNjkwZDg=
|
File without changes
|
File without changes
|
File without changes
|
data/lib/generators/{audited → notifiably_audited}/templates/add_remote_address_to_audits.rb
RENAMED
File without changes
|
File without changes
|
data/lib/generators/{audited → notifiably_audited}/templates/rename_association_to_associated.rb
RENAMED
File without changes
|
data/lib/generators/{audited → notifiably_audited}/templates/rename_changes_to_audited_changes.rb
RENAMED
File without changes
|
data/lib/generators/{audited → notifiably_audited}/templates/rename_parent_to_association.rb
RENAMED
File without changes
|
File without changes
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'active_record'
|
2
|
+
require 'notifiably_audited/auditor'
|
3
|
+
require 'notifiably_audited/adapters/active_record/audit'
|
4
|
+
|
5
|
+
module NotifiablyAudited::Auditor::ClassMethods
|
6
|
+
def default_ignored_attributes
|
7
|
+
[self.primary_key, inheritance_column]
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
::ActiveRecord::Base.send :include, NotifiablyAudited::Auditor
|
12
|
+
|
13
|
+
NotifiablyAudited.audit_class = NotifiablyAudited::Adapters::ActiveRecord::Audit
|
14
|
+
|
15
|
+
require 'notifiably_audited/sweeper'
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'set'
|
2
|
-
require '
|
2
|
+
require 'notifiably_audited/audit'
|
3
3
|
|
4
|
-
module
|
4
|
+
module NotifiablyAudited
|
5
5
|
module Adapters
|
6
6
|
module ActiveRecord
|
7
7
|
# Audit saves the changes to ActiveRecord models. It has the following attributes:
|
@@ -14,7 +14,7 @@ module Audited
|
|
14
14
|
# * <tt>created_at</tt>: Time that the change was performed
|
15
15
|
#
|
16
16
|
class Audit < ::ActiveRecord::Base
|
17
|
-
include
|
17
|
+
include NotifiablyAudited::Audit
|
18
18
|
|
19
19
|
|
20
20
|
serialize :audited_changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: notifiably_audited-activerecord
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.1.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- senthil kumar
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.1.11
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.1.11
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: activerecord
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -45,18 +45,18 @@ extensions: []
|
|
45
45
|
extra_rdoc_files: []
|
46
46
|
files:
|
47
47
|
- LICENSE
|
48
|
-
- lib/
|
49
|
-
- lib/
|
50
|
-
- lib/
|
51
|
-
- lib/generators/
|
52
|
-
- lib/generators/
|
53
|
-
- lib/generators/
|
54
|
-
- lib/generators/
|
55
|
-
- lib/generators/
|
56
|
-
- lib/generators/
|
57
|
-
- lib/
|
58
|
-
- lib/
|
59
|
-
- lib/
|
48
|
+
- lib/generators/notifiably_audited/install_generator.rb
|
49
|
+
- lib/generators/notifiably_audited/templates/add_association_to_audits.rb
|
50
|
+
- lib/generators/notifiably_audited/templates/add_comment_to_audits.rb
|
51
|
+
- lib/generators/notifiably_audited/templates/add_remote_address_to_audits.rb
|
52
|
+
- lib/generators/notifiably_audited/templates/install.rb
|
53
|
+
- lib/generators/notifiably_audited/templates/rename_association_to_associated.rb
|
54
|
+
- lib/generators/notifiably_audited/templates/rename_changes_to_audited_changes.rb
|
55
|
+
- lib/generators/notifiably_audited/templates/rename_parent_to_association.rb
|
56
|
+
- lib/generators/notifiably_audited/upgrade_generator.rb
|
57
|
+
- lib/notifiably_audited-activerecord.rb
|
58
|
+
- lib/notifiably_audited/adapters/active_record.rb
|
59
|
+
- lib/notifiably_audited/adapters/active_record/audit.rb
|
60
60
|
homepage: ''
|
61
61
|
licenses:
|
62
62
|
- MIT
|
data/lib/audited-activerecord.rb
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'active_record'
|
2
|
-
require 'audited/auditor'
|
3
|
-
require 'audited/adapters/active_record/audit'
|
4
|
-
|
5
|
-
module Audited::Auditor::ClassMethods
|
6
|
-
def default_ignored_attributes
|
7
|
-
[self.primary_key, inheritance_column]
|
8
|
-
end
|
9
|
-
end
|
10
|
-
|
11
|
-
::ActiveRecord::Base.send :include, Audited::Auditor
|
12
|
-
|
13
|
-
Audited.audit_class = Audited::Adapters::ActiveRecord::Audit
|
14
|
-
|
15
|
-
require 'audited/sweeper'
|