ruby / gem_rbs_collection

A collection of RBS for gems.
MIT License
246 stars 101 forks source link

ActiveSupport Object#blank? #592

Closed hibariya closed 2 weeks ago

github-actions[bot] commented 2 weeks ago

@hibariya Thanks for your contribution!

Please follow the instructions below for each change. See also: https://github.com/ruby/gem_rbs_collection/blob/main/docs/CONTRIBUTING.md

Available commands

You can use the following commands by commenting on this PR.


activesupport

You changed RBS files for an existing gem. You can merge this PR yourself because you are a reviewer of this gem. Just comment /merge to merge this PR.

You can also request a review from other reviewers if you want.

ksss commented 2 weeks ago
$ bundle exec rbs diff --detail --format diff --type-name String --before gems/activesupport/6.0 --after hibariya-hi-activesupport-jun-8a/6.0
- [::String public] def blank?: () -> untyped
+ [::String public] def blank?: () -> bool

- [::Object public] def present?: () -> untyped
+ [::Object public] def present?: () -> bool

- [::Object public] def presence: () -> untyped
+ [::Object public] def presence: () -> self?

- [::Object public] def self.blank?: () -> untyped
+ [::Object public] def self.blank?: () -> bool

- [::Object public] def self.present?: () -> untyped
+ [::Object public] def self.present?: () -> bool

- [::Object public] def self.presence: () -> untyped
+ [::Object public] def self.presence: () -> self?

- [::String] BLANK_RE: untyped
+ [::String] BLANK_RE: ::Regexp

- [::String] ENCODED_BLANKS: untyped
+ [::String] ENCODED_BLANKS: Concurrent::Map[::Encoding, ::Regexp]
ksss commented 2 weeks ago

https://github.com/rails/rails/blob/v6.0.6.1/activesupport/lib/active_support/core_ext/object/blank.rb