curate-indexer 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4efb0ef59837d864f981f3924400657282a1cfb4
|
4
|
+
data.tar.gz: fb912271efb90be771c2e06e07c0f91f2a3ff78f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5096d42e187b4949a974e49ccdb08abaf16835f0c9348e75c209bf6153badbffc086927f2bddb6966fd2af9c5192c6977f0940447ce6e47885f39142a5fdf320
|
7
|
+
data.tar.gz: edc5dc5a0c7098abce0db3349880d4a309e4da8d24c9be5ed7671a0ea9bedbaa9a705324bb2903f0652e222e87c5c399998d3bae3867f027aa0cecb932f54f50
|
@@ -44,7 +44,7 @@ module Curate
|
|
44
44
|
end
|
45
45
|
|
46
46
|
# @api public
|
47
|
-
# @return
|
47
|
+
# @return Hash - the attributes written to the indexing layer
|
48
48
|
def self.write_document_attributes_to_index_layer(attributes = {})
|
49
49
|
Index.write_document(attributes)
|
50
50
|
end
|
@@ -8,7 +8,16 @@ module Curate
|
|
8
8
|
attr_reader :pid
|
9
9
|
def initialize(pid)
|
10
10
|
@pid = pid
|
11
|
-
super "Possible graph cycle discovered related to PID
|
11
|
+
super "Possible graph cycle discovered related to PID=#{pid}."
|
12
|
+
end
|
13
|
+
end
|
14
|
+
# A wrapper exception that includes the original exception and the pid
|
15
|
+
class ReindexingError < RuntimeError
|
16
|
+
attr_reader :pid, :original_exception
|
17
|
+
def initialize(pid, original_exception)
|
18
|
+
@pid = pid
|
19
|
+
@original_exception = original_exception
|
20
|
+
super "Error PID=#{pid} - #{original_exception}"
|
12
21
|
end
|
13
22
|
end
|
14
23
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: curate-indexer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Friesen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|