Sha256: 24d64fb3c07eb63dc343a044fd009f8aacb9310acf20a455e8d968a49f08a304
Contents?: true
Size: 367 Bytes
Versions: 2
Compression:
Stored size: 367 Bytes
Contents
# 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
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gemfury-0.13.0 | lib/gemfury/client/filters.rb |
gemfury-0.13.0.beta1 | lib/gemfury/client/filters.rb |