Sha256: 69c4c5ce7aaf166175f088aa74cc3cbce832f330ff26a25e83d3381d8dca5412

Contents?: true

Size: 468 Bytes

Versions: 16

Compression:

Stored size: 468 Bytes

Contents

module Pronto
  class GemNames
    def to_a
      gems.map { |gem| gem.name.sub(/^pronto-/, '') }.uniq.sort
    end

    private

    def gems
      Gem::Specification.find_all.select do |gem|
        if gem.name =~ /^pronto-/
          true
        elsif gem.name != 'pronto'
          runner_path = File.join(gem.full_gem_path,
                                  "lib/pronto/#{gem.name}.rb")
          File.exist?(runner_path)
        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
pronto-0.11.3 lib/pronto/gem_names.rb
pronto-0.11.2 lib/pronto/gem_names.rb
pronto-0.11.1 lib/pronto/gem_names.rb
pronto-0.11.0 lib/pronto/gem_names.rb
pronto-0.10.0 lib/pronto/gem_names.rb
pronto-0.9.5 lib/pronto/gem_names.rb
pronto-0.9.4 lib/pronto/gem_names.rb
pronto-0.9.3 lib/pronto/gem_names.rb
pronto-0.9.2 lib/pronto/gem_names.rb
pronto-0.9.1 lib/pronto/gem_names.rb
pronto-0.9.0 lib/pronto/gem_names.rb
pronto-0.8.2 lib/pronto/gem_names.rb
pronto-0.8.1 lib/pronto/gem_names.rb
pronto-0.8.0 lib/pronto/gem_names.rb
pronto-0.7.1 lib/pronto/gem_names.rb
pronto-0.7.0 lib/pronto/gem_names.rb