-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d96cfbe
commit 97b2732
Showing
3 changed files
with
24 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Changelog | ||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## Unreleased | ||
|
||
## [1.1.0] - 2024-2-21 | ||
### Added | ||
- Github Diff Parser parses the permissions bits and you now have have access to various method | ||
such as: | ||
- `GithubDiffParser::Diff#normal_file?` when the bits are 100644 | ||
- `GithubDiffParser::Diff#executable?` when the bits are 107555 | ||
- `GithubDiffParser::Diff#symlink?` when the bits are 120000 | ||
- Introduce `GithubDiffParser::Diff#symlink_source`. When the diff applies to a symbolic link, `symlink_source` will | ||
return the path to where the symbolic link points to. | ||
- Introduce `GithubDiffParser::Diff#apply`, a simple implementation of `git apply`. | ||
- Introduce `GithubDiffParser::Diff#revert`, a simple implementation of `git apply -R`. | ||
|
||
### Fixed | ||
- `GithubDiffParser::Line#content` didn't include `\n` (if the line had one). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
PATH | ||
remote: . | ||
specs: | ||
github_diff_parser (1.0.0) | ||
github_diff_parser (1.1.0) | ||
|
||
GEM | ||
remote: https://rubygems.org/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
module GithubDiffParser | ||
VERSION = "1.0.0" | ||
VERSION = "1.1.0" | ||
end |