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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a4223d35e4ed4cde2941078241c7a5296a5ba8c9b5d6e48c5978f4ada0f126ec
4
- data.tar.gz: '08995f020707fd8ed178c7b3b9ac61058d8d7714d365fe8a0081961421da529d'
3
+ metadata.gz: 669f1317b4e0b7a8d207830fea82860c2cfad0fe63598889bb62e9f082428fb0
4
+ data.tar.gz: 7f56526d08dccd86e1acb275f6ab64f69d3e9294eec494d3527c83d76e5e49ca
5
5
  SHA512:
6
- metadata.gz: fd89fa9f16c805f05f8b5e6814ca68e2fcbe581a1bfeb500712f9dd37dc94e6875e528b3cab1a90516846adc9fc3f9bd00ba42702c45956eb04b408fc941a4c5
7
- data.tar.gz: f16a5f2646b4d5a0daadba9b43a05949c06c84a03fda1e0564f25a768486ce877fcf6afa0f612c6e45d8945723f129da7f3435331a6f1d5256bb177bcc866343
6
+ metadata.gz: 1d886872bb892dd3431252cebc62ddd64fc920a6a1a1ed0c718dd53c4a59e2400b1c61c345676bded065523aef0743d1a23b862ca6d0c863054d664c1881586c
7
+ data.tar.gz: 437dcc35b775cb2387717c5177fa5e6380023b0bfb76bfff87d3f0ff151ef2756359fbeefd9ce352eec7a8e29e6a4809a9cfba87bab6320e5898b7430d4c62ee
@@ -46,14 +46,28 @@ jobs:
46
46
  runs-on: ubuntu-latest
47
47
  strategy:
48
48
  matrix:
49
- ruby: [2.7, '3.0']
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.ruby }}
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: 7.0.1
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: 7.0.1
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
@@ -84,6 +84,7 @@ RSpec/VerifiedDoubles:
84
84
  Exclude:
85
85
  - 'spec/lib/geoblacklight/download/hgl_download_spec.rb'
86
86
  - 'spec/lib/geoblacklight/document_presenter_spec.rb'
87
+ - 'spec/lib/geoblacklight/references_spec.rb'
87
88
 
88
89
  Style/SignalException:
89
90
  EnforcedStyle: semantic
@@ -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', '< 6.2'
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 == 6
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
@@ -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
- ActionView::Base.send :include, GeoblacklightHelper
20
- ActionView::Base.send :include, CartoHelper
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,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Geoblacklight
3
- VERSION = '3.6.0'
3
+ VERSION = '3.7.0'
4
4
  end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
  require 'spec_helper'
3
3
 
4
- describe 'catalog/_results_pagination.html.erb', type: :view do
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.html.erb', type: :view do
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.6.0
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-02-09 00:00:00.000000000 Z
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: '6.2'
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: '6.2'
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.1.6
868
+ rubygems_version: 3.2.32
869
869
  signing_key:
870
870
  specification_version: 4
871
871
  summary: A discovery platform for geospatial holdings