• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pulibrary / orangelight / 4e01fe00-694b-47b4-8b30-2de4dc4acc66

31 Jul 2025 07:56PM UTC coverage: 92.891% (-2.5%) from 95.4%
4e01fe00-694b-47b4-8b30-2de4dc4acc66

Pull #4962

circleci

web-flow
Merge pull request #5130 from pulibrary/clean_up_scss_comments

Remove SCSS commented code.
Pull Request #4962: Orangelight pos workcycle 07-07-2025

193 of 197 new or added lines in 24 files covered. (97.97%)

161 existing lines in 35 files now uncovered.

5932 of 6386 relevant lines covered (92.89%)

1443.08 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

81.82
/app/processors/orangelight/reference_note_url_processor.rb
1
# frozen_string_literal: true
2
module Orangelight
2✔
3
  # For reference notes that end with a url convert the note into link
4
  class ReferenceNoteUrlProcessor < Blacklight::Rendering::AbstractStep
2✔
5
    include ActionView::Helpers::UrlHelper
2✔
6
    def render
2✔
7
      return next_step(values) unless config.references_url
2,462✔
8
      values.map! do |reference|
10✔
9
        if (url = reference[/ (http.*)$/])
18✔
UNCOV
10
          chomped = reference.chomp(url)
×
UNCOV
11
          reference = link_to(chomped, url.gsub(/\s/, ''), target: '_blank', rel: 'noopener')
×
12
        end
13
        reference
18✔
14
      end
15

16
      next_step(values)
10✔
17
    end
18
  end
19
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc