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 +4 -4
- data/app/controllers/base_indexer/items_controller.rb +7 -0
- data/lib/base_indexer/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d41a59c3e6256abeae9e15ebb5e19ef5f9477a63
|
4
|
+
data.tar.gz: db92a9ebcc9c173a5eccb10b0ed6f302c70e0c6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/base_indexer/version.rb
CHANGED
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
|
+
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-
|
11
|
+
date: 2015-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|