Sha256: 49e7fafa1a79cadfd77d01e3298335a53c0b712ede1bbd13dfefaa170fbb188e

Contents?: true

Size: 215 Bytes

Versions: 113

Compression:

Stored size: 215 Bytes

Contents

class Commits
  def initialize(base_head)
    @base_head = base_head.strip.split(" ".freeze)
  end

  def base
    base_head.first
  end

  def head
    base_head.last
  end

  private

  attr_reader :base_head
end

Version data entries

113 entries across 113 versions & 1 rubygems

Version Path
danger-4.1.0 lib/danger/ci_source/support/commits.rb
danger-4.0.5 lib/danger/ci_source/support/commits.rb
danger-4.0.4 lib/danger/ci_source/support/commits.rb
danger-4.0.3 lib/danger/ci_source/support/commits.rb
danger-4.0.2 lib/danger/ci_source/support/commits.rb
danger-4.0.1 lib/danger/ci_source/support/commits.rb
danger-4.0.0 lib/danger/ci_source/support/commits.rb
danger-3.6.0 lib/danger/ci_source/support/commits.rb
danger-3.5.5 lib/danger/ci_source/support/commits.rb
danger-3.5.4 lib/danger/ci_source/support/commits.rb
danger-3.5.3 lib/danger/ci_source/support/commits.rb
danger-3.5.2 lib/danger/ci_source/support/commits.rb
danger-3.5.1 lib/danger/ci_source/support/commits.rb