has_changelogs 0.1.1 → 0.2.0
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/LICENSE.txt +1 -1
- data/README.md +1 -1
- data/lib/has_changelogs.rb +6 -1
- data/lib/has_changelogs/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: 962652aadbf1928e4452b6468ad4a7b5a5a84a74
|
|
4
|
+
data.tar.gz: d4821a5234c522800f90d96b4998fca43dea7cb5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3cd4a65750b6034c858608d543d160f4c8a6d790f4b2cd4ad56ad75a0ed6dc2695b55dc5019e0dc477666fd1315f41b8200bcf95e604efa6cb6fc87291d72d75
|
|
7
|
+
data.tar.gz: 939fd8a171e795051a304edf98879d2398cbe4d736cf031d306a6904b59a73b114b59d5cae48bf12f6d5dc62a63deaca48e8b9784c60d3a1b4b2e215f47e0194
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# HasChangelogs
|
|
2
2
|
|
|
3
|
-
has_changelogs tracks changes on a model and it's associations for applications that need to have change history. The version is however, 0.
|
|
3
|
+
has_changelogs tracks changes on a model and it's associations for applications that need to have change history. The version is however, 0.2.0, so use at your own perril.
|
|
4
4
|
|
|
5
5
|
Especially a generator for the changelog model is missing - see /spec/fixtures/active_record/changelog.rb for it.
|
|
6
6
|
|
data/lib/has_changelogs.rb
CHANGED
|
@@ -81,7 +81,8 @@ module HasChangelogs
|
|
|
81
81
|
defaults = {
|
|
82
82
|
log_scope: log_scope,
|
|
83
83
|
changed_data: log_data,
|
|
84
|
-
log_origin: log_origin
|
|
84
|
+
log_origin: log_origin,
|
|
85
|
+
log_metadata: log_metadata }
|
|
85
86
|
|
|
86
87
|
changelog_association.create(defaults.merge options)
|
|
87
88
|
end
|
|
@@ -102,6 +103,10 @@ module HasChangelogs
|
|
|
102
103
|
self.class.to_s
|
|
103
104
|
end
|
|
104
105
|
|
|
106
|
+
def log_metadata
|
|
107
|
+
{}
|
|
108
|
+
end
|
|
109
|
+
|
|
105
110
|
def changelog_association
|
|
106
111
|
logged_model.send changelog_association_name
|
|
107
112
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: has_changelogs
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Elizabeth Brae
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2015-
|
|
12
|
+
date: 2015-11-20 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: activesupport
|
|
@@ -152,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
152
152
|
version: '0'
|
|
153
153
|
requirements: []
|
|
154
154
|
rubyforge_project:
|
|
155
|
-
rubygems_version: 2.
|
|
155
|
+
rubygems_version: 2.2.2
|
|
156
156
|
signing_key:
|
|
157
157
|
specification_version: 4
|
|
158
158
|
summary: has_changelogs tracks changes on a model and it's associations for applications
|