Skip to content

Commit

Permalink
Prepare for v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Edouard-chin committed Feb 21, 2024
1 parent d96cfbe commit 97b2732
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
22 changes: 22 additions & 0 deletions CHANGELOG.md
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).
2 changes: 1 addition & 1 deletion Gemfile.lock
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/
Expand Down
2 changes: 1 addition & 1 deletion lib/github_diff_parser/version.rb
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

0 comments on commit 97b2732

Please sign in to comment.