Sha256: e95ff68fa02b623f422a06f6a97f70ba9d3d5b0e93e26405c6bbf375f2bddef6
Contents?: true
Size: 527 Bytes
Versions: 4
Compression:
Stored size: 527 Bytes
Contents
require 'git-webhook/repository' module GitWebhook class Builder attr_reader :data_hash def initialize(old, new, ref, repository_path, options = {}) @repository = GitWebhook::Repository.new(repository_path, options) data = { :before => old, :after => new, :ref => ref, :commits => @repository.commits_between(old, new), :repository => @repository.info } data.delete :repository if data[:repository].empty? @data_hash = data end end end
Version data entries
4 entries across 4 versions & 3 rubygems