-
Notifications
You must be signed in to change notification settings - Fork 276
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #235 from kpumuk/ruby-31
Ruby 3.1 Support
- Loading branch information
Showing
18 changed files
with
207 additions
and
193 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
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
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,56 @@ | ||
class ::Hash[unchecked out K, unchecked out V] | ||
def with_indifferent_access: () -> instance | ||
def deep_merge!: (instance other) -> self | ||
def with_indifferent_access: () -> ActiveSupport::HashWithIndifferentAccess[K, V] | ||
def deep_merge!: (instance | ActiveSupport::HashWithIndifferentAccess[K, V] other) -> self | ||
end | ||
|
||
class ::Object | ||
def presence: () -> String? | ||
def blank?: () -> bool | ||
def present?: () -> bool | ||
end | ||
|
||
class ::Loofah | ||
module TextBehavior | ||
def text: (?Hash[Symbol, untyped]? options) -> String | ||
end | ||
|
||
class DocumentFragment | ||
include TextBehavior | ||
end | ||
|
||
def self.fragment: (String tags, ?String? encoding) -> DocumentFragment | ||
end | ||
|
||
class ::Rails | ||
end | ||
|
||
module ActionController | ||
class Base | ||
include _ActionControllerBase | ||
|
||
def self.helpers: () -> _ActionViewBase | ||
end | ||
end | ||
|
||
module ActiveSupport | ||
class HashWithIndifferentAccess[unchecked out K, unchecked out V] < Hash[K, V] | ||
def with_indifferent_access: () -> self | ||
def deep_merge!: (instance | Hash[K, V] other) -> self | ||
end | ||
end | ||
|
||
interface _ActionControllerBase | ||
def render: (*untyped args) { () -> untyped } -> untyped | ||
end | ||
|
||
interface _ActionViewBase | ||
def tag: (String name, ?Hash[String | Symbol, untyped] options, ?bool open) -> void | ||
|
||
def content_tag: (String name, String content, ?Hash[String | Symbol, untyped] options, ?bool open) -> void | ||
|
||
def safe_join: (Array[String], String) -> String | ||
|
||
def truncate: (String text, ?Hash[Symbol, untyped] options) -> String | ||
|
||
def strip_tags: (String html) -> String | ||
end |
This file was deleted.
Oops, something went wrong.
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
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
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