You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/guides/rendering-data-as-graphs.md
+22-22Lines changed: 22 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ In this guide, we're going to poll repositories that we own, and render the
11
11
information there with graphs, using the [d3.js][d3.js] library. We'll also
12
12
be using Octokit, a Ruby library designed to interact with the GitHub API.
13
13
14
-
We're going to jump right in and assume you've already read the ["Basics of Authentication"][basics-of-authentication]
14
+
We're going to jump right in and assume you've already read the ["Basics of Authentication"][basics-of-authentication]
15
15
guide.
16
16
17
17
Note: you can download the complete source code for this project [from the platform-samples repo](https://github.com/github/platform-samples/tree/master/api/ruby/rendering-data-as-graphs).
@@ -68,10 +68,10 @@ Set up a similar _config.ru_ file as in the previous example:
68
68
## Fetching repository information
69
69
70
70
This time, in order to talk to the GitHub API, we're going to use the [Octokit
71
-
Ruby library][Octokit]. This is supremly better than directly making a bunch of
71
+
Ruby library][Octokit]. This is supremely better than directly making a bunch of
72
72
REST calls. Plus, Octokit was developed by a GitHubber, so you know it'll work.
73
73
74
-
Establishing an Octokit instance is extremly easy; just pass your login
74
+
Establishing an Octokit instance is extremely easy; just pass your login
75
75
and token to the `Octokit::Client` constructor:
76
76
77
77
if !authenticated?
@@ -81,7 +81,7 @@ and token to the `Octokit::Client` constructor:
81
81
end
82
82
83
83
Let's do something interesting with our repository information; let's list the count
84
-
of each language found in our repositories. To do that, we'll first have to grab
84
+
of each language found in our repositories. To do that, we'll first have to grab
85
85
a list of repositories we own. With Octokit, that looks like this:
86
86
87
87
repos = client.repositories
@@ -91,7 +91,7 @@ identifies:
91
91
92
92
language_obj = {}
93
93
repos.each do |repo|
94
-
# sometimes language can be nil
94
+
# sometimes language can be nil
95
95
if repo.language
96
96
if !language_obj[repo.language]
97
97
language_obj[repo.language] = 1
@@ -103,7 +103,7 @@ identifies:
103
103
104
104
languages.to_s
105
105
106
-
When you restart your server, your web page should display some information
106
+
When you restart your server, your web page should display some information
0 commit comments