code_teams 1.0.0 → 1.0.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: 82e9081880258d807cdc9cb6393597d729e36ddb2cc0e91cc5f2179b52477d6a
4
- data.tar.gz: ef5116c3487e50cb9987bf110e64410a5c343341db448df9a9c3400b8ee0feee
3
+ metadata.gz: 5d502e7a3fa030ae01c9a378f92c7a68b3023790fc7c6bf4a989c9e64cb97ae9
4
+ data.tar.gz: 361dfec2d98681b5a8c8f972073d42be8a90e5b99a631ee9592526138d3ca585
5
5
  SHA512:
6
- metadata.gz: 74a20af786913be7e7a12a5ad64c1605ddeca3ba895cb1733095d1b4762ffc26a08798073697c25d9939aa59c94174badaae70e37e7306b24b7ba2e62aac67d3
7
- data.tar.gz: d070407e8113266e5f364c7abc3485bee7bc15bdaa5a25d46e98c5066e9ccd4561ef1b9ad9808adb0ef9df4eebf613838a74bc8d78587795b8d97bec99837b19
6
+ metadata.gz: c87952e403b7cac5697fa96f622a0d4e79bda1ffac2e29ad5091a6d04fbe72280e507a6553c692c80e5ce4ee4670006e419ea3ee9b25045886b7259821c07c1a
7
+ data.tar.gz: 926e7cd12648bc5506a9f80c74b95d4a66af1fea5ae277f69efa45fbf81ff5c4a4928674f86c999d02cc6a1a221c236ad220f4066034f67dafab2cb0cff024f6
data/README.md CHANGED
@@ -41,7 +41,9 @@ class MyGithubPlugin < CodeTeams::Plugin
41
41
  errors = T.let([], T::Array[String])
42
42
 
43
43
  teams.each do |team|
44
- errors << missing_key_error_message(team, 'github.team') if self.for(team).github.team.nil?
44
+ if self.for(team).github.team.nil?
45
+ errors << missing_key_error_message(team, 'github.team')
46
+ end
45
47
  end
46
48
 
47
49
  errors
@@ -53,7 +55,7 @@ After adding the proper GitHub information to the team YML:
53
55
  ```yml
54
56
  name: My Team
55
57
  github:
56
- team: '@org/my-team
58
+ team: '@org/my-team'
57
59
  members:
58
60
  - member1
59
61
  - member2
@@ -70,8 +72,8 @@ Your plugins can be as simple or as complex as you want. Here are some other thi
70
72
  - Identifying which teams own which feature flags
71
73
  - Mapping teams to specific portions of the code through `code_ownership`
72
74
  - Allowing teams to protect certain files and require approval on modification of certain files
73
- - Specifying owned dependencies (ruby gems, javascript packages, and more)
74
- - Specifying how to get in touch with the team via slack (their channel and handle)
75
+ - Specifying owned dependencies (Ruby gems, JavaScript packages, and more)
76
+ - Specifying how to get in touch with the team via Slack (their channel and handle)
75
77
 
76
78
  ## Configuration
77
79
  You'll want to ensure that all teams are valid in your CI environment. We recommend running code like this in CI:
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: code_teams
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gusto Engineers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-14 00:00:00.000000000 Z
11
+ date: 2023-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sorbet-runtime
@@ -91,8 +91,6 @@ files:
91
91
  - lib/code_teams.rb
92
92
  - lib/code_teams/plugin.rb
93
93
  - lib/code_teams/plugins/identity.rb
94
- - sorbet/config
95
- - sorbet/rbi/todo.rbi
96
94
  homepage: https://github.com/rubyatscale/code_teams
97
95
  licenses:
98
96
  - MIT
@@ -116,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
114
  - !ruby/object:Gem::Version
117
115
  version: '0'
118
116
  requirements: []
119
- rubygems_version: 3.3.7
117
+ rubygems_version: 3.1.6
120
118
  signing_key:
121
119
  specification_version: 4
122
120
  summary: A low-dependency gem for declaring and querying engineering teams
data/sorbet/config DELETED
@@ -1,2 +0,0 @@
1
- --dir
2
- .
data/sorbet/rbi/todo.rbi DELETED
@@ -1,5 +0,0 @@
1
- # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
- # srb rbi todo
3
-
4
- # typed: strong
5
- module ::RSpec; end