lib/cocoapods/user_interface.rb
# Prints the textual representation of a given set.
#
Prints the textual representation of a given set.
Prints the textual representation of a given set .
def pod(set, mode = :normal)
        if mode == :name
          puts_indented set.name
        else
          pod = Specification::Set::Presenter.new(set)
          title("\n-> #{pod.name} (#{pod.version})".green, '', 1) do
            puts_indented pod.summary
            labeled('Homepage', pod.homepage)
            labeled('Source',   pod.source_url)
            labeled('Versions', pod.verions_by_source)
            if mode == :stats
              labeled('Pushed',   pod.github_last_activity)
              labeled('Authors',  pod.authors) if pod.authors =~ /,/
              labeled('Author',   pod.authors) if pod.authors !~ /,/
              labeled('License',  pod.license)
              labeled('Platform', pod.platform)
              labeled('Watchers', pod.github_watchers)
              labeled('Forks',    pod.github_forks)
            end
            labeled('Sub specs', pod.subspecs)
          end
        end
      end
def pod ( set , mode = :normal ) if mode == :name puts_indented set . name else pod = Specification :: Set :: Presenter . new ( set ) title ( "\n-> #{pod.name} (#{pod.version})" . green , '' , 1 ) do puts_indented pod . summary labeled ( 'Homepage' , pod . homepage ) labeled ( 'Source' , pod . source_url ) labeled ( 'Versions' , pod . verions_by_source ) if mode == :stats labeled ( 'Pushed' , pod . github_last_activity ) labeled ( 'Authors' , pod . authors ) if pod . authors =~ / , / labeled ( 'Author' , pod . authors ) if pod . authors !~ / , / labeled ( 'License' , pod . license ) labeled ( 'Platform' , pod . platform ) labeled ( 'Watchers' , pod . github_watchers ) labeled ( 'Forks' , pod . github_forks ) end labeled ( 'Sub specs' , pod . subspecs ) end end end
Prints the textual representation of a given set.
Prints the textual representation of a given set .
set
mode