geoblacklight_sidecar_images 0.6.5 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -0
- data/Gemfile +3 -3
- data/README.md +5 -4
- data/app/models/solr_document_sidecar.rb +4 -1
- data/app/services/geoblacklight_sidecar_images/image_service.rb +2 -2
- data/geoblacklight_sidecar_images.gemspec +4 -3
- data/lib/geoblacklight_sidecar_images/version.rb +1 -1
- data/spec/models/solr_document_sidecar_spec.rb +1 -1
- data/spec/test_app_templates/lib/generators/test_app_generator.rb +1 -1
- metadata +23 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fef925ce1a979f49bc5367e37df753875e9ef4342b818a902ec8e43e5e92e83d
|
4
|
+
data.tar.gz: 40d07638860d73938360e4c4328b17cbaca770e2bba3ae2b0fab1b2497663814
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36a95037c48e9914211e3376f8c33ea5e81dcf5e067cc31b11d92433c382bd6076727a1ab6ecab339dd74c67fa768b96557d40e696d523242410171aa2960649
|
7
|
+
data.tar.gz: '09a55bddc96a1268b7725e4f1cbd4369e9297789a4aed5af037e83854c3094bec3c2958e7c7543f8540dc9428b915ce24324110241a3cab93e882aaca167ea12'
|
data/.rubocop.yml
CHANGED
data/Gemfile
CHANGED
@@ -16,7 +16,7 @@ group :development, :test do
|
|
16
16
|
# Peg simplecov to < 0.8 until this is resolved:
|
17
17
|
# https://github.com/colszowka/simplecov/issues/281
|
18
18
|
gem 'coveralls', require: false
|
19
|
-
gem 'rubocop', '
|
19
|
+
gem 'rubocop', '~> 1.9', require: false
|
20
20
|
end
|
21
21
|
|
22
22
|
# To use a debugger
|
@@ -37,11 +37,11 @@ if File.exist?(file)
|
|
37
37
|
end
|
38
38
|
else
|
39
39
|
Bundler.ui.warn "[EngineCart] Unable to find test application dependencies in #{file}, using placeholder dependencies"
|
40
|
-
gem 'geoblacklight', '
|
40
|
+
gem 'geoblacklight', '>= 2.0'
|
41
41
|
gem 'mini_magick', '~> 4.9.4'
|
42
42
|
gem 'image_processing', '~> 1.6'
|
43
43
|
gem 'mimemagic', '~> 0.3'
|
44
44
|
gem 'statesman', '>= 3.4'
|
45
|
-
gem 'rails', '
|
45
|
+
gem 'rails', '>= 5.2', '< 6.2'
|
46
46
|
end
|
47
47
|
# END ENGINE_CART BLOCK
|
data/README.md
CHANGED
@@ -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](https://github.com/geoblacklight/geoblacklight)
|
24
|
+
* [Ruby on Rails >= 5.2](https://weblog.rubyonrails.org/releases/)
|
25
|
+
* [GeoBlacklight >= 2.0](https://github.com/geoblacklight/geoblacklight)
|
26
26
|
* [ImageMagick](https://github.com/ImageMagick/ImageMagick)
|
27
27
|
|
28
28
|
### Suggested
|
@@ -277,5 +277,6 @@ tail -f log/image_service_development.log
|
|
277
277
|
* ~~0.2.0 - Forgo attaching placeholder imagery~~
|
278
278
|
* ~~0.3.0 - Add Statesman (state machine library)~~
|
279
279
|
* ~~0.4.0 - Rails 5.2 branch / Switch to ActionStorage~~
|
280
|
-
* 0.
|
281
|
-
*
|
280
|
+
* ~~0.7.0 - Rails 5.2+ and 6+ / GeoBlacklight 2+ and 3+ support~~
|
281
|
+
* 0.7.0 to 0.9.0 - Feedback; Improve test coverage; Collect additional real-world issues
|
282
|
+
* 1.0.0 - Final release
|
@@ -3,7 +3,10 @@
|
|
3
3
|
##
|
4
4
|
# Metadata for indexed documents
|
5
5
|
class SolrDocumentSidecar < ApplicationRecord
|
6
|
-
include Statesman::Adapters::ActiveRecordQueries
|
6
|
+
include Statesman::Adapters::ActiveRecordQueries[
|
7
|
+
transition_class: SidecarImageTransition,
|
8
|
+
initial_state: :initialized
|
9
|
+
]
|
7
10
|
|
8
11
|
belongs_to :document, optional: false, polymorphic: true
|
9
12
|
has_many :sidecar_image_transitions, autosave: false, dependent: :destroy
|
@@ -41,8 +41,8 @@ module GeoblacklightSidecarImages
|
|
41
41
|
end
|
42
42
|
|
43
43
|
log_output
|
44
|
-
rescue Exception =>
|
45
|
-
@metadata['exception'] =
|
44
|
+
rescue Exception => e
|
45
|
+
@metadata['exception'] = e.inspect
|
46
46
|
@document.sidecar.image_state.transition_to!(:failed, @metadata)
|
47
47
|
|
48
48
|
log_output
|
@@ -18,12 +18,12 @@ 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', '
|
21
|
+
s.add_dependency 'geoblacklight', '>= 2.0'
|
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'
|
25
25
|
s.add_dependency 'mimemagic', '~> 0.3'
|
26
|
-
s.add_dependency 'rails', '>= 5.2', '< 6'
|
26
|
+
s.add_dependency 'rails', '>= 5.2', '< 6.2'
|
27
27
|
|
28
28
|
s.add_development_dependency 'byebug'
|
29
29
|
s.add_development_dependency 'capybara'
|
@@ -31,8 +31,9 @@ Gem::Specification.new do |s|
|
|
31
31
|
s.add_development_dependency 'database_cleaner', '~> 1.3'
|
32
32
|
s.add_development_dependency 'engine_cart', '~> 2.2'
|
33
33
|
s.add_development_dependency 'rspec-rails', '~> 3.0'
|
34
|
-
s.add_development_dependency 'rubocop', '~>
|
34
|
+
s.add_development_dependency 'rubocop', '~> 1.9'
|
35
35
|
s.add_development_dependency 'rubocop-rspec', '~> 1.30.0'
|
36
|
+
s.add_development_dependency 'rubocop-rails', '~> 2.9'
|
36
37
|
s.add_development_dependency 'selenium-webdriver'
|
37
38
|
s.add_development_dependency 'solr_wrapper', '~> 2.2'
|
38
39
|
s.add_development_dependency 'sprockets', '< 4'
|
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.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Larson
|
@@ -9,20 +9,20 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-02-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: geoblacklight
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - "
|
18
|
+
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: '2.0'
|
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
27
|
version: '2.0'
|
28
28
|
- !ruby/object:Gem::Dependency
|
@@ -90,7 +90,7 @@ dependencies:
|
|
90
90
|
version: '5.2'
|
91
91
|
- - "<"
|
92
92
|
- !ruby/object:Gem::Version
|
93
|
-
version: '6'
|
93
|
+
version: '6.2'
|
94
94
|
type: :runtime
|
95
95
|
prerelease: false
|
96
96
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -100,7 +100,7 @@ dependencies:
|
|
100
100
|
version: '5.2'
|
101
101
|
- - "<"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '6'
|
103
|
+
version: '6.2'
|
104
104
|
- !ruby/object:Gem::Dependency
|
105
105
|
name: byebug
|
106
106
|
requirement: !ruby/object:Gem::Requirement
|
@@ -191,14 +191,14 @@ dependencies:
|
|
191
191
|
requirements:
|
192
192
|
- - "~>"
|
193
193
|
- !ruby/object:Gem::Version
|
194
|
-
version:
|
194
|
+
version: '1.9'
|
195
195
|
type: :development
|
196
196
|
prerelease: false
|
197
197
|
version_requirements: !ruby/object:Gem::Requirement
|
198
198
|
requirements:
|
199
199
|
- - "~>"
|
200
200
|
- !ruby/object:Gem::Version
|
201
|
-
version:
|
201
|
+
version: '1.9'
|
202
202
|
- !ruby/object:Gem::Dependency
|
203
203
|
name: rubocop-rspec
|
204
204
|
requirement: !ruby/object:Gem::Requirement
|
@@ -213,6 +213,20 @@ dependencies:
|
|
213
213
|
- - "~>"
|
214
214
|
- !ruby/object:Gem::Version
|
215
215
|
version: 1.30.0
|
216
|
+
- !ruby/object:Gem::Dependency
|
217
|
+
name: rubocop-rails
|
218
|
+
requirement: !ruby/object:Gem::Requirement
|
219
|
+
requirements:
|
220
|
+
- - "~>"
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: '2.9'
|
223
|
+
type: :development
|
224
|
+
prerelease: false
|
225
|
+
version_requirements: !ruby/object:Gem::Requirement
|
226
|
+
requirements:
|
227
|
+
- - "~>"
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: '2.9'
|
216
230
|
- !ruby/object:Gem::Dependency
|
217
231
|
name: selenium-webdriver
|
218
232
|
requirement: !ruby/object:Gem::Requirement
|
@@ -393,7 +407,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
393
407
|
- !ruby/object:Gem::Version
|
394
408
|
version: '0'
|
395
409
|
requirements: []
|
396
|
-
rubygems_version: 3.1.
|
410
|
+
rubygems_version: 3.1.4
|
397
411
|
signing_key:
|
398
412
|
specification_version: 4
|
399
413
|
summary: Store local copies of remote imagery in GeoBlacklight
|