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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0571b6b0f3068ccb6289134f7d6d814acae5c949
4
- data.tar.gz: a64e46b5f70916311602674d0df6c517b21fb36b
3
+ metadata.gz: e1bc268926d391c67db381bc321124f25fb5b479
4
+ data.tar.gz: 8ddc0106a0274bf68a7729589aab428d21b15455
5
5
  SHA512:
6
- metadata.gz: 80c98ec1d4f10e931e4ab11fa6dd8f4c4398e92f05c4d707c8721192d02886ea4ac8abd7bc7e7bf2b6f5bc744e380d30439ccdaf87e1d3b69c6d700d59b9f966
7
- data.tar.gz: aff3c4a867c6e42bc9a461ebb711cbce135c4bf053b6c427901247c85d0e5e94d7e3cef8de9e0b36e6485e9f9c4ea76c8fa25dc01d57f2d51a289e5f5a690c09
6
+ metadata.gz: dfd4ee64f72e513ec44dd895c7af16982c3e6b453658f704c91f4bcbb80b7ba982cf39b147f288c88490cdd3e94bf6b7703129df295d37cb873c6c5eab714a35
7
+ data.tar.gz: 4b8914edf8212a2addf4ec9690402fb1abbe4bff3c4198c82eda6649035e8981041e292789eabed58f8748d297a94de6b8e8a059e4e8f5ea5b86eedf19ac4073
data/changelog.md CHANGED
@@ -1,3 +1,9 @@
1
+ 7.7.1 - 2018-09-24
2
+ --
3
+ * Fixes issue with the searchable shared examples. They were still assuming the
4
+ old behaviour that had actual defaults.
5
+
6
+
1
7
  7.7.0 - 2018-08-24
2
8
  --
3
9
  * Upgrade Rails from 5.0.1 to 5.0.7.
@@ -1,3 +1,3 @@
1
1
  module Udongo
2
- VERSION = '7.7.0'
2
+ VERSION = '7.7.1'
3
3
  end
@@ -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
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.7.0
4
+ version: 7.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Davy Hellemans