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.
- data/lib/octokit/client.rb +2 -2
- data/lib/octokit/client/authorizations.rb +6 -6
- data/lib/octokit/client/commit_comments.rb +6 -6
- data/lib/octokit/client/commits.rb +10 -10
- data/lib/octokit/client/downloads.rb +2 -2
- data/lib/octokit/client/emojis.rb +2 -2
- data/lib/octokit/client/events.rb +12 -12
- data/lib/octokit/client/gists.rb +16 -16
- data/lib/octokit/client/gitignore.rb +2 -2
- data/lib/octokit/client/issues.rb +14 -14
- data/lib/octokit/client/labels.rb +10 -10
- data/lib/octokit/client/legacy_search.rb +4 -4
- data/lib/octokit/client/markdown.rb +1 -1
- data/lib/octokit/client/meta.rb +1 -1
- data/lib/octokit/client/milestones.rb +5 -5
- data/lib/octokit/client/notifications.rb +9 -9
- data/lib/octokit/client/objects.rb +6 -6
- data/lib/octokit/client/organizations.rb +22 -22
- data/lib/octokit/client/pull_requests.rb +18 -18
- data/lib/octokit/client/rate_limit.rb +4 -4
- data/lib/octokit/client/refs.rb +5 -5
- data/lib/octokit/client/repositories.rb +40 -40
- data/lib/octokit/client/say.rb +2 -3
- data/lib/octokit/client/stats.rb +12 -12
- data/lib/octokit/client/statuses.rb +2 -2
- data/lib/octokit/client/users.rb +16 -16
- data/lib/octokit/default.rb +1 -0
- data/lib/octokit/gist.rb +1 -3
- data/lib/octokit/rate_limit.rb +12 -1
- data/lib/octokit/repository.rb +10 -11
- data/lib/octokit/version.rb +1 -1
- data/octokit.gemspec +1 -1
- data/spec/cassettes/rate_limit.json +1 -1
- data/spec/octokit/client/rate_limit_spec.rb +4 -0
- data/spec/octokit/rate_limit_spec.rb +6 -1
- metadata +2 -3
- data/CHANGELOG.md +0 -133
data/lib/octokit/client/say.rb
CHANGED
data/lib/octokit/client/stats.rb
CHANGED
@@ -13,8 +13,8 @@ module Octokit
|
|
13
13
|
# @see http://developer.github.com/v3/repos/statistics/#get-contributors-list-with-additions-deletions-and-commit-counts
|
14
14
|
# @example Get contributor stats for octokit
|
15
15
|
# @client.contributors_stats('pengwynn/octokit')
|
16
|
-
def contributors_stats(repo)
|
17
|
-
get_stats(repo, "contributors")
|
16
|
+
def contributors_stats(repo, options = {})
|
17
|
+
get_stats(repo, "contributors", options)
|
18
18
|
end
|
19
19
|
alias :contributor_stats :contributors_stats
|
20
20
|
|
@@ -26,8 +26,8 @@ module Octokit
|
|
26
26
|
# @see http://developer.github.com/v3/repos/statistics/#get-the-last-year-of-commit-activity-data
|
27
27
|
# @example Get commit activity for octokit
|
28
28
|
# @client.commit_activity_stats('pengwynn/octokit')
|
29
|
-
def commit_activity_stats(repo)
|
30
|
-
get_stats(repo, "commit_activity")
|
29
|
+
def commit_activity_stats(repo, options = {})
|
30
|
+
get_stats(repo, "commit_activity", options)
|
31
31
|
end
|
32
32
|
|
33
33
|
# Get the number of additions and deletions per week
|
@@ -38,8 +38,8 @@ module Octokit
|
|
38
38
|
# @see http://developer.github.com/v3/repos/statistics/#get-the-number-of-additions-and-deletions-per-week
|
39
39
|
# @example Get code frequency stats for octokit
|
40
40
|
# @client.code_frequency_stats('pengwynn/octokit')
|
41
|
-
def code_frequency_stats(repo)
|
42
|
-
get_stats(repo, "code_frequency")
|
41
|
+
def code_frequency_stats(repo, options = {})
|
42
|
+
get_stats(repo, "code_frequency", options)
|
43
43
|
end
|
44
44
|
|
45
45
|
# Get the weekly commit count for the repo owner and everyone else
|
@@ -52,8 +52,8 @@ module Octokit
|
|
52
52
|
# @see http://developer.github.com/v3/repos/statistics/#get-the-weekly-commit-count-for-the-repo-owner-and-everyone-else
|
53
53
|
# @example Get weekly commit counts for octokit
|
54
54
|
# @client.participation_stats("pengwynn/octokit")
|
55
|
-
def participation_stats(repo)
|
56
|
-
get_stats(repo, "participation")
|
55
|
+
def participation_stats(repo, options = {})
|
56
|
+
get_stats(repo, "participation", options)
|
57
57
|
end
|
58
58
|
|
59
59
|
# Get the number of commits per hour in each day
|
@@ -64,8 +64,8 @@ module Octokit
|
|
64
64
|
# @see http://developer.github.com/v3/repos/statistics/#get-the-number-of-commits-per-hour-in-each-day
|
65
65
|
# @example Get octokit punch card
|
66
66
|
# @octokit.punch_card_stats
|
67
|
-
def punch_card_stats(repo)
|
68
|
-
get_stats(repo, "punch_card")
|
67
|
+
def punch_card_stats(repo, options = {})
|
68
|
+
get_stats(repo, "punch_card", options)
|
69
69
|
end
|
70
70
|
alias :punch_card :punch_card_stats
|
71
71
|
|
@@ -76,8 +76,8 @@ module Octokit
|
|
76
76
|
# @param repo [String, Hash, Repository] A GitHub repository
|
77
77
|
# @param metric [String] The metrics you are looking for
|
78
78
|
# @return [Array<Sawyer::Resource>] Magical unicorn stats
|
79
|
-
def get_stats(repo, metric)
|
80
|
-
data = get("repos/#{Repository.new repo}/stats/#{metric}")
|
79
|
+
def get_stats(repo, metric, options = {})
|
80
|
+
data = get("repos/#{Repository.new repo}/stats/#{metric}", options)
|
81
81
|
|
82
82
|
last_response.status == 202 ? nil : data
|
83
83
|
end
|
@@ -12,7 +12,7 @@ module Octokit
|
|
12
12
|
# @param sha [String] The SHA1 for the commit
|
13
13
|
# @return [Array<Sawyer::Resource>] A list of statuses
|
14
14
|
# @see http://developer.github.com/v3/repos/status
|
15
|
-
def statuses(repo, sha, options={})
|
15
|
+
def statuses(repo, sha, options = {})
|
16
16
|
get "repos/#{Repository.new(repo)}/statuses/#{sha}", options
|
17
17
|
end
|
18
18
|
alias :list_statuses :statuses
|
@@ -24,7 +24,7 @@ module Octokit
|
|
24
24
|
# @param state [String] The state: pending, success, failure, error
|
25
25
|
# @return [Sawyer::Resource] A status
|
26
26
|
# @see http://developer.github.com/v3/repos/status
|
27
|
-
def create_status(repo, sha, state, options={})
|
27
|
+
def create_status(repo, sha, state, options = {})
|
28
28
|
options.merge!(:state => state)
|
29
29
|
post "repos/#{Repository.new(repo)}/statuses/#{sha}", options
|
30
30
|
end
|
data/lib/octokit/client/users.rb
CHANGED
@@ -18,7 +18,7 @@ module Octokit
|
|
18
18
|
# @see http://developer.github.com/v3/users/#get-all-users
|
19
19
|
#
|
20
20
|
# @return [Array<Sawyer::Resource>] List of GitHub users.
|
21
|
-
def all_users(options={})
|
21
|
+
def all_users(options = {})
|
22
22
|
get "users", options
|
23
23
|
end
|
24
24
|
|
@@ -91,7 +91,7 @@ module Octokit
|
|
91
91
|
# @see http://developer.github.com/v3/users/followers/#list-followers-of-a-user
|
92
92
|
# @example
|
93
93
|
# Octokit.followers('pengwynn')
|
94
|
-
def followers(user=login, options={})
|
94
|
+
def followers(user=login, options = {})
|
95
95
|
get "users/#{user}/followers", options
|
96
96
|
end
|
97
97
|
|
@@ -102,7 +102,7 @@ module Octokit
|
|
102
102
|
# @see http://developer.github.com/v3/users/followers/#list-users-following-another-user
|
103
103
|
# @example
|
104
104
|
# Octokit.following('pengwynn')
|
105
|
-
def following(user=login, options={})
|
105
|
+
def following(user=login, options = {})
|
106
106
|
get "users/#{user}/following", options
|
107
107
|
end
|
108
108
|
|
@@ -136,7 +136,7 @@ module Octokit
|
|
136
136
|
# @see http://developer.github.com/v3/users/followers/#follow-a-user
|
137
137
|
# @example
|
138
138
|
# @client.follow('holman')
|
139
|
-
def follow(user, options={})
|
139
|
+
def follow(user, options = {})
|
140
140
|
boolean_from_response :put, "user/following/#{user}", options
|
141
141
|
end
|
142
142
|
|
@@ -149,7 +149,7 @@ module Octokit
|
|
149
149
|
# @see http://developer.github.com/v3/users/followers/#unfollow-a-user
|
150
150
|
# @example
|
151
151
|
# @client.unfollow('holman')
|
152
|
-
def unfollow(user, options={})
|
152
|
+
def unfollow(user, options = {})
|
153
153
|
boolean_from_response :delete, "user/following/#{user}", options
|
154
154
|
end
|
155
155
|
|
@@ -163,7 +163,7 @@ module Octokit
|
|
163
163
|
# @see http://developer.github.com/v3/repos/starring/#list-repositories-being-starred
|
164
164
|
# @example
|
165
165
|
# Octokit.starred('pengwynn')
|
166
|
-
def starred(user=login, options={})
|
166
|
+
def starred(user=login, options = {})
|
167
167
|
path = user_authenticated? ? "user/starred" : "users/#{user}/starred"
|
168
168
|
paginate path, options
|
169
169
|
end
|
@@ -178,7 +178,7 @@ module Octokit
|
|
178
178
|
# @see http://developer.github.com/v3/repos/starring/#check-if-you-are-starring-a-repository
|
179
179
|
# @example
|
180
180
|
# @client.starred?('pengwynn', 'octokit')
|
181
|
-
def starred?(user, repo, options={})
|
181
|
+
def starred?(user, repo, options = {})
|
182
182
|
boolean_from_response :get, "user/starred/#{user}/#{repo}", options
|
183
183
|
end
|
184
184
|
|
@@ -205,7 +205,7 @@ module Octokit
|
|
205
205
|
#
|
206
206
|
# public_key['key']
|
207
207
|
# # => "ssh-rsa AAA..."
|
208
|
-
def key(key_id, options={})
|
208
|
+
def key(key_id, options = {})
|
209
209
|
get "user/keys/#{key_id}", options
|
210
210
|
end
|
211
211
|
|
@@ -217,7 +217,7 @@ module Octokit
|
|
217
217
|
# @see http://developer.github.com/v3/users/keys/#list-your-public-keys
|
218
218
|
# @example
|
219
219
|
# @client.keys
|
220
|
-
def keys(options={})
|
220
|
+
def keys(options = {})
|
221
221
|
paginate "user/keys", options
|
222
222
|
end
|
223
223
|
|
@@ -229,7 +229,7 @@ module Octokit
|
|
229
229
|
# @see http://developer.github.com/v3/users/keys/#list-public-keys-for-a-user
|
230
230
|
# @example
|
231
231
|
# @client.user_keys('pengwynn'
|
232
|
-
def user_keys(user, options={})
|
232
|
+
def user_keys(user, options = {})
|
233
233
|
# TODO: Roll this into .keys
|
234
234
|
paginate "users/#{user}/keys", options
|
235
235
|
end
|
@@ -244,7 +244,7 @@ module Octokit
|
|
244
244
|
# @see http://developer.github.com/v3/users/keys/#create-a-public-key
|
245
245
|
# @example
|
246
246
|
# @client.add_key('Personal projects key', 'ssh-rsa AAA...')
|
247
|
-
def add_key(title, key, options={})
|
247
|
+
def add_key(title, key, options = {})
|
248
248
|
post "user/keys", options.merge({:title => title, :key => key})
|
249
249
|
end
|
250
250
|
|
@@ -260,7 +260,7 @@ module Octokit
|
|
260
260
|
# @see http://developer.github.com/v3/users/keys/#update-a-public-key
|
261
261
|
# @example
|
262
262
|
# @client.update_key(1, :title => 'new title', :key => "ssh-rsa BBB")
|
263
|
-
def update_key(key_id, options={})
|
263
|
+
def update_key(key_id, options = {})
|
264
264
|
patch "user/keys/#{key_id}", options
|
265
265
|
end
|
266
266
|
|
@@ -273,7 +273,7 @@ module Octokit
|
|
273
273
|
# @see http://developer.github.com/v3/users/keys/#delete-a-public-key
|
274
274
|
# @example
|
275
275
|
# @client.remove_key(1)
|
276
|
-
def remove_key(id, options={})
|
276
|
+
def remove_key(id, options = {})
|
277
277
|
boolean_from_response :delete, "user/keys/#{id}", options
|
278
278
|
end
|
279
279
|
|
@@ -285,7 +285,7 @@ module Octokit
|
|
285
285
|
# @see http://developer.github.com/v3/users/emails/#list-email-addresses-for-a-user
|
286
286
|
# @example
|
287
287
|
# @client.emails
|
288
|
-
def emails(options={})
|
288
|
+
def emails(options = {})
|
289
289
|
paginate "user/emails", options
|
290
290
|
end
|
291
291
|
|
@@ -298,7 +298,7 @@ module Octokit
|
|
298
298
|
# @see http://developer.github.com/v3/users/emails/#add-email-addresses
|
299
299
|
# @example
|
300
300
|
# @client.add_email('new_email@user.com')
|
301
|
-
def add_email(email, options={})
|
301
|
+
def add_email(email, options = {})
|
302
302
|
email = Array(email)
|
303
303
|
post "user/emails", email
|
304
304
|
end
|
@@ -327,7 +327,7 @@ module Octokit
|
|
327
327
|
#
|
328
328
|
# @example
|
329
329
|
# @client.subscriptions("pengwynn")
|
330
|
-
def subscriptions(user=login, options={})
|
330
|
+
def subscriptions(user=login, options = {})
|
331
331
|
path = user_authenticated? ? "user/subscriptions" : "users/#{user}/subscriptions"
|
332
332
|
paginate path, options
|
333
333
|
end
|
data/lib/octokit/default.rb
CHANGED
data/lib/octokit/gist.rb
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
require 'addressable/uri'
|
2
|
-
|
3
1
|
module Octokit
|
4
2
|
|
5
3
|
# Class to parse and create Gist URLs
|
@@ -12,7 +10,7 @@ module Octokit
|
|
12
10
|
# Instantiate {Gist} object from Gist URL
|
13
11
|
# @ return [Gist]
|
14
12
|
def self.from_url(url)
|
15
|
-
Gist.new(
|
13
|
+
Gist.new(URI.parse(url).path[1..-1])
|
16
14
|
end
|
17
15
|
|
18
16
|
def initialize(gist)
|
data/lib/octokit/rate_limit.rb
CHANGED
@@ -2,8 +2,17 @@ module Octokit
|
|
2
2
|
|
3
3
|
# Class for API Rate Limit info
|
4
4
|
#
|
5
|
+
# @!attribute [w] limit
|
6
|
+
# @return [Fixnum] Max tries per rate limit period
|
7
|
+
# @!attribute [w] remaining
|
8
|
+
# @return [Fixnum] Remaining tries per rate limit period
|
9
|
+
# @!attribute [w] resets_at
|
10
|
+
# @return [Time] Indicates when rate limit resets
|
11
|
+
# @!attribute [w] resets_in
|
12
|
+
# @return [Fixnum] Number of seconds when rate limit resets
|
13
|
+
#
|
5
14
|
# @see http://developer.github.com/v3/#rate-limiting
|
6
|
-
class RateLimit < Struct.new :limit, :remaining
|
15
|
+
class RateLimit < Struct.new :limit, :remaining, :resets_at, :resets_in
|
7
16
|
|
8
17
|
# Get rate limit info from HTTP response
|
9
18
|
#
|
@@ -14,6 +23,8 @@ module Octokit
|
|
14
23
|
if response && !response.headers.nil?
|
15
24
|
info.limit = response.headers['X-RateLimit-Limit'].to_i
|
16
25
|
info.remaining = response.headers['X-RateLimit-Remaining'].to_i
|
26
|
+
info.resets_at = Time.at(response.headers['X-RateLimit-Reset'].to_i)
|
27
|
+
info.resets_in = (info.resets_at - Time.now).to_i
|
17
28
|
end
|
18
29
|
|
19
30
|
info
|
data/lib/octokit/repository.rb
CHANGED
@@ -1,36 +1,34 @@
|
|
1
|
-
require 'addressable/uri'
|
2
|
-
|
3
1
|
module Octokit
|
4
|
-
|
5
|
-
# Class to parse GitHub repository owner and name from
|
2
|
+
|
3
|
+
# Class to parse GitHub repository owner and name from
|
6
4
|
# URLs and to generate URLs
|
7
5
|
class Repository
|
8
|
-
attr_accessor :
|
6
|
+
attr_accessor :owner, :name
|
9
7
|
|
10
8
|
# Instantiate from a GitHub repository URL
|
11
9
|
#
|
12
10
|
# @return [Repository]
|
13
11
|
def self.from_url(url)
|
14
|
-
Repository.new(
|
12
|
+
Repository.new(URI.parse(url).path[1..-1])
|
15
13
|
end
|
16
14
|
|
17
15
|
def initialize(repo)
|
18
16
|
case repo
|
19
17
|
when String
|
20
|
-
@
|
18
|
+
@owner, @name = repo.split('/')
|
21
19
|
when Repository
|
22
|
-
@
|
20
|
+
@owner = repo.owner
|
23
21
|
@name = repo.name
|
24
22
|
when Hash
|
25
23
|
@name = repo[:repo] ||= repo[:name]
|
26
|
-
@
|
24
|
+
@owner = repo[:owner] ||= repo[:user] ||= repo[:username]
|
27
25
|
end
|
28
26
|
end
|
29
27
|
|
30
28
|
# Repository owner/name
|
31
29
|
# @return [String]
|
32
30
|
def slug
|
33
|
-
"#{@
|
31
|
+
"#{@owner}/#{@name}"
|
34
32
|
end
|
35
33
|
alias :to_s :slug
|
36
34
|
|
@@ -40,7 +38,8 @@ module Octokit
|
|
40
38
|
"#{Octokit.web_endpoint}#{slug}"
|
41
39
|
end
|
42
40
|
|
43
|
-
alias :user :
|
41
|
+
alias :user :owner
|
42
|
+
alias :username :owner
|
44
43
|
alias :repo :name
|
45
44
|
end
|
46
45
|
end
|
data/lib/octokit/version.rb
CHANGED
data/octokit.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.authors = ["Wynn Netherland", "Erik Michaels-Ober", "Clint Shryock"]
|
10
10
|
spec.description = %q{Simple wrapper for the GitHub API}
|
11
11
|
spec.email = ['wynn.netherland@gmail.com', 'sferik@gmail.com', 'clint@ctshryock.com']
|
12
|
-
spec.files = %w(.document
|
12
|
+
spec.files = %w(.document CONTRIBUTING.md LICENSE.md README.md Rakefile octokit.gemspec)
|
13
13
|
spec.files += Dir.glob("lib/**/*.rb")
|
14
14
|
spec.files += Dir.glob("spec/**/*")
|
15
15
|
spec.homepage = 'https://github.com/octokit/octokit.rb'
|
@@ -1 +1 @@
|
|
1
|
-
{"http_interactions":[{"request":{"method":"get","uri":"https://api.github.com/rate_limit","body":{"encoding":"US-ASCII","base64_string":""},"headers":{"Accept":["application/vnd.github.beta+json"],"User-Agent":["Octokit Ruby Gem 2.0.0.pre"],"Accept-Encoding":["gzip;q=1.0,deflate;q=0.6,identity;q=0.3"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"Server":["GitHub.com"],"Date":["
|
1
|
+
{"http_interactions":[{"request":{"method":"get","uri":"https://api.github.com/rate_limit","body":{"encoding":"US-ASCII","base64_string":""},"headers":{"Accept":["application/vnd.github.beta+json"],"User-Agent":["Octokit Ruby Gem 2.0.0.pre"],"Accept-Encoding":["gzip;q=1.0,deflate;q=0.6,identity;q=0.3"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"Server":["GitHub.com"],"Date":["Tue, 16 Jul 2013 02:44:45 GMT"],"Content-Type":["application/json; charset=utf-8"],"Transfer-Encoding":["chunked"],"Status":["200 OK"],"X-Ratelimit-Limit":["60"],"X-Ratelimit-Remaining":["60"],"X-Ratelimit-Reset":["1373946285"],"X-Github-Media-Type":["github.beta; format=json"],"X-Content-Type-Options":["nosniff"],"Access-Control-Allow-Credentials":["true"],"Access-Control-Expose-Headers":["ETag, Link, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes"],"Access-Control-Allow-Origin":["*"],"Etag":["\"cd82abf6f4fe2a941c105433fa3c6be9\""],"Cache-Control":["max-age=0, private, must-revalidate"],"Vary":["Accept-Encoding"]},"body":{"encoding":"ASCII-8BIT","base64_string":"eyJyYXRlIjp7ImxpbWl0Ijo2MCwicmVtYWluaW5nIjo2MCwicmVzZXQiOjEz\nNzM5NDYyODV9fQ==\n"},"http_version":null},"recorded_at":"Tue, 16 Jul 2013 02:44:42 GMT"}],"recorded_with":"VCR 2.4.0"}
|
@@ -20,6 +20,8 @@ describe Octokit::Client do
|
|
20
20
|
rate = client.rate_limit
|
21
21
|
expect(rate.limit).to be_kind_of Fixnum
|
22
22
|
expect(rate.remaining).to be_kind_of Fixnum
|
23
|
+
expect(rate.resets_at).to be_kind_of Time
|
24
|
+
expect(rate.resets_in).to be_kind_of Fixnum
|
23
25
|
end
|
24
26
|
end
|
25
27
|
end
|
@@ -33,6 +35,8 @@ describe Octokit::Client do
|
|
33
35
|
|
34
36
|
expect(rate.limit).to be_kind_of Fixnum
|
35
37
|
expect(rate.remaining).to be_kind_of Fixnum
|
38
|
+
expect(rate.resets_at).to be_kind_of Time
|
39
|
+
expect(rate.resets_in).to be_kind_of Fixnum
|
36
40
|
end
|
37
41
|
end
|
38
42
|
end # .rate_limit!
|
@@ -9,17 +9,22 @@ describe Octokit::RateLimit do
|
|
9
9
|
at_least(:once).
|
10
10
|
and_return({
|
11
11
|
"X-RateLimit-Limit" => 60,
|
12
|
-
"X-RateLimit-Remaining" => 42
|
12
|
+
"X-RateLimit-Remaining" => 42,
|
13
|
+
"X-RateLimit-Reset" => (Time.now + 60).to_i
|
13
14
|
})
|
14
15
|
info = Octokit::RateLimit.from_response(response)
|
15
16
|
expect(info.limit).to eq 60
|
16
17
|
expect(info.remaining).to eq 42
|
18
|
+
expect(info.resets_in).to eq 59
|
19
|
+
expect(info.resets_at).to be_kind_of(Time)
|
17
20
|
end
|
18
21
|
|
19
22
|
it "handles nil responses" do
|
20
23
|
info = Octokit::RateLimit.from_response(nil)
|
21
24
|
expect(info.limit).to be_nil
|
22
25
|
expect(info.remaining).to be_nil
|
26
|
+
expect(info.resets_in).to be_nil
|
27
|
+
expect(info.resets_at).to be_nil
|
23
28
|
end
|
24
29
|
|
25
30
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: octokit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.0.
|
4
|
+
version: 2.0.0.rc1
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2013-07-
|
14
|
+
date: 2013-07-16 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: bundler
|
@@ -55,7 +55,6 @@ extensions: []
|
|
55
55
|
extra_rdoc_files: []
|
56
56
|
files:
|
57
57
|
- .document
|
58
|
-
- CHANGELOG.md
|
59
58
|
- CONTRIBUTING.md
|
60
59
|
- LICENSE.md
|
61
60
|
- README.md
|
data/CHANGELOG.md
DELETED
@@ -1,133 +0,0 @@
|
|
1
|
-
# CHANGELOG
|
2
|
-
|
3
|
-
# 1.24.0
|
4
|
-
|
5
|
-
* Missing issues methods, thanks [@andrew](https://github.com/andrew)
|
6
|
-
* Don't bypass SSL verification
|
7
|
-
|
8
|
-
View [the full changelog][1.24.0].
|
9
|
-
[1.24.0]: https://github.com/pengwynn/octokit/compare/v1.23.0...v1.24.0
|
10
|
-
|
11
|
-
# 1.23.0
|
12
|
-
|
13
|
-
* [Meta API][]
|
14
|
-
* [Status API][]
|
15
|
-
|
16
|
-
View [the full changelog][1.23.0].
|
17
|
-
[1.23.0]: https://github.com/pengwynn/octokit/compare/v1.22.0...v1.23.0
|
18
|
-
|
19
|
-
|
20
|
-
[Meta API]: http://developer.github.com/v3/meta/
|
21
|
-
[Status API]: https://status.github.com/api
|
22
|
-
|
23
|
-
# 1.22.0
|
24
|
-
|
25
|
-
* Patch from @[gonzoyumo][] to fix service hooks
|
26
|
-
|
27
|
-
[gonzoyumo]: https://github.com/gonzoyumo
|
28
|
-
|
29
|
-
View [the full changelog][1.22.0].
|
30
|
-
[1.22.0]: https://github.com/pengwynn/octokit/compare/v1.21.0...v1.22.0
|
31
|
-
|
32
|
-
# 1.21.0
|
33
|
-
|
34
|
-
[@joeyw](https://github.com/joeyw) added:
|
35
|
-
|
36
|
-
* 9df8662f3dddceba88a179029d9811ca8f201784 `.repository network events`
|
37
|
-
* 005723269f56fc59fc58c2d7f4eb2b6da1ee0b4a `.organization_public_events`
|
38
|
-
* f952ab54207f3d0bc5dc50bb822768444a777a70 `.received_public_events`
|
39
|
-
* c2e42b70d4f5fc219bd399bc2e645cce2cc168e9 `.user_public_events`
|
40
|
-
* ae9aaea3a25bee4cc17176419ebc5142aba2f729 `.organization_events`
|
41
|
-
|
42
|
-
View [the full changelog][1.21.0].
|
43
|
-
[1.21.0]: https://github.com/pengwynn/octokit/compare/v1.20.0...v1.21.0
|
44
|
-
|
45
|
-
# 1.20.0
|
46
|
-
|
47
|
-
* [@joeyw](https://github.com/joeyw) added `.all_users` and `.all_repositories`
|
48
|
-
* [@joeyw](https://github.com/joeyw) added `.issues_comments` and `.pull_request_comments`
|
49
|
-
* [@x3ro](https://github.com/x3ro) added some date parsing to Commits API
|
50
|
-
* .netrc support
|
51
|
-
|
52
|
-
View [the full changelog][1.20.0].
|
53
|
-
[1.20.0]: https://github.com/pengwynn/octokit/compare/v1.19.0...v1.20.0
|
54
|
-
|
55
|
-
|
56
|
-
# 1.19.0
|
57
|
-
|
58
|
-
This version has some substantial rewiring internally to support non-JSON
|
59
|
-
[media types][media-types]:
|
60
|
-
|
61
|
-
```ruby
|
62
|
-
Octokit.contents 'pengwynn/octokit', :path => 'README.md', :accept => 'application/vnd.github.html'
|
63
|
-
```
|
64
|
-
|
65
|
-
Additionally, all methods that return empty body responses for `GET`, `DELETE`,
|
66
|
-
and `PUT`, return a Boolean instead of raw HTTP Response or status code.
|
67
|
-
|
68
|
-
This version also introduces a couple of new methods:
|
69
|
-
|
70
|
-
* `scopes`: Check the scopes on an OAuth token
|
71
|
-
* `octocat`: Your daily dose of GitHub API Zen.
|
72
|
-
|
73
|
-
View [the full changelog][1.19.0].
|
74
|
-
[1.19.0]: https://github.com/pengwynn/octokit/compare/v1.18.0...v1.19.0
|
75
|
-
|
76
|
-
## Previous versions
|
77
|
-
|
78
|
-
* [1.18.0 - October 15, 2012](https://github.com/pengwynn/octokit/compare/v1.17.1...v1.18.0)
|
79
|
-
* [1.17.1 - October 11, 2012](https://github.com/pengwynn/octokit/compare/v1.17.0...v1.17.1)
|
80
|
-
* [1.17.0 - October 8, 2012](https://github.com/pengwynn/octokit/compare/v1.16.0...v1.17.0)
|
81
|
-
* [1.16.0 - September 25,2012](https://github.com/pengwynn/octokit/compare/v1.15.1...v1.16.0)
|
82
|
-
* [1.15.1 - September 24,2012](https://github.com/pengwynn/octokit/compare/v1.15.0...v1.15.1)
|
83
|
-
* [1.15.0 - September 24,2012](https://github.com/pengwynn/octokit/compare/v1.14.0...v1.15.0)
|
84
|
-
* [1.14.0 - September 22,2012](https://github.com/pengwynn/octokit/compare/v1.13.0...v1.14.0)
|
85
|
-
* [1.13.0 - September 5, 2012](https://github.com/pengwynn/octokit/compare/v1.12.0...v1.13.0)
|
86
|
-
* [1.12.0 - September 4, 2012](https://github.com/pengwynn/octokit/compare/v1.11.0...v1.12.0)
|
87
|
-
* [1.11.0 - August 29, 2012](https://github.com/pengwynn/octokit/compare/v1.10.0...v1.11.0)
|
88
|
-
* [1.10.0 - August 8, 2012](https://github.com/pengwynn/octokit/compare/v1.9.4...v1.10.0)
|
89
|
-
* [1.9.4 - August 6, 2012](https://github.com/pengwynn/octokit/compare/v1.9.3...v1.9.4)
|
90
|
-
* [1.9.3 - July 27, 2012](https://github.com/pengwynn/octokit/compare/v1.9.2...v1.9.3)
|
91
|
-
* [1.9.2 - July 25, 2012](https://github.com/pengwynn/octokit/compare/v1.9.1...v1.9.2)
|
92
|
-
* [1.9.1 - July 11, 2012](https://github.com/pengwynn/octokit/compare/v1.8.1...v1.9.1)
|
93
|
-
* [1.8.1 - June 18, 2012](https://github.com/pengwynn/octokit/compare/v1.8.0...v1.8.1)
|
94
|
-
* [1.7.0 - June 18, 2012](https://github.com/pengwynn/octokit/compare/v1.6.1...v1.7.0)
|
95
|
-
* [1.6.1 - June 14, 2012](https://github.com/pengwynn/octokit/compare/v1.6.0...v1.6.1)
|
96
|
-
* [1.6.0 - June 14, 2012](https://github.com/pengwynn/octokit/compare/v1.5.0...v1.6.0)
|
97
|
-
* [1.5.0 - June 14, 2012](https://github.com/pengwynn/octokit/compare/v1.4.0...v1.5.0)
|
98
|
-
* [1.4.0 - June 3, 2012](https://github.com/pengwynn/octokit/compare/v1.3.0...v1.4.0)
|
99
|
-
* [1.3.0 - May 17, 2012](https://github.com/pengwynn/octokit/compare/v1.2.1...v1.3.0)
|
100
|
-
* [1.2.0 - May 17, 2012](https://github.com/pengwynn/octokit/compare/v1.1.1...v1.2.0)
|
101
|
-
* [1.1.1 - May 15, 2012](https://github.com/pengwynn/octokit/compare/v1.1.0...v1.1.1)
|
102
|
-
* [1.1.0 - May 13, 2012](https://github.com/pengwynn/octokit/compare/v1.0.7...v1.1.0)
|
103
|
-
* [1.0.7 - May 11, 2012](https://github.com/pengwynn/octokit/compare/v1.0.6...v1.0.7)
|
104
|
-
* [1.0.6 - May 11, 2012](https://github.com/pengwynn/octokit/compare/v1.0.5...v1.0.6)
|
105
|
-
* [1.0.5 - May 2, 2012](https://github.com/pengwynn/octokit/compare/v1.0.4...v1.0.5)
|
106
|
-
* [1.0.4 - April 24, 2012](https://github.com/pengwynn/octokit/compare/v1.0.3...v1.0.4)
|
107
|
-
* [1.0.3 - April 18, 2012](https://github.com/pengwynn/octokit/compare/v1.0.2...v1.0.3)
|
108
|
-
* [1.0.2 - March 31, 2012](https://github.com/pengwynn/octokit/compare/v1.0.1...v1.0.2)
|
109
|
-
* [1.0.1 - March 31, 2012](https://github.com/pengwynn/octokit/compare/v1.0.0...v1.0.1)
|
110
|
-
* [1.0.0 - February 12, 2012](https://github.com/pengwynn/octokit/compare/v0.6.5...v1.0.0)
|
111
|
-
* [0.6.5 - October 15, 2011](https://github.com/pengwynn/octokit/compare/v0.6.4...v0.6.5)
|
112
|
-
* [0.6.4 - July 2, 2011](https://github.com/pengwynn/octokit/compare/v0.6.3...v0.6.4)
|
113
|
-
* [0.6.3 - May 5, 2011](https://github.com/pengwynn/octokit/compare/v0.6.2...v0.6.3)
|
114
|
-
* [0.6.2 - April 26, 2011](https://github.com/pengwynn/octokit/compare/v0.6.1...v0.6.2)
|
115
|
-
* [0.6.1 - April 6, 2011](https://github.com/pengwynn/octokit/compare/v0.6.0...v0.6.1)
|
116
|
-
* [0.6.0 - March 20, 2011](https://github.com/pengwynn/octokit/compare/v0.5.2...v0.6.0)
|
117
|
-
* [0.5.2 - February 6, 2011](https://github.com/pengwynn/octokit/compare/v0.5.1...v0.5.2)
|
118
|
-
* [0.5.1 - February 3, 2011](https://github.com/pengwynn/octokit/compare/v0.5.0...v0.5.1)
|
119
|
-
* [0.5.0 - January 21, 2011](https://github.com/pengwynn/octokit/compare/v0.4.1...v0.5.0)
|
120
|
-
* [0.4.1 - January 8, 2011](https://github.com/pengwynn/octokit/compare/v0.2.3...v0.4.1)
|
121
|
-
* [0.2.3 - June 17, 2010](https://github.com/pengwynn/octokit/compare/v0.2.2...v0.2.3)
|
122
|
-
* [0.2.2 - June 8, 2010](https://github.com/pengwynn/octokit/compare/v0.2.1...v0.2.2)
|
123
|
-
* [0.2.1 - May 4, 2010](https://github.com/pengwynn/octokit/compare/v0.2.0...v0.2.1)
|
124
|
-
* [0.2.0 - April 30, 2010](https://github.com/pengwynn/octokit/compare/v0.1.4...v0.2.0)
|
125
|
-
* [0.1.4 - January 13, 2010](https://github.com/pengwynn/octokit/compare/v0.1.3...v0.1.4)
|
126
|
-
* [0.1.3 - December 16, 2009](https://github.com/pengwynn/octokit/compare/v0.1.2...v0.1.3)
|
127
|
-
* [0.1.2 - December 16, 2009](https://github.com/pengwynn/octokit/compare/v0.1.1...v0.1.2)
|
128
|
-
* [0.1.1 - December 15, 2009](https://github.com/pengwynn/octokit/compare/v0.1.0...v0.1.1)
|
129
|
-
* [0.1.0 - December 12, 2009](https://github.com/pengwynn/octokit/compare/v0.0.1...v0.1.0)
|
130
|
-
* [0.0.1 - December 12, 2009](https://github.com/pengwynn/octokit/compare/cb7d5480944229e1a5ddfa9d1113903628765584...v0.0.1)
|
131
|
-
|
132
|
-
|
133
|
-
[media-types]: http://developer.github.com/v3/media/
|