activitylog 1.6.0 → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/VERSION +1 -1
- data/activitylog.gemspec +4 -4
- data/lib/activity_log/controller_activity_logger.rb +5 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZDUyYWNhODI5YTQ4OWVhMWQxZTc1YWFmYTZjMDdkNzExYTk5MTAwOA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NzBmZDRkMzhmOTAzYzhlMTkwNjEyYzgwYjE1M2MxNjI2YTg4ODFlMw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZTgxZmIwZGJhYzgwZDlmOWVmOGU4Y2Y1NTYyM2NlZjk2YzhkYTQ2ZGQyZmIz
|
10
|
+
YzdmNjBmOTNiZTY3YzIzOTc0NjFlMWRjNGEwYzkyOTExMDQ2YTIxN2FlYjJi
|
11
|
+
N2M0MmQ0NWJkMjM0NDkyOWMzMDVjNWVlZjkzNzlhMjI5MDIwMDk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YzBjNjA4MGQ0ZTllYWFjMGI3YzY3ZjY3OWFmZTVjYjc1YTZjMWIwZjM2NWQ1
|
14
|
+
OGRiZDRjYmY0NTQ2Y2MzMWI0ZGRjNmYwMGQ3M2Q4MjA0OTg5MWYyY2ZlYjE1
|
15
|
+
NzVjNzkwNjU5Njk4ZGUzOGVkNDJlZjVkOTIxZmRhMzAwMWM5MmQ=
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.7.0
|
data/activitylog.gemspec
CHANGED
@@ -2,15 +2,15 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: activitylog 1.
|
5
|
+
# stub: activitylog 1.7.0 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "activitylog"
|
9
|
-
s.version = "1.
|
9
|
+
s.version = "1.7.0"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.authors = ["Jon Erik Suero", "Elan Dubrofsky"]
|
13
|
-
s.date = "
|
13
|
+
s.date = "2015-01-14"
|
14
14
|
s.description = "Coming soon"
|
15
15
|
s.email = "jonerikdsuero@gmail.com"
|
16
16
|
s.extra_rdoc_files = [
|
@@ -39,7 +39,7 @@ Gem::Specification.new do |s|
|
|
39
39
|
s.homepage = "http://github.com/JonErikDSuero/activitylog"
|
40
40
|
s.licenses = ["MIT"]
|
41
41
|
s.require_paths = ["lib"]
|
42
|
-
s.rubygems_version = "2.1.
|
42
|
+
s.rubygems_version = "2.1.11"
|
43
43
|
s.summary = "Provides Activity Log functionality to your code"
|
44
44
|
|
45
45
|
if s.respond_to? :specification_version then
|
@@ -13,7 +13,11 @@ module ControllerActivityLogger
|
|
13
13
|
object = (options[:class] || controller_name).classify.constantize.find_by_id(params[options[:key] || :id])
|
14
14
|
return unless object.present?
|
15
15
|
return unless object.respond_to? :activity_logs
|
16
|
-
|
16
|
+
|
17
|
+
data = params.deep_dup
|
18
|
+
data[:password] = "[FILTERED]" if data[:password].present?
|
19
|
+
|
20
|
+
ModelActivityLogger.current_parent_activity_id = object.activity_logs.create(user_id: current_user.try(:id), action: "#{data[:controller]}/#{data[:action]}", data: data, action_type: 'controller').id
|
17
21
|
end
|
18
22
|
|
19
23
|
# CLASS METHODS (self.)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activitylog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jon Erik Suero
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2015-01-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: shoulda
|
@@ -98,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
98
98
|
version: '0'
|
99
99
|
requirements: []
|
100
100
|
rubyforge_project:
|
101
|
-
rubygems_version: 2.1.
|
101
|
+
rubygems_version: 2.1.11
|
102
102
|
signing_key:
|
103
103
|
specification_version: 4
|
104
104
|
summary: Provides Activity Log functionality to your code
|