File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ class Client
3
3
class_attribute :debug
4
4
self . debug = false
5
5
6
- def initialize ( endpoint , &block )
7
- @conn = connection_for ( endpoint , &block )
6
+ def initialize ( endpoint , proxy : nil , &block )
7
+ @conn = connection_for ( endpoint , proxy , &block )
8
8
end
9
9
10
10
def get ( path , params )
@@ -13,8 +13,8 @@ def get(path, params)
13
13
14
14
private
15
15
16
- def connection_for ( endpoint )
17
- Faraday . new ( endpoint ) do |f |
16
+ def connection_for ( endpoint , proxy )
17
+ Faraday . new ( endpoint , proxy : proxy ) do |f |
18
18
f . response :logger if self . class . debug
19
19
f . response :json , :content_type => /\b json$/
20
20
f . response :raise_error
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ class Connpass
5
5
# NOTE: 期間は ym or ymd パラメータで指定(複数指定可能)、未指定時全期間が対象
6
6
7
7
def initialize
8
- @client = EventService ::Client . new ( ENDPOINT )
8
+ @client = EventService ::Client . new ( ENDPOINT , proxy : ENV [ 'FIXIE_URL' ] )
9
9
end
10
10
11
11
def search ( keyword :)
You can’t perform that action at this time.
0 commit comments