audited-activejob 0.0.1 → 0.0.2
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 +4 -4
- data/lib/audited/active_job.rb +4 -4
- data/lib/audited/active_job/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 576bfe13efb911b347c85b2ed3c6858f3cd8d49e
|
|
4
|
+
data.tar.gz: 3b14f6dd0efef7c91fb1cc8c495d8cfd34113241
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 030974c609ce59e53aa506d5539f7e8ad9b9e1ebe55a2bf476fff3b897d2bc66cefbc642ced2f5b79bcf63d46c9022b184d338a0a52ca6f94b60b157244e8ec0
|
|
7
|
+
data.tar.gz: dcade07a4bd6ca4085fcb921d8f522be3ee79b3547715cd0449fa67b0602101f5b700a5c619b970e07392946d2c8410694b814b611c81e2f0b5909d3f70f8f33
|
data/lib/audited/active_job.rb
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
module Audited
|
|
2
2
|
module ActiveJob
|
|
3
3
|
def self.included(base)
|
|
4
|
-
base.send :attr_reader, :
|
|
4
|
+
base.send :attr_reader, :audit_user
|
|
5
5
|
|
|
6
|
-
base.send :around_perform do |
|
|
6
|
+
base.send :around_perform do |_job, block|
|
|
7
7
|
options = arguments.extract_options!
|
|
8
|
-
@
|
|
8
|
+
@audit_user = options.delete(:audit_user)
|
|
9
9
|
arguments << options unless options.empty?
|
|
10
10
|
|
|
11
|
-
Audited.audit_class.as_user(
|
|
11
|
+
Audited.audit_class.as_user(audit_user) do
|
|
12
12
|
block.call
|
|
13
13
|
end
|
|
14
14
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: audited-activejob
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mark Rebec
|
|
@@ -66,7 +66,7 @@ dependencies:
|
|
|
66
66
|
- - ">="
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
68
|
version: '0'
|
|
69
|
-
description: Pass a
|
|
69
|
+
description: Pass a user through to your active_jobs and associate it with any generated
|
|
70
70
|
audits
|
|
71
71
|
email:
|
|
72
72
|
- mark@markrebec.com
|
|
@@ -100,7 +100,7 @@ rubyforge_project:
|
|
|
100
100
|
rubygems_version: 2.4.8
|
|
101
101
|
signing_key:
|
|
102
102
|
specification_version: 4
|
|
103
|
-
summary: Pass a
|
|
103
|
+
summary: Pass a user through to your active_jobs and associate it with any generated
|
|
104
104
|
audits
|
|
105
105
|
test_files:
|
|
106
106
|
- spec/spec_helper.rb
|