triannon 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/triannon/annotation.rb +3 -2
- data/lib/triannon/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: c2ebd733067b7971cd2548562f807c5feed3dc31
|
4
|
+
data.tar.gz: 6809922b340468bc2201c67d7f4c45656a24ffad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2701115eac46a00f11d06484c403da5c30c5a4f05bea5188cc2a80b4cdec54e693b0f5bbb15b882f2327e3e1cc494f6a4fd0c3e6c2a842beb3ad48ad1c1a282b
|
7
|
+
data.tar.gz: 808a6fa21bca5e4bf5a5426c3a7860af1a8134dfb58c7cddb76368351017e8b71a876007085805fecdbbf00a165a351cca508c982a96b038f7d99f4cd1553cee
|
@@ -102,12 +102,13 @@ protected
|
|
102
102
|
# to be certain we are in sync, and to get the anno id within the graph, reload
|
103
103
|
# the graph from Trianon storage
|
104
104
|
graph_from_storage = Triannon::LdpLoader.load id
|
105
|
-
|
105
|
+
solr_hash = graph_from_storage.solr_hash
|
106
|
+
solr_writer.add(solr_hash) if solr_hash && solr_hash.size > 0
|
106
107
|
end
|
107
108
|
|
108
109
|
# Delete annotation from Solr
|
109
110
|
def solr_delete
|
110
|
-
solr_writer.delete(id)
|
111
|
+
solr_writer.delete(id) if id
|
111
112
|
end
|
112
113
|
|
113
114
|
private
|
data/lib/triannon/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: triannon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Beer
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-02-
|
13
|
+
date: 2015-02-10 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|