octokit 4.2.0 → 9.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. checksums.yaml +5 -5
  2. data/CONTRIBUTING.md +14 -13
  3. data/LICENSE.md +1 -1
  4. data/README.md +275 -127
  5. data/Rakefile +20 -14
  6. data/lib/ext/sawyer/relation.rb +12 -0
  7. data/lib/octokit/arguments.rb +3 -3
  8. data/lib/octokit/authentication.rb +20 -14
  9. data/lib/octokit/client/actions_artifacts.rb +71 -0
  10. data/lib/octokit/client/actions_secrets.rb +161 -0
  11. data/lib/octokit/client/actions_workflow_jobs.rb +65 -0
  12. data/lib/octokit/client/actions_workflow_runs.rb +125 -0
  13. data/lib/octokit/client/actions_workflows.rb +68 -0
  14. data/lib/octokit/client/apps.rb +259 -0
  15. data/lib/octokit/client/checks.rb +200 -0
  16. data/lib/octokit/client/code_scanning.rb +190 -0
  17. data/lib/octokit/client/codespaces_secrets.rb +108 -0
  18. data/lib/octokit/client/commit_branches.rb +20 -0
  19. data/lib/octokit/client/commit_comments.rb +8 -8
  20. data/lib/octokit/client/commit_pulls.rb +20 -0
  21. data/lib/octokit/client/commits.rb +32 -35
  22. data/lib/octokit/client/community_profile.rb +21 -0
  23. data/lib/octokit/client/contents.rb +24 -21
  24. data/lib/octokit/client/dependabot_secrets.rb +108 -0
  25. data/lib/octokit/client/deployments.rb +29 -7
  26. data/lib/octokit/client/downloads.rb +5 -6
  27. data/lib/octokit/client/emojis.rb +3 -3
  28. data/lib/octokit/client/environments.rb +58 -0
  29. data/lib/octokit/client/events.rb +4 -4
  30. data/lib/octokit/client/feeds.rb +4 -5
  31. data/lib/octokit/client/gists.rb +36 -8
  32. data/lib/octokit/client/gitignore.rb +3 -3
  33. data/lib/octokit/client/hooks.rb +34 -30
  34. data/lib/octokit/client/issues.rb +97 -14
  35. data/lib/octokit/client/labels.rb +17 -17
  36. data/lib/octokit/client/legacy_search.rb +3 -3
  37. data/lib/octokit/client/licenses.rb +5 -8
  38. data/lib/octokit/client/markdown.rb +3 -3
  39. data/lib/octokit/client/marketplace.rb +56 -0
  40. data/lib/octokit/client/meta.rb +4 -5
  41. data/lib/octokit/client/milestones.rb +14 -14
  42. data/lib/octokit/client/notifications.rb +7 -11
  43. data/lib/octokit/client/oauth_applications.rb +116 -0
  44. data/lib/octokit/client/objects.rb +14 -14
  45. data/lib/octokit/client/organizations.rb +256 -73
  46. data/lib/octokit/client/pages.rb +26 -3
  47. data/lib/octokit/client/projects.rb +294 -0
  48. data/lib/octokit/client/pull_requests.rb +74 -51
  49. data/lib/octokit/client/rate_limit.rb +11 -13
  50. data/lib/octokit/client/reactions.rb +204 -0
  51. data/lib/octokit/client/refs.rb +34 -20
  52. data/lib/octokit/client/releases.rb +16 -13
  53. data/lib/octokit/client/repositories.rb +276 -60
  54. data/lib/octokit/client/repository_invitations.rb +96 -0
  55. data/lib/octokit/client/reviews.rb +227 -0
  56. data/lib/octokit/client/say.rb +4 -5
  57. data/lib/octokit/client/search.rb +46 -17
  58. data/lib/octokit/client/service_status.rb +19 -9
  59. data/lib/octokit/client/source_import.rb +156 -0
  60. data/lib/octokit/client/stats.rb +39 -17
  61. data/lib/octokit/client/statuses.rb +6 -6
  62. data/lib/octokit/client/tokens.rb +31 -0
  63. data/lib/octokit/client/traffic.rb +64 -0
  64. data/lib/octokit/client/users.rb +133 -25
  65. data/lib/octokit/client.rb +85 -19
  66. data/lib/octokit/configurable.rb +60 -32
  67. data/lib/octokit/connection.rb +45 -21
  68. data/lib/octokit/default.rb +82 -35
  69. data/lib/octokit/enterprise_admin_client/admin_stats.rb +14 -15
  70. data/lib/octokit/enterprise_admin_client/license.rb +4 -5
  71. data/lib/octokit/enterprise_admin_client/orgs.rb +7 -6
  72. data/lib/octokit/enterprise_admin_client/search_indexing.rb +8 -9
  73. data/lib/octokit/enterprise_admin_client/users.rb +19 -18
  74. data/lib/octokit/enterprise_admin_client.rb +11 -3
  75. data/lib/octokit/enterprise_management_console_client/management_console.rb +52 -34
  76. data/lib/octokit/enterprise_management_console_client.rb +9 -3
  77. data/lib/octokit/error.rb +144 -26
  78. data/lib/octokit/gist.rb +4 -5
  79. data/lib/octokit/manage_ghes_client/manage_ghes.rb +178 -0
  80. data/lib/octokit/manage_ghes_client.rb +64 -0
  81. data/lib/octokit/middleware/follow_redirects.rb +18 -14
  82. data/lib/octokit/organization.rb +3 -1
  83. data/lib/octokit/rate_limit.rb +11 -9
  84. data/lib/octokit/repo_arguments.rb +3 -4
  85. data/lib/octokit/repository.rb +35 -23
  86. data/lib/octokit/response/base_middleware.rb +10 -0
  87. data/lib/octokit/response/feed_parser.rb +5 -9
  88. data/lib/octokit/response/raise_error.rb +4 -6
  89. data/lib/octokit/user.rb +4 -2
  90. data/lib/octokit/version.rb +3 -1
  91. data/lib/octokit/warnable.rb +4 -5
  92. data/lib/octokit.rb +30 -8
  93. data/octokit.gemspec +12 -10
  94. metadata +47 -24
  95. data/lib/octokit/client/authorizations.rb +0 -256
  96. data/lib/octokit/client/pub_sub_hubbub.rb +0 -111
  97. data/lib/octokit/preview.rb +0 -28
@@ -1,29 +1,31 @@
1
- module Octokit
1
+ # frozen_string_literal: true
2
2
 
3
+ module Octokit
3
4
  # Class for API Rate Limit info
4
5
  #
5
6
  # @!attribute [w] limit
6
- # @return [Fixnum] Max tries per rate limit period
7
+ # @return [Integer] Max tries per rate limit period
7
8
  # @!attribute [w] remaining
8
- # @return [Fixnum] Remaining tries per rate limit period
9
+ # @return [Integer] Remaining tries per rate limit period
9
10
  # @!attribute [w] resets_at
10
11
  # @return [Time] Indicates when rate limit resets
11
12
  # @!attribute [w] resets_in
12
- # @return [Fixnum] Number of seconds when rate limit resets
13
+ # @return [Integer] Number of seconds when rate limit resets
13
14
  #
14
15
  # @see https://developer.github.com/v3/#rate-limiting
15
16
  class RateLimit < Struct.new(:limit, :remaining, :resets_at, :resets_in)
16
-
17
17
  # Get rate limit info from HTTP response
18
18
  #
19
19
  # @param response [#headers] HTTP response
20
20
  # @return [RateLimit]
21
21
  def self.from_response(response)
22
22
  info = new
23
- if response && !response.headers.nil?
24
- info.limit = (response.headers['X-RateLimit-Limit'] || 1).to_i
25
- info.remaining = (response.headers['X-RateLimit-Remaining'] || 1).to_i
26
- info.resets_at = Time.at((response.headers['X-RateLimit-Reset'] || Time.now).to_i)
23
+ headers = response.headers if response.respond_to?(:headers) && !response.headers.nil?
24
+ headers ||= response.response_headers if response.respond_to?(:response_headers) && !response.response_headers.nil?
25
+ if headers
26
+ info.limit = (headers['X-RateLimit-Limit'] || 1).to_i
27
+ info.remaining = (headers['X-RateLimit-Remaining'] || 1).to_i
28
+ info.resets_at = Time.at((headers['X-RateLimit-Reset'] || Time.now).to_i)
27
29
  info.resets_in = [(info.resets_at - Time.now).to_i, 0].max
28
30
  end
29
31
 
@@ -1,19 +1,18 @@
1
- module Octokit
1
+ # frozen_string_literal: true
2
2
 
3
+ module Octokit
3
4
  # Class to extract options from Ruby arguments for
4
5
  # Repository-related methods
5
6
  class RepoArguments < Arguments
6
-
7
7
  # !@attribute [r] repo
8
8
  # @return [Repository]
9
9
  attr_reader :repo
10
10
 
11
11
  def initialize(args)
12
- arguments = super(args)
12
+ arguments = super
13
13
  @repo = arguments.shift
14
14
 
15
15
  arguments
16
16
  end
17
-
18
17
  end
19
18
  end
@@ -1,16 +1,21 @@
1
- module Octokit
1
+ # frozen_string_literal: true
2
2
 
3
+ module Octokit
3
4
  # Class to parse GitHub repository owner and name from
4
5
  # URLs and to generate URLs
5
6
  class Repository
6
7
  attr_accessor :owner, :name, :id
7
- NAME_WITH_OWNER_PATTERN = /\A[\w.-]+\/[\w.-]+\z/i
8
+
9
+ NAME_WITH_OWNER_PATTERN = %r{\A[\w.-]+/[\w.-]+\z}i.freeze
8
10
 
9
11
  # Instantiate from a GitHub repository URL
10
12
  #
11
13
  # @return [Repository]
12
14
  def self.from_url(url)
13
- Repository.new(URI.parse(url).path[1..-1])
15
+ new URI.parse(url).path[1..]
16
+ .gsub(%r{^repos/}, '')
17
+ .split('/', 3)[0..1]
18
+ .join('/')
14
19
  end
15
20
 
16
21
  # @raise [Octokit::InvalidRepository] if the repository
@@ -20,19 +25,17 @@ module Octokit
20
25
  when Integer
21
26
  @id = repo
22
27
  when NAME_WITH_OWNER_PATTERN
23
- @owner, @name = repo.split("/")
28
+ @owner, @name = repo.split('/')
24
29
  when Repository
25
30
  @owner = repo.owner
26
31
  @name = repo.name
27
32
  when Hash
28
- @name = repo[:repo] ||= repo[:name]
29
- @owner = repo[:owner] ||= repo[:user] ||= repo[:username]
33
+ @name = repo[:repo] || repo[:name]
34
+ @owner = repo[:owner] || repo[:user] || repo[:username]
30
35
  else
31
- raise_invalid_repository!
32
- end
33
- if @owner && @name
34
- validate_owner_and_name!
36
+ raise_invalid_repository!(repo)
35
37
  end
38
+ validate_owner_and_name!(repo) if @owner && @name
36
39
  end
37
40
 
38
41
  # Repository owner/name
@@ -40,18 +43,19 @@ module Octokit
40
43
  def slug
41
44
  "#{@owner}/#{@name}"
42
45
  end
43
- alias :to_s :slug
46
+ alias to_s slug
44
47
 
45
48
  # @return [String] Repository API path
46
49
  def path
47
50
  return named_api_path if @owner && @name
48
- return id_api_path if @id
51
+
52
+ id_api_path if @id
49
53
  end
50
54
 
51
55
  # Get the api path for a repo
52
56
  # @param repo [Integer, String, Hash, Repository] A GitHub repository.
53
57
  # @return [String] Api path.
54
- def self.path repo
58
+ def self.path(repo)
55
59
  new(repo).path
56
60
  end
57
61
 
@@ -71,20 +75,28 @@ module Octokit
71
75
  "#{Octokit.web_endpoint}#{slug}"
72
76
  end
73
77
 
74
- alias :user :owner
75
- alias :username :owner
76
- alias :repo :name
78
+ alias user owner
79
+ alias username owner
80
+ alias repo name
77
81
 
78
82
  private
79
83
 
80
- def validate_owner_and_name!
81
- if @owner.include?('/') || @name.include?('/') || !url.match(/\A#{URI.regexp}\z/)
82
- raise_invalid_repository!
83
- end
84
- end
84
+ ABS_URI_REGEXP = if URI.const_defined?(:RFC2396_PARSER) # Ruby 3.4+
85
+ URI::RFC2396_PARSER.regexp.fetch(:ABS_URI)
86
+ else
87
+ URI::RFC2396_Parser.new.regexp.fetch(:ABS_URI)
88
+ end
85
89
 
86
- def raise_invalid_repository!
87
- raise Octokit::InvalidRepository, "Invalid Repository. Use user/repo format."
90
+ def validate_owner_and_name!(repo)
91
+ if @owner.include?('/') || @name.include?('/') || !url.match?(ABS_URI_REGEXP)
92
+ raise_invalid_repository!(repo)
88
93
  end
94
+ end
95
+
96
+ def raise_invalid_repository!(repo)
97
+ msg = "#{repo.inspect} is invalid as a repository identifier. " \
98
+ 'Use the user/repo (String) format, or the repository ID (Integer), or a hash containing :repo and :user keys.'
99
+ raise Octokit::InvalidRepository, msg
100
+ end
89
101
  end
90
102
  end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'faraday'
4
+
5
+ module Octokit
6
+ module Response
7
+ # In Faraday 2.x, Faraday::Response::Middleware was removed
8
+ BaseMiddleware = defined?(Faraday::Response::Middleware) ? Faraday::Response::Middleware : Faraday::Middleware
9
+ end
10
+ end
@@ -1,21 +1,17 @@
1
- require 'faraday'
1
+ # frozen_string_literal: true
2
2
 
3
- module Octokit
3
+ require 'octokit/response/base_middleware'
4
4
 
5
+ module Octokit
5
6
  module Response
6
-
7
7
  # Parses RSS and Atom feed responses.
8
- class FeedParser < Faraday::Response::Middleware
9
-
10
- private
11
-
8
+ class FeedParser < BaseMiddleware
12
9
  def on_complete(env)
13
- if env[:response_headers]["content-type"] =~ /(\batom|\brss)/
10
+ if env[:response_headers]['content-type'] =~ /(\batom|\brss)/
14
11
  require 'rss'
15
12
  env[:body] = RSS::Parser.parse env[:body]
16
13
  end
17
14
  end
18
-
19
15
  end
20
16
  end
21
17
  end
@@ -1,16 +1,14 @@
1
- require 'faraday'
1
+ # frozen_string_literal: true
2
+
3
+ require 'octokit/response/base_middleware'
2
4
  require 'octokit/error'
3
5
 
4
6
  module Octokit
5
7
  # Faraday response middleware
6
8
  module Response
7
-
8
9
  # This class raises an Octokit-flavored exception based
9
10
  # HTTP status codes returned by the API
10
- class RaiseError < Faraday::Response::Middleware
11
-
12
- private
13
-
11
+ class RaiseError < BaseMiddleware
14
12
  def on_complete(response)
15
13
  if error = Octokit::Error.from_response(response)
16
14
  raise error
data/lib/octokit/user.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Octokit
2
4
  # GitHub user class to generate API path urls
3
5
  class User
@@ -5,14 +7,14 @@ module Octokit
5
7
  #
6
8
  # @param user [String, Integer] GitHub user login or id
7
9
  # @return [String] User Api path
8
- def self.path user
10
+ def self.path(user)
9
11
  case user
10
12
  when String
11
13
  "users/#{user}"
12
14
  when Integer
13
15
  "user/#{user}"
14
16
  else
15
- "user"
17
+ 'user'
16
18
  end
17
19
  end
18
20
  end
@@ -1,7 +1,9 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Octokit
2
4
  # Current major release.
3
5
  # @return [Integer]
4
- MAJOR = 4
6
+ MAJOR = 9
5
7
 
6
8
  # Current minor release.
7
9
  # @return [Integer]
@@ -1,17 +1,16 @@
1
- module Octokit
1
+ # frozen_string_literal: true
2
2
 
3
+ module Octokit
3
4
  # Allows warnings to be suppressed via environment variable.
4
5
  module Warnable
6
+ module_function
5
7
 
6
8
  # Wrapper around Kernel#warn to print warnings unless
7
9
  # OCTOKIT_SILENT is set to true.
8
10
  #
9
11
  # @return [nil]
10
12
  def octokit_warn(*message)
11
- unless ENV['OCTOKIT_SILENT']
12
- warn message
13
- end
13
+ warn message unless ENV['OCTOKIT_SILENT']
14
14
  end
15
15
  end
16
16
  end
17
-
data/lib/octokit.rb CHANGED
@@ -1,11 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'octokit/default'
1
4
  require 'octokit/client'
2
5
  require 'octokit/enterprise_admin_client'
3
6
  require 'octokit/enterprise_management_console_client'
4
- require 'octokit/default'
7
+ require 'octokit/manage_ghes_client'
5
8
 
6
9
  # Ruby toolkit for the GitHub API
7
10
  module Octokit
8
-
9
11
  class << self
10
12
  include Octokit::Configurable
11
13
 
@@ -14,6 +16,7 @@ module Octokit
14
16
  # @return [Octokit::Client] API wrapper
15
17
  def client
16
18
  return @client if defined?(@client) && @client.same_options?(options)
19
+
17
20
  @client = Octokit::Client.new(options)
18
21
  end
19
22
 
@@ -21,7 +24,10 @@ module Octokit
21
24
  #
22
25
  # @return [Octokit::EnterpriseAdminClient] API wrapper
23
26
  def enterprise_admin_client
24
- return @enterprise_admin_client if defined?(@enterprise_admin_client) && @enterprise_admin_client.same_options?(options)
27
+ if defined?(@enterprise_admin_client) && @enterprise_admin_client.same_options?(options)
28
+ return @enterprise_admin_client
29
+ end
30
+
25
31
  @enterprise_admin_client = Octokit::EnterpriseAdminClient.new(options)
26
32
  end
27
33
 
@@ -29,16 +35,31 @@ module Octokit
29
35
  #
30
36
  # @return [Octokit::EnterpriseManagementConsoleClient] API wrapper
31
37
  def enterprise_management_console_client
32
- return @enterprise_management_console_client if defined?(@enterprise_management_console_client) && @enterprise_management_console_client.same_options?(options)
38
+ if defined?(@enterprise_management_console_client) && @enterprise_management_console_client.same_options?(options)
39
+ return @enterprise_management_console_client
40
+ end
41
+
33
42
  @enterprise_management_console_client = Octokit::EnterpriseManagementConsoleClient.new(options)
34
43
  end
35
44
 
45
+ # ManageGHESClient client based on configured options {Configurable}
46
+ #
47
+ # @return [Octokit::ManageGHESClient] API wrapper
48
+ def manage_ghes_client
49
+ if defined?(@manage_ghes_client) && @manage_ghes_client.same_options?(options)
50
+ return @manage_ghes_client
51
+ end
52
+
53
+ @manage_ghes_client = Octokit::ManageGHESClient.new(options)
54
+ end
55
+
36
56
  private
37
57
 
38
- def respond_to_missing?(method_name, include_private=false)
58
+ def respond_to_missing?(method_name, include_private = false)
39
59
  client.respond_to?(method_name, include_private) ||
40
- enterprise_admin_client.respond_to?(method_name, include_private) ||
41
- enterprise_management_console_client.respond_to?(method_name, include_private)
60
+ enterprise_admin_client.respond_to?(method_name, include_private) ||
61
+ enterprise_management_console_client.respond_to?(method_name, include_private) ||
62
+ manage_ghes_client.respond_to?(method_name, include_private)
42
63
  end
43
64
 
44
65
  def method_missing(method_name, *args, &block)
@@ -48,11 +69,12 @@ module Octokit
48
69
  return enterprise_admin_client.send(method_name, *args, &block)
49
70
  elsif enterprise_management_console_client.respond_to?(method_name)
50
71
  return enterprise_management_console_client.send(method_name, *args, &block)
72
+ elsif manage_ghes_client.respond_to?(method_name)
73
+ return manage_ghes_client.send(method_name, *args, &block)
51
74
  end
52
75
 
53
76
  super
54
77
  end
55
-
56
78
  end
57
79
  end
58
80
 
data/octokit.gemspec CHANGED
@@ -1,22 +1,24 @@
1
- # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
1
+ # frozen_string_literal: true
2
+
3
+ lib = File.expand_path('lib', __dir__)
3
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
5
  require 'octokit/version'
5
6
 
6
7
  Gem::Specification.new do |spec|
7
- spec.add_development_dependency 'bundler', '~> 1.0'
8
- spec.add_dependency 'sawyer', '>= 0.5.3', '~> 0.6.0'
9
- spec.authors = ["Wynn Netherland", "Erik Michaels-Ober", "Clint Shryock"]
10
- spec.description = %q{Simple wrapper for the GitHub API}
8
+ spec.add_dependency 'faraday', '>= 1', '< 3'
9
+ spec.add_dependency 'sawyer', '~> 0.9'
10
+ spec.authors = ['Wynn Netherland', 'Erik Michaels-Ober', 'Clint Shryock']
11
+ spec.description = 'Simple wrapper for the GitHub API'
11
12
  spec.email = ['wynn.netherland@gmail.com', 'sferik@gmail.com', 'clint@ctshryock.com']
12
- spec.files = %w(.document CONTRIBUTING.md LICENSE.md README.md Rakefile octokit.gemspec)
13
- spec.files += Dir.glob("lib/**/*.rb")
13
+ spec.files = %w[.document CONTRIBUTING.md LICENSE.md README.md Rakefile octokit.gemspec]
14
+ spec.files += Dir.glob('lib/**/*.rb')
14
15
  spec.homepage = 'https://github.com/octokit/octokit.rb'
15
16
  spec.licenses = ['MIT']
16
17
  spec.name = 'octokit'
17
18
  spec.require_paths = ['lib']
18
- spec.required_ruby_version = '>= 1.9.2'
19
+ spec.required_ruby_version = '>= 2.7.0'
19
20
  spec.required_rubygems_version = '>= 1.3.5'
20
- spec.summary = "Ruby toolkit for working with the GitHub API"
21
+ spec.summary = 'Ruby toolkit for working with the GitHub API'
21
22
  spec.version = Octokit::VERSION.dup
23
+ spec.metadata = { 'rubygems_mfa_required' => 'true' }
22
24
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octokit
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.0
4
+ version: 9.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wynn Netherland
@@ -10,42 +10,42 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-11-17 00:00:00.000000000 Z
13
+ date: 2024-10-16 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
- name: bundler
16
+ name: faraday
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - "~>"
19
+ - - ">="
20
+ - !ruby/object:Gem::Version
21
+ version: '1'
22
+ - - "<"
20
23
  - !ruby/object:Gem::Version
21
- version: '1.0'
22
- type: :development
24
+ version: '3'
25
+ type: :runtime
23
26
  prerelease: false
24
27
  version_requirements: !ruby/object:Gem::Requirement
25
28
  requirements:
26
- - - "~>"
29
+ - - ">="
27
30
  - !ruby/object:Gem::Version
28
- version: '1.0'
31
+ version: '1'
32
+ - - "<"
33
+ - !ruby/object:Gem::Version
34
+ version: '3'
29
35
  - !ruby/object:Gem::Dependency
30
36
  name: sawyer
31
37
  requirement: !ruby/object:Gem::Requirement
32
38
  requirements:
33
- - - ">="
34
- - !ruby/object:Gem::Version
35
- version: 0.5.3
36
39
  - - "~>"
37
40
  - !ruby/object:Gem::Version
38
- version: 0.6.0
41
+ version: '0.9'
39
42
  type: :runtime
40
43
  prerelease: false
41
44
  version_requirements: !ruby/object:Gem::Requirement
42
45
  requirements:
43
- - - ">="
44
- - !ruby/object:Gem::Version
45
- version: 0.5.3
46
46
  - - "~>"
47
47
  - !ruby/object:Gem::Version
48
- version: 0.6.0
48
+ version: '0.9'
49
49
  description: Simple wrapper for the GitHub API
50
50
  email:
51
51
  - wynn.netherland@gmail.com
@@ -60,17 +60,31 @@ files:
60
60
  - LICENSE.md
61
61
  - README.md
62
62
  - Rakefile
63
+ - lib/ext/sawyer/relation.rb
63
64
  - lib/octokit.rb
64
65
  - lib/octokit/arguments.rb
65
66
  - lib/octokit/authentication.rb
66
67
  - lib/octokit/client.rb
67
- - lib/octokit/client/authorizations.rb
68
+ - lib/octokit/client/actions_artifacts.rb
69
+ - lib/octokit/client/actions_secrets.rb
70
+ - lib/octokit/client/actions_workflow_jobs.rb
71
+ - lib/octokit/client/actions_workflow_runs.rb
72
+ - lib/octokit/client/actions_workflows.rb
73
+ - lib/octokit/client/apps.rb
74
+ - lib/octokit/client/checks.rb
75
+ - lib/octokit/client/code_scanning.rb
76
+ - lib/octokit/client/codespaces_secrets.rb
77
+ - lib/octokit/client/commit_branches.rb
68
78
  - lib/octokit/client/commit_comments.rb
79
+ - lib/octokit/client/commit_pulls.rb
69
80
  - lib/octokit/client/commits.rb
81
+ - lib/octokit/client/community_profile.rb
70
82
  - lib/octokit/client/contents.rb
83
+ - lib/octokit/client/dependabot_secrets.rb
71
84
  - lib/octokit/client/deployments.rb
72
85
  - lib/octokit/client/downloads.rb
73
86
  - lib/octokit/client/emojis.rb
87
+ - lib/octokit/client/environments.rb
74
88
  - lib/octokit/client/events.rb
75
89
  - lib/octokit/client/feeds.rb
76
90
  - lib/octokit/client/gists.rb
@@ -81,23 +95,31 @@ files:
81
95
  - lib/octokit/client/legacy_search.rb
82
96
  - lib/octokit/client/licenses.rb
83
97
  - lib/octokit/client/markdown.rb
98
+ - lib/octokit/client/marketplace.rb
84
99
  - lib/octokit/client/meta.rb
85
100
  - lib/octokit/client/milestones.rb
86
101
  - lib/octokit/client/notifications.rb
102
+ - lib/octokit/client/oauth_applications.rb
87
103
  - lib/octokit/client/objects.rb
88
104
  - lib/octokit/client/organizations.rb
89
105
  - lib/octokit/client/pages.rb
90
- - lib/octokit/client/pub_sub_hubbub.rb
106
+ - lib/octokit/client/projects.rb
91
107
  - lib/octokit/client/pull_requests.rb
92
108
  - lib/octokit/client/rate_limit.rb
109
+ - lib/octokit/client/reactions.rb
93
110
  - lib/octokit/client/refs.rb
94
111
  - lib/octokit/client/releases.rb
95
112
  - lib/octokit/client/repositories.rb
113
+ - lib/octokit/client/repository_invitations.rb
114
+ - lib/octokit/client/reviews.rb
96
115
  - lib/octokit/client/say.rb
97
116
  - lib/octokit/client/search.rb
98
117
  - lib/octokit/client/service_status.rb
118
+ - lib/octokit/client/source_import.rb
99
119
  - lib/octokit/client/stats.rb
100
120
  - lib/octokit/client/statuses.rb
121
+ - lib/octokit/client/tokens.rb
122
+ - lib/octokit/client/traffic.rb
101
123
  - lib/octokit/client/users.rb
102
124
  - lib/octokit/configurable.rb
103
125
  - lib/octokit/connection.rb
@@ -112,12 +134,14 @@ files:
112
134
  - lib/octokit/enterprise_management_console_client/management_console.rb
113
135
  - lib/octokit/error.rb
114
136
  - lib/octokit/gist.rb
137
+ - lib/octokit/manage_ghes_client.rb
138
+ - lib/octokit/manage_ghes_client/manage_ghes.rb
115
139
  - lib/octokit/middleware/follow_redirects.rb
116
140
  - lib/octokit/organization.rb
117
- - lib/octokit/preview.rb
118
141
  - lib/octokit/rate_limit.rb
119
142
  - lib/octokit/repo_arguments.rb
120
143
  - lib/octokit/repository.rb
144
+ - lib/octokit/response/base_middleware.rb
121
145
  - lib/octokit/response/feed_parser.rb
122
146
  - lib/octokit/response/raise_error.rb
123
147
  - lib/octokit/user.rb
@@ -127,7 +151,8 @@ files:
127
151
  homepage: https://github.com/octokit/octokit.rb
128
152
  licenses:
129
153
  - MIT
130
- metadata: {}
154
+ metadata:
155
+ rubygems_mfa_required: 'true'
131
156
  post_install_message:
132
157
  rdoc_options: []
133
158
  require_paths:
@@ -136,17 +161,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
136
161
  requirements:
137
162
  - - ">="
138
163
  - !ruby/object:Gem::Version
139
- version: 1.9.2
164
+ version: 2.7.0
140
165
  required_rubygems_version: !ruby/object:Gem::Requirement
141
166
  requirements:
142
167
  - - ">="
143
168
  - !ruby/object:Gem::Version
144
169
  version: 1.3.5
145
170
  requirements: []
146
- rubyforge_project:
147
- rubygems_version: 2.4.5.1
171
+ rubygems_version: 3.0.3.1
148
172
  signing_key:
149
173
  specification_version: 4
150
174
  summary: Ruby toolkit for working with the GitHub API
151
175
  test_files: []
152
- has_rdoc: