nucop 0.4.0 → 0.4.1

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: 147626ccc8df3401efde1ba2d00a106de8de17edd068fd95cbe1b1b269794d7c
4
- data.tar.gz: 35a04502eef703f273f157a714a5c9ad189d488dcbefcf976103e0ca22e6eefd
3
+ metadata.gz: 435a78a10fcc0b62541954def135338d700f18011cce1f5816a91e0b805d0097
4
+ data.tar.gz: 90494d2f1086bdc458350b5772df69b0fc5b916e7617a4955150a5b5b8f2516e
5
5
  SHA512:
6
- metadata.gz: be62ce3eb4ccc7e95d5b01ff004d7d193afc5c6340b312f1aa878da5696733def654328bf89fdd8905495eb1e93544bf07e0015128283e39e56403ee6763ebf4
7
- data.tar.gz: 6e0e2b7121705b9354686e3ec83b27e84396bb48fdb289a00ad70788d14d332a1923728770377758c1064b2ac63477089538b41287711deb23d5883c5022d6ed
6
+ metadata.gz: f502115d1678424d7ae2f7894daa3455ac9af6438adf1eb3479313350a22109224fd520bad86df7a3fec1cfb153fca4f6a07426dee41822a9a7ebd6735d9e5b0
7
+ data.tar.gz: 782ebe926d82e5f079e20b5ffd77f633ed0e848d9fe931c0c0007a6386d4a11a3174e8b82c06892d601cff577d8bf306781fa008db98561540020e99ca1861cd
@@ -7,7 +7,7 @@ CONFIGURATION_FILEPATH = ".nucop.yml"
7
7
  module Nucop
8
8
  class Cli < Thor
9
9
  desc "diff_enforced", "run RuboCop on the current diff using only the enforced cops"
10
- method_option "commit-spec", default: "origin/master", desc: "the commit used to determine the diff."
10
+ method_option "commit-spec", default: "origin/main", desc: "the commit used to determine the diff."
11
11
  method_option "auto-correct", type: :boolean, default: false, desc: "runs RuboCop with auto-correct option"
12
12
  method_option "junit_report", type: :string, default: nil, desc: "runs RuboCop with junit formatter option"
13
13
  method_option "json", type: :string, default: nil, desc: "Output results as JSON format to the provided file"
@@ -16,7 +16,7 @@ module Nucop
16
16
  end
17
17
 
18
18
  desc "diff", "run RuboCop on the current diff"
19
- method_option "commit-spec", default: "origin/master", desc: "the commit used to determine the diff."
19
+ method_option "commit-spec", default: "origin/main", desc: "the commit used to determine the diff."
20
20
  method_option "only", desc: "run only specified cop(s) and/or cops in the specified departments"
21
21
  method_option "auto-correct", type: :boolean, default: false, desc: "runs RuboCop with auto-correct option"
22
22
  method_option "ignore", type: :boolean, default: true, desc: "ignores files specified in #{options[:diffignore_file]}"
@@ -106,7 +106,7 @@ module Nucop
106
106
  end
107
107
 
108
108
  desc "modified_lines", "display RuboCop violations for ONLY modified lines"
109
- method_option "commit-spec", default: "master", desc: "the commit used to determine the diff."
109
+ method_option "commit-spec", default: "main", desc: "the commit used to determine the diff."
110
110
  def modified_lines
111
111
  diff_files, diff_status = Open3.capture2("git diff #{options[:'commit-spec']} --diff-filter=d --name-only | grep \"\\.rb$\"")
112
112
 
@@ -29,7 +29,7 @@ module Nucop
29
29
  private
30
30
 
31
31
  def populate_history_from_git
32
- commit_spec = ENV["RUBOCOP_COMMIT_SPEC"] || "master"
32
+ commit_spec = ENV["RUBOCOP_COMMIT_SPEC"] || "main"
33
33
 
34
34
  diff = `git --no-pager diff #{commit_spec}`
35
35
 
@@ -1,3 +1,3 @@
1
1
  module Nucop
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nucop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Schweier
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-08 00:00:00.000000000 Z
11
+ date: 2020-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: git_diff_parser