notifiably_audited-activerecord 1.0.10 → 2.0.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,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- MWM2ZGMxZWVmYTE2M2E1ODcwYjQ4NmZmZjIyZmVlM2Y3NzIyOGNhYQ==
5
- data.tar.gz: !binary |-
6
- ZDQ0NGJjZjU2NmE1Mjc4YTcyN2QyN2Y1NjhkZjhhNzI4NWVmYTk2Mw==
2
+ SHA1:
3
+ metadata.gz: 7bd784fd852e7320598ef462524c1455c6d3783a
4
+ data.tar.gz: f4b3644822166180c3ffc5bd7f351acc95656498
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- ZTcyMjBlMzQ5ZjZjZDllNTkzOWM0M2JjZTlmMGM3YjkxMzM3YmQ4MjM3M2Fm
10
- NjFiOTdkMWM2YTNjZTE3OTQ0ZGZjYTllNDIzNDBjY2RkODhkOGYzZTMwZjZi
11
- YWQ2NmYwNjU4YjE2MTEwYzYxZTRkNDNlODUxOWY0ZWNkNjI0YWI=
12
- data.tar.gz: !binary |-
13
- NTM3MDBhMWE0ZjAzNmY5YWFhYjRlNDBlZmMyNzY5MGI3YTc0NGQ5YmY5NzEx
14
- NWQxMDk4NTU3YzY2YTFlODhiMDc5OGI2NzhmYjBhNTk5ODhiM2U4ZDUyMDhk
15
- ZTUzMWIyNTc0YTNmMGNhMDkwYTk1ZGY2YjZlOGY0YTNmMWQ2YzM=
6
+ metadata.gz: b27ca8092667bc3aa75bdadb53ca829d81aaa1ed43aae735ee16f36d174ac7af3426118e388fda6a06a10757f0f7c51d9d092f6e1863d6a10d9cff8dfa6ca01f
7
+ data.tar.gz: 0599152602b1cd532ab2ca527643443fbf06edca8661de34dd520e849c26811eecbf9c43da33a3b3bd6308d51d7e3b95cce826f48cf7cda491b7d4cd6a0b02c3
@@ -0,0 +1,2 @@
1
+ require 'audited'
2
+ require 'audited/adapters/active_record'
@@ -0,0 +1,15 @@
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'
@@ -1,7 +1,7 @@
1
1
  require 'set'
2
- require 'notifiably_audited/audit'
2
+ require 'audited/audit'
3
3
 
4
- module NotifiablyAudited
4
+ module Audited
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 NotifiablyAudited
14
14
  # * <tt>created_at</tt>: Time that the change was performed
15
15
  #
16
16
  class Audit < ::ActiveRecord::Base
17
- include NotifiablyAudited::Audit
17
+ include Audited::Audit
18
18
 
19
19
 
20
20
  serialize :audited_changes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: notifiably_audited-activerecord
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.10
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - senthil kumar
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-26 00:00:00.000000000 Z
11
+ date: 2018-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: notifiably_audited
@@ -16,26 +16,26 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 1.0.10
19
+ version: 2.0.0
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: 1.0.10
26
+ version: 2.0.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: activerecord
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '3.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '3.0'
41
41
  description: Log all changes to your ActiveRecord models
@@ -45,18 +45,18 @@ extensions: []
45
45
  extra_rdoc_files: []
46
46
  files:
47
47
  - LICENSE
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
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
60
60
  homepage: ''
61
61
  licenses:
62
62
  - MIT
@@ -67,19 +67,18 @@ require_paths:
67
67
  - lib
68
68
  required_ruby_version: !ruby/object:Gem::Requirement
69
69
  requirements:
70
- - - ! '>='
70
+ - - ">="
71
71
  - !ruby/object:Gem::Version
72
72
  version: '0'
73
73
  required_rubygems_version: !ruby/object:Gem::Requirement
74
74
  requirements:
75
- - - ! '>='
75
+ - - ">="
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0'
78
78
  requirements: []
79
79
  rubyforge_project:
80
- rubygems_version: 2.2.2
80
+ rubygems_version: 2.6.12
81
81
  signing_key:
82
82
  specification_version: 4
83
83
  summary: ''
84
84
  test_files: []
85
- has_rdoc:
@@ -1,2 +0,0 @@
1
- require 'notifiably_audited'
2
- require 'notifiably_audited/adapters/active_record'
@@ -1,15 +0,0 @@
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'