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

pulibrary / allsearch_api / 93455990-ca6b-4aa4-bb7b-c77568bb5653

01 Aug 2025 03:42PM UTC coverage: 86.395% (-13.1%) from 99.514%
93455990-ca6b-4aa4-bb7b-c77568bb5653

push

circleci

sandbergja
Explicitly include Rake in Gemfile

When we deployed, it gave various errors:
* can't find executable rake for gem rake.
* cannot load such file -- net/ssh/proxy/command (LoadError)

This commit explicitly includes rake and net-ssh in the Gemfile
to see if it resolves the issue.

889 of 1029 relevant lines covered (86.39%)

33.24 hits per line

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

54.35
/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
1✔
8
  private
1✔
9

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

15
  def first_name
1✔
16
    document.first_name
×
17
  end
18

19
  def middle_name
1✔
20
    document.middle_name
×
21
  end
22

23
  def last_name
1✔
24
    document.last_name
×
25
  end
26

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

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

33
  def id
1✔
34
    document.puid
×
35
  end
36

37
  def netid
1✔
38
    document.netid
×
39
  end
40

41
  def phone
1✔
42
    document.phone
×
43
  end
44

45
  def email
1✔
46
    document.email
×
47
  end
48

49
  def library_title
1✔
50
    document.library_title
×
51
  end
52

53
  def team
1✔
54
    document.team
×
55
  end
56

57
  def division
1✔
58
    document.division
×
59
  end
60

61
  def department
1✔
62
    document.department
×
63
  end
64

65
  def unit
1✔
66
    document.unit
×
67
  end
68

69
  def office
1✔
70
    document.office
×
71
  end
72

73
  def building
1✔
74
    document.building
×
75
  end
76

77
  def pronouns
1✔
78
    document.pronouns
×
79
  end
80

81
  def type
1✔
82
    'Library Staff'
×
83
  end
84

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

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

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

97
  def doc_keys
1✔
98
    [:first_name, :middle_name, :last_name, :netid, :library_title, :phone, :email, :team, :division, :department,
×
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