Skip to content

Commit da12a99

Browse files
committed
Prepare RubyGems package publishing
1 parent 5cf1aa2 commit da12a99

3 files changed

Lines changed: 41 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Publish package
2+
3+
on:
4+
release:
5+
types: [published]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
rubygems:
13+
name: Publish to RubyGems
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: ruby/setup-ruby@v1
18+
with:
19+
ruby-version: "3.3"
20+
bundler-cache: true
21+
- run: gem build nvoip-ruby.gemspec
22+
- run: gem push nvoip-0.1.0.gem
23+
env:
24+
GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ SDK e exemplos oficiais da [Nvoip](https://www.nvoip.com.br/) para integrar a AP
88

99
- Ruby 3.0+
1010

11+
## Instalacao
12+
13+
```bash
14+
gem install nvoip
15+
```
16+
1117
## Configuração
1218

1319
```bash

nvoip-ruby.gemspec

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
11
Gem::Specification.new do |spec|
2-
spec.name = "nvoip-ruby"
2+
spec.name = "nvoip"
33
spec.version = "0.1.0"
4-
spec.summary = "Cliente Ruby simples para a API v2 da Nvoip"
4+
spec.summary = "SDK Ruby oficial para a API v2 da Nvoip"
5+
spec.description = "SDK Ruby oficial para integrar OAuth, chamadas, OTP, WhatsApp, SMS e saldo com a API v2 da Nvoip."
56
spec.authors = ["Nvoip"]
7+
spec.homepage = "https://www.nvoip.com.br/"
8+
spec.license = "GPL-3.0-only"
69
spec.files = Dir["lib/**/*", "README.md", "LICENSE", ".env.example"]
710
spec.require_paths = ["lib"]
811
spec.required_ruby_version = ">= 3.0"
12+
spec.metadata = {
13+
"bug_tracker_uri" => "https://github.com/Nvoip/nvoip-ruby/issues",
14+
"documentation_uri" => "https://nvoip.docs.apiary.io/",
15+
"homepage_uri" => "https://www.nvoip.com.br/",
16+
"source_code_uri" => "https://github.com/Nvoip/nvoip-ruby"
17+
}
918
end

0 commit comments

Comments
 (0)