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

Commit 1512f49

Browse files
authored
Merge pull request #56 from databus23/fix_no_proxy
Fix support of no_proxy
2 parents 5841ce4 + 89a7439 commit 1512f49

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

assets/lib/commands/base.rb

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
require 'faraday'
2-
require 'octokit'
3-
require_relative '../input'
4-
52
# httpclient and excon are the only Faraday adpater which support
63
# the no_proxy environment variable atm
4+
# NOTE: this has to be set before require octokit
75
::Faraday.default_adapter = :httpclient
86

7+
require 'octokit'
8+
require_relative '../input'
9+
10+
911
module Commands
1012
class Base
1113
attr_reader :input

assets/lib/commands/in.rb

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/env ruby
22

3-
require 'octokit'
43
require 'English'
54
require 'json'
65
require_relative 'base'

assets/lib/commands/out.rb

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/usr/bin/env ruby
22

33
require 'json'
4-
require 'octokit'
54
require_relative 'base'
65
require_relative '../repository'
76
require_relative '../status'

0 commit comments

Comments
 (0)