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

Unleash / unleash-client-ruby / 4944881348

pending completion
4944881348

push

github

GitHub
fix: forcefully disabling metrics when client is disabled (#139) (#140)

0 of 21 new or added lines in 2 files covered. (0.0%)

2237 existing lines in 58 files now uncovered.

0 of 2339 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
UNCOV
1
require 'unleash/bootstrap/provider/from_url'
×
UNCOV
2
require 'unleash/bootstrap/provider/from_file'
×
3

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

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

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