This repository was archived by the owner on Nov 8, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +18
-8
lines changed
Expand file tree Collapse file tree 5 files changed +18
-8
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ RUN apk add --update openssh-client
88RUN apk add --update perl
99RUN apk add --update ruby
1010RUN apk add --update ruby-json
11- RUN gem install octokit httpclient --no-rdoc --no-ri
11+ RUN gem install octokit httpclient faraday-http-cache --no-rdoc --no-ri
1212
1313ADD assets/ /opt/resource/
1414RUN chmod +x /opt/resource/*
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ RUN apk add --update openssh-client
88RUN apk add --update perl
99RUN apk add --update ruby
1010RUN apk add --update ruby-json
11- RUN gem install octokit httpclient --no-rdoc --no-ri
11+ RUN gem install octokit httpclient faraday-http-cache --no-rdoc --no-ri
1212
1313ADD assets/ /opt/resource/
1414RUN chmod +x /opt/resource/*
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ source 'https://rubygems.org'
22
33gem 'octokit'
44gem 'httpclient'
5+ gem 'faraday-http-cache'
56
67group :development do
78 gem 'pry'
Original file line number Diff line number Diff line change 2323 eventmachine_httpserver (0.2.1 )
2424 faraday (0.9.2 )
2525 multipart-post (>= 1.2 , < 3 )
26+ faraday-http-cache (2.0.0 )
27+ faraday (~> 0.8 )
2628 hashdiff (0.3.0 )
2729 http_parser.rb (0.6.0 )
2830 httpclient (2.8.2.4 )
@@ -85,6 +87,7 @@ PLATFORMS
8587 ruby
8688
8789DEPENDENCIES
90+ faraday-http-cache
8891 httpclient
8992 octokit
9093 pry
@@ -95,4 +98,4 @@ DEPENDENCIES
9598 webmock
9699
97100BUNDLED WITH
98- 1.13 .6
101+ 1.14 .6
Original file line number Diff line number Diff line change 11require 'faraday'
2- # httpclient and excon are the only Faraday adpater which support
3- # the no_proxy environment variable atm
4- # NOTE: this has to be set before require octokit
5- ::Faraday . default_adapter = :httpclient
6-
72require 'octokit'
3+ require 'faraday-http-cache'
4+
5+ stack = Faraday ::RackBuilder . new do |builder |
6+ builder . use Faraday ::HttpCache , serializer : Marshal , shared_cache : false
7+ builder . use Octokit ::Response ::RaiseError
8+ # httpclient and excon are the only Faraday adpater which support
9+ # the no_proxy environment variable atm
10+ builder . adapter :httpclient
11+ end
12+ Octokit . middleware = stack
13+
814require_relative '../input'
915
1016module Commands
You can’t perform that action at this time.
0 commit comments