Sha256: c8ab5229c82b31683ce575b8766afdd6a8b5e78b69407b8f3cf0bba56cc3b228

Contents?: true

Size: 607 Bytes

Versions: 45

Compression:

Stored size: 607 Bytes

Contents

# frozen_string_literal: true

require 'eac_ruby_gems_utils/gem'

module EacRailsBase0
  module Gems
    class << self
      enable_simple_cache

      def vendor_gems_root
        ::Rails.root.join('vendor', 'gems')
      end

      private

      def app_uncached
        ::EacRubyGemsUtils::Gem.new(::Rails.root)
      end

      def all_uncached
        vendor_gems + [app]
      end

      def vendor_gems_uncached
        r = []
        vendor_gems_root.each_child.each do |child|
          r << ::EacRubyGemsUtils::Gem.new(child) if child.directory?
        end
        r
      end
    end
  end
end

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
eac_rails_base0-0.30.2 lib/eac_rails_base0/gems.rb
eac_rails_base0-0.30.1 lib/eac_rails_base0/gems.rb
eac_rails_base0-0.30.0 lib/eac_rails_base0/gems.rb
eac_rails_base0-0.29.3 lib/eac_rails_base0/gems.rb
eac_rails_base0-0.29.2 lib/eac_rails_base0/gems.rb