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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb7fa4e389ebc3cbdc474e0fba0f409beaae264d5ea1a756e892193880048da2
|
4
|
+
data.tar.gz: 46195dded5ba82f358794c853f3137204590f3b644cd9fb7d63063a6d89540f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
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.
|
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-
|
12
|
+
date: 2019-08-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: geoblacklight
|