Sha256: 89a89ec365907c0687fa33b6a9bfce42b2215e6e833e5ae72eb8218059532251
Contents?: true
Size: 569 Bytes
Versions: 2
Compression:
Stored size: 569 Bytes
Contents
# -*- coding: utf-8; mode: ruby; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- vim:fenc=utf-8:filetype=ruby:et:sw=2:ts=2:sts=2 module GitCommitNotifier class DiffCallback attr_reader :tags def initialize @tags = [] end def match(event) @tags << { :action => :match, :token => event.old_element } end def discard_b(event) @tags << { :action => :discard_b, :token => event.new_element } end def discard_a(event) @tags << { :action => :discard_a, :token => event.old_element } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
git-commit-notifier-0.11.2 | lib/git_commit_notifier/diff_callback.rb |
git-commit-notifier-0.11.1 | lib/git_commit_notifier/diff_callback.rb |