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

Unleash / unleash-client-ruby / 5052083046

pending completion
5052083046

push

github

Renato Arruda
chore: fix gh actions to avoid starting builds when rubocop fails

0 of 2360 relevant lines covered (0.0%)

0.0 hits per line

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

0.0
/lib/unleash/bootstrap/handler.rb
1
require 'unleash/bootstrap/provider/from_url'
×
2
require 'unleash/bootstrap/provider/from_file'
×
3

4
module Unleash
×
5
  module Bootstrap
×
6
    class Handler
×
7
      attr_accessor :configuration
×
8

9
      def initialize(configuration)
×
10
        self.configuration = configuration
×
11
      end
12

13
      # @return [String] JSON string representing data returned from an Unleash server
14
      def retrieve_toggles
×
15
        return configuration.data unless self.configuration.data.nil?
×
16
        return configuration.block.call if self.configuration.block.is_a?(Proc)
×
17
        return Provider::FromFile.read(configuration.file_path) unless self.configuration.file_path.nil?
×
18
        return Provider::FromUrl.read(configuration.url, configuration.url_headers) unless self.configuration.url.nil?
×
19
      end
20
    end
21
  end
22
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

© 2026 Coveralls, Inc