rubocop-changed 0.0.4 → 0.0.5

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: '09483b56d167f91f1954a53c6e9c073195d31701b34db56502ecf9a5ffefc397'
4
- data.tar.gz: 3be0d8c2565f4339a5e6dccacc064daec628613c9991b4bc51b54e8d8828db5c
3
+ metadata.gz: 90c7debb3a9b1fbbfaf2dd660305573bf4506106fa9dc6c0b694b9d059c92cf4
4
+ data.tar.gz: b4d8a89ffe6df757fdea3672875c63e81d088aa607861f27e5147a533ad86019
5
5
  SHA512:
6
- metadata.gz: 17ac53cd4aa5c7d6699160fce359444d9a4c03347698a4c9a16020547a2847e6a5359adbe4f90304b8a32273bb3f8a340a2fc9a35d49be7af1002d94aeb1a1d9
7
- data.tar.gz: 2aa6cf3ff10ea4a7c7b736bf6180d4998c119f3678582f94440a15457272ef40e62f250b9a2cbcc7b0dcfc2ad192f40af3420e2d3a6dfe68ed2b97ee08dfaf27
6
+ metadata.gz: 41fea45d587554352c80f91a9ed3196977df75405d0cff2b52efa44cbe1a97ae8be8bc4ee8e7b4a69850a44e6dfcc801f011c2992b739512be3d711d6abec0af
7
+ data.tar.gz: f18b591a52d6d5bfabc4e1cc7986762525935ef8e1cea303d55dd30da66677cd1a4012b73a6c1e5bc825e2ba16da5d08129c8eee476b084e66866f26599c04e3
@@ -11,7 +11,7 @@ module RuboCop
11
11
  GIT_COMMANDS = {
12
12
  changed_files: 'git diff-tree -r --no-commit-id --name-status %<compared_branch>s %<current_branch>s',
13
13
  current_branch: 'git rev-parse --abbrev-ref HEAD',
14
- default_branch: 'git symbolic-ref refs/remotes/origin/HEAD',
14
+ default_branch: "git remote show origin | sed -n '/HEAD branch/s/.*: //p' | xargs",
15
15
  new_files: 'git status --porcelain=v1'
16
16
  }.freeze
17
17
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RuboCop
4
4
  module Changed
5
- VERSION = '0.0.4'
5
+ VERSION = '0.0.5'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-changed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aslan Dukaev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-27 00:00:00.000000000 Z
11
+ date: 2024-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop