-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix(rbs/ci): fix meta-tags issue * feat(rbs/ci): remove manual import from steepfile * feat(rbs/ci): add meta-tags rbs file to sig folder to check with steep * feat(rbs/ci): add steep to CI * feat(rbs/ci): ci fix
- Loading branch information
Showing
14 changed files
with
331 additions
and
35 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -20,3 +20,5 @@ gems: | |
ignore: true | ||
- name: steep | ||
ignore: true | ||
- name: meta-tags | ||
ignore: true |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
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 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
module MetaTags | ||
def self.config: () -> Configuration | ||
def self.configure: () { (Configuration) -> void } -> void | ||
|
||
interface _Stringish | ||
def to_str: () -> String | ||
end | ||
|
||
interface _Timish | ||
def iso8601: () -> String | ||
end | ||
|
||
interface _MetaTagish | ||
def to_meta_tags: () -> Hash[String | Symbol, untyped] | ||
end | ||
end |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
module MetaTags | ||
class Configuration | ||
attr_accessor title_limit: Integer? | ||
attr_accessor truncate_site_title_first: bool | ||
attr_accessor description_limit: Integer | ||
attr_accessor keywords_limit: Integer | ||
attr_accessor keywords_separator: String | ||
attr_accessor keywords_lowercase: bool | ||
attr_accessor open_meta_tags: bool | ||
attr_accessor minify_output: bool | ||
attr_reader property_tags: Array[String | Symbol] | ||
attr_accessor skip_canonical_links_on_noindex: bool | ||
|
||
def initialize: () -> void | ||
def default_property_tags: () -> Array[String | Symbol] | ||
def open_meta_tags?: () -> bool | ||
def reset_defaults!: () -> void | ||
end | ||
end |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module MetaTags | ||
class ContentTag < Tag | ||
def render: (_ActionViewBase view) -> untyped | ||
end | ||
end |
Oops, something went wrong.