rfix 1.4.0 → 1.4.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b9e1b92f9c823b4c5611ab9b4aef81804a51d922c03e7ed2d6a9d6409fde3cb7
4
- data.tar.gz: 9101874ef60f1b7ec42762b0f52e7cf7c81dc8547c57c6faed47f241a0adee06
3
+ metadata.gz: 94c6a5221d4beb6a82e2ec5993f4e6710f6797d44c5132804cb07963b8e1afd5
4
+ data.tar.gz: 36466eb65888062cba7c5b58a972ec546670d6c997aae5dac3f7df6aa6403a61
5
5
  SHA512:
6
- metadata.gz: d157a070581180aa1425ecfb0098e82a213889f7cf913676b95ef3ddb06ccee0941d57766102b7c813263bc3390a2f3de1531dda120487963958b37a1d127802
7
- data.tar.gz: edc6454139b56ad1d91a13f6989142d71494e647dfdcd3e4688d0e4a50fe66b6bdde6678e5e0858b0012f197b05fd432242da33efa37de5a41b14fbcab25cb38
6
+ metadata.gz: f5e6e043ae89ed1cfaac1ff174f772e07d180d1e5e2f0fc178a2f3e7db8f4a5cc991ace2118eb8ecc21ee92f7c7d5947a821f7e75a962d46c36c3623aae67c2b
7
+ data.tar.gz: c1a48cb3b3372c82645c680123e83f7ec9551307fe723b194f99cd073001fd921eab4abf2a04bbff533f41f524c079bda1dfd5dfcfc21ef224e8c58fe400ab3c
@@ -21,4 +21,6 @@ jobs:
21
21
  - run: rake libgit2:install
22
22
 
23
23
  - run: bundle install --path vendor/bundle
24
- - run: rake execute:local execute:origin execute:lint execute:branch
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
@@ -3,6 +3,7 @@ rvm:
3
3
  - 2.5.0
4
4
  - 2.6.2
5
5
  - 2.7.1
6
+ - 3.0.0
6
7
  os:
7
8
  - osx
8
9
  - linux
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rfix (1.4.0)
4
+ rfix (1.4.1)
5
5
  cri (~> 2.15.10)
6
6
  dry-core (~> 0.5.0)
7
7
  listen (~> 3.0)
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
- $ bundle exec rake install
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
@@ -25,3 +25,7 @@ task Bundle::REBUILD => [Bundle::Complex::REBUILD, Bundle::Simple::REBUILD]
25
25
 
26
26
  # desc "Bump to a new version of rfix"
27
27
  task bump: "gem:bump"
28
+
29
+ task spec: Bundle::BUILD do
30
+ sh "bundle", "exec", "rspec", "spec"
31
+ end
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rfix
4
- VERSION = "1.4.0"
4
+ VERSION = "1.4.1"
5
5
  end
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.0
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-02-19 00:00:00.000000000 Z
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
- rubyforge_project:
384
- rubygems_version: 2.7.6.2
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`