Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
Bandwidth - the Ruby gem for the Bandwidth SDK

### Generated with the command:
`openapi-generator generate -g ruby -i bandwidth.yml -c openapi-config.yml -o ./`
`bash generate.sh`

Bandwidth's Communication APIs

Expand Down
2 changes: 1 addition & 1 deletion custom_templates/README.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
{{moduleName}} - the Ruby gem for the {{appName}} SDK

### Generated with the command:
`openapi-generator generate -g ruby -i bandwidth.yml -c openapi-config.yml -o ./`
`bash generate.sh`

{{#appDescriptionWithNewLines}}
{{{.}}}
Expand Down
2 changes: 2 additions & 0 deletions custom_templates/gem.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ require 'bandwidth-sdk/models/bxml/verb'
require 'bandwidth-sdk/models/bxml/nestable_verb'
require 'bandwidth-sdk/models/bxml/verbs/bridge'
require 'bandwidth-sdk/models/bxml/verbs/conference'
require 'bandwidth-sdk/models/bxml/verbs/connect'
require 'bandwidth-sdk/models/bxml/verbs/custom_param'
require 'bandwidth-sdk/models/bxml/verbs/endpoint'
require 'bandwidth-sdk/models/bxml/verbs/forward'
require 'bandwidth-sdk/models/bxml/verbs/gather'
require 'bandwidth-sdk/models/bxml/verbs/hangup'
Expand Down
9 changes: 9 additions & 0 deletions generate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
set -euo pipefail
cd "$(dirname "${BASH_SOURCE[0]}")"

npx --yes @openapitools/openapi-generator-cli generate \
-i bandwidth.yml -g ruby -c openapi-config.yml -o . "$@"

bundle install
bundle exec rubocop -A