change_logger 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/change_logger.gemspec +4 -2
- data/lib/app/models/change_log.rb +10 -0
- data/lib/generators/templates/create_change_logs.rb +1 -0
- data.tar.gz.sig +1 -0
- metadata +24 -3
- metadata.gz.sig +2 -0
data/Rakefile
CHANGED
@@ -4,7 +4,7 @@ require 'rake'
|
|
4
4
|
require 'echoe'
|
5
5
|
require 'env'
|
6
6
|
|
7
|
-
Echoe.new('change_logger', '0.0.
|
7
|
+
Echoe.new('change_logger', '0.0.5') do |p|
|
8
8
|
p.description = "A gem for tracking what changes and who did it"
|
9
9
|
p.url = "http://github.com/danengle/awesome_tables"
|
10
10
|
p.author = "Dan Engle"
|
data/change_logger.gemspec
CHANGED
@@ -2,10 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{change_logger}
|
5
|
-
s.version = "0.0.
|
5
|
+
s.version = "0.0.5"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Dan Engle"]
|
9
|
+
s.cert_chain = ["/Users/danengle/.ssh/gem-public_cert.pem"]
|
9
10
|
s.date = %q{2011-03-09}
|
10
11
|
s.description = %q{A gem for tracking what changes and who did it}
|
11
12
|
s.email = %q{engle.68 @nospam@ gmail.com}
|
@@ -15,7 +16,8 @@ Gem::Specification.new do |s|
|
|
15
16
|
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Change_logger", "--main", "README.rdoc"]
|
16
17
|
s.require_paths = ["lib"]
|
17
18
|
s.rubyforge_project = %q{change_logger}
|
18
|
-
s.rubygems_version = %q{1.5.
|
19
|
+
s.rubygems_version = %q{1.5.2}
|
20
|
+
s.signing_key = %q{/Users/danengle/.ssh/gem-private_key.pem}
|
19
21
|
s.summary = %q{A gem for tracking what changes and who did it}
|
20
22
|
|
21
23
|
if s.respond_to? :specification_version then
|
@@ -1,4 +1,14 @@
|
|
1
1
|
class ChangeLog < ActiveRecord::Base
|
2
2
|
belongs_to :item, :polymorphic => true
|
3
3
|
validates_presence_of :item_id, :item_type, :attribute_name
|
4
|
+
|
5
|
+
def value
|
6
|
+
# TODO find out if this is the best way to loan an attribute that may
|
7
|
+
# or may not be yaml
|
8
|
+
begin
|
9
|
+
YAML.load(self.new_value)
|
10
|
+
rescue
|
11
|
+
self.new_value
|
12
|
+
end
|
13
|
+
end
|
4
14
|
end
|
data.tar.gz.sig
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
$��a�\7B5��Zc� ��_����w]�G�FC��N��������|g��q䫫�8�n����ԑn�;���Ś&�'?����5�ߛ��
|
metadata
CHANGED
@@ -2,13 +2,34 @@
|
|
2
2
|
name: change_logger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.5
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Dan Engle
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
|
-
cert_chain:
|
11
|
+
cert_chain:
|
12
|
+
- |
|
13
|
+
-----BEGIN CERTIFICATE-----
|
14
|
+
MIIDMjCCAhqgAwIBAgIBADANBgkqhkiG9w0BAQUFADA/MREwDwYDVQQDDAhlbmds
|
15
|
+
ZS42ODEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGRYDY29t
|
16
|
+
MB4XDTEwMTAxMTAwNTI1M1oXDTExMTAxMTAwNTI1M1owPzERMA8GA1UEAwwIZW5n
|
17
|
+
bGUuNjgxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkWA2Nv
|
18
|
+
bTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKf6nWhdrlzcbME1sHRD
|
19
|
+
wbobJ/PfkZZeMmeOI00ij7gtpJ8/GTAHhDSazzNeQUaUJ01+g82QtRyDtXrsosj6
|
20
|
+
vV1HIGAIGESLcOi8vDqnUGZrmY/o3pO7cgYXbHjT9Jn/Uoqt9IXhE97Bf1mYyTvp
|
21
|
+
DznUjccAp+z/8N6xwOEgXqSCfMcfH1zyuurRo13PkJvEKkLAW+PsdA28xovauUXo
|
22
|
+
j2H8+myZLGi5KFeN13UnOo8x0t/McNYkjGaQcVBrIqqX4fle4LNakUfeyJoweXew
|
23
|
+
pAlIjByYtMDQT21fxQLthLayx35nuMXgMWC6+Evzx4U2M7D5GedSxbjZT3uzsHNR
|
24
|
+
pvkCAwEAAaM5MDcwCQYDVR0TBAIwADAdBgNVHQ4EFgQUt/Ysk6uU3ZrPbcD6kshs
|
25
|
+
ghx0mCYwCwYDVR0PBAQDAgSwMA0GCSqGSIb3DQEBBQUAA4IBAQB9gUK+9jS5asdp
|
26
|
+
cpDlY89APPt9dogKZbt7a8KRJu3qlVfcdW+/naxNOQdRtXspdUlsNdYUGJjJnV0K
|
27
|
+
hZ5TzDCKkH09nhpShLnTbwyB2srwRrMAZWpqvD2f6Muh8H5JB1lxe5RE1v1yZH7d
|
28
|
+
gokx0zsfVuIz2je+OeAz6qmfmiFQnG79vvSaQl6XsDdFsNf51Hdizt7fR1vC7MKr
|
29
|
+
5ZNu0jDZxdAIsmHVdvJK7tMZWq8097ZatwhhE9ReA/ZoMBy4WK7k1G32K2AykCk7
|
30
|
+
in+c1BznEvMTAcQnwGUyalIFnODl9PB5tDyYYUJdPCPxe/YxL9csB3jNDxe6HrZK
|
31
|
+
2MS0NMYj
|
32
|
+
-----END CERTIFICATE-----
|
12
33
|
|
13
34
|
date: 2011-03-09 00:00:00 -06:00
|
14
35
|
default_executable:
|
@@ -82,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
103
|
requirements: []
|
83
104
|
|
84
105
|
rubyforge_project: change_logger
|
85
|
-
rubygems_version: 1.5.
|
106
|
+
rubygems_version: 1.5.2
|
86
107
|
signing_key:
|
87
108
|
specification_version: 3
|
88
109
|
summary: A gem for tracking what changes and who did it
|
metadata.gz.sig
ADDED