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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ba1a1f91829594f2fbeb8e4bd61922cc8c97bd25
4
- data.tar.gz: a9adfc5f66aa751fd7772b3e94e2eeb7bcc448ad
3
+ metadata.gz: c2ebd733067b7971cd2548562f807c5feed3dc31
4
+ data.tar.gz: 6809922b340468bc2201c67d7f4c45656a24ffad
5
5
  SHA512:
6
- metadata.gz: 86d1fa8358fad5e023fd4996830b9c08fe249a86c3df56a8cd81f8957acd69dfdf2f7082f60cece97dc0677abc6f9a3c25326dc7ac233d46405b86ba517d39ec
7
- data.tar.gz: 66ec8e8824ce0c734d6e025625f8ed86c0749848bd00f895c5a7c0a44d631320ac2267c9319e1b8b7be6700c8811bd265b8e6a17ac3dd47d0f75af010cfcd74b
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
- solr_writer.add(graph_from_storage.solr_hash)
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
@@ -1,3 +1,3 @@
1
1
  module Triannon
2
- VERSION = "0.5.2"
2
+ VERSION = "0.5.3"
3
3
  end
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.2
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-09 00:00:00.000000000 Z
13
+ date: 2015-02-10 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails