Skip to content

Commit 3b1f07f

Browse files
authored
Merge pull request #1469 from psu-libraries/niftany-upgrade
Niftany upgrade
2 parents a80118f + 22e33a9 commit 3b1f07f

36 files changed

+200
-176
lines changed

.circleci/config.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ jobs:
9292
name: "Update Node.js and npm"
9393
command: |
9494
curl -sSL "https://nodejs.org/dist/v22.14.0/node-v22.14.0-linux-x64.tar.xz" | sudo tar --strip-components=2 -xJ -C /usr/local/bin/ node-v22.14.0-linux-x64/bin/node
95-
curl -L https://npmjs.com/install.sh | sudo bash
95+
sudo corepack enable
96+
sudo corepack prepare [email protected] --activate
9697
- run:
9798
name: "Bundle"
9899
command: |

.rubocop.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ AllCops:
1515
- 'vendor/**/*'
1616
NewCops: enable
1717

18+
Capybara/NegationMatcherAfterVisit:
19+
Enabled: false
20+
1821
Metrics/BlockLength:
1922
Exclude:
2023
# The catalog controller is just one giant block for config.
@@ -66,13 +69,10 @@ RSpec/ExampleLength:
6669
# Feature specs are special.
6770
- 'spec/features/**/*'
6871

69-
RSpec/NestedGroups:
70-
Enabled: false
71-
72-
RSpec/Capybara/FeatureMethods:
72+
RSpec/IndexedLet:
7373
Enabled: false
7474

75-
RSpec/Capybara:
75+
RSpec/NestedGroups:
7676
Enabled: false
7777

7878
RSpec/MultipleMemoizedHelpers:

.rubocop_todo.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,6 @@ Performance/CollectionLiteralInLoop:
3535
Exclude:
3636
- 'config/environments/production.rb'
3737

38-
# Offense count: 25
39-
RSpec/Capybara:
40-
Exclude:
41-
- 'spec/components/psul_constraint_layout_component_spec.rb'
42-
- 'spec/features/ask_a_librarian_spec.rb'
43-
- 'spec/features/availability_spec.rb'
44-
- 'spec/features/google_preview_link_spec.rb'
45-
- 'spec/views/browse/authors.html.erb_spec.rb'
46-
- 'spec/views/browse/call_numbers.html.erb_spec.rb'
47-
- 'spec/views/browse/subjects.html.erb_spec.rb'
48-
- 'spec/views/browse/titles.html.erb_spec.rb'
49-
5038
# Offense count: 3
5139
# This cop supports safe autocorrection (--autocorrect).
5240
RSpec/ExpectActual:
@@ -70,3 +58,7 @@ Rails/I18nLocaleTexts:
7058
Style/OptionalBooleanParameter:
7159
Exclude:
7260
- 'app/helpers/facets_helper.rb'
61+
62+
Lint/UselessConstantScoping:
63+
Exclude:
64+
- app/components/psul_facet_item_component.rb

Gemfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@ end
5151
group :development, :test do
5252
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
5353
gem 'html_tokenizer', '~> 0.0.8'
54-
gem 'niftany', '~> 0.10'
54+
gem 'niftany', '~> 0.12.1'
5555
gem 'pry-byebug'
56+
gem 'rubocop-capybara'
5657
gem 'sinatra'
5758
gem 'sqlite3', '~> 1.5.0'
5859
end

0 commit comments

Comments
 (0)