rfix 1.0.0 → 1.0.5.pre.pre.57

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: f947e10503734c2c0d1b6e238936421ecc26e2cfe3c76d4ab8e8f1251decbfc6
4
- data.tar.gz: 721fba6f63f05be239fbe6ebf4a9d9fe382b9bcfe0e9d4984b9cc1e94e154e7f
3
+ metadata.gz: 49830b8bb36d3f637b0388a7e9ac14f84e5216f231957a56e4fcb6d8dbf90f82
4
+ data.tar.gz: 89eb93cb57bcb54562269bd48859d7be0304558c2b536565b88f32ec60b0baa8
5
5
  SHA512:
6
- metadata.gz: 7e5383f193787321a62df2484e1668181b32904b89bc857b8ef6105918fdc740dcc9872477846eab1fcc6e1eecf1753e32c5abdf5900c4475c4b5c6de682fb9b
7
- data.tar.gz: 012ae19245893ef39ce3563a9aec0a84fad9c34fade0c57704fc4d9822a941dd556b7e37528b0f55578aef8814817d0de69fd485d064944f8c8ee1727ebd3995
6
+ metadata.gz: 6e3f2a956861d936351ed26afe99c6bc51ceb16a0c2cc8b708ea3f83b8821a520776062e9de0a6bdc9e0a19804004e731a89b10f825676bf20efc13129b991ed
7
+ data.tar.gz: 60dd9841c0b5c649e93a28ec1a736f24bcfdd2e06ae3a0c251a5f4968432c70583f58a85a724b7f42cd8c65ad65d75e69d8212b3b4372bde69a3fc518750da17
@@ -27,4 +27,12 @@ install:
27
27
  script:
28
28
  - bundle exec rake spec
29
29
  - bundle exec rake install
30
- - rfix --help
30
+ - rfix info
31
+ deploy:
32
+ provider: rubygems
33
+ api_key:
34
+ secure: SJ5rZtQxDnY7aeWIb+gZ1OEV2rDHz8jvMBStHtzPDVtpQeUoo6DJB4FN4Vt5i7VaVk1otkAdOgyANzOQDSB0/1mMBUcy902zKrrUISALeIXp2FpsvjijRdKD0hLJaeX00n/MEJpw671NbzCNboEdiMnCrxSgd775qeQibcv72iRGIY07xv/BLUCtLTmqtjQFQAvcYEFpMQsRE6XEnkRSEOigSsYvNKZrygG4AgUaNY4rcOPqP+Yl26BFHw833GBQeuGgD5a310k3xYwpPc+9I+pTVHcpc4qh2m9kPcNuyDE3OjAMqE3XVn9WXeciZnQR6AQ94n6+5CJyTD3NEv5n58i4kyCLB71YfmPJjO+04+EiCUSZjeECkwACNguzOisdV8Z/vDzfNhI5tvNL7lv3jU05F/lw8LXKR30GBte5BquPY4DjjjXKgKoKl0tbo1bBT0u8LItEaFYoGqRmUiXiHFQNaH02pjBFkjUsyyEgnscWTDtoPxEjyP4aLnW+ESxnJxpwMHHiHPmplrPmK+3hYrTYz9saZyIajLIfcxcGcSSWEHXt2gV5i80pHJFQCc1qV/9d3g8s8sy3N9eKzV6SMYspFTtdKe2Pf7m/nwFt235/ibx0Z4Gyb1TZKze7phv9yAzvAaIb28I3Ye6S2S/ALemlKiu1A/XWtNtOxo8xMNE=
35
+ gem: rfix
36
+ on:
37
+ repo: oleander/rfix-rb
38
+ cleanup: 'false'
@@ -21,7 +21,7 @@ GIT
21
21
  PATH
22
22
  remote: .
23
23
  specs:
24
- rfix (1.0.0)
24
+ rfix (1.0.5)
25
25
  rainbow (~> 3.0)
26
26
  rouge (~> 3.20)
27
27
  rubocop (~> 0.80)
data/README.md CHANGED
@@ -1,10 +1,12 @@
1
1
  # Rfix [![Build Status](https://travis-ci.org/oleander/rfix-rb.svg?branch=master)](https://travis-ci.org/oleander/rfix-rb)
2
2
 
3
+ RuboCop CLI that only complains about your latest changes
4
+
3
5
  ## Installation
4
6
 
5
7
  ``` shell
6
- gem install rfix
7
- rfix <local|branch 'any branch'|origin> [--dry] [--help]
8
+ $ gem install rfix
9
+ $ rfix <local|branch|origin|info|all> [--dry] [--help]
8
10
  ```
9
11
 
10
12
  ## Development
@@ -16,6 +18,17 @@ rfix [--dry] [--help]
16
18
  - `bundle exec rake local`
17
19
  - `bundle exec rake spec`
18
20
 
21
+ ## Overcommit
22
+
23
+ ``` yaml
24
+ PreCommit:
25
+ RFix:
26
+ enabled: true
27
+ command: ["rfix", "local", "--untracked", "--dry"]
28
+ description: "Lint changes since last push using RuboCop"
29
+ parallelize: true
30
+ ```
31
+
19
32
  ## Contributing
20
33
 
21
34
  Bug reports and pull requests are welcome on GitHub at https://github.com/oleander/rfix.
data/exe/rfix CHANGED
@@ -95,12 +95,15 @@ when "branch"
95
95
  say_abort "Branch {{yellow:#{reference}}} does not exist" unless Rfix.has_branch?(reference)
96
96
  else
97
97
  unless display_help
98
- say_error "Valid rfix commands are"
99
- say_error_sub "\t{{italic:rfix branch <a branch>}}"
100
- say_error_sub "\t{{italic:rfix origin}}"
101
- say_error_sub "\tr{{italic:fix local}}"
102
- say_error_sub "\tr{{italic:fix all}}"
103
- say_error_sub "\tr{{italic:fix info}}"
98
+ say_error "Valid rfix commands are:"
99
+ say_error_sub "\n"
100
+ say_error_sub "\t{{bold:rfix branch <branch>}} -- {{italic:Fix changes made between HEAD and <branch>}}"
101
+ say_error_sub "\t{{bold:rfix origin}} -- {{italic:Fix changes made between HEAD and origin branch}}"
102
+ say_error_sub "\t{{bold:rfix local}} -- {{italic:Fix changes not yet pushed to upstream branch}}"
103
+ say_error_sub "\t{{bold:rfix info}} -- {{italic:Display runtime dependencies and their versions}}"
104
+ say_error_sub "\t{{bold:rfix all}} -- {{italic:Fix all files in this repository}} {{warning:(not recommended)}}"
105
+ say_error_sub "\n"
106
+ say_error_sub "\t{{italic:Optional args: --dry --help --list-files --limit-files --config --untracked}}"
104
107
  exit 1
105
108
  end
106
109
 
@@ -16,7 +16,7 @@ module Rfix::Cmd
16
16
  say_error "[Cmd] {{italic:#{args.join(" ")}}}"
17
17
  say_error "[Pwd] {{italic:#{Dir.pwd}}}"
18
18
  say_error "[Err] {{error:#{err.strip}}}"
19
-
19
+
20
20
  exit status.exitstatus
21
21
  end
22
22
 
@@ -9,8 +9,8 @@ module Rfix::GitHelper
9
9
  include Rfix::Log
10
10
  include Rfix::Cmd
11
11
 
12
- def git(*args)
13
- cmd("git", *args)
12
+ def git(*args, &block)
13
+ cmd("git", *args, &block)
14
14
  end
15
15
 
16
16
  def params
@@ -88,7 +88,9 @@ module Rfix
88
88
 
89
89
  # Ref since last push
90
90
  def ref_since_push
91
- git("rev-parse", "--abbrev-ref", "--symbolic-full-name", "@{u}").first
91
+ git("rev-parse", "--abbrev-ref", "--symbolic-full-name", "@{u}") do
92
+ [ref_since_origin]
93
+ end.first
92
94
  end
93
95
 
94
96
  # Original branch, usually master
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rfix
4
- VERSION = "1.0.0"
4
+ VERSION = "1.0.5"
5
5
  end
@@ -5,13 +5,21 @@ require_relative "lib/rfix/version"
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "rfix"
8
- spec.version = Rfix::VERSION
8
+
9
+ if ENV["TRAVIS"]
10
+ spec.version = "#{Rfix::VERSION}-pre.#{ENV.fetch('TRAVIS_BUILD_NUMBER')}"
11
+ else
12
+ # rubocop:disable Gemspec/DuplicatedAssignment
13
+ spec.version = Rfix::VERSION
14
+ # rubocop:enable Gemspec/DuplicatedAssignment
15
+ end
16
+
9
17
  spec.authors = ["Linus Oleander"]
10
18
  spec.email = ["linus@oleander.nu"]
11
19
 
12
- spec.summary = "RuboCop wrapper that only complains about your latest changes"
13
- spec.description = spec.summary + "."
14
- spec.homepage = "https://github.com/oleander/rfix"
20
+ spec.summary = "RuboCop CLI that only complains about your latest changes"
21
+ spec.description = "$ rfix local|branch|origin|info|all [--dry] [--help]"
22
+ spec.homepage = "https://github.com/oleander/rfix-rb"
15
23
  spec.license = "MIT"
16
24
  spec.required_ruby_version = Gem::Requirement.new(">= 2.5.0")
17
25
 
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.0.0
4
+ version: 1.0.5.pre.pre.57
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-06-16 00:00:00.000000000 Z
11
+ date: 2020-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rainbow
@@ -52,7 +52,7 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0.80'
55
- description: RuboCop wrapper that only complains about your latest changes.
55
+ description: "$ rfix local|branch|origin|info|all [--dry] [--help]"
56
56
  email:
57
57
  - linus@oleander.nu
58
58
  executables:
@@ -124,12 +124,12 @@ files:
124
124
  - vendor/cli-ui/lib/cli/ui/widgets.rb
125
125
  - vendor/cli-ui/lib/cli/ui/widgets/base.rb
126
126
  - vendor/cli-ui/lib/cli/ui/widgets/status.rb
127
- homepage: https://github.com/oleander/rfix
127
+ homepage: https://github.com/oleander/rfix-rb
128
128
  licenses:
129
129
  - MIT
130
130
  metadata:
131
- homepage_uri: https://github.com/oleander/rfix
132
- post_install_message:
131
+ homepage_uri: https://github.com/oleander/rfix-rb
132
+ post_install_message:
133
133
  rdoc_options: []
134
134
  require_paths:
135
135
  - lib
@@ -141,12 +141,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
141
141
  version: 2.5.0
142
142
  required_rubygems_version: !ruby/object:Gem::Requirement
143
143
  requirements:
144
- - - ">="
144
+ - - ">"
145
145
  - !ruby/object:Gem::Version
146
- version: '0'
146
+ version: 1.3.1
147
147
  requirements: []
148
- rubygems_version: 3.1.4
149
- signing_key:
148
+ rubyforge_project:
149
+ rubygems_version: 2.7.7
150
+ signing_key:
150
151
  specification_version: 4
151
- summary: RuboCop wrapper that only complains about your latest changes
152
+ summary: RuboCop CLI that only complains about your latest changes
152
153
  test_files: []