Sha256: b6e982697fa52621f5a3367792df626f3218b15b35bb3109074c0ad01308897b

Contents?: true

Size: 637 Bytes

Versions: 24

Compression:

Stored size: 637 Bytes

Contents

# frozen_string_literal: true

module Bundler
  class CLI::List
    def initialize(options)
      @options = options
    end

    def run
      specs = Bundler.load.specs.reject {|s| s.name == "bundler" }.sort_by(&:name)
      return specs.each {|s| Bundler.ui.info s.name } if @options["name-only"]

      return Bundler.ui.info "No gems in the Gemfile" if specs.empty?
      Bundler.ui.info "Gems included by the bundle:"
      specs.each do |s|
        Bundler.ui.info "  * #{s.name} (#{s.version}#{s.git_version})"
      end

      Bundler.ui.info "Use `bundle info` to print more detailed information about a gem"
    end
  end
end

Version data entries

24 entries across 24 versions & 3 rubygems

Version Path
rubygems-update-2.7.11 bundler/lib/bundler/cli/list.rb
rubygems-update-2.7.10 bundler/lib/bundler/cli/list.rb
rubygems-update-2.7.9 bundler/lib/bundler/cli/list.rb
rubygems-update-2.7.8 bundler/lib/bundler/cli/list.rb
bundler-1.16.6 lib/bundler/cli/list.rb
bundler-1.16.5 lib/bundler/cli/list.rb
bundler-1.16.4 lib/bundler/cli/list.rb
bundler-1.16.3 lib/bundler/cli/list.rb
rubygems-update-2.7.7 bundler/lib/bundler/cli/list.rb
bundler-1.16.2 lib/bundler/cli/list.rb
rubygems-update-2.7.6 bundler/lib/bundler/cli/list.rb
rubygems-update-2.7.5 bundler/lib/bundler/cli/list.rb
rubygems-update-2.7.4 bundler/lib/bundler/cli/list.rb
rubygems-update-2.7.4.pre1 bundler/lib/bundler/cli/list.rb
bundler-1.16.1 lib/bundler/cli/list.rb
pract6-0.1.0 .gem/ruby/2.3.0/gems/bundler-1.16.0.pre.3/lib/bundler/cli/list.rb
rubygems-update-2.7.3 bundler/lib/bundler/cli/list.rb
rubygems-update-2.7.2 bundler/lib/bundler/cli/list.rb
rubygems-update-2.7.1 bundler/lib/bundler/cli/list.rb
rubygems-update-2.7.0 bundler/lib/bundler/cli/list.rb