way_of_working 2.0.0 → 2.0.1

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: fcf87e5f8b8338ec91dc10bb579a9c8e9fa3e977745ba61cf8ae106cfb27201c
4
- data.tar.gz: 3be69c82e3d055cefe8353bf440f085eb84f420427a131dbb4a5f888f12d67f6
3
+ metadata.gz: 913e3414e46df4b139848ff2dfe78a34d97470a98a9c67ff05ae3a2021cddb3f
4
+ data.tar.gz: 718f8e116e4c2d5a952078b6ee63db151e4db4f6c5319e1ceeb2524452316c21
5
5
  SHA512:
6
- metadata.gz: 70c5587a836fd9d530647f01e96fd725ac91ac418415e0d002613da943dfc502d6460d454bf81e9ea2c5f05ccfd78ef94b2b75adf8ca16261fa28c327c490a22
7
- data.tar.gz: feb65211f0f6c7904c00a16dccdb1b8dde8de7ca3880282d7fe926543dae1de30fed6a1e722843f5bbcfb4dd2735b87dd0c5c6c4b9c9cbb72bf03a0a5a220a02
6
+ metadata.gz: 701ea069d2bfb48a54fd2ce9e43e96547d8d72532768c1a9482ed46f02060bb8e6c8943d4943bd1ea9c6adcf96a12c74b92ed729586ab8586ff2f82820faaceb
7
+ data.tar.gz: 0f7b28d11905851162010ec509a8aae2a190dcc48ebc18064aa5ad2ee1fa2675edbf12c7bb366223d3713d0d66e6005f706b14ead0d6c0af65f49e36d21ee6a7
data/CHANGELOG.md CHANGED
@@ -7,6 +7,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [2.0.1] - 2025-01-17
11
+
12
+ ### Removed
13
+
14
+ - Removed completely unused test resource file
15
+
16
+ ### Fixed
17
+
18
+ - Corrected the badge rule brittle loading and signature
19
+ - Resolved YAML linting issues
20
+
21
+ ## [2.0.0] - 2024-10-24
22
+
10
23
  ### Added
11
24
 
12
25
  - Added a panel for README badges and a Way of Working badge
@@ -48,5 +61,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
48
61
 
49
62
  - Corrected use of relative paths in the rubocop config file
50
63
 
51
- [unreleased]: https://github.com/HealthDataInsight/way_of_working/compare/v1.0.0...HEAD
64
+ [unreleased]: https://github.com/HealthDataInsight/way_of_working/compare/v2.0.1...HEAD
65
+ [2.0.1]: https://github.com/HealthDataInsight/way_of_working/compare/v2.0.0...v2.0.1
66
+ [2.0.0]: https://github.com/HealthDataInsight/way_of_working/compare/v1.0.0...v2.0.0
52
67
  [1.0.0]: https://github.com/HealthDataInsight/way_of_working/releases/tag/v1.0.0
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Way of Working
2
2
 
3
3
  <!-- Way of Working: Main Badge Holder Start -->
4
- ![Way of Working Badge](https://img.shields.io/badge/Way_of_Working-v2.0.0-%238169e3?labelColor=black)
4
+ ![Way of Working Badge](https://img.shields.io/badge/Way_of_Working-v2.0.1-%238169e3?labelColor=black)
5
5
  <!-- Way of Working: Additional Badge Holder Start -->
6
6
  <!-- Way of Working: Badge Holder End -->
7
7
 
@@ -7,11 +7,9 @@ module WayOfWorking
7
7
  module ReadmeBadge
8
8
  # This rule checks for a README and Way of Working badge.
9
9
  class GithubAuditRule < ::WayOfWorking::Audit::Github::Rules::Base
10
- def valid?
10
+ def validate
11
11
  @errors << 'No README' if readme_content.nil?
12
12
  @errors << 'No Way of Working README Badge' unless readme_way_of_working_badge?
13
-
14
- @errors.empty? ? :passed : :failed
15
13
  end
16
14
 
17
15
  private
@@ -3,13 +3,11 @@
3
3
  require_relative 'readme_badge/generators/init'
4
4
 
5
5
  # If way_of_working-audit-github is used we can add a rule
6
- github_audit_used =
7
- begin
8
- require 'way_of_working/audit/github/rules/registry'
9
- rescue LoadError
10
- false
11
- end
12
- require_relative 'readme_badge/github_audit_rule' if github_audit_used
6
+ begin
7
+ require 'way_of_working/audit/github/rules/registry'
8
+ require_relative 'readme_badge/github_audit_rule'
9
+ rescue LoadError # rubocop:disable Lint/SuppressedException
10
+ end
13
11
 
14
12
  module WayOfWorking
15
13
  module SubCommands
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WayOfWorking
4
- VERSION = '2.0.0'
4
+ VERSION = '2.0.1'
5
5
  end
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
12
12
  # spec.description = "TODO: Write a longer description or delete this line."
13
13
  spec.homepage = 'https://healthdatainsight.github.io/way_of_working'
14
14
  spec.license = 'MIT'
15
- spec.required_ruby_version = '>= 2.6'
15
+ spec.required_ruby_version = '>= 3.1'
16
16
 
17
17
  spec.metadata['allowed_push_host'] = 'https://rubygems.org'
18
18
  spec.metadata['rubygems_mfa_required'] = 'true'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: way_of_working
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Gentry
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-10-24 00:00:00.000000000 Z
11
+ date: 2025-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -144,7 +144,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
144
144
  requirements:
145
145
  - - ">="
146
146
  - !ruby/object:Gem::Version
147
- version: '2.6'
147
+ version: '3.1'
148
148
  required_rubygems_version: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - ">="