octokit 1.8.0 → 1.8.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +1 -1
- data/README.md +11 -5
- data/lib/octokit/client/authorizations.rb +12 -12
- data/lib/octokit/client/commits.rb +6 -6
- data/lib/octokit/client/downloads.rb +1 -1
- data/lib/octokit/client/events.rb +5 -5
- data/lib/octokit/client/gists.rb +12 -12
- data/lib/octokit/client/issues.rb +14 -14
- data/lib/octokit/client/milestones.rb +5 -5
- data/lib/octokit/client/objects.rb +2 -2
- data/lib/octokit/client/pub_sub_hubbub.rb +2 -2
- data/lib/octokit/client/pub_sub_hubbub/service_hooks.rb +2 -2
- data/lib/octokit/client/refs.rb +3 -3
- data/lib/octokit/client/repositories.rb +34 -34
- data/lib/octokit/client/users.rb +16 -16
- data/lib/octokit/configuration.rb +10 -2
- data/lib/octokit/repository.rb +1 -1
- data/lib/octokit/version.rb +1 -1
- data/spec/octokit/client_spec.rb +2 -2
- metadata +26 -26
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
-
* [1.8.
|
3
|
+
* [1.8.1 - June 18, 2012](https://github.com/pengwynn/octokit/compare/v1.8.0...v1.8.1)
|
4
4
|
* [1.7.0 - June 18, 2012](https://github.com/pengwynn/octokit/compare/v1.6.1...v1.7.0)
|
5
5
|
* [1.6.1 - June 14, 2012](https://github.com/pengwynn/octokit/compare/v1.6.0...v1.6.1)
|
6
6
|
* [1.6.0 - June 14, 2012](https://github.com/pengwynn/octokit/compare/v1.5.0...v1.6.0)
|
data/README.md
CHANGED
@@ -29,13 +29,19 @@ Octokit.following("sferik")
|
|
29
29
|
For convenience, methods that require a repository argument may be passed in
|
30
30
|
any of the following forms:
|
31
31
|
|
32
|
-
* `"pengwynn/octokit"`
|
33
|
-
* `{:username => "pengwynn", :name => "octokit"}`
|
34
|
-
* `{:username => "pengwynn", :repo => "octokit"}`
|
35
|
-
* instance of `Repository`
|
36
|
-
|
37
32
|
```ruby
|
33
|
+
# String
|
38
34
|
Octokit.repo("pengwynn/octokit")
|
35
|
+
|
36
|
+
# Hash
|
37
|
+
Octokit.repo({:username => "pengwynn", :name => "octokit"})
|
38
|
+
|
39
|
+
# or
|
40
|
+
Octokit.repo({:username => "pengwynn", :repo => "octokit"})
|
41
|
+
|
42
|
+
# Instance of Repository
|
43
|
+
Octokit.repo(Repository.new('pengwynn/octokit'))
|
44
|
+
|
39
45
|
=> <#Hashie::Rash created_at="2009/12/10 13:41:49 -0800" description="Simple Ruby wrapper for the GitHub API and feeds" fork=false forks=25 has_downloads=true has_issues=true has_wiki=true homepage="http://wynnnetherland.com/projects/octokit" integrate_branch="master" language="Ruby" name="octokit" open_issues=8 owner="pengwynn" private=false pushed_at="2011/05/05 10:48:57 -0700" size=1804 url="https://github.com/pengwynn/octokit" watchers=92>
|
40
46
|
```
|
41
47
|
|
@@ -4,8 +4,8 @@ module Octokit
|
|
4
4
|
|
5
5
|
# List a users authorizations
|
6
6
|
#
|
7
|
-
# API for users to manage their own tokens.
|
8
|
-
# You can only access your own tokens, and only through
|
7
|
+
# API for users to manage their own tokens.
|
8
|
+
# You can only access your own tokens, and only through
|
9
9
|
# Basic Authentication.
|
10
10
|
#
|
11
11
|
# @return [Array] A list of authorizations for the authenticated user
|
@@ -14,13 +14,13 @@ module Octokit
|
|
14
14
|
# client = Octokit::Client.new(:login => 'ctshryock', :password => 'secret')
|
15
15
|
# client.authorizations
|
16
16
|
def authorizations
|
17
|
-
get('
|
17
|
+
get('authorizations')
|
18
18
|
end
|
19
19
|
|
20
20
|
|
21
21
|
# Get a single authorization for the authenticated user.
|
22
22
|
#
|
23
|
-
# You can only access your own tokens, and only through
|
23
|
+
# You can only access your own tokens, and only through
|
24
24
|
# Basic Authentication.
|
25
25
|
#
|
26
26
|
# @return [Authorization] A single authorization for the authenticated user
|
@@ -29,12 +29,12 @@ module Octokit
|
|
29
29
|
# client = Octokit::Client.new(:login => 'ctshryock', :password => 'secret')
|
30
30
|
# client.authorization(999999)
|
31
31
|
def authorization(number)
|
32
|
-
get("
|
32
|
+
get("authorizations/#{number}")
|
33
33
|
end
|
34
34
|
|
35
35
|
# Create an authorization for the authenticated user.
|
36
36
|
#
|
37
|
-
# You can create your own tokens, and only through
|
37
|
+
# You can create your own tokens, and only through
|
38
38
|
# Basic Authentication.
|
39
39
|
#
|
40
40
|
# @param options [Hash] A customizable set of options.
|
@@ -52,12 +52,12 @@ module Octokit
|
|
52
52
|
# Techincally we can omit scopes as GitHub has a default, however the
|
53
53
|
# API will reject us if we send a POST request with an empty body.
|
54
54
|
options = {:scopes => ""}.merge(options)
|
55
|
-
post('
|
55
|
+
post('authorizations', options)
|
56
56
|
end
|
57
57
|
|
58
58
|
# Update an authorization for the authenticated user.
|
59
59
|
#
|
60
|
-
# You can update your own tokens, but only through
|
60
|
+
# You can update your own tokens, but only through
|
61
61
|
# Basic Authentication.
|
62
62
|
#
|
63
63
|
# @param options [Hash] A customizable set of options.
|
@@ -77,23 +77,23 @@ module Octokit
|
|
77
77
|
# Techincally we can omit scopes as GitHub has a default, however the
|
78
78
|
# API will reject us if we send a POST request with an empty body.
|
79
79
|
options = {:scopes => ""}.merge(options)
|
80
|
-
patch("
|
80
|
+
patch("authorizations/#{number}", options)
|
81
81
|
end
|
82
82
|
|
83
83
|
# Delete an authorization for the authenticated user.
|
84
84
|
#
|
85
|
-
# You can delete your own tokens, and only through
|
85
|
+
# You can delete your own tokens, and only through
|
86
86
|
# Basic Authentication.
|
87
87
|
#
|
88
88
|
# @param number [Number] An existing Authorization ID
|
89
89
|
#
|
90
90
|
# @return [Status] A raw status response
|
91
91
|
# @see http://developer.github.com/v3/oauth/#delete-an-authorization
|
92
|
-
# @example Delete an authorization
|
92
|
+
# @example Delete an authorization
|
93
93
|
# client = Octokit::Client.new(:login => 'ctshryock', :password => 'secret')
|
94
94
|
# client.delete_authorization(999999)
|
95
95
|
def delete_authorization(number)
|
96
|
-
delete("
|
96
|
+
delete("authorizations/#{number}", {}, 3, true, true)
|
97
97
|
end
|
98
98
|
|
99
99
|
end
|
@@ -13,7 +13,7 @@ module Octokit
|
|
13
13
|
# @see http://developer.github.com/v3/repos/commits/
|
14
14
|
def commits(repo, sha_or_branch="master", options={})
|
15
15
|
params = { :sha => sha_or_branch, :per_page => 35 }
|
16
|
-
get("
|
16
|
+
get("repos/#{Repository.new(repo)}/commits", options.merge(params), 3)
|
17
17
|
end
|
18
18
|
alias :list_commits :commits
|
19
19
|
|
@@ -24,7 +24,7 @@ module Octokit
|
|
24
24
|
# @return [Hashie::Mash] A hash representing the commit
|
25
25
|
# @see http://developer.github.com/v3/repos/commits/
|
26
26
|
def commit(repo, sha, options={})
|
27
|
-
get("
|
27
|
+
get("repos/#{Repository.new(repo)}/commits/#{sha}", options, 3)
|
28
28
|
end
|
29
29
|
|
30
30
|
# Create a commit
|
@@ -50,7 +50,7 @@ module Octokit
|
|
50
50
|
params = { :message => message, :tree => tree }.tap do |params|
|
51
51
|
params[:parents] = [parents].flatten if parents
|
52
52
|
end
|
53
|
-
post("
|
53
|
+
post("repos/#{Repository.new(repo)}/git/commits", options.merge(params), 3)
|
54
54
|
end
|
55
55
|
|
56
56
|
# List all commit comments
|
@@ -59,7 +59,7 @@ module Octokit
|
|
59
59
|
# @return [Array] An array of hashes representing comments
|
60
60
|
# @see http://developer.github.com/v3/repos/comments/
|
61
61
|
def list_commit_comments(repo, options={})
|
62
|
-
get("
|
62
|
+
get("repos/#{Repository.new(repo)}/comments", options, 3)
|
63
63
|
end
|
64
64
|
|
65
65
|
# List comments for a single commit
|
@@ -69,7 +69,7 @@ module Octokit
|
|
69
69
|
# @return [Array] An array of hashes representing comments
|
70
70
|
# @see http://developer.github.com/v3/repos/comments/
|
71
71
|
def commit_comments(repo, sha, options={})
|
72
|
-
get("
|
72
|
+
get("repos/#{Repository.new(repo)}/commits/#{sha}/comments", options, 3)
|
73
73
|
end
|
74
74
|
|
75
75
|
# Get a single commit comment
|
@@ -79,7 +79,7 @@ module Octokit
|
|
79
79
|
# @return [Hashie::Mash] A hash representing the comment
|
80
80
|
# @see http://developer.github.com/v3/repos/comments/
|
81
81
|
def commit_comment(repo, id, options={})
|
82
|
-
get("
|
82
|
+
get("repos/#{Repository.new(repo)}/comments/#{id}", options, 3)
|
83
83
|
end
|
84
84
|
|
85
85
|
end
|
@@ -76,7 +76,7 @@ module Octokit
|
|
76
76
|
|
77
77
|
private
|
78
78
|
def create_download_resource(repo, name, size, options={})
|
79
|
-
post("
|
79
|
+
post("repos/#{Repository.new(repo)}/downloads", options.merge({:name => name, :size => size}))
|
80
80
|
end
|
81
81
|
end
|
82
82
|
end
|
@@ -8,9 +8,9 @@ module Octokit
|
|
8
8
|
# @example List all pubilc events
|
9
9
|
# Octokit.public_events
|
10
10
|
def public_events(options={})
|
11
|
-
get("
|
11
|
+
get("events", options, 3)
|
12
12
|
end
|
13
|
-
|
13
|
+
|
14
14
|
# List all user events
|
15
15
|
#
|
16
16
|
# @return [Array] A list of all user events
|
@@ -18,7 +18,7 @@ module Octokit
|
|
18
18
|
# @example List all user events
|
19
19
|
# Octokit.user_events("sferik")
|
20
20
|
def user_events(user, options={})
|
21
|
-
get("
|
21
|
+
get("users/#{user}/events", options, 3)
|
22
22
|
end
|
23
23
|
|
24
24
|
# List events that a user has received
|
@@ -28,7 +28,7 @@ module Octokit
|
|
28
28
|
# @example List all user received events
|
29
29
|
# Octokit.received_events("sferik")
|
30
30
|
def received_events(user, options={})
|
31
|
-
get("
|
31
|
+
get("users/#{user}/received_events", options, 3)
|
32
32
|
end
|
33
33
|
|
34
34
|
# List events for a repository
|
@@ -39,7 +39,7 @@ module Octokit
|
|
39
39
|
# @example List events for a repository
|
40
40
|
# Octokit.repository_events("sferik/rails_admin")
|
41
41
|
def repository_events(repo, options={})
|
42
|
-
get("
|
42
|
+
get("repos/#{Repository.new(repo)}/events", options, 3)
|
43
43
|
end
|
44
44
|
end
|
45
45
|
end
|
data/lib/octokit/client/gists.rb
CHANGED
@@ -3,34 +3,34 @@ module Octokit
|
|
3
3
|
module Gists
|
4
4
|
|
5
5
|
def create_gist(options={})
|
6
|
-
post '
|
6
|
+
post 'gists', options, 3
|
7
7
|
end
|
8
8
|
|
9
9
|
def delete_gist(gist, options={})
|
10
|
-
response = delete("
|
10
|
+
response = delete("gists/#{Gist.new gist}", options, 3, true, true)
|
11
11
|
response.status == 204
|
12
12
|
end
|
13
13
|
|
14
14
|
def edit_gist(gist, options={})
|
15
|
-
patch "
|
15
|
+
patch "gists/#{Gist.new gist}", options, 3
|
16
16
|
end
|
17
17
|
|
18
18
|
def gist(gist, options={})
|
19
|
-
get "
|
19
|
+
get "gists/#{Gist.new gist}", options, 3
|
20
20
|
end
|
21
21
|
|
22
22
|
def gists(username=nil, options={})
|
23
23
|
if username.nil?
|
24
|
-
get '
|
24
|
+
get 'gists', options, 3
|
25
25
|
else
|
26
|
-
get "
|
26
|
+
get "users/#{username}/gists", options, 3
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
30
30
|
# Returns +true+ if +gist+ is starred, +false+ otherwise.
|
31
31
|
def gist_starred?(gist, options={})
|
32
32
|
begin
|
33
|
-
get("
|
33
|
+
get("gists/#{Gist.new gist}/star", options, 3, true, true)
|
34
34
|
return true
|
35
35
|
rescue Octokit::NotFound
|
36
36
|
return false
|
@@ -38,26 +38,26 @@ module Octokit
|
|
38
38
|
end
|
39
39
|
|
40
40
|
def fork_gist(gist, options={})
|
41
|
-
post "
|
41
|
+
post "gists/#{Gist.new gist}/fork", options, 3
|
42
42
|
end
|
43
43
|
|
44
44
|
def public_gists(options={})
|
45
|
-
get '
|
45
|
+
get 'gists', options, 3
|
46
46
|
end
|
47
47
|
|
48
48
|
def starred_gists(options={})
|
49
|
-
get '
|
49
|
+
get 'gists/starred', options, 3
|
50
50
|
end
|
51
51
|
|
52
52
|
# Returns +true+ or +false+ based on success.
|
53
53
|
def star_gist(gist, options={})
|
54
|
-
response = put("
|
54
|
+
response = put("gists/#{Gist.new gist}/star", options, 3, true, true)
|
55
55
|
response.status == 204
|
56
56
|
end
|
57
57
|
|
58
58
|
# Returns +true+ or +false+ based on success.
|
59
59
|
def unstar_gist(gist, options={})
|
60
|
-
response = delete("
|
60
|
+
response = delete("gists/#{Gist.new gist}/star", options, 3, true, true)
|
61
61
|
response.status == 204
|
62
62
|
end
|
63
63
|
|
@@ -12,7 +12,7 @@ module Octokit
|
|
12
12
|
# @example Search for 'test' in the open issues for sferik/rails_admin
|
13
13
|
# Octokit.search_issues("sferik/rails_admin", 'test', 'open')
|
14
14
|
def search_issues(repo, search_term, state='open', options={})
|
15
|
-
get("
|
15
|
+
get("legacy/issues/search/#{Repository.new(repo)}/#{state}/#{search_term}", options, 3)['issues']
|
16
16
|
end
|
17
17
|
|
18
18
|
# List issues for a repository
|
@@ -32,7 +32,7 @@ module Octokit
|
|
32
32
|
# @example List issues for a repository
|
33
33
|
# Octokit.list_issues("sferik/rails_admin")
|
34
34
|
def list_issues(repository, options={})
|
35
|
-
get("
|
35
|
+
get("repos/#{Repository.new(repository)}/issues", options, 3)
|
36
36
|
end
|
37
37
|
alias :issues :list_issues
|
38
38
|
|
@@ -46,7 +46,7 @@ module Octokit
|
|
46
46
|
# @example Create a new Issues for a repository
|
47
47
|
# Octokit.create_issue("sferik/rails_admin")
|
48
48
|
def create_issue(repo, title, body, options={})
|
49
|
-
post("
|
49
|
+
post("repos/#{Repository.new(repo)}/issues", options.merge({:title => title, :body => body}), 3)
|
50
50
|
end
|
51
51
|
alias :open_issue :create_issue
|
52
52
|
|
@@ -59,7 +59,7 @@ module Octokit
|
|
59
59
|
# @example Get issue #25 from pengwynn/octokit
|
60
60
|
# Octokit.issue("pengwynn/octokit", "25")
|
61
61
|
def issue(repo, number, options={})
|
62
|
-
get("
|
62
|
+
get("repos/#{Repository.new(repo)}/issues/#{number}", options, 3)
|
63
63
|
end
|
64
64
|
|
65
65
|
# Close an issue
|
@@ -73,7 +73,7 @@ module Octokit
|
|
73
73
|
# @example Close Issue #25 from pengwynn/octokit
|
74
74
|
# Octokit.close_issue("pengwynn/octokit", "25")
|
75
75
|
def close_issue(repo, number, options={})
|
76
|
-
post("
|
76
|
+
post("repos/#{Repository.new(repo)}/issues/#{number}", options.merge({:state => "closed"}), 3)
|
77
77
|
end
|
78
78
|
|
79
79
|
# Reopen an issue
|
@@ -87,7 +87,7 @@ module Octokit
|
|
87
87
|
# @example Reopen Issue #25 from pengwynn/octokit
|
88
88
|
# Octokit.reopen_issue("pengwynn/octokit", "25")
|
89
89
|
def reopen_issue(repo, number, options={})
|
90
|
-
post("
|
90
|
+
post("repos/#{Repository.new(repo)}/issues/#{number}", options.merge({:state => "open"}), 3)
|
91
91
|
end
|
92
92
|
|
93
93
|
# Update an issue
|
@@ -103,7 +103,7 @@ module Octokit
|
|
103
103
|
# @example Change the title of Issue #25
|
104
104
|
# Octokit.update_issue("pengwynn/octokit", "25", "A new title", "the same body"")
|
105
105
|
def update_issue(repo, number, title, body, options={})
|
106
|
-
post("
|
106
|
+
post("repos/#{Repository.new(repo)}/issues/#{number}", options.merge({:title => title, :body => body}), 3)
|
107
107
|
end
|
108
108
|
|
109
109
|
# Get all comments attached to an issue
|
@@ -115,7 +115,7 @@ module Octokit
|
|
115
115
|
# @example Get comments for issue #25 from pengwynn/octokit
|
116
116
|
# Octokit.issue_comments("pengwynn/octokit", "25")
|
117
117
|
def issue_comments(repo, number, options={})
|
118
|
-
get("
|
118
|
+
get("repos/#{Repository.new(repo)}/issues/#{number}/comments", options, 3)
|
119
119
|
end
|
120
120
|
|
121
121
|
# Get a single comment attached to an issue
|
@@ -127,7 +127,7 @@ module Octokit
|
|
127
127
|
# @example Get comments for issue #25 from pengwynn/octokit
|
128
128
|
# Octokit.issue_comments("pengwynn/octokit", "25")
|
129
129
|
def issue_comment(repo, number, options={})
|
130
|
-
get("
|
130
|
+
get("repos/#{Repository.new(repo)}/issues/comments/#{number}", options, 3)
|
131
131
|
end
|
132
132
|
|
133
133
|
# Add a comment to an issue
|
@@ -140,7 +140,7 @@ module Octokit
|
|
140
140
|
# @example Add the comment "Almost to v1" to Issue #23 on pengwynn/octokit
|
141
141
|
# Octokit.add_comment("pengwynn/octokit", 23, "Almost to v1")
|
142
142
|
def add_comment(repo, number, comment, options={})
|
143
|
-
post("
|
143
|
+
post("repos/#{Repository.new(repo)}/issues/#{number}/comments", options.merge({:body => comment}), 3)
|
144
144
|
end
|
145
145
|
|
146
146
|
# Update a single comment on an issue
|
@@ -153,7 +153,7 @@ module Octokit
|
|
153
153
|
# @example Update the comment "I've started this on my 25-issue-comments-v3 fork" on Issue #25 on pengwynn/octokit
|
154
154
|
# Octokit.update_comment("pengwynn/octokit", 25, "Almost to v1, added this on my fork")
|
155
155
|
def update_comment(repo, number, comment, options={})
|
156
|
-
post("
|
156
|
+
post("repos/#{Repository.new(repo)}/issues/comments/#{number}", options.merge({:body => comment}), 3)
|
157
157
|
end
|
158
158
|
|
159
159
|
# Delete a single comment
|
@@ -165,7 +165,7 @@ module Octokit
|
|
165
165
|
# @example Delete the comment "I've started this on my 25-issue-comments-v3 fork" on Issue #25 on pengwynn/octokit
|
166
166
|
# Octokit.delete_comment("pengwynn/octokit", 1194549)
|
167
167
|
def delete_comment(repo, number, options={})
|
168
|
-
delete("
|
168
|
+
delete("repos/#{Repository.new(repo)}/issues/comments/#{number}", options, 3, true, true)
|
169
169
|
end
|
170
170
|
|
171
171
|
|
@@ -179,7 +179,7 @@ module Octokit
|
|
179
179
|
# @example List all issues events for issue #38 on pengwynn/octokit
|
180
180
|
# Octokit.issue_events("pengwynn/octokit", 38)
|
181
181
|
def issue_events(repo, number, options={})
|
182
|
-
get("
|
182
|
+
get("repos/#{Repository.new(repo)}/issues/#{number}/events", options, 3)
|
183
183
|
end
|
184
184
|
|
185
185
|
# Get information on a single Issue Event
|
@@ -192,7 +192,7 @@ module Octokit
|
|
192
192
|
# @example Get Event information for ID 3094334 (a pull request was closed)
|
193
193
|
# Octokit.issue_event("pengwynn/octokit", 3094334)
|
194
194
|
def issue_event(repo, number, options={})
|
195
|
-
get("
|
195
|
+
get("repos/#{Repository.new(repo)}/issues/events/#{number}", options, 3)
|
196
196
|
end
|
197
197
|
|
198
198
|
end
|
@@ -15,7 +15,7 @@ module Octokit
|
|
15
15
|
# @example List milestones for a repository
|
16
16
|
# Octokit.list_milestones("pengwynn/octokit")
|
17
17
|
def list_milestones(repository, options={})
|
18
|
-
get("
|
18
|
+
get("repos/#{Repository.new(repository)}/milestones", options, 3)
|
19
19
|
end
|
20
20
|
alias :milestones :list_milestones
|
21
21
|
|
@@ -32,7 +32,7 @@ module Octokit
|
|
32
32
|
# @example Get a single milestone for a repository
|
33
33
|
# Octokit.milestone("pengwynn/octokit", 1)
|
34
34
|
def milestone(repository, number, options={})
|
35
|
-
get("
|
35
|
+
get("repos/#{Repository.new(repository)}/milestones/#{number}", options, 3)
|
36
36
|
end
|
37
37
|
|
38
38
|
# Create a milestone for a repository
|
@@ -48,7 +48,7 @@ module Octokit
|
|
48
48
|
# @example Create a milestone for a repository
|
49
49
|
# Octokit.create_milestone("pengwynn/octokit", "0.7.0", {:description => 'Add support for v3 of Github API'})
|
50
50
|
def create_milestone(repository, title, options={})
|
51
|
-
post("
|
51
|
+
post("repos/#{Repository.new(repository)}/milestones", options.merge({:title => title}), 3)
|
52
52
|
end
|
53
53
|
|
54
54
|
# Update a milestone for a repository
|
@@ -65,7 +65,7 @@ module Octokit
|
|
65
65
|
# @example Update a milestone for a repository
|
66
66
|
# Octokit.update_milestone("pengwynn/octokit", 1, {:description => 'Add support for v3 of Github API'})
|
67
67
|
def update_milestone(repository, number, options={})
|
68
|
-
post("
|
68
|
+
post("repos/#{Repository.new(repository)}/milestones/#{number}", options, 3)
|
69
69
|
end
|
70
70
|
alias :edit_milestone :update_milestone
|
71
71
|
|
@@ -79,7 +79,7 @@ module Octokit
|
|
79
79
|
# @example Delete a single milestone from a repository
|
80
80
|
# Octokit.delete_milestone("pengwynn/octokit", 1)
|
81
81
|
def delete_milestone(repository, number, options={})
|
82
|
-
delete("
|
82
|
+
delete("repos/#{Repository.new(repository)}/milestones/#{number}", options, 3, true, true)
|
83
83
|
end
|
84
84
|
|
85
85
|
end
|
@@ -33,7 +33,7 @@ module Octokit
|
|
33
33
|
# tree.tree.first.path # => "file.rb"
|
34
34
|
def create_tree(repo, tree, options={})
|
35
35
|
parameters = { :tree => tree }
|
36
|
-
post("
|
36
|
+
post("repos/#{Repository.new(repo)}/git/trees", options.merge(parameters), 3)
|
37
37
|
end
|
38
38
|
|
39
39
|
# Get a single blob, fetching its content and encoding
|
@@ -73,7 +73,7 @@ module Octokit
|
|
73
73
|
:content => content,
|
74
74
|
:encoding => encoding
|
75
75
|
}
|
76
|
-
post("
|
76
|
+
post("repos/#{Repository.new(repo)}/git/blobs", options.merge(parameters), 3).sha
|
77
77
|
end
|
78
78
|
end
|
79
79
|
end
|
@@ -15,7 +15,7 @@ module Octokit
|
|
15
15
|
:"hub.topic" => topic,
|
16
16
|
:"hub.callback" => callback,
|
17
17
|
}
|
18
|
-
post("
|
18
|
+
post("hub", options, 3, true, true, true)
|
19
19
|
true
|
20
20
|
end
|
21
21
|
|
@@ -33,7 +33,7 @@ module Octokit
|
|
33
33
|
:"hub.topic" => topic,
|
34
34
|
:"hub.callback" => callback,
|
35
35
|
}
|
36
|
-
post("
|
36
|
+
post("hub", options, 3, true, true, true)
|
37
37
|
true
|
38
38
|
end
|
39
39
|
end
|
@@ -13,7 +13,7 @@ module Octokit
|
|
13
13
|
# client = Octokit::Client.new(:oauth_token = "token")
|
14
14
|
# client.subscribe_service_hook('joshk/device_imapable', 'Travis', { :token => "test", :domain => "domain", :user => "user" })
|
15
15
|
def subscribe_service_hook(repo, service_name, service_arguments = {})
|
16
|
-
topic = "#{Octokit.web_endpoint}
|
16
|
+
topic = "#{Octokit.web_endpoint}#{Repository.new(repo)}/events/push"
|
17
17
|
callback = "github://#{service_name}?#{service_arguments.collect{ |k,v| [ k,v ].join("=") }.join("&") }"
|
18
18
|
subscribe(topic, callback)
|
19
19
|
true
|
@@ -28,7 +28,7 @@ module Octokit
|
|
28
28
|
# client = Octokit::Client.new(:oauth_token = "token")
|
29
29
|
# client.unsubscribe_service_hook('joshk/device_imapable', 'Travis')
|
30
30
|
def unsubscribe_service_hook(repo, service_name)
|
31
|
-
topic = "#{Octokit.web_endpoint}
|
31
|
+
topic = "#{Octokit.web_endpoint}#{Repository.new(repo)}/events/push"
|
32
32
|
callback = "github://#{service_name}"
|
33
33
|
unsubscribe(topic, callback)
|
34
34
|
true
|
data/lib/octokit/client/refs.rb
CHANGED
@@ -11,7 +11,7 @@ module Octokit
|
|
11
11
|
# @example Fetch all refs for sferik/rails_admin
|
12
12
|
# Octokit.refs("sferik/rails_admin")
|
13
13
|
def refs(repo, namespace="", options={})
|
14
|
-
get("
|
14
|
+
get("repos/#{Repository.new(repo)}/git/refs/#{namespace}", options, 3)
|
15
15
|
end
|
16
16
|
alias :list_refs :refs
|
17
17
|
alias :references :refs
|
@@ -26,7 +26,7 @@ module Octokit
|
|
26
26
|
# @example Fetch tags/v0.0.3 for sferik/rails_admin
|
27
27
|
# Octokit.ref("sferik/rails_admin","tags/v0.0.3")
|
28
28
|
def ref(repo, ref, options={})
|
29
|
-
get("
|
29
|
+
get("repos/#{Repository.new(repo)}/git/refs/#{ref}", options, 3)
|
30
30
|
end
|
31
31
|
alias :reference :ref
|
32
32
|
|
@@ -76,7 +76,7 @@ module Octokit
|
|
76
76
|
# @example Delete tags/v0.0.3 for sferik/rails_admin
|
77
77
|
# Octokit.delete_ref("sferik/rails_admin","tags/v0.0.3")
|
78
78
|
def delete_ref(repo, ref, options={})
|
79
|
-
delete("
|
79
|
+
delete("repos/#{Repository.new(repo)}/git/refs/#{ref}", options, 3, true, true)
|
80
80
|
end
|
81
81
|
alias :delete_reference :delete_ref
|
82
82
|
|
@@ -2,17 +2,17 @@ module Octokit
|
|
2
2
|
class Client
|
3
3
|
module Repositories
|
4
4
|
def search_repositories(q, options={})
|
5
|
-
get("
|
5
|
+
get("legacy/repos/search/#{q}", options, 3)['repositories']
|
6
6
|
end
|
7
7
|
alias :search_repos :search_repositories
|
8
8
|
|
9
9
|
def repository(repo, options={})
|
10
|
-
get "
|
10
|
+
get "repos/#{Repository.new repo}", options, 3
|
11
11
|
end
|
12
12
|
alias :repo :repository
|
13
13
|
|
14
14
|
def edit_repository(repo, options={})
|
15
|
-
patch "
|
15
|
+
patch "repos/#{Repository.new repo}", options, 3
|
16
16
|
end
|
17
17
|
alias :edit :edit_repository
|
18
18
|
alias :update_repository :edit_repository
|
@@ -20,9 +20,9 @@ module Octokit
|
|
20
20
|
|
21
21
|
def repositories(username=nil, options={})
|
22
22
|
if username.nil?
|
23
|
-
get '
|
23
|
+
get 'user/repos', options, 3
|
24
24
|
else
|
25
|
-
get "
|
25
|
+
get "users/#{username}/repos", options, 3
|
26
26
|
end
|
27
27
|
end
|
28
28
|
alias :list_repositories :repositories
|
@@ -30,15 +30,15 @@ module Octokit
|
|
30
30
|
alias :repos :repositories
|
31
31
|
|
32
32
|
def watch(repo, options={})
|
33
|
-
put "
|
33
|
+
put "user/watched/#{Repository.new repo}", options, 3
|
34
34
|
end
|
35
35
|
|
36
36
|
def unwatch(repo, options={})
|
37
|
-
delete "
|
37
|
+
delete "user/watched/#{Repository.new repo}", options, 3
|
38
38
|
end
|
39
39
|
|
40
40
|
def fork(repo, options={})
|
41
|
-
post "
|
41
|
+
post "repos/#{Repository.new repo}/forks", options, 3
|
42
42
|
end
|
43
43
|
|
44
44
|
def create_repository(name, options={})
|
@@ -46,16 +46,16 @@ module Octokit
|
|
46
46
|
options.merge! :name => name
|
47
47
|
|
48
48
|
if organization.nil?
|
49
|
-
post '
|
49
|
+
post 'user/repos', options, 3
|
50
50
|
else
|
51
|
-
post "
|
51
|
+
post "orgs/#{organization}/repos", options, 3
|
52
52
|
end
|
53
53
|
end
|
54
54
|
alias :create_repo :create_repository
|
55
55
|
alias :create :create_repository
|
56
56
|
|
57
57
|
def delete_repository(repo, options={})
|
58
|
-
delete "
|
58
|
+
delete "repos/#{Repository.new repo}", options, 3
|
59
59
|
end
|
60
60
|
alias :delete_repo :delete_repository
|
61
61
|
|
@@ -70,102 +70,102 @@ module Octokit
|
|
70
70
|
end
|
71
71
|
|
72
72
|
def deploy_keys(repo, options={})
|
73
|
-
get "
|
73
|
+
get "repos/#{Repository.new repo}/keys", options, 3
|
74
74
|
end
|
75
75
|
alias :list_deploy_keys :deploy_keys
|
76
76
|
|
77
77
|
def add_deploy_key(repo, title, key, options={})
|
78
|
-
post "
|
78
|
+
post "repos/#{Repository.new repo}/keys", options.merge(:title => title, :key => key), 3
|
79
79
|
end
|
80
80
|
|
81
81
|
def remove_deploy_key(repo, id, options={})
|
82
|
-
delete "
|
82
|
+
delete "repos/#{Repository.new repo}/keys/#{id}", options, 3
|
83
83
|
end
|
84
84
|
|
85
85
|
def collaborators(repo, options={})
|
86
|
-
get "
|
86
|
+
get "repos/#{Repository.new repo}/collaborators", options, 3
|
87
87
|
end
|
88
88
|
alias :collabs :collaborators
|
89
89
|
|
90
90
|
def add_collaborator(repo, collaborator, options={})
|
91
|
-
put "
|
91
|
+
put "repos/#{Repository.new repo}/collaborators/#{collaborator}", options, 3
|
92
92
|
end
|
93
93
|
alias :add_collab :add_collaborator
|
94
94
|
|
95
95
|
def remove_collaborator(repo, collaborator, options={})
|
96
|
-
delete "
|
96
|
+
delete "repos/#{Repository.new repo}/collaborators/#{collaborator}", options, 3
|
97
97
|
end
|
98
98
|
alias :remove_collab :remove_collaborator
|
99
99
|
|
100
100
|
def repository_teams(repo, options={})
|
101
|
-
get "
|
101
|
+
get "repos/#{Repository.new repo}/teams", options, 3
|
102
102
|
end
|
103
103
|
alias :repo_teams :repository_teams
|
104
104
|
alias :teams :repository_teams
|
105
105
|
|
106
106
|
def contributors(repo, anon=false, options={})
|
107
|
-
get "
|
107
|
+
get "repos/#{Repository.new repo}/contributors", options.merge(:anon => anon), 3
|
108
108
|
end
|
109
109
|
alias :contribs :contributors
|
110
110
|
|
111
111
|
def watchers(repo, options={})
|
112
|
-
get "
|
112
|
+
get "repos/#{Repository.new repo}/watchers", options, 3
|
113
113
|
end
|
114
114
|
|
115
115
|
def forks(repo, options={})
|
116
|
-
get "
|
116
|
+
get "repos/#{Repository.new repo}/forks", options, 3
|
117
117
|
end
|
118
118
|
alias :network :forks
|
119
119
|
|
120
120
|
def languages(repo, options={})
|
121
|
-
get "
|
121
|
+
get "repos/#{Repository.new repo}/languages", options, 3
|
122
122
|
end
|
123
123
|
|
124
124
|
def tags(repo, options={})
|
125
|
-
get "
|
125
|
+
get "repos/#{Repository.new repo}/tags", options, 3
|
126
126
|
end
|
127
127
|
|
128
128
|
def branches(repo, options={})
|
129
|
-
get "
|
129
|
+
get "repos/#{Repository.new repo}/branches", options, 3
|
130
130
|
end
|
131
131
|
|
132
132
|
# Get a single branch from a repository
|
133
133
|
#
|
134
134
|
# @param repo [String, Repository, Hash] A GitHub repository
|
135
|
-
# @param branch [String] Branch name
|
135
|
+
# @param branch [String] Branch name
|
136
136
|
# @return [Branch] The branch requested, if it exists
|
137
137
|
# @see http://developer.github.com/v3/repos/#get-branch
|
138
138
|
# @example Get branch 'master` from pengwynn/octokit
|
139
139
|
# Octokit.issue("pengwynn/octokit", "master")
|
140
140
|
def branch(repo, branch, options={})
|
141
|
-
get "
|
141
|
+
get "repos/#{Repository.new repo}/branches/#{branch}", options, 3
|
142
142
|
end
|
143
|
-
alias :get_branch :branch
|
143
|
+
alias :get_branch :branch
|
144
144
|
|
145
145
|
def hooks(repo, options={})
|
146
|
-
get "
|
146
|
+
get "repos/#{Repository.new repo}/hooks", options, 3
|
147
147
|
end
|
148
148
|
|
149
149
|
def hook(repo, id, options={})
|
150
|
-
get "
|
150
|
+
get "repos/#{Repository.new repo}/hooks/#{id}", options, 3
|
151
151
|
end
|
152
152
|
|
153
153
|
def create_hook(repo, name, config, options={})
|
154
154
|
options = {:name => name, :config => config, :events => ["push"], :active => true}.merge(options)
|
155
|
-
post "
|
155
|
+
post "repos/#{Repository.new repo}/hooks", options, 3
|
156
156
|
end
|
157
157
|
|
158
158
|
def edit_hook(repo, id, name, config, options={})
|
159
159
|
options = {:name => name, :config => config, :events => ["push"], :active => true}.merge(options)
|
160
|
-
patch "
|
160
|
+
patch "repos/#{Repository.new repo}/hooks/#{id}", options, 3
|
161
161
|
end
|
162
162
|
|
163
163
|
def remove_hook(repo, id, options={})
|
164
|
-
delete "
|
164
|
+
delete "repos/#{Repository.new repo}/hooks/#{id}", options, 3
|
165
165
|
end
|
166
166
|
|
167
167
|
def test_hook(repo, id, options={})
|
168
|
-
post "
|
168
|
+
post "repos/#{Repository.new repo}/hooks/#{id}/test", options, 3
|
169
169
|
end
|
170
170
|
|
171
171
|
# Get all Issue Events for a given Repository
|
@@ -177,7 +177,7 @@ module Octokit
|
|
177
177
|
# @example Get all Issue Events for Octokit
|
178
178
|
# Octokit.repository_issue_events("pengwynn/octokit")
|
179
179
|
def repository_issue_events(repo, options={})
|
180
|
-
get "
|
180
|
+
get "repos/#{Repository.new repo}/issues/events", options, 3
|
181
181
|
end
|
182
182
|
alias :repo_issue_events :repository_issue_events
|
183
183
|
|
data/lib/octokit/client/users.rb
CHANGED
@@ -3,7 +3,7 @@ module Octokit
|
|
3
3
|
module Users
|
4
4
|
|
5
5
|
def search_users(search, options={})
|
6
|
-
get("
|
6
|
+
get("legacy/user/search/#{search}", options, 3)['users']
|
7
7
|
end
|
8
8
|
|
9
9
|
# Get a single user
|
@@ -14,9 +14,9 @@ module Octokit
|
|
14
14
|
# Octokit.user("sferik")
|
15
15
|
def user(user=nil)
|
16
16
|
if user
|
17
|
-
get("
|
17
|
+
get("users/#{user}", {}, 3)
|
18
18
|
else
|
19
|
-
get("
|
19
|
+
get("user", {}, 3)
|
20
20
|
end
|
21
21
|
end
|
22
22
|
|
@@ -34,15 +34,15 @@ module Octokit
|
|
34
34
|
# @example
|
35
35
|
# Octokit.user(:name => "Erik Michaels-Ober", :email => "sferik@gmail.com", :company => "Code for America", :location => "San Francisco", :hireable => false)
|
36
36
|
def update_user(options)
|
37
|
-
patch("
|
37
|
+
patch("user", options, 3)
|
38
38
|
end
|
39
39
|
|
40
40
|
def followers(user=login, options={})
|
41
|
-
get("
|
41
|
+
get("users/#{user}/followers", options, 3)
|
42
42
|
end
|
43
43
|
|
44
44
|
def following(user=login, options={})
|
45
|
-
get("
|
45
|
+
get("users/#{user}/following", options, 3)
|
46
46
|
end
|
47
47
|
|
48
48
|
def follows?(*args)
|
@@ -50,47 +50,47 @@ module Octokit
|
|
50
50
|
user = args.first
|
51
51
|
user ||= login
|
52
52
|
return if user.nil?
|
53
|
-
get("
|
53
|
+
get("user/following/#{target}", {}, 3, true, raw=true).status == 204
|
54
54
|
rescue Octokit::NotFound
|
55
55
|
false
|
56
56
|
end
|
57
57
|
|
58
58
|
def follow(user, options={})
|
59
|
-
put("
|
59
|
+
put("user/following/#{user}", options, 3, true, raw=true).status == 204
|
60
60
|
end
|
61
61
|
|
62
62
|
def unfollow(user, options={})
|
63
|
-
delete("
|
63
|
+
delete("user/following/#{user}", options, 3, true, raw=true).status == 204
|
64
64
|
end
|
65
65
|
|
66
66
|
def watched(user=login, options={})
|
67
|
-
get("
|
67
|
+
get("users/#{user}/watched", options, 3)
|
68
68
|
end
|
69
69
|
|
70
70
|
# Not yet supported: get a single key, update an existing key
|
71
71
|
|
72
72
|
def keys(options={})
|
73
|
-
get("
|
73
|
+
get("user/keys", options, 3)
|
74
74
|
end
|
75
75
|
|
76
76
|
def add_key(title, key, options={})
|
77
|
-
post("
|
77
|
+
post("user/keys", options.merge({:title => title, :key => key}), 3)
|
78
78
|
end
|
79
79
|
|
80
80
|
def remove_key(id, options={})
|
81
|
-
delete("
|
81
|
+
delete("user/keys/#{id}", options, 3, true, raw=true)
|
82
82
|
end
|
83
83
|
|
84
84
|
def emails(options={})
|
85
|
-
get("
|
85
|
+
get("user/emails", options, 3)
|
86
86
|
end
|
87
87
|
|
88
88
|
def add_email(email, options={})
|
89
|
-
post("
|
89
|
+
post("user/emails", options.merge({:email => email}), 3)
|
90
90
|
end
|
91
91
|
|
92
92
|
def remove_email(email, options={})
|
93
|
-
delete("
|
93
|
+
delete("user/emails", options.merge({:email => email}), 3, true, raw=true).status == 204
|
94
94
|
end
|
95
95
|
end
|
96
96
|
end
|
@@ -18,8 +18,8 @@ module Octokit
|
|
18
18
|
|
19
19
|
DEFAULT_ADAPTER = Faraday.default_adapter
|
20
20
|
DEFAULT_API_VERSION = 3
|
21
|
-
DEFAULT_API_ENDPOINT = 'https://api.github.com'
|
22
|
-
DEFAULT_WEB_ENDPOINT = 'https://github.com'
|
21
|
+
DEFAULT_API_ENDPOINT = 'https://api.github.com/'
|
22
|
+
DEFAULT_WEB_ENDPOINT = 'https://github.com/'
|
23
23
|
DEFAULT_USER_AGENT = "Octokit Ruby Gem #{Octokit::VERSION}".freeze
|
24
24
|
DEFAULT_AUTO_TRAVERSAL = false
|
25
25
|
|
@@ -37,6 +37,14 @@ module Octokit
|
|
37
37
|
VALID_OPTIONS_KEYS.inject({}){|o,k| o.merge!(k => send(k)) }
|
38
38
|
end
|
39
39
|
|
40
|
+
def api_endpoint=(value)
|
41
|
+
@api_endpoint = File.join(value, "")
|
42
|
+
end
|
43
|
+
|
44
|
+
def web_endpoint=(value)
|
45
|
+
@web_endpoint = File.join(value, "")
|
46
|
+
end
|
47
|
+
|
40
48
|
def reset
|
41
49
|
self.adapter = DEFAULT_ADAPTER
|
42
50
|
self.api_version = DEFAULT_API_VERSION
|
data/lib/octokit/repository.rb
CHANGED
data/lib/octokit/version.rb
CHANGED
data/spec/octokit/client_spec.rb
CHANGED
@@ -70,13 +70,13 @@ describe Octokit::Client do
|
|
70
70
|
|
71
71
|
it "should default to https://api.github.com" do
|
72
72
|
client = Octokit::Client.new
|
73
|
-
client.api_endpoint.should == 'https://api.github.com'
|
73
|
+
client.api_endpoint.should == 'https://api.github.com/'
|
74
74
|
end
|
75
75
|
|
76
76
|
it "should be set " do
|
77
77
|
Octokit.api_endpoint = 'http://foo.dev'
|
78
78
|
client = Octokit::Client.new
|
79
|
-
client.api_endpoint.should == 'http://foo.dev'
|
79
|
+
client.api_endpoint.should == 'http://foo.dev/'
|
80
80
|
end
|
81
81
|
end
|
82
82
|
|
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: 1.8.
|
4
|
+
version: 1.8.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,11 +11,11 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2012-06-
|
14
|
+
date: 2012-06-29 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: addressable
|
18
|
-
requirement: &
|
18
|
+
requirement: &70210721954980 !ruby/object:Gem::Requirement
|
19
19
|
none: false
|
20
20
|
requirements:
|
21
21
|
- - ~>
|
@@ -23,10 +23,10 @@ dependencies:
|
|
23
23
|
version: '2.2'
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
|
-
version_requirements: *
|
26
|
+
version_requirements: *70210721954980
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: faraday
|
29
|
-
requirement: &
|
29
|
+
requirement: &70210721954100 !ruby/object:Gem::Requirement
|
30
30
|
none: false
|
31
31
|
requirements:
|
32
32
|
- - ~>
|
@@ -34,10 +34,10 @@ dependencies:
|
|
34
34
|
version: '0.8'
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
|
-
version_requirements: *
|
37
|
+
version_requirements: *70210721954100
|
38
38
|
- !ruby/object:Gem::Dependency
|
39
39
|
name: faraday_middleware
|
40
|
-
requirement: &
|
40
|
+
requirement: &70210721952980 !ruby/object:Gem::Requirement
|
41
41
|
none: false
|
42
42
|
requirements:
|
43
43
|
- - ~>
|
@@ -45,10 +45,10 @@ dependencies:
|
|
45
45
|
version: '0.8'
|
46
46
|
type: :runtime
|
47
47
|
prerelease: false
|
48
|
-
version_requirements: *
|
48
|
+
version_requirements: *70210721952980
|
49
49
|
- !ruby/object:Gem::Dependency
|
50
50
|
name: hashie
|
51
|
-
requirement: &
|
51
|
+
requirement: &70210721951360 !ruby/object:Gem::Requirement
|
52
52
|
none: false
|
53
53
|
requirements:
|
54
54
|
- - ~>
|
@@ -56,10 +56,10 @@ dependencies:
|
|
56
56
|
version: '1.2'
|
57
57
|
type: :runtime
|
58
58
|
prerelease: false
|
59
|
-
version_requirements: *
|
59
|
+
version_requirements: *70210721951360
|
60
60
|
- !ruby/object:Gem::Dependency
|
61
61
|
name: multi_json
|
62
|
-
requirement: &
|
62
|
+
requirement: &70210721950540 !ruby/object:Gem::Requirement
|
63
63
|
none: false
|
64
64
|
requirements:
|
65
65
|
- - ~>
|
@@ -67,10 +67,10 @@ dependencies:
|
|
67
67
|
version: '1.3'
|
68
68
|
type: :runtime
|
69
69
|
prerelease: false
|
70
|
-
version_requirements: *
|
70
|
+
version_requirements: *70210721950540
|
71
71
|
- !ruby/object:Gem::Dependency
|
72
72
|
name: json
|
73
|
-
requirement: &
|
73
|
+
requirement: &70210721950020 !ruby/object:Gem::Requirement
|
74
74
|
none: false
|
75
75
|
requirements:
|
76
76
|
- - ! '>='
|
@@ -78,10 +78,10 @@ dependencies:
|
|
78
78
|
version: '0'
|
79
79
|
type: :development
|
80
80
|
prerelease: false
|
81
|
-
version_requirements: *
|
81
|
+
version_requirements: *70210721950020
|
82
82
|
- !ruby/object:Gem::Dependency
|
83
83
|
name: maruku
|
84
|
-
requirement: &
|
84
|
+
requirement: &70210721948640 !ruby/object:Gem::Requirement
|
85
85
|
none: false
|
86
86
|
requirements:
|
87
87
|
- - ! '>='
|
@@ -89,10 +89,10 @@ dependencies:
|
|
89
89
|
version: '0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
|
-
version_requirements: *
|
92
|
+
version_requirements: *70210721948640
|
93
93
|
- !ruby/object:Gem::Dependency
|
94
94
|
name: rake
|
95
|
-
requirement: &
|
95
|
+
requirement: &70210721944680 !ruby/object:Gem::Requirement
|
96
96
|
none: false
|
97
97
|
requirements:
|
98
98
|
- - ! '>='
|
@@ -100,10 +100,10 @@ dependencies:
|
|
100
100
|
version: '0'
|
101
101
|
type: :development
|
102
102
|
prerelease: false
|
103
|
-
version_requirements: *
|
103
|
+
version_requirements: *70210721944680
|
104
104
|
- !ruby/object:Gem::Dependency
|
105
105
|
name: rspec
|
106
|
-
requirement: &
|
106
|
+
requirement: &70210721939880 !ruby/object:Gem::Requirement
|
107
107
|
none: false
|
108
108
|
requirements:
|
109
109
|
- - ! '>='
|
@@ -111,10 +111,10 @@ dependencies:
|
|
111
111
|
version: '0'
|
112
112
|
type: :development
|
113
113
|
prerelease: false
|
114
|
-
version_requirements: *
|
114
|
+
version_requirements: *70210721939880
|
115
115
|
- !ruby/object:Gem::Dependency
|
116
116
|
name: simplecov
|
117
|
-
requirement: &
|
117
|
+
requirement: &70210721937340 !ruby/object:Gem::Requirement
|
118
118
|
none: false
|
119
119
|
requirements:
|
120
120
|
- - ! '>='
|
@@ -122,10 +122,10 @@ dependencies:
|
|
122
122
|
version: '0'
|
123
123
|
type: :development
|
124
124
|
prerelease: false
|
125
|
-
version_requirements: *
|
125
|
+
version_requirements: *70210721937340
|
126
126
|
- !ruby/object:Gem::Dependency
|
127
127
|
name: webmock
|
128
|
-
requirement: &
|
128
|
+
requirement: &70210721935680 !ruby/object:Gem::Requirement
|
129
129
|
none: false
|
130
130
|
requirements:
|
131
131
|
- - ! '>='
|
@@ -133,10 +133,10 @@ dependencies:
|
|
133
133
|
version: '0'
|
134
134
|
type: :development
|
135
135
|
prerelease: false
|
136
|
-
version_requirements: *
|
136
|
+
version_requirements: *70210721935680
|
137
137
|
- !ruby/object:Gem::Dependency
|
138
138
|
name: yard
|
139
|
-
requirement: &
|
139
|
+
requirement: &70210721934980 !ruby/object:Gem::Requirement
|
140
140
|
none: false
|
141
141
|
requirements:
|
142
142
|
- - ! '>='
|
@@ -144,7 +144,7 @@ dependencies:
|
|
144
144
|
version: '0'
|
145
145
|
type: :development
|
146
146
|
prerelease: false
|
147
|
-
version_requirements: *
|
147
|
+
version_requirements: *70210721934980
|
148
148
|
description: Simple wrapper for the GitHub v3 API
|
149
149
|
email:
|
150
150
|
- wynn.netherland@gmail.com
|