diff --git a/lib/github_bot/github/client.rb b/lib/github_bot/github/client.rb index f71e3eb..f0de61d 100644 --- a/lib/github_bot/github/client.rb +++ b/lib/github_bot/github/client.rb @@ -2,6 +2,7 @@ require 'octokit' require 'uri' +require 'jwt' require_relative 'payload' module GithubBot @@ -180,7 +181,7 @@ def private_key exp: current + (10 * 60), iss: ENV['GITHUB_APP_IDENTIFIER'] } - JWT.encode(payload, private_key, 'RS256') + ::JWT.encode(payload, private_key, 'RS256') end # relay messages to Octokit::Client if responds to allow extension diff --git a/lib/github_bot/version.rb b/lib/github_bot/version.rb index da638d0..ec16e79 100644 --- a/lib/github_bot/version.rb +++ b/lib/github_bot/version.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true module GithubBot - VERSION = '0.2.0' + VERSION = '0.2.1' # version module module Version