easy_tags 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8287fdecc7f7ef46be4d02d25db0781471ce1bd039a4e6f0ed357d4ff9ba0a46
4
- data.tar.gz: 2d3e23375449f4c229948825e6aadf8194a76bd47d00a480050140124db0fa10
3
+ metadata.gz: bff1e7a35c7c1093f9b32c7e92bc5ec1a77fec676d06e463b22827498aa58383
4
+ data.tar.gz: 1e042bd6a98e526f227aa7e98642e014e8505e7d126a4981c537fdc83240f9b0
5
5
  SHA512:
6
- metadata.gz: eef88df3c81e4f130f1a59aaad9c6c7ea74752bc8e4bdc6279f8ee716be7fd27d7f576c7c132aca38a3d3e93aa3052dc2b838a3e9f505be08a41225cbe7636da
7
- data.tar.gz: 1302a9207d12f0980cca36d93f01595d1293456f4d2a8a28427a63857a236ad78aae83daffd4b8881c28dc2c856eadc999808cb7a2b2e0641521609f3e0651ff
6
+ metadata.gz: 67d3dab3a3d9d65f77e3510abce3c7a3467a300726e0d109548d32c7076db64bdf3965b6044e4f7c03faaae1c2d6c0a0a13c6de04717b8ebb10df3e3f5d63c05
7
+ data.tar.gz: 5869e18439ad14d8f2f0c818e7e719907df1c70bb4db7c307db05a0b4ffd0dc4bea206e72c1d34ee6a5e8eb5ce2018dd49a794b7737b60aa9da1bc8e3b42908f
@@ -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.4...HEAD
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
@@ -1,3 +1,3 @@
1
1
  module EasyTags
2
- VERSION = '0.2.4'.freeze
2
+ VERSION = '0.2.5'.freeze
3
3
  end
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
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-08 00:00:00.000000000 Z
11
+ date: 2020-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord