geoblacklight_sidecar_images 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/README.md +45 -6
- data/geoblacklight_sidecar_images.gemspec +2 -3
- data/lib/geoblacklight_sidecar_images/version.rb +1 -1
- metadata +9 -23
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc93c6c4a8f6d2660d5b56b672c6cf1c335a3b2f
|
4
|
+
data.tar.gz: 2e0427f83e4e4a4046de0717ade4bf356ed08779
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9693ebfde32f4c886734d1a42aa65b2027cec8093d9d3720bfb2903642d4cf036ab5a830a280234852ff3038d7fe29076672bb9dc34a9ee5ca616957a890438d
|
7
|
+
data.tar.gz: ed64611169594cfbdd8e83f8823a3df3f5ac31caa49d21293d32f276cb0ba9dbd07935da0055ff88b29a623a306942aa5a5f268714c937f4dc514718565ac95b
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -11,30 +11,69 @@ This GeoBlacklight plugin helps capture remote images from geo web services and
|
|
11
11
|
|
12
12
|
## Requirements
|
13
13
|
|
14
|
-
* [Blacklight](https://github.com/projectblacklight/blacklight/)
|
15
14
|
* [GeoBlacklight](https://github.com/geoblacklight/geoblacklight)
|
16
15
|
* [ImageMagick](https://github.com/ImageMagick/ImageMagick)
|
17
16
|
|
18
17
|
## Installation
|
19
18
|
|
20
|
-
|
19
|
+
### Existing GeoBlacklight Instance
|
21
20
|
|
22
|
-
|
21
|
+
Add the gem to your Gemfile.
|
23
22
|
|
24
|
-
|
25
|
-
|
26
|
-
|
23
|
+
```ruby
|
24
|
+
gem 'geoblacklight_sidecar_images'
|
25
|
+
```
|
26
|
+
|
27
|
+
Run the generator.
|
28
|
+
|
29
|
+
```bash
|
30
|
+
$ bin/rails generate geoblacklight_sidecar_images:install
|
31
|
+
```
|
32
|
+
|
33
|
+
Run the database migration.
|
34
|
+
|
35
|
+
```bash
|
36
|
+
$ bin/rails db:migrate
|
37
|
+
```
|
38
|
+
|
39
|
+
### New GeoBlacklight Instance
|
40
|
+
|
41
|
+
Create a new GeoBlacklight instance with the GBLSI code
|
42
|
+
|
43
|
+
```bash
|
44
|
+
$ rails new app-name -m https://raw.githubusercontent.com/ewlarson/geoblacklight_sidecar_images/master/template.rb
|
45
|
+
|
46
|
+
```
|
27
47
|
|
28
48
|
### Ingest Test Documents
|
49
|
+
|
50
|
+
```bash
|
29
51
|
rake geoblacklight_sidecar_images:sample_data:ingest['<FULL_PATH_TO>/geoblacklight_sidecar_images/spec/fixtures/files']
|
52
|
+
```
|
30
53
|
|
31
54
|
### Cache images
|
32
55
|
|
33
56
|
#### All Thumbnails
|
57
|
+
|
58
|
+
```bash
|
34
59
|
rake geoblacklight_sidecar_images:images:precache_all
|
60
|
+
```
|
35
61
|
|
36
62
|
#### Individual Thumbnail
|
63
|
+
|
64
|
+
```bash
|
37
65
|
rake geoblacklight_sidecar_images:images:precache_id['minnesota-iiif-jpg-83f4648a-125c-4000-a12f-aba2b432e7cd']
|
66
|
+
```
|
67
|
+
|
68
|
+
## Development
|
69
|
+
|
70
|
+
```bash
|
71
|
+
bundle exec rake ci
|
72
|
+
cd .internal_test_app/
|
73
|
+
rake geoblacklight:server
|
74
|
+
```
|
75
|
+
|
76
|
+
Now you'll have an instance of GBLSI running. Follow the rake tasks above to ingest some data and harvest thumbnails.
|
38
77
|
|
39
78
|
## TODOs
|
40
79
|
|
@@ -18,10 +18,9 @@ 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 '
|
22
|
-
s.add_dependency 'carrierwave'
|
21
|
+
s.add_dependency 'carrierwave', '~> 1.2'
|
23
22
|
s.add_dependency 'geoblacklight', '~> 1.7'
|
24
|
-
s.add_dependency 'mini_magick'
|
23
|
+
s.add_dependency 'mini_magick', '~> 4.8'
|
25
24
|
s.add_dependency 'rails', '>= 4.2', '< 6'
|
26
25
|
|
27
26
|
s.add_development_dependency 'byebug'
|
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.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Larson
|
@@ -11,34 +11,20 @@ bindir: bin
|
|
11
11
|
cert_chain: []
|
12
12
|
date: 2018-03-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
|
-
- !ruby/object:Gem::Dependency
|
15
|
-
name: aasm
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
-
requirements:
|
18
|
-
- - ">="
|
19
|
-
- !ruby/object:Gem::Version
|
20
|
-
version: '0'
|
21
|
-
type: :runtime
|
22
|
-
prerelease: false
|
23
|
-
version_requirements: !ruby/object:Gem::Requirement
|
24
|
-
requirements:
|
25
|
-
- - ">="
|
26
|
-
- !ruby/object:Gem::Version
|
27
|
-
version: '0'
|
28
14
|
- !ruby/object:Gem::Dependency
|
29
15
|
name: carrierwave
|
30
16
|
requirement: !ruby/object:Gem::Requirement
|
31
17
|
requirements:
|
32
|
-
- - "
|
18
|
+
- - "~>"
|
33
19
|
- !ruby/object:Gem::Version
|
34
|
-
version: '
|
20
|
+
version: '1.2'
|
35
21
|
type: :runtime
|
36
22
|
prerelease: false
|
37
23
|
version_requirements: !ruby/object:Gem::Requirement
|
38
24
|
requirements:
|
39
|
-
- - "
|
25
|
+
- - "~>"
|
40
26
|
- !ruby/object:Gem::Version
|
41
|
-
version: '
|
27
|
+
version: '1.2'
|
42
28
|
- !ruby/object:Gem::Dependency
|
43
29
|
name: geoblacklight
|
44
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -57,16 +43,16 @@ dependencies:
|
|
57
43
|
name: mini_magick
|
58
44
|
requirement: !ruby/object:Gem::Requirement
|
59
45
|
requirements:
|
60
|
-
- - "
|
46
|
+
- - "~>"
|
61
47
|
- !ruby/object:Gem::Version
|
62
|
-
version: '
|
48
|
+
version: '4.8'
|
63
49
|
type: :runtime
|
64
50
|
prerelease: false
|
65
51
|
version_requirements: !ruby/object:Gem::Requirement
|
66
52
|
requirements:
|
67
|
-
- - "
|
53
|
+
- - "~>"
|
68
54
|
- !ruby/object:Gem::Version
|
69
|
-
version: '
|
55
|
+
version: '4.8'
|
70
56
|
- !ruby/object:Gem::Dependency
|
71
57
|
name: rails
|
72
58
|
requirement: !ruby/object:Gem::Requirement
|