rfix 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/main.yml +3 -1
- data/.travis.yml +1 -0
- data/Gemfile.lock +1 -1
- data/README.md +3 -10
- data/Rakefile +4 -0
- data/lib/rfix/formatter.rb +1 -1
- data/lib/rfix/version.rb +1 -1
- data/rfix.gemspec +2 -13
- metadata +6 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94c6a5221d4beb6a82e2ec5993f4e6710f6797d44c5132804cb07963b8e1afd5
|
4
|
+
data.tar.gz: 36466eb65888062cba7c5b58a972ec546670d6c997aae5dac3f7df6aa6403a61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5e6e043ae89ed1cfaac1ff174f772e07d180d1e5e2f0fc178a2f3e7db8f4a5cc991ace2118eb8ecc21ee92f7c7d5947a821f7e75a962d46c36c3623aae67c2b
|
7
|
+
data.tar.gz: c1a48cb3b3372c82645c680123e83f7ec9551307fe723b194f99cd073001fd921eab4abf2a04bbff533f41f524c079bda1dfd5dfcfc21ef224e8c58fe400ab3c
|
data/.github/workflows/main.yml
CHANGED
@@ -21,4 +21,6 @@ jobs:
|
|
21
21
|
- run: rake libgit2:install
|
22
22
|
|
23
23
|
- run: bundle install --path vendor/bundle
|
24
|
-
- run:
|
24
|
+
- run: bundle exec rake travis:setup
|
25
|
+
- run: bundle exec rake travis:spec
|
26
|
+
- run: bundle exec rake travis:verify
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -42,17 +42,10 @@ $ rfix # Displays this list of supported commands
|
|
42
42
|
|
43
43
|
### Setup
|
44
44
|
|
45
|
-
1. Download repository
|
46
|
-
- `$ git clone https://github.com/oleander/rfix-rb`
|
47
|
-
- `$ cd rfix-rb`
|
48
|
-
2. Downloads fixtures and run time dependencies
|
49
|
-
- `$ bundle install`
|
50
|
-
- `$ rake rebuild
|
51
|
-
|
52
|
-
### Install from repository
|
53
|
-
|
54
45
|
``` shell
|
55
|
-
|
46
|
+
git clone https://github.com/oleander/rfix-rb
|
47
|
+
cd rfix-rb
|
48
|
+
bundle install
|
56
49
|
```
|
57
50
|
|
58
51
|
### Run tests
|
data/Rakefile
CHANGED
data/lib/rfix/formatter.rb
CHANGED
@@ -121,7 +121,7 @@ module Rfix
|
|
121
121
|
b_pos = highlighted_area.begin_pos + extra.length * 2 - indent.min_indentation
|
122
122
|
e_pos = highlighted_area.end_pos + extra.length * 2 - indent.min_indentation
|
123
123
|
size = e_pos - b_pos
|
124
|
-
out((" " * b_pos) + Rainbow((" " * size)).underline.bold)
|
124
|
+
out((" " * b_pos) + Rainbow((" " * [size, 0].max)).underline.bold)
|
125
125
|
out("\n\n")
|
126
126
|
end
|
127
127
|
end
|
data/lib/rfix/version.rb
CHANGED
data/rfix.gemspec
CHANGED
@@ -5,22 +5,11 @@ require_relative "lib/rfix/version"
|
|
5
5
|
# require_relative "lib/rfix/gem_helper"
|
6
6
|
|
7
7
|
Gem::Specification.new do |spec|
|
8
|
-
# extend GemHelper
|
9
|
-
|
10
8
|
spec.name = "rfix"
|
11
|
-
|
12
|
-
if ENV["TRAVIS"]
|
13
|
-
spec.version = "#{Rfix::VERSION}-#{ENV.fetch('TRAVIS_BUILD_NUMBER')}"
|
14
|
-
elsif ENV["GITHUB_RUN_ID"]
|
15
|
-
spec.version = "#{Rfix::VERSION}-#{ENV.fetch('GITHUB_RUN_ID')}"
|
16
|
-
else
|
17
|
-
# rubocop:disable Gemspec/DuplicatedAssignment
|
18
|
-
spec.version = Rfix::VERSION
|
19
|
-
# rubocop:enable Gemspec/DuplicatedAssignment
|
20
|
-
end
|
21
|
-
|
9
|
+
spec.version = Rfix::VERSION
|
22
10
|
spec.authors = ["Linus Oleander"]
|
23
11
|
spec.email = ["linus@oleander.nu"]
|
12
|
+
# rubocop:disable Layout/LineLength
|
24
13
|
spec.summary = "RuboCop CLI that only lints and auto-fixes code you committed by utilizing `git-log` and `git-diff`"
|
25
14
|
# rubocop:enable Layout/LineLength
|
26
15
|
|
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.4.
|
4
|
+
version: 1.4.1
|
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: 2021-
|
11
|
+
date: 2021-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cri
|
@@ -363,7 +363,7 @@ licenses:
|
|
363
363
|
- MIT
|
364
364
|
metadata:
|
365
365
|
homepage_uri: https://github.com/oleander/rfix-rb
|
366
|
-
post_install_message:
|
366
|
+
post_install_message:
|
367
367
|
rdoc_options: []
|
368
368
|
require_paths:
|
369
369
|
- lib
|
@@ -380,9 +380,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
380
380
|
version: '0'
|
381
381
|
requirements:
|
382
382
|
- git, v2.0+
|
383
|
-
|
384
|
-
|
385
|
-
signing_key:
|
383
|
+
rubygems_version: 3.0.3
|
384
|
+
signing_key:
|
386
385
|
specification_version: 4
|
387
386
|
summary: RuboCop CLI that only lints and auto-fixes code you committed by utilizing
|
388
387
|
`git-log` and `git-diff`
|