rfix 1.2.6.pre.198 → 1.2.6

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: 0f49efc581ec20334b8f0e9594959a71185c6a51ae0ca13ab92d5ea3d3db86f6
4
- data.tar.gz: 73aef727ae29434806a4c573b77fff684e406f2c3f3c0615963c213c3d6d5931
3
+ metadata.gz: 4963fcdeb152d9e132794d42982797eadf9848ecfcfed8e94f51885003b0ddbb
4
+ data.tar.gz: 8cb32d9c8e17a881eec724678f0e69bc138ca360f24ea6318c733429e09e45f3
5
5
  SHA512:
6
- metadata.gz: 06f7708c0d34baf97708409375fc712c8a5cfdce94b44c8acc8a69135ebd2bb9ebe22dd0b7b9587371ddd9eaf718cbfabcf734ac2eb6adbb862cbb6cbe110f01
7
- data.tar.gz: 6e3e19062b9e6eeadff64c8215229c95e3ab553065922bf920f0ce622edc2cb83feb4d9a156ee9204070b0f74ff0aed76308c026f3dd53b2507b229d9ebddfc7
6
+ metadata.gz: 064c76697d6e5cad1b1e35c52f4ee9b7f52df2697fdf8680f18289130aa8b6f634ed3cf2bcba41cc8d0a27fd95e61e79d2c3a5638620baf61440935471ed784f
7
+ data.tar.gz: 4936c5ca44319492caf7a8556ff5913ca527541b5d7a3453d04db77785bfcb535929153a7a7e11881283dc7e1910c7f4164d4293eae9c4b405de12fc032ccc88
@@ -7,7 +7,7 @@ PATH
7
7
  rainbow (~> 3.0)
8
8
  require_all (~> 3.0.0)
9
9
  rouge (~> 3.20)
10
- rubocop (>= 0.80, < 0.90)
10
+ rubocop (~> 0.80)
11
11
  rugged (~> 1.0.0)
12
12
 
13
13
  GEM
data/Makefile CHANGED
@@ -1,12 +1,4 @@
1
- bundle:
2
- cd tmp && bundle install
3
- install: bundle
4
- bundle exec rake install:local
5
- # brew install cmake pkg-config libgit2 safe-rm
6
- # gem install colorize rake
7
- # rake build
8
-
9
- test: install
10
- cd tmp && rfix info || true
11
- # cd tmp && bundle exec rfix --help || true
12
- # cd tmp && bundle exec ./exe/rfix --debug --help || true
1
+ install:
2
+ brew install cmake pkg-config libgit2 safe-rm
3
+ gem install colorize rake
4
+ rake build
data/exe/rfix CHANGED
@@ -1,23 +1,4 @@
1
- # #!/usr/bin/env ruby
2
-
3
- require "bundler"
4
-
5
- require_relative "../lib/rfix/loader/spec.rb"
6
- require_relative "../lib/rfix/loader/bundler.rb"
7
- require_relative "../lib/rfix/loader/env.rb"
8
-
9
- if spec = Bundler.find_locked("rubocop")
10
- Gem::Specification.deactivate(spec.name)
11
- unless spec.__materialize__&.activation
12
- abort "Could not load rubocop spec file"
13
- end
14
- end
15
-
16
- if spec = Gem.loaded_specs.fetch("rubocop")
17
- unless Env.requirement === spec.version
18
- abort "RuboCop version #{Env.pretty_req} required by rfix but #{spec.version} was found in Gemfile"
19
- end
20
- end
1
+ #!/usr/bin/env ruby
21
2
 
22
3
  require "cri"
23
4
  require "rfix"
@@ -56,7 +56,7 @@ Gem::Specification.new do |spec|
56
56
  spec.add_runtime_dependency "rainbow", "~> 3.0"
57
57
  spec.add_runtime_dependency "require_all", "~> 3.0.0"
58
58
  spec.add_runtime_dependency "rouge", "~> 3.20"
59
- spec.add_runtime_dependency "rubocop", ">= 0.80", "< 0.90"
59
+ spec.add_runtime_dependency "rubocop", "~> 0.80"
60
60
  spec.add_runtime_dependency "rugged", "~> 1.0.0"
61
61
 
62
62
  spec.add_development_dependency "rspec", "~> 3.0"
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.6.pre.198
4
+ version: 1.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Linus Oleander
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-10-18 00:00:00.000000000 Z
11
+ date: 2020-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cri
@@ -84,22 +84,16 @@ dependencies:
84
84
  name: rubocop
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0.80'
90
- - - "<"
91
- - !ruby/object:Gem::Version
92
- version: '0.90'
93
90
  type: :runtime
94
91
  prerelease: false
95
92
  version_requirements: !ruby/object:Gem::Requirement
96
93
  requirements:
97
- - - ">="
94
+ - - "~>"
98
95
  - !ruby/object:Gem::Version
99
96
  version: '0.80'
100
- - - "<"
101
- - !ruby/object:Gem::Version
102
- version: '0.90'
103
97
  - !ruby/object:Gem::Dependency
104
98
  name: rugged
105
99
  requirement: !ruby/object:Gem::Requirement
@@ -281,9 +275,6 @@ files:
281
275
  - lib/rfix/file_cache.rb
282
276
  - lib/rfix/formatter.rb
283
277
  - lib/rfix/git_helper.rb
284
- - lib/rfix/loader/bundler.rb
285
- - lib/rfix/loader/env.rb
286
- - lib/rfix/loader/spec.rb
287
278
  - lib/rfix/log.rb
288
279
  - lib/rfix/no_file.rb
289
280
  - lib/rfix/rake/paths.rb
@@ -334,7 +325,7 @@ licenses:
334
325
  - MIT
335
326
  metadata:
336
327
  homepage_uri: https://github.com/oleander/rfix-rb
337
- post_install_message:
328
+ post_install_message:
338
329
  rdoc_options: []
339
330
  require_paths:
340
331
  - lib
@@ -346,13 +337,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
346
337
  version: 2.5.0
347
338
  required_rubygems_version: !ruby/object:Gem::Requirement
348
339
  requirements:
349
- - - ">"
340
+ - - ">="
350
341
  - !ruby/object:Gem::Version
351
- version: 1.3.1
342
+ version: '0'
352
343
  requirements:
353
344
  - git, v2.0+
354
345
  rubygems_version: 3.0.3
355
- signing_key:
346
+ signing_key:
356
347
  specification_version: 4
357
348
  summary: RuboCop CLI that only lints and auto-fixes code you committed by utilizing
358
349
  `git-log` and `git-diff`
@@ -1,37 +0,0 @@
1
- begin
2
- require "bundler"
3
-
4
- module Bundler
5
- class Null
6
- def __materialize__
7
-
8
- end
9
-
10
- def version
11
- raise "#version not impl."
12
- end
13
-
14
- def activation
15
- raise "#activation not impl."
16
- end
17
- end
18
-
19
- def self.locked_specs
20
- locked_gems&.specs || []
21
- rescue Bundler::GemfileNotFound
22
- []
23
- end
24
-
25
- def self.find_locked(name)
26
- locked_specs.select do |spec|
27
- spec.name.casecmp(name).zero?
28
- end.first
29
- end
30
-
31
- def self.activate_locked(name)
32
- find_locked(name).__materialize__.tap(&:activation)
33
- end
34
- end
35
- rescue LoadError
36
- require_relative "null_bundler"
37
- end
@@ -1,33 +0,0 @@
1
- # require "pry"
2
- class Env
3
- KEY = "__RFIX_LOOP".freeze
4
-
5
- def self.spec
6
- Gem.loaded_specs.fetch("rfix")
7
- end
8
-
9
- def self.requirement
10
- spec.dependencies.select do |gem|
11
- gem.name == "rubocop"
12
- end.first&.requirement || Env.log!("RuboCop requirement not found")
13
- end
14
-
15
- def self.pretty_req
16
- requirement.as_list.join(" to ")
17
- end
18
-
19
- def self.bundle_path
20
- Gem.bin_path("bundler", "bundle")
21
- end
22
-
23
- def self.log(msg)
24
- # return unless ARGV.include?("--debug")
25
-
26
- $stderr.puts ["==>", msg].join(" ")
27
- end
28
-
29
- def self.log!(msg)
30
- $stderr.puts ["==>", msg].join(" ")
31
- exit(1)
32
- end
33
- end
@@ -1,41 +0,0 @@
1
- class Gem::Specification
2
- def self.deactivate(name)
3
- Gem.loaded_specs[name]&.deactivate
4
- end
5
-
6
- def deactivate
7
- loaded_paths.each do |path|
8
- $:.delete(path)
9
- end
10
-
11
- Gem.loaded_specs.delete(name)
12
- end
13
-
14
- def activation
15
- self.class.deactivate(name)
16
- activate
17
- rescue Gem::ConflictError => error
18
- abort error.to_s
19
- end
20
-
21
- private
22
-
23
- def loaded_paths(spec = self, prev = [])
24
- return root_loaded_path unless loaded_into_path?
25
- return root_loaded_path if prev == root_loaded_path
26
-
27
- root_loaded_path + dependent_specs.map do |spec|
28
- loaded_paths(spec, root_loaded_path)
29
- end.flatten
30
- end
31
-
32
- def loaded_into_path?
33
- @lip ||= root_loaded_path.any? do |path|
34
- $:.include?(path)
35
- end
36
- end
37
-
38
- def root_loaded_path
39
- @root ||= Dir.glob(lib_dirs_glob)
40
- end
41
- end