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

pulibrary / oawaiver / 51c9fa39-22a6-4aa8-96ba-b198cbbc6873

03 Oct 2024 07:56PM UTC coverage: 98.641% (-1.4%) from 100.0%
51c9fa39-22a6-4aa8-96ba-b198cbbc6873

Pull #209

circleci

jrgriffiniii
Upgrading `express` to releases 4.21 or later and `serve-static` to releases 1.16.2 or later in order to update to `send` releases 0.19.0 or later
Pull Request #209: Upgrading `express` to releases 4.21 or later and `serve-static` to releases 1.16.2 or later in order to update to `send` releases 0.19.0 or later

726 of 736 relevant lines covered (98.64%)

17.39 hits per line

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

37.5
/app/services/waiver_info_report.rb
1
# frozen_string_literal: true
2

3
class WaiverInfoReport
1✔
4
  def self.headers
1✔
5
    [
×
6
      "created_at",
7
      "updated_at",
8
      "requester_email",
9
      "author_first_name",
10
      "author_last_name",
11
      "author_status",
12
      "author_department",
13
      "author_email",
14
      "title",
15
      "journal",
16
      "journal_issn",
17
      "notes"
18
    ]
19
  end
20

21
  # rubocop:disable Metrics/MethodLength
22
  def rows
1✔
23
    @models.map do |model|
×
24
      [
25
        model.created_at,
×
26
        model.updated_at,
27
        model.requester_email,
28
        model.author_first_name,
29
        model.author_last_name,
30
        model.author_status,
31
        model.author_department,
32
        model.author_email,
33
        model.title,
34
        model.journal,
35
        model.journal_issn,
36
        model.notes
37
      ]
38
    end
39
  end
40
  # rubocop:enable Metrics/MethodLength
41

42
  def file_path
1✔
43
    @file_path ||= Pathname.new(@path)
×
44
  end
45

46
  def generate
1✔
47
    CSV.open(file_path, "wb", encoding: "utf-8") do |csv|
×
48
      csv << self.class.headers
×
49
      rows.each do |row|
×
50
        csv << row
×
51
      end
52
    end
53
  end
54

55
  def initialize(models:, path:)
1✔
56
    @models = models
×
57
    @path = path
×
58
  end
59
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