Skip to content

Commit 3bf60b6

Browse files
authored
Merge pull request #1632 from projectblacklight/fix-test-generator
Get test generator and github actions working again
2 parents 0804fb2 + 3e0ae09 commit 3bf60b6

File tree

5 files changed

+8
-10
lines changed

5 files changed

+8
-10
lines changed

.github/workflows/ruby.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,27 +14,25 @@ jobs:
1414
matrix:
1515
rails_version: [8.0.1]
1616
ruby: ["3.4"]
17+
bundler_version: ["2.7.2"]
1718
additional_engine_cart_rails_options: [""]
1819
additional_name: [""]
1920
include:
2021
- ruby: "3.3"
2122
rails_version: 7.2.2.1
2223
- ruby: "3.2"
2324
rails_version: 7.1.5.1
24-
- ruby: "3.4"
25-
rails_version: "8.0.1"
26-
blacklight_version: 9.0.0.beta1
27-
additional_name: "/ Blacklight 9"
2825
env:
2926
RAILS_VERSION: ${{ matrix.rails_version }}
3027
ENGINE_CART_RAILS_OPTIONS: "--skip-git --skip-listen --skip-spring --skip-keeps --skip-kamal --skip-solid --skip-coffee --skip-test --css bootstrap -a propshaft -j importmap ${{ matrix.additional_engine_cart_rails_options }}"
3128
BLACKLIGHT_VERSION: ${{ matrix.blacklight_version }}
29+
BUNDLER_VERSION: ${{ matrix.bundler_version || '2.7.2' }}
3230
steps:
3331
- uses: actions/checkout@v4
3432
- name: Set up Ruby ${{ matrix.ruby }}
3533
uses: ruby/setup-ruby@v1
3634
with:
37-
bundler: latest
35+
bundler: ${{ matrix.bundler_version || '2.7.2' }}
3836
ruby-version: ${{ matrix.ruby }}
3937
- name: Install dependencies with Rails ${{ matrix.rails_version }}
4038
run: bundle install
@@ -48,7 +46,7 @@ jobs:
4846
- name: Install Ruby and gems
4947
uses: ruby/setup-ruby@v1
5048
with:
51-
bundler: latest
49+
bundler: ${{ matrix.bundler_version || '2.7.2' }}
5250
ruby-version: 3.2
5351
- name: Install dependencies with Bundler
5452
run: bundle install

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
source 'https://rubygems.org'
44

55
# Specify your gem's dependencies in arclight.gemspec
6-
gemspec
6+
gemspec path: File.expand_path(__dir__)
77

88
# BEGIN ENGINE_CART BLOCK
99
# engine_cart: 2.5.0

app/helpers/arclight/ead_format_helpers.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ def format_indexes(node)
258258
index_head = node.at_css('head')
259259
index_head&.name = 'h3'
260260
index_head&.add_class('index-head')
261-
index_head['id'] = ['index-', index_head.text].join.parameterize if index_head.present?
261+
index_head.presence&.[]=('id', ['index-', index_head.text].join.parameterize)
262262
format_indexentries(node)
263263
node.name = 'div'
264264
end

arclight.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
2424
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
2525
spec.require_paths = ['lib']
2626

27-
spec.add_dependency 'blacklight', '>= 8.0.0', '< 10'
27+
spec.add_dependency 'blacklight', '>= 8.0.0', '< 9'
2828
spec.add_dependency 'gretel'
2929
spec.add_dependency 'rails', '>= 7.1', '< 9'
3030
spec.add_dependency 'traject', '~> 3.0'

spec/test_app_templates/lib/generators/test_app_generator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class TestAppGenerator < Rails::Generators::Base
1111
# after setting up the application
1212

1313
def add_gems
14-
Bundler.with_clean_env do
14+
Bundler.with_unbundled_env do
1515
run 'bundle install'
1616
end
1717
end

0 commit comments

Comments
 (0)