paper_trail-association_tracking 0.0.1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -5
- data/README.md +0 -5
- data/lib/paper_trail-association_tracking.rb +2 -3
- data/lib/paper_trail_association_tracking/config.rb +2 -2
- data/lib/paper_trail_association_tracking/frameworks/active_record/models/paper_trail/version_association.rb +1 -1
- data/lib/paper_trail_association_tracking/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e55c15952e70d133273bb7e64458a3064124070c64228667ec1e160f6b0213a2
|
4
|
+
data.tar.gz: 755381e69ab58abb9d7167040ad237f384e2cd7c940c15b72c4d7da9454432a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80e0609842fb80eed4e07e57e568d79a4721fcd09d510d6b5033338570963b8989026e96c97e5647599b613a1f0639db6d2211612d41898d349ccd4a3de548e3
|
7
|
+
data.tar.gz: 991d02c97096a303e445f166a49d0110dda689781ef9bd3f3fcb85083b6d79503e6988e6499e1d873e67345a06265ce5695b92ef30b983bc2627d7aaf72fccbb
|
data/CHANGELOG.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
#
|
1
|
+
# CHANGELOG
|
2
2
|
|
3
|
-
This project follows [semver 2.0.0](http://semver.org/spec/v2.0.0.html) and
|
4
|
-
recommendations of [keepachangelog.com](http://keepachangelog.com/).
|
3
|
+
This project follows [semver 2.0.0](http://semver.org/spec/v2.0.0.html) and
|
4
|
+
the recommendations of [keepachangelog.com](http://keepachangelog.com/).
|
5
5
|
|
6
|
-
## 0.
|
6
|
+
## 1.0.0
|
7
7
|
|
8
|
-
- [
|
8
|
+
- [PT #1070](https://github.com/paper-trail-gem/paper_trail/issues/1070), [#2](https://github.com/westonganger/paper_trail-association_tracking/issues/2) - Extracted from paper_trail gem in v9.2
|
data/README.md
CHANGED
@@ -14,11 +14,6 @@ A little history lesson, discussed as early as 2009, and first implemented in la
|
|
14
14
|
tracking was part of PT core until 2018 as an experimental feature and was use at your own risk. This gem now
|
15
15
|
maintains a list of known issues and we hope the community can help remove some of them via PR's.
|
16
16
|
|
17
|
-
## TODO
|
18
|
-
|
19
|
-
- Continue removing most-non association specs
|
20
|
-
- Add consolidated list of paper trail plugins to paper_trail core readme
|
21
|
-
|
22
17
|
## Table of Contents
|
23
18
|
|
24
19
|
<!-- toc -->
|
@@ -11,11 +11,11 @@ require "paper_trail_association_tracking/version_concern"
|
|
11
11
|
|
12
12
|
module PaperTrailAssociationTracking
|
13
13
|
def self.version
|
14
|
-
VERSION
|
14
|
+
VERSION
|
15
15
|
end
|
16
16
|
|
17
17
|
def self.gem_version
|
18
|
-
::Gem::Version.new(VERSION
|
18
|
+
::Gem::Version.new(VERSION)
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
@@ -53,7 +53,6 @@ module PaperTrail
|
|
53
53
|
end
|
54
54
|
end
|
55
55
|
|
56
|
-
|
57
56
|
# Require frameworks
|
58
57
|
if defined?(::Rails)
|
59
58
|
# Rails module is sometimes defined by gems like rails-html-sanitizer
|
@@ -14,10 +14,10 @@ module PaperTrailAssociationTracking
|
|
14
14
|
def association_reify_error_behaviour
|
15
15
|
@association_reify_error_behaviour ||= "error"
|
16
16
|
end
|
17
|
-
|
17
|
+
|
18
18
|
def track_associations=(val)
|
19
19
|
@track_associations = !!val
|
20
|
-
end
|
20
|
+
end
|
21
21
|
|
22
22
|
def track_associations?
|
23
23
|
!!@track_associations
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
require "paper_trail_association_tracking/version_association_concern"
|
4
4
|
|
5
|
-
module
|
5
|
+
module PaperTrail
|
6
6
|
# This is the default ActiveRecord model provided by PaperTrail. Most simple
|
7
7
|
# applications will only use this and its partner, `Version`, but it is
|
8
8
|
# possible to sub-class, extend, or even do without this model entirely.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paper_trail-association_tracking
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Weston Ganger
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2018-06-
|
13
|
+
date: 2018-06-05 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: appraisal
|