Skip to content
Snippets Groups Projects
Commit 11f75faf authored by Tim Emiola's avatar Tim Emiola
Browse files

Ensures the auth modules are available with just require 'grpc'

- Also fixes some lint issues
parent 4694df3c
No related branches found
No related tags found
No related merge requests found
...@@ -27,6 +27,8 @@ ...@@ -27,6 +27,8 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
require 'grpc/auth/compute_engine.rb'
require 'grpc/auth/service_account.rb'
require 'grpc/errors' require 'grpc/errors'
require 'grpc/grpc' require 'grpc/grpc'
require 'grpc/logconfig' require 'grpc/logconfig'
......
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
require 'signet/oauth_2/client' require 'signet/oauth_2/client'
module Signet module Signet
# Signet::OAuth2 supports OAuth2 authentication.
module OAuth2 module OAuth2
AUTH_METADATA_KEY = :Authorization AUTH_METADATA_KEY = :Authorization
# Signet::OAuth2::Client creates an OAuth2 client # Signet::OAuth2::Client creates an OAuth2 client
......
...@@ -43,7 +43,6 @@ end ...@@ -43,7 +43,6 @@ end
WANTED_AUTH_KEY = :Authorization WANTED_AUTH_KEY = :Authorization
shared_examples 'apply/apply! are OK' do shared_examples 'apply/apply! are OK' do
# tests that use these examples need to define # tests that use these examples need to define
# #
# @client which should be an auth client # @client which should be an auth client
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment