lingfennan-github_api 0.18.2
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.
- checksums.yaml +7 -0
- data/LICENSE.txt +20 -0
- data/README.md +741 -0
- data/lib/github_api.rb +93 -0
- data/lib/github_api/api.rb +398 -0
- data/lib/github_api/api/actions.rb +60 -0
- data/lib/github_api/api/arguments.rb +253 -0
- data/lib/github_api/api/config.rb +105 -0
- data/lib/github_api/api/config/property.rb +30 -0
- data/lib/github_api/api/config/property_set.rb +120 -0
- data/lib/github_api/api/factory.rb +33 -0
- data/lib/github_api/authorization.rb +75 -0
- data/lib/github_api/client.rb +77 -0
- data/lib/github_api/client/activity.rb +31 -0
- data/lib/github_api/client/activity/events.rb +233 -0
- data/lib/github_api/client/activity/feeds.rb +50 -0
- data/lib/github_api/client/activity/notifications.rb +181 -0
- data/lib/github_api/client/activity/starring.rb +130 -0
- data/lib/github_api/client/activity/watching.rb +176 -0
- data/lib/github_api/client/authorizations.rb +142 -0
- data/lib/github_api/client/authorizations/app.rb +98 -0
- data/lib/github_api/client/emojis.rb +19 -0
- data/lib/github_api/client/gists.rb +289 -0
- data/lib/github_api/client/gists/comments.rb +100 -0
- data/lib/github_api/client/git_data.rb +31 -0
- data/lib/github_api/client/git_data/blobs.rb +51 -0
- data/lib/github_api/client/git_data/commits.rb +101 -0
- data/lib/github_api/client/git_data/references.rb +150 -0
- data/lib/github_api/client/git_data/tags.rb +95 -0
- data/lib/github_api/client/git_data/trees.rb +113 -0
- data/lib/github_api/client/gitignore.rb +57 -0
- data/lib/github_api/client/issues.rb +248 -0
- data/lib/github_api/client/issues/assignees.rb +77 -0
- data/lib/github_api/client/issues/comments.rb +146 -0
- data/lib/github_api/client/issues/events.rb +50 -0
- data/lib/github_api/client/issues/labels.rb +189 -0
- data/lib/github_api/client/issues/milestones.rb +146 -0
- data/lib/github_api/client/markdown.rb +62 -0
- data/lib/github_api/client/meta.rb +19 -0
- data/lib/github_api/client/orgs.rb +127 -0
- data/lib/github_api/client/orgs/hooks.rb +182 -0
- data/lib/github_api/client/orgs/members.rb +142 -0
- data/lib/github_api/client/orgs/memberships.rb +131 -0
- data/lib/github_api/client/orgs/projects.rb +57 -0
- data/lib/github_api/client/orgs/teams.rb +407 -0
- data/lib/github_api/client/projects.rb +83 -0
- data/lib/github_api/client/projects/cards.rb +158 -0
- data/lib/github_api/client/projects/columns.rb +146 -0
- data/lib/github_api/client/pull_requests.rb +195 -0
- data/lib/github_api/client/pull_requests/comments.rb +140 -0
- data/lib/github_api/client/pull_requests/reviews.rb +158 -0
- data/lib/github_api/client/repos.rb +468 -0
- data/lib/github_api/client/repos/branches.rb +48 -0
- data/lib/github_api/client/repos/branches/protections.rb +75 -0
- data/lib/github_api/client/repos/collaborators.rb +84 -0
- data/lib/github_api/client/repos/comments.rb +125 -0
- data/lib/github_api/client/repos/commits.rb +80 -0
- data/lib/github_api/client/repos/contents.rb +246 -0
- data/lib/github_api/client/repos/deployments.rb +138 -0
- data/lib/github_api/client/repos/downloads.rb +62 -0
- data/lib/github_api/client/repos/forks.rb +48 -0
- data/lib/github_api/client/repos/hooks.rb +214 -0
- data/lib/github_api/client/repos/keys.rb +104 -0
- data/lib/github_api/client/repos/merging.rb +47 -0
- data/lib/github_api/client/repos/pages.rb +48 -0
- data/lib/github_api/client/repos/projects.rb +62 -0
- data/lib/github_api/client/repos/pub_sub_hubbub.rb +133 -0
- data/lib/github_api/client/repos/releases.rb +189 -0
- data/lib/github_api/client/repos/releases/assets.rb +136 -0
- data/lib/github_api/client/repos/releases/tags.rb +24 -0
- data/lib/github_api/client/repos/statistics.rb +89 -0
- data/lib/github_api/client/repos/statuses.rb +91 -0
- data/lib/github_api/client/say.rb +25 -0
- data/lib/github_api/client/scopes.rb +46 -0
- data/lib/github_api/client/search.rb +133 -0
- data/lib/github_api/client/search/legacy.rb +111 -0
- data/lib/github_api/client/users.rb +117 -0
- data/lib/github_api/client/users/emails.rb +65 -0
- data/lib/github_api/client/users/followers.rb +115 -0
- data/lib/github_api/client/users/keys.rb +104 -0
- data/lib/github_api/configuration.rb +70 -0
- data/lib/github_api/connection.rb +82 -0
- data/lib/github_api/constants.rb +61 -0
- data/lib/github_api/core_ext/array.rb +25 -0
- data/lib/github_api/core_ext/hash.rb +91 -0
- data/lib/github_api/core_ext/ordered_hash.rb +107 -0
- data/lib/github_api/deprecation.rb +39 -0
- data/lib/github_api/error.rb +32 -0
- data/lib/github_api/error/client_error.rb +89 -0
- data/lib/github_api/error/service_error.rb +223 -0
- data/lib/github_api/ext/faraday.rb +38 -0
- data/lib/github_api/mash.rb +7 -0
- data/lib/github_api/middleware.rb +37 -0
- data/lib/github_api/mime_type.rb +33 -0
- data/lib/github_api/normalizer.rb +23 -0
- data/lib/github_api/null_encoder.rb +25 -0
- data/lib/github_api/page_iterator.rb +138 -0
- data/lib/github_api/page_links.rb +63 -0
- data/lib/github_api/paged_request.rb +42 -0
- data/lib/github_api/pagination.rb +115 -0
- data/lib/github_api/parameter_filter.rb +35 -0
- data/lib/github_api/params_hash.rb +115 -0
- data/lib/github_api/rate_limit.rb +25 -0
- data/lib/github_api/request.rb +85 -0
- data/lib/github_api/request/basic_auth.rb +36 -0
- data/lib/github_api/request/jsonize.rb +54 -0
- data/lib/github_api/request/oauth2.rb +44 -0
- data/lib/github_api/request/verbs.rb +63 -0
- data/lib/github_api/response.rb +48 -0
- data/lib/github_api/response/atom_parser.rb +22 -0
- data/lib/github_api/response/follow_redirects.rb +140 -0
- data/lib/github_api/response/header.rb +87 -0
- data/lib/github_api/response/jsonize.rb +28 -0
- data/lib/github_api/response/mashify.rb +24 -0
- data/lib/github_api/response/raise_error.rb +22 -0
- data/lib/github_api/response/xmlize.rb +27 -0
- data/lib/github_api/response_wrapper.rb +161 -0
- data/lib/github_api/ssl_certs/cacerts.pem +2183 -0
- data/lib/github_api/utils/url.rb +63 -0
- data/lib/github_api/validations.rb +22 -0
- data/lib/github_api/validations/format.rb +26 -0
- data/lib/github_api/validations/presence.rb +32 -0
- data/lib/github_api/validations/required.rb +21 -0
- data/lib/github_api/validations/token.rb +41 -0
- data/lib/github_api/version.rb +5 -0
- metadata +338 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# encoding:utf-8
|
|
2
|
+
|
|
3
|
+
require 'cgi'
|
|
4
|
+
require 'addressable/uri'
|
|
5
|
+
|
|
6
|
+
module Github
|
|
7
|
+
module Utils
|
|
8
|
+
module Url
|
|
9
|
+
extend self
|
|
10
|
+
|
|
11
|
+
DEFAULT_QUERY_SEP = /[&;] */n
|
|
12
|
+
|
|
13
|
+
KEY_VALUE_SEP = '='.freeze
|
|
14
|
+
|
|
15
|
+
def escape_uri(s) Addressable::URI.escape(s.to_s) end
|
|
16
|
+
|
|
17
|
+
def escape(s) CGI.escape(s.to_s) end
|
|
18
|
+
|
|
19
|
+
def unescape(s) CGI.unescape(s.to_s) end
|
|
20
|
+
|
|
21
|
+
def normalize(s) Addressable::URI.parse(s.to_s).normalize.path end
|
|
22
|
+
|
|
23
|
+
def build_query(params)
|
|
24
|
+
params.map { |k, v|
|
|
25
|
+
if v.class == Array
|
|
26
|
+
build_query(v.map { |x| [k, x] })
|
|
27
|
+
else
|
|
28
|
+
v.nil? ? escape(k) : "#{escape(k)}=#{escape(v)}"
|
|
29
|
+
end
|
|
30
|
+
}.join("&")
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
def parse_query(query_string)
|
|
34
|
+
return '' if query_string.nil? || query_string.empty?
|
|
35
|
+
params = {}
|
|
36
|
+
|
|
37
|
+
query_string.split(DEFAULT_QUERY_SEP).each do |part|
|
|
38
|
+
k, v = part.split(KEY_VALUE_SEP, 2).map { |el| unescape(el) }
|
|
39
|
+
|
|
40
|
+
if cur = params[k]
|
|
41
|
+
if cur.class == Array
|
|
42
|
+
params[k] << v
|
|
43
|
+
else
|
|
44
|
+
params[k] = [cur, v]
|
|
45
|
+
end
|
|
46
|
+
else
|
|
47
|
+
params[k] = v
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
params
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
def parse_query_for_param(query_string, name)
|
|
54
|
+
parse_query(query_string).each do |key, val|
|
|
55
|
+
return val.first if (name == key) && val.is_a?(Array)
|
|
56
|
+
return val if (name == key)
|
|
57
|
+
end
|
|
58
|
+
return nil
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
end # Url
|
|
62
|
+
end # Utils
|
|
63
|
+
end # Github
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
|
|
3
|
+
require_relative 'validations/format'
|
|
4
|
+
require_relative 'validations/presence'
|
|
5
|
+
require_relative 'validations/required'
|
|
6
|
+
require_relative 'validations/token'
|
|
7
|
+
|
|
8
|
+
module Github
|
|
9
|
+
module Validations
|
|
10
|
+
include Presence
|
|
11
|
+
include Format
|
|
12
|
+
include Token
|
|
13
|
+
include Required
|
|
14
|
+
|
|
15
|
+
VALID_API_KEYS = [
|
|
16
|
+
'page',
|
|
17
|
+
'per_page',
|
|
18
|
+
'auto_pagination',
|
|
19
|
+
'jsonp_callback'
|
|
20
|
+
]
|
|
21
|
+
end # Validation
|
|
22
|
+
end # Github
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
|
|
3
|
+
require_relative '../error/client_error'
|
|
4
|
+
|
|
5
|
+
module Github
|
|
6
|
+
module Validations
|
|
7
|
+
module Format
|
|
8
|
+
|
|
9
|
+
# Ensures that value for a given key is of the correct form whether
|
|
10
|
+
# matching regular expression or set of predefined values.
|
|
11
|
+
#
|
|
12
|
+
def assert_valid_values(permitted, params)
|
|
13
|
+
params.each do |k, v|
|
|
14
|
+
next unless permitted.keys.include?(k)
|
|
15
|
+
if permitted[k].is_a?(Array) && !permitted[k].include?(params[k])
|
|
16
|
+
raise Github::Error::UnknownValue.new(k,v, permitted[k].join(', '))
|
|
17
|
+
|
|
18
|
+
elsif permitted[k].is_a?(Regexp) && !(permitted[k] =~ params[k])
|
|
19
|
+
raise Github::Error::UnknownValue.new(k,v, permitted[k])
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
end # Format
|
|
25
|
+
end # Validations
|
|
26
|
+
end # Github
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
|
|
3
|
+
require_relative '../error/client_error'
|
|
4
|
+
|
|
5
|
+
module Github
|
|
6
|
+
module Validations
|
|
7
|
+
# A mixin to help validate presence of non-empty values
|
|
8
|
+
module Presence
|
|
9
|
+
|
|
10
|
+
# Ensure that esential arguments are present before request is made.
|
|
11
|
+
#
|
|
12
|
+
# == Parameters
|
|
13
|
+
# Hash/Array of arguments to be checked against nil and empty string
|
|
14
|
+
#
|
|
15
|
+
# == Example
|
|
16
|
+
# assert_presence_of user: '...', repo: '...'
|
|
17
|
+
# assert_presence_of user, repo
|
|
18
|
+
#
|
|
19
|
+
def assert_presence_of(*args)
|
|
20
|
+
hash = args.last.is_a?(::Hash) ? args.pop : {}
|
|
21
|
+
|
|
22
|
+
errors = hash.select { |key, val| val.to_s.empty? }
|
|
23
|
+
raise Github::Error::Validations.new(errors) unless errors.empty?
|
|
24
|
+
|
|
25
|
+
args.each do |arg|
|
|
26
|
+
raise ArgumentError, "parameter cannot be nil" if arg.nil?
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
end # Presence
|
|
31
|
+
end # Validations
|
|
32
|
+
end # Github
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
|
|
3
|
+
require_relative '../error/client_error'
|
|
4
|
+
|
|
5
|
+
module Github
|
|
6
|
+
module Validations
|
|
7
|
+
module Required
|
|
8
|
+
# Validate all keys present in a provided hash against required set,
|
|
9
|
+
# on mismatch raise Github::Error::RequiredParams
|
|
10
|
+
# Note that keys need to be in the same format i.e. symbols or strings,
|
|
11
|
+
# otherwise the comparison will fail.
|
|
12
|
+
#
|
|
13
|
+
# @api public
|
|
14
|
+
def assert_required_keys(*required, provided)
|
|
15
|
+
required.flatten.all? { |key|
|
|
16
|
+
provided.deep_key?(key.to_s)
|
|
17
|
+
} || (raise Github::Error::RequiredParams.new(provided, required))
|
|
18
|
+
end
|
|
19
|
+
end # Required
|
|
20
|
+
end # Validations
|
|
21
|
+
end # Github
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
|
|
3
|
+
module Github
|
|
4
|
+
module Validations
|
|
5
|
+
module Token
|
|
6
|
+
|
|
7
|
+
TOKEN_REQUIRED = [
|
|
8
|
+
'get /user',
|
|
9
|
+
'get /user/emails',
|
|
10
|
+
'get /user/followers',
|
|
11
|
+
'get /user/following',
|
|
12
|
+
'get /user/keys',
|
|
13
|
+
'get /user/repos',
|
|
14
|
+
'patch /user',
|
|
15
|
+
'post /user/emails',
|
|
16
|
+
'post /user/keys',
|
|
17
|
+
'post /user/repos'
|
|
18
|
+
]
|
|
19
|
+
|
|
20
|
+
TOKEN_REQUIRED_REGEXP = [
|
|
21
|
+
/repos\/.*\/.*\/comments/,
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
# Ensures that required authentication token is present before
|
|
25
|
+
# request is sent.
|
|
26
|
+
#
|
|
27
|
+
def validates_token_for(method, path)
|
|
28
|
+
return true unless TOKEN_REQUIRED.grep("#{method} #{path}").empty?
|
|
29
|
+
|
|
30
|
+
token_required = false
|
|
31
|
+
TOKEN_REQUIRED_REGEXP.each do |regex|
|
|
32
|
+
if "#{method} #{path}" =~ regex
|
|
33
|
+
token_required = true
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
return token_required
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
end # Token
|
|
40
|
+
end # Validations
|
|
41
|
+
end # Github
|
metadata
ADDED
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: lingfennan-github_api
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.18.2
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Piotr Murach
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2018-08-28 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: addressable
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - "~>"
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '2.4'
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - "~>"
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '2.4'
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: hashie
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - "~>"
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '3.5'
|
|
34
|
+
- - ">="
|
|
35
|
+
- !ruby/object:Gem::Version
|
|
36
|
+
version: 3.5.2
|
|
37
|
+
type: :runtime
|
|
38
|
+
prerelease: false
|
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
40
|
+
requirements:
|
|
41
|
+
- - "~>"
|
|
42
|
+
- !ruby/object:Gem::Version
|
|
43
|
+
version: '3.5'
|
|
44
|
+
- - ">="
|
|
45
|
+
- !ruby/object:Gem::Version
|
|
46
|
+
version: 3.5.2
|
|
47
|
+
- !ruby/object:Gem::Dependency
|
|
48
|
+
name: faraday
|
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
|
50
|
+
requirements:
|
|
51
|
+
- - "~>"
|
|
52
|
+
- !ruby/object:Gem::Version
|
|
53
|
+
version: '0.8'
|
|
54
|
+
type: :runtime
|
|
55
|
+
prerelease: false
|
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
57
|
+
requirements:
|
|
58
|
+
- - "~>"
|
|
59
|
+
- !ruby/object:Gem::Version
|
|
60
|
+
version: '0.8'
|
|
61
|
+
- !ruby/object:Gem::Dependency
|
|
62
|
+
name: oauth2
|
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
|
64
|
+
requirements:
|
|
65
|
+
- - "~>"
|
|
66
|
+
- !ruby/object:Gem::Version
|
|
67
|
+
version: '1.0'
|
|
68
|
+
type: :runtime
|
|
69
|
+
prerelease: false
|
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
71
|
+
requirements:
|
|
72
|
+
- - "~>"
|
|
73
|
+
- !ruby/object:Gem::Version
|
|
74
|
+
version: '1.0'
|
|
75
|
+
- !ruby/object:Gem::Dependency
|
|
76
|
+
name: descendants_tracker
|
|
77
|
+
requirement: !ruby/object:Gem::Requirement
|
|
78
|
+
requirements:
|
|
79
|
+
- - "~>"
|
|
80
|
+
- !ruby/object:Gem::Version
|
|
81
|
+
version: 0.0.4
|
|
82
|
+
type: :runtime
|
|
83
|
+
prerelease: false
|
|
84
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
85
|
+
requirements:
|
|
86
|
+
- - "~>"
|
|
87
|
+
- !ruby/object:Gem::Version
|
|
88
|
+
version: 0.0.4
|
|
89
|
+
- !ruby/object:Gem::Dependency
|
|
90
|
+
name: bundler
|
|
91
|
+
requirement: !ruby/object:Gem::Requirement
|
|
92
|
+
requirements:
|
|
93
|
+
- - ">="
|
|
94
|
+
- !ruby/object:Gem::Version
|
|
95
|
+
version: 1.5.0
|
|
96
|
+
- - "<"
|
|
97
|
+
- !ruby/object:Gem::Version
|
|
98
|
+
version: '2.0'
|
|
99
|
+
type: :development
|
|
100
|
+
prerelease: false
|
|
101
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
102
|
+
requirements:
|
|
103
|
+
- - ">="
|
|
104
|
+
- !ruby/object:Gem::Version
|
|
105
|
+
version: 1.5.0
|
|
106
|
+
- - "<"
|
|
107
|
+
- !ruby/object:Gem::Version
|
|
108
|
+
version: '2.0'
|
|
109
|
+
- !ruby/object:Gem::Dependency
|
|
110
|
+
name: rake
|
|
111
|
+
requirement: !ruby/object:Gem::Requirement
|
|
112
|
+
requirements:
|
|
113
|
+
- - "<"
|
|
114
|
+
- !ruby/object:Gem::Version
|
|
115
|
+
version: '11.0'
|
|
116
|
+
type: :development
|
|
117
|
+
prerelease: false
|
|
118
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
119
|
+
requirements:
|
|
120
|
+
- - "<"
|
|
121
|
+
- !ruby/object:Gem::Version
|
|
122
|
+
version: '11.0'
|
|
123
|
+
- !ruby/object:Gem::Dependency
|
|
124
|
+
name: cucumber
|
|
125
|
+
requirement: !ruby/object:Gem::Requirement
|
|
126
|
+
requirements:
|
|
127
|
+
- - "~>"
|
|
128
|
+
- !ruby/object:Gem::Version
|
|
129
|
+
version: '2.1'
|
|
130
|
+
type: :development
|
|
131
|
+
prerelease: false
|
|
132
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
133
|
+
requirements:
|
|
134
|
+
- - "~>"
|
|
135
|
+
- !ruby/object:Gem::Version
|
|
136
|
+
version: '2.1'
|
|
137
|
+
- !ruby/object:Gem::Dependency
|
|
138
|
+
name: rspec
|
|
139
|
+
requirement: !ruby/object:Gem::Requirement
|
|
140
|
+
requirements:
|
|
141
|
+
- - "~>"
|
|
142
|
+
- !ruby/object:Gem::Version
|
|
143
|
+
version: 2.14.1
|
|
144
|
+
type: :development
|
|
145
|
+
prerelease: false
|
|
146
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
147
|
+
requirements:
|
|
148
|
+
- - "~>"
|
|
149
|
+
- !ruby/object:Gem::Version
|
|
150
|
+
version: 2.14.1
|
|
151
|
+
- !ruby/object:Gem::Dependency
|
|
152
|
+
name: vcr
|
|
153
|
+
requirement: !ruby/object:Gem::Requirement
|
|
154
|
+
requirements:
|
|
155
|
+
- - "~>"
|
|
156
|
+
- !ruby/object:Gem::Version
|
|
157
|
+
version: 3.0.3
|
|
158
|
+
type: :development
|
|
159
|
+
prerelease: false
|
|
160
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
161
|
+
requirements:
|
|
162
|
+
- - "~>"
|
|
163
|
+
- !ruby/object:Gem::Version
|
|
164
|
+
version: 3.0.3
|
|
165
|
+
- !ruby/object:Gem::Dependency
|
|
166
|
+
name: webmock
|
|
167
|
+
requirement: !ruby/object:Gem::Requirement
|
|
168
|
+
requirements:
|
|
169
|
+
- - "~>"
|
|
170
|
+
- !ruby/object:Gem::Version
|
|
171
|
+
version: 3.0.1
|
|
172
|
+
type: :development
|
|
173
|
+
prerelease: false
|
|
174
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
175
|
+
requirements:
|
|
176
|
+
- - "~>"
|
|
177
|
+
- !ruby/object:Gem::Version
|
|
178
|
+
version: 3.0.1
|
|
179
|
+
description: " Ruby client that supports all of the GitHub API methods. It's build
|
|
180
|
+
in a modular way, that is, you can either instantiate the whole api wrapper Github.new
|
|
181
|
+
or use parts of it e.i. Github::Client::Repos.new if working solely with repositories
|
|
182
|
+
is your main concern. Intuitive query methods allow you easily call API endpoints. "
|
|
183
|
+
email: ''
|
|
184
|
+
executables: []
|
|
185
|
+
extensions: []
|
|
186
|
+
extra_rdoc_files:
|
|
187
|
+
- LICENSE.txt
|
|
188
|
+
- README.md
|
|
189
|
+
files:
|
|
190
|
+
- LICENSE.txt
|
|
191
|
+
- README.md
|
|
192
|
+
- lib/github_api.rb
|
|
193
|
+
- lib/github_api/api.rb
|
|
194
|
+
- lib/github_api/api/actions.rb
|
|
195
|
+
- lib/github_api/api/arguments.rb
|
|
196
|
+
- lib/github_api/api/config.rb
|
|
197
|
+
- lib/github_api/api/config/property.rb
|
|
198
|
+
- lib/github_api/api/config/property_set.rb
|
|
199
|
+
- lib/github_api/api/factory.rb
|
|
200
|
+
- lib/github_api/authorization.rb
|
|
201
|
+
- lib/github_api/client.rb
|
|
202
|
+
- lib/github_api/client/activity.rb
|
|
203
|
+
- lib/github_api/client/activity/events.rb
|
|
204
|
+
- lib/github_api/client/activity/feeds.rb
|
|
205
|
+
- lib/github_api/client/activity/notifications.rb
|
|
206
|
+
- lib/github_api/client/activity/starring.rb
|
|
207
|
+
- lib/github_api/client/activity/watching.rb
|
|
208
|
+
- lib/github_api/client/authorizations.rb
|
|
209
|
+
- lib/github_api/client/authorizations/app.rb
|
|
210
|
+
- lib/github_api/client/emojis.rb
|
|
211
|
+
- lib/github_api/client/gists.rb
|
|
212
|
+
- lib/github_api/client/gists/comments.rb
|
|
213
|
+
- lib/github_api/client/git_data.rb
|
|
214
|
+
- lib/github_api/client/git_data/blobs.rb
|
|
215
|
+
- lib/github_api/client/git_data/commits.rb
|
|
216
|
+
- lib/github_api/client/git_data/references.rb
|
|
217
|
+
- lib/github_api/client/git_data/tags.rb
|
|
218
|
+
- lib/github_api/client/git_data/trees.rb
|
|
219
|
+
- lib/github_api/client/gitignore.rb
|
|
220
|
+
- lib/github_api/client/issues.rb
|
|
221
|
+
- lib/github_api/client/issues/assignees.rb
|
|
222
|
+
- lib/github_api/client/issues/comments.rb
|
|
223
|
+
- lib/github_api/client/issues/events.rb
|
|
224
|
+
- lib/github_api/client/issues/labels.rb
|
|
225
|
+
- lib/github_api/client/issues/milestones.rb
|
|
226
|
+
- lib/github_api/client/markdown.rb
|
|
227
|
+
- lib/github_api/client/meta.rb
|
|
228
|
+
- lib/github_api/client/orgs.rb
|
|
229
|
+
- lib/github_api/client/orgs/hooks.rb
|
|
230
|
+
- lib/github_api/client/orgs/members.rb
|
|
231
|
+
- lib/github_api/client/orgs/memberships.rb
|
|
232
|
+
- lib/github_api/client/orgs/projects.rb
|
|
233
|
+
- lib/github_api/client/orgs/teams.rb
|
|
234
|
+
- lib/github_api/client/projects.rb
|
|
235
|
+
- lib/github_api/client/projects/cards.rb
|
|
236
|
+
- lib/github_api/client/projects/columns.rb
|
|
237
|
+
- lib/github_api/client/pull_requests.rb
|
|
238
|
+
- lib/github_api/client/pull_requests/comments.rb
|
|
239
|
+
- lib/github_api/client/pull_requests/reviews.rb
|
|
240
|
+
- lib/github_api/client/repos.rb
|
|
241
|
+
- lib/github_api/client/repos/branches.rb
|
|
242
|
+
- lib/github_api/client/repos/branches/protections.rb
|
|
243
|
+
- lib/github_api/client/repos/collaborators.rb
|
|
244
|
+
- lib/github_api/client/repos/comments.rb
|
|
245
|
+
- lib/github_api/client/repos/commits.rb
|
|
246
|
+
- lib/github_api/client/repos/contents.rb
|
|
247
|
+
- lib/github_api/client/repos/deployments.rb
|
|
248
|
+
- lib/github_api/client/repos/downloads.rb
|
|
249
|
+
- lib/github_api/client/repos/forks.rb
|
|
250
|
+
- lib/github_api/client/repos/hooks.rb
|
|
251
|
+
- lib/github_api/client/repos/keys.rb
|
|
252
|
+
- lib/github_api/client/repos/merging.rb
|
|
253
|
+
- lib/github_api/client/repos/pages.rb
|
|
254
|
+
- lib/github_api/client/repos/projects.rb
|
|
255
|
+
- lib/github_api/client/repos/pub_sub_hubbub.rb
|
|
256
|
+
- lib/github_api/client/repos/releases.rb
|
|
257
|
+
- lib/github_api/client/repos/releases/assets.rb
|
|
258
|
+
- lib/github_api/client/repos/releases/tags.rb
|
|
259
|
+
- lib/github_api/client/repos/statistics.rb
|
|
260
|
+
- lib/github_api/client/repos/statuses.rb
|
|
261
|
+
- lib/github_api/client/say.rb
|
|
262
|
+
- lib/github_api/client/scopes.rb
|
|
263
|
+
- lib/github_api/client/search.rb
|
|
264
|
+
- lib/github_api/client/search/legacy.rb
|
|
265
|
+
- lib/github_api/client/users.rb
|
|
266
|
+
- lib/github_api/client/users/emails.rb
|
|
267
|
+
- lib/github_api/client/users/followers.rb
|
|
268
|
+
- lib/github_api/client/users/keys.rb
|
|
269
|
+
- lib/github_api/configuration.rb
|
|
270
|
+
- lib/github_api/connection.rb
|
|
271
|
+
- lib/github_api/constants.rb
|
|
272
|
+
- lib/github_api/core_ext/array.rb
|
|
273
|
+
- lib/github_api/core_ext/hash.rb
|
|
274
|
+
- lib/github_api/core_ext/ordered_hash.rb
|
|
275
|
+
- lib/github_api/deprecation.rb
|
|
276
|
+
- lib/github_api/error.rb
|
|
277
|
+
- lib/github_api/error/client_error.rb
|
|
278
|
+
- lib/github_api/error/service_error.rb
|
|
279
|
+
- lib/github_api/ext/faraday.rb
|
|
280
|
+
- lib/github_api/mash.rb
|
|
281
|
+
- lib/github_api/middleware.rb
|
|
282
|
+
- lib/github_api/mime_type.rb
|
|
283
|
+
- lib/github_api/normalizer.rb
|
|
284
|
+
- lib/github_api/null_encoder.rb
|
|
285
|
+
- lib/github_api/page_iterator.rb
|
|
286
|
+
- lib/github_api/page_links.rb
|
|
287
|
+
- lib/github_api/paged_request.rb
|
|
288
|
+
- lib/github_api/pagination.rb
|
|
289
|
+
- lib/github_api/parameter_filter.rb
|
|
290
|
+
- lib/github_api/params_hash.rb
|
|
291
|
+
- lib/github_api/rate_limit.rb
|
|
292
|
+
- lib/github_api/request.rb
|
|
293
|
+
- lib/github_api/request/basic_auth.rb
|
|
294
|
+
- lib/github_api/request/jsonize.rb
|
|
295
|
+
- lib/github_api/request/oauth2.rb
|
|
296
|
+
- lib/github_api/request/verbs.rb
|
|
297
|
+
- lib/github_api/response.rb
|
|
298
|
+
- lib/github_api/response/atom_parser.rb
|
|
299
|
+
- lib/github_api/response/follow_redirects.rb
|
|
300
|
+
- lib/github_api/response/header.rb
|
|
301
|
+
- lib/github_api/response/jsonize.rb
|
|
302
|
+
- lib/github_api/response/mashify.rb
|
|
303
|
+
- lib/github_api/response/raise_error.rb
|
|
304
|
+
- lib/github_api/response/xmlize.rb
|
|
305
|
+
- lib/github_api/response_wrapper.rb
|
|
306
|
+
- lib/github_api/ssl_certs/cacerts.pem
|
|
307
|
+
- lib/github_api/utils/url.rb
|
|
308
|
+
- lib/github_api/validations.rb
|
|
309
|
+
- lib/github_api/validations/format.rb
|
|
310
|
+
- lib/github_api/validations/presence.rb
|
|
311
|
+
- lib/github_api/validations/required.rb
|
|
312
|
+
- lib/github_api/validations/token.rb
|
|
313
|
+
- lib/github_api/version.rb
|
|
314
|
+
homepage: http://piotrmurach.github.io/github/
|
|
315
|
+
licenses:
|
|
316
|
+
- MIT
|
|
317
|
+
metadata: {}
|
|
318
|
+
post_install_message:
|
|
319
|
+
rdoc_options: []
|
|
320
|
+
require_paths:
|
|
321
|
+
- lib
|
|
322
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
323
|
+
requirements:
|
|
324
|
+
- - ">="
|
|
325
|
+
- !ruby/object:Gem::Version
|
|
326
|
+
version: 2.0.0
|
|
327
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
328
|
+
requirements:
|
|
329
|
+
- - ">="
|
|
330
|
+
- !ruby/object:Gem::Version
|
|
331
|
+
version: '0'
|
|
332
|
+
requirements: []
|
|
333
|
+
rubyforge_project:
|
|
334
|
+
rubygems_version: 2.5.2.1
|
|
335
|
+
signing_key:
|
|
336
|
+
specification_version: 4
|
|
337
|
+
summary: Ruby client for the official GitHub API
|
|
338
|
+
test_files: []
|