blacklight 7.13.0 → 7.13.1

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: cc85c2e67bf13d0e9c856d53d545896d372495fc242fc3b69d43fdd738681af2
4
- data.tar.gz: 573ca993f0519fdb53560d8c14443dc5dd6f092753ba2bcee7a933595234b957
3
+ metadata.gz: c8fb80459866144384607d4a10514e767df6a91c2b4479056ff249e036872b92
4
+ data.tar.gz: f21dceeab6bc00811799379c7082af587a019101d570071baa98fa9f1aeb9886
5
5
  SHA512:
6
- metadata.gz: d08af97a62b30095f7c66ac49f829d0085ca7e2faa1c7cd96d961834031e4fab8eaf3ffb785c8e2d30c970837a27d2fdb0c03e75258ff8ff3f8e43571697948f
7
- data.tar.gz: a18de70871cd90a83341a55ebf039b3fb007bd2b49dd27f0786415dc68a21115ddfbcc06a72c57e6043ed7e0a62b18f7cc0913b9e9cbb7eaec7d1d54eaa89106
6
+ metadata.gz: 9613e0b9fbfbf15765fd21175c942f3f65c208cfdcaf8ded9158520a44ea507896e7419a53085071badf1e0452071b81d99cd2013cbdb727c85f944e87524fc1
7
+ data.tar.gz: 684cbee2ba2125ac367445bad68ac18d1d2d437c724ad0f0c6a3ac2648705a933e1edb6631193499b4836035e3c6da5b3528a988e555a34b3f1b529b90429e86
@@ -0,0 +1,89 @@
1
+ # This workflow uses actions that are not certified by GitHub.
2
+ # They are provided by a third-party and are governed by
3
+ # separate terms of service, privacy policy, and support
4
+ # documentation.
5
+ # This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
6
+ # For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
7
+
8
+ name: CI
9
+
10
+ on:
11
+ push:
12
+ branches: [ master ]
13
+ pull_request:
14
+ branches: [ master ]
15
+
16
+ jobs:
17
+ lint:
18
+ runs-on: ubuntu-latest
19
+ steps:
20
+ - uses: actions/checkout@v2
21
+ - name: Set up Ruby
22
+ uses: ruby/setup-ruby@v1
23
+ with:
24
+ ruby-version: 2.7
25
+ - name: Install dependencies
26
+ run: bundle install
27
+ - name: Run linter
28
+ run: bundle exec rake rubocop
29
+ test:
30
+ runs-on: ubuntu-latest
31
+ strategy:
32
+ matrix:
33
+ ruby: [2.6, 2.7]
34
+ steps:
35
+ - uses: actions/checkout@v2
36
+ - name: Set up Ruby
37
+ uses: ruby/setup-ruby@v1
38
+ with:
39
+ ruby-version: ${{ matrix.ruby }}
40
+ - name: Install dependencies
41
+ run: bundle install
42
+ - name: Run tests
43
+ run: bundle exec rake ci
44
+ env:
45
+ ENGINE_CART_RAILS_OPTIONS: '--skip-git --skip-listen --skip-spring --skip-keeps --skip-action-cable --skip-coffee --skip-test'
46
+ test_rails5:
47
+ runs-on: ubuntu-latest
48
+ strategy:
49
+ matrix:
50
+ ruby: [2.5, 2.6]
51
+ steps:
52
+ - uses: actions/checkout@v2
53
+ - name: Set up Ruby
54
+ uses: ruby/setup-ruby@v1
55
+ with:
56
+ ruby-version: ${{ matrix.ruby }}
57
+ - name: Install dependencies
58
+ run: bundle install
59
+ env:
60
+ RAILS_VERSION: 5.2.4.2
61
+ - name: Run tests
62
+ run: bundle exec rake ci
63
+ env:
64
+ RAILS_VERSION: 5.2.4.2
65
+ ENGINE_CART_RAILS_OPTIONS: '--skip-git --skip-listen --skip-spring --skip-keeps --skip-action-cable --skip-coffee --skip-test'
66
+ api_test:
67
+ runs-on: ubuntu-latest
68
+ strategy:
69
+ matrix:
70
+ ruby: [2.7]
71
+ steps:
72
+ - uses: actions/checkout@v2
73
+ - name: Set up Ruby
74
+ uses: ruby/setup-ruby@v1
75
+ with:
76
+ ruby-version: ${{ matrix.ruby }}
77
+ - name: Install dependencies
78
+ run: bundle install
79
+ - name: Run tests
80
+ run: bundle exec rake ci
81
+ env:
82
+ BLACKLIGHT_API_TEST: true
83
+ ENGINE_CART_RAILS_OPTIONS: '--api --skip-git --skip-bundle --skip-listen --skip-spring --skip-yarn --skip-keeps --skip-action-cable --skip-coffee --skip-test'
84
+ docker_build:
85
+ runs-on: ubuntu-latest
86
+ steps:
87
+ - uses: actions/checkout@v2
88
+ - name: Build docker image
89
+ run: docker-compose build app
data/VERSION CHANGED
@@ -1 +1 @@
1
- 7.13.0
1
+ 7.13.1
@@ -6,10 +6,6 @@ module Blacklight
6
6
  @facet_field = facet_field
7
7
  end
8
8
 
9
- def render?
10
- @facet_field.facet_field.index_range&.any?
11
- end
12
-
13
9
  def sort_facet_url(sort)
14
10
  @facet_field.paginator.params_for_resort_url(sort, @facet_fieldsearch_state.to_h)
15
11
  end
@@ -14,14 +14,14 @@ require 'solr_wrapper'
14
14
  require 'open3'
15
15
 
16
16
  def system_with_error_handling(*args)
17
- Open3.popen3(*args) do |stdout, stderr, status, _thread|
17
+ Open3.popen3(*args) do |_stdin, stdout, stderr, thread|
18
18
  puts stdout.read
19
- raise "Unable to run #{args.inspect}: #{stderr.read}" unless status.success?
19
+ raise "Unable to run #{args.inspect}: #{stderr.read}" unless thread.value.success?
20
20
  end
21
21
  end
22
22
 
23
23
  def with_solr
24
- if system('docker-compose')
24
+ if system('docker-compose -v')
25
25
  begin
26
26
  puts "Starting Solr"
27
27
  system_with_error_handling "docker-compose up -d solr"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blacklight
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.13.0
4
+ version: 7.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Rochkind
@@ -17,7 +17,7 @@ authors:
17
17
  autorequire:
18
18
  bindir: exe
19
19
  cert_chain: []
20
- date: 2020-10-24 00:00:00.000000000 Z
20
+ date: 2020-10-30 00:00:00.000000000 Z
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
23
  name: rails
@@ -339,6 +339,7 @@ files:
339
339
  - ".docker/app/Dockerfile"
340
340
  - ".docker/app/entrypoint.sh"
341
341
  - ".env"
342
+ - ".github/workflows/ruby.yml"
342
343
  - ".gitignore"
343
344
  - ".hound.yml"
344
345
  - ".jshintrc"
@@ -346,7 +347,6 @@ files:
346
347
  - ".rubocop.yml"
347
348
  - ".rubocop_todo.yml"
348
349
  - ".solr_wrapper.yml"
349
- - ".travis.yml"
350
350
  - ".yardopts"
351
351
  - CONTRIBUTING.md
352
352
  - Gemfile
@@ -1,40 +0,0 @@
1
- dist: bionic
2
-
3
- addons:
4
- chrome: stable
5
-
6
- language: ruby
7
-
8
- matrix:
9
- include:
10
- - rvm: 2.7.0
11
- env: "RAILS_VERSION=6.0.2.2"
12
- - rvm: 2.6.5
13
- env: "RAILS_VERSION=6.0.2.2"
14
- - rvm: 2.6.5
15
- env: "RAILS_VERSION=5.2.4.2"
16
- - rvm: 2.5.7
17
- env: "RAILS_VERSION=5.2.4.2 BLACKLIGHT_API_TEST=true ENGINE_CART_RAILS_OPTIONS=\"--api --skip-git --skip-bundle --skip-listen --skip-spring --skip-yarn --skip-keeps --skip-action-cable --skip-coffee --skip-test\""
18
- - rvm: jruby-9.2.8.0
19
- env: "RAILS_VERSION=5.2.4.2 JRUBY_OPTS=\"-J-Xms512m -J-Xmx1024m\""
20
- allow_failures:
21
- - rvm: jruby-9.2.8.0
22
- fast_finish: true
23
-
24
- before_install:
25
- - google-chrome-stable --headless --disable-gpu --no-sandbox --remote-debugging-port=9222 http://localhost &
26
-
27
- env:
28
- global:
29
- - NOKOGIRI_USE_SYSTEM_LIBRARIES=true
30
- - ENGINE_CART_RAILS_OPTIONS='--skip-git --skip-listen --skip-spring --skip-keeps --skip-action-cable --skip-coffee --skip-test'
31
- - CC_TEST_REPORTER_ID=5042c7358c96b0b926088a4cda3e132fffe7a66ce8047cdb1dc6f0b4b6676b79
32
-
33
- before_script:
34
- - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
35
- - chmod +x ./cc-test-reporter
36
- - ./cc-test-reporter before-build
37
-
38
- after_script:
39
- - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
40
- - docker-compose build app || travis_terminate 1 # validates application Dockerfile