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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NWZlNGJiMTZmMDM5ZGIzOTUwMzM0NjgxNzY3Yzg2MmI5ODczNWFlZg==
4
+ YmMzMzU2YzAzODYxZWE2ZDc2MTIzMjA3YzMzYmQyNWQ5ZGUxMjdjOQ==
5
5
  data.tar.gz: !binary |-
6
- ZDRkNzM5YzNjODAyZGRmNjljZTM3OTBjYmEzODc0MGFjNTQ5M2RlZg==
6
+ NWEyN2ZlNGVlMzJkMGFmODQyMjU3NjI4ODNhNWFhZWMyYWIwOTVjOQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MjIxNTY1MmE5MmIzODA1OTMxYzc4MWMzNDNjNGNmOTc5MzE3MWZlNDU1ODgw
10
- NmQ2N2U0OTczZDMwNjQyZThhY2JhYWZjODQxMDQ1NjkwOGM1ZGYzZDQ0Mzdi
11
- OTY0YzdkNjM4M2NhMjUxNGM1NGQ0NmIyODA5MDhjMDMwMzJmMTg=
9
+ MWRkNjQ5Y2Y3OTZkYWY5MTY1M2EyZThkY2M1NWJiMTE2NTQ5NTNkYmVlOTBk
10
+ MDBhYjk2MDM4NGI3ZmRiNzI4Yjk2NTdkMTc5MGMxNGQwNmQyODQxMDFmMTI2
11
+ MzlhNWJlMzI0MGNkZDdhNTEwNjhmNTM3ZGNhZjQ2YmMzOWViYjM=
12
12
  data.tar.gz: !binary |-
13
- ZDkxZTI3ZDA5NTdjNjM2ZWVlOGIxNjZhYjBiNjJjNWQyNTYyMDBiNmQxNDMz
14
- ODUzZjI5YzI4OWYyNzAzNDNhZjg5MmVhZTRkMGNiMWUwZDBkMWZhZmFkMTY0
15
- MDUwOTU5MjU4YWZjOTQyN2IxNTVkOWYxMDk3OTEwYmZiZjgyODU=
13
+ YmNmMDQzMzI3ZWMxNjQxMWM2YzM2NDQ0M2FhMTg4ZDJkNTc4NGI3NjMxYjcz
14
+ MmRkNzU0NjE3MTMwMWQ0NDNhNTVjZmM3NjY3MjY2YzBjODI4YjlhMDVmYmNl
15
+ M2U4NjBjNjI3ZGYwNDM5YjY3MWUzYmNmOWVjYjllNTNlNjkwZDg=
@@ -0,0 +1,2 @@
1
+ require 'notifiably_audited'
2
+ require 'notifiably_audited/adapters/active_record'
@@ -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 'audited/audit'
2
+ require 'notifiably_audited/audit'
3
3
 
4
- module Audited
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 Audited::Audit
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.0.7
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.0.7
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.0.7
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/audited-activerecord.rb
49
- - lib/audited/adapters/active_record.rb
50
- - lib/audited/adapters/active_record/audit.rb
51
- - lib/generators/audited/install_generator.rb
52
- - lib/generators/audited/templates/add_association_to_audits.rb
53
- - lib/generators/audited/templates/add_comment_to_audits.rb
54
- - lib/generators/audited/templates/add_remote_address_to_audits.rb
55
- - lib/generators/audited/templates/install.rb
56
- - lib/generators/audited/templates/rename_association_to_associated.rb
57
- - lib/generators/audited/templates/rename_changes_to_audited_changes.rb
58
- - lib/generators/audited/templates/rename_parent_to_association.rb
59
- - lib/generators/audited/upgrade_generator.rb
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
@@ -1,2 +0,0 @@
1
- require 'audited'
2
- require 'audited/adapters/active_record'
@@ -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'