lib/travis/client/commit.rb in travis-1.11.1 vs lib/travis/client/commit.rb in travis-1.12.0

- old
+ new

@@ -1,14 +1,17 @@ +# frozen_string_literal: true + require 'travis/client' module Travis module Client class Commit < Entity include NotLoadable # @!parse attr_reader :sha, :branch, :message, :committed_at, :author_name, :author_email, :committer_name, :committer_email, :compare_url - attributes :sha, :branch, :message, :committed_at, :author_name, :author_email, :committer_name, :committer_email, :compare_url + attributes :sha, :branch, :message, :committed_at, :author_name, :author_email, :committer_name, + :committer_email, :compare_url time :committed_at one :commit many :commits @@ -19,10 +22,10 @@ def short_sha sha.to_s[0..6] end def inspect_info - short_sha + " " + subject.inspect + "#{short_sha} #{subject.inspect}" end end end end