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

pulibrary / pdc_describe / 5db21940-59bd-4742-a25d-02e5e58d6646

pending completion
5db21940-59bd-4742-a25d-02e5e58d6646

Pull #1014

circleci

Carolyn Cole
Creating a folder in Amazon so the curators do not need to do it by hand fixes #1001
Pull Request #1014: Creating a folder in Amazon so the curators do not need to do it by hand

3 of 3 new or added lines in 2 files covered. (100.0%)

1703 of 1872 relevant lines covered (90.97%)

80.56 hits per line

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

78.57
/app/helpers/application_helper.rb
1
# frozen_string_literal: true
2
module ApplicationHelper
1✔
3
  ##
4
  # Attributes to add to the <html> tag (e.g. lang and dir)
5
  # @return [Hash]
6
  def html_tag_attributes
1✔
7
    { lang: I18n.locale }
54✔
8
  end
9

10
  def pre_curation_uploads_file_name(file:)
1✔
11
    value = file.filename.to_s
×
12
    return if value.blank?
×
13

14
    value[0..79]
×
15
  end
16
  alias post_curation_uploads_file_name pre_curation_uploads_file_name
1✔
17

18
  def ark_url(ark_value)
1✔
19
    return nil if ark_value.blank?
2✔
20
    # This was originally in Work#ark_url as: "https://ezid.cdlib.org/id/#{ark}"
21
    "http://arks.princeton.edu/#{ark_value}"
2✔
22
  end
23

24
  def doi_url(doi_value)
1✔
25
    return nil if doi_value.blank?
4✔
26
    "https://doi.org/#{doi_value}"
4✔
27
  end
28
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