github_api 0.14.0 → 0.14.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/lib/github_api.rb +1 -1
- data/lib/github_api/api.rb +20 -17
- data/lib/github_api/authorization.rb +5 -6
- data/lib/github_api/client/orgs.rb +1 -0
- data/lib/github_api/client/orgs/hooks.rb +180 -0
- data/lib/github_api/client/orgs/members.rb +3 -4
- data/lib/github_api/request/basic_auth.rb +18 -15
- data/lib/github_api/version.rb +1 -1
- metadata +45 -44
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b428d8782ec8d52580f70a96939c878db0cdf4ec
|
4
|
+
data.tar.gz: 578c3e1c036ec22952d056349972057d5518a48a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57cd89c6a9f21ffbbb1e036894de9ac9a43fb7d1eb33a9bee31e27c9b5c6a956b6d9591cf0a15fde0fcb219f730b8ab0608b867f4d7d18066ecff6e7d2c2bd9d
|
7
|
+
data.tar.gz: 606683bd7c29321ece30e435c84720d3d426f53c1116bb510c171f1683a3f48f7aebb4aeb3ff32e4ed86c4e003d3ce1025c314f9d82911ebcafd911c1b33c9dc
|
data/README.md
CHANGED
@@ -681,6 +681,10 @@ The `mock` tests are in the `spec` directory and their primary concern is to tes
|
|
681
681
|
|
682
682
|
Questions or problems? Please post them on the [issue tracker](https://github.com/piotrmurach/github/issues). You can contribute changes by forking the project and submitting a pull request. You can ensure the tests are passing by running `bundle` and `rake`.
|
683
683
|
|
684
|
+
## Contributing
|
685
|
+
|
686
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/piotrmurach/github. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
687
|
+
|
684
688
|
## Copyright
|
685
689
|
|
686
690
|
Copyright (c) 2011-2016 Piotr Murach. See LICENSE.txt for further details.
|
data/lib/github_api.rb
CHANGED
@@ -65,7 +65,6 @@ module Github
|
|
65
65
|
end
|
66
66
|
|
67
67
|
module ClassMethods
|
68
|
-
|
69
68
|
# Requires internal libraries
|
70
69
|
#
|
71
70
|
# @param [String] prefix
|
@@ -88,6 +87,7 @@ module Github
|
|
88
87
|
def configuration
|
89
88
|
@configuration ||= Configuration.new
|
90
89
|
end
|
90
|
+
alias_method :config, :configuration
|
91
91
|
|
92
92
|
# Configure options
|
93
93
|
#
|
data/lib/github_api/api.rb
CHANGED
@@ -17,6 +17,7 @@ module Github
|
|
17
17
|
# Core class responsible for api interface operations
|
18
18
|
class API
|
19
19
|
extend Github::ClassMethods
|
20
|
+
|
20
21
|
include Constants
|
21
22
|
include Authorization
|
22
23
|
include MimeType
|
@@ -43,36 +44,38 @@ module Github
|
|
43
44
|
#
|
44
45
|
# @api public
|
45
46
|
def initialize(options={}, &block)
|
46
|
-
|
47
|
+
opts = Github.configuration.fetch.merge(options)
|
48
|
+
@current_options = opts
|
49
|
+
|
50
|
+
Github.configuration.property_names.each do |key|
|
51
|
+
send("#{key}=", opts[key])
|
52
|
+
end
|
53
|
+
if opts.key?(:login) && !opts[:login].nil?
|
54
|
+
@login, @password = opts[:login], opts[:password]
|
55
|
+
elsif opts.key?(:basic_auth) && !opts[:basic_auth].nil?
|
56
|
+
@login, @password = extract_basic_auth(opts[:basic_auth])
|
57
|
+
end
|
58
|
+
|
47
59
|
yield_or_eval(&block) if block_given?
|
48
60
|
end
|
49
61
|
|
62
|
+
# Call block with argument
|
63
|
+
#
|
64
|
+
# @api private
|
50
65
|
def yield_or_eval(&block)
|
51
66
|
return unless block
|
52
67
|
block.arity > 0 ? yield(self) : self.instance_eval(&block)
|
53
68
|
end
|
54
69
|
|
55
|
-
# Configure options and process basic authorization
|
56
|
-
#
|
57
|
-
# @api private
|
58
|
-
def setup(options={})
|
59
|
-
options = Github.configuration.fetch.merge(options)
|
60
|
-
self.current_options = options
|
61
|
-
Github.configuration.property_names.each do |key|
|
62
|
-
send("#{key}=", options[key])
|
63
|
-
end
|
64
|
-
process_basic_auth(options[:basic_auth])
|
65
|
-
end
|
66
|
-
|
67
70
|
# Extract login and password from basic_auth parameter
|
68
71
|
#
|
69
|
-
|
72
|
+
# @api private
|
73
|
+
def extract_basic_auth(auth)
|
70
74
|
case auth
|
71
75
|
when String
|
72
|
-
|
76
|
+
auth.split(':', 2)
|
73
77
|
when Hash
|
74
|
-
|
75
|
-
self.password = auth[:password]
|
78
|
+
[auth[:login], auth[:password]]
|
76
79
|
end
|
77
80
|
end
|
78
81
|
|
@@ -56,13 +56,13 @@ module Github
|
|
56
56
|
end
|
57
57
|
|
58
58
|
# Select authentication parameters
|
59
|
+
#
|
60
|
+
# @api public
|
59
61
|
def authentication
|
60
|
-
if
|
61
|
-
{ :
|
62
|
-
elsif login? && password?
|
63
|
-
{ :login => login, :password => password }
|
62
|
+
if basic_authed?
|
63
|
+
{ login: login, password: password }
|
64
64
|
else
|
65
|
-
{
|
65
|
+
{}
|
66
66
|
end
|
67
67
|
end
|
68
68
|
|
@@ -71,6 +71,5 @@ module Github
|
|
71
71
|
def _verify_client # :nodoc:
|
72
72
|
raise ArgumentError, 'Need to provide client_id and client_secret' unless client_id? && client_secret?
|
73
73
|
end
|
74
|
-
|
75
74
|
end # Authorization
|
76
75
|
end # Github
|
@@ -0,0 +1,180 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
module Github
|
4
|
+
# The Organizations Hooks API manages the post-receive web and
|
5
|
+
# service hooks for an organization.
|
6
|
+
class Client::Orgs::Hooks < API
|
7
|
+
|
8
|
+
REQUIRED_PARAMS = %w( name config ).freeze # :nodoc:
|
9
|
+
|
10
|
+
# List organization hooks
|
11
|
+
#
|
12
|
+
# @see https://developer.github.com/v3/orgs/hooks/#list-hooks
|
13
|
+
#
|
14
|
+
# @example
|
15
|
+
# github = Github.new
|
16
|
+
# github.orgs.hooks.list 'org-name'
|
17
|
+
# github.orgs.hooks.list 'org-name' { |hook| ... }
|
18
|
+
#
|
19
|
+
# @api public
|
20
|
+
def list(*args)
|
21
|
+
arguments(args, required: [:org_name])
|
22
|
+
|
23
|
+
response = get_request("/orgs/#{arguments.org_name}/hooks", arguments.params)
|
24
|
+
return response unless block_given?
|
25
|
+
response.each { |el| yield el }
|
26
|
+
end
|
27
|
+
alias_method :all, :list
|
28
|
+
|
29
|
+
# Get a single hook
|
30
|
+
#
|
31
|
+
# @see https://developer.github.com/v3/orgs/hooks/#get-single-hook
|
32
|
+
#
|
33
|
+
# @example
|
34
|
+
# github = Github.new
|
35
|
+
# github.orgs.hooks.get 'org-name', 'hook-id'
|
36
|
+
#
|
37
|
+
# @api public
|
38
|
+
def get(*args)
|
39
|
+
arguments(args, required: [:org_name, :id])
|
40
|
+
|
41
|
+
get_request("/orgs/#{arguments.org_name}/hooks/#{arguments.id}",
|
42
|
+
arguments.params)
|
43
|
+
end
|
44
|
+
alias_method :find, :get
|
45
|
+
|
46
|
+
# Create a hook
|
47
|
+
#
|
48
|
+
# @see https://developer.github.com/v3/orgs/hooks/#create-a-hook
|
49
|
+
#
|
50
|
+
# @param [Hash] params
|
51
|
+
# @input params [String] :name
|
52
|
+
# Required. The name of the service that is being called.
|
53
|
+
# @input params [Hash] :config
|
54
|
+
# Required. Key/value pairs to provide settings for this hook.
|
55
|
+
# These settings vary between the services and are defined in
|
56
|
+
# the github-services repository. Booleans are stored internally
|
57
|
+
# as "1" for true, and "0" for false. Any JSON true/false values
|
58
|
+
# will be converted automatically.
|
59
|
+
# @input params [Array] :events
|
60
|
+
# Determines what events the hook is triggered for. Default: ["push"]
|
61
|
+
# @input params [Boolean] :active
|
62
|
+
# Determines whether the hook is actually triggered on pushes.
|
63
|
+
#
|
64
|
+
# To create a webhook, the following fields are required by the config:
|
65
|
+
#
|
66
|
+
# @input config [String] :url
|
67
|
+
# A required string defining the URL to which the payloads
|
68
|
+
# will be delivered.
|
69
|
+
# @input config [String] :content_type
|
70
|
+
# An optional string defining the media type used to serialize
|
71
|
+
# the payloads. Supported values include json and form.
|
72
|
+
# The default is form.
|
73
|
+
# @input config [String] :secret
|
74
|
+
# An optional string that’s passed with the HTTP requests as
|
75
|
+
# an X-Hub-Signature header. The value of this header is
|
76
|
+
# computed as the HMAC hex digest of the body,
|
77
|
+
# using the secret as the key.
|
78
|
+
# @input config [String] :insecure_ssl
|
79
|
+
# An optional string that determines whether the SSL certificate
|
80
|
+
# of the host for url will be verified when delivering payloads.
|
81
|
+
# Supported values include "0" (verification is performed) and
|
82
|
+
# "1" (verification is not performed). The default is "0".or instance, if the library doesn't get updated to permit a given parameter the api call won't work, however if we skip permission all together, the endpoint should always work provided the actual resource path doesn't change. I'm in the process of completely removing the permit functionality.
|
83
|
+
#
|
84
|
+
# @example
|
85
|
+
# github = Github.new
|
86
|
+
# github.orgs.hooks.create 'org-name',
|
87
|
+
# name: "web",
|
88
|
+
# active: true,
|
89
|
+
# config: {
|
90
|
+
# url: "http://something.com/webhook"
|
91
|
+
# }
|
92
|
+
# }
|
93
|
+
#
|
94
|
+
# @api public
|
95
|
+
def create(*args)
|
96
|
+
arguments(args, required: [:org_name]) do
|
97
|
+
assert_required REQUIRED_PARAMS
|
98
|
+
end
|
99
|
+
|
100
|
+
post_request("/orgs/#{arguments.org_name}/hooks", arguments.params)
|
101
|
+
end
|
102
|
+
|
103
|
+
# Edit a hook
|
104
|
+
#
|
105
|
+
# @see https://developer.github.com/v3/orgs/hooks/#edit-a-hook
|
106
|
+
#
|
107
|
+
# @param [Hash] params
|
108
|
+
# @input params [Hash] :config
|
109
|
+
# Required. Key/value pairs to provide settings for this hook.
|
110
|
+
# These settings vary between the services and are defined in
|
111
|
+
# the github-services repository. Booleans are stored internally
|
112
|
+
# as "1" for true, and "0" for false. Any JSON true/false values
|
113
|
+
# will be converted automatically.
|
114
|
+
# @input params [Array] :events
|
115
|
+
# Determines what events the hook is triggered for. Default: ["push"]
|
116
|
+
# @input params [Array] :add_events
|
117
|
+
# Determines a list of events to be added to the list of events
|
118
|
+
# that the Hook triggers for.
|
119
|
+
# @input params [Array] :remove_events
|
120
|
+
# Determines a list of events to be removed from the list of
|
121
|
+
# events that the Hook triggers for.
|
122
|
+
# @input params [Boolean] :active
|
123
|
+
# Determines whether the hook is actually triggered on pushes.
|
124
|
+
#
|
125
|
+
# @example
|
126
|
+
# github = Github.new
|
127
|
+
# github.orgs.hooks.edit 'org-name', 'hook-id',
|
128
|
+
# "name" => "campfire",
|
129
|
+
# "active" => true,
|
130
|
+
# "config" => {
|
131
|
+
# "subdomain" => "github",
|
132
|
+
# "room" => "Commits",
|
133
|
+
# "token" => "abc123"
|
134
|
+
# }
|
135
|
+
#
|
136
|
+
# @api public
|
137
|
+
def edit(*args)
|
138
|
+
arguments(args, required: [:org_name, :id]) do
|
139
|
+
assert_required REQUIRED_PARAMS
|
140
|
+
end
|
141
|
+
|
142
|
+
patch_request("/orgs/#{arguments.org_name}/hooks/#{arguments.id}",
|
143
|
+
arguments.params)
|
144
|
+
end
|
145
|
+
|
146
|
+
# Ping a hook
|
147
|
+
#
|
148
|
+
# This will trigger a ping event to be sent to the hook.
|
149
|
+
#
|
150
|
+
# @see https://developer.github.com/v3/orgs/hooks/#ping-a-hook
|
151
|
+
#
|
152
|
+
# @example
|
153
|
+
# github = Github.new
|
154
|
+
# github.orgs.hooks.ping 'org-name', 'hook-id'
|
155
|
+
#
|
156
|
+
# @api public
|
157
|
+
def ping(*args)
|
158
|
+
arguments(args, required: [:org_name, :id])
|
159
|
+
|
160
|
+
post_request("/orgs/#{arguments.org_name}/hooks/#{arguments.id}/pings",
|
161
|
+
arguments.params)
|
162
|
+
end
|
163
|
+
|
164
|
+
# Delete a hook
|
165
|
+
#
|
166
|
+
# @see https://developer.github.com/v3/orgs/hooks/#delete-a-hook
|
167
|
+
#
|
168
|
+
# @example
|
169
|
+
# github = Github.new
|
170
|
+
# github.orgs.hooks.delete 'org-name', 'hook-id'
|
171
|
+
#
|
172
|
+
# @api public
|
173
|
+
def delete(*args)
|
174
|
+
arguments(args, required: [:org_name, :id])
|
175
|
+
|
176
|
+
delete_request("/orgs/#{arguments.org_name}/hooks/#{arguments.id}",
|
177
|
+
arguments.params)
|
178
|
+
end
|
179
|
+
end # Client::Orgs::Hooks
|
180
|
+
end # Github
|
@@ -83,12 +83,11 @@ module Github
|
|
83
83
|
response.status == 204
|
84
84
|
rescue Github::Error::NotFound
|
85
85
|
false
|
86
|
-
|
87
86
|
end
|
88
87
|
# Remove a member
|
89
88
|
#
|
90
89
|
# Removing a user from this list will remove them from all teams and
|
91
|
-
# they will no longer have any access to the organization
|
90
|
+
# they will no longer have any access to the organization's repositories.
|
92
91
|
#
|
93
92
|
# @see https://developer.github.com/v3/orgs/members/#remove-a-member
|
94
93
|
#
|
@@ -119,8 +118,8 @@ module Github
|
|
119
118
|
|
120
119
|
put_request("/orgs/#{arguments.org_name}/public_members/#{arguments.user}", arguments.params)
|
121
120
|
end
|
122
|
-
|
123
|
-
|
121
|
+
alias_method :make_public, :publicize
|
122
|
+
alias_method :publicize_membership, :publicize
|
124
123
|
|
125
124
|
# Conceal a user's membership
|
126
125
|
#
|
@@ -8,25 +8,28 @@ module Github
|
|
8
8
|
class BasicAuth < Faraday::Middleware
|
9
9
|
dependency 'base64'
|
10
10
|
|
11
|
-
|
12
|
-
unless @auth.to_s.empty?
|
13
|
-
env[:request_headers].merge!('Authorization' => "Basic #{@auth}\"")
|
14
|
-
end
|
15
|
-
|
16
|
-
@app.call env
|
17
|
-
end
|
18
|
-
|
11
|
+
# @api private
|
19
12
|
def initialize(app, *args)
|
20
|
-
@app
|
21
|
-
|
13
|
+
@app = app
|
14
|
+
@auth = nil
|
22
15
|
options = args.extract_options!
|
23
|
-
|
16
|
+
|
17
|
+
if options.key?(:login) && !options[:login].nil?
|
24
18
|
credentials = "#{options[:login]}:#{options[:password]}"
|
25
|
-
|
26
|
-
|
19
|
+
@auth = Base64.encode64(credentials)
|
20
|
+
@auth.gsub!("\n", "")
|
27
21
|
end
|
28
|
-
|
29
|
-
|
22
|
+
end
|
23
|
+
|
24
|
+
# Update request headers
|
25
|
+
#
|
26
|
+
# @api private
|
27
|
+
def call(env)
|
28
|
+
if @auth
|
29
|
+
env[:request_headers].merge!('Authorization' => "Basic #{@auth}\"")
|
30
|
+
end
|
31
|
+
|
32
|
+
@app.call(env)
|
30
33
|
end
|
31
34
|
end # BasicAuth
|
32
35
|
end # Request
|
data/lib/github_api/version.rb
CHANGED
metadata
CHANGED
@@ -1,123 +1,123 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: github_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.14.
|
4
|
+
version: 0.14.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Piotr Murach
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-06-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 2.4.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 2.4.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: hashie
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '3.4'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '3.4'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: faraday
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0.8'
|
48
|
-
- - <
|
48
|
+
- - "<"
|
49
49
|
- !ruby/object:Gem::Version
|
50
50
|
version: '0.10'
|
51
51
|
type: :runtime
|
52
52
|
prerelease: false
|
53
53
|
version_requirements: !ruby/object:Gem::Requirement
|
54
54
|
requirements:
|
55
|
-
- - ~>
|
55
|
+
- - "~>"
|
56
56
|
- !ruby/object:Gem::Version
|
57
57
|
version: '0.8'
|
58
|
-
- - <
|
58
|
+
- - "<"
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: '0.10'
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: oauth2
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
|
-
- -
|
65
|
+
- - ">="
|
66
66
|
- !ruby/object:Gem::Version
|
67
67
|
version: '0'
|
68
68
|
type: :runtime
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
|
-
- -
|
72
|
+
- - ">="
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: '0'
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: descendants_tracker
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
|
-
- - ~>
|
79
|
+
- - "~>"
|
80
80
|
- !ruby/object:Gem::Version
|
81
81
|
version: 0.0.4
|
82
82
|
type: :runtime
|
83
83
|
prerelease: false
|
84
84
|
version_requirements: !ruby/object:Gem::Requirement
|
85
85
|
requirements:
|
86
|
-
- - ~>
|
86
|
+
- - "~>"
|
87
87
|
- !ruby/object:Gem::Version
|
88
88
|
version: 0.0.4
|
89
89
|
- !ruby/object:Gem::Dependency
|
90
90
|
name: bundler
|
91
91
|
requirement: !ruby/object:Gem::Requirement
|
92
92
|
requirements:
|
93
|
-
- -
|
93
|
+
- - ">="
|
94
94
|
- !ruby/object:Gem::Version
|
95
95
|
version: '0'
|
96
96
|
type: :development
|
97
97
|
prerelease: false
|
98
98
|
version_requirements: !ruby/object:Gem::Requirement
|
99
99
|
requirements:
|
100
|
-
- -
|
100
|
+
- - ">="
|
101
101
|
- !ruby/object:Gem::Version
|
102
102
|
version: '0'
|
103
103
|
- !ruby/object:Gem::Dependency
|
104
104
|
name: rake
|
105
105
|
requirement: !ruby/object:Gem::Requirement
|
106
106
|
requirements:
|
107
|
-
- -
|
107
|
+
- - ">="
|
108
108
|
- !ruby/object:Gem::Version
|
109
109
|
version: '0'
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
112
|
version_requirements: !ruby/object:Gem::Requirement
|
113
113
|
requirements:
|
114
|
-
- -
|
114
|
+
- - ">="
|
115
115
|
- !ruby/object:Gem::Version
|
116
116
|
version: '0'
|
117
|
-
description:
|
117
|
+
description: " Ruby client that supports all of the GitHub API methods. It's build
|
118
118
|
in a modular way, that is, you can either instantiate the whole api wrapper Github.new
|
119
119
|
or use parts of it e.i. Github::Client::Repos.new if working solely with repositories
|
120
|
-
is your main concern. Intuitive query methods allow you easily call API endpoints.
|
120
|
+
is your main concern. Intuitive query methods allow you easily call API endpoints. "
|
121
121
|
email: ''
|
122
122
|
executables: []
|
123
123
|
extensions: []
|
@@ -125,46 +125,52 @@ extra_rdoc_files:
|
|
125
125
|
- LICENSE.txt
|
126
126
|
- README.md
|
127
127
|
files:
|
128
|
+
- LICENSE.txt
|
129
|
+
- README.md
|
130
|
+
- lib/github_api.rb
|
131
|
+
- lib/github_api/api.rb
|
128
132
|
- lib/github_api/api/actions.rb
|
129
133
|
- lib/github_api/api/arguments.rb
|
134
|
+
- lib/github_api/api/config.rb
|
130
135
|
- lib/github_api/api/config/property.rb
|
131
136
|
- lib/github_api/api/config/property_set.rb
|
132
|
-
- lib/github_api/api/config.rb
|
133
137
|
- lib/github_api/api/factory.rb
|
134
|
-
- lib/github_api/api.rb
|
135
138
|
- lib/github_api/authorization.rb
|
139
|
+
- lib/github_api/client.rb
|
140
|
+
- lib/github_api/client/activity.rb
|
136
141
|
- lib/github_api/client/activity/events.rb
|
137
142
|
- lib/github_api/client/activity/feeds.rb
|
138
143
|
- lib/github_api/client/activity/notifications.rb
|
139
144
|
- lib/github_api/client/activity/starring.rb
|
140
145
|
- lib/github_api/client/activity/watching.rb
|
141
|
-
- lib/github_api/client/activity.rb
|
142
|
-
- lib/github_api/client/authorizations/app.rb
|
143
146
|
- lib/github_api/client/authorizations.rb
|
147
|
+
- lib/github_api/client/authorizations/app.rb
|
144
148
|
- lib/github_api/client/emojis.rb
|
145
|
-
- lib/github_api/client/gists/comments.rb
|
146
149
|
- lib/github_api/client/gists.rb
|
150
|
+
- lib/github_api/client/gists/comments.rb
|
151
|
+
- lib/github_api/client/git_data.rb
|
147
152
|
- lib/github_api/client/git_data/blobs.rb
|
148
153
|
- lib/github_api/client/git_data/commits.rb
|
149
154
|
- lib/github_api/client/git_data/references.rb
|
150
155
|
- lib/github_api/client/git_data/tags.rb
|
151
156
|
- lib/github_api/client/git_data/trees.rb
|
152
|
-
- lib/github_api/client/git_data.rb
|
153
157
|
- lib/github_api/client/gitignore.rb
|
158
|
+
- lib/github_api/client/issues.rb
|
154
159
|
- lib/github_api/client/issues/assignees.rb
|
155
160
|
- lib/github_api/client/issues/comments.rb
|
156
161
|
- lib/github_api/client/issues/events.rb
|
157
162
|
- lib/github_api/client/issues/labels.rb
|
158
163
|
- lib/github_api/client/issues/milestones.rb
|
159
|
-
- lib/github_api/client/issues.rb
|
160
164
|
- lib/github_api/client/markdown.rb
|
161
165
|
- lib/github_api/client/meta.rb
|
166
|
+
- lib/github_api/client/orgs.rb
|
167
|
+
- lib/github_api/client/orgs/hooks.rb
|
162
168
|
- lib/github_api/client/orgs/members.rb
|
163
169
|
- lib/github_api/client/orgs/memberships.rb
|
164
170
|
- lib/github_api/client/orgs/teams.rb
|
165
|
-
- lib/github_api/client/orgs.rb
|
166
|
-
- lib/github_api/client/pull_requests/comments.rb
|
167
171
|
- lib/github_api/client/pull_requests.rb
|
172
|
+
- lib/github_api/client/pull_requests/comments.rb
|
173
|
+
- lib/github_api/client/repos.rb
|
168
174
|
- lib/github_api/client/repos/collaborators.rb
|
169
175
|
- lib/github_api/client/repos/comments.rb
|
170
176
|
- lib/github_api/client/repos/commits.rb
|
@@ -177,21 +183,19 @@ files:
|
|
177
183
|
- lib/github_api/client/repos/merging.rb
|
178
184
|
- lib/github_api/client/repos/pages.rb
|
179
185
|
- lib/github_api/client/repos/pub_sub_hubbub.rb
|
186
|
+
- lib/github_api/client/repos/releases.rb
|
180
187
|
- lib/github_api/client/repos/releases/assets.rb
|
181
188
|
- lib/github_api/client/repos/releases/tags.rb
|
182
|
-
- lib/github_api/client/repos/releases.rb
|
183
189
|
- lib/github_api/client/repos/statistics.rb
|
184
190
|
- lib/github_api/client/repos/statuses.rb
|
185
|
-
- lib/github_api/client/repos.rb
|
186
191
|
- lib/github_api/client/say.rb
|
187
192
|
- lib/github_api/client/scopes.rb
|
188
|
-
- lib/github_api/client/search/legacy.rb
|
189
193
|
- lib/github_api/client/search.rb
|
194
|
+
- lib/github_api/client/search/legacy.rb
|
195
|
+
- lib/github_api/client/users.rb
|
190
196
|
- lib/github_api/client/users/emails.rb
|
191
197
|
- lib/github_api/client/users/followers.rb
|
192
198
|
- lib/github_api/client/users/keys.rb
|
193
|
-
- lib/github_api/client/users.rb
|
194
|
-
- lib/github_api/client.rb
|
195
199
|
- lib/github_api/configuration.rb
|
196
200
|
- lib/github_api/connection.rb
|
197
201
|
- lib/github_api/constants.rb
|
@@ -199,6 +203,7 @@ files:
|
|
199
203
|
- lib/github_api/core_ext/hash.rb
|
200
204
|
- lib/github_api/core_ext/ordered_hash.rb
|
201
205
|
- lib/github_api/deprecation.rb
|
206
|
+
- lib/github_api/error.rb
|
202
207
|
- lib/github_api/error/bad_request.rb
|
203
208
|
- lib/github_api/error/client_error.rb
|
204
209
|
- lib/github_api/error/forbidden.rb
|
@@ -214,7 +219,6 @@ files:
|
|
214
219
|
- lib/github_api/error/unknown_value.rb
|
215
220
|
- lib/github_api/error/unprocessable_entity.rb
|
216
221
|
- lib/github_api/error/validations.rb
|
217
|
-
- lib/github_api/error.rb
|
218
222
|
- lib/github_api/ext/faraday.rb
|
219
223
|
- lib/github_api/middleware.rb
|
220
224
|
- lib/github_api/mime_type.rb
|
@@ -227,32 +231,29 @@ files:
|
|
227
231
|
- lib/github_api/parameter_filter.rb
|
228
232
|
- lib/github_api/params_hash.rb
|
229
233
|
- lib/github_api/rate_limit.rb
|
234
|
+
- lib/github_api/request.rb
|
230
235
|
- lib/github_api/request/basic_auth.rb
|
231
236
|
- lib/github_api/request/jsonize.rb
|
232
237
|
- lib/github_api/request/oauth2.rb
|
233
238
|
- lib/github_api/request/verbs.rb
|
234
|
-
- lib/github_api/request.rb
|
235
239
|
- lib/github_api/requestable.rb
|
236
240
|
- lib/github_api/resource.rb
|
241
|
+
- lib/github_api/response.rb
|
237
242
|
- lib/github_api/response/atom_parser.rb
|
238
243
|
- lib/github_api/response/header.rb
|
239
244
|
- lib/github_api/response/jsonize.rb
|
240
245
|
- lib/github_api/response/mashify.rb
|
241
246
|
- lib/github_api/response/raise_error.rb
|
242
247
|
- lib/github_api/response/xmlize.rb
|
243
|
-
- lib/github_api/response.rb
|
244
248
|
- lib/github_api/response_wrapper.rb
|
245
249
|
- lib/github_api/ssl_certs/cacerts.pem
|
246
250
|
- lib/github_api/utils/url.rb
|
251
|
+
- lib/github_api/validations.rb
|
247
252
|
- lib/github_api/validations/format.rb
|
248
253
|
- lib/github_api/validations/presence.rb
|
249
254
|
- lib/github_api/validations/required.rb
|
250
255
|
- lib/github_api/validations/token.rb
|
251
|
-
- lib/github_api/validations.rb
|
252
256
|
- lib/github_api/version.rb
|
253
|
-
- lib/github_api.rb
|
254
|
-
- LICENSE.txt
|
255
|
-
- README.md
|
256
257
|
homepage: http://piotrmurach.github.io/github/
|
257
258
|
licenses:
|
258
259
|
- MIT
|
@@ -263,17 +264,17 @@ require_paths:
|
|
263
264
|
- lib
|
264
265
|
required_ruby_version: !ruby/object:Gem::Requirement
|
265
266
|
requirements:
|
266
|
-
- -
|
267
|
+
- - ">="
|
267
268
|
- !ruby/object:Gem::Version
|
268
269
|
version: 1.9.2
|
269
270
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
270
271
|
requirements:
|
271
|
-
- -
|
272
|
+
- - ">="
|
272
273
|
- !ruby/object:Gem::Version
|
273
274
|
version: '0'
|
274
275
|
requirements: []
|
275
276
|
rubyforge_project:
|
276
|
-
rubygems_version: 2.
|
277
|
+
rubygems_version: 2.5.1
|
277
278
|
signing_key:
|
278
279
|
specification_version: 4
|
279
280
|
summary: Ruby client for the official GitHub API
|