rfix 1.1.4.pre → 1.2.3.pre

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: 6fbe425b94572358cfdd552e9e3167739344b05bee8d7348744fc2a7402d670c
4
- data.tar.gz: ab127357057f5ce2e23fd3a8625e19ef68f70d6328f6cdd6b76ef80e656a84b4
3
+ metadata.gz: 6bcd6aef2b13140e3ad5906afe8c58fce8f3a8647d1be0f681fecf242c878244
4
+ data.tar.gz: a4eef1a0ad07ea98f95c921a22df5fd81ea9629f5cc5d95c00fab79555ffef2f
5
5
  SHA512:
6
- metadata.gz: d03d86c10e9160006bb3a0bedc1d04dffa975666105c229ac961d50452781f6cdb039b392b98566bc75c27f97f3afe0880e5b6a13c00c021d36b69813bd1567b
7
- data.tar.gz: bb6237ef9601094acc513b17121ed7047c3dfa049835d562782a0f52ebea35e9b33001fd6939e105b0e2f9450c4d18295152b5f9ef1d486af98c30f673a92722
6
+ metadata.gz: b82cdb96773687c33e7cdcf2f3f28e4c8f6a848f3b46bda42b4a539f98dca280770bada8a5c000897b67aa2c0758842eacdd5b00fa9c05fca8af5c5b5716f705
7
+ data.tar.gz: 3f44de0851696fa862db4de220a328f54671670837ae4fb455050f5a1176074c0acbe591687d2b6194aed248ef82b4f4ec1d4bb19c5b3df2c9705f66d4ac8031
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rfix (1.1.4.pre)
4
+ rfix (1.2.3.pre)
5
5
  cri (~> 2.15.10)
6
6
  listen (~> 3.0)
7
7
  rainbow (~> 3.0)
@@ -31,9 +31,9 @@ module Rfix::Log
31
31
  end
32
32
 
33
33
  def say_debug(message)
34
- if debug? or test?
34
+ # if debug? or test?
35
35
  prt("{{i}} #{strip(message)}", to: $stderr)
36
- end
36
+ # end
37
37
  end
38
38
 
39
39
  def say_abort(message)
@@ -47,10 +47,13 @@ class Rfix::Repository
47
47
  end
48
48
 
49
49
  def include?(path, line)
50
+ say_debug "Checking #{path}:#{line}"
51
+
50
52
  if file = @files.get(path)
51
53
  return file.include?(line)
52
54
  end
53
55
 
56
+ say_debug "\tSkip file (return false)"
54
57
  return false
55
58
  end
56
59
 
@@ -5,6 +5,7 @@ class Rfix::Tracked < Rfix::File
5
5
 
6
6
  def include?(line)
7
7
  set = diff.each_line.to_a.map{ |l| l.new_lineno }.reject { |l| l == -1 }.to_set
8
+ say_debug "Does {{yellow:#{set}}} contain {{red:#{line}}}"
8
9
  set.include?(line)
9
10
  end
10
11
 
@@ -52,14 +53,10 @@ class Rfix::Tracked < Rfix::File
52
53
  end
53
54
 
54
55
  def diff
55
- upstream.diff(head, {
56
+ upstream.diff_workdir({
56
57
  include_untracked_content: true,
57
- # ignore_whitespace_change: true,
58
58
  recurse_untracked_dirs: true,
59
- disable_pathspec_match: false,
60
- # ignore_whitespace_eol: false,
61
59
  include_untracked: true,
62
- # ignore_whitespace: true,
63
60
  ignore_submodules: true,
64
61
  include_ignored: false,
65
62
  context_lines: 0,
@@ -67,7 +64,6 @@ class Rfix::Tracked < Rfix::File
67
64
  }).tap do |diff|
68
65
  diff.find_similar!(
69
66
  renames_from_rewrites: true,
70
- # ignore_whitespace: true,
71
67
  renames: true,
72
68
  copies: true
73
69
  )
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rfix
4
- VERSION = "1.1.4.pre"
4
+ VERSION = "1.2.3"
5
5
  end
@@ -11,11 +11,11 @@ Gem::Specification.new do |spec|
11
11
 
12
12
  if ENV["TRAVIS"]
13
13
  spec.version = "#{Rfix::VERSION}-#{ENV.fetch('TRAVIS_BUILD_NUMBER')}"
14
- elseif ENV["GITHUB_RUN_ID"]
14
+ elsif ENV["GITHUB_RUN_ID"]
15
15
  spec.version = "#{Rfix::VERSION}-#{ENV.fetch('GITHUB_RUN_ID')}"
16
16
  else
17
17
  # rubocop:disable Gemspec/DuplicatedAssignment
18
- spec.version = Rfix::VERSION
18
+ spec.version = [Rfix::VERSION, "pre"].join(".")
19
19
  # rubocop:enable Gemspec/DuplicatedAssignment
20
20
  end
21
21
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rfix
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4.pre
4
+ version: 1.2.3.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Linus Oleander
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-07-21 00:00:00.000000000 Z
11
+ date: 2020-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cri