base_indexer 0.3.4 → 0.3.5

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: 5d43ec485bd50d2b86ff8bc037de5ec1cda86f9a
4
- data.tar.gz: bbed2733700d072d5e1951ae39c2ca2b9336c899
3
+ metadata.gz: d41a59c3e6256abeae9e15ebb5e19ef5f9477a63
4
+ data.tar.gz: db92a9ebcc9c173a5eccb10b0ed6f302c70e0c6e
5
5
  SHA512:
6
- metadata.gz: cfa80d9cc75e3eb45bf7708d96501e4a492a9fd214ec01c76fe9dbe6c864b802b57cfcc7ef352b45cf1bf5cfd5beeab7d515456a30dd7aa62f8c4f842b9e1e5f
7
- data.tar.gz: ad6f7849ed01761426863eac47e4c439edf140b597c94374c67360296d3b81e015666212e8197c9d0951114c6d39fa7a8f9a04304775b552f382fcd25b68e0cb
6
+ metadata.gz: dd8880cbaf1f2563144d61d5b9d84d499c05a24ebf33e4105f2dc59b608280dca73522bd9dd9ddd8666c308394d8cde0ddac22bef2db9948a6e677acff910663
7
+ data.tar.gz: 26393488cd109a74a68e816b1bef06bb2f91a1c59c8352fc686f6442db4cfdc565e47b9113a6a7a07070600789638d39054f2ab77783847ac0739aa95a314ca5
@@ -7,14 +7,17 @@ module BaseIndexer
7
7
  def new
8
8
  begin
9
9
  druid = params[:druid]
10
+ Rails.logger.debug "Receiving indexing #{druid}"
10
11
  targets = params[:subtargets]
11
12
 
12
13
  indexer = BaseIndexer.indexer_class.constantize.new
13
14
  indexer.index druid, targets
14
15
  @status = report_success
15
16
  render status: 200
17
+ Rails.logger.debug "Completing indexing #{druid}"
16
18
  rescue Exception => e
17
19
  @status = report_failure request.method_symbol, params, e
20
+ Rails.logger.error @status
18
21
  render status: 202
19
22
  end
20
23
  end
@@ -22,12 +25,16 @@ module BaseIndexer
22
25
  def destroy
23
26
  begin
24
27
  druid = params[:druid]
28
+ Rails.logger.debug "Receiving deleting #{druid}"
29
+
25
30
  indexer = BaseIndexer.indexer_class.constantize.new
26
31
  indexer.delete druid
27
32
  @status= report_success
28
33
  render status: 200
34
+ Rails.logger.debug "Completing deleting #{druid}"
29
35
  rescue Exception => e
30
36
  @status = report_failure request.method_symbol, params, e
37
+ Rails.logger.error @status
31
38
  render status: 202
32
39
  end
33
40
  end
@@ -1,3 +1,3 @@
1
1
  module BaseIndexer
2
- VERSION = "0.3.4"
2
+ VERSION = "0.3.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: base_indexer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ahmed Alsum
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-17 00:00:00.000000000 Z
11
+ date: 2015-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails