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

pulibrary / allsearch_api / 6d800a36-cbec-41a4-af6d-2e50747ea6b6

01 Aug 2025 03:40PM UTC coverage: 99.514%. Remained the same
6d800a36-cbec-41a4-af6d-2e50747ea6b6

push

circleci

sandbergja
Explicitly include Rake in Gemfile

When we deployed, it gave the error 'can't find executable rake for gem rake.'

This commit explicitly includes rake in the Gemfile to see if it resolves the issue.

1024 of 1029 relevant lines covered (99.51%)

92.23 hits per line

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

100.0
/app/models/library_staff_document.rb
1
# frozen_string_literal: true
2

3
# This class is responsible for getting relevant
4
# metadata from the LibraryStaffRecords in the database
5
# The document is a LibraryStaffRecord
6
# :reek:TooManyMethods
7
class LibraryStaffDocument < Document
3✔
8
  private
3✔
9

10
  # Use the full name as the document title
11
  def title
3✔
12
    document.name
14✔
13
  end
14

15
  def first_name
3✔
16
    document.first_name
14✔
17
  end
18

19
  def middle_name
3✔
20
    document.middle_name
14✔
21
  end
22

23
  def last_name
3✔
24
    document.last_name
14✔
25
  end
26

27
  # Not relevant for this service
28
  def creator; end
3✔
29

30
  # Not relevant for this service
31
  def publisher; end
3✔
32

33
  def id
3✔
34
    document.puid
14✔
35
  end
36

37
  def netid
3✔
38
    document.netid
14✔
39
  end
40

41
  def phone
3✔
42
    document.phone
14✔
43
  end
44

45
  def email
3✔
46
    document.email
14✔
47
  end
48

49
  def library_title
3✔
50
    document.library_title
14✔
51
  end
52

53
  def team
3✔
54
    document.team
14✔
55
  end
56

57
  def division
3✔
58
    document.division
14✔
59
  end
60

61
  def department
3✔
62
    document.department
14✔
63
  end
64

65
  def unit
3✔
66
    document.unit
14✔
67
  end
68

69
  def office
3✔
70
    document.office
14✔
71
  end
72

73
  def building
3✔
74
    document.building
14✔
75
  end
76

77
  def pronouns
3✔
78
    document.pronouns
14✔
79
  end
80

81
  def type
3✔
82
    'Library Staff'
14✔
83
  end
84

85
  # Not relevant for this service
86
  def description; end
3✔
87

88
  def url
3✔
89
    path = "/about/staff-directory/#{name_to_path}"
19✔
90
    URI::HTTPS.build(host: LibraryWebsite.library_website_host, path:)
19✔
91
  end
92

93
  def name_to_path
3✔
94
    URI::DEFAULT_PARSER.escape("#{document.first_name}-#{document.last_name}".delete(".'").gsub(' ', '-').downcase)
21✔
95
  end
96

97
  def doc_keys
3✔
98
    [:first_name, :middle_name, :last_name, :netid, :library_title, :phone, :email, :team, :division, :department,
14✔
99
     :unit, :office, :building, :pronouns]
100
  end
101
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