geoblacklight_sidecar_images 0.6.0 → 0.6.1

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
  SHA256:
3
- metadata.gz: c72cc3fac516c465122adca9f440104db7d2012588d4562de7c467134208d758
4
- data.tar.gz: 3c6ab484395eb53f804d1c6f916de049be21d3d18f09c9201055a87dcc226009
3
+ metadata.gz: cb7fa4e389ebc3cbdc474e0fba0f409beaae264d5ea1a756e892193880048da2
4
+ data.tar.gz: 46195dded5ba82f358794c853f3137204590f3b644cd9fb7d63063a6d89540f8
5
5
  SHA512:
6
- metadata.gz: 3ce1fe5b78fa81dac0c70f09e73d7cdcdddb06136ccff8c4b75ab80a42dabc205800ddd59ce320f2ac62d8c7916be0b6713f46199d4a8a9f1ca2dba973896dc3
7
- data.tar.gz: cd1e00e5b1781c95a409cbdfd8c73ef62c48c3ada88eda5a640c4cac4e0209627f40aee71a5d178ac9a4e0796f902af10dacf7f44212c9c860c7fa630a5c1d32
6
+ metadata.gz: 3c99095794cb56bbe354cc8b4fe5fb5cafb60f28dc0b75994d2bf1c19f9cd73c85ae3d59c429ff8224e3d9340fa94c81eb8dd85f0f5f093ea693e25e6c2377ac
7
+ data.tar.gz: a0c462867882cc57784bc5aa169714b3cc2f1837dfd037aef147d6f5fe565adbc4f649628fcc4e502f3605803c3b158f3521c8a784a2d26ecb598a560caa8607
@@ -9,9 +9,6 @@ class SolrDocumentSidecar < ApplicationRecord
9
9
  has_many :sidecar_image_transitions, autosave: false, dependent: :destroy
10
10
  has_one_attached :image
11
11
 
12
- # If the sidecar solr document is updated, re-fetch thumbnail image
13
- after_update :reimage, if: :saved_change_to_version?
14
-
15
12
  def document
16
13
  document_type.new document_type.unique_key => document_id
17
14
  end
@@ -39,12 +36,10 @@ class SolrDocumentSidecar < ApplicationRecord
39
36
  Rails.application.routes.url_helpers.rails_blob_path(image, only_path: true)
40
37
  end
41
38
 
42
- private_class_method :initial_state
43
-
44
- private
45
-
46
- def reimage
39
+ def reimage!
47
40
  image.purge if image.attached?
48
41
  GeoblacklightSidecarImages::StoreImageJob.perform_later(document.id)
49
42
  end
43
+
44
+ private_class_method :initial_state
50
45
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GeoblacklightSidecarImages
4
- VERSION = '0.6.0'
4
+ VERSION = '0.6.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geoblacklight_sidecar_images
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Larson
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-08-05 00:00:00.000000000 Z
12
+ date: 2019-08-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: geoblacklight