Skip to content

Commit

Permalink
fix(rules): add GCP Speech
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Aug 7, 2023
1 parent da08aef commit 55020f6
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/common/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export const list: TechItem[] = [
{ key: 'gcp.maps', name: 'Maps', type: 'api' },
{ key: 'gcp.language', name: 'Language', type: 'api' },
{ key: 'gcp.secretmanager', name: 'Secret manager', type: 'db' },
{ key: 'gcp.speech', name: 'Speech', type: 'api' },
{ key: 'gcp.pubsub', name: 'PubSub', type: 'messaging' },
{ key: 'gcp.gce', name: 'Compute Engine', type: 'hosting' },
{ key: 'gcp.gcs', name: 'Cloud Storage', type: 'storage' },
Expand Down
13 changes: 13 additions & 0 deletions src/rules/api/gcp.speech.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { register } from '../../rules.js';

register({
tech: 'gcp.speech',
dependencies: [
{ type: 'npm', name: '@google-cloud/speech' },
{
type: 'ruby',
name: /^google-cloud-speech/,
example: 'google-cloud-speech-v1',
},
],
});
1 change: 1 addition & 0 deletions src/rules/api/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import './gcp.aiplatform.js';
import './gcp.language.js';
import './gcp.maps.js';
import './gcp.speech.js';
1 change: 1 addition & 0 deletions src/rules/spec/nodejs/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ exports[`npm > should match everything 1`] = `
"gcp.maps",
"gcp.pubsub",
"gcp.secretmanager",
"gcp.speech",
"gcp.sql",
"github",
"hotjar",
Expand Down
6 changes: 6 additions & 0 deletions src/rules/spec/ruby/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Set {
"gcp.aiplatform",
"gcp.language",
"gcp.maps",
"gcp.speech",
"zookeeper",
"aws",
"aws.dynamodb",
Expand Down Expand Up @@ -238,6 +239,11 @@ exports[`ruby (component) > should match everything 2`] = `
"google-cloud-secret_manager-v1",
"1.0.0",
],
[
"ruby",
"google-cloud-speech-v1",
"1.0.0",
],
[
"ruby",
"google-cloud-storage",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export type AllowedKeys =
| 'gcp.maps'
| 'gcp.pubsub'
| 'gcp.secretmanager'
| 'gcp.speech'
| 'gcp.sql'
| 'gcp'
| 'github.actions'
Expand Down

0 comments on commit 55020f6

Please sign in to comment.