Sha256: 005cdd9e98049d461c50f7572357c838732315e3ae60ed9d8d250ca6dd5840c3
Contents?: true
Size: 712 Bytes
Versions: 2
Compression:
Stored size: 712 Bytes
Contents
# frozen_string_literal: true require_relative "github_diff_parser/version" module GithubDiffParser InvalidDiff = Class.new(ArgumentError) autoload :Parser, "github_diff_parser/parser" autoload :Regexes, "github_diff_parser/regexes" autoload :Diff, "github_diff_parser/diff" autoload :Hunk, "github_diff_parser/hunk" autoload :Line, "github_diff_parser/line" extend self # Parse the output of a unified Git Diff. # # @param string [String] the output of a Git Diff # @raise [GithubDiffParser::InvalidDiff] if the +string+ is not # a correctly formatter Git Diff. # # @return [Array<GitubDiffParser::Diff>] def parse(string) Parser.new(string).process end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
github_diff_parser-1.0.0 | lib/github_diff_parser.rb |
github_diff_parser-0.1.0 | lib/github_diff_parser.rb |