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

payrollhero / dispatch-rider / #3015

02 Sep 2022 11:22PM UTC coverage: 0.409% (-84.7%) from 85.154%
#3015

push

web-flow
Layout/SpaceInsideStringInterpolation-20220901233630 (#89)

* :police_car: regenerate rubocop todo

* :police_car: Layout/SpaceInsideStringInterpolation

* :police_car: regenerate rubocop todo

Co-authored-by: Rubocop Challenger <rubocop@payrollhero.com>

0 of 1 new or added line in 1 file covered. (0.0%)

1529 existing lines in 63 files now uncovered.

7 of 1711 relevant lines covered (0.41%)

0.0 hits per line

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

0.0
/lib/dispatch-rider/publisher/configuration.rb
UNCOV
1
module DispatchRider
×
UNCOV
2
  class Publisher::Configuration
×
UNCOV
3
    def initialize(configuration_hash = {})
×
UNCOV
4
      @notification_services = []
×
UNCOV
5
      @destinations = []
×
UNCOV
6
      parse(configuration_hash)
×
UNCOV
7
    end
×
8

UNCOV
9
    def notification_services
×
UNCOV
10
      @notification_services
×
UNCOV
11
    end
×
12

UNCOV
13
    def destinations
×
UNCOV
14
      @destinations
×
UNCOV
15
    end
×
16

UNCOV
17
    def parse(configuration_hash)
×
UNCOV
18
      clear
×
19

UNCOV
20
      configuration_hash = configuration_hash.with_indifferent_access
×
UNCOV
21
      configure_notification_services(configuration_hash[:notification_services] || {})
×
UNCOV
22
      configure_destinations(configuration_hash[:destinations] || {})
×
UNCOV
23
    end
×
24

UNCOV
25
    def clear
×
UNCOV
26
      @notification_services.clear
×
UNCOV
27
      @destinations.clear
×
UNCOV
28
    end
×
29

UNCOV
30
    private
×
31

UNCOV
32
    def configure_notification_services(notification_services_hash)
×
UNCOV
33
      notification_services_hash.each do |name, options|
×
UNCOV
34
        @notification_services << NotificationService.new(name, options)
×
UNCOV
35
      end
×
UNCOV
36
    end
×
37

UNCOV
38
    def configure_destinations(destinations_hash)
×
UNCOV
39
      destinations_hash.each do |name, options|
×
UNCOV
40
        @destinations << Destination.new(name, options)
×
UNCOV
41
      end
×
UNCOV
42
    end
×
UNCOV
43
  end
×
UNCOV
44
end
×
45

UNCOV
46
require_relative "configuration/destination"
×
UNCOV
47
require_relative "configuration/notification_service"
×
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