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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 868bfaa86ad3d23783d477797cfcf3e3f385aa07e99d58eef7ffc6b7627cee70
4
- data.tar.gz: ad027badc525a3dc9c132a769f887cf6b6dfaae2f67b5fa54860b141701913d1
3
+ metadata.gz: 9681afa9fb12c7070f43e3388f76fa49c7d9282e354d87c1c4b0d2aebb553bab
4
+ data.tar.gz: 1e75b2f107ba7bdea7dcf53121be9d542d1fef1fd36b6114db95c14c1aab3144
5
5
  SHA512:
6
- metadata.gz: 03bd3ad38f44c7d255d3b7833dd971c1871a694f3817f00f4e09182012e9f4d37462e7006cc71eb7cdc5d45b4bdf04525a23ef1032d1eef7b7263c6d36c8cf98
7
- data.tar.gz: 768876291035c8296f24307f2290b0c08d1a26ad3c1d9299c3f3ad3c67192988c3b841e8e2acb72d2f361a4dddee552cc899bd6483145706faafdf07cdb9a497
6
+ metadata.gz: 1dac512f81c59f39e26709d186e08238e2c6d747b34303dc63d0b4a7a2891691e838e69c36e562ddb64f619c829f3e11222cb973598e7a5e6eacaac33a768e66
7
+ data.tar.gz: c977365b186f7f5034ea7e368f6b1aa6b30520b374480a3ce839ef2a4105d9d02e0f171a67e7f2c8f62ba7ac1464bfa1710dfee504d3d8b929a8c314d80ea57a
@@ -27,4 +27,14 @@ install:
27
27
  script:
28
28
  - bundle exec rake spec
29
29
  - bundle exec rake install
30
- - rfix --help
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'
@@ -21,7 +21,7 @@ GIT
21
21
  PATH
22
22
  remote: .
23
23
  specs:
24
- rfix (1.0.5)
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.1)
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 [--dry] [--help]
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.
@@ -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.5"
4
+ VERSION = "1.0.6"
5
5
  end
@@ -5,7 +5,15 @@ 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}-#{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.5
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: '0'
146
+ version: 1.3.1
147
147
  requirements: []
148
- rubygems_version: 3.1.4
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: []