Skip to content

Bump rubocop from 0.86.0 to 1.13.0#727

Closed
dependabot[bot] wants to merge 36 commits intohandon-productionfrom
dependabot/bundler/rubocop-1.13.0
Closed

Bump rubocop from 0.86.0 to 1.13.0#727
dependabot[bot] wants to merge 36 commits intohandon-productionfrom
dependabot/bundler/rubocop-1.13.0

Conversation

@dependabot
Copy link
Copy Markdown

@dependabot dependabot Bot commented on behalf of github Apr 26, 2021

Bumps rubocop from 0.86.0 to 1.13.0.

Release notes

Sourced from rubocop's releases.

RuboCop 1.13

New features

Bug fixes

  • #5576: Fix problem with inherited Include parameters. (@​jonas054)
  • #9690: Fix an incorrect auto-correct for Style/IfUnlessModifier when using a method with heredoc argument. (@​koic)
  • #9681: Fix an incorrect auto-correct for Style/RedundantBegin when using modifier if single statement in begin block. (@​koic)
  • #9698: Fix an error for Style/StructInheritance when extending instance of Struct without do ... end and class body is empty and single line definition. (@​koic)
  • #9700: Avoid warning about Ruby version mismatch. (@​marcandre)
  • #9636: Resolve symlinks when excluding directories. (@​ob-stripe)
  • #9707: Fix false positive for Style/MethodCallWithArgsParentheses with omit_parentheses style on an endless defs node. (@​dvandersluis)
  • #9689: Treat parens around array items the same for children and deeper descendants. (@​dvandersluis)
  • #9676: Fix an error for Style/StringChars when using split without parentheses. (@​koic)
  • #9712: Fix an incorrect auto-correct for Style/HashConversion when Hash[] as a method argument without parentheses. (@​koic)
  • #9704: Fix an incorrect auto-correct for Style/SingleLineMethods when single line method call without parentheses. (@​koic)
  • #9683: Fix an incorrect auto-correct for Style/HashConversion when using zip method without argument in Hash[]. (@​koic)
  • #9715: Fix an incorrect auto-correct for EnforcedStyle: require_parentheses of Style/MethodCallWithArgsParentheses with Style/RescueModifier. (@​koic)

Changes

  • #7544: Add --no-parallel (-P/--parallel can not be combined with --auto-correct). (@​kwerle)
  • #9648: Drop support for Ruby 2.4. (@​koic)
  • #9647: The parallel flag will now be automatically ignored when combined with --auto-correct, --auto-gen-config, or -F/--fail-fast. Previously, an error was raised and execution stopped. (@​rrosenblum)

RuboCop 1.12.1

Bug fixes

  • #9649: Fix when highlights contain multibyte characters. ([@​osyo-manga][])
  • #9646: Fix an incorrect auto-correct for EnforcedStyle: require_parentheses of Style/MethodCallWithArgsParentheses with EnforcedStyle: conditionals of Style/AndOr. (@​koic)
  • #9608: Fix a false positive for Layout/EmptyLineAfterGuardClause when using guard clause is after rubocop:enable comment. (@​koic)
  • #9637: Allow parentheses for forwarded args in Style/MethodCallWithArgsParentheses's omit_parentheses style to avoid endless range ambiguity. ([@​gsamokovarov][])
  • #9641: Fix Layout/MultilineMethodCallIndentation triggering on method calls that look like operators. (@​dvandersluis)
  • #9638: Fix an error for Layout/LineLength when over limit at right hand side of multiple assignment. (@​koic)
  • #9639: Fix Style/RedundantBegin removing comments on assignment statement correction. ([@​marcotc][])

... (truncated)

Changelog

Sourced from rubocop's changelog.

1.13.0 (2021-04-20)

New features

Bug fixes

  • #5576: Fix problem with inherited Include parameters. ([@​jonas054][])
  • #9690: Fix an incorrect auto-correct for Style/IfUnlessModifier when using a method with heredoc argument. ([@​koic][])
  • #9681: Fix an incorrect auto-correct for Style/RedundantBegin when using modifier if single statement in begin block. ([@​koic][])
  • #9698: Fix an error for Style/StructInheritance when extending instance of Struct without do ... end and class body is empty and single line definition. ([@​koic][])
  • #9700: Avoid warning about Ruby version mismatch. ([@​marcandre][])
  • #9636: Resolve symlinks when excluding directories. ([@​ob-stripe][])
  • #9707: Fix false positive for Style/MethodCallWithArgsParentheses with omit_parentheses style on an endless defs node. ([@​dvandersluis][])
  • #9689: Treat parens around array items the same for children and deeper descendants. ([@​dvandersluis][])
  • #9676: Fix an error for Style/StringChars when using split without parentheses. ([@​koic][])
  • #9712: Fix an incorrect auto-correct for Style/HashConversion when Hash[] as a method argument without parentheses. ([@​koic][])
  • #9704: Fix an incorrect auto-correct for Style/SingleLineMethods when single line method call without parentheses. ([@​koic][])
  • #9683: Fix an incorrect auto-correct for Style/HashConversion when using zip method without argument in Hash[]. ([@​koic][])
  • #9715: Fix an incorrect auto-correct for EnforcedStyle: require_parentheses of Style/MethodCallWithArgsParentheses with Style/RescueModifier. ([@​koic][])

Changes

  • #7544: Add --no-parallel (-P/--parallel can not be combined with --auto-correct). ([@​kwerle][])
  • #9648: Drop support for Ruby 2.4. ([@​koic][])
  • #9647: The parallel flag will now be automatically ignored when combined with --auto-correct, --auto-gen-config, or -F/--fail-fast. Previously, an error was raised and execution stopped. ([@​rrosenblum][])

1.12.1 (2021-04-04)

Bug fixes

  • #9649: Fix when highlights contain multibyte characters. ([@​osyo-manga][])
  • #9646: Fix an incorrect auto-correct for EnforcedStyle: require_parentheses of Style/MethodCallWithArgsParentheses with EnforcedStyle: conditionals of Style/AndOr. ([@​koic][])
  • #9608: Fix a false positive for Layout/EmptyLineAfterGuardClause when using guard clause is after rubocop:enable comment. ([@​koic][])
  • #9637: Allow parentheses for forwarded args in Style/MethodCallWithArgsParentheses's omit_parentheses style to avoid endless range ambiguity. ([@​gsamokovarov][])
  • #9641: Fix Layout/MultilineMethodCallIndentation triggering on method calls that look like operators. ([@​dvandersluis][])
  • #9638: Fix an error for Layout/LineLength when over limit at right hand side of multiple assignment. ([@​koic][])
  • #9639: Fix Style/RedundantBegin removing comments on assignment statement correction. ([@​marcotc][])
  • #9671: Fix an incorrect auto-correct for Lint/AmbiguousOperator with Style/MethodCallWithArgsParentheses. ([@​koic][])
  • #9645: Fix an incorrect auto-correct for Style/SingleLineMethods when using single line class method definition. ([@​koic][])
  • #9644: Fix an error and an incorrect auto-correct for Style/MultilineMethodSignature when line break after opening parenthesis. ([@​koic][])
  • #9672: Fix an incorrect auto-correct for Style/HashConversion when using multi-argument Hash[] as a method argument. ([@​koic][])

1.12.0 (2021-03-24)

New features

... (truncated)

Commits
  • 76bc0a0 Cut 1.13
  • be91a13 Update Changelog
  • ad11b07 Tweak a changelog entry
  • cd3db12 Fix an incorrect auto-correct for Style/MethodCallWithArgsParentheses
  • bc6f98b Add --no-parallel command-line option (#9640)
  • fe934c2 [Fix #9636] Resolve symlinks when excluding directories
  • 9c36847 Fix an incorrect auto-correct for Style/HashConversion
  • c53803b [Fix #9689] Treat parens around array items the same for children and deeper ...
  • 6136239 Fix typos
  • bd27fcb [Fix #5576] Treat relativity of Include parameters correctly
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot 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 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)

ClearlyClaire and others added 30 commits October 19, 2020 14:45
…on#14800)

* Do not serve account actors at all in limited federation mode

When an account is fetched without a signature from an allowed instance,
return an error.

This isn't really an improvement in security, as the only information that was
previously returned was required protocol-level info, and the only personal bit
was the existence of the account. The existence of the account can still be
checked by issuing a webfinger query, as those are accepted without signatures.

However, this change makes it so that unallowed instances won't create account
records on their end when they find a reference to an unknown account.

The previous behavior of rendering a limited list of fields, instead of not
rendering the actor at all, was in order to prevent situations in which two
instances in Authorized Fetch mode or Limited Federation mode would fail to
reach each other because resolving an account would require a signed query…
from an account which can only be fetched with a signed query itself. However,
this should now be fine as fetching accounts is done by signing on behalf of
the special instance actor, which does not require any kind of valid signature
to be fetched.

* Fix tests
…sts (mastodon#14479)

* Add tests

* Fix handling of Reject Follow when a matching follow relationship exists

Regression from mastodon#12199
There are edge cases where requests to certain hosts timeout when
using the vanilla HTTP.rb gem, which the goldfinger gem uses. Now
that we no longer need to support OStatus servers, webfinger logic
is so simple that there is no point encapsulating it in a gem, so
we can just use our own Request class. With that, we benefit from
more robust timeout code and IPv4/IPv6 resolution.

Fix mastodon#14091
)

* Change content-type to be always computed from file data

Restore previous behavior, detecting the content-type isn't very
expensive, and some instances may serve files as application/octet-stream
regardless of their true type, making fetching media from them fail, while
it used to work pre-3.2.0.

* Add test
* Fix contrast calculation for thumbnail color extraction

Luminance calculation was using 0-255 RGB values instead of 0-1 sRGB values,
leading to incorrectly-computed contrast values.

Since we use ColorDiff already, just use its XYZ colorspace conversion code
to get the value.

* Require at least 3:1 contrast for both accent and foreground colors

* Lower required contrast for the accent color
* Add support for inlined objects in activity audience

* Add tests
…#14471)

* use custom private boost icon for detail status

* only use className
…odon#14656)

Follow-up to mastodon#14359

In the case of limited toots, the receiver may not be explicitly part of the
audience. If a specific user's inbox URI was specified, it makes sense to
dereference the toot from the corresponding user, instead of trying to find
someone in the explicit audience.
* Add support for latest HTTP Signatures spec draft

https://www.ietf.org/id/draft-ietf-httpbis-message-signatures-00.html

- add support for the “hs2019” signature algorithm (assumed to be equivalent
  to RSA-SHA256, since we do not have a mechanism to specify the algorithm
  within the key metadata yet)
- add support for (created) and (expires) pseudo-headers and related
  signature parameters, when using the hs2019 signature algorithm
- adjust default “headers” parameter while being backwards-compatible with
  previous implementation
- change the acceptable time window logic from 12 hours surrounding the “date”
  header to accepting signatures created up to 1 hour in the future and
  expiring up to 1 hour in the past (but only allowing expiration dates up to
  12 hours after the creation date)
  This doesn't conform with the current draft, as it doesn't permit accounting
  for clock skew.
  This, however, should be addressed in a next version of the draft:
  httpwg/http-extensions#1235

* Add additional signature requirements

* Rewrite signature params parsing using Parslet

* Make apparent which signature algorithm Mastodon on verification failure

Mastodon uses RSASSA-PKCS1-v1_5, which is not recommended for new applications,
and new implementers may thus unknowingly use RSASSA-PSS.

* Add workaround for PeerTube's invalid signature header

The previous parser allowed incorrect Signature headers, such as
those produced by old versions of the `http-signature` node.js package,
and seemingly used by PeerTube.

This commit adds a workaround for that.

* Fix `signature_key_id` raising an exception

Previously, parsing failures would result in `signature_key_id` being nil,
but the parser changes made that result in an exception.

This commit changes the `signature_key_id` method to return `nil` in case
of parsing failures.

* Move extra HTTP signature helper methods to private methods

* Relax (request-target) requirement to (request-target) || digest

This lets requests from Plume work without lowering security significantly.
- 検索クエリを分かち書きを行わない言語に最適化
- 形態素解析を行うためにElasticsearch側にkuromojiを導入
- 検索結果をマッチ度順ではなく日付順に変更
- 投票作成時,その選択肢の数の上限を4から16に変更
- 投票作成時,その有効期限をより細かく設定出来るように変更
- Announcement機能をマージ(lindwurm/mastodon)
- 元々導入していたhotaさんのannouncements機能と,本家announcements機能において,CSSのみ競合が発生
- class名が両方とも「announcements」となっており重複していた
- 元々のannouncementsの方を「announcements2」に変更
- ユニークユーザ5人以上で選出されるものを2人以上で選出されるよう変更
highemerly and others added 6 commits October 20, 2020 08:17
- カスタム絵文字としてユーザのアイコンが使える機能
- 対象はトゥート,投票の選択肢,お知らせ,アカウントプロフィール欄
- 自サーバの人が他サーバのアカウントのプロフィール絵文字を使うことはできる
- 他サーバの人がプロフィール絵文字を使うことはできない
- 投稿に,文字の投稿が含まれず,かつカスタム絵文字が1つだけの場合に特大表示(7em)する
- それに伴ってカスタム絵文字が段落に1つしか含まれない場合にちょっと大きく表示(4em)する機能は削除
- InstanceTickerを有効にするテーマの場合,はんドンクラブのティッカーは非表示にしていた
- これまでは適用範囲がHTL/FTL/LTLのみだったが,今回それに加えてnotificationも追加した
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file ruby Pull requests that update Ruby code labels Apr 26, 2021
@highemerly highemerly force-pushed the handon-production branch from fb4a8f8 to 6fc87e3 Compare May 16, 2021 04:29
@dependabot @github
Copy link
Copy Markdown
Author

dependabot Bot commented on behalf of github May 16, 2021

Looks like rubocop is up-to-date now, so this is no longer needed.

@dependabot dependabot Bot closed this May 16, 2021
@dependabot dependabot Bot deleted the dependabot/bundler/rubocop-1.13.0 branch May 16, 2021 04:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file ruby Pull requests that update Ruby code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants