udongo 7.0.2 → 7.0.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1e840d9bb18fba2da849e3c6ec733ab2c6f8fd88
4
- data.tar.gz: a354bc901b32d59bec7010afbfed60ce5eef60ec
3
+ metadata.gz: 760068c29cefa3281a36afe519fe496f9d9b0ab4
4
+ data.tar.gz: fa730393a268d5fb203b2f199a3e5fd801857155
5
5
  SHA512:
6
- metadata.gz: 4e93e8f31f091510d4cf03d597727db9342cc57ba31e6e9e79d8fee47f8b896756625a3b1f12269fdc5500e0e10639ab959bfa3f5e9d211d347d1b00705f020b
7
- data.tar.gz: c72873d2fda0032e8139ccbe587d09900e21e0fe76f8067299f891add9570ba3a7da60a2b2603ba5d672778b6076552196ea7c92d8150c63c102760e33b0ecbc
6
+ metadata.gz: 74f5c08aeaf25b290fff2bab4dedb203cbb01601452cb3d406526afb19df703a44cc02966227da5a052b4e35b839e9945f31562bccfbf95906e01f037e067ecb
7
+ data.tar.gz: 565873b1690e332fe74641a5327cec40cc3559ab144e915e6b957978804c984bacaa04d33a72463b400b2360743ee947a6615c333fd646dd0cc65ec177cab4d9
@@ -10,7 +10,7 @@ module Concerns
10
10
  locales = Meta.where(
11
11
  sluggable_type: self.class.to_s,
12
12
  sluggable_id: self.id
13
- ).where('slug IS NOT NULL OR slug != ""').pluck(:locale).uniq
13
+ ).where('slug IS NOT NULL AND slug != ""').pluck(:locale).uniq
14
14
 
15
15
  update_column :seo_locales, locales
16
16
 
@@ -13,7 +13,8 @@ module Concerns
13
13
  storable_type: self.class.to_s,
14
14
  storable_id: self.id,
15
15
  name: self.class.translatable_fields_list
16
- ).pluck(:collection).uniq
16
+ ).where('value IS NOT NULL AND value != "---''\n" AND value != ""').
17
+ pluck(:collection).uniq
17
18
 
18
19
  update_column :locales, locales
19
20
  end
data/changelog.md CHANGED
@@ -1,3 +1,11 @@
1
+ 7.0.3 - 2017-10-03
2
+ --
3
+ * Bugfix: the list of seo_locales now only contains locales that actually have
4
+ a slug.
5
+ * Bugfix: the list of locales now only contains locales that actually have some
6
+ sort of translation value.
7
+
8
+
1
9
  7.0.2 - 2017-09-21
2
10
  --
3
11
  * Fix issue with the locale duplication class not being found.
@@ -1,3 +1,3 @@
1
1
  module Udongo
2
- VERSION = '7.0.2'
2
+ VERSION = '7.0.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: udongo
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.2
4
+ version: 7.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Davy Hellemans
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-09-21 00:00:00.000000000 Z
12
+ date: 2017-10-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails