From 97b273296f388431fb1ec47e4b0d2d47e940fc38 Mon Sep 17 00:00:00 2001 From: Edouard CHIN Date: Wed, 21 Feb 2024 11:32:31 +0100 Subject: [PATCH] Prepare for v1.1.0 --- CHANGELOG.md | 22 ++++++++++++++++++++++ Gemfile.lock | 2 +- lib/github_diff_parser/version.rb | 2 +- 3 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..a4763f9 --- /dev/null +++ b/CHANGELOG.md @@ -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). diff --git a/Gemfile.lock b/Gemfile.lock index f118774..d7657c1 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - github_diff_parser (1.0.0) + github_diff_parser (1.1.0) GEM remote: https://rubygems.org/ diff --git a/lib/github_diff_parser/version.rb b/lib/github_diff_parser/version.rb index 27ae670..4746f1c 100644 --- a/lib/github_diff_parser/version.rb +++ b/lib/github_diff_parser/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module GithubDiffParser - VERSION = "1.0.0" + VERSION = "1.1.0" end