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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MDU3NTY3MmYyNmUwNTFlOWM4NjhmYzM4NDY1NGNlZmFjNjdjYzE4Nw==
4
+ ZDUyYWNhODI5YTQ4OWVhMWQxZTc1YWFmYTZjMDdkNzExYTk5MTAwOA==
5
5
  data.tar.gz: !binary |-
6
- MWM2MjZlOTVlNDU1ZWMyMDdkMDgyMjA3M2NjZDk4ZGYzNTg1YzQ5Mw==
6
+ NzBmZDRkMzhmOTAzYzhlMTkwNjEyYzgwYjE1M2MxNjI2YTg4ODFlMw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NmQ1NGRiMDY2YzZiZmQ0MzRhYzM2OThkNDcxNzdmNWRkM2QwN2UzNTI3NGJl
10
- MTdkNGY5ODQ5ZjZjNGZmZjY1Y2NlZjdjYmUwOWFhZjI0ZWIxYTg1ODAxNjY3
11
- ZjYyMjc5ZjZlZjRiOTIzZDJjMjI0MDA2ZmVlYjZmZGQ5MjFmNjY=
9
+ ZTgxZmIwZGJhYzgwZDlmOWVmOGU4Y2Y1NTYyM2NlZjk2YzhkYTQ2ZGQyZmIz
10
+ YzdmNjBmOTNiZTY3YzIzOTc0NjFlMWRjNGEwYzkyOTExMDQ2YTIxN2FlYjJi
11
+ N2M0MmQ0NWJkMjM0NDkyOWMzMDVjNWVlZjkzNzlhMjI5MDIwMDk=
12
12
  data.tar.gz: !binary |-
13
- YWNjZWY1N2U1MzU1M2YxM2RhZDdjZGRhMGQ1ZDIxMTQzZGJiNDE2NmRmMDQx
14
- Y2Y0MDgzYTAwZTg4YzdmODIxNDA0MjRhNzU4MzJkYWJlZGQ0MTJiNTZlMTdi
15
- YWQ3ZDhmYmFiMjY5ZTdiYjI0NGJiMGNlZGRmNzFmZjc4M2NhMTg=
13
+ YzBjNjA4MGQ0ZTllYWFjMGI3YzY3ZjY3OWFmZTVjYjc1YTZjMWIwZjM2NWQ1
14
+ OGRiZDRjYmY0NTQ2Y2MzMWI0ZGRjNmYwMGQ3M2Q4MjA0OTg5MWYyY2ZlYjE1
15
+ NzVjNzkwNjU5Njk4ZGUzOGVkNDJlZjVkOTIxZmRhMzAwMWM5MmQ=
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.6.0
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.6.0 ruby lib
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.6.0"
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 = "2013-11-11"
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.10"
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
- ModelActivityLogger.current_parent_activity_id = object.activity_logs.create(user_id: current_user.try(:id), action: "#{params[:controller]}/#{params[:action]}", data: params, action_type: 'controller').id
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.6.0
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: 2013-11-11 00:00:00.000000000 Z
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.10
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