rfix 1.0.5 → 1.0.6.pre.60
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +11 -1
- data/Gemfile.lock +2 -2
- data/README.md +11 -0
- data/lib/rfix/cmd.rb +1 -1
- data/lib/rfix/git_helper.rb +2 -2
- data/lib/rfix/rfix.rb +3 -1
- data/lib/rfix/version.rb +1 -1
- data/rfix.gemspec +9 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9681afa9fb12c7070f43e3388f76fa49c7d9282e354d87c1c4b0d2aebb553bab
|
4
|
+
data.tar.gz: 1e75b2f107ba7bdea7dcf53121be9d542d1fef1fd36b6114db95c14c1aab3144
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1dac512f81c59f39e26709d186e08238e2c6d747b34303dc63d0b4a7a2891691e838e69c36e562ddb64f619c829f3e11222cb973598e7a5e6eacaac33a768e66
|
7
|
+
data.tar.gz: c977365b186f7f5034ea7e368f6b1aa6b30520b374480a3ce839ef2a4105d9d02e0f171a67e7f2c8f62ba7ac1464bfa1710dfee504d3d8b929a8c314d80ea57a
|
data/.travis.yml
CHANGED
@@ -27,4 +27,14 @@ install:
|
|
27
27
|
script:
|
28
28
|
- bundle exec rake spec
|
29
29
|
- bundle exec rake install
|
30
|
-
- rfix
|
30
|
+
- rfix info
|
31
|
+
jobs:
|
32
|
+
include:
|
33
|
+
deploy:
|
34
|
+
provider: rubygems
|
35
|
+
api_key:
|
36
|
+
secure: SJ5rZtQxDnY7aeWIb+gZ1OEV2rDHz8jvMBStHtzPDVtpQeUoo6DJB4FN4Vt5i7VaVk1otkAdOgyANzOQDSB0/1mMBUcy902zKrrUISALeIXp2FpsvjijRdKD0hLJaeX00n/MEJpw671NbzCNboEdiMnCrxSgd775qeQibcv72iRGIY07xv/BLUCtLTmqtjQFQAvcYEFpMQsRE6XEnkRSEOigSsYvNKZrygG4AgUaNY4rcOPqP+Yl26BFHw833GBQeuGgD5a310k3xYwpPc+9I+pTVHcpc4qh2m9kPcNuyDE3OjAMqE3XVn9WXeciZnQR6AQ94n6+5CJyTD3NEv5n58i4kyCLB71YfmPJjO+04+EiCUSZjeECkwACNguzOisdV8Z/vDzfNhI5tvNL7lv3jU05F/lw8LXKR30GBte5BquPY4DjjjXKgKoKl0tbo1bBT0u8LItEaFYoGqRmUiXiHFQNaH02pjBFkjUsyyEgnscWTDtoPxEjyP4aLnW+ESxnJxpwMHHiHPmplrPmK+3hYrTYz9saZyIajLIfcxcGcSSWEHXt2gV5i80pHJFQCc1qV/9d3g8s8sy3N9eKzV6SMYspFTtdKe2Pf7m/nwFt235/ibx0Z4Gyb1TZKze7phv9yAzvAaIb28I3Ye6S2S/ALemlKiu1A/XWtNtOxo8xMNE=
|
37
|
+
gem: rfix
|
38
|
+
on:
|
39
|
+
repo: oleander/rfix-rb
|
40
|
+
cleanup: 'false'
|
data/Gemfile.lock
CHANGED
@@ -21,7 +21,7 @@ GIT
|
|
21
21
|
PATH
|
22
22
|
remote: .
|
23
23
|
specs:
|
24
|
-
rfix (1.0.
|
24
|
+
rfix (1.0.6)
|
25
25
|
rainbow (~> 3.0)
|
26
26
|
rouge (~> 3.20)
|
27
27
|
rubocop (~> 0.80)
|
@@ -110,7 +110,7 @@ GEM
|
|
110
110
|
notiffany (0.1.3)
|
111
111
|
nenv (~> 0.1)
|
112
112
|
shellany (~> 0.0)
|
113
|
-
parallel (1.19.
|
113
|
+
parallel (1.19.2)
|
114
114
|
parser (2.7.1.3)
|
115
115
|
ast (~> 2.4.0)
|
116
116
|
progressbar (0.21.0)
|
data/README.md
CHANGED
@@ -18,6 +18,17 @@ $ rfix
|
|
18
18
|
- `bundle exec rake local`
|
19
19
|
- `bundle exec rake spec`
|
20
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
|
+
|
21
32
|
## Contributing
|
22
33
|
|
23
34
|
Bug reports and pull requests are welcome on GitHub at https://github.com/oleander/rfix.
|
data/lib/rfix/cmd.rb
CHANGED
data/lib/rfix/git_helper.rb
CHANGED
data/lib/rfix/rfix.rb
CHANGED
@@ -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}")
|
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
|
data/lib/rfix/version.rb
CHANGED
data/rfix.gemspec
CHANGED
@@ -5,7 +5,15 @@ require_relative "lib/rfix/version"
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "rfix"
|
8
|
-
|
8
|
+
|
9
|
+
if ENV["TRAVIS"]
|
10
|
+
spec.version = "#{Rfix::VERSION}-#{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
|
|
metadata
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rfix
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.6.pre.60
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Linus Oleander
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
11
|
date: 2020-06-17 00:00:00.000000000 Z
|
@@ -129,7 +129,7 @@ licenses:
|
|
129
129
|
- MIT
|
130
130
|
metadata:
|
131
131
|
homepage_uri: https://github.com/oleander/rfix-rb
|
132
|
-
post_install_message:
|
132
|
+
post_install_message:
|
133
133
|
rdoc_options: []
|
134
134
|
require_paths:
|
135
135
|
- lib
|
@@ -141,12 +141,12 @@ 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:
|
146
|
+
version: 1.3.1
|
147
147
|
requirements: []
|
148
|
-
rubygems_version: 3.
|
149
|
-
signing_key:
|
148
|
+
rubygems_version: 3.0.3
|
149
|
+
signing_key:
|
150
150
|
specification_version: 4
|
151
151
|
summary: RuboCop CLI that only complains about your latest changes
|
152
152
|
test_files: []
|