simple_audit 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/app/helpers/simple_audit_helper.rb +2 -2
- data/simple_audit.gemspec +5 -5
- metadata +6 -13
data/Rakefile
CHANGED
@@ -43,7 +43,7 @@ begin
|
|
43
43
|
gemspec.email = "gabriel.tarnovan@cubus.ro"
|
44
44
|
gemspec.homepage = "http://github.com/gtarnovan/simple_audit"
|
45
45
|
gemspec.authors = ["Gabriel Tarnovan"]
|
46
|
-
gemspec.version = "0.0.
|
46
|
+
gemspec.version = "0.0.3"
|
47
47
|
gemspec.files = gem_files.to_a
|
48
48
|
|
49
49
|
gemspec.rubyforge_project = 'simple_audit'
|
@@ -14,13 +14,13 @@ module SimpleAuditHelper
|
|
14
14
|
if older_audit.present?
|
15
15
|
audit.delta(older_audit).collect do |k, v|
|
16
16
|
"\n" +
|
17
|
-
|
17
|
+
audited_model.class.human_attribute_name(k) +
|
18
18
|
":" +
|
19
19
|
content_tag(:span, v.last, :class => 'current') +
|
20
20
|
content_tag(:span, v.first, :class => 'previous')
|
21
21
|
end
|
22
22
|
else
|
23
|
-
audit.changes.reject{|k, v| v.blank?}.collect {|k, v| "\n#{
|
23
|
+
audit.changes.reject{|k, v| v.blank?}.collect {|k, v| "\n#{audited_model.class.human_attribute_name(k)}: #{v}"}
|
24
24
|
end
|
25
25
|
end
|
26
26
|
end
|
data/simple_audit.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{simple_audit}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Gabriel Tarnovan"]
|
12
|
-
s.date = %q{2010-06-
|
12
|
+
s.date = %q{2010-06-07}
|
13
13
|
s.email = %q{gabriel.tarnovan@cubus.ro}
|
14
14
|
s.extra_rdoc_files = [
|
15
15
|
"LICENSE",
|
@@ -35,11 +35,11 @@ Gem::Specification.new do |s|
|
|
35
35
|
s.rdoc_options = ["--charset=UTF-8"]
|
36
36
|
s.require_paths = ["lib"]
|
37
37
|
s.rubyforge_project = %q{simple_audit}
|
38
|
-
s.rubygems_version = %q{1.3.
|
38
|
+
s.rubygems_version = %q{1.3.5}
|
39
39
|
s.summary = %q{Simple auditing solution for ActiveRecord models}
|
40
40
|
s.test_files = [
|
41
|
-
"test/
|
42
|
-
"test/
|
41
|
+
"test/test_helper.rb",
|
42
|
+
"test/simple_audit_test.rb"
|
43
43
|
]
|
44
44
|
|
45
45
|
if s.respond_to? :specification_version then
|
metadata
CHANGED
@@ -1,12 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_audit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
segments:
|
6
|
-
- 0
|
7
|
-
- 0
|
8
|
-
- 2
|
9
|
-
version: 0.0.2
|
4
|
+
version: 0.0.3
|
10
5
|
platform: ruby
|
11
6
|
authors:
|
12
7
|
- Gabriel Tarnovan
|
@@ -14,7 +9,7 @@ autorequire:
|
|
14
9
|
bindir: bin
|
15
10
|
cert_chain: []
|
16
11
|
|
17
|
-
date: 2010-06-
|
12
|
+
date: 2010-06-07 00:00:00 +03:00
|
18
13
|
default_executable:
|
19
14
|
dependencies: []
|
20
15
|
|
@@ -55,23 +50,21 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
55
50
|
requirements:
|
56
51
|
- - ">="
|
57
52
|
- !ruby/object:Gem::Version
|
58
|
-
segments:
|
59
|
-
- 0
|
60
53
|
version: "0"
|
54
|
+
version:
|
61
55
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
62
56
|
requirements:
|
63
57
|
- - ">="
|
64
58
|
- !ruby/object:Gem::Version
|
65
|
-
segments:
|
66
|
-
- 0
|
67
59
|
version: "0"
|
60
|
+
version:
|
68
61
|
requirements: []
|
69
62
|
|
70
63
|
rubyforge_project: simple_audit
|
71
|
-
rubygems_version: 1.3.
|
64
|
+
rubygems_version: 1.3.5
|
72
65
|
signing_key:
|
73
66
|
specification_version: 3
|
74
67
|
summary: Simple auditing solution for ActiveRecord models
|
75
68
|
test_files:
|
76
|
-
- test/simple_audit_test.rb
|
77
69
|
- test/test_helper.rb
|
70
|
+
- test/simple_audit_test.rb
|