octokit 2.0.0.pre → 2.0.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. data/lib/octokit/client.rb +2 -2
  2. data/lib/octokit/client/authorizations.rb +6 -6
  3. data/lib/octokit/client/commit_comments.rb +6 -6
  4. data/lib/octokit/client/commits.rb +10 -10
  5. data/lib/octokit/client/downloads.rb +2 -2
  6. data/lib/octokit/client/emojis.rb +2 -2
  7. data/lib/octokit/client/events.rb +12 -12
  8. data/lib/octokit/client/gists.rb +16 -16
  9. data/lib/octokit/client/gitignore.rb +2 -2
  10. data/lib/octokit/client/issues.rb +14 -14
  11. data/lib/octokit/client/labels.rb +10 -10
  12. data/lib/octokit/client/legacy_search.rb +4 -4
  13. data/lib/octokit/client/markdown.rb +1 -1
  14. data/lib/octokit/client/meta.rb +1 -1
  15. data/lib/octokit/client/milestones.rb +5 -5
  16. data/lib/octokit/client/notifications.rb +9 -9
  17. data/lib/octokit/client/objects.rb +6 -6
  18. data/lib/octokit/client/organizations.rb +22 -22
  19. data/lib/octokit/client/pull_requests.rb +18 -18
  20. data/lib/octokit/client/rate_limit.rb +4 -4
  21. data/lib/octokit/client/refs.rb +5 -5
  22. data/lib/octokit/client/repositories.rb +40 -40
  23. data/lib/octokit/client/say.rb +2 -3
  24. data/lib/octokit/client/stats.rb +12 -12
  25. data/lib/octokit/client/statuses.rb +2 -2
  26. data/lib/octokit/client/users.rb +16 -16
  27. data/lib/octokit/default.rb +1 -0
  28. data/lib/octokit/gist.rb +1 -3
  29. data/lib/octokit/rate_limit.rb +12 -1
  30. data/lib/octokit/repository.rb +10 -11
  31. data/lib/octokit/version.rb +1 -1
  32. data/octokit.gemspec +1 -1
  33. data/spec/cassettes/rate_limit.json +1 -1
  34. data/spec/octokit/client/rate_limit_spec.rb +4 -0
  35. data/spec/octokit/rate_limit_spec.rb +6 -1
  36. metadata +2 -3
  37. data/CHANGELOG.md +0 -133
@@ -76,7 +76,7 @@ module Octokit
76
76
  # Header keys that can be passed in options hash to {#get},{#head}
77
77
  CONVENIENCE_HEADERS = Set.new [:accept]
78
78
 
79
- def initialize(options={})
79
+ def initialize(options = {})
80
80
  # Use options passed in, but fall back to module defaults
81
81
  Octokit::Configurable.keys.each do |key|
82
82
  instance_variable_set(:"@#{key}", options[key] || Octokit.instance_variable_get(:"@#{key}"))
@@ -240,7 +240,7 @@ module Octokit
240
240
  # Executes the request, checking if it was successful
241
241
  #
242
242
  # @return [Boolean] True on success, false otherwise
243
- def boolean_from_response(method, path, options={})
243
+ def boolean_from_response(method, path, options = {})
244
244
  request(method, path, options)
245
245
  @last_response.status == 204
246
246
  rescue Octokit::NotFound
@@ -17,7 +17,7 @@ module Octokit
17
17
  # @example List authorizations for user ctshryock
18
18
  # client = Octokit::Client.new(:login => 'ctshryock', :password => 'secret')
19
19
  # client.authorizations
20
- def authorizations(options={})
20
+ def authorizations(options = {})
21
21
  get 'authorizations', options
22
22
  end
23
23
 
@@ -32,7 +32,7 @@ module Octokit
32
32
  # @example Show authorization for user ctshryock's Travis auth
33
33
  # client = Octokit::Client.new(:login => 'ctshryock', :password => 'secret')
34
34
  # client.authorization(999999)
35
- def authorization(number, options={})
35
+ def authorization(number, options = {})
36
36
  get "authorizations/#{number}", options
37
37
  end
38
38
 
@@ -52,7 +52,7 @@ module Octokit
52
52
  # @example Create a new authorization for user ctshryock's project Zoidberg
53
53
  # client = Octokit::Client.new(:login => 'ctshryock', :password => 'secret')
54
54
  # client.create_authorization({:scopes => ["public_repo","gist"], :note => "Why not Zoidberg?", :note_url=> "https://en.wikipedia.org/wiki/Zoidberg"})
55
- def create_authorization(options={})
55
+ def create_authorization(options = {})
56
56
  # Techincally we can omit scopes as GitHub has a default, however the
57
57
  # API will reject us if we send a POST request with an empty body.
58
58
  post 'authorizations', options
@@ -76,7 +76,7 @@ module Octokit
76
76
  # @example Update the authorization for user ctshryock's project Zoidberg
77
77
  # client = Octokit::Client.new(:login => 'ctshryock', :password => 'secret')
78
78
  # client.update_authorization(999999, {:add_scopes => ["gist", "repo"], :note => "Why not Zoidberg possibly?"})
79
- def update_authorization(number, options={})
79
+ def update_authorization(number, options = {})
80
80
  patch "authorizations/#{number}", options
81
81
  end
82
82
 
@@ -92,8 +92,8 @@ module Octokit
92
92
  # @example Delete an authorization
93
93
  # client = Octokit::Client.new(:login => 'ctshryock', :password => 'secret')
94
94
  # client.delete_authorization(999999)
95
- def delete_authorization(number, option={})
96
- boolean_from_response :delete, "authorizations/#{number}"
95
+ def delete_authorization(number, options = {})
96
+ boolean_from_response :delete, "authorizations/#{number}", options
97
97
  end
98
98
 
99
99
  # Check scopes for a token
@@ -11,7 +11,7 @@ module Octokit
11
11
  # @param repo [String, Hash, Repository] A GitHub repository
12
12
  # @return [Array] List of commit comments
13
13
  # @see http://developer.github.com/v3/repos/comments/
14
- def list_commit_comments(repo, options={})
14
+ def list_commit_comments(repo, options = {})
15
15
  get "repos/#{Repository.new(repo)}/comments", options
16
16
  end
17
17
 
@@ -21,7 +21,7 @@ module Octokit
21
21
  # @param sha [String] The SHA of the commit whose comments will be fetched
22
22
  # @return [Array] List of commit comments
23
23
  # @see http://developer.github.com/v3/repos/comments/
24
- def commit_comments(repo, sha, options={})
24
+ def commit_comments(repo, sha, options = {})
25
25
  get "repos/#{Repository.new(repo)}/commits/#{sha}/comments", options
26
26
  end
27
27
 
@@ -31,7 +31,7 @@ module Octokit
31
31
  # @param id [String] The ID of the comment to fetch
32
32
  # @return [Sawyer::Resource] Commit comment
33
33
  # @see http://developer.github.com/v3/repos/comments/
34
- def commit_comment(repo, id, options={})
34
+ def commit_comment(repo, id, options = {})
35
35
  get "repos/#{Repository.new(repo)}/comments/#{id}", options
36
36
  end
37
37
 
@@ -52,7 +52,7 @@ module Octokit
52
52
  # commit.path # => "README.md"
53
53
  # commit.line # => 10
54
54
  # commit.position # => 1
55
- def create_commit_comment(repo, sha, body, path=nil, line=nil, position=nil, options={})
55
+ def create_commit_comment(repo, sha, body, path=nil, line=nil, position=nil, options = {})
56
56
  params = {
57
57
  :body => body,
58
58
  :commit_id => sha,
@@ -74,7 +74,7 @@ module Octokit
74
74
  # commit = Octokit.update_commit_comment("octocat/Hello-World", "860296", "Updated commit comment")
75
75
  # commit.id # => 860296
76
76
  # commit.body # => "Updated commit comment"
77
- def update_commit_comment(repo, id, body, options={})
77
+ def update_commit_comment(repo, id, body, options = {})
78
78
  params = {
79
79
  :body => body
80
80
  }
@@ -87,7 +87,7 @@ module Octokit
87
87
  # @param id [String] The ID of the comment to delete
88
88
  # @return [Boolean] Success
89
89
  # @see http://developer.github.com/v3/repos/comments/
90
- def delete_commit_comment(repo, id, options={})
90
+ def delete_commit_comment(repo, id, options = {})
91
91
  boolean_from_response :delete, "repos/#{Repository.new(repo)}/comments/#{id}", options
92
92
  end
93
93
 
@@ -150,7 +150,7 @@ module Octokit
150
150
  # @param sha [String] The SHA of the commit to fetch
151
151
  # @return [Sawyer::Resource] A hash representing the commit
152
152
  # @see http://developer.github.com/v3/repos/commits/
153
- def commit(repo, sha, options={})
153
+ def commit(repo, sha, options = {})
154
154
  get "repos/#{Repository.new(repo)}/commits/#{sha}", options
155
155
  end
156
156
 
@@ -173,7 +173,7 @@ module Octokit
173
173
  # commit.tree.sha # => "827efc6d56897b048c772eb4087f854f46256132"
174
174
  # commit.message # => "My commit message"
175
175
  # commit.committer # => { "name" => "Wynn Netherland", "email" => "wynn@github.com", ... }
176
- def create_commit(repo, message, tree, parents=nil, options={})
176
+ def create_commit(repo, message, tree, parents=nil, options = {})
177
177
  params = { :message => message, :tree => tree }
178
178
  params[:parents] = [parents].flatten if parents
179
179
  post "repos/#{Repository.new(repo)}/git/commits", options.merge(params)
@@ -184,7 +184,7 @@ module Octokit
184
184
  # @param repo [String, Hash, Repository] A GitHub repository
185
185
  # @return [Array] An array of hashes representing comments
186
186
  # @see http://developer.github.com/v3/repos/comments/
187
- def list_commit_comments(repo, options={})
187
+ def list_commit_comments(repo, options = {})
188
188
  get "repos/#{Repository.new(repo)}/comments", options
189
189
  end
190
190
 
@@ -194,7 +194,7 @@ module Octokit
194
194
  # @param sha [String] The SHA of the commit whose comments will be fetched
195
195
  # @return [Array] An array of hashes representing comments
196
196
  # @see http://developer.github.com/v3/repos/comments/
197
- def commit_comments(repo, sha, options={})
197
+ def commit_comments(repo, sha, options = {})
198
198
  get "repos/#{Repository.new(repo)}/commits/#{sha}/comments", options
199
199
  end
200
200
 
@@ -204,7 +204,7 @@ module Octokit
204
204
  # @param id [String] The ID of the comment to fetch
205
205
  # @return [Sawyer::Resource] A hash representing the comment
206
206
  # @see http://developer.github.com/v3/repos/comments/
207
- def commit_comment(repo, id, options={})
207
+ def commit_comment(repo, id, options = {})
208
208
  get "repos/#{Repository.new(repo)}/comments/#{id}", options
209
209
  end
210
210
 
@@ -225,7 +225,7 @@ module Octokit
225
225
  # commit.path # => "README.md"
226
226
  # commit.line # => 10
227
227
  # commit.position # => 1
228
- def create_commit_comment(repo, sha, body, path=nil, line=nil, position=nil, options={})
228
+ def create_commit_comment(repo, sha, body, path=nil, line=nil, position=nil, options = {})
229
229
  params = {
230
230
  :body => body,
231
231
  :commit_id => sha,
@@ -247,7 +247,7 @@ module Octokit
247
247
  # commit = Octokit.update_commit_comment("octocat/Hello-World", "860296", "Updated commit comment")
248
248
  # commit.id # => 860296
249
249
  # commit.body # => "Updated commit comment"
250
- def update_commit_comment(repo, id, body, options={})
250
+ def update_commit_comment(repo, id, body, options = {})
251
251
  params = {
252
252
  :body => body
253
253
  }
@@ -260,7 +260,7 @@ module Octokit
260
260
  # @param id [String] The ID of the comment to delete
261
261
  # @return [nil] nil
262
262
  # @see http://developer.github.com/v3/repos/comments/
263
- def delete_commit_comment(repo, id, options={})
263
+ def delete_commit_comment(repo, id, options = {})
264
264
  boolean_from_response :delete, "repos/#{Repository.new(repo)}/comments/#{id}", options
265
265
  end
266
266
 
@@ -271,7 +271,7 @@ module Octokit
271
271
  # @param endd [String] The sha of the ending commit
272
272
  # @return [Sawyer::Resource] A hash representing the comparison
273
273
  # @see http://developer.github.com/v3/repos/commits/
274
- def compare(repo, start, endd, options={})
274
+ def compare(repo, start, endd, options = {})
275
275
  get "repos/#{Repository.new(repo)}/compare/#{start}...#{endd}", options
276
276
  end
277
277
 
@@ -283,7 +283,7 @@ module Octokit
283
283
  # @option options [String] :commit_message The commit message for the merge
284
284
  # @return [Sawyer::Resource] A hash representing the comparison
285
285
  # @see http://developer.github.com/v3/repos/merging/
286
- def merge(repo, base, head, options={})
286
+ def merge(repo, base, head, options = {})
287
287
  params = {
288
288
  :base => base,
289
289
  :head => head
@@ -79,8 +79,8 @@ module Octokit
79
79
  # @return [Boolean] Status
80
80
  # @example Get the "Robawt" download from Github/Hubot
81
81
  # Octokit.delete_download("github/hubot", 1234)
82
- def delete_download(repo, id)
83
- boolean_from_response :delete, "repos/#{Repository.new(repo)}/downloads/#{id}"
82
+ def delete_download(repo, id, options = {})
83
+ boolean_from_response :delete, "repos/#{Repository.new(repo)}/downloads/#{id}", options
84
84
  end
85
85
 
86
86
  private
@@ -8,8 +8,8 @@ module Octokit
8
8
  # @return [Sawyer::Resource] A list of all emojis on GitHub
9
9
  # @example List all emojis
10
10
  # Octokit.emojis
11
- def emojis
12
- get "emojis"
11
+ def emojis(options = {})
12
+ get "emojis", options
13
13
  end
14
14
  end
15
15
  end
@@ -12,7 +12,7 @@ module Octokit
12
12
  # @see http://developer.github.com/v3/activity/events/#list-public-events
13
13
  # @example List all pubilc events
14
14
  # Octokit.public_events
15
- def public_events(options={})
15
+ def public_events(options = {})
16
16
  paginate "events", options
17
17
  end
18
18
 
@@ -22,7 +22,7 @@ module Octokit
22
22
  # @see http://developer.github.com/v3/activity/events/#list-events-performed-by-a-user
23
23
  # @example List all user events
24
24
  # Octokit.user_events("sferik")
25
- def user_events(user, options={})
25
+ def user_events(user, options = {})
26
26
  paginate "users/#{user}/events", options
27
27
  end
28
28
 
@@ -33,7 +33,7 @@ module Octokit
33
33
  # @see http://developer.github.com/v3/activity/events/#list-public-events-performed-by-a-user
34
34
  # @example List public user events
35
35
  # Octokit.user_events("sferik")
36
- def user_public_events(user, options={})
36
+ def user_public_events(user, options = {})
37
37
  paginate "users/#{user}/events/public", options
38
38
  end
39
39
 
@@ -43,7 +43,7 @@ module Octokit
43
43
  # @see http://developer.github.com/v3/activity/events/#list-events-that-a-user-has-received
44
44
  # @example List all user received events
45
45
  # Octokit.received_events("sferik")
46
- def received_events(user, options={})
46
+ def received_events(user, options = {})
47
47
  paginate "users/#{user}/received_events", options
48
48
  end
49
49
 
@@ -53,7 +53,7 @@ module Octokit
53
53
  # @see http://developer.github.com/v3/activity/events/#list-public-events-that-a-user-has-received
54
54
  # @example List public user received events
55
55
  # Octokit.received_public_events("sferik")
56
- def received_public_events(user, options={})
56
+ def received_public_events(user, options = {})
57
57
  paginate "users/#{user}/received_events/public", options
58
58
  end
59
59
 
@@ -64,7 +64,7 @@ module Octokit
64
64
  # @see http://developer.github.com/v3/activity/events/#list-repository-events
65
65
  # @example List events for a repository
66
66
  # Octokit.repository_events("sferik/rails_admin")
67
- def repository_events(repo, options={})
67
+ def repository_events(repo, options = {})
68
68
  paginate "repos/#{Repository.new(repo)}/events", options
69
69
  end
70
70
 
@@ -75,7 +75,7 @@ module Octokit
75
75
  # @see http://developer.github.com/v3/activity/events/#list-public-events-for-a-network-of-repositories
76
76
  # @example List events for a repository's network
77
77
  # Octokit.repository_network_events("sferik/rails_admin")
78
- def repository_network_events(repo, options={})
78
+ def repository_network_events(repo, options = {})
79
79
  paginate "networks/#{Repository.new repo}/events", options
80
80
  end
81
81
 
@@ -88,7 +88,7 @@ module Octokit
88
88
  # @see http://developer.github.com/v3/activity/events/#list-events-for-an-organization
89
89
  # @example List events for the lostisland organization
90
90
  # @client.organization_events("lostisland")
91
- def organization_events(org, options={})
91
+ def organization_events(org, options = {})
92
92
  paginate "users/#{login}/events/orgs/#{org}", options
93
93
  end
94
94
 
@@ -99,7 +99,7 @@ module Octokit
99
99
  # @see http://developer.github.com/v3/activity/events/#list-public-events-for-an-organization
100
100
  # @example List public events for GitHub
101
101
  # Octokit.organization_public_events("GitHub")
102
- def organization_public_events(org, options={})
102
+ def organization_public_events(org, options = {})
103
103
  paginate "orgs/#{org}/events", options
104
104
  end
105
105
 
@@ -111,7 +111,7 @@ module Octokit
111
111
  # @see http://developer.github.com/v3/issues/events/#list-events-for-a-repository
112
112
  # @example Get all Issue Events for Octokit
113
113
  # Octokit.repository_issue_events("pengwynn/octokit")
114
- def repository_issue_events(repo, options={})
114
+ def repository_issue_events(repo, options = {})
115
115
  paginate "repos/#{Repository.new repo}/issues/events", options
116
116
  end
117
117
  alias :repo_issue_events :repository_issue_events
@@ -125,7 +125,7 @@ module Octokit
125
125
  # @see http://developer.github.com/v3/issues/events/#list-events-for-an-issue
126
126
  # @example List all issues events for issue #38 on pengwynn/octokit
127
127
  # Octokit.issue_events("pengwynn/octokit", 38)
128
- def issue_events(repo, number, options={})
128
+ def issue_events(repo, number, options = {})
129
129
  paginate "repos/#{Repository.new(repo)}/issues/#{number}/events", options
130
130
  end
131
131
 
@@ -138,7 +138,7 @@ module Octokit
138
138
  # @see http://developer.github.com/v3/issues/events/#get-a-single-event
139
139
  # @example Get Event information for ID 3094334 (a pull request was closed)
140
140
  # Octokit.issue_event("pengwynn/octokit", 3094334)
141
- def issue_event(repo, number, options={})
141
+ def issue_event(repo, number, options = {})
142
142
  paginate "repos/#{Repository.new(repo)}/issues/events/#{number}", options
143
143
  end
144
144
 
@@ -15,7 +15,7 @@ module Octokit
15
15
  # @example Fetch all public gists
16
16
  # Octokit.gists
17
17
  # @see http://developer.github.com/v3/gists/#list-gists
18
- def gists(username=nil, options={})
18
+ def gists(username=nil, options = {})
19
19
  if username.nil?
20
20
  paginate 'gists', options
21
21
  else
@@ -30,14 +30,14 @@ module Octokit
30
30
  # @example Fetch all public gists
31
31
  # Octokit.public_gists
32
32
  # @see http://developer.github.com/v3/gists/#list-gists
33
- def public_gists(options={})
33
+ def public_gists(options = {})
34
34
  paginate 'gists/public', options
35
35
  end
36
36
 
37
37
  # List the authenticated user’s starred gists
38
38
  #
39
39
  # @return [Array<Sawyer::Resource>] A list of gists
40
- def starred_gists(options={})
40
+ def starred_gists(options = {})
41
41
  paginate 'gists/starred', options
42
42
  end
43
43
 
@@ -46,7 +46,7 @@ module Octokit
46
46
  # @param gist [String] ID of gist to fetch
47
47
  # @return [Sawyer::Resource] Gist information
48
48
  # @see http://developer.github.com/v3/gists/#get-a-single-gist
49
- def gist(gist, options={})
49
+ def gist(gist, options = {})
50
50
  get "gists/#{Gist.new gist}", options
51
51
  end
52
52
 
@@ -60,7 +60,7 @@ module Octokit
60
60
  # content of the Gist.
61
61
  # @return [Sawyer::Resource] Newly created gist info
62
62
  # @see http://developer.github.com/v3/gists/#create-a-gist
63
- def create_gist(options={})
63
+ def create_gist(options = {})
64
64
  post 'gists', options
65
65
  end
66
66
 
@@ -83,7 +83,7 @@ module Octokit
83
83
  # @client.edit_gist('some_id', {
84
84
  # :files => {"boo.md" => {"content" => "updated stuff"}}
85
85
  # })
86
- def edit_gist(gist, options={})
86
+ def edit_gist(gist, options = {})
87
87
  patch "gists/#{Gist.new gist}", options
88
88
  end
89
89
 
@@ -93,7 +93,7 @@ module Octokit
93
93
  # @param gist [String] Gist ID
94
94
  # @return [Boolean] Indicates if gist is starred successfully
95
95
  # @see http://developer.github.com/v3/gists/#star-a-gist
96
- def star_gist(gist, options={})
96
+ def star_gist(gist, options = {})
97
97
  boolean_from_response :put, "gists/#{Gist.new gist}/star", options
98
98
  end
99
99
 
@@ -102,7 +102,7 @@ module Octokit
102
102
  # @param gist [String] Gist ID
103
103
  # @return [Boolean] Indicates if gist is unstarred successfully
104
104
  # @see http://developer.github.com/v3/gists/#unstar-a-gist
105
- def unstar_gist(gist, options={})
105
+ def unstar_gist(gist, options = {})
106
106
  boolean_from_response :delete, "gists/#{Gist.new gist}/star", options
107
107
  end
108
108
 
@@ -111,7 +111,7 @@ module Octokit
111
111
  # @param gist [String] Gist ID
112
112
  # @return [Boolean] Indicates if gist is starred
113
113
  # @see http://developer.github.com/v3/gists/#check-if-a-gist-is-starred
114
- def gist_starred?(gist, options={})
114
+ def gist_starred?(gist, options = {})
115
115
  boolean_from_response :get, "gists/#{Gist.new gist}/star", options
116
116
  end
117
117
 
@@ -120,7 +120,7 @@ module Octokit
120
120
  # @param gist [String] Gist ID
121
121
  # @return [Sawyer::Resource] Data for the new gist
122
122
  # @see http://developer.github.com/v3/gists/#fork-a-gist
123
- def fork_gist(gist, options={})
123
+ def fork_gist(gist, options = {})
124
124
  post "gists/#{Gist.new gist}/forks", options
125
125
  end
126
126
 
@@ -129,7 +129,7 @@ module Octokit
129
129
  # @param gist [String] Gist ID
130
130
  # @return [Boolean] Indicating success of deletion
131
131
  # @see http://developer.github.com/v3/gists/#delete-a-gist
132
- def delete_gist(gist, options={})
132
+ def delete_gist(gist, options = {})
133
133
  boolean_from_response :delete, "gists/#{Gist.new gist}", options
134
134
  end
135
135
 
@@ -140,7 +140,7 @@ module Octokit
140
140
  # @see http://developer.github.com/v3/gists/comments/#list-comments-on-a-gist
141
141
  # @example
142
142
  # Octokit.gist_comments('3528ae645')
143
- def gist_comments(gist_id, options={})
143
+ def gist_comments(gist_id, options = {})
144
144
  paginate "gists/#{gist_id}/comments", options
145
145
  end
146
146
 
@@ -152,7 +152,7 @@ module Octokit
152
152
  # @see http://developer.github.com/v3/gists/comments/#get-a-single-comment
153
153
  # @example
154
154
  # Octokit.gist_comment('208sdaz3', 1451398)
155
- def gist_comment(gist_id, gist_comment_id, options={})
155
+ def gist_comment(gist_id, gist_comment_id, options = {})
156
156
  get "gists/#{gist_id}/comments/#{gist_comment_id}", options
157
157
  end
158
158
 
@@ -166,7 +166,7 @@ module Octokit
166
166
  # @see http://developer.github.com/v3/gists/comments/#create-a-comment
167
167
  # @example
168
168
  # @client.create_gist_comment('3528645', 'This is very helpful.')
169
- def create_gist_comment(gist_id, comment, options={})
169
+ def create_gist_comment(gist_id, comment, options = {})
170
170
  options.merge!({:body => comment})
171
171
  post "gists/#{gist_id}/comments", options
172
172
  end
@@ -182,7 +182,7 @@ module Octokit
182
182
  # @see http://developer.github.com/v3/gists/comments/#edit-a-comment
183
183
  # @example
184
184
  # @client.update_gist_comment('208sdaz3', '3528645', ':heart:')
185
- def update_gist_comment(gist_id, gist_comment_id, comment, options={})
185
+ def update_gist_comment(gist_id, gist_comment_id, comment, options = {})
186
186
  options.merge!({:body => comment})
187
187
  patch "gists/#{gist_id}/comments/#{gist_comment_id}", options
188
188
  end
@@ -197,7 +197,7 @@ module Octokit
197
197
  # @see http://developer.github.com/v3/gists/comments/#delete-a-comment
198
198
  # @example
199
199
  # @client.delete_gist_comment('208sdaz3', '586399')
200
- def delete_gist_comment(gist_id, gist_comment_id, options={})
200
+ def delete_gist_comment(gist_id, gist_comment_id, options = {})
201
201
  boolean_from_response(:delete, "gists/#{gist_id}/comments/#{gist_comment_id}", options)
202
202
  end
203
203