require 'mechanize'

module Cocoapods::Search
  class Pod
    attr_accessor :name, :star_count, :fork_count, :has_github

    def initialize
      @has_github = false
    end

    def score
      if @has_github
        @star_count + @fork_count * 5
      else
        0
      end
    end

    def to_a
      if @has_github
        [@name, score.to_s, @star_count.to_s, @fork_count.to_s]
      else
        [@name, '-', '-', '-', '-']
      end
    end
  end
end
require 'mechanize'

module Cocoapods::Search
  class Pod
    attr_accessor :name, :star_count, :fork_count, :has_github

    def initialize
      @has_github = false
    end

    def score
      if @has_github
        @star_count + @fork_count * 5
      else
        0
      end
    end

    def to_a
      if @has_github
        [@name, score.to_s, @star_count.to_s, @fork_count.to_s]
      else
        [@name, '-', '-', '-']
      end
    end
  end
end
Fix warning: too many arguments for format string
Fix warning: too many arguments for format string
