geoblacklight 3.6.0 → 3.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +18 -42
- data/.rubocop.yml +1 -0
- data/geoblacklight.gemspec +1 -1
- data/lib/generators/geoblacklight/assets_generator.rb +1 -1
- data/lib/geoblacklight/engine.rb +4 -2
- data/lib/geoblacklight/version.rb +1 -1
- data/spec/views/catalog/_results_pagination.html.erb_spec.rb +1 -1
- data/spec/views/catalog/_show_downloads.html.erb_spec.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 669f1317b4e0b7a8d207830fea82860c2cfad0fe63598889bb62e9f082428fb0
|
4
|
+
data.tar.gz: 7f56526d08dccd86e1acb275f6ab64f69d3e9294eec494d3527c83d76e5e49ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d886872bb892dd3431252cebc62ddd64fc920a6a1a1ed0c718dd53c4a59e2400b1c61c345676bded065523aef0743d1a23b862ca6d0c863054d664c1881586c
|
7
|
+
data.tar.gz: 437dcc35b775cb2387717c5177fa5e6380023b0bfb76bfff87d3f0ff151ef2756359fbeefd9ce352eec7a8e29e6a4809a9cfba87bab6320e5898b7430d4c62ee
|
data/.github/workflows/ruby.yml
CHANGED
@@ -46,14 +46,28 @@ jobs:
|
|
46
46
|
runs-on: ubuntu-latest
|
47
47
|
strategy:
|
48
48
|
matrix:
|
49
|
-
|
49
|
+
ruby_version: ['3.0', 2.7]
|
50
|
+
rails_version: [6.1]
|
51
|
+
bundler_version: [2.1.1]
|
52
|
+
faraday_version: ['>= 2', '~> 1.0']
|
53
|
+
include:
|
54
|
+
- ruby_version: 2.6
|
55
|
+
rails_version: 6.1
|
56
|
+
bundler_version: 2.1.1
|
57
|
+
faraday_version: '~> 1.0'
|
58
|
+
- ruby_version: '3.0'
|
59
|
+
rails_version: '7.0.2.2'
|
60
|
+
bundler_version: 2.1.1
|
61
|
+
faraday_version: '>= 2'
|
62
|
+
|
63
|
+
name: test ruby ${{ matrix.ruby_version }} / rails ${{ matrix.rails_version }} / faraday ${{ matrix.faraday_version }}
|
50
64
|
steps:
|
51
65
|
- uses: actions/checkout@v2
|
52
66
|
|
53
67
|
- name: Set up Ruby
|
54
68
|
uses: ruby/setup-ruby@v1
|
55
69
|
with:
|
56
|
-
ruby-version: ${{ matrix.
|
70
|
+
ruby-version: ${{ matrix.ruby_version }}
|
57
71
|
|
58
72
|
- name: Create Solr container
|
59
73
|
run: docker run -d -p 8983:8983 geoblacklight/solr:8.9-v1.0.0 server/scripts/ci-start.sh
|
@@ -64,7 +78,7 @@ jobs:
|
|
64
78
|
- name: Install dependencies
|
65
79
|
run: bundle _2.1.1_ install
|
66
80
|
env:
|
67
|
-
rails_version:
|
81
|
+
rails_version: ${{ matrix.rails_version }}
|
68
82
|
|
69
83
|
- name: Load config into solr
|
70
84
|
run: |
|
@@ -76,7 +90,7 @@ jobs:
|
|
76
90
|
- name: Run tests
|
77
91
|
run: bundle exec rake ci
|
78
92
|
env:
|
79
|
-
rails_version:
|
93
|
+
rails_version: ${{ matrix.rails_version }}
|
80
94
|
ENGINE_CART_RAILS_OPTIONS: '--skip-git --skip-listen --skip-spring --skip-keeps --skip-action-cable --skip-coffee --skip-test'
|
81
95
|
SOLR_URL: http://solr:SolrRocks@localhost:8983/solr/blacklight-core
|
82
96
|
|
@@ -85,41 +99,3 @@ jobs:
|
|
85
99
|
with:
|
86
100
|
name: coverage
|
87
101
|
path: coverage/
|
88
|
-
|
89
|
-
test_rails6_1:
|
90
|
-
runs-on: ubuntu-latest
|
91
|
-
strategy:
|
92
|
-
matrix:
|
93
|
-
ruby: [2.6]
|
94
|
-
steps:
|
95
|
-
- uses: actions/checkout@v2
|
96
|
-
|
97
|
-
- name: Set up Ruby
|
98
|
-
uses: ruby/setup-ruby@v1
|
99
|
-
with:
|
100
|
-
ruby-version: ${{ matrix.ruby }}
|
101
|
-
|
102
|
-
- name: Create Solr container
|
103
|
-
run: docker run -d -p 8983:8983 geoblacklight/solr:8.9-v1.0.0 server/scripts/ci-start.sh
|
104
|
-
|
105
|
-
- name: Install bundler
|
106
|
-
run: gem install bundler -v 2.1.1
|
107
|
-
|
108
|
-
- name: Install dependencies
|
109
|
-
run: bundle _2.1.1_ install
|
110
|
-
env:
|
111
|
-
RAILS_VERSION: 6.1.4.4
|
112
|
-
|
113
|
-
- name: Load config into solr
|
114
|
-
run: |
|
115
|
-
cd solr/conf
|
116
|
-
zip -1 -r solr_config.zip ./*
|
117
|
-
curl -H "Content-type:application/octet-stream" --data-binary @solr_config.zip "http://solr:SolrRocks@127.0.0.1:8983/solr/admin/configs?action=UPLOAD&name=blacklight"
|
118
|
-
curl -H 'Content-type: application/json' http://solr:SolrRocks@127.0.0.1:8983/api/collections/ -d '{create: {name: blacklight-core, config: blacklight, numShards: 1}}'
|
119
|
-
|
120
|
-
- name: Run tests
|
121
|
-
run: bundle exec rake ci
|
122
|
-
env:
|
123
|
-
RAILS_VERSION: 6.1.4.4
|
124
|
-
ENGINE_CART_RAILS_OPTIONS: '--skip-git --skip-listen --skip-spring --skip-keeps --skip-action-cable --skip-coffee --skip-test'
|
125
|
-
SOLR_URL: http://solr:SolrRocks@localhost:8983/solr/blacklight-core
|
data/.rubocop.yml
CHANGED
data/geoblacklight.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.require_paths = ['lib']
|
20
20
|
spec.required_rubygems_version = '>= 2.5.2'
|
21
21
|
|
22
|
-
spec.add_dependency 'rails', '>= 5.2.4', '<
|
22
|
+
spec.add_dependency 'rails', '>= 5.2.4', '< 7.1'
|
23
23
|
spec.add_dependency 'blacklight', '~> 7.8'
|
24
24
|
spec.add_dependency 'config'
|
25
25
|
spec.add_dependency 'faraday', '~> 1.0'
|
@@ -17,7 +17,7 @@ module Geoblacklight
|
|
17
17
|
def add_javascript
|
18
18
|
copy_file 'assets/geoblacklight.js', 'app/assets/javascripts/geoblacklight.js'
|
19
19
|
|
20
|
-
if Rails.version.to_i
|
20
|
+
if Rails.version.to_i >= 6
|
21
21
|
append_to_file 'app/assets/javascripts/application.js',
|
22
22
|
"\n// Required by GeoBlacklight\n//= require geoblacklight"
|
23
23
|
end
|
data/lib/geoblacklight/engine.rb
CHANGED
@@ -16,8 +16,10 @@ module Geoblacklight
|
|
16
16
|
# GeoblacklightHelper is needed by all helpers, so we inject it
|
17
17
|
# into action view base here.
|
18
18
|
initializer 'geoblacklight.helpers' do
|
19
|
-
|
20
|
-
|
19
|
+
config.after_initialize do
|
20
|
+
ActionView::Base.send :include, GeoblacklightHelper
|
21
|
+
ActionView::Base.send :include, CartoHelper
|
22
|
+
end
|
21
23
|
end
|
22
24
|
|
23
25
|
config.to_prepare do
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
require 'spec_helper'
|
3
3
|
|
4
|
-
describe 'catalog/_results_pagination
|
4
|
+
describe 'catalog/_results_pagination', type: :view do
|
5
5
|
it 'will have a #pagination wrapping div' do
|
6
6
|
allow(view).to receive_messages(show_pagination?: false)
|
7
7
|
render
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
require 'spec_helper'
|
3
3
|
|
4
|
-
describe 'catalog/_show_downloads
|
4
|
+
describe 'catalog/_show_downloads', type: :view do
|
5
5
|
context 'document is downloadable' do
|
6
6
|
let(:document) { instance_double(SolrDocument) }
|
7
7
|
before do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: geoblacklight
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Graves
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2022-
|
14
|
+
date: 2022-06-23 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rails
|
@@ -22,7 +22,7 @@ dependencies:
|
|
22
22
|
version: 5.2.4
|
23
23
|
- - "<"
|
24
24
|
- !ruby/object:Gem::Version
|
25
|
-
version: '
|
25
|
+
version: '7.1'
|
26
26
|
type: :runtime
|
27
27
|
prerelease: false
|
28
28
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: 5.2.4
|
33
33
|
- - "<"
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: '
|
35
|
+
version: '7.1'
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: blacklight
|
38
38
|
requirement: !ruby/object:Gem::Requirement
|
@@ -865,7 +865,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
865
865
|
- !ruby/object:Gem::Version
|
866
866
|
version: 2.5.2
|
867
867
|
requirements: []
|
868
|
-
rubygems_version: 3.
|
868
|
+
rubygems_version: 3.2.32
|
869
869
|
signing_key:
|
870
870
|
specification_version: 4
|
871
871
|
summary: A discovery platform for geospatial holdings
|