base_indexer 4.1.0 → 4.2.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb2a56c11c92d29fc7d476b070e1b84409a4a769
|
4
|
+
data.tar.gz: 1ab90182afa6a8083fe45b7122e06a9f252c8fc3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a826e9dd54cb5ddf833c366d90de13333905531c459cd9d7fa95bc1a9e2e458d59fe8ba09e94570120b3771bb71ae5a6f5563a38c4d6fb4a6ed1661afea58ee9
|
7
|
+
data.tar.gz: fb3ee9d52ba97f730d61076342007f108fd3a396c1281730942f90ee6e83aa922ebc90172c2b83f113be01fe24a5b0749efddef17977708fd5ab8ee2987786c2
|
@@ -11,7 +11,7 @@ module BaseIndexer
|
|
11
11
|
Rails.logger.debug "Completing indexing #{druid}"
|
12
12
|
rescue StandardError => e
|
13
13
|
Rails.logger.error report_failure request.method_symbol, params, e
|
14
|
-
|
14
|
+
raise
|
15
15
|
end
|
16
16
|
|
17
17
|
def destroy
|
@@ -29,7 +29,7 @@ module BaseIndexer
|
|
29
29
|
Rails.logger.debug "Completing deleting #{druid}"
|
30
30
|
rescue StandardError => e
|
31
31
|
Rails.logger.error report_failure request.method_symbol, params, e
|
32
|
-
|
32
|
+
raise
|
33
33
|
end
|
34
34
|
|
35
35
|
private
|
data/lib/base_indexer/version.rb
CHANGED
@@ -13,8 +13,9 @@ describe BaseIndexer::ItemsController, type: :controller do
|
|
13
13
|
end
|
14
14
|
it 'when something bad happens return a 500' do
|
15
15
|
expect(my_instance).to receive(:index).with('bb1111cc2222', 'SEARCHWORKS' => true).and_raise(StandardError)
|
16
|
-
|
17
|
-
|
16
|
+
expect do
|
17
|
+
patch :update, params: { druid: 'druid:bb1111cc2222', subtarget: 'SEARCHWORKS', use_route: :base_indexer }
|
18
|
+
end.to raise_exception(StandardError)
|
18
19
|
end
|
19
20
|
end
|
20
21
|
describe 'DELETE destroy' do
|