udongo 7.7.0 → 7.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/changelog.md +6 -0
- data/lib/udongo/version.rb +1 -1
- data/spec/support/concerns/searchable.rb +0 -23
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e1bc268926d391c67db381bc321124f25fb5b479
|
4
|
+
data.tar.gz: 8ddc0106a0274bf68a7729589aab428d21b15455
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dfd4ee64f72e513ec44dd895c7af16982c3e6b453658f704c91f4bcbb80b7ba982cf39b147f288c88490cdd3e94bf6b7703129df295d37cb873c6c5eab714a35
|
7
|
+
data.tar.gz: 4b8914edf8212a2addf4ec9690402fb1abbe4bff3c4198c82eda6649035e8981041e292789eabed58f8748d297a94de6b8e8a059e4e8f5ea5b86eedf19ac4073
|
data/changelog.md
CHANGED
data/lib/udongo/version.rb
CHANGED
@@ -53,29 +53,6 @@ shared_examples_for :searchable do
|
|
53
53
|
instance
|
54
54
|
end
|
55
55
|
|
56
|
-
it 'creates search indices for every translation' do
|
57
|
-
instance = create_instance!
|
58
|
-
expect(instance.search_indices.find_by(locale: :nl, name: 'foo').value).to eq 'baz nl'
|
59
|
-
expect(instance.search_indices.find_by(locale: :fr, name: 'foo').value).to eq 'baz fr'
|
60
|
-
expect(instance.search_indices.find_by(locale: :en, name: 'foo').value).to eq 'baz en'
|
61
|
-
end
|
62
|
-
|
63
|
-
it 'saves existing search indices for every translation' do
|
64
|
-
instance = create_instance!
|
65
|
-
|
66
|
-
Udongo.config.i18n.app.locales.each do |l|
|
67
|
-
t = instance.translation(l.to_sym)
|
68
|
-
t.foo = "foobar #{l}"
|
69
|
-
t.bar = 'barfoo'
|
70
|
-
end
|
71
|
-
|
72
|
-
instance.save
|
73
|
-
|
74
|
-
expect(instance.search_indices.find_by(locale: :nl, name: 'foo').value).to eq 'foobar nl'
|
75
|
-
expect(instance.search_indices.find_by(locale: :fr, name: 'foo').value).to eq 'foobar fr'
|
76
|
-
expect(instance.search_indices.find_by(locale: :en, name: 'foo').value).to eq 'foobar en'
|
77
|
-
end
|
78
|
-
|
79
56
|
it 'does not copy translatable fields that are not in searchable fields' do
|
80
57
|
instance = create_instance!
|
81
58
|
expect(instance.search_indices.find_by(locale: :nl, name: 'bar')).to be nil
|