Skip to content

Commit

Permalink
set the faraday client before requiring octokit.
Browse files Browse the repository at this point in the history
  • Loading branch information
databus23 committed Feb 24, 2017
1 parent d3eee49 commit 89a7439
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
8 changes: 5 additions & 3 deletions assets/lib/commands/base.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
require 'faraday'
require 'octokit'
require_relative '../input'

# httpclient and excon are the only Faraday adpater which support
# the no_proxy environment variable atm
# NOTE: this has to be set before require octokit
::Faraday.default_adapter = :httpclient

require 'octokit'
require_relative '../input'


module Commands
class Base
attr_reader :input
Expand Down
1 change: 0 additions & 1 deletion assets/lib/commands/in.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env ruby

require 'octokit'
require 'English'
require 'json'
require_relative 'base'
Expand Down
1 change: 0 additions & 1 deletion assets/lib/commands/out.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/env ruby

require 'json'
require 'octokit'
require_relative 'base'
require_relative '../repository'
require_relative '../status'
Expand Down

0 comments on commit 89a7439

Please sign in to comment.