File tree Expand file tree Collapse file tree 3 files changed +49
-42
lines changed
api/ruby/rendering-data-as-graphs Expand file tree Collapse file tree 3 files changed +49
-42
lines changed Original file line number Diff line number Diff line change 1
1
source "http://rubygems.org"
2
2
3
- gem "json" , "~> 1.8 "
4
- gem ' sinatra' , '~> 1.3.5'
5
- gem ' sinatra_auth_github' , '~> 0.13.3'
6
- gem ' octokit' , '~> 1.23.0'
3
+ gem "json" , "~>2.1.0 "
4
+ gem " sinatra" , "~>1.4.8"
5
+ gem " sinatra_auth_github" , "~>1.2.0"
6
+ gem " octokit" , "~>4.7.0"
Original file line number Diff line number Diff line change 1
1
GEM
2
2
remote: http://rubygems.org/
3
3
specs:
4
- addressable ( 2.3 .3 )
5
- faraday ( 0.8.6 )
6
- multipart-post (~> 1.1 )
7
- faraday_middleware ( 0.9.0 )
8
- faraday ( >= 0.7.4 , < 0.9 )
9
- hashie ( 1.2.0 )
10
- json ( 1.8.3 )
11
- multi_json (1.6.1 )
12
- multipart-post ( 1.2.0 )
13
- netrc ( 0.7.7 )
14
- octokit ( 1.23.0 )
15
- addressable ( ~> 2.2 )
16
- faraday ( ~> 0.8 )
17
- faraday_middleware ( ~> 0.9 )
18
- hashie ( ~> 1.2 )
19
- multi_json (~> 1 .3 )
20
- netrc ( ~> 0.7.7 )
21
- rack (1.5.2 )
22
- rack-protection (1.4.0 )
4
+ activesupport ( 5.1 .3 )
5
+ concurrent-ruby ( ~> 1.0 , >= 1.0.2 )
6
+ i18n (~> 0.7 )
7
+ minitest ( ~> 5.1 )
8
+ tzinfo ( ~> 1.1 )
9
+ addressable ( 2.5.2 )
10
+ public_suffix ( >= 2.0.2 , < 4.0 )
11
+ concurrent-ruby (1.0.5 )
12
+ faraday ( 0.13.1 )
13
+ multipart-post ( >= 1.2 , < 3 )
14
+ i18n ( 0.8.6 )
15
+ json ( 2.1.0 )
16
+ minitest ( 5.10.3 )
17
+ multipart-post ( 2.0.0 )
18
+ octokit ( 4.7.0 )
19
+ sawyer (~> 0.8.0 , >= 0.5 .3 )
20
+ public_suffix ( 3.0.0 )
21
+ rack (1.6.8 )
22
+ rack-protection (1.5.3 )
23
23
rack
24
- sinatra (1.3.5 )
25
- rack (~> 1.4 )
26
- rack-protection (~> 1.3 )
27
- tilt (~> 1.3 , >= 1.3.3 )
28
- sinatra_auth_github (0.13.3 )
24
+ sawyer (0.8.1 )
25
+ addressable (>= 2.3.5 , < 2.6 )
26
+ faraday (~> 0.8 , < 1.0 )
27
+ sinatra (1.4.8 )
28
+ rack (~> 1.5 )
29
+ rack-protection (~> 1.4 )
30
+ tilt (>= 1.3 , < 3 )
31
+ sinatra_auth_github (1.2.0 )
29
32
sinatra (~> 1.0 )
30
- warden-github (~> 0.13.1 )
31
- tilt (1.3.4 )
32
- warden (1.2.1 )
33
+ warden-github (~> 1.2.0 )
34
+ thread_safe (0.3.6 )
35
+ tilt (2.0.8 )
36
+ tzinfo (1.2.3 )
37
+ thread_safe (~> 0.1 )
38
+ warden (1.2.7 )
33
39
rack (>= 1.0 )
34
- warden-github (0.13.2 )
35
- octokit (>= 1.22.0 )
40
+ warden-github (1.2.0 )
41
+ activesupport (> 3.0 )
42
+ octokit (> 2.1.0 )
36
43
warden (> 1.0 )
37
44
38
45
PLATFORMS
39
46
ruby
40
47
41
48
DEPENDENCIES
42
- json (~> 1.8 )
43
- octokit (~> 1.23 .0 )
44
- sinatra (~> 1.3.5 )
45
- sinatra_auth_github (~> 0.13.3 )
49
+ json (~> 2.1.0 )
50
+ octokit (~> 4.7 .0 )
51
+ sinatra (~> 1.4.8 )
52
+ sinatra_auth_github (~> 1.2.0 )
46
53
47
54
BUNDLED WITH
48
- 1.11.2
55
+ 1.15.4
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ class MyGraphApp < Sinatra::Base
10
10
# CLIENT_SECRET = ENV['GITHUB_CLIENT_SECRET']
11
11
# end
12
12
13
- CLIENT_ID = ENV [ 'GH_GRAPH_CLIENT_ID ' ]
14
- CLIENT_SECRET = ENV [ 'GH_GRAPH_SECRET_ID ' ]
13
+ CLIENT_ID = ENV [ 'GITHUB_CLIENT_ID ' ]
14
+ CLIENT_SECRET = ENV [ 'GITHUB_CLIENT_SECRET ' ]
15
15
16
16
enable :sessions
17
17
@@ -28,7 +28,7 @@ class MyGraphApp < Sinatra::Base
28
28
if !authenticated?
29
29
authenticate!
30
30
else
31
- octokit_client = Octokit ::Client . new ( :login => github_user . login , :oauth_token => github_user . token )
31
+ octokit_client = Octokit ::Client . new ( :login => github_user . login , :access_token => github_user . token )
32
32
repos = octokit_client . repositories
33
33
language_obj = { }
34
34
repos . each do |repo |
@@ -79,4 +79,4 @@ class MyGraphApp < Sinatra::Base
79
79
end
80
80
end
81
81
end
82
- end
82
+ end
You can’t perform that action at this time.
0 commit comments