Sha256: c30e6070be4a2020fee63c47d244fd538f5b525daacbd4431e78eb301b90d2e2

Contents?: true

Size: 400 Bytes

Versions: 17

Compression:

Stored size: 400 Bytes

Contents

module Itsf
  module Backend
    module Features
      def gem_available?(name)
        Gem::Specification.find_all_by_name(name.to_s).any?
      end

      def features?(name)
        # Gem::Specification.find_all_by_name(name.to_s).any? && Itsf::Backend::Configuration.enabled_features.include?(name)
        Itsf::Backend::Configuration.enabled_features.include?(name)
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
itsf_backend-5.0.0.pre lib/itsf/backend/features.rb
itsf_backend-4.2.3 lib/itsf/backend/features.rb
itsf_backend-4.2.2 lib/itsf/backend/features.rb
itsf_backend-4.2.1 lib/itsf/backend/features.rb
itsf_backend-4.2.0 lib/itsf/backend/features.rb
itsf_backend-4.0.1 lib/itsf/backend/features.rb
itsf_backend-4.0.0 lib/itsf/backend/features.rb
itsf_backend-3.1.1 lib/itsf/backend/features.rb
itsf_backend-3.1.0 lib/itsf/backend/features.rb
itsf_backend-3.0.7 lib/itsf/backend/features.rb
itsf_backend-3.0.6 lib/itsf/backend/features.rb
itsf_backend-3.0.5 lib/itsf/backend/features.rb
itsf_backend-3.0.4 lib/itsf/backend/features.rb
itsf_backend-3.0.3 lib/itsf/backend/features.rb
itsf_backend-3.0.2 lib/itsf/backend/features.rb
itsf_backend-3.0.1 lib/itsf/backend/features.rb
itsf_backend-3.0.0 lib/itsf/backend/features.rb