easy_tags 0.2.4 → 0.2.5
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/CHANGELOG.md +7 -1
- data/lib/easy_tags/taggable_context.rb +1 -3
- data/lib/easy_tags/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: bff1e7a35c7c1093f9b32c7e92bc5ec1a77fec676d06e463b22827498aa58383
|
|
4
|
+
data.tar.gz: 1e042bd6a98e526f227aa7e98642e014e8505e7d126a4981c537fdc83240f9b0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 67d3dab3a3d9d65f77e3510abce3c7a3467a300726e0d109548d32c7076db64bdf3965b6044e4f7c03faaae1c2d6c0a0a13c6de04717b8ebb10df3e3f5d63c05
|
|
7
|
+
data.tar.gz: 5869e18439ad14d8f2f0c818e7e719907df1c70bb4db7c307db05a0b4ffd0dc4bea206e72c1d34ee6a5e8eb5ce2018dd49a794b7737b60aa9da1bc8e3b42908f
|
data/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.2.5] - 2020-06-09
|
|
10
|
+
### Fixed
|
|
11
|
+
- Added association cache invalidation after tag changes are persisted
|
|
12
|
+
(fixes issue with explicit reload required to refresh `context_tags`)
|
|
13
|
+
|
|
9
14
|
## [0.2.4] - 2020-06-09
|
|
10
15
|
### Fixed
|
|
11
16
|
- Fixed tags eager loading
|
|
@@ -29,7 +34,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
29
34
|
## [0.1.0] - 2019-07-15
|
|
30
35
|
Initial release
|
|
31
36
|
|
|
32
|
-
[Unreleased]: https://github.com/iiwo/easy_tagscompare/v0.2.
|
|
37
|
+
[Unreleased]: https://github.com/iiwo/easy_tagscompare/v0.2.5...HEAD
|
|
38
|
+
[0.2.5]: https://github.com/iiwo/easy_tags/compare/v0.2.4...v0.2.5
|
|
33
39
|
[0.2.4]: https://github.com/iiwo/easy_tags/compare/v0.2.3...v0.2.4
|
|
34
40
|
[0.2.3]: https://github.com/iiwo/easy_tags/compare/v0.2.2...v0.2.3
|
|
35
41
|
[0.2.2]: https://github.com/iiwo/easy_tags/compare/v0.2.1...v0.2.2
|
|
@@ -47,6 +47,7 @@ module EasyTags
|
|
|
47
47
|
def refresh
|
|
48
48
|
@tags = nil
|
|
49
49
|
@persisted_tags = nil
|
|
50
|
+
tags_association.reset
|
|
50
51
|
end
|
|
51
52
|
|
|
52
53
|
# Add tags to the tag_list. Duplicate or blank tags will be ignored.
|
|
@@ -90,9 +91,6 @@ module EasyTags
|
|
|
90
91
|
end
|
|
91
92
|
|
|
92
93
|
def preloaded_persisted_tags
|
|
93
|
-
return TagList.new(tags_association.reload.map(&:name)) if @preloaded
|
|
94
|
-
|
|
95
|
-
@preloaded = true
|
|
96
94
|
TagList.new(tags_association.map(&:name))
|
|
97
95
|
end
|
|
98
96
|
end
|
data/lib/easy_tags/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: easy_tags
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Iwo Dziechciarow
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-06-
|
|
11
|
+
date: 2020-06-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activerecord
|