Skip to content
This repository was archived by the owner on Nov 8, 2018. It is now read-only.

Fix support of no_proxy #56

Merged
merged 1 commit into from
Feb 28, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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