web-author 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.ruby-version +1 -0
- data/CHANGELOG.md +5 -0
- data/LICENSE.txt +21 -0
- data/README.md +234 -0
- data/Rakefile +12 -0
- data/lib/web_author/author/strategies/author_from_ld_schema.rb +54 -0
- data/lib/web_author/author/strategies/author_from_meta.rb +16 -0
- data/lib/web_author/author/strategy.rb +25 -0
- data/lib/web_author/json_ld_schema_processor.rb +46 -0
- data/lib/web_author/ld_author.rb +30 -0
- data/lib/web_author/ld_schema.rb +74 -0
- data/lib/web_author/page.rb +54 -0
- data/lib/web_author/version.rb +5 -0
- data/lib/web_author.rb +14 -0
- data/sig/webauthor.rbs +4 -0
- data/sorbet/config +4 -0
- data/sorbet/rbi/annotations/.gitattributes +1 -0
- data/sorbet/rbi/annotations/minitest.rbi +119 -0
- data/sorbet/rbi/annotations/mocha.rbi +34 -0
- data/sorbet/rbi/annotations/rainbow.rbi +269 -0
- data/sorbet/rbi/annotations/webmock.rbi +9 -0
- data/sorbet/rbi/gems/.gitattributes +1 -0
- data/sorbet/rbi/gems/addressable.rbi +203 -0
- data/sorbet/rbi/gems/addressable@2.8.7.rbi +1994 -0
- data/sorbet/rbi/gems/ast.rbi +49 -0
- data/sorbet/rbi/gems/ast@2.4.3.rbi +585 -0
- data/sorbet/rbi/gems/benchmark@0.4.0.rbi +618 -0
- data/sorbet/rbi/gems/bigdecimal.rbi +86 -0
- data/sorbet/rbi/gems/bigdecimal@3.1.9.rbi +8 -0
- data/sorbet/rbi/gems/crack.rbi +62 -0
- data/sorbet/rbi/gems/crack@1.0.0.rbi +145 -0
- data/sorbet/rbi/gems/erubi@1.13.1.rbi +155 -0
- data/sorbet/rbi/gems/hashdiff.rbi +66 -0
- data/sorbet/rbi/gems/hashdiff@1.1.2.rbi +353 -0
- data/sorbet/rbi/gems/json@2.10.2.rbi +2112 -0
- data/sorbet/rbi/gems/language_server-protocol.rbi +2868 -0
- data/sorbet/rbi/gems/language_server-protocol@3.17.0.4.rbi +9 -0
- data/sorbet/rbi/gems/lint_roller.rbi +75 -0
- data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +240 -0
- data/sorbet/rbi/gems/logger@1.7.0.rbi +963 -0
- data/sorbet/rbi/gems/minitest.rbi +440 -0
- data/sorbet/rbi/gems/minitest@5.25.5.rbi +1547 -0
- data/sorbet/rbi/gems/mocha.rbi +653 -0
- data/sorbet/rbi/gems/mocha@2.7.1.rbi +12 -0
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +159 -0
- data/sorbet/rbi/gems/nokogiri-1.18.6-arm64.rbi +1135 -0
- data/sorbet/rbi/gems/parallel.rbi +88 -0
- data/sorbet/rbi/gems/parallel@1.26.3.rbi +291 -0
- data/sorbet/rbi/gems/parser.rbi +1544 -0
- data/sorbet/rbi/gems/parser@3.3.7.3.rbi +5532 -0
- data/sorbet/rbi/gems/prism.rbi +4090 -0
- data/sorbet/rbi/gems/prism@1.4.0.rbi +41732 -0
- data/sorbet/rbi/gems/public_suffix.rbi +105 -0
- data/sorbet/rbi/gems/public_suffix@6.0.1.rbi +936 -0
- data/sorbet/rbi/gems/racc.rbi +15 -0
- data/sorbet/rbi/gems/racc@1.8.1.rbi +160 -0
- data/sorbet/rbi/gems/rainbow.rbi +122 -0
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +403 -0
- data/sorbet/rbi/gems/rake.rbi +650 -0
- data/sorbet/rbi/gems/rake@13.2.1.rbi +3033 -0
- data/sorbet/rbi/gems/rbi@0.3.1.rbi +6599 -0
- data/sorbet/rbi/gems/rbs@3.9.2.rbi +6978 -0
- data/sorbet/rbi/gems/rdoc.rbi +555 -0
- data/sorbet/rbi/gems/regexp_parser.rbi +1039 -0
- data/sorbet/rbi/gems/regexp_parser@2.10.0.rbi +3795 -0
- data/sorbet/rbi/gems/rexml.rbi +637 -0
- data/sorbet/rbi/gems/rexml@3.4.1.rbi +5346 -0
- data/sorbet/rbi/gems/rubocop-ast.rbi +1470 -0
- data/sorbet/rbi/gems/rubocop-ast@1.43.0.rbi +7765 -0
- data/sorbet/rbi/gems/rubocop-minitest.rbi +450 -0
- data/sorbet/rbi/gems/rubocop-minitest@0.37.1.rbi +2609 -0
- data/sorbet/rbi/gems/rubocop-performance.rbi +593 -0
- data/sorbet/rbi/gems/rubocop-performance@1.24.0.rbi +3359 -0
- data/sorbet/rbi/gems/rubocop-rake.rbi +87 -0
- data/sorbet/rbi/gems/rubocop-rake@0.7.1.rbi +328 -0
- data/sorbet/rbi/gems/rubocop-rubycw.rbi +40 -0
- data/sorbet/rbi/gems/rubocop-rubycw@0.2.2.rbi +91 -0
- data/sorbet/rbi/gems/rubocop.rbi +10554 -0
- data/sorbet/rbi/gems/rubocop@1.75.1.rbi +61875 -0
- data/sorbet/rbi/gems/ruby-progressbar.rbi +321 -0
- data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1318 -0
- data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +9 -0
- data/sorbet/rbi/gems/spoom@1.6.1.rbi +7274 -0
- data/sorbet/rbi/gems/tapioca@0.16.11.rbi +3628 -0
- data/sorbet/rbi/gems/thor@1.3.2.rbi +4378 -0
- data/sorbet/rbi/gems/unicode-display_width.rbi +28 -0
- data/sorbet/rbi/gems/unicode-display_width@3.1.4.rbi +132 -0
- data/sorbet/rbi/gems/unicode-emoji.rbi +18 -0
- data/sorbet/rbi/gems/unicode-emoji@4.0.4.rbi +251 -0
- data/sorbet/rbi/gems/web_author.rbi +20 -0
- data/sorbet/rbi/gems/webmock.rbi +512 -0
- data/sorbet/rbi/gems/webmock@3.25.1.rbi +1792 -0
- data/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi +435 -0
- data/sorbet/rbi/gems/yard.rbi +36 -0
- data/sorbet/rbi/gems/yard@0.9.37.rbi +18379 -0
- data/sorbet/rbi/gems/zeitwerk.rbi +240 -0
- data/sorbet/rbi/gems/zeitwerk@2.7.2.rbi +1141 -0
- data/sorbet/tapioca/config.yml +13 -0
- data/sorbet/tapioca/require.rb +4 -0
- metadata +188 -0
@@ -0,0 +1,62 @@
|
|
1
|
+
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
|
2
|
+
# srb rbi gems
|
3
|
+
|
4
|
+
# typed: true
|
5
|
+
#
|
6
|
+
# If you would like to make changes to this file, great! Please create the gem's shim here:
|
7
|
+
#
|
8
|
+
# https://github.com/sorbet/sorbet-typed/new/master?filename=lib/crack/all/crack.rbi
|
9
|
+
#
|
10
|
+
# crack-1.0.0
|
11
|
+
|
12
|
+
module Crack
|
13
|
+
end
|
14
|
+
module Crack::Util
|
15
|
+
def snake_case(str); end
|
16
|
+
def to_xml_attributes(hash); end
|
17
|
+
extend Crack::Util
|
18
|
+
end
|
19
|
+
class Crack::JSON
|
20
|
+
def self.convert_json_to_yaml(json); end
|
21
|
+
def self.format_dates(output, date_starts, date_ends); end
|
22
|
+
def self.parse(json); end
|
23
|
+
def self.parser_exceptions; end
|
24
|
+
def self.unescape(str); end
|
25
|
+
end
|
26
|
+
class REXMLUtiliyNodeString < String
|
27
|
+
def attributes; end
|
28
|
+
def attributes=(arg0); end
|
29
|
+
end
|
30
|
+
class REXMLUtilityNode
|
31
|
+
def add_node(node); end
|
32
|
+
def attributes; end
|
33
|
+
def attributes=(arg0); end
|
34
|
+
def children; end
|
35
|
+
def children=(arg0); end
|
36
|
+
def initialize(name, normalized_attributes = nil); end
|
37
|
+
def inner_html; end
|
38
|
+
def name; end
|
39
|
+
def name=(arg0); end
|
40
|
+
def self.available_typecasts; end
|
41
|
+
def self.available_typecasts=(obj); end
|
42
|
+
def self.typecasts; end
|
43
|
+
def self.typecasts=(obj); end
|
44
|
+
def to_hash; end
|
45
|
+
def to_html; end
|
46
|
+
def to_s; end
|
47
|
+
def type; end
|
48
|
+
def type=(arg0); end
|
49
|
+
def typecast_value(value); end
|
50
|
+
def undasherize_keys(params); end
|
51
|
+
def unnormalize_xml_entities(value); end
|
52
|
+
end
|
53
|
+
class Crack::REXMLParser
|
54
|
+
def self.parse(xml); end
|
55
|
+
end
|
56
|
+
class Crack::XML
|
57
|
+
def self.parse(xml); end
|
58
|
+
def self.parser; end
|
59
|
+
def self.parser=(parser); end
|
60
|
+
end
|
61
|
+
class Crack::ParseError < StandardError
|
62
|
+
end
|
@@ -0,0 +1,145 @@
|
|
1
|
+
# typed: true
|
2
|
+
|
3
|
+
# DO NOT EDIT MANUALLY
|
4
|
+
# This is an autogenerated file for types exported from the `crack` gem.
|
5
|
+
# Please instead update this file by running `bin/tapioca gem crack`.
|
6
|
+
|
7
|
+
|
8
|
+
# source://crack//lib/crack/xml.rb#196
|
9
|
+
module Crack; end
|
10
|
+
|
11
|
+
# source://crack//lib/crack/xml.rb#197
|
12
|
+
class Crack::REXMLParser
|
13
|
+
class << self
|
14
|
+
# source://crack//lib/crack/xml.rb#198
|
15
|
+
def parse(xml); end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
# source://crack//lib/crack/xml.rb#225
|
20
|
+
class Crack::XML
|
21
|
+
class << self
|
22
|
+
# source://crack//lib/crack/xml.rb#234
|
23
|
+
def parse(xml); end
|
24
|
+
|
25
|
+
# source://crack//lib/crack/xml.rb#226
|
26
|
+
def parser; end
|
27
|
+
|
28
|
+
# source://crack//lib/crack/xml.rb#230
|
29
|
+
def parser=(parser); end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
# This is a slighly modified version of the XMLUtilityNode from
|
34
|
+
# http://merb.devjavu.com/projects/merb/ticket/95 (has.sox@gmail.com)
|
35
|
+
# It's mainly just adding vowels, as I ht cd wth n vwls :)
|
36
|
+
# This represents the hard part of the work, all I did was change the
|
37
|
+
# underlying parser.
|
38
|
+
#
|
39
|
+
# source://crack//lib/crack/xml.rb#23
|
40
|
+
class REXMLUtilityNode
|
41
|
+
# @return [REXMLUtilityNode] a new instance of REXMLUtilityNode
|
42
|
+
#
|
43
|
+
# source://crack//lib/crack/xml.rb#56
|
44
|
+
def initialize(name, normalized_attributes = T.unsafe(nil)); end
|
45
|
+
|
46
|
+
# source://crack//lib/crack/xml.rb#73
|
47
|
+
def add_node(node); end
|
48
|
+
|
49
|
+
# source://crack//lib/crack/xml.rb#24
|
50
|
+
def attributes; end
|
51
|
+
|
52
|
+
# source://crack//lib/crack/xml.rb#24
|
53
|
+
def attributes=(_arg0); end
|
54
|
+
|
55
|
+
# source://crack//lib/crack/xml.rb#24
|
56
|
+
def children; end
|
57
|
+
|
58
|
+
# source://crack//lib/crack/xml.rb#24
|
59
|
+
def children=(_arg0); end
|
60
|
+
|
61
|
+
# Get the inner_html of the REXML node.
|
62
|
+
#
|
63
|
+
# source://crack//lib/crack/xml.rb#172
|
64
|
+
def inner_html; end
|
65
|
+
|
66
|
+
# source://crack//lib/crack/xml.rb#24
|
67
|
+
def name; end
|
68
|
+
|
69
|
+
# source://crack//lib/crack/xml.rb#24
|
70
|
+
def name=(_arg0); end
|
71
|
+
|
72
|
+
# source://crack//lib/crack/xml.rb#78
|
73
|
+
def to_hash; end
|
74
|
+
|
75
|
+
# Converts the node into a readable HTML node.
|
76
|
+
#
|
77
|
+
# @return [String] The HTML node in text form.
|
78
|
+
#
|
79
|
+
# source://crack//lib/crack/xml.rb#179
|
80
|
+
def to_html; end
|
81
|
+
|
82
|
+
# source://crack//lib/crack/xml.rb#185
|
83
|
+
def to_s; end
|
84
|
+
|
85
|
+
# source://crack//lib/crack/xml.rb#24
|
86
|
+
def type; end
|
87
|
+
|
88
|
+
# source://crack//lib/crack/xml.rb#24
|
89
|
+
def type=(_arg0); end
|
90
|
+
|
91
|
+
# Typecasts a value based upon its type. For instance, if
|
92
|
+
# +node+ has #type == "integer",
|
93
|
+
# {{[node.typecast_value("12") #=> 12]}}
|
94
|
+
#
|
95
|
+
# @note If +self+ does not have a "type" key, or if it's not one of the
|
96
|
+
# options specified above, the raw +value+ will be returned.
|
97
|
+
# @param value [String] The value that is being typecast.
|
98
|
+
# @return [Integer, TrueClass, FalseClass, Time, Date, Object] The result of typecasting +value+.
|
99
|
+
#
|
100
|
+
# source://crack//lib/crack/xml.rb#157
|
101
|
+
def typecast_value(value); end
|
102
|
+
|
103
|
+
# Take keys of the form foo-bar and convert them to foo_bar
|
104
|
+
#
|
105
|
+
# source://crack//lib/crack/xml.rb#164
|
106
|
+
def undasherize_keys(params); end
|
107
|
+
|
108
|
+
private
|
109
|
+
|
110
|
+
# source://crack//lib/crack/xml.rb#191
|
111
|
+
def unnormalize_xml_entities(value); end
|
112
|
+
|
113
|
+
class << self
|
114
|
+
# source://crack//lib/crack/xml.rb#34
|
115
|
+
def available_typecasts; end
|
116
|
+
|
117
|
+
# source://crack//lib/crack/xml.rb#38
|
118
|
+
def available_typecasts=(obj); end
|
119
|
+
|
120
|
+
# source://crack//lib/crack/xml.rb#26
|
121
|
+
def typecasts; end
|
122
|
+
|
123
|
+
# source://crack//lib/crack/xml.rb#30
|
124
|
+
def typecasts=(obj); end
|
125
|
+
end
|
126
|
+
end
|
127
|
+
|
128
|
+
# The Reason behind redefining the String Class for this specific plugin is to
|
129
|
+
# avoid the dynamic insertion of stuff on it (see version previous to this commit).
|
130
|
+
# Doing that disables the possibility of efectuating a dump on the structure. This way it goes.
|
131
|
+
#
|
132
|
+
# source://crack//lib/crack/xml.rb#14
|
133
|
+
class REXMLUtiliyNodeString < ::String
|
134
|
+
# Returns the value of attribute attributes.
|
135
|
+
#
|
136
|
+
# source://crack//lib/crack/xml.rb#15
|
137
|
+
def attributes; end
|
138
|
+
|
139
|
+
# Sets the attribute attributes
|
140
|
+
#
|
141
|
+
# @param value the value to set the attribute attributes to.
|
142
|
+
#
|
143
|
+
# source://crack//lib/crack/xml.rb#15
|
144
|
+
def attributes=(_arg0); end
|
145
|
+
end
|
@@ -0,0 +1,155 @@
|
|
1
|
+
# typed: true
|
2
|
+
|
3
|
+
# DO NOT EDIT MANUALLY
|
4
|
+
# This is an autogenerated file for types exported from the `erubi` gem.
|
5
|
+
# Please instead update this file by running `bin/tapioca gem erubi`.
|
6
|
+
|
7
|
+
|
8
|
+
# source://erubi//lib/erubi.rb#3
|
9
|
+
module Erubi
|
10
|
+
private
|
11
|
+
|
12
|
+
def h(_arg0); end
|
13
|
+
|
14
|
+
class << self
|
15
|
+
def h(_arg0); end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
# source://erubi//lib/erubi.rb#51
|
20
|
+
class Erubi::Engine
|
21
|
+
# Initialize a new Erubi::Engine. Options:
|
22
|
+
# +:bufval+ :: The value to use for the buffer variable, as a string (default <tt>'::String.new'</tt>).
|
23
|
+
# +:bufvar+ :: The variable name to use for the buffer variable, as a string.
|
24
|
+
# +:chain_appends+ :: Whether to chain <tt><<</t> calls to the buffer variable. Offers better
|
25
|
+
# performance, but can cause issues when the buffer variable is reassigned during
|
26
|
+
# template rendering (default +false+).
|
27
|
+
# +:ensure+ :: Wrap the template in a begin/ensure block restoring the previous value of bufvar.
|
28
|
+
# +:escapefunc+ :: The function to use for escaping, as a string (default: <tt>'::Erubi.h'</tt>).
|
29
|
+
# +:escape+ :: Whether to make <tt><%=</tt> escape by default, and <tt><%==</tt> not escape by default.
|
30
|
+
# +:escape_html+ :: Same as +:escape+, with lower priority.
|
31
|
+
# +:filename+ :: The filename for the template.
|
32
|
+
# the resulting source code. Note this may cause problems if you are wrapping the resulting
|
33
|
+
# source code in other code, because the magic comment only has an effect at the beginning of
|
34
|
+
# the file, and having the magic comment later in the file can trigger warnings.
|
35
|
+
# +:freeze_template_literals+ :: Whether to suffix all literal strings for template code with <tt>.freeze</tt>
|
36
|
+
# (default: +true+ on Ruby 2.1+, +false+ on Ruby 2.0 and older).
|
37
|
+
# Can be set to +false+ on Ruby 2.3+ when frozen string literals are enabled
|
38
|
+
# in order to improve performance.
|
39
|
+
# +:literal_prefix+ :: The prefix to output when using escaped tag delimiters (default <tt>'<%'</tt>).
|
40
|
+
# +:literal_postfix+ :: The postfix to output when using escaped tag delimiters (default <tt>'%>'</tt>).
|
41
|
+
# +:outvar+ :: Same as +:bufvar+, with lower priority.
|
42
|
+
# +:postamble+ :: The postamble for the template, by default returns the resulting source code.
|
43
|
+
# +:preamble+ :: The preamble for the template, by default initializes the buffer variable.
|
44
|
+
# +:regexp+ :: The regexp to use for scanning.
|
45
|
+
# +:src+ :: The initial value to use for the source code, an empty string by default.
|
46
|
+
# +:trim+ :: Whether to trim leading and trailing whitespace, true by default.
|
47
|
+
#
|
48
|
+
# @return [Engine] a new instance of Engine
|
49
|
+
#
|
50
|
+
# source://erubi//lib/erubi.rb#91
|
51
|
+
def initialize(input, properties = T.unsafe(nil)); end
|
52
|
+
|
53
|
+
# The variable name used for the buffer variable.
|
54
|
+
#
|
55
|
+
# source://erubi//lib/erubi.rb#62
|
56
|
+
def bufvar; end
|
57
|
+
|
58
|
+
# The filename of the template, if one was given.
|
59
|
+
#
|
60
|
+
# source://erubi//lib/erubi.rb#59
|
61
|
+
def filename; end
|
62
|
+
|
63
|
+
# The frozen ruby source code generated from the template, which can be evaled.
|
64
|
+
#
|
65
|
+
# source://erubi//lib/erubi.rb#56
|
66
|
+
def src; end
|
67
|
+
|
68
|
+
private
|
69
|
+
|
70
|
+
# :nocov:
|
71
|
+
#
|
72
|
+
# source://erubi//lib/erubi.rb#209
|
73
|
+
def _dup_string_if_frozen(string); end
|
74
|
+
|
75
|
+
# Add ruby code to the template
|
76
|
+
#
|
77
|
+
# source://erubi//lib/erubi.rb#232
|
78
|
+
def add_code(code); end
|
79
|
+
|
80
|
+
# Add the given ruby expression result to the template,
|
81
|
+
# escaping it based on the indicator given and escape flag.
|
82
|
+
#
|
83
|
+
# source://erubi//lib/erubi.rb#241
|
84
|
+
def add_expression(indicator, code); end
|
85
|
+
|
86
|
+
# Add the result of Ruby expression to the template
|
87
|
+
#
|
88
|
+
# source://erubi//lib/erubi.rb#250
|
89
|
+
def add_expression_result(code); end
|
90
|
+
|
91
|
+
# Add the escaped result of Ruby expression to the template
|
92
|
+
#
|
93
|
+
# source://erubi//lib/erubi.rb#255
|
94
|
+
def add_expression_result_escaped(code); end
|
95
|
+
|
96
|
+
# Add the given postamble to the src. Can be overridden in subclasses
|
97
|
+
# to make additional changes to src that depend on the current state.
|
98
|
+
#
|
99
|
+
# source://erubi//lib/erubi.rb#261
|
100
|
+
def add_postamble(postamble); end
|
101
|
+
|
102
|
+
# Add raw text to the template. Modifies argument if argument is mutable as a memory optimization.
|
103
|
+
# Must be called with a string, cannot be called with nil (Rails's subclass depends on it).
|
104
|
+
#
|
105
|
+
# source://erubi//lib/erubi.rb#222
|
106
|
+
def add_text(text); end
|
107
|
+
|
108
|
+
# Raise an exception, as the base engine class does not support handling other indicators.
|
109
|
+
#
|
110
|
+
# @raise [ArgumentError]
|
111
|
+
#
|
112
|
+
# source://erubi//lib/erubi.rb#267
|
113
|
+
def handle(indicator, code, tailch, rspace, lspace); end
|
114
|
+
|
115
|
+
# Make sure that any current expression has been terminated.
|
116
|
+
# The default is to terminate all expressions, but when
|
117
|
+
# the chain_appends option is used, expressions may not be
|
118
|
+
# terminated.
|
119
|
+
#
|
120
|
+
# source://erubi//lib/erubi.rb#295
|
121
|
+
def terminate_expression; end
|
122
|
+
|
123
|
+
# Make sure the buffer variable is the target of the next append
|
124
|
+
# before yielding to the block. Mark that the buffer is the target
|
125
|
+
# of the next append after the block executes.
|
126
|
+
#
|
127
|
+
# This method should only be called if the block will result in
|
128
|
+
# code where << will append to the bufvar.
|
129
|
+
#
|
130
|
+
# source://erubi//lib/erubi.rb#277
|
131
|
+
def with_buffer; end
|
132
|
+
end
|
133
|
+
|
134
|
+
# The default regular expression used for scanning.
|
135
|
+
#
|
136
|
+
# source://erubi//lib/erubi.rb#53
|
137
|
+
Erubi::Engine::DEFAULT_REGEXP = T.let(T.unsafe(nil), Regexp)
|
138
|
+
|
139
|
+
# source://erubi//lib/erubi.rb#17
|
140
|
+
Erubi::FREEZE_TEMPLATE_LITERALS = T.let(T.unsafe(nil), TrueClass)
|
141
|
+
|
142
|
+
# source://erubi//lib/erubi.rb#15
|
143
|
+
Erubi::MATCH_METHOD = T.let(T.unsafe(nil), Symbol)
|
144
|
+
|
145
|
+
# source://erubi//lib/erubi.rb#8
|
146
|
+
Erubi::RANGE_FIRST = T.let(T.unsafe(nil), Integer)
|
147
|
+
|
148
|
+
# source://erubi//lib/erubi.rb#9
|
149
|
+
Erubi::RANGE_LAST = T.let(T.unsafe(nil), Integer)
|
150
|
+
|
151
|
+
# source://erubi//lib/erubi.rb#16
|
152
|
+
Erubi::SKIP_DEFINED_FOR_INSTANCE_VARIABLE = T.let(T.unsafe(nil), TrueClass)
|
153
|
+
|
154
|
+
# source://erubi//lib/erubi.rb#4
|
155
|
+
Erubi::VERSION = T.let(T.unsafe(nil), String)
|
@@ -0,0 +1,66 @@
|
|
1
|
+
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
|
2
|
+
# srb rbi gems
|
3
|
+
|
4
|
+
# typed: true
|
5
|
+
#
|
6
|
+
# If you would like to make changes to this file, great! Please create the gem's shim here:
|
7
|
+
#
|
8
|
+
# https://github.com/sorbet/sorbet-typed/new/master?filename=lib/hashdiff/all/hashdiff.rbi
|
9
|
+
#
|
10
|
+
# hashdiff-1.1.2
|
11
|
+
|
12
|
+
module Hashdiff
|
13
|
+
def self.any_hash_or_array?(obja, objb); end
|
14
|
+
def self.best_diff(obj1, obj2, options = nil, &block); end
|
15
|
+
def self.comparable?(obj1, obj2, strict = nil); end
|
16
|
+
def self.compare_values(obj1, obj2, options = nil); end
|
17
|
+
def self.count_diff(diffs); end
|
18
|
+
def self.count_nodes(obj); end
|
19
|
+
def self.custom_compare(method, key, obj1, obj2); end
|
20
|
+
def self.decode_property_path(path, delimiter = nil); end
|
21
|
+
def self.diff(obj1, obj2, options = nil, &block); end
|
22
|
+
def self.diff_array_lcs(arraya, arrayb, options = nil); end
|
23
|
+
def self.lcs(arraya, arrayb, options = nil); end
|
24
|
+
def self.node(hash, parts); end
|
25
|
+
def self.patch!(obj, changes, options = nil); end
|
26
|
+
def self.prefix_append_array_index(prefix, array_index, opts); end
|
27
|
+
def self.prefix_append_key(prefix, key, opts); end
|
28
|
+
def self.similar?(obja, objb, options = nil); end
|
29
|
+
def self.unpatch!(obj, changes, options = nil); end
|
30
|
+
end
|
31
|
+
class Hashdiff::CompareHashes
|
32
|
+
def self.call(obj1, obj2, opts = nil); end
|
33
|
+
end
|
34
|
+
class Hashdiff::LcsCompareArrays
|
35
|
+
def self.call(obj1, obj2, opts = nil); end
|
36
|
+
end
|
37
|
+
class Hashdiff::LinearCompareArray
|
38
|
+
def additions; end
|
39
|
+
def append_addition(item, index); end
|
40
|
+
def append_addititions_before_match(match_index); end
|
41
|
+
def append_deletion(item, index); end
|
42
|
+
def append_deletions_before_match(match_index); end
|
43
|
+
def append_differences(difference); end
|
44
|
+
def call; end
|
45
|
+
def changes; end
|
46
|
+
def compare_at_index; end
|
47
|
+
def deletions; end
|
48
|
+
def differences; end
|
49
|
+
def expected_additions; end
|
50
|
+
def expected_additions=(arg0); end
|
51
|
+
def extra_items_in_new_array?; end
|
52
|
+
def extra_items_in_old_array?; end
|
53
|
+
def index_of_match_after_additions; end
|
54
|
+
def index_of_match_after_deletions; end
|
55
|
+
def initialize(old_array, new_array, options); end
|
56
|
+
def item_difference(old_item, new_item, item_index); end
|
57
|
+
def iterated_through_both_arrays?; end
|
58
|
+
def new_array; end
|
59
|
+
def new_index; end
|
60
|
+
def new_index=(arg0); end
|
61
|
+
def old_array; end
|
62
|
+
def old_index; end
|
63
|
+
def old_index=(arg0); end
|
64
|
+
def options; end
|
65
|
+
def self.call(old_array, new_array, options = nil); end
|
66
|
+
end
|