octokit 2.0.0.pre → 2.0.0.rc1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
@@ -17,7 +17,7 @@ module Octokit
17
17
  #
18
18
  # @example Git all the gitignore templates
19
19
  # @client.gitignore_templates
20
- def gitignore_templates(options={})
20
+ def gitignore_templates(options = {})
21
21
  get "gitignore/templates", options
22
22
  end
23
23
 
@@ -36,7 +36,7 @@ module Octokit
36
36
  #
37
37
  # @example Get the Ruby gitignore template
38
38
  # @client.gitignore_template('Ruby')
39
- def gitignore_template(template_name, options={})
39
+ def gitignore_template(template_name, options = {})
40
40
  get "gitignore/templates/#{template_name}", options
41
41
  end
42
42
 
@@ -26,7 +26,7 @@ module Octokit
26
26
  # @example List issues for the authenticted user across repositories
27
27
  # @client = Octokit::Client.new(:login => 'foo', :password => 'bar')
28
28
  # @client.list_issues
29
- def list_issues(repository = nil, options={})
29
+ def list_issues(repository = nil, options = {})
30
30
  path = ''
31
31
  path = "repos/#{Repository.new(repository)}" if repository
32
32
  path += "/issues"
@@ -51,7 +51,7 @@ module Octokit
51
51
  # @example List issues for the authenticted user across owned and member repositories
52
52
  # @client = Octokit::Client.new(:login => 'foo', :password => 'bar')
53
53
  # @client.user_issues
54
- def user_issues(options={})
54
+ def user_issues(options = {})
55
55
  paginate 'user/issues', options
56
56
  end
57
57
 
@@ -72,7 +72,7 @@ module Octokit
72
72
  # @example List issues for the authenticted user across owned and member repositories
73
73
  # @client = Octokit::Client.new(:login => 'foo', :password => 'bar')
74
74
  # @client.user_issues
75
- def org_issues(org, options={})
75
+ def org_issues(org, options = {})
76
76
  paginate "orgs/#{org}/issues", options
77
77
  end
78
78
 
@@ -89,7 +89,7 @@ module Octokit
89
89
  # @see http://developer.github.com/v3/issues/#create-an-issue
90
90
  # @example Create a new Issues for a repository
91
91
  # Octokit.create_issue("sferik/rails_admin", 'Updated Docs', 'Added some extra links')
92
- def create_issue(repo, title, body, options={})
92
+ def create_issue(repo, title, body, options = {})
93
93
  options[:labels] = case options[:labels]
94
94
  when String
95
95
  options[:labels].split(",").map(&:strip)
@@ -108,7 +108,7 @@ module Octokit
108
108
  # @see http://developer.github.com/v3/issues/#get-a-single-issue
109
109
  # @example Get issue #25 from pengwynn/octokit
110
110
  # Octokit.issue("pengwynn/octokit", "25")
111
- def issue(repo, number, options={})
111
+ def issue(repo, number, options = {})
112
112
  get "repos/#{Repository.new(repo)}/issues/#{number}", options
113
113
  end
114
114
 
@@ -124,7 +124,7 @@ module Octokit
124
124
  # @see http://developer.github.com/v3/issues/#edit-an-issue
125
125
  # @example Close Issue #25 from pengwynn/octokit
126
126
  # Octokit.close_issue("pengwynn/octokit", "25")
127
- def close_issue(repo, number, options={})
127
+ def close_issue(repo, number, options = {})
128
128
  patch "repos/#{Repository.new(repo)}/issues/#{number}", options.merge({:state => "closed"})
129
129
  end
130
130
 
@@ -140,7 +140,7 @@ module Octokit
140
140
  # @see http://developer.github.com/v3/issues/#edit-an-issue
141
141
  # @example Reopen Issue #25 from pengwynn/octokit
142
142
  # Octokit.reopen_issue("pengwynn/octokit", "25")
143
- def reopen_issue(repo, number, options={})
143
+ def reopen_issue(repo, number, options = {})
144
144
  patch "repos/#{Repository.new(repo)}/issues/#{number}", options.merge({:state => "open"})
145
145
  end
146
146
 
@@ -159,7 +159,7 @@ module Octokit
159
159
  # @see http://developer.github.com/v3/issues/#edit-an-issue
160
160
  # @example Change the title of Issue #25
161
161
  # Octokit.update_issue("pengwynn/octokit", "25", "A new title", "the same body"")
162
- def update_issue(repo, number, title, body, options={})
162
+ def update_issue(repo, number, title, body, options = {})
163
163
  patch "repos/#{Repository.new(repo)}/issues/#{number}", options.merge({:title => title, :body => body})
164
164
  end
165
165
 
@@ -188,7 +188,7 @@ module Octokit
188
188
  # :direction => 'asc',
189
189
  # :since => '2010-05-04T23:45:02Z'
190
190
  # })
191
- def issues_comments(repo, options={})
191
+ def issues_comments(repo, options = {})
192
192
  paginate "repos/#{Repository.new repo}/issues/comments", options
193
193
  end
194
194
 
@@ -200,7 +200,7 @@ module Octokit
200
200
  # @see http://developer.github.com/v3/issues/comments
201
201
  # @example Get comments for issue #25 from pengwynn/octokit
202
202
  # Octokit.issue_comments("pengwynn/octokit", "25")
203
- def issue_comments(repo, number, options={})
203
+ def issue_comments(repo, number, options = {})
204
204
  paginate "repos/#{Repository.new(repo)}/issues/#{number}/comments", options
205
205
  end
206
206
 
@@ -212,7 +212,7 @@ module Octokit
212
212
  # @see http://developer.github.com/v3/issues/comments/#get-a-single-comment
213
213
  # @example Get comment #1194549 from an issue on pengwynn/octokit
214
214
  # Octokit.issue_comments("pengwynn/octokit", 1194549)
215
- def issue_comment(repo, number, options={})
215
+ def issue_comment(repo, number, options = {})
216
216
  paginate "repos/#{Repository.new(repo)}/issues/comments/#{number}", options
217
217
  end
218
218
 
@@ -225,7 +225,7 @@ module Octokit
225
225
  # @see http://developer.github.com/v3/issues/comments/#create-a-comment
226
226
  # @example Add the comment "Almost to v1" to Issue #23 on pengwynn/octokit
227
227
  # Octokit.add_comment("pengwynn/octokit", 23, "Almost to v1")
228
- def add_comment(repo, number, comment, options={})
228
+ def add_comment(repo, number, comment, options = {})
229
229
  post "repos/#{Repository.new(repo)}/issues/#{number}/comments", options.merge({:body => comment})
230
230
  end
231
231
 
@@ -238,7 +238,7 @@ module Octokit
238
238
  # @see http://developer.github.com/v3/issues/comments/#edit-a-comment
239
239
  # @example Update the comment #1194549 with body "I've started this on my 25-issue-comments-v3 fork" on an issue on pengwynn/octokit
240
240
  # Octokit.update_comment("pengwynn/octokit", 1194549, "Almost to v1, added this on my fork")
241
- def update_comment(repo, number, comment, options={})
241
+ def update_comment(repo, number, comment, options = {})
242
242
  patch "repos/#{Repository.new(repo)}/issues/comments/#{number}", options.merge({:body => comment})
243
243
  end
244
244
 
@@ -250,7 +250,7 @@ module Octokit
250
250
  # @see http://developer.github.com/v3/issues/comments/#delete-a-comment
251
251
  # @example Delete the comment #1194549 on an issue on pengwynn/octokit
252
252
  # Octokit.delete_comment("pengwynn/octokit", 1194549)
253
- def delete_comment(repo, number, options={})
253
+ def delete_comment(repo, number, options = {})
254
254
  boolean_from_response :delete, "repos/#{Repository.new(repo)}/issues/comments/#{number}", options
255
255
  end
256
256
  end
@@ -15,7 +15,7 @@ module Octokit
15
15
  # @see http://developer.github.com/v3/issues/labels/
16
16
  # @example List labels for pengwynn/octokit
17
17
  # Octokit.labels("pengwynn/octokit")
18
- def labels(repo, options={})
18
+ def labels(repo, options = {})
19
19
  get "repos/#{Repository.new(repo)}/labels", options
20
20
  end
21
21
 
@@ -27,7 +27,7 @@ module Octokit
27
27
  # @see http://developer.github.com/v3/issues/labels/#get-a-single-label
28
28
  # @example Get the "V3 Addition" label from pengwynn/octokit
29
29
  # Octokit.labels("pengwynn/octokit")
30
- def label(repo, name, options={})
30
+ def label(repo, name, options = {})
31
31
  get "repos/#{Repository.new(repo)}/labels/#{CGI.escape(name)}", options
32
32
  end
33
33
 
@@ -40,7 +40,7 @@ module Octokit
40
40
  # @see http://developer.github.com/v3/issues/labels/
41
41
  # @example Add a new label "Version 1.0" with color "#cccccc"
42
42
  # Octokit.add_label("pengwynn/octokit", "Version 1.0", "cccccc")
43
- def add_label(repo, label, color="ffffff", options={})
43
+ def add_label(repo, label, color="ffffff", options = {})
44
44
  post "repos/#{Repository.new(repo)}/labels", options.merge({:name => label, :color => color})
45
45
  end
46
46
 
@@ -55,7 +55,7 @@ module Octokit
55
55
  # @see http://developer.github.com/v3/issues/labels/#update-a-label
56
56
  # @example Update the label "Version 1.0" with new color "#cceeaa"
57
57
  # Octokit.update_label("pengwynn/octokit", "Version 1.0", {:color => "cceeaa"})
58
- def update_label(repo, label, options={})
58
+ def update_label(repo, label, options = {})
59
59
  patch "repos/#{Repository.new(repo)}/labels/#{CGI.escape(label)}", options
60
60
  end
61
61
 
@@ -70,7 +70,7 @@ module Octokit
70
70
  # @see http://rubydoc.info/gems/faraday/0.5.3/Faraday/Response
71
71
  # @example Delete the label "Version 1.0" from the repository.
72
72
  # Octokit.delete_label!("pengwynn/octokit", "Version 1.0")
73
- def delete_label!(repo, label, options={})
73
+ def delete_label!(repo, label, options = {})
74
74
  boolean_from_response :delete, "repos/#{Repository.new(repo)}/labels/#{CGI.escape(label)}", options
75
75
  end
76
76
 
@@ -86,7 +86,7 @@ module Octokit
86
86
  # @see http://developer.github.com/v3/issues/labels/#remove-a-label-from-an-issue
87
87
  # @example Remove the label "Version 1.0" from the repository.
88
88
  # Octokit.remove_label("pengwynn/octokit", 23, "Version 1.0")
89
- def remove_label(repo, number, label, options={})
89
+ def remove_label(repo, number, label, options = {})
90
90
  delete "repos/#{Repository.new(repo)}/issues/#{number}/labels/#{CGI.escape(label)}", options
91
91
  end
92
92
 
@@ -100,7 +100,7 @@ module Octokit
100
100
  # @see http://developer.github.com/v3/issues/labels/#remove-all-labels-from-an-issue
101
101
  # @example Remove all labels from Issue #23
102
102
  # Octokit.remove_all_labels("pengwynn/octokit", 23)
103
- def remove_all_labels(repo, number, options={})
103
+ def remove_all_labels(repo, number, options = {})
104
104
  boolean_from_response :delete, "repos/#{Repository.new(repo)}/issues/#{number}/labels", options
105
105
  end
106
106
 
@@ -112,7 +112,7 @@ module Octokit
112
112
  # @see http://developer.github.com/v3/issues/labels/#list-labels-on-an-issue
113
113
  # @example List labels for pengwynn/octokit
114
114
  # Octokit.labels("pengwynn/octokit")
115
- def labels_for_issue(repo, number, options={})
115
+ def labels_for_issue(repo, number, options = {})
116
116
  get "repos/#{Repository.new(repo)}/issues/#{number}/labels", options
117
117
  end
118
118
 
@@ -138,7 +138,7 @@ module Octokit
138
138
  # @see http://developer.github.com/v3/issues/labels/#replace-all-labels-for-an-issue
139
139
  # @example Replace labels for pengwynn/octokit Issue #10
140
140
  # Octokit.replace_all_labels("pengwynn/octokit", 10, ['V3 Transition', 'Improvement'])
141
- def replace_all_labels(repo, number, labels, options={})
141
+ def replace_all_labels(repo, number, labels, options = {})
142
142
  put "repos/#{Repository.new(repo)}/issues/#{number}/labels", labels
143
143
  end
144
144
 
@@ -150,7 +150,7 @@ module Octokit
150
150
  # @see http://developer.github.com/v3/issues/labels/#get-labels-for-every-issue-in-a-milestone
151
151
  # @example List all labels for milestone #2 on pengwynn/octokit
152
152
  # Octokit.labels_for_milestone("pengwynn/octokit", 2)
153
- def labels_for_milestone(repo, number, options={})
153
+ def labels_for_milestone(repo, number, options = {})
154
154
  get "repos/#{Repository.new(repo)}/milestones/#{number}/labels", options
155
155
  end
156
156
 
@@ -11,7 +11,7 @@ module Octokit
11
11
  # @see http://developer.github.com/v3/search/#search-repositories
12
12
  # @param q [String] Search keyword
13
13
  # @return [Array<Sawyer::Resource>] List of repositories found
14
- def legacy_search_repositories(q, options={})
14
+ def legacy_search_repositories(q, options = {})
15
15
  get("legacy/repos/search/#{q}", options)['repositories']
16
16
  end
17
17
 
@@ -34,7 +34,7 @@ module Octokit
34
34
  # @return [Array<Sawyer::Resource>] A list of issues matching the search term and state
35
35
  # @example Search for 'test' in the open issues for sferik/rails_admin
36
36
  # Octokit.search_issues("sferik/rails_admin", 'test', 'open')
37
- def legacy_search_issues(repo, search_term, state='open', options={})
37
+ def legacy_search_issues(repo, search_term, state='open', options = {})
38
38
  get("legacy/issues/search/#{Repository.new(repo)}/#{state}/#{search_term}", options)['issues']
39
39
  end
40
40
 
@@ -58,7 +58,7 @@ module Octokit
58
58
  # @see http://developer.github.com/v3/search/#search-users
59
59
  # @example
60
60
  # Octokit.search_users('pengwynn')
61
- def legacy_search_users(search, options={})
61
+ def legacy_search_users(search, options = {})
62
62
  get("legacy/user/search/#{search}", options)['users']
63
63
  end
64
64
 
@@ -71,7 +71,7 @@ module Octokit
71
71
  # @example
72
72
  # Octokit.search_users('pengwynn')
73
73
  def search_users(search, options = {})
74
- legacy_search_users(search, options = {})
74
+ legacy_search_users(search, options)
75
75
  end
76
76
  end
77
77
  end
@@ -15,7 +15,7 @@ module Octokit
15
15
  # @see http://developer.github.com/v3/repos/markdown/
16
16
  # @example Render some GFM
17
17
  # Octokit.markdown('Fixed in #111', :mode => "gfm", :context => "pengwynn/octokit")
18
- def markdown(text, options={})
18
+ def markdown(text, options = {})
19
19
  options[:text] = text
20
20
  options[:repo] = Repository.new(options[:repo]) if options[:repo]
21
21
  options[:accept] = 'application/vnd.github.raw'
@@ -11,7 +11,7 @@ module Octokit
11
11
  # @return [Sawyer::Resource] Hash with meta information.
12
12
  # @example Get GitHub meta information
13
13
  # @client.github_meta
14
- def meta(options={})
14
+ def meta(options = {})
15
15
  get "meta", options
16
16
  end
17
17
  alias :github_meta :meta
@@ -18,7 +18,7 @@ module Octokit
18
18
  # @see http://developer.github.com/v3/issues/milestones/#List-Milestones-for-an-Issue
19
19
  # @example List milestones for a repository
20
20
  # Octokit.list_milestones("pengwynn/octokit")
21
- def list_milestones(repository, options={})
21
+ def list_milestones(repository, options = {})
22
22
  paginate "repos/#{Repository.new(repository)}/milestones", options
23
23
  end
24
24
  alias :milestones :list_milestones
@@ -35,7 +35,7 @@ module Octokit
35
35
  # @see http://developer.github.com/v3/issues/milestones/#get-a-single-milestone
36
36
  # @example Get a single milestone for a repository
37
37
  # Octokit.milestone("pengwynn/octokit", 1)
38
- def milestone(repository, number, options={})
38
+ def milestone(repository, number, options = {})
39
39
  get "repos/#{Repository.new(repository)}/milestones/#{number}", options
40
40
  end
41
41
 
@@ -51,7 +51,7 @@ module Octokit
51
51
  # @see http://developer.github.com/v3/issues/milestones/#create-a-milestone
52
52
  # @example Create a milestone for a repository
53
53
  # Octokit.create_milestone("pengwynn/octokit", "0.7.0", {:description => 'Add support for v3 of Github API'})
54
- def create_milestone(repository, title, options={})
54
+ def create_milestone(repository, title, options = {})
55
55
  post "repos/#{Repository.new(repository)}/milestones", options.merge({:title => title})
56
56
  end
57
57
 
@@ -68,7 +68,7 @@ module Octokit
68
68
  # @see http://developer.github.com/v3/issues/milestones/#update-a-milestone
69
69
  # @example Update a milestone for a repository
70
70
  # Octokit.update_milestone("pengwynn/octokit", 1, {:description => 'Add support for v3 of Github API'})
71
- def update_milestone(repository, number, options={})
71
+ def update_milestone(repository, number, options = {})
72
72
  patch "repos/#{Repository.new(repository)}/milestones/#{number}", options
73
73
  end
74
74
  alias :edit_milestone :update_milestone
@@ -82,7 +82,7 @@ module Octokit
82
82
  # @see http://developer.github.com/v3/issues/milestones/#delete-a-milestone
83
83
  # @example Delete a single milestone from a repository
84
84
  # Octokit.delete_milestone("pengwynn/octokit", 1)
85
- def delete_milestone(repository, number, options={})
85
+ def delete_milestone(repository, number, options = {})
86
86
  boolean_from_response :delete, "repos/#{Repository.new(repository)}/milestones/#{number}", options
87
87
  end
88
88
 
@@ -23,7 +23,7 @@ module Octokit
23
23
  # @client.notifications
24
24
  # @example Get all notifications since a certain time.
25
25
  # @client.notifications({all: true, since: '2012-10-09T23:39:01Z'})
26
- def notifications(options={})
26
+ def notifications(options = {})
27
27
  paginate "notifications", options
28
28
  end
29
29
 
@@ -45,7 +45,7 @@ module Octokit
45
45
  # @client.repository_notifications('pengwynn/octokit')
46
46
  # @example Get your notifications for pengwynn/octokit since a time.
47
47
  # @client.repository_notifications({since: '2012-10-09T23:39:01Z'})
48
- def repository_notifications(repo, options={})
48
+ def repository_notifications(repo, options = {})
49
49
  paginate "repos/#{Repository.new repo}/notifications", options
50
50
  end
51
51
  alias :repo_notifications :repository_notifications
@@ -65,7 +65,7 @@ module Octokit
65
65
  #
66
66
  # @example
67
67
  # @client.mark_notifications_as_read
68
- def mark_notifications_as_read(options={})
68
+ def mark_notifications_as_read(options = {})
69
69
  request :put, "notifications", options
70
70
 
71
71
  last_response.status == 205
@@ -86,7 +86,7 @@ module Octokit
86
86
  # @see http://developer.github.com/v3/activity/notifications/#mark-notifications-as-read-in-a-repository
87
87
  # @example
88
88
  # @client.mark_notifications_as_read("pengwynn/octokit")
89
- def mark_repository_notifications_as_read(repo, options={})
89
+ def mark_repository_notifications_as_read(repo, options = {})
90
90
  request :put, "repos/#{Repository.new repo}/notifications", options
91
91
 
92
92
  last_response.status == 205
@@ -101,7 +101,7 @@ module Octokit
101
101
  #
102
102
  # @example
103
103
  # @client.notification_thread(1000)
104
- def thread_notifications(thread_id, options={})
104
+ def thread_notifications(thread_id, options = {})
105
105
  get "notifications/threads/#{thread_id}", options
106
106
  end
107
107
 
@@ -116,7 +116,7 @@ module Octokit
116
116
  # @see http://developer.github.com/v3/activity/notifications/#mark-a-thread-as-read
117
117
  # @example
118
118
  # @client.mark_thread_as_ready(1, :read => false)
119
- def mark_thread_as_read(thread_id, options={})
119
+ def mark_thread_as_read(thread_id, options = {})
120
120
  request :patch, "notifications/threads/#{thread_id}", options
121
121
 
122
122
  last_response.status == 205
@@ -129,7 +129,7 @@ module Octokit
129
129
  # @see http://developer.github.com/v3/activity/notifications/#get-a-thread-subscription
130
130
  # @example
131
131
  # @client.thread_subscription(1)
132
- def thread_subscription(thread_id, options={})
132
+ def thread_subscription(thread_id, options = {})
133
133
  get "notifications/threads/#{thread_id}/subscription", options
134
134
  end
135
135
 
@@ -152,7 +152,7 @@ module Octokit
152
152
  # @client.update_thread_subscription(1, :subscribed => true)
153
153
  # @example Ignore notifications from a repo
154
154
  # @client.update_thread_subscription(1, :ignored => true)
155
- def update_thread_subscription(thread_id, options={})
155
+ def update_thread_subscription(thread_id, options = {})
156
156
  put "notifications/threads/#{thread_id}/subscription", options
157
157
  end
158
158
 
@@ -163,7 +163,7 @@ module Octokit
163
163
  # @see http://developer.github.com/v3/activity/notifications/#delete-a-thread-subscription
164
164
  # @example
165
165
  # @client.delete_thread_subscription(1)
166
- def delete_thread_subscription(thread_id, options={})
166
+ def delete_thread_subscription(thread_id, options = {})
167
167
  boolean_from_response :delete, "notifications/threads/#{thread_id}/subscription", options
168
168
  end
169
169
 
@@ -19,7 +19,7 @@ module Octokit
19
19
  # @example Fetch a tree recursively
20
20
  # tree = Octokit.tree("octocat/Hello-World", "fc6274d15fa3ae2ab983129fb037999f264ba9a7")
21
21
  # tree.tree.first.path # => "subdir/file.txt"
22
- def tree(repo, tree_sha, options={})
22
+ def tree(repo, tree_sha, options = {})
23
23
  get "repos/#{Repository.new(repo)}/git/trees/#{tree_sha}", options
24
24
  end
25
25
 
@@ -35,7 +35,7 @@ module Octokit
35
35
  # tree = Octokit.create_tree("octocat/Hello-World", [ { :path => "file.rb", :mode => "100644", :type => "blob", :sha => "44b4fc6d56897b048c772eb4087f854f46256132" } ])
36
36
  # tree.sha # => "cd8274d15fa3ae2ab983129fb037999f264ba9a7"
37
37
  # tree.tree.first.path # => "file.rb"
38
- def create_tree(repo, tree, options={})
38
+ def create_tree(repo, tree, options = {})
39
39
  parameters = { :tree => tree }
40
40
  post "repos/#{Repository.new(repo)}/git/trees", options.merge(parameters)
41
41
  end
@@ -56,7 +56,7 @@ module Octokit
56
56
  # blob.encoding # => "base64"
57
57
  # blob.content # => "Rm9vIGJhciBiYXo="
58
58
  # Base64.decode64(blob.content) # => "Foo bar baz"
59
- def blob(repo, blob_sha, options={})
59
+ def blob(repo, blob_sha, options = {})
60
60
  get "repos/#{Repository.new(repo)}/git/blobs/#{blob_sha}", options
61
61
  end
62
62
 
@@ -72,7 +72,7 @@ module Octokit
72
72
  # @example Create a blob containing <tt>foo bar baz</tt>, encoded using base64
73
73
  # require "base64"
74
74
  # Octokit.create_blob("octocat/Hello-World", Base64.encode64("foo bar baz"), "base64")
75
- def create_blob(repo, content, encoding="utf-8", options={})
75
+ def create_blob(repo, content, encoding="utf-8", options = {})
76
76
  parameters = {
77
77
  :content => content,
78
78
  :encoding => encoding
@@ -90,7 +90,7 @@ module Octokit
90
90
  # @see http://developer.github.com/v3/git/tags/#get-a-tag
91
91
  # @example Fetch a tag
92
92
  # Octokit.tag('pengwynn/octokit', '23aad20633f4d2981b1c7209a800db3014774e96')
93
- def tag(repo, tag_sha, options={})
93
+ def tag(repo, tag_sha, options = {})
94
94
  get "repos/#{Repository.new repo}/git/tags/#{tag_sha}", options
95
95
  end
96
96
 
@@ -120,7 +120,7 @@ module Octokit
120
120
  # "wynn.netherland@gmail.com",
121
121
  # "2012-06-03T17:03:11-07:00"
122
122
  # )
123
- def create_tag(repo, tag, message, object_sha, type, tagger_name, tagger_email, tagger_date, options={})
123
+ def create_tag(repo, tag, message, object_sha, type, tagger_name, tagger_email, tagger_date, options = {})
124
124
  options.merge!(
125
125
  :tag => tag,
126
126
  :message => message,