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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 51254420e66a6bbcfec0028063aaa11ce807465500f995dbe0d83b1fbec417ce
4
- data.tar.gz: af72b0076ac9952b3068f4262c43a1b467bc952252e42de7d22300e32539cb00
3
+ metadata.gz: 986edf351b61fb5ffee66918df85a9b36f769a58dc1acac0fa8932cd3039e745
4
+ data.tar.gz: f287924bf315d0542fa6e2cb3b6cb115fde3320c9fc84bab7299ad135daadaa4
5
5
  SHA512:
6
- metadata.gz: 8b0ecff00ad4fe410b6779be21bfdfda6f5aa23f07850732242be7de6d9e6cc0a49b15b653fa11f03e04fabada25d171499b2a1a13a3910afb7c685803ef3b84
7
- data.tar.gz: f275801b0dbecab318c04a4fb833081b667c05c2cccb69cb5fd74dbfcbc6f4a6619852729b24031d60d39c3db36e156cc3f4a7dd6e7378ef2874021b9d463f63
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
@@ -8,3 +8,4 @@
8
8
  /spec/reports/
9
9
  /tmp/
10
10
  /node_modules/
11
+ /package-lock.json
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' if RUBY_VERSION >= '2.3.0'
5
+ gem 'byebug'
6
6
  gem 'pry'
7
- gem 'rubocop' if RUBY_VERSION >= '2.0.0'
7
+ gem 'rubocop'
8
8
  gem 'yard'
9
- gem 'parse_gemspec-cli' if RUBY_VERSION >= '2.0.0'
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
 
File without changes
File without changes
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,
@@ -1,3 +1,3 @@
1
1
  module GitDiffParser
2
- VERSION = '3.2.0'.freeze
2
+ VERSION = '4.0.0'.freeze
3
3
  end
File without changes
data/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "devDependencies": {
3
- "conventional-changelog-cli": "^1.2.0",
4
- "npm-check-updates": "^2.2.3",
3
+ "conventional-changelog-cli": "^2.0.0",
4
+ "npm-check-updates": "^11.0.0",
5
5
  "urijs": "^1.16.1"
6
6
  },
7
7
  "scripts": {
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: 3.2.0
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: 2019-03-13 00:00:00.000000000 Z
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
- rubyforge_project:
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