lib/cocoapods-core/specification/set/statistics.rb
# Analyzes the history of the git repository of the {Source} of the
# given {Set} to find when its folder was created.
#
# @param  [Set] set
#         the set for which the creation date is needed.
#
# @return [Time] the date in which a Pod was created.
#
Analyzes the history of the git repository of the {Source} of the
given {Set} to find when its folder was created.
Analyzes the history of the git repository of the { Source } of the given { Set } to find when its folder was created .
def compute_creation_date(set)
          date = get_value(set, :creation_date)
          unless date
            Dir.chdir(set.sources.first.repo) do
              git_log   = `git log --first-parent --format=%ct #{set.name}`
              creation_date = git_log.split("\n").last.to_i
              date = Time.at(creation_date)
            end
            set_value(set, :creation_date, date)
          end
          date
        end
def compute_creation_date ( set ) date = get_value ( set , :creation_date ) unless date Dir . chdir ( set . sources . first . repo ) do git_log = ` git log --first-parent --format=%ct  #{ set . name } ` creation_date = git_log . split ( "\n" ) . last . to_i date = Time . at ( creation_date ) end set_value ( set , :creation_date , date ) end date end
Analyzes the history of the git repository of the {Source} of the
given {Set} to find when its folder was created.
Analyzes the history of the git repository of the { Source } of the given { Set } to find when its folder was created .
the date in which a Pod was created.
the date in which a Pod was created .
Time
set
set the set for which the creation date is needed.
set the set for which the creation date is needed .