rfix 1.2.3.pre → 1.2.4

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: 6bcd6aef2b13140e3ad5906afe8c58fce8f3a8647d1be0f681fecf242c878244
4
- data.tar.gz: a4eef1a0ad07ea98f95c921a22df5fd81ea9629f5cc5d95c00fab79555ffef2f
3
+ metadata.gz: 0c8798e4878ee4ad37aab733473ce82d50881bedadb93daaa5ced93bea364480
4
+ data.tar.gz: '08d0952d66e3c3cfb68f906a5ec0154bba294c8a8aaf628279ed8f84bc808abe'
5
5
  SHA512:
6
- metadata.gz: b82cdb96773687c33e7cdcf2f3f28e4c8f6a848f3b46bda42b4a539f98dca280770bada8a5c000897b67aa2c0758842eacdd5b00fa9c05fca8af5c5b5716f705
7
- data.tar.gz: 3f44de0851696fa862db4de220a328f54671670837ae4fb455050f5a1176074c0acbe591687d2b6194aed248ef82b4f4ec1d4bb19c5b3df2c9705f66d4ac8031
6
+ metadata.gz: a97a0f8265bf1c24d01f3b73a4c012e040914e85b9f4b69506f9003e7fd26ee1cd10d9d30a4fc16a5e19bbe029ee1127a2e0869ad82d61247721a819e96874c0
7
+ data.tar.gz: cee388a2b404aa6313bed6bb0c655370b1a0ab67af41112676f9c28ad3e4c6fa2fb857d16942baa9c0317df502f5e5e3d70cdc3e64e2b4312a26acf7d8072031
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rfix (1.2.3.pre)
4
+ rfix (1.2.4)
5
5
  cri (~> 2.15.10)
6
6
  listen (~> 3.0)
7
7
  rainbow (~> 3.0)
@@ -10,7 +10,7 @@ module Rfix
10
10
  raise Error.new("Please run {{command:rfix setup}} first")
11
11
  end
12
12
 
13
- String.new(name).resolve(with: with)
13
+ Branch::Name.new(name).resolve(with: with)
14
14
  end
15
15
 
16
16
  def self.set(branch, at: Dir.pwd)
@@ -1,5 +1,5 @@
1
1
  option :r, :root, "{{*}} Project root path", default: Dir.pwd, argument: :required
2
- option :b, :"main-branch", "{{*}} Branch to use", default: "master", argument: :required
2
+ option :b, :"main-branch", "{{*}} Branch to use", argument: :required
3
3
  option :l, :limit, "{{*}} Limit number of files", argument: :required, transform: method(:Integer)
4
4
 
5
5
  flag nil, :dry, "{{*}} Run in dry mode"
@@ -78,6 +78,10 @@ def setup(r_args = [], opts, _args, files: [], reference:)
78
78
  say_debug "Cleared Rubocop`s cache"
79
79
  end
80
80
 
81
+ if opts[:debug]
82
+ Rfix.test = true
83
+ end
84
+
81
85
  if block_given?
82
86
  yield(repo, [])
83
87
  end
@@ -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)
@@ -113,7 +113,7 @@ class Rfix::Repository
113
113
  params[:paths] = @paths
114
114
  end
115
115
 
116
- say_debug("Run diff on #{reference}")
116
+ say_debug("Run diff on {{info:#{reference}}}")
117
117
  upstream.diff(head, **params).tap do |diff|
118
118
  diff.find_similar!(
119
119
  renames_from_rewrites: true,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rfix
4
- VERSION = "1.2.3"
4
+ VERSION = "1.2.4"
5
5
  end
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
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, "pre"].join(".")
18
+ spec.version = Rfix::VERSION
19
19
  # rubocop:enable Gemspec/DuplicatedAssignment
20
20
  end
21
21
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rfix
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3.pre
4
+ version: 1.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Linus Oleander
@@ -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: 1.3.1
342
+ version: '0'
343
343
  requirements:
344
344
  - git, v2.0+
345
345
  rubygems_version: 3.0.3