rfix 1.1.0.pre.150

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +43 -0
  3. data/.rspec +2 -0
  4. data/.rubocop.yml +87 -0
  5. data/.travis.yml +37 -0
  6. data/Gemfile +2 -0
  7. data/Gemfile.base +14 -0
  8. data/Gemfile.base.lock +172 -0
  9. data/Gemfile.lock +179 -0
  10. data/Guardfile +16 -0
  11. data/LICENSE.txt +21 -0
  12. data/Makefile +4 -0
  13. data/README.md +92 -0
  14. data/Rakefile +27 -0
  15. data/bin/bundle +114 -0
  16. data/bin/console +29 -0
  17. data/bin/guard +29 -0
  18. data/bin/rake +29 -0
  19. data/bin/rfix +29 -0
  20. data/bin/rspec +29 -0
  21. data/bin/setup +29 -0
  22. data/ci/Gemfile.rubocop-0.80 +2 -0
  23. data/ci/Gemfile.rubocop-0.80.lock +170 -0
  24. data/ci/Gemfile.rubocop-0.81 +2 -0
  25. data/ci/Gemfile.rubocop-0.81.lock +170 -0
  26. data/ci/Gemfile.rubocop-0.82 +2 -0
  27. data/ci/Gemfile.rubocop-0.82.lock +170 -0
  28. data/ci/Gemfile.rubocop-0.83 +2 -0
  29. data/ci/Gemfile.rubocop-0.83.lock +168 -0
  30. data/ci/Gemfile.rubocop-0.84 +2 -0
  31. data/ci/Gemfile.rubocop-0.84.lock +171 -0
  32. data/ci/Gemfile.rubocop-0.85 +2 -0
  33. data/ci/Gemfile.rubocop-0.85.1 +2 -0
  34. data/ci/Gemfile.rubocop-0.85.1.lock +173 -0
  35. data/ci/Gemfile.rubocop-0.85.lock +173 -0
  36. data/exe/rfix +30 -0
  37. data/lib/rfix.rb +33 -0
  38. data/lib/rfix/box.rb +112 -0
  39. data/lib/rfix/branch.rb +30 -0
  40. data/lib/rfix/branches/base.rb +29 -0
  41. data/lib/rfix/branches/head.rb +11 -0
  42. data/lib/rfix/branches/main.rb +33 -0
  43. data/lib/rfix/branches/name.rb +21 -0
  44. data/lib/rfix/branches/reference.rb +19 -0
  45. data/lib/rfix/branches/upstream.rb +11 -0
  46. data/lib/rfix/cmd.rb +39 -0
  47. data/lib/rfix/commands/branch.rb +15 -0
  48. data/lib/rfix/commands/extensions/options.rb +8 -0
  49. data/lib/rfix/commands/help.rb +7 -0
  50. data/lib/rfix/commands/helper/args.rb +137 -0
  51. data/lib/rfix/commands/helper/help.rb +6 -0
  52. data/lib/rfix/commands/helper/loader.rb +6 -0
  53. data/lib/rfix/commands/helper/option.rb +0 -0
  54. data/lib/rfix/commands/helper/params.rb +0 -0
  55. data/lib/rfix/commands/helper/rubocop.rb +17 -0
  56. data/lib/rfix/commands/info.rb +30 -0
  57. data/lib/rfix/commands/lint.rb +23 -0
  58. data/lib/rfix/commands/local.rb +12 -0
  59. data/lib/rfix/commands/origin.rb +19 -0
  60. data/lib/rfix/commands/setup.rb +29 -0
  61. data/lib/rfix/commands/welcome.rb +24 -0
  62. data/lib/rfix/deleted.rb +13 -0
  63. data/lib/rfix/error.rb +2 -0
  64. data/lib/rfix/extensions/extensions.rb +18 -0
  65. data/lib/rfix/extensions/offense.rb +78 -0
  66. data/lib/rfix/extensions/string.rb +8 -0
  67. data/lib/rfix/file.rb +46 -0
  68. data/lib/rfix/file_cache.rb +59 -0
  69. data/lib/rfix/formatter.rb +126 -0
  70. data/lib/rfix/git_helper.rb +59 -0
  71. data/lib/rfix/log.rb +131 -0
  72. data/lib/rfix/no_file.rb +13 -0
  73. data/lib/rfix/rake/paths.rb +50 -0
  74. data/lib/rfix/rake/support.rb +75 -0
  75. data/lib/rfix/repository.rb +201 -0
  76. data/lib/rfix/rfix.rb +34 -0
  77. data/lib/rfix/tracked.rb +76 -0
  78. data/lib/rfix/tracked_file.rb +16 -0
  79. data/lib/rfix/untracked.rb +13 -0
  80. data/lib/rfix/version.rb +5 -0
  81. data/resources/ps.png +0 -0
  82. data/rfix.gemspec +65 -0
  83. data/tasks/bump.rake +11 -0
  84. data/tasks/bundle.rake +17 -0
  85. data/tasks/complex.rake +54 -0
  86. data/tasks/simple.rake +58 -0
  87. data/tasks/travis.rake +74 -0
  88. data/tasks/vendor.rake +34 -0
  89. metadata +333 -0
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "rfix/git_file"
4
+
5
+ class Rfix::TrackedFile < Rfix::GitFile
6
+ def refresh!
7
+ @ranges = git("--no-pager", "diff", *params, "#{ref}..HEAD", path)
8
+ .grep(/^@@ -\d+(?:,\d+)? \+(\d+)(?:,(\d+))? @@/) do
9
+ Regexp.last_match(1).to_i...(Regexp.last_match(1).to_i + (Regexp.last_match(2) || 1).to_i)
10
+ end
11
+ end
12
+
13
+ def include?(line)
14
+ @ranges.any? { |range| range.include?(line) }
15
+ end
16
+ end
@@ -0,0 +1,13 @@
1
+ class Rfix::Untracked < Rfix::File
2
+ def include?(_)
3
+ return true
4
+ end
5
+
6
+ def refresh!
7
+ # NOP
8
+ end
9
+
10
+ def inspect
11
+ "<Untracked({{info:#{path}}})>"
12
+ end
13
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Rfix
4
+ VERSION = "1.1.0"
5
+ end
Binary file
@@ -0,0 +1,65 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "pathname"
4
+ require_relative "lib/rfix/version"
5
+ # require_relative "lib/rfix/gem_helper"
6
+
7
+ Gem::Specification.new do |spec|
8
+ # extend GemHelper
9
+
10
+ spec.name = "rfix"
11
+
12
+ if ENV["TRAVIS"]
13
+ spec.version = "#{Rfix::VERSION}-#{ENV.fetch('TRAVIS_BUILD_NUMBER')}"
14
+ else
15
+ # rubocop:disable Gemspec/DuplicatedAssignment
16
+ spec.version = Rfix::VERSION
17
+ # rubocop:enable Gemspec/DuplicatedAssignment
18
+ end
19
+
20
+ spec.authors = ["Linus Oleander"]
21
+ spec.email = ["linus@oleander.nu"]
22
+ spec.summary = "RuboCop CLI that only lints and auto-fixes code you committed by utilizing `git-log` and `git-diff`"
23
+ # rubocop:enable Layout/LineLength
24
+
25
+ spec.description = <<~TEXT
26
+ RuboCop CLI that only lints and auto-fixes code you committed by utilizing `git-log` and `git-diff`. Rfix CLI makes it possible to lint (`rfix lint`) and auto-fix (`rfix local|origin|branch`) code changes since a certain point in history. You can auto-fix code committed since creating the current branch (`rfix origin`) or since pushing to upstream (`rfix local`).
27
+
28
+ Includes a RuboCop formatter with syntax highlighting and build in hyperlinks for offense documentation.
29
+
30
+ Holds the same CLI arguments as RuboCop. Run `rfix --help` for a complete list or `rfix` for supported commands.
31
+ TEXT
32
+ spec.homepage = "https://github.com/oleander/rfix-rb"
33
+ spec.license = "MIT"
34
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.5.0")
35
+
36
+ spec.metadata["homepage_uri"] = spec.homepage
37
+ # Specify which files should be added to the gem when it is released.
38
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
39
+ validate_file = ->(f) { f.match(%r{^(test|spec|features)/}) }
40
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
41
+ `git ls-files -z`.split("\x0").reject(&validate_file)
42
+ end
43
+
44
+ spec.files += Dir.glob("vendor/shopify/cli-ui/lib/**/*").reject(&validate_file)
45
+
46
+ spec.bindir = "exe"
47
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
48
+ spec.require_paths = ["lib", "vendor/shopify/cli-ui/lib"]
49
+
50
+ spec.requirements << "git, v2.0+"
51
+
52
+ spec.add_runtime_dependency "cri", "~> 2.15.10"
53
+ spec.add_runtime_dependency "listen", "~> 3.0"
54
+ spec.add_runtime_dependency "rainbow", "~> 3.0"
55
+ spec.add_runtime_dependency "rouge", "~> 3.20"
56
+ spec.add_runtime_dependency "rubocop", ">= 0.80"
57
+ spec.add_runtime_dependency "rugged", "~> 1.0.0"
58
+
59
+ spec.add_development_dependency "rspec", "~> 3.0"
60
+ spec.add_development_dependency "aruba", "~> 1.0"
61
+ spec.add_development_dependency "colorize", "~> 0.8.1"
62
+ spec.add_development_dependency "git", "~> 1.7.0"
63
+ spec.add_development_dependency "rake", "~> 12.3"
64
+ spec.add_development_dependency "pry", "~> 0.13.1"
65
+ end
@@ -0,0 +1,11 @@
1
+ namespace :gem do
2
+ task :inc do
3
+ sh "gem", "bump", "-c", "-m", "'Bump version to %{version}'"
4
+ end
5
+
6
+ task :amend do
7
+ sh "git commit --amend --no-edit"
8
+ end
9
+
10
+ task bump: [:inc, Bundle::INSTALL, Bundle::ADD, :amend]
11
+ end
@@ -0,0 +1,17 @@
1
+ namespace :bundle do
2
+ task :install do
3
+ gemfiles.each do |gemfile|
4
+ next if gemfile.end_with?(".lock")
5
+
6
+ sh "bundle install", "--gemfile", gemfile, "--jobs 3"
7
+ end
8
+ end
9
+
10
+ namespace :git do
11
+ task :add do
12
+ gemfiles.each do |gemfile|
13
+ sh "git add", gemfile
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,54 @@
1
+ require "tmpdir"
2
+
3
+ namespace :bundle do
4
+ namespace :complex do
5
+ directory Bundle::TMP
6
+
7
+ desc "Build complex bundle"
8
+ task build: [Bundle::Complex::FILE, Bundle::Complex::TEST] do
9
+ say "Complex bundle has been stored @ #{Bundle::Complex::FILE}"
10
+ end
11
+
12
+ desc "Rebuild complex bundle"
13
+ task rebuild: [:flush, Bundle::Complex::BUILD]
14
+
15
+ desc "Remove complex bundle"
16
+ task :flush do
17
+ rm_f Bundle::Complex::FILE
18
+ rm_rf Bundle::Complex::REPO
19
+ end
20
+
21
+ desc "Test repo by cloning to local directory"
22
+ task test: Bundle::Complex::FILE do
23
+ Dir.mktmpdir do |repo|
24
+ sh "git clone", Bundle::Complex::FILE, repo, "--branch master"
25
+ cd repo do
26
+ sh "git rev-list --count HEAD"
27
+ sh "git ls-files"
28
+ sh "git status"
29
+ end
30
+ end
31
+
32
+ say "Finished testing complex bundle"
33
+ end
34
+
35
+ file Bundle::Complex::FILE => Bundle::Complex::REPO do
36
+ cd Bundle::Complex::REPO do
37
+ sh "git bundle create", Bundle::Complex::FILE, "--branches --tags"
38
+ end
39
+ end
40
+
41
+ file Bundle::Complex::REPO do
42
+ sh "git clone", Bundle::Complex::GITHUB, Bundle::Complex::REPO, "--branch", "master"
43
+
44
+ cd Bundle::Complex::REPO do
45
+ sh "git", "reset --hard 27fec8"
46
+
47
+ sh "git config user.email 'not-my@real-email.com'"
48
+ sh "git config user.name 'John Doe'"
49
+
50
+ sh "git tag", Bundle::Complex::TAG
51
+ end
52
+ end
53
+ end
54
+ end
@@ -0,0 +1,58 @@
1
+ namespace :bundle do
2
+ namespace :simple do
3
+ directory Bundle::Simple::REPO
4
+
5
+ desc "Build complex bundle"
6
+ task build: [Bundle::Simple::FILE, Bundle::Simple::TEST] do
7
+ say "Simple bundle has been stored @ #{Bundle::Simple::FILE}"
8
+ end
9
+
10
+ desc "Rebuild complex bundle"
11
+ task rebuild: [:flush, Bundle::Simple::BUILD]
12
+
13
+ desc "Remove complex bundle"
14
+ task :flush do
15
+ rm_f Bundle::Simple::FILE
16
+ rm_rf Bundle::Simple::REPO
17
+ end
18
+
19
+ desc "Test repo by cloning to local directory"
20
+ task test: Bundle::Simple::FILE do
21
+ Dir.mktmpdir do |repo|
22
+ sh "git clone", Bundle::Simple::FILE, repo, "--branch master"
23
+ cd repo do
24
+ sh "git rev-list --count HEAD"
25
+ sh "git ls-files"
26
+ sh "git status"
27
+ end
28
+ end
29
+
30
+ say "Finished testing simple bundle"
31
+ end
32
+
33
+ file Bundle::Simple::FILE => Bundle::Simple::REPO do
34
+ cd Bundle::Simple::REPO do
35
+ sh "git bundle create", Bundle::Simple::FILE, "--branches --tags"
36
+ end
37
+ end
38
+
39
+ file Bundle::Simple::REPO do
40
+ cd Bundle::Simple::REPO do
41
+ touch ".gitignore"
42
+
43
+ sh "git init"
44
+ sh "git add .gitignore"
45
+ sh "git commit -m 'A Commit Message'"
46
+
47
+ sh "git config push.default current"
48
+ sh "git config branch.autosetupmerge always"
49
+ sh "git config branch.autosetuprebase always"
50
+
51
+ sh "git config user.email 'not-my@real-email.com'"
52
+ sh "git config user.name 'John Doe'"
53
+
54
+ sh "git tag", Bundle::Simple::TAG
55
+ end
56
+ end
57
+ end
58
+ end
@@ -0,0 +1,74 @@
1
+ RSpec::Core::RakeTask.new(:rspec)
2
+
3
+ namespace :travis do
4
+ desc "Set up dependencies"
5
+ task setup: [Vendor::BUILD, Bundle::BUILD, Travis::GIT]
6
+
7
+ desc "Install gem"
8
+ task Travis::INSTALL => Travis::SETUP do
9
+ Rake::Task[:install].invoke
10
+ end
11
+
12
+ desc "Run test suite"
13
+ task spec: Travis::SETUP do
14
+ Rake::Task[:rspec].invoke
15
+ end
16
+
17
+ desc "Verify bin on CI"
18
+ task verify: [Travis::INSTALL, Travis::TASKS]
19
+
20
+ namespace :git do
21
+ task :config do
22
+ sh "git config --global user.email 'not-my@real-email.com'"
23
+ sh "git config --global user.name 'John Doe'"
24
+ end
25
+ end
26
+
27
+ namespace :tasks do
28
+ desc "Run this"
29
+ task all: [:welcome, :info]
30
+
31
+ task :rfix do
32
+ clone_and_run do
33
+ sh "rfix"
34
+ end
35
+ end
36
+
37
+ task :info do
38
+ clone_and_run do
39
+ sh "rfix info"
40
+ end
41
+ end
42
+
43
+ task :help do
44
+ clone_and_run do
45
+ sh "rfix --help"
46
+ end
47
+ end
48
+
49
+ task :welcome do
50
+ clone_and_run do
51
+ sh "rfix welcome"
52
+ end
53
+ end
54
+ end
55
+ end
56
+
57
+ task :codeGen do
58
+ sleep rand
59
+ end
60
+
61
+ task compile: :codeGen do
62
+ say "in compile"
63
+ sleep rand
64
+ end
65
+
66
+ task dataLoad: :codeGen do
67
+ say "in data"
68
+ # sleep rand
69
+ end
70
+
71
+ task gtest: [:compile, :dataLoad] do
72
+ say "in test"
73
+ sleep rand
74
+ end
@@ -0,0 +1,34 @@
1
+ namespace :vendor do
2
+ namespace :shopify do
3
+ directory Vendor::DIR
4
+
5
+ desc "Downloads shopify repository"
6
+ task build: [Vendor::REPO, Vendor::TEST]
7
+
8
+ desc "Re-download shopify repository"
9
+ task rebuild: [:flush, Vendor::BUILD]
10
+
11
+ desc "Remove shopify repository"
12
+ task :flush do
13
+ rm_rf Vendor::REPO
14
+ end
15
+
16
+ desc "Test validity of repo"
17
+ task test: Vendor::REPO do
18
+ cd Vendor::REPO do
19
+ sh "git rev-list --count HEAD"
20
+ sh "git status"
21
+ end
22
+
23
+ say "Finished testing vendor"
24
+ end
25
+
26
+ file Vendor::REPO => Vendor::DIR do
27
+ sh "git clone", Vendor::GITHUB, Vendor::REPO
28
+
29
+ cd Vendor::REPO do
30
+ sh "git reset --hard", Vendor::START
31
+ end
32
+ end
33
+ end
34
+ end
metadata ADDED
@@ -0,0 +1,333 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rfix
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.1.0.pre.150
5
+ platform: ruby
6
+ authors:
7
+ - Linus Oleander
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2020-07-21 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: cri
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 2.15.10
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 2.15.10
27
+ - !ruby/object:Gem::Dependency
28
+ name: listen
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '3.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '3.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rainbow
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rouge
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3.20'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '3.20'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rubocop
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0.80'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0.80'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rugged
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 1.0.0
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 1.0.0
97
+ - !ruby/object:Gem::Dependency
98
+ name: rspec
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '3.0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '3.0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: aruba
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '1.0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '1.0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: colorize
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: 0.8.1
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: 0.8.1
139
+ - !ruby/object:Gem::Dependency
140
+ name: git
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: 1.7.0
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: 1.7.0
153
+ - !ruby/object:Gem::Dependency
154
+ name: rake
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: '12.3'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: '12.3'
167
+ - !ruby/object:Gem::Dependency
168
+ name: pry
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - "~>"
172
+ - !ruby/object:Gem::Version
173
+ version: 0.13.1
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - "~>"
179
+ - !ruby/object:Gem::Version
180
+ version: 0.13.1
181
+ description: |
182
+ RuboCop CLI that only lints and auto-fixes code you committed by utilizing `git-log` and `git-diff`. Rfix CLI makes it possible to lint (`rfix lint`) and auto-fix (`rfix local|origin|branch`) code changes since a certain point in history. You can auto-fix code committed since creating the current branch (`rfix origin`) or since pushing to upstream (`rfix local`).
183
+
184
+ Includes a RuboCop formatter with syntax highlighting and build in hyperlinks for offense documentation.
185
+
186
+ Holds the same CLI arguments as RuboCop. Run `rfix --help` for a complete list or `rfix` for supported commands.
187
+ email:
188
+ - linus@oleander.nu
189
+ executables:
190
+ - rfix
191
+ extensions: []
192
+ extra_rdoc_files: []
193
+ files:
194
+ - ".gitignore"
195
+ - ".rspec"
196
+ - ".rubocop.yml"
197
+ - ".travis.yml"
198
+ - Gemfile
199
+ - Gemfile.base
200
+ - Gemfile.base.lock
201
+ - Gemfile.lock
202
+ - Guardfile
203
+ - LICENSE.txt
204
+ - Makefile
205
+ - README.md
206
+ - Rakefile
207
+ - bin/bundle
208
+ - bin/console
209
+ - bin/guard
210
+ - bin/rake
211
+ - bin/rfix
212
+ - bin/rspec
213
+ - bin/setup
214
+ - ci/Gemfile.rubocop-0.80
215
+ - ci/Gemfile.rubocop-0.80.lock
216
+ - ci/Gemfile.rubocop-0.81
217
+ - ci/Gemfile.rubocop-0.81.lock
218
+ - ci/Gemfile.rubocop-0.82
219
+ - ci/Gemfile.rubocop-0.82.lock
220
+ - ci/Gemfile.rubocop-0.83
221
+ - ci/Gemfile.rubocop-0.83.lock
222
+ - ci/Gemfile.rubocop-0.84
223
+ - ci/Gemfile.rubocop-0.84.lock
224
+ - ci/Gemfile.rubocop-0.85
225
+ - ci/Gemfile.rubocop-0.85.1
226
+ - ci/Gemfile.rubocop-0.85.1.lock
227
+ - ci/Gemfile.rubocop-0.85.lock
228
+ - exe/rfix
229
+ - lib/rfix.rb
230
+ - lib/rfix/box.rb
231
+ - lib/rfix/branch.rb
232
+ - lib/rfix/branches/base.rb
233
+ - lib/rfix/branches/head.rb
234
+ - lib/rfix/branches/main.rb
235
+ - lib/rfix/branches/name.rb
236
+ - lib/rfix/branches/reference.rb
237
+ - lib/rfix/branches/upstream.rb
238
+ - lib/rfix/cmd.rb
239
+ - lib/rfix/commands/branch.rb
240
+ - lib/rfix/commands/extensions/options.rb
241
+ - lib/rfix/commands/help.rb
242
+ - lib/rfix/commands/helper/args.rb
243
+ - lib/rfix/commands/helper/help.rb
244
+ - lib/rfix/commands/helper/loader.rb
245
+ - lib/rfix/commands/helper/option.rb
246
+ - lib/rfix/commands/helper/params.rb
247
+ - lib/rfix/commands/helper/rubocop.rb
248
+ - lib/rfix/commands/info.rb
249
+ - lib/rfix/commands/lint.rb
250
+ - lib/rfix/commands/local.rb
251
+ - lib/rfix/commands/origin.rb
252
+ - lib/rfix/commands/setup.rb
253
+ - lib/rfix/commands/welcome.rb
254
+ - lib/rfix/deleted.rb
255
+ - lib/rfix/error.rb
256
+ - lib/rfix/extensions/extensions.rb
257
+ - lib/rfix/extensions/offense.rb
258
+ - lib/rfix/extensions/string.rb
259
+ - lib/rfix/file.rb
260
+ - lib/rfix/file_cache.rb
261
+ - lib/rfix/formatter.rb
262
+ - lib/rfix/git_helper.rb
263
+ - lib/rfix/log.rb
264
+ - lib/rfix/no_file.rb
265
+ - lib/rfix/rake/paths.rb
266
+ - lib/rfix/rake/support.rb
267
+ - lib/rfix/repository.rb
268
+ - lib/rfix/rfix.rb
269
+ - lib/rfix/tracked.rb
270
+ - lib/rfix/tracked_file.rb
271
+ - lib/rfix/untracked.rb
272
+ - lib/rfix/version.rb
273
+ - resources/ps.png
274
+ - rfix.gemspec
275
+ - tasks/bump.rake
276
+ - tasks/bundle.rake
277
+ - tasks/complex.rake
278
+ - tasks/simple.rake
279
+ - tasks/travis.rake
280
+ - tasks/vendor.rake
281
+ - vendor/shopify/cli-ui/lib/cli/ui.rb
282
+ - vendor/shopify/cli-ui/lib/cli/ui/ansi.rb
283
+ - vendor/shopify/cli-ui/lib/cli/ui/color.rb
284
+ - vendor/shopify/cli-ui/lib/cli/ui/formatter.rb
285
+ - vendor/shopify/cli-ui/lib/cli/ui/frame.rb
286
+ - vendor/shopify/cli-ui/lib/cli/ui/frame/frame_stack.rb
287
+ - vendor/shopify/cli-ui/lib/cli/ui/frame/frame_style.rb
288
+ - vendor/shopify/cli-ui/lib/cli/ui/frame/frame_style/box.rb
289
+ - vendor/shopify/cli-ui/lib/cli/ui/frame/frame_style/bracket.rb
290
+ - vendor/shopify/cli-ui/lib/cli/ui/glyph.rb
291
+ - vendor/shopify/cli-ui/lib/cli/ui/printer.rb
292
+ - vendor/shopify/cli-ui/lib/cli/ui/progress.rb
293
+ - vendor/shopify/cli-ui/lib/cli/ui/prompt.rb
294
+ - vendor/shopify/cli-ui/lib/cli/ui/prompt/interactive_options.rb
295
+ - vendor/shopify/cli-ui/lib/cli/ui/prompt/options_handler.rb
296
+ - vendor/shopify/cli-ui/lib/cli/ui/spinner.rb
297
+ - vendor/shopify/cli-ui/lib/cli/ui/spinner/async.rb
298
+ - vendor/shopify/cli-ui/lib/cli/ui/spinner/spin_group.rb
299
+ - vendor/shopify/cli-ui/lib/cli/ui/stdout_router.rb
300
+ - vendor/shopify/cli-ui/lib/cli/ui/terminal.rb
301
+ - vendor/shopify/cli-ui/lib/cli/ui/truncater.rb
302
+ - vendor/shopify/cli-ui/lib/cli/ui/version.rb
303
+ - vendor/shopify/cli-ui/lib/cli/ui/widgets.rb
304
+ - vendor/shopify/cli-ui/lib/cli/ui/widgets/base.rb
305
+ - vendor/shopify/cli-ui/lib/cli/ui/widgets/status.rb
306
+ homepage: https://github.com/oleander/rfix-rb
307
+ licenses:
308
+ - MIT
309
+ metadata:
310
+ homepage_uri: https://github.com/oleander/rfix-rb
311
+ post_install_message:
312
+ rdoc_options: []
313
+ require_paths:
314
+ - lib
315
+ - vendor/shopify/cli-ui/lib
316
+ required_ruby_version: !ruby/object:Gem::Requirement
317
+ requirements:
318
+ - - ">="
319
+ - !ruby/object:Gem::Version
320
+ version: 2.5.0
321
+ required_rubygems_version: !ruby/object:Gem::Requirement
322
+ requirements:
323
+ - - ">"
324
+ - !ruby/object:Gem::Version
325
+ version: 1.3.1
326
+ requirements:
327
+ - git, v2.0+
328
+ rubygems_version: 3.0.3
329
+ signing_key:
330
+ specification_version: 4
331
+ summary: RuboCop CLI that only lints and auto-fixes code you committed by utilizing
332
+ `git-log` and `git-diff`
333
+ test_files: []