Skip to content

Commit

Permalink
Prepare to release 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Edouard-chin committed Sep 2, 2024
1 parent b1ca720 commit 6387609
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,30 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

## [1.2.0] - 2024-9-2
### Added
- Added `GithubDiffParser::Hunk#context` which returns the context of the hunk.
In this example, it would return "def blabla"
```diff
@@ +1,6 -1,18 def blabla
```

- Added `GithubDiffParser::Hunk#previous_line_count` which returns the prevous line count in a hunk.
In this example, it would return 6.
```diff
@@ +1,6 -1,18 def blabla
```

- Added `GithubDiffParser::Hunk#new_line_count` which returns the prevous line count in a hunk.
In this example, it would return 18.
```diff
@@ +1,6 -1,18 def blabla
```

### Fixed
- `GithubDiffParser::Diff#previous_line_number_is_now` could return a wrong value
for the line number 1 in a file.

## [1.1.1] - 2024-2-21
### Fixed
- `GithubDiffParser::Diff#new_mode?` and ``GithubDiffParser::Diff#deleted_mode?` would raise
Expand Down
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.1.1)
github_diff_parser (1.2.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.1.1"
VERSION = "1.2.0"
end

0 comments on commit 6387609

Please sign in to comment.