rfix 1.2.0 → 1.2.2.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: ef900d9367b33de2920d9023babdd0e4b8a9a9f3b64bcc546f50dda98770b965
4
- data.tar.gz: d120d6254494a84b2f48f65c1922a27d03e66f64444fe51f9769502d3523e618
3
+ metadata.gz: ba53958e4103258b8e86578694c48233c47ffef40f9731086a3cd99b1da5b719
4
+ data.tar.gz: b8aacca8d0c536a3c4f4135f15951be49fcad5d89524e2d8f2f1b85459667b9f
5
5
  SHA512:
6
- metadata.gz: cb754a3d385e02dd9842ff61136cf41d62ab5a5b0543be8e5e0f14fbd4ac56dbe9a3b51823c78b786abfc77b54ef9c561356422857496cc1571405da25ecc8e0
7
- data.tar.gz: be1b3e5dce4181b22a7e158f1ef8053fe642e8046ac8e8bb4c8dcb2594b58e58226bb977c24b1146ead6c03d6889eb14628af2c883cb5c92173f712c6a4e9dd0
6
+ metadata.gz: f2bca003e662486e4d96a1619c4f90d2a17e8ac2ec64b43b12b4841fcdbe3d66d18238a62c2d21fb8e210a1bb22e66c0e4ab2162155a6668e6814c44ff522adb
7
+ data.tar.gz: 9a53c0431ab2ea56084b2cc6de231869b00e0bf91acb6a73cd89fd623ad569c0f638f48927f7a39d55260f62ce990750d33334950a729246d774f97a3b12ce77
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rfix (1.2.0)
4
+ rfix (1.2.2.pre)
5
5
  cri (~> 2.15.10)
6
6
  listen (~> 3.0)
7
7
  rainbow (~> 3.0)
data/lib/rfix/log.rb CHANGED
@@ -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
 
data/lib/rfix/tracked.rb CHANGED
@@ -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
  )
data/lib/rfix/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rfix
4
- VERSION = "1.2.0"
4
+ VERSION = "1.2.2"
5
5
  end
data/rfix.gemspec CHANGED
@@ -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.2.0
4
+ version: 1.2.2.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
@@ -337,9 +337,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
337
337
  version: 2.5.0
338
338
  required_rubygems_version: !ruby/object:Gem::Requirement
339
339
  requirements:
340
- - - ">="
340
+ - - ">"
341
341
  - !ruby/object:Gem::Version
342
- version: '0'
342
+ version: 1.3.1
343
343
  requirements:
344
344
  - git, v2.0+
345
345
  rubygems_version: 3.0.3