git_diff_parser 3.2.0 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.conventional-changelog.context.js +0 -0
- data/.github/workflows/ci.yaml +28 -0
- data/.gitignore +1 -0
- data/.rspec +0 -0
- data/.rubocop.yml +0 -0
- data/.tachikoma.yml +0 -0
- data/CODE_OF_CONDUCT.md +0 -0
- data/Gemfile +3 -3
- data/LICENSE.txt +0 -0
- data/README.md +0 -0
- data/Rakefile +0 -0
- data/changelog.md +7 -0
- data/git_diff_parser.gemspec +0 -0
- data/lib/git_diff_parser/diff_parser.rb +0 -0
- data/lib/git_diff_parser/line.rb +0 -0
- data/lib/git_diff_parser/patch.rb +3 -0
- data/lib/git_diff_parser/version.rb +1 -1
- data/lib/git_diff_parser.rb +0 -0
- data/package.json +2 -2
- data/thoughtbot-hound/LICENSE +0 -0
- metadata +4 -5
- data/.travis.yml +0 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 986edf351b61fb5ffee66918df85a9b36f769a58dc1acac0fa8932cd3039e745
|
4
|
+
data.tar.gz: f287924bf315d0542fa6e2cb3b6cb115fde3320c9fc84bab7299ad135daadaa4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7dd831db0671683540cb4c073499229fef3e4c9033f236121d7ddfcebd8f4c91439d1a5cb84b2fe491cbf3b642fbc85f1cbb7e0e4f0ac35220df4058b7c9105
|
7
|
+
data.tar.gz: 222af9d5750d2e15bbbbf273a0c64ebac75702dd37495cd52981c36f02f651f9f21b197321064cfdf1098b6141fdd0b0dec0bdeb7c1d30b056efe84b3753c442
|
File without changes
|
@@ -0,0 +1,28 @@
|
|
1
|
+
name: CI
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches:
|
6
|
+
- master
|
7
|
+
pull_request:
|
8
|
+
types:
|
9
|
+
- opened
|
10
|
+
- synchronize
|
11
|
+
- reopened
|
12
|
+
|
13
|
+
jobs:
|
14
|
+
test:
|
15
|
+
strategy:
|
16
|
+
fail-fast: false
|
17
|
+
matrix:
|
18
|
+
os: [ubuntu-latest]
|
19
|
+
# Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0'
|
20
|
+
ruby: [2.6, 2.7, '3.0', head]
|
21
|
+
runs-on: ${{ matrix.os }}
|
22
|
+
steps:
|
23
|
+
- uses: actions/checkout@v2
|
24
|
+
- uses: ruby/setup-ruby@v1
|
25
|
+
with:
|
26
|
+
ruby-version: ${{ matrix.ruby }}
|
27
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
28
|
+
- run: bundle exec rake
|
data/.gitignore
CHANGED
data/.rspec
CHANGED
File without changes
|
data/.rubocop.yml
CHANGED
File without changes
|
data/.tachikoma.yml
CHANGED
File without changes
|
data/CODE_OF_CONDUCT.md
CHANGED
File without changes
|
data/Gemfile
CHANGED
@@ -2,8 +2,8 @@ source 'https://rubygems.org'
|
|
2
2
|
|
3
3
|
# Specify your gem's dependencies in git_diff_parser.gemspec
|
4
4
|
gemspec
|
5
|
-
gem 'byebug'
|
5
|
+
gem 'byebug'
|
6
6
|
gem 'pry'
|
7
|
-
gem 'rubocop'
|
7
|
+
gem 'rubocop'
|
8
8
|
gem 'yard'
|
9
|
-
gem 'parse_gemspec-cli'
|
9
|
+
gem 'parse_gemspec-cli'
|
data/LICENSE.txt
CHANGED
File without changes
|
data/README.md
CHANGED
File without changes
|
data/Rakefile
CHANGED
File without changes
|
data/changelog.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
# [4.0.0](https://github.com/packsaddle/ruby-git_diff_parser/compare/v3.2.0...v4.0.0) (2021-11-04)
|
2
|
+
|
3
|
+
### BREAKING CHANGES
|
4
|
+
|
5
|
+
* **patch:** Fix changed_lines number calculation ([30bfcf5](https://github.com/packsaddle/ruby-git_diff_parser/commit/30bfcf5)) [#336](https://github.com/packsaddle/ruby-git_diff_parser/pull/336)
|
6
|
+
|
7
|
+
|
1
8
|
<a name="3.2.0"></a>
|
2
9
|
# [3.2.0](https://github.com/packsaddle/ruby-git_diff_parser/compare/v3.1.0...v3.2.0) (2019-03-13)
|
3
10
|
|
data/git_diff_parser.gemspec
CHANGED
File without changes
|
File without changes
|
data/lib/git_diff_parser/line.rb
CHANGED
File without changes
|
@@ -5,6 +5,7 @@ module GitDiffParser
|
|
5
5
|
MODIFIED_LINE = /^\+(?!\+|\+)/
|
6
6
|
REMOVED_LINE = /^[-]/
|
7
7
|
NOT_REMOVED_LINE = /^[^-]/
|
8
|
+
NO_NEWLINE_MESSAGE = /^\$/
|
8
9
|
|
9
10
|
attr_accessor :file, :body, :secure_hash
|
10
11
|
# @!attribute [rw] file
|
@@ -61,6 +62,8 @@ module GitDiffParser
|
|
61
62
|
case content
|
62
63
|
when RANGE_INFORMATION_LINE
|
63
64
|
line_number = Regexp.last_match[:line_number].to_i
|
65
|
+
when NO_NEWLINE_MESSAGE
|
66
|
+
# nop
|
64
67
|
when MODIFIED_LINE
|
65
68
|
line = Line.new(
|
66
69
|
content: content,
|
data/lib/git_diff_parser.rb
CHANGED
File without changes
|
data/package.json
CHANGED
data/thoughtbot-hound/LICENSE
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git_diff_parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sanemat
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -60,11 +60,11 @@ extensions: []
|
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
62
|
- ".conventional-changelog.context.js"
|
63
|
+
- ".github/workflows/ci.yaml"
|
63
64
|
- ".gitignore"
|
64
65
|
- ".rspec"
|
65
66
|
- ".rubocop.yml"
|
66
67
|
- ".tachikoma.yml"
|
67
|
-
- ".travis.yml"
|
68
68
|
- CODE_OF_CONDUCT.md
|
69
69
|
- Gemfile
|
70
70
|
- LICENSE.txt
|
@@ -101,8 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
101
101
|
- !ruby/object:Gem::Version
|
102
102
|
version: '0'
|
103
103
|
requirements: []
|
104
|
-
|
105
|
-
rubygems_version: 2.7.6
|
104
|
+
rubygems_version: 3.1.6
|
106
105
|
signing_key:
|
107
106
|
specification_version: 4
|
108
107
|
summary: Parse `git diff` into patches and lines.
|
data/.travis.yml
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
language: "ruby"
|
2
|
-
sudo: false
|
3
|
-
rvm:
|
4
|
-
- "1.9.3"
|
5
|
-
- "2.0.0-p648"
|
6
|
-
- "2.1.10"
|
7
|
-
- "2.2.10"
|
8
|
-
- "2.3.8"
|
9
|
-
- "2.4.5"
|
10
|
-
- "2.5.3"
|
11
|
-
- "2.6.1"
|
12
|
-
- "ruby-head"
|
13
|
-
matrix:
|
14
|
-
allow_failures:
|
15
|
-
- rvm: "ruby-head"
|
16
|
-
before_install:
|
17
|
-
- "gem update bundler"
|
18
|
-
- "bin/setup"
|
19
|
-
notifications:
|
20
|
-
email:
|
21
|
-
- ogataken@gmail.com
|