quiet_quality 1.0.0 → 1.0.2

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: 92fb13c8040117b5c0117af41e7253d793c2818a05c4d69b8f522677f20b96a7
4
- data.tar.gz: 27da41d1430f7a09a22444fa117904f231b8feec6006c48393bd9d0cf9859707
3
+ metadata.gz: 637f00e52eae2e4b0cee2cf1e4c76b17595e7ac4a59aa2568ae0eee17b4a7d4c
4
+ data.tar.gz: a45040a9379e05a86e87d01f274ea044084c0af13e65c6d00b7c664dde33afc6
5
5
  SHA512:
6
- metadata.gz: 020bb9aa46fc7a1d5989dbf7f03538533b6f54006e23003f90209a6baacbb03c015cee81f00893047bc7c39260788d62a4380157ee95b610acd08acd64746569
7
- data.tar.gz: 68d20464b4f83e819ef8e8128420e84cadb857183238167aa4a9b4947890d571ec636836656bc728dc3b459b75668152e1c510f034a8ddc8d49e5403150ec3b3
6
+ metadata.gz: f0666d43b98ea76f55b8dab0d3d38cc786f8c9a750b14dee1eff2c4a13ee7da94f94a83757fe643efa1d448197583864c02c34c0e49b7adda5d790d51eaad0ef
7
+ data.tar.gz: 3cd316700e1abda994248dbd5959d242ccec0551d2f516212671fee07df1cfa5d36a9b53137ea299cce03b6bbbab9e328ba38132be6148d8626a7e4b1d71e346
@@ -7,6 +7,8 @@ jobs:
7
7
  runs-on: ubuntu-latest
8
8
  steps:
9
9
  - uses: actions/checkout@v3
10
+ with:
11
+ fetch-depth: 0
10
12
 
11
13
  - name: Set up ruby
12
14
  uses: ruby/setup-ruby@v1
@@ -25,4 +27,4 @@ jobs:
25
27
  run: bundle install --jobs 4 --retry 3
26
28
 
27
29
  - name: Run QuietQuality
28
- run: bundle exec bin/qq standardrb rubocop rspec --all-files --unfiltered --annotate github_stdout
30
+ run: bundle exec bin/qq standardrb rubocop rspec --all-files --unfiltered --annotate github_stdout --comparison-branch origin/main
data/README.md CHANGED
@@ -22,7 +22,7 @@ qq rubocop
22
22
  # of them) against the commit using github's inline output-based annotation approach. Which
23
23
  # will of course only produce actual annotations if this happens to have been run in a
24
24
  # github action.
25
- qq rspec --annotate=stdout
25
+ qq rspec --annotate=github_stdout
26
26
 
27
27
  # run standardrb against all of the files (not just the changed ones). Still only print out
28
28
  # problems to lines that have changed, so not particularly useful :-)
@@ -50,8 +50,18 @@ module QuietQuality
50
50
  @_options = builder.options
51
51
  end
52
52
 
53
+ def changed_files
54
+ return @_changed_files if defined?(@_changed_files)
55
+ @_changed_files = VersionControlSystems::Git.new.changed_files(
56
+ base: options.comparison_branch,
57
+ sha: "HEAD",
58
+ include_uncommitted: true,
59
+ include_untracked: true
60
+ )
61
+ end
62
+
53
63
  def executor
54
- @_executor ||= options.executor.new(tools: options.tools)
64
+ @_executor ||= options.executor.new(tools: options.tools, changed_files: changed_files)
55
65
  end
56
66
 
57
67
  def executed
@@ -15,7 +15,7 @@ module QuietQuality
15
15
  end
16
16
 
17
17
  def failure?
18
- outcome.failure?
18
+ messages.any?
19
19
  end
20
20
 
21
21
  def messages
@@ -1,3 +1,3 @@
1
1
  module QuietQuality
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quiet_quality
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Mueller
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-23 00:00:00.000000000 Z
11
+ date: 2023-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: git
@@ -224,7 +224,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
224
224
  - !ruby/object:Gem::Version
225
225
  version: '0'
226
226
  requirements: []
227
- rubygems_version: 3.3.7
227
+ rubygems_version: 3.1.6
228
228
  signing_key:
229
229
  specification_version: 4
230
230
  summary: A system for comparing quality tool outputs against the forward diffs