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: c8f6c9fe93cdb8c749639fd26bfe007dcc246231
4
- data.tar.gz: 887ba6c804e3c76781349b152769ea85d4bfa923
3
+ metadata.gz: fb2a56c11c92d29fc7d476b070e1b84409a4a769
4
+ data.tar.gz: 1ab90182afa6a8083fe45b7122e06a9f252c8fc3
5
5
  SHA512:
6
- metadata.gz: df9803e1db13503ace967895f80af1bc5174990c2411527a6fe874692dcd2de02478dad5f0e7f637642b66e765d621767e1b9e00e708ecde8f5395090888cc42
7
- data.tar.gz: a3433db07d6f23d68638e7b095472d4baf6783230538beccab8d8fd217cf9f4b64710b57e912de7a3378e2c9655125be3df03537f6aafda8c97c76922eb62f45
6
+ metadata.gz: a826e9dd54cb5ddf833c366d90de13333905531c459cd9d7fa95bc1a9e2e458d59fe8ba09e94570120b3771bb71ae5a6f5563a38c4d6fb4a6ed1661afea58ee9
7
+ data.tar.gz: fb3ee9d52ba97f730d61076342007f108fd3a396c1281730942f90ee6e83aa922ebc90172c2b83f113be01fe24a5b0749efddef17977708fd5ab8ee2987786c2
@@ -34,7 +34,7 @@ module BaseIndexer
34
34
  rescue Exception => e
35
35
  @status = report_failure request.method_symbol, params, e
36
36
  Rails.logger.error @status
37
- head :internal_server_error
37
+ raise
38
38
  end
39
39
  end
40
40
  end
@@ -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
- head :internal_server_error
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
- head :internal_server_error
32
+ raise
33
33
  end
34
34
 
35
35
  private
@@ -1,3 +1,3 @@
1
1
  module BaseIndexer
2
- VERSION = '4.1.0'
2
+ VERSION = '4.2.0'
3
3
  end
@@ -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
- patch :update, params: { druid: 'druid:bb1111cc2222', subtarget: 'SEARCHWORKS', use_route: :base_indexer }
17
- expect(response.status).to eq 500
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: base_indexer
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.0
4
+ version: 4.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ahmed Alsum