geoblacklight_sidecar_images 0.7.0 → 0.8.0

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: fef925ce1a979f49bc5367e37df753875e9ef4342b818a902ec8e43e5e92e83d
4
- data.tar.gz: 40d07638860d73938360e4c4328b17cbaca770e2bba3ae2b0fab1b2497663814
3
+ metadata.gz: 65f48652a713c5542469d6de4abe02385e821303f0393feaa15b3198c041a8bc
4
+ data.tar.gz: ebc3d1bf2b4b7aa8feb6e2ceb9932ef4330ee14c09ab54c57d904a405b02e36b
5
5
  SHA512:
6
- metadata.gz: 36a95037c48e9914211e3376f8c33ea5e81dcf5e067cc31b11d92433c382bd6076727a1ab6ecab339dd74c67fa768b96557d40e696d523242410171aa2960649
7
- data.tar.gz: '09a55bddc96a1268b7725e4f1cbd4369e9297789a4aed5af037e83854c3094bec3c2958e7c7543f8540dc9428b915ce24324110241a3cab93e882aaca167ea12'
6
+ metadata.gz: 0b82873f4f53d32f225b6f1dd51e7c0f48616ede7f9023db89918414bcc14994e8b25314f13eef5c5da66d768a2f4ec1fce10e359d3e5d5ae7ce69cba4603310
7
+ data.tar.gz: 715b8fc09e049231f4606f246aa22ae299e79b478a37185b56038264d58081f42b1c3d4ebe130a0627ed41cc77bc91cd8b646f1565ca55991e2035906c4a9e74
data/.solr_wrapper.yml ADDED
@@ -0,0 +1,5 @@
1
+ validate: false
2
+ download_dir: tmp/solr
3
+ collection:
4
+ dir: solr/conf/
5
+ name: blacklight-core
data/Gemfile CHANGED
@@ -40,8 +40,8 @@ else
40
40
  gem 'geoblacklight', '>= 2.0'
41
41
  gem 'mini_magick', '~> 4.9.4'
42
42
  gem 'image_processing', '~> 1.6'
43
- gem 'mimemagic', '~> 0.3'
44
43
  gem 'statesman', '>= 3.4'
45
- gem 'rails', '>= 5.2', '< 6.2'
44
+ gem 'marcel', '>= 1.0'
45
+ gem 'rails', '>= 5.2.5', '< 6.2'
46
46
  end
47
47
  # END ENGINE_CART BLOCK
data/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  [![Build Status](https://travis-ci.org/geoblacklight/geoblacklight_sidecar_images.svg?branch=master)](https://travis-ci.org/geoblacklight/geoblacklight_sidecar_images)
4
4
  [![Maintainability](https://api.codeclimate.com/v1/badges/88c14165af5459963011/maintainability)](https://codeclimate.com/github/geoblacklight/geoblacklight_sidecar_images/maintainability)
5
5
  [![Coverage Status](https://coveralls.io/repos/github/geoblacklight/geoblacklight_sidecar_images/badge.svg?branch=master)](https://coveralls.io/github/geoblacklight/geoblacklight_sidecar_images?branch=master)
6
- [![Gem Version](https://badge.fury.io/rb/geoblacklight_sidecar_images.svg)](https://badge.fury.io/rb/geoblacklight_sidecar_images)
6
+ [![rubygem](https://badgen.net/rubygems/v/geoblacklight_sidecar_images)](https://badgen.net/rubygems/v/geoblacklight_sidecar_images)
7
7
 
8
8
  Store local copies of remote imagery in GeoBlacklight.
9
9
 
@@ -21,8 +21,8 @@ This GeoBlacklight plugin captures remote images from geographic web services an
21
21
 
22
22
  ## Requirements
23
23
 
24
- * [Ruby on Rails >= 5.2](https://weblog.rubyonrails.org/releases/)
25
- * [GeoBlacklight >= 2.0](https://github.com/geoblacklight/geoblacklight)
24
+ * [Ruby on Rails >= 5.2.5](https://weblog.rubyonrails.org/releases/)
25
+ * [GeoBlacklight >= 3.3](https://github.com/geoblacklight/geoblacklight)
26
26
  * [ImageMagick](https://github.com/ImageMagick/ImageMagick)
27
27
 
28
28
  ### Suggested
data/Rakefile CHANGED
@@ -1,7 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'rails'
3
4
  begin
4
5
  require 'bundler/setup'
6
+ require 'bundler/gem_tasks'
5
7
  rescue LoadError
6
8
  puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
7
9
  end
@@ -150,17 +150,15 @@ module GeoblacklightSidecarImages
150
150
  # have not been set beyond the default, then a thumbnail url from
151
151
  # dct references is used instead.
152
152
  def image_url
153
- @image_url ||= begin
154
- if gblsi_thumbnail_uri
155
- gblsi_thumbnail_uri
156
- elsif restricted_scanned_map?
157
- image_reference
158
- elsif restricted_wms_layer? && !geoserver_credentials_valid?
159
- image_reference
160
- else
161
- service_url || image_reference
162
- end
163
- end
153
+ @image_url ||= if gblsi_thumbnail_uri
154
+ gblsi_thumbnail_uri
155
+ elsif restricted_scanned_map?
156
+ image_reference
157
+ elsif restricted_wms_layer? && !geoserver_credentials_valid?
158
+ image_reference
159
+ else
160
+ service_url || image_reference
161
+ end
164
162
  end
165
163
 
166
164
  # Checks if the document is Local restriced access and is a scanned map.
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
18
18
  s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
19
19
  s.require_paths = ['lib']
20
20
 
21
- s.add_dependency 'geoblacklight', '>= 2.0'
21
+ s.add_dependency 'geoblacklight', '>= 3.3'
22
22
  s.add_dependency 'mini_magick', '~> 4.9.4'
23
23
  s.add_dependency 'image_processing', '~> 1.6'
24
24
  s.add_dependency 'statesman', '>= 3.4'
@@ -35,6 +35,6 @@ Gem::Specification.new do |s|
35
35
  s.add_development_dependency 'rubocop-rspec', '~> 1.30.0'
36
36
  s.add_development_dependency 'rubocop-rails', '~> 2.9'
37
37
  s.add_development_dependency 'selenium-webdriver'
38
- s.add_development_dependency 'solr_wrapper', '~> 2.2'
38
+ s.add_development_dependency 'solr_wrapper', '~> 3.1'
39
39
  s.add_development_dependency 'sprockets', '< 4'
40
40
  end
@@ -1,5 +1,5 @@
1
1
  <% # header bar for doc items in index view -%>
2
- <%= content_tag :div, class: 'documentHeader row', data: { layer_id: document.id, bbox: document.bounding_box_as_wsen } do %>
2
+ <%= content_tag :div, class: 'documentHeader row', data: { layer_id: document.id, geom: document.geometry.geojson } do %>
3
3
  <div class='status-icons'>
4
4
  <%= render partial: 'header_icons', locals: { document: document } %>
5
5
  </div>
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GeoblacklightSidecarImages
4
- VERSION = '0.7.0'
4
+ VERSION = '0.8.0'
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.7.0
4
+ version: 0.8.0
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: 2021-02-09 00:00:00.000000000 Z
12
+ date: 2021-03-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: geoblacklight
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: '2.0'
20
+ version: '3.3'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - ">="
26
26
  - !ruby/object:Gem::Version
27
- version: '2.0'
27
+ version: '3.3'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: mini_magick
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -247,14 +247,14 @@ dependencies:
247
247
  requirements:
248
248
  - - "~>"
249
249
  - !ruby/object:Gem::Version
250
- version: '2.2'
250
+ version: '3.1'
251
251
  type: :development
252
252
  prerelease: false
253
253
  version_requirements: !ruby/object:Gem::Requirement
254
254
  requirements:
255
255
  - - "~>"
256
256
  - !ruby/object:Gem::Version
257
- version: '2.2'
257
+ version: '3.1'
258
258
  - !ruby/object:Gem::Dependency
259
259
  name: sprockets
260
260
  requirement: !ruby/object:Gem::Requirement
@@ -280,6 +280,7 @@ files:
280
280
  - ".gitignore"
281
281
  - ".rspec"
282
282
  - ".rubocop.yml"
283
+ - ".solr_wrapper.yml"
283
284
  - ".travis.yml"
284
285
  - Gemfile
285
286
  - LICENSE