Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
gemfury / lib / gemfury / client / filters.rb
Size: Mime:
# frozen_string_literal: true

module Gemfury
  class Client
    module Filters
      private

      def ensure_ready!(*args)
        # Ensure authorization
        return unless args.include?(:authorization)
        raise Unauthorized unless authenticated?
      end

      def authenticated?
        user_api_key && !user_api_key.empty?
      end
    end
  end
end