Skip to content

Commit 0cb5512

Browse files
authored
Merge pull request #10 from github/pin_octokit
Upgrade octokit to resolve authentication issue with graphql
2 parents 79a1639 + 4158a27 commit 0cb5512

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+41
-47
lines changed

Gemfile.lock

Lines changed: 35 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,59 @@
11
PATH
22
remote: .
33
specs:
4-
entitlements-github-plugin (0.0.1)
5-
concurrent-ruby (= 1.1.9)
6-
contracts (= 0.16.0)
7-
faraday (>= 0.17.3, < 0.18)
8-
net-ldap (~> 0.17.0)
9-
octokit (~> 4.18)
10-
optimist (= 3.0.0)
4+
entitlements-github-plugin (0.0.2)
5+
entitlements (= 0.1.8)
6+
faraday (>= 1, < 3)
7+
faraday-retry (~> 2.0)
8+
octokit (~> 4.25)
119

1210
GEM
1311
remote: https://rubygems.org/
1412
specs:
15-
activesupport (6.1.6)
13+
activesupport (7.0.3.1)
1614
concurrent-ruby (~> 1.0, >= 1.0.2)
1715
i18n (>= 1.6, < 2)
1816
minitest (>= 5.1)
1917
tzinfo (~> 2.0)
20-
zeitwerk (~> 2.3)
21-
addressable (2.8.0)
22-
public_suffix (>= 2.0.2, < 5.0)
18+
addressable (2.8.1)
19+
public_suffix (>= 2.0.2, < 6.0)
2320
ast (2.4.2)
2421
concurrent-ruby (1.1.9)
2522
contracts (0.16.0)
2623
contracts-rspec (0.1.0)
2724
crack (0.4.5)
2825
rexml
29-
diff-lcs (1.4.4)
26+
diff-lcs (1.5.0)
3027
docile (1.4.0)
31-
entitlements (0.1.7)
28+
entitlements (0.1.8)
3229
concurrent-ruby (= 1.1.9)
3330
contracts (= 0.16.0)
34-
faraday (>= 0.17.3, < 0.18)
3531
net-ldap (~> 0.17.0)
36-
octokit (~> 4.18)
3732
optimist (= 3.0.0)
38-
faraday (0.17.4)
39-
multipart-post (>= 1.2, < 3)
33+
faraday (2.5.2)
34+
faraday-net_http (>= 2.0, < 3.1)
35+
ruby2_keywords (>= 0.0.4)
36+
faraday-net_http (3.0.0)
37+
faraday-retry (2.0.0)
38+
faraday (~> 2.0)
4039
hashdiff (1.0.1)
41-
i18n (1.10.0)
40+
i18n (1.12.0)
4241
concurrent-ruby (~> 1.0)
43-
json (2.5.1)
44-
minitest (5.15.0)
45-
multipart-post (2.1.1)
46-
net-ldap (0.17.0)
47-
octokit (4.21.0)
48-
faraday (>= 0.9)
49-
sawyer (~> 0.8.0, >= 0.5.3)
42+
json (2.6.2)
43+
minitest (5.16.3)
44+
net-ldap (0.17.1)
45+
octokit (4.25.1)
46+
faraday (>= 1, < 3)
47+
sawyer (~> 0.9)
5048
optimist (3.0.0)
5149
parallel (1.22.1)
52-
parser (3.1.2.0)
50+
parser (3.1.2.1)
5351
ast (~> 2.4.1)
54-
public_suffix (4.0.6)
55-
rack (2.2.3.1)
52+
public_suffix (5.0.0)
53+
rack (2.2.4)
5654
rainbow (3.1.1)
5755
rake (13.0.6)
58-
regexp_parser (2.4.0)
56+
regexp_parser (2.5.0)
5957
rexml (3.2.5)
6058
rspec (3.8.0)
6159
rspec-core (~> 3.8.0)
@@ -79,7 +77,7 @@ GEM
7977
rubocop-ast (>= 1.17.0, < 2.0)
8078
ruby-progressbar (~> 1.7)
8179
unicode-display_width (>= 1.4.0, < 3.0)
82-
rubocop-ast (1.18.0)
80+
rubocop-ast (1.21.0)
8381
parser (>= 3.1.1.0)
8482
rubocop-github (0.17.0)
8583
rubocop
@@ -88,39 +86,38 @@ GEM
8886
rubocop-performance (1.13.3)
8987
rubocop (>= 1.7.0, < 2.0)
9088
rubocop-ast (>= 0.4.0)
91-
rubocop-rails (2.14.2)
89+
rubocop-rails (2.15.2)
9290
activesupport (>= 4.2.0)
9391
rack (>= 1.1)
9492
rubocop (>= 1.7.0, < 2.0)
9593
ruby-progressbar (1.11.0)
94+
ruby2_keywords (0.0.5)
9695
rugged (0.27.5)
97-
sawyer (0.8.2)
96+
sawyer (0.9.2)
9897
addressable (>= 2.3.5)
99-
faraday (> 0.8, < 2.0)
98+
faraday (>= 0.17.3, < 3)
10099
simplecov (0.16.1)
101100
docile (~> 1.1)
102101
json (>= 1.8, < 3)
103102
simplecov-html (~> 0.10.0)
104103
simplecov-erb (0.1.1)
105104
simplecov
106105
simplecov-html (0.10.2)
107-
tzinfo (2.0.4)
106+
tzinfo (2.0.5)
108107
concurrent-ruby (~> 1.0)
109-
unicode-display_width (2.1.0)
108+
unicode-display_width (2.2.0)
110109
vcr (4.0.0)
111110
webmock (3.4.2)
112111
addressable (>= 2.3.6)
113112
crack (>= 0.3.2)
114113
hashdiff
115-
zeitwerk (2.5.4)
116114

117115
PLATFORMS
118116
ruby
119-
x86_64-darwin-19
117+
x86_64-darwin-20
120118

121119
DEPENDENCIES
122120
contracts-rspec (= 0.1.0)
123-
entitlements (= 0.1.7)
124121
entitlements-github-plugin!
125122
rake (= 13.0.6)
126123
rspec (= 3.8.0)

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.1
1+
0.0.2

entitlements-github-plugin.gemspec

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,12 @@ Gem::Specification.new do |s|
1212
s.homepage = "https://github.com/github/entitlements-github-plugin"
1313
s.executables = %w[]
1414

15-
s.add_dependency "concurrent-ruby", "= 1.1.9"
16-
s.add_dependency "contracts", "= 0.16.0"
17-
s.add_dependency "faraday", ">= 0.17.3", "< 0.18"
18-
s.add_dependency "net-ldap", "~> 0.17.0"
19-
s.add_dependency "octokit", "~> 4.18"
20-
s.add_dependency "optimist", "= 3.0.0"
15+
s.add_dependency "entitlements", "0.1.8"
16+
s.add_dependency "faraday", "< 3", ">= 1"
17+
s.add_dependency "faraday-retry", "~> 2.0"
18+
s.add_dependency "octokit", "~> 4.25"
2119

2220
s.add_development_dependency "contracts-rspec", "= 0.1.0"
23-
s.add_development_dependency "entitlements", "0.1.7"
2421
s.add_development_dependency "rake", "= 13.0.6"
2522
s.add_development_dependency "rspec", "= 3.8.0"
2623
s.add_development_dependency "rspec-core", "= 3.8.0"

spec/unit/entitlements/service/github_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@
338338
it "logs and returns raw text for JSON parsing error" do
339339
answer = "mor chicken mor rewardz!"
340340
stub_request(:post, "https://github.fake/api/v3/graphql").to_return(status: 200, body: answer)
341-
expect(logger).to receive(:error).with("JSON::ParserError 809: unexpected token at 'mor chicken mor rewardz!': \"mor chicken mor rewardz!\"")
341+
expect(logger).to receive(:error).with("JSON::ParserError 859: unexpected token at 'mor chicken mor rewardz!': \"mor chicken mor rewardz!\"")
342342
response = subject.send(:graphql_http_post_real, "nonsense")
343343
expect(response).to eq(code: 500, data: { "body" => "mor chicken mor rewardz!" })
344344
end
-216 KB
Binary file not shown.
218 KB
Binary file not shown.

vendor/cache/addressable-2.8.0.gem

-104 KB
Binary file not shown.

vendor/cache/addressable-2.8.1.gem

104 KB
Binary file not shown.

vendor/cache/diff-lcs-1.4.4.gem

-49.5 KB
Binary file not shown.

vendor/cache/diff-lcs-1.5.0.gem

51.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)