-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bump octokit from 7.1.0 to 7.2.0 #534
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bumps [octokit](https://github.com/octokit/octokit.rb) from 7.1.0 to 7.2.0. - [Release notes](https://github.com/octokit/octokit.rb/releases) - [Changelog](https://github.com/octokit/octokit.rb/blob/main/RELEASE.md) - [Commits](octokit/octokit.rb@v7.1.0...v7.2.0) --- updated-dependencies: - dependency-name: octokit dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
gem compare faraday 2.7.10 2.7.11 Compared versions: ["2.7.10", "2.7.11"]
DIFFERENT date:
2.7.10: 2023-07-06 00:00:00 UTC
2.7.11: 2023-09-12 00:00:00 UTC
DIFFERENT metadata:
2.7.10: {"homepage_uri"=>"https://lostisland.github.io/faraday", "changelog_uri"=>"https://github.com/lostisland/faraday/releases/tag/v2.7.10", "source_code_uri"=>"https://github.com/lostisland/faraday", "bug_tracker_uri"=>"https://github.com/lostisland/faraday/issues"}
2.7.11: {"homepage_uri"=>"https://lostisland.github.io/faraday", "changelog_uri"=>"https://github.com/lostisland/faraday/releases/tag/v2.7.11", "source_code_uri"=>"https://github.com/lostisland/faraday", "bug_tracker_uri"=>"https://github.com/lostisland/faraday/issues"}
DIFFERENT version:
2.7.10: 2.7.10
2.7.11: 2.7.11
DIFFERENT files:
2.7.10->2.7.11:
* Changed:
README.md +21/-10
lib/faraday/response/raise_error.rb +18/-3
lib/faraday/version.rb +1/-1
spec/faraday/response/raise_error_spec.rb +16/-1
spec/faraday_spec.rb +8/-4
DIFFERENT runtime dependencies:
2.7.10->2.7.11:
* Added:
base64 [">= 0"] (runtime) |
gem compare --diff faraday 2.7.10 2.7.11 Compared versions: ["2.7.10", "2.7.11"]
DIFFERENT files:
2.7.10->2.7.11:
* Changed:
README.md
--- /tmp/d20231002-1880-43u9dg/faraday-2.7.10/README.md 2023-10-02 02:03:25.424507480 +0000
+++ /tmp/d20231002-1880-43u9dg/faraday-2.7.11/README.md 2023-10-02 02:03:25.444507585 +0000
@@ -1 +1 @@
-# [![Faraday](./docs/assets/img/repo-card-slim.png)][website]
+# [![Faraday](./docs/_media/home-logo.svg)][website]
@@ -9,2 +9,17 @@
-You probably don't want to use Faraday directly in your project, as it will lack an actual client library to perform
-requests. Instead, you probably want to have a look at [Awesome Faraday][awesome] for a list of available adapters.
+Take a look at [Awesome Faraday][awesome] for a list of available adapters and middleware.
+
+## Why use Faraday?
+
+Faraday gives you the power of Rack middleware for manipulating HTTP requests and responses,
+making it easier to build sophisticated API clients or web service libraries that abstract away
+the details of how HTTP requests are made.
+
+Faraday comes with a lot of features out of the box, such as:
+* Support for multiple adapters (Net::HTTP, Typhoeus, Patron, Excon, HTTPClient, and more)
+* Persistent connections (keep-alive)
+* Parallel requests
+* Automatic response parsing (JSON, XML, YAML)
+* Customization of the request/response cycle with middleware
+* Support for streaming responses
+* Support for uploading files
+* And much more!
@@ -16 +31 @@
-Need more details? See the [Faraday API Documentation][apidoc] to see how it works internally, or take a look at [Advanced techniques for calling HTTP APIs in Ruby](https://mattbrictson.com/blog/advanced-http-techniques-in-ruby) blog post from @mattbrictson 🚀
+Need more details? See the [Faraday API Documentation][apidoc] to see how it works internally, or take a look at [Advanced techniques for calling HTTP APIs in Ruby](https://mattbrictson.com/blog/advanced-http-techniques-in-ruby) blog post from [@mattbrictson](https://github.com/mattbrictson) 🚀
@@ -46 +61 @@
-© 2009 - 2023, the [Faraday Team][faraday_team]. Website and branding design by [Elena Lo Piccolo](https://elelopic.design).
+© 2009 - 2023, the Faraday Team. Website and branding design by [Elena Lo Piccolo](https://elelopic.design).
@@ -50,2 +65 @@
-[faraday_team]: https://lostisland.github.io/faraday/team
-[contributing]: https://github.com/lostisland/faraday/blob/master/.github/CONTRIBUTING.md
+[contributing]: https://github.com/lostisland/faraday/blob/main/.github/CONTRIBUTING.md
@@ -54,3 +67,0 @@
-[jruby]: http://jruby.org/
-[rubinius]: http://rubini.us/
-[license]: LICENSE.md
lib/faraday/response/raise_error.rb
--- /tmp/d20231002-1880-43u9dg/faraday-2.7.10/lib/faraday/response/raise_error.rb 2023-10-02 02:03:25.432507522 +0000
+++ /tmp/d20231002-1880-43u9dg/faraday-2.7.11/lib/faraday/response/raise_error.rb 2023-10-02 02:03:25.448507606 +0000
@@ -41,0 +42,8 @@
+ # Returns a hash of response data with the following keys:
+ # - status
+ # - headers
+ # - body
+ # - request
+ #
+ # The `request` key is omitted when the middleware is explicitly
+ # configured with the option `include_request: false`.
@@ -43 +51 @@
- {
+ response = {
@@ -46 +54,8 @@
- body: env.body,
+ body: env.body
+ }
+
+ # Include the request data by default. If the middleware was explicitly
+ # configured to _not_ include request data, then omit it.
+ return response unless options.fetch(:include_request, true)
+
+ response.merge(
@@ -55 +70 @@
- }
+ )
lib/faraday/version.rb
--- /tmp/d20231002-1880-43u9dg/faraday-2.7.10/lib/faraday/version.rb 2023-10-02 02:03:25.432507522 +0000
+++ /tmp/d20231002-1880-43u9dg/faraday-2.7.11/lib/faraday/version.rb 2023-10-02 02:03:25.452507627 +0000
@@ -4 +4 @@
- VERSION = '2.7.10'
+ VERSION = '2.7.11'
spec/faraday/response/raise_error_spec.rb
--- /tmp/d20231002-1880-43u9dg/faraday-2.7.10/spec/faraday/response/raise_error_spec.rb 2023-10-02 02:03:25.440507564 +0000
+++ /tmp/d20231002-1880-43u9dg/faraday-2.7.11/spec/faraday/response/raise_error_spec.rb 2023-10-02 02:03:25.456507648 +0000
@@ -152 +152 @@
- b.response :raise_error
+ b.response :raise_error, **middleware_options
@@ -159,0 +160 @@
+ let(:middleware_options) { {} }
@@ -180,0 +182,14 @@
+ end
+ end
+
+ context 'when the include_request option is set to false' do
+ let(:middleware_options) { { include_request: false } }
+
+ it 'does not include request info in the exception' do
+ expect { perform_request }.to raise_error(Faraday::BadRequestError) do |ex|
+ expect(ex.response.keys).to contain_exactly(
+ :status,
+ :headers,
+ :body
+ )
+ end
spec/faraday_spec.rb
--- /tmp/d20231002-1880-43u9dg/faraday-2.7.10/spec/faraday_spec.rb 2023-10-02 02:03:25.440507564 +0000
+++ /tmp/d20231002-1880-43u9dg/faraday-2.7.11/spec/faraday_spec.rb 2023-10-02 02:03:25.456507648 +0000
@@ -21,4 +21,8 @@
- expect { Faraday.this_method_does_not_exist }.to raise_error(
- NoMethodError,
- "undefined method `this_method_does_not_exist' for Faraday:Module"
- )
+ expected_message =
+ if RUBY_VERSION >= '3.3'
+ "undefined method `this_method_does_not_exist' for module Faraday"
+ else
+ "undefined method `this_method_does_not_exist' for Faraday:Module"
+ end
+
+ expect { Faraday.this_method_does_not_exist }.to raise_error(NoMethodError, expected_message) |
gem compare octokit 7.1.0 7.2.0 Compared versions: ["7.1.0", "7.2.0"]
DIFFERENT date:
7.1.0: 2023-08-24 00:00:00 UTC
7.2.0: 2023-09-29 00:00:00 UTC
DIFFERENT rubygems_version:
7.1.0: 3.4.0.dev
7.2.0: 3.4.20
DIFFERENT version:
7.1.0: 7.1.0
7.2.0: 7.2.0
DIFFERENT files:
7.1.0->7.2.0:
* Changed:
lib/octokit/client/apps.rb +25/-0
lib/octokit/version.rb +1/-1 |
gem compare --diff octokit 7.1.0 7.2.0 Compared versions: ["7.1.0", "7.2.0"]
DIFFERENT files:
7.1.0->7.2.0:
* Changed:
lib/octokit/client/apps.rb
--- /tmp/d20231002-2073-zroxb/octokit-7.1.0/lib/octokit/client/apps.rb 2023-10-02 02:03:34.836556991 +0000
+++ /tmp/d20231002-2073-zroxb/octokit-7.2.0/lib/octokit/client/apps.rb 2023-10-02 02:03:34.856557093 +0000
@@ -219,0 +220,25 @@
+
+ # Returns a list of webhook deliveries for the webhook configured for a GitHub App.
+ #
+ # @param options [Hash] A customizable set of options
+ #
+ # @see https://docs.github.com/en/rest/apps/webhooks#list-deliveries-for-an-app-webhook
+ #
+ # @return [Array<Hash>] an array of hook deliveries
+ def list_app_hook_deliveries(options = {})
+ paginate('app/hook/deliveries', options) do |data, last_response|
+ data.concat last_response.data
+ end
+ end
+
+ # Redeliver a delivery for the webhook configured for a GitHub App.
+ #
+ # @param delivery_id [Integer] The id of a GitHub App Hook Delivery
+ # @param options [Hash] A customizable set of options
+ #
+ # @see https://developer.github.com/v3/apps/#redeliver-a-delivery-for-an-app-webhook
+ #
+ # @return [Boolean] Success
+ def deliver_app_hook(delivery_id, options = {})
+ boolean_from_response :post, "app/hook/deliveries/#{delivery_id}/attempts", options
+ end
lib/octokit/version.rb
--- /tmp/d20231002-2073-zroxb/octokit-7.1.0/lib/octokit/version.rb 2023-10-02 02:03:34.852557073 +0000
+++ /tmp/d20231002-2073-zroxb/octokit-7.2.0/lib/octokit/version.rb 2023-10-02 02:03:34.868557154 +0000
@@ -10 +10 @@
- MINOR = 1
+ MINOR = 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Bumps octokit from 7.1.0 to 7.2.0.
Release notes
Sourced from octokit's releases.
Commits
3b354ba
v7.2.0bd95b27
[feat]: add methods for app hook deliveries733b5b5
rubocop fixese264213
[deps]: Bump peter-evans/create-or-update-comment179cd00
Bump peter-evans/create-or-update-comment8e3915f
[maint] Bump peter-evans/create-or-update-comment926af70
Bump peter-evans/create-or-update-commentde11288
ci: don't put a comment on PRs from dependabot or renovatedaa5387
[deps] Update rubocop requirement from 1.56.2 to 1.56.3ff58528
[deps] Bump peter-evans/create-or-update-commentDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditions
will show all of the ignore conditions of the specified dependency@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)