Skip to content

Commit

Permalink
fix: connect_database doc string
Browse files Browse the repository at this point in the history
  • Loading branch information
John2360 committed Aug 22, 2024
1 parent 2f6fba3 commit d695410
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
gem build *.gemspec
gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} *.gem
env:
GEM_HOST_API_KEY: "Bearer ${{secrets.GITHUB_TOKEN}}"
GEM_HOST_API_KEY: "Bearer ${{secrets.GIT_TOKEN}}"
OWNER: ${{ github.repository_owner }}

- name: Publish to RubyGems
Expand Down
3 changes: 3 additions & 0 deletions lib/fortress.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ def delete_tenant(id)
_ = make_request(:delete, endpoint)
end

# Connect to a database.
# @param id [String] The database ID.
# @return [PG::Connection] The connection to the database.
def connect_database(id)
connection_details = get_connection_uri(id, 'database')
PG::Connection.new(dbname: connection_details.database, user: connection_details.username,
Expand Down
2 changes: 1 addition & 1 deletion lib/fortress/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Fortress
VERSION = "0.1.0"
VERSION = '0.1.1'
end

0 comments on commit d695410

Please sign in to comment.