Sha256: 5bf5ee121038c7f1b6c93cf7d26ab0df703e04cef1c95ef6fa0cf0a6cddaa04f
Contents?: true
Size: 493 Bytes
Versions: 3
Compression:
Stored size: 493 Bytes
Contents
# frozen_string_literal: true require 'pronto' module Pronto class BigFiles < Runner # Add convenience methods on top of Pronto::Git::Patch class PatchWrapper attr_reader :patch def initialize(patch) @patch = patch end def added_to? (patch.additions - patch.deletions).positive? end def path patch.delta.new_file[:path] end def first_added_line patch.added_lines.first end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pronto-bigfiles-0.1.2 | lib/pronto/bigfiles/patch_wrapper.rb |
pronto-bigfiles-0.1.1 | lib/pronto/bigfiles/patch_wrapper.rb |
pronto-bigfiles-0.1.0 | lib/pronto/bigfiles/patch_wrapper.rb |