way_of_working 2.0.1 → 2.2.0
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 +4 -4
- data/CHANGELOG.md +41 -1
- data/CLAUDE.md +48 -0
- data/CODE_OF_CONDUCT.md +55 -104
- data/CONTRIBUTING.md +62 -0
- data/README.md +240 -23
- data/exe/way_of_working +6 -1
- data/lib/way_of_working/audit/github/auditor.rb +47 -0
- data/lib/way_of_working/audit/github/generators/exec.rb +214 -0
- data/lib/way_of_working/audit/github/rules/base.rb +116 -0
- data/lib/way_of_working/audit/github/rules/registry.rb +44 -0
- data/lib/way_of_working/audit/github/rules/unknown.rb +19 -0
- data/lib/way_of_working/audit/github.rb +25 -0
- data/lib/way_of_working/changelog/keepachangelog/generators/init.rb +118 -0
- data/lib/way_of_working/changelog/keepachangelog/github_audit_rule.rb +32 -0
- data/lib/way_of_working/changelog/keepachangelog/templates/docs/way_of_working/changelog.md +73 -0
- data/lib/way_of_working/changelog/keepachangelog.rb +31 -0
- data/lib/way_of_working/cli.rb +13 -0
- data/lib/way_of_working/code_of_conduct/contributor_covenant/generators/init.rb +69 -0
- data/lib/way_of_working/code_of_conduct/contributor_covenant/github_audit_rule.rb +33 -0
- data/lib/way_of_working/code_of_conduct/contributor_covenant/templates/CODE_OF_CONDUCT.md.tt +83 -0
- data/lib/way_of_working/code_of_conduct/contributor_covenant/templates/docs/way_of_working/code-of-conduct.md +79 -0
- data/lib/way_of_working/code_of_conduct/contributor_covenant.rb +32 -0
- data/lib/way_of_working/completion.rb +60 -0
- data/lib/way_of_working/config.rb +45 -0
- data/lib/way_of_working/decision_record/madr/generators/init.rb +41 -0
- data/lib/way_of_working/decision_record/madr/generators/new.rb +69 -0
- data/lib/way_of_working/decision_record/madr/github_audit_rule.rb +37 -0
- data/lib/way_of_working/decision_record/madr/templates/.github/ISSUE_TEMPLATE/decision-record.md +26 -0
- data/lib/way_of_working/decision_record/madr/templates/docs/decisions/0000-use-markdown-any-decision-records.md +30 -0
- data/lib/way_of_working/decision_record/madr/templates/docs/decisions/README.md +7 -0
- data/lib/way_of_working/decision_record/madr/templates/docs/decisions/adr-template.md.tt +82 -0
- data/lib/way_of_working/decision_record/madr/templates/docs/decisions/index.md +48 -0
- data/lib/way_of_working/decision_record/madr/templates/docs/way_of_working/decision-records.md +195 -0
- data/lib/way_of_working/decision_record/madr.rb +49 -0
- data/lib/way_of_working/git/repo_reader.rb +2 -2
- data/lib/way_of_working/inclusive_language/alex/generators/exec.rb +51 -0
- data/lib/way_of_working/inclusive_language/alex/generators/init.rb +59 -0
- data/lib/way_of_working/inclusive_language/alex/github_audit_rule.rb +42 -0
- data/lib/way_of_working/inclusive_language/alex/templates/.alexignore +2 -0
- data/lib/way_of_working/inclusive_language/alex/templates/.alexrc +3 -0
- data/lib/way_of_working/inclusive_language/alex/templates/.github/workflows/inclusive-language.yml +16 -0
- data/lib/way_of_working/inclusive_language/alex/templates/docs/way_of_working/inclusive-language.md +28 -0
- data/lib/way_of_working/inclusive_language/alex.rb +46 -0
- data/lib/way_of_working/pull_request_template/hdi/generators/init.rb +26 -0
- data/lib/way_of_working/pull_request_template/hdi/github_audit_rule.rb +32 -0
- data/lib/way_of_working/pull_request_template/hdi/templates/.github/pull_request_template.md +51 -0
- data/lib/way_of_working/pull_request_template/hdi/templates/docs/way_of_working/pull-request-template-and-guidelines.md +50 -0
- data/lib/way_of_working/pull_request_template/hdi.rb +31 -0
- data/lib/way_of_working/readme_badge/generators/init.rb +11 -1
- data/lib/way_of_working/readme_badge/paths.rb +5 -2
- data/lib/way_of_working/readme_badge.rb +2 -6
- data/lib/way_of_working/sub_commands/base.rb +12 -0
- data/lib/way_of_working/sub_commands/config.rb +25 -0
- data/lib/way_of_working/sub_commands/init.rb +1 -1
- data/lib/way_of_working/version.rb +1 -1
- data/lib/way_of_working/versioning/semver/generators/init.rb +20 -0
- data/lib/way_of_working/versioning/semver/github_audit_rule.rb +38 -0
- data/lib/way_of_working/versioning/semver/templates/docs/way_of_working/versioning.md +71 -0
- data/lib/way_of_working/versioning/semver.rb +31 -0
- data/lib/way_of_working.rb +22 -0
- data/way_of_working.gemspec +5 -1
- metadata +108 -9
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative 'hdi/generators/init'
|
|
4
|
+
|
|
5
|
+
# Register the GitHub audit rule (the registry is bundled with this gem)
|
|
6
|
+
require_relative 'hdi/github_audit_rule'
|
|
7
|
+
|
|
8
|
+
module WayOfWorking
|
|
9
|
+
module PullRequestTemplate
|
|
10
|
+
module Hdi
|
|
11
|
+
class Error < StandardError; end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
module SubCommands
|
|
16
|
+
# This reopens the "way_of_working init" sub command
|
|
17
|
+
class Init
|
|
18
|
+
register(PullRequestTemplate::Hdi::Generators::Init, 'pull_request_template', 'pull_request_template',
|
|
19
|
+
<<~LONGDESC)
|
|
20
|
+
Description:
|
|
21
|
+
Installs the Pull Request template into the project
|
|
22
|
+
|
|
23
|
+
Example:
|
|
24
|
+
way_of_working init pull_request_template
|
|
25
|
+
|
|
26
|
+
This will create:
|
|
27
|
+
.github/pull_request_template.md
|
|
28
|
+
LONGDESC
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
@@ -6,6 +6,7 @@ require 'way_of_working/readme_badge/paths'
|
|
|
6
6
|
module WayOfWorking
|
|
7
7
|
module ReadmeBadge
|
|
8
8
|
module Generators
|
|
9
|
+
MAIN_HOLDER_START_TAG = '<!-- Way of Working: Main Badge Holder Start -->'
|
|
9
10
|
HOLDER_END_TAG = "<!-- Way of Working: Badge Holder End -->\n"
|
|
10
11
|
|
|
11
12
|
# This generator adds the alexrc file
|
|
@@ -19,9 +20,18 @@ module WayOfWorking
|
|
|
19
20
|
end
|
|
20
21
|
|
|
21
22
|
def insert_badge_holder_into_readme
|
|
23
|
+
# Thor only skips an insert whose exact text (version included) is already there,
|
|
24
|
+
# so refresh the existing badge instead of stacking a new holder.
|
|
25
|
+
readme = File.join(destination_root, 'README.md')
|
|
26
|
+
if behavior == :invoke && File.read(readme).include?(MAIN_HOLDER_START_TAG)
|
|
27
|
+
return gsub_file('README.md', /^#{MAIN_HOLDER_START_TAG}\n.*$/) do
|
|
28
|
+
"#{MAIN_HOLDER_START_TAG}\n#{main_badge}"
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
|
|
22
32
|
content = <<~MARKDOWN + HOLDER_END_TAG
|
|
23
33
|
|
|
24
|
-
|
|
34
|
+
#{MAIN_HOLDER_START_TAG}
|
|
25
35
|
#{main_badge}
|
|
26
36
|
<!-- Way of Working: Additional Badge Holder Start -->
|
|
27
37
|
MARKDOWN
|
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
require 'pathname'
|
|
4
4
|
|
|
5
5
|
module WayOfWorking
|
|
6
|
-
#
|
|
6
|
+
# Namespace for the internal ReadmeBadge plugin
|
|
7
7
|
module ReadmeBadge
|
|
8
|
-
|
|
8
|
+
# Mixin that provides a couple of pathname convenience methods
|
|
9
|
+
module Paths
|
|
9
10
|
def root
|
|
10
11
|
Pathname.new(File.expand_path('../../..', __dir__))
|
|
11
12
|
end
|
|
@@ -14,5 +15,7 @@ module WayOfWorking
|
|
|
14
15
|
root.join('lib', 'way_of_working', 'readme_badge', 'templates')
|
|
15
16
|
end
|
|
16
17
|
end
|
|
18
|
+
|
|
19
|
+
extend Paths
|
|
17
20
|
end
|
|
18
21
|
end
|
|
@@ -2,12 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
require_relative 'readme_badge/generators/init'
|
|
4
4
|
|
|
5
|
-
#
|
|
6
|
-
|
|
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
|
|
5
|
+
# Register the GitHub audit rule (the registry is bundled with this gem)
|
|
6
|
+
require_relative 'readme_badge/github_audit_rule'
|
|
11
7
|
|
|
12
8
|
module WayOfWorking
|
|
13
9
|
module SubCommands
|
|
@@ -7,10 +7,22 @@ module WayOfWorking
|
|
|
7
7
|
# This base class enables subcommands to work correctly with help. See:
|
|
8
8
|
# https://github.com/rails/thor/wiki/Subcommands#subcommands-that-work-correctly-with-help
|
|
9
9
|
class Base < Thor
|
|
10
|
+
def self.exit_on_failure?
|
|
11
|
+
true
|
|
12
|
+
end
|
|
13
|
+
|
|
10
14
|
def self.banner(command, _namespace = nil, _subcommand = false)
|
|
11
15
|
"#{basename} #{subcommand_prefix} #{command.usage}"
|
|
12
16
|
end
|
|
13
17
|
|
|
18
|
+
# Thor's register doesn't copy a Thor::Group's class_options onto the
|
|
19
|
+
# wrapper command, so they're missing from help. See:
|
|
20
|
+
# https://github.com/rails/thor/issues/661
|
|
21
|
+
def self.register(klass, subcommand_name, usage, description, options = {})
|
|
22
|
+
super
|
|
23
|
+
commands[subcommand_name].options = klass.class_options if klass <= Thor::Group
|
|
24
|
+
end
|
|
25
|
+
|
|
14
26
|
def self.subcommand_prefix
|
|
15
27
|
name.gsub(/.*::/, '').gsub(/^[A-Z]/) { |match| match[0].downcase }.
|
|
16
28
|
gsub(/[A-Z]/) { |match| "-#{match[0].downcase}" }
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative 'base'
|
|
4
|
+
require_relative '../config'
|
|
5
|
+
|
|
6
|
+
module WayOfWorking
|
|
7
|
+
module SubCommands
|
|
8
|
+
# This class defines the "config" parent command, for persisting values (like a
|
|
9
|
+
# code of conduct contact method) in ~/.config/way_of_working/config.yaml so
|
|
10
|
+
# they don't need to be passed as CLI options every time
|
|
11
|
+
class Config < Base
|
|
12
|
+
desc 'get [KEY]', 'Reads a value from the way_of_working config file'
|
|
13
|
+
def get(key)
|
|
14
|
+
value = ::WayOfWorking::Config.get(key)
|
|
15
|
+
say(value.nil? ? "#{key} is not set" : value.to_s)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
desc 'set [KEY] [VALUE]', 'Writes a value to the way_of_working config file'
|
|
19
|
+
def set(key, value)
|
|
20
|
+
::WayOfWorking::Config.set(key, value)
|
|
21
|
+
say "Saved #{key} to #{::WayOfWorking::Config.path}"
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -8,7 +8,7 @@ module WayOfWorking
|
|
|
8
8
|
class Init < Base
|
|
9
9
|
desc 'all --contact-method [CONTACT METHOD]',
|
|
10
10
|
'This adds all of the available Way of Working components to this project'
|
|
11
|
-
method_option :contact_method
|
|
11
|
+
method_option :contact_method
|
|
12
12
|
def all
|
|
13
13
|
invoke_all
|
|
14
14
|
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WayOfWorking
|
|
4
|
+
module Versioning
|
|
5
|
+
module Semver
|
|
6
|
+
module Generators
|
|
7
|
+
# This generator add the Semver files to the doc/decisions folder
|
|
8
|
+
class Init < Thor::Group
|
|
9
|
+
include Thor::Actions
|
|
10
|
+
|
|
11
|
+
source_root WayOfWorking.root.join('lib', 'way_of_working', 'versioning', 'semver', 'templates')
|
|
12
|
+
|
|
13
|
+
def copy_way_of_working_file
|
|
14
|
+
copy_file 'docs/way_of_working/versioning.md'
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'way_of_working/audit/github/rules/base'
|
|
4
|
+
|
|
5
|
+
module WayOfWorking
|
|
6
|
+
module Versioning
|
|
7
|
+
# The namespace for this plugin
|
|
8
|
+
module Semver
|
|
9
|
+
# This rule checks for the versioning documentation
|
|
10
|
+
class GithubAuditRule < ::WayOfWorking::Audit::Github::Rules::Base
|
|
11
|
+
source_root WayOfWorking.root.join('lib', 'way_of_working', 'versioning', 'semver', 'templates')
|
|
12
|
+
|
|
13
|
+
def validate
|
|
14
|
+
validate_repo_file_contains_source_file(
|
|
15
|
+
'docs/way_of_working/versioning.md'
|
|
16
|
+
)
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
private
|
|
20
|
+
|
|
21
|
+
def validate_repo_file_contains_source_file(*paths)
|
|
22
|
+
paths.each do |path|
|
|
23
|
+
if repo_file_contents(path).nil?
|
|
24
|
+
@errors << "#{path} missing"
|
|
25
|
+
next
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
@errors << "#{path} does not match the source template" unless repo_file_contains_source_file?(path)
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
::WayOfWorking::Audit::Github::Rules::Registry.register(
|
|
34
|
+
GithubAuditRule, 'Semantic Versioning'
|
|
35
|
+
)
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
---
|
|
2
|
+
layout: page
|
|
3
|
+
status: REQUIRED
|
|
4
|
+
enforcement: manual
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Versioning
|
|
8
|
+
|
|
9
|
+
## Purpose
|
|
10
|
+
|
|
11
|
+
Define the versioning standard for communicating software changes and managing releases across projects.
|
|
12
|
+
|
|
13
|
+
## Scope
|
|
14
|
+
|
|
15
|
+
Applies to all software projects requiring version identification.
|
|
16
|
+
|
|
17
|
+
## Requirements
|
|
18
|
+
|
|
19
|
+
Use [Semantic Versioning](https://semver.org) (semver) with format `MAJOR.MINOR.PATCH`:
|
|
20
|
+
|
|
21
|
+
1. **MAJOR**: Increment for incompatible API changes
|
|
22
|
+
2. **MINOR**: Increment for backwards-compatible functionality additions
|
|
23
|
+
3. **PATCH**: Increment for backwards-compatible bug fixes
|
|
24
|
+
|
|
25
|
+
Pre-release and build metadata labels available as extensions.
|
|
26
|
+
|
|
27
|
+
## Setup
|
|
28
|
+
|
|
29
|
+
No specific tooling required. Apply version numbers to:
|
|
30
|
+
|
|
31
|
+
- Git tags
|
|
32
|
+
- Package manifests (`package.json`, `Cargo.toml`, etc.)
|
|
33
|
+
- Release notes
|
|
34
|
+
- Documentation
|
|
35
|
+
|
|
36
|
+
## Usage
|
|
37
|
+
|
|
38
|
+
**When to increment:**
|
|
39
|
+
|
|
40
|
+
- Breaking changes → increment MAJOR (e.g., 1.2.3 → 2.0.0)
|
|
41
|
+
- New features (backwards-compatible) → increment MINOR (e.g., 1.2.3 → 1.3.0)
|
|
42
|
+
- Bug fixes (backwards-compatible) → increment PATCH (e.g., 1.2.3 → 1.2.4)
|
|
43
|
+
|
|
44
|
+
**Pre-release versions:** Append hyphen and identifiers (e.g., 1.0.0-alpha, 1.0.0-beta.1)
|
|
45
|
+
|
|
46
|
+
**Build metadata:** Append plus sign and identifiers (e.g., 1.0.0+20240115)
|
|
47
|
+
|
|
48
|
+
## Enforcement
|
|
49
|
+
|
|
50
|
+
Manual enforcement through:
|
|
51
|
+
|
|
52
|
+
- Code review verification
|
|
53
|
+
- Release checklist validation
|
|
54
|
+
- Automated CI checks (where configured)
|
|
55
|
+
|
|
56
|
+
## Examples
|
|
57
|
+
|
|
58
|
+
```text
|
|
59
|
+
0.1.0 → Initial development
|
|
60
|
+
1.0.0 → First stable release
|
|
61
|
+
1.1.0 → Added new feature
|
|
62
|
+
1.1.1 → Fixed bug
|
|
63
|
+
2.0.0 → Breaking API change
|
|
64
|
+
2.0.0-rc.1 → Release candidate
|
|
65
|
+
1.2.3+build.456 → With build metadata
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Resources
|
|
69
|
+
|
|
70
|
+
- [Semantic Versioning Specification](https://semver.org)
|
|
71
|
+
- [Semver Calculator](https://semver.npmjs.com) - Determine version impact
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative 'semver/generators/init'
|
|
4
|
+
|
|
5
|
+
# Register the GitHub audit rule (the registry is bundled with this gem)
|
|
6
|
+
require_relative 'semver/github_audit_rule'
|
|
7
|
+
|
|
8
|
+
module WayOfWorking
|
|
9
|
+
module Versioning
|
|
10
|
+
module Semver
|
|
11
|
+
class Error < StandardError; end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
module SubCommands
|
|
16
|
+
# This reopens the "way_of_working init" sub command
|
|
17
|
+
class Init
|
|
18
|
+
register(Versioning::Semver::Generators::Init, 'versioning', 'versioning',
|
|
19
|
+
<<~LONGDESC)
|
|
20
|
+
Description:
|
|
21
|
+
This generator adds Semantic Versioning to your project
|
|
22
|
+
|
|
23
|
+
Example:
|
|
24
|
+
way_of_working init versioning
|
|
25
|
+
|
|
26
|
+
This will create:
|
|
27
|
+
docs/way_of_working/versioning.md
|
|
28
|
+
LONGDESC
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
data/lib/way_of_working.rb
CHANGED
|
@@ -8,6 +8,28 @@ require 'zeitwerk'
|
|
|
8
8
|
require 'way_of_working/readme_badge'
|
|
9
9
|
|
|
10
10
|
loader = Zeitwerk::Loader.for_gem
|
|
11
|
+
# tasks.rb is a rake-task entrypoint, not a constant definition — exclude it
|
|
12
|
+
# from Zeitwerk's file-to-constant expectations so downstream apps can
|
|
13
|
+
# `require 'way_of_working/tasks'` from their Rakefile.
|
|
14
|
+
loader.ignore(File.expand_path('way_of_working/tasks.rb', __dir__))
|
|
15
|
+
# github_audit_rule.rb files are loaded explicitly by their feature file (see
|
|
16
|
+
# readme_badge.rb) and register themselves on load, so keep them out of
|
|
17
|
+
# Zeitwerk's eager-load walk. Eager-loading them would register every rule,
|
|
18
|
+
# not just those of the features the user required.
|
|
19
|
+
loader.ignore("#{__dir__}/way_of_working/**/github_audit_rule.rb")
|
|
20
|
+
# Opt-in built-in feature entrypoints reopen the sub commands and register
|
|
21
|
+
# their generators at load time. Exclude them from Zeitwerk so eager loading
|
|
22
|
+
# (e.g. a Rails app in production) does not enable features the host never
|
|
23
|
+
# required. They are only loaded by an explicit `require`.
|
|
24
|
+
%w[
|
|
25
|
+
audit/github
|
|
26
|
+
changelog/keepachangelog
|
|
27
|
+
code_of_conduct/contributor_covenant
|
|
28
|
+
decision_record/madr
|
|
29
|
+
inclusive_language/alex
|
|
30
|
+
pull_request_template/hdi
|
|
31
|
+
versioning/semver
|
|
32
|
+
].each { |feature| loader.ignore(File.expand_path("way_of_working/#{feature}.rb", __dir__)) }
|
|
11
33
|
loader.setup
|
|
12
34
|
|
|
13
35
|
# This is the namespace for everything associated with the Way of Working
|
data/way_of_working.gemspec
CHANGED
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
|
10
10
|
|
|
11
11
|
spec.summary = 'RubyGem for the HDI way of working.'
|
|
12
12
|
# spec.description = "TODO: Write a longer description or delete this line."
|
|
13
|
-
spec.homepage = 'https://
|
|
13
|
+
spec.homepage = 'https://github.com/HealthDataInsight/way_of_working#readme'
|
|
14
14
|
spec.license = 'MIT'
|
|
15
15
|
spec.required_ruby_version = '>= 3.1'
|
|
16
16
|
|
|
@@ -38,8 +38,12 @@ Gem::Specification.new do |spec|
|
|
|
38
38
|
# For more information and examples about making a new gem, check out our
|
|
39
39
|
# guide at: https://bundler.io/guides/creating_gem.html
|
|
40
40
|
spec.add_dependency 'activesupport'
|
|
41
|
+
spec.add_dependency 'base64' # bundled (not default) gem from Ruby 3.4; used by the audit rules
|
|
42
|
+
spec.add_dependency 'faraday-multipart', '~> 1.0'
|
|
43
|
+
spec.add_dependency 'faraday-retry', '~> 2.2'
|
|
41
44
|
spec.add_dependency 'git', '~> 1.13'
|
|
42
45
|
spec.add_dependency 'nokogiri'
|
|
46
|
+
spec.add_dependency 'octokit', '~> 9.1'
|
|
43
47
|
spec.add_dependency 'rainbow', '~> 3.1'
|
|
44
48
|
spec.add_dependency 'thor', '~> 1.2'
|
|
45
49
|
spec.add_dependency 'zeitwerk', '~> 2.6.18'
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: way_of_working
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0
|
|
4
|
+
version: 2.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tim Gentry
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: activesupport
|
|
@@ -24,6 +23,48 @@ dependencies:
|
|
|
24
23
|
- - ">="
|
|
25
24
|
- !ruby/object:Gem::Version
|
|
26
25
|
version: '0'
|
|
26
|
+
- !ruby/object:Gem::Dependency
|
|
27
|
+
name: base64
|
|
28
|
+
requirement: !ruby/object:Gem::Requirement
|
|
29
|
+
requirements:
|
|
30
|
+
- - ">="
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: '0'
|
|
33
|
+
type: :runtime
|
|
34
|
+
prerelease: false
|
|
35
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
36
|
+
requirements:
|
|
37
|
+
- - ">="
|
|
38
|
+
- !ruby/object:Gem::Version
|
|
39
|
+
version: '0'
|
|
40
|
+
- !ruby/object:Gem::Dependency
|
|
41
|
+
name: faraday-multipart
|
|
42
|
+
requirement: !ruby/object:Gem::Requirement
|
|
43
|
+
requirements:
|
|
44
|
+
- - "~>"
|
|
45
|
+
- !ruby/object:Gem::Version
|
|
46
|
+
version: '1.0'
|
|
47
|
+
type: :runtime
|
|
48
|
+
prerelease: false
|
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
50
|
+
requirements:
|
|
51
|
+
- - "~>"
|
|
52
|
+
- !ruby/object:Gem::Version
|
|
53
|
+
version: '1.0'
|
|
54
|
+
- !ruby/object:Gem::Dependency
|
|
55
|
+
name: faraday-retry
|
|
56
|
+
requirement: !ruby/object:Gem::Requirement
|
|
57
|
+
requirements:
|
|
58
|
+
- - "~>"
|
|
59
|
+
- !ruby/object:Gem::Version
|
|
60
|
+
version: '2.2'
|
|
61
|
+
type: :runtime
|
|
62
|
+
prerelease: false
|
|
63
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
64
|
+
requirements:
|
|
65
|
+
- - "~>"
|
|
66
|
+
- !ruby/object:Gem::Version
|
|
67
|
+
version: '2.2'
|
|
27
68
|
- !ruby/object:Gem::Dependency
|
|
28
69
|
name: git
|
|
29
70
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -52,6 +93,20 @@ dependencies:
|
|
|
52
93
|
- - ">="
|
|
53
94
|
- !ruby/object:Gem::Version
|
|
54
95
|
version: '0'
|
|
96
|
+
- !ruby/object:Gem::Dependency
|
|
97
|
+
name: octokit
|
|
98
|
+
requirement: !ruby/object:Gem::Requirement
|
|
99
|
+
requirements:
|
|
100
|
+
- - "~>"
|
|
101
|
+
- !ruby/object:Gem::Version
|
|
102
|
+
version: '9.1'
|
|
103
|
+
type: :runtime
|
|
104
|
+
prerelease: false
|
|
105
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
106
|
+
requirements:
|
|
107
|
+
- - "~>"
|
|
108
|
+
- !ruby/object:Gem::Version
|
|
109
|
+
version: '9.1'
|
|
55
110
|
- !ruby/object:Gem::Dependency
|
|
56
111
|
name: rainbow
|
|
57
112
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -94,7 +149,6 @@ dependencies:
|
|
|
94
149
|
- - "~>"
|
|
95
150
|
- !ruby/object:Gem::Version
|
|
96
151
|
version: 2.6.18
|
|
97
|
-
description:
|
|
98
152
|
email:
|
|
99
153
|
- 52189+timgentry@users.noreply.github.com
|
|
100
154
|
executables:
|
|
@@ -103,17 +157,59 @@ extensions: []
|
|
|
103
157
|
extra_rdoc_files: []
|
|
104
158
|
files:
|
|
105
159
|
- CHANGELOG.md
|
|
160
|
+
- CLAUDE.md
|
|
106
161
|
- CODE_OF_CONDUCT.md
|
|
162
|
+
- CONTRIBUTING.md
|
|
107
163
|
- LICENSE.txt
|
|
108
164
|
- README.md
|
|
109
165
|
- exe/way_of_working
|
|
110
166
|
- lib/tasks/audit_gems.rake
|
|
111
167
|
- lib/way_of_working.rb
|
|
168
|
+
- lib/way_of_working/audit/github.rb
|
|
169
|
+
- lib/way_of_working/audit/github/auditor.rb
|
|
170
|
+
- lib/way_of_working/audit/github/generators/exec.rb
|
|
171
|
+
- lib/way_of_working/audit/github/rules/base.rb
|
|
172
|
+
- lib/way_of_working/audit/github/rules/registry.rb
|
|
173
|
+
- lib/way_of_working/audit/github/rules/unknown.rb
|
|
174
|
+
- lib/way_of_working/changelog/keepachangelog.rb
|
|
175
|
+
- lib/way_of_working/changelog/keepachangelog/generators/init.rb
|
|
176
|
+
- lib/way_of_working/changelog/keepachangelog/github_audit_rule.rb
|
|
177
|
+
- lib/way_of_working/changelog/keepachangelog/templates/docs/way_of_working/changelog.md
|
|
112
178
|
- lib/way_of_working/cli.rb
|
|
179
|
+
- lib/way_of_working/code_of_conduct/contributor_covenant.rb
|
|
180
|
+
- lib/way_of_working/code_of_conduct/contributor_covenant/generators/init.rb
|
|
181
|
+
- lib/way_of_working/code_of_conduct/contributor_covenant/github_audit_rule.rb
|
|
182
|
+
- lib/way_of_working/code_of_conduct/contributor_covenant/templates/CODE_OF_CONDUCT.md.tt
|
|
183
|
+
- lib/way_of_working/code_of_conduct/contributor_covenant/templates/docs/way_of_working/code-of-conduct.md
|
|
184
|
+
- lib/way_of_working/completion.rb
|
|
185
|
+
- lib/way_of_working/config.rb
|
|
113
186
|
- lib/way_of_working/configuration.rb
|
|
187
|
+
- lib/way_of_working/decision_record/madr.rb
|
|
188
|
+
- lib/way_of_working/decision_record/madr/generators/init.rb
|
|
189
|
+
- lib/way_of_working/decision_record/madr/generators/new.rb
|
|
190
|
+
- lib/way_of_working/decision_record/madr/github_audit_rule.rb
|
|
191
|
+
- lib/way_of_working/decision_record/madr/templates/.github/ISSUE_TEMPLATE/decision-record.md
|
|
192
|
+
- lib/way_of_working/decision_record/madr/templates/docs/decisions/0000-use-markdown-any-decision-records.md
|
|
193
|
+
- lib/way_of_working/decision_record/madr/templates/docs/decisions/README.md
|
|
194
|
+
- lib/way_of_working/decision_record/madr/templates/docs/decisions/adr-template.md.tt
|
|
195
|
+
- lib/way_of_working/decision_record/madr/templates/docs/decisions/index.md
|
|
196
|
+
- lib/way_of_working/decision_record/madr/templates/docs/way_of_working/decision-records.md
|
|
114
197
|
- lib/way_of_working/git/repo_reader.rb
|
|
115
198
|
- lib/way_of_working/git/summary_tag.rb
|
|
199
|
+
- lib/way_of_working/inclusive_language/alex.rb
|
|
200
|
+
- lib/way_of_working/inclusive_language/alex/generators/exec.rb
|
|
201
|
+
- lib/way_of_working/inclusive_language/alex/generators/init.rb
|
|
202
|
+
- lib/way_of_working/inclusive_language/alex/github_audit_rule.rb
|
|
203
|
+
- lib/way_of_working/inclusive_language/alex/templates/.alexignore
|
|
204
|
+
- lib/way_of_working/inclusive_language/alex/templates/.alexrc
|
|
205
|
+
- lib/way_of_working/inclusive_language/alex/templates/.github/workflows/inclusive-language.yml
|
|
206
|
+
- lib/way_of_working/inclusive_language/alex/templates/docs/way_of_working/inclusive-language.md
|
|
116
207
|
- lib/way_of_working/paths.rb
|
|
208
|
+
- lib/way_of_working/pull_request_template/hdi.rb
|
|
209
|
+
- lib/way_of_working/pull_request_template/hdi/generators/init.rb
|
|
210
|
+
- lib/way_of_working/pull_request_template/hdi/github_audit_rule.rb
|
|
211
|
+
- lib/way_of_working/pull_request_template/hdi/templates/.github/pull_request_template.md
|
|
212
|
+
- lib/way_of_working/pull_request_template/hdi/templates/docs/way_of_working/pull-request-template-and-guidelines.md
|
|
117
213
|
- lib/way_of_working/readme_badge.rb
|
|
118
214
|
- lib/way_of_working/readme_badge/generators/init.rb
|
|
119
215
|
- lib/way_of_working/readme_badge/github_audit_rule.rb
|
|
@@ -121,22 +217,26 @@ files:
|
|
|
121
217
|
- lib/way_of_working/readme_badge/templates/README.md
|
|
122
218
|
- lib/way_of_working/readme_badge/templates/docs/way_of_working/readme-badges.md.tt
|
|
123
219
|
- lib/way_of_working/sub_commands/base.rb
|
|
220
|
+
- lib/way_of_working/sub_commands/config.rb
|
|
124
221
|
- lib/way_of_working/sub_commands/exec.rb
|
|
125
222
|
- lib/way_of_working/sub_commands/init.rb
|
|
126
223
|
- lib/way_of_working/sub_commands/new.rb
|
|
127
224
|
- lib/way_of_working/tasks.rb
|
|
128
225
|
- lib/way_of_working/version.rb
|
|
226
|
+
- lib/way_of_working/versioning/semver.rb
|
|
227
|
+
- lib/way_of_working/versioning/semver/generators/init.rb
|
|
228
|
+
- lib/way_of_working/versioning/semver/github_audit_rule.rb
|
|
229
|
+
- lib/way_of_working/versioning/semver/templates/docs/way_of_working/versioning.md
|
|
129
230
|
- way_of_working.gemspec
|
|
130
|
-
homepage: https://
|
|
231
|
+
homepage: https://github.com/HealthDataInsight/way_of_working#readme
|
|
131
232
|
licenses:
|
|
132
233
|
- MIT
|
|
133
234
|
metadata:
|
|
134
235
|
allowed_push_host: https://rubygems.org
|
|
135
236
|
rubygems_mfa_required: 'true'
|
|
136
|
-
homepage_uri: https://
|
|
237
|
+
homepage_uri: https://github.com/HealthDataInsight/way_of_working#readme
|
|
137
238
|
source_code_uri: https://github.com/HealthDataInsight/way_of_working
|
|
138
239
|
changelog_uri: https://github.com/HealthDataInsight/way_of_working/blob/main/CHANGELOG.md
|
|
139
|
-
post_install_message:
|
|
140
240
|
rdoc_options: []
|
|
141
241
|
require_paths:
|
|
142
242
|
- lib
|
|
@@ -151,8 +251,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
151
251
|
- !ruby/object:Gem::Version
|
|
152
252
|
version: '0'
|
|
153
253
|
requirements: []
|
|
154
|
-
rubygems_version: 3.
|
|
155
|
-
signing_key:
|
|
254
|
+
rubygems_version: 3.6.9
|
|
156
255
|
specification_version: 4
|
|
157
256
|
summary: RubyGem for the HDI way of working.
|
|
158
257
|
test_files: []
|