schema_dot_org 1.7.0 → 1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/Gemfile.lock +29 -37
- data/bin/tapioca +29 -0
- data/lib/schema_dot_org/organization.rb +0 -4
- data/lib/schema_dot_org/person.rb +0 -2
- data/lib/schema_dot_org/place.rb +0 -2
- data/lib/schema_dot_org/search_action.rb +1 -3
- data/lib/schema_dot_org/web_site.rb +0 -3
- data/lib/schema_dot_org.rb +9 -1
- data/schema_dot_org.gemspec +3 -5
- metadata +6 -51
- data/sorbet/config +0 -2
- data/sorbet/rbi/gems/activemodel.rbi +0 -262
- data/sorbet/rbi/gems/activesupport.rbi +0 -912
- data/sorbet/rbi/gems/concurrent-ruby.rbi +0 -1590
- data/sorbet/rbi/gems/i18n.rbi +0 -133
- data/sorbet/rbi/gems/rake.rbi +0 -644
- data/sorbet/rbi/gems/rspec-core.rbi +0 -1872
- data/sorbet/rbi/gems/rspec-expectations.rbi +0 -1123
- data/sorbet/rbi/gems/rspec-mocks.rbi +0 -1090
- data/sorbet/rbi/gems/rspec-support.rbi +0 -280
- data/sorbet/rbi/gems/rspec.rbi +0 -15
- data/sorbet/rbi/gems/thread_safe.rbi +0 -82
- data/sorbet/rbi/gems/tzinfo.rbi +0 -408
- data/sorbet/rbi/gems/validated_object.rbi +0 -60
- data/sorbet/rbi/sorbet-typed/lib/activemodel/all/activemodel.rbi +0 -597
- data/sorbet/rbi/sorbet-typed/lib/activesupport/>=6/activesupport.rbi +0 -36
- data/sorbet/rbi/sorbet-typed/lib/activesupport/all/activesupport.rbi +0 -1431
- data/sorbet/rbi/sorbet-typed/lib/minitest/all/minitest.rbi +0 -108
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06cd16270256965fffed468bd43d1d8ce63495a914963ef98513057f4396adb5
|
4
|
+
data.tar.gz: 311628c167b40934f5605494dab52be36b920b7c5d5d3c238a8657700b2ce3f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01a6cb68d63637825dd2cb3747a50afa9aa241cba449b2db93febd982733a8dba566711e1b0e5c3b6fa23226d0f3809c29f94ba65bae26c3000155a65251acda
|
7
|
+
data.tar.gz: 54b97418cb8a71ae40636778d8823e7dc0c91260b3cab7135323471fe36710b40b6eb6a072b5232e658e89cd91be1491c450cf2f32ea7706df558eaa43c67c78
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,51 +1,44 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
schema_dot_org (1.
|
5
|
-
|
6
|
-
validated_object (~> 2.1)
|
4
|
+
schema_dot_org (1.8)
|
5
|
+
validated_object (~> 2.2)
|
7
6
|
|
8
7
|
GEM
|
9
8
|
remote: https://rubygems.org/
|
10
9
|
specs:
|
11
|
-
activemodel (
|
12
|
-
activesupport (=
|
13
|
-
activesupport (
|
10
|
+
activemodel (7.0.4.2)
|
11
|
+
activesupport (= 7.0.4.2)
|
12
|
+
activesupport (7.0.4.2)
|
14
13
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
15
|
-
i18n (>=
|
16
|
-
minitest (
|
17
|
-
tzinfo (~>
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
i18n (1.8.5)
|
14
|
+
i18n (>= 1.6, < 2)
|
15
|
+
minitest (>= 5.1)
|
16
|
+
tzinfo (~> 2.0)
|
17
|
+
concurrent-ruby (1.2.0)
|
18
|
+
diff-lcs (1.5.0)
|
19
|
+
i18n (1.12.0)
|
22
20
|
concurrent-ruby (~> 1.0)
|
23
|
-
minitest (5.
|
24
|
-
rake (13.0.
|
25
|
-
rspec (3.
|
26
|
-
rspec-core (~> 3.
|
27
|
-
rspec-expectations (~> 3.
|
28
|
-
rspec-mocks (~> 3.
|
29
|
-
rspec-core (3.
|
30
|
-
rspec-support (~> 3.
|
31
|
-
rspec-expectations (3.
|
21
|
+
minitest (5.17.0)
|
22
|
+
rake (13.0.6)
|
23
|
+
rspec (3.12.0)
|
24
|
+
rspec-core (~> 3.12.0)
|
25
|
+
rspec-expectations (~> 3.12.0)
|
26
|
+
rspec-mocks (~> 3.12.0)
|
27
|
+
rspec-core (3.12.0)
|
28
|
+
rspec-support (~> 3.12.0)
|
29
|
+
rspec-expectations (3.12.2)
|
32
30
|
diff-lcs (>= 1.2.0, < 2.0)
|
33
|
-
rspec-support (~> 3.
|
34
|
-
rspec-mocks (3.
|
31
|
+
rspec-support (~> 3.12.0)
|
32
|
+
rspec-mocks (3.12.3)
|
35
33
|
diff-lcs (>= 1.2.0, < 2.0)
|
36
|
-
rspec-support (~> 3.
|
37
|
-
rspec-support (3.
|
38
|
-
sorbet (0.5.
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
thread_safe (0.3.6)
|
43
|
-
tzinfo (1.2.7)
|
44
|
-
thread_safe (~> 0.1)
|
45
|
-
validated_object (2.1.0)
|
34
|
+
rspec-support (~> 3.12.0)
|
35
|
+
rspec-support (3.12.0)
|
36
|
+
sorbet-runtime (0.5.10647)
|
37
|
+
tzinfo (2.0.6)
|
38
|
+
concurrent-ruby (~> 1.0)
|
39
|
+
validated_object (2.2.0)
|
46
40
|
activemodel (>= 3.2.21)
|
47
41
|
sorbet-runtime (>= 0.5.5890)
|
48
|
-
zeitwerk (2.4.0)
|
49
42
|
|
50
43
|
PLATFORMS
|
51
44
|
ruby
|
@@ -55,7 +48,6 @@ DEPENDENCIES
|
|
55
48
|
rake (>= 12.3.3)
|
56
49
|
rspec (~> 3.0)
|
57
50
|
schema_dot_org!
|
58
|
-
sorbet (>= 0.5.5890)
|
59
51
|
|
60
52
|
BUNDLED WITH
|
61
|
-
2.
|
53
|
+
2.2.15
|
data/bin/tapioca
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
#
|
5
|
+
# This file was generated by Bundler.
|
6
|
+
#
|
7
|
+
# The application 'tapioca' is installed as part of a gem, and
|
8
|
+
# this file is here to facilitate running it.
|
9
|
+
#
|
10
|
+
|
11
|
+
require "pathname"
|
12
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
13
|
+
Pathname.new(__FILE__).realpath)
|
14
|
+
|
15
|
+
bundle_binstub = File.expand_path("../bundle", __FILE__)
|
16
|
+
|
17
|
+
if File.file?(bundle_binstub)
|
18
|
+
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
|
19
|
+
load(bundle_binstub)
|
20
|
+
else
|
21
|
+
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
22
|
+
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
require "rubygems"
|
27
|
+
require "bundler/setup"
|
28
|
+
|
29
|
+
load Gem.bin_path("tapioca", "tapioca")
|
data/lib/schema_dot_org/place.rb
CHANGED
@@ -1,7 +1,5 @@
|
|
1
|
-
# typed: ignore
|
2
1
|
# frozen_string_literal: true
|
3
2
|
|
4
|
-
require 'schema_dot_org'
|
5
3
|
|
6
4
|
module SchemaDotOrg
|
7
5
|
# Model the Schema.org `Thing > SearchAction`. See http://schema.org/SearchAction
|
@@ -13,7 +11,7 @@ module SchemaDotOrg
|
|
13
11
|
def _to_json_struct
|
14
12
|
{
|
15
13
|
'target' => target,
|
16
|
-
'
|
14
|
+
'query-input' => query_input ## ! Note the hyphen.
|
17
15
|
}
|
18
16
|
end
|
19
17
|
end
|
data/lib/schema_dot_org.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
# typed: ignore
|
2
1
|
# frozen_string_literal: true
|
3
2
|
|
4
3
|
require 'json'
|
@@ -60,3 +59,12 @@ module SchemaDotOrg
|
|
60
59
|
end
|
61
60
|
end
|
62
61
|
end
|
62
|
+
|
63
|
+
|
64
|
+
require 'schema_dot_org/person'
|
65
|
+
require 'schema_dot_org/place'
|
66
|
+
|
67
|
+
require 'schema_dot_org/organization'
|
68
|
+
|
69
|
+
require 'schema_dot_org/search_action'
|
70
|
+
require 'schema_dot_org/web_site'
|
data/schema_dot_org.gemspec
CHANGED
@@ -7,7 +7,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
7
7
|
Gem::Specification.new do |spec|
|
8
8
|
spec.required_ruby_version = '>= 2.6'
|
9
9
|
spec.name = 'schema_dot_org'
|
10
|
-
spec.version = '1.
|
10
|
+
spec.version = '1.8'
|
11
11
|
spec.authors = ['Robb Shecter']
|
12
12
|
spec.email = ['robb@public.law']
|
13
13
|
|
@@ -24,12 +24,10 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
25
25
|
spec.require_paths = ['lib']
|
26
26
|
|
27
|
-
spec.add_dependency 'validated_object', '~> 2.
|
27
|
+
spec.add_dependency 'validated_object', '~> 2.2'
|
28
|
+
|
28
29
|
|
29
30
|
spec.add_development_dependency 'bundler', '~> 2'
|
30
31
|
spec.add_development_dependency 'rake', '>= 12.3.3'
|
31
32
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
32
|
-
spec.add_development_dependency 'sorbet', '>= 0.5.5890'
|
33
|
-
|
34
|
-
spec.add_runtime_dependency 'sorbet-runtime', '>= 0.5.5890'
|
35
33
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: schema_dot_org
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: '1.8'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robb Shecter
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: validated_object
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '2.
|
19
|
+
version: '2.2'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '2.
|
26
|
+
version: '2.2'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,34 +66,6 @@ dependencies:
|
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '3.0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: sorbet
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: 0.5.5890
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: 0.5.5890
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: sorbet-runtime
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: 0.5.5890
|
90
|
-
type: :runtime
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: 0.5.5890
|
97
69
|
description: Creates well-formed website metadata with strongly typed Ruby.
|
98
70
|
email:
|
99
71
|
- robb@public.law
|
@@ -112,6 +84,7 @@ files:
|
|
112
84
|
- Rakefile
|
113
85
|
- bin/console
|
114
86
|
- bin/setup
|
87
|
+
- bin/tapioca
|
115
88
|
- lib/schema_dot_org.rb
|
116
89
|
- lib/schema_dot_org/organization.rb
|
117
90
|
- lib/schema_dot_org/person.rb
|
@@ -120,24 +93,6 @@ files:
|
|
120
93
|
- lib/schema_dot_org/web_site.rb
|
121
94
|
- run-script
|
122
95
|
- schema_dot_org.gemspec
|
123
|
-
- sorbet/config
|
124
|
-
- sorbet/rbi/gems/activemodel.rbi
|
125
|
-
- sorbet/rbi/gems/activesupport.rbi
|
126
|
-
- sorbet/rbi/gems/concurrent-ruby.rbi
|
127
|
-
- sorbet/rbi/gems/i18n.rbi
|
128
|
-
- sorbet/rbi/gems/rake.rbi
|
129
|
-
- sorbet/rbi/gems/rspec-core.rbi
|
130
|
-
- sorbet/rbi/gems/rspec-expectations.rbi
|
131
|
-
- sorbet/rbi/gems/rspec-mocks.rbi
|
132
|
-
- sorbet/rbi/gems/rspec-support.rbi
|
133
|
-
- sorbet/rbi/gems/rspec.rbi
|
134
|
-
- sorbet/rbi/gems/thread_safe.rbi
|
135
|
-
- sorbet/rbi/gems/tzinfo.rbi
|
136
|
-
- sorbet/rbi/gems/validated_object.rbi
|
137
|
-
- sorbet/rbi/sorbet-typed/lib/activemodel/all/activemodel.rbi
|
138
|
-
- sorbet/rbi/sorbet-typed/lib/activesupport/>=6/activesupport.rbi
|
139
|
-
- sorbet/rbi/sorbet-typed/lib/activesupport/all/activesupport.rbi
|
140
|
-
- sorbet/rbi/sorbet-typed/lib/minitest/all/minitest.rbi
|
141
96
|
- test-script.rb
|
142
97
|
homepage: https://github.com/public-law/schema-dot-org
|
143
98
|
licenses:
|
@@ -158,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
158
113
|
- !ruby/object:Gem::Version
|
159
114
|
version: '0'
|
160
115
|
requirements: []
|
161
|
-
rubygems_version: 3.
|
116
|
+
rubygems_version: 3.4.6
|
162
117
|
signing_key:
|
163
118
|
specification_version: 4
|
164
119
|
summary: JSON-LD generator for Schema.org vocabulary
|
data/sorbet/config
DELETED
@@ -1,262 +0,0 @@
|
|
1
|
-
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
|
2
|
-
# srb rbi gems
|
3
|
-
|
4
|
-
# typed: ignore
|
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/activemodel/all/activemodel.rbi
|
9
|
-
#
|
10
|
-
# activemodel-6.0.3.2
|
11
|
-
|
12
|
-
module ActiveModel
|
13
|
-
def self.eager_load!; end
|
14
|
-
def self.gem_version; end
|
15
|
-
def self.version; end
|
16
|
-
extend ActiveSupport::Autoload
|
17
|
-
end
|
18
|
-
module ActiveModel::VERSION
|
19
|
-
end
|
20
|
-
module ActiveModel::Serializers
|
21
|
-
extend ActiveSupport::Autoload
|
22
|
-
end
|
23
|
-
module ActiveModel::Validations
|
24
|
-
def errors; end
|
25
|
-
def initialize_dup(other); end
|
26
|
-
def invalid?(context = nil); end
|
27
|
-
def raise_validation_error; end
|
28
|
-
def read_attribute_for_validation(*arg0); end
|
29
|
-
def run_validations!; end
|
30
|
-
def valid?(context = nil); end
|
31
|
-
def validate!(context = nil); end
|
32
|
-
def validate(context = nil); end
|
33
|
-
def validates_with(*args, &block); end
|
34
|
-
extend ActiveSupport::Concern
|
35
|
-
end
|
36
|
-
module ActiveModel::Validations::ClassMethods
|
37
|
-
def _parse_validates_options(options); end
|
38
|
-
def _validates_default_keys; end
|
39
|
-
def attribute_method?(attribute); end
|
40
|
-
def clear_validators!; end
|
41
|
-
def inherited(base); end
|
42
|
-
def validate(*args, &block); end
|
43
|
-
def validates!(*attributes); end
|
44
|
-
def validates(*attributes); end
|
45
|
-
def validates_each(*attr_names, &block); end
|
46
|
-
def validates_with(*args, &block); end
|
47
|
-
def validators; end
|
48
|
-
def validators_on(*attributes); end
|
49
|
-
end
|
50
|
-
module ActiveModel::Validations::Clusivity
|
51
|
-
def check_validity!; end
|
52
|
-
def delimiter; end
|
53
|
-
def include?(record, value); end
|
54
|
-
def inclusion_method(enumerable); end
|
55
|
-
end
|
56
|
-
class ActiveModel::Validator
|
57
|
-
def initialize(options = nil); end
|
58
|
-
def kind; end
|
59
|
-
def options; end
|
60
|
-
def self.kind; end
|
61
|
-
def validate(record); end
|
62
|
-
end
|
63
|
-
class ActiveModel::EachValidator < ActiveModel::Validator
|
64
|
-
def attributes; end
|
65
|
-
def check_validity!; end
|
66
|
-
def initialize(options); end
|
67
|
-
def validate(record); end
|
68
|
-
def validate_each(record, attribute, value); end
|
69
|
-
end
|
70
|
-
class ActiveModel::BlockValidator < ActiveModel::EachValidator
|
71
|
-
def initialize(options, &block); end
|
72
|
-
def validate_each(record, attribute, value); end
|
73
|
-
end
|
74
|
-
class ActiveModel::Validations::InclusionValidator < ActiveModel::EachValidator
|
75
|
-
def validate_each(record, attribute, value); end
|
76
|
-
include ActiveModel::Validations::Clusivity
|
77
|
-
end
|
78
|
-
module ActiveModel::Validations::HelperMethods
|
79
|
-
def _merge_attributes(attr_names); end
|
80
|
-
def validates_absence_of(*attr_names); end
|
81
|
-
def validates_acceptance_of(*attr_names); end
|
82
|
-
def validates_confirmation_of(*attr_names); end
|
83
|
-
def validates_exclusion_of(*attr_names); end
|
84
|
-
def validates_format_of(*attr_names); end
|
85
|
-
def validates_inclusion_of(*attr_names); end
|
86
|
-
def validates_length_of(*attr_names); end
|
87
|
-
def validates_numericality_of(*attr_names); end
|
88
|
-
def validates_presence_of(*attr_names); end
|
89
|
-
def validates_size_of(*attr_names); end
|
90
|
-
end
|
91
|
-
class ActiveModel::Validations::AbsenceValidator < ActiveModel::EachValidator
|
92
|
-
def validate_each(record, attr_name, value); end
|
93
|
-
end
|
94
|
-
class ActiveModel::Validations::NumericalityValidator < ActiveModel::EachValidator
|
95
|
-
def allow_only_integer?(record); end
|
96
|
-
def check_validity!; end
|
97
|
-
def filtered_options(value); end
|
98
|
-
def is_hexadecimal_literal?(raw_value); end
|
99
|
-
def is_integer?(raw_value); end
|
100
|
-
def is_number?(raw_value); end
|
101
|
-
def parse_as_number(raw_value); end
|
102
|
-
def record_attribute_changed_in_place?(record, attr_name); end
|
103
|
-
def validate_each(record, attr_name, value); end
|
104
|
-
end
|
105
|
-
module ActiveModel::Validations::Callbacks
|
106
|
-
def run_validations!; end
|
107
|
-
extend ActiveSupport::Concern
|
108
|
-
end
|
109
|
-
module ActiveModel::Validations::Callbacks::ClassMethods
|
110
|
-
def after_validation(*args, &block); end
|
111
|
-
def before_validation(*args, &block); end
|
112
|
-
end
|
113
|
-
class ActiveModel::Validations::ExclusionValidator < ActiveModel::EachValidator
|
114
|
-
def validate_each(record, attribute, value); end
|
115
|
-
include ActiveModel::Validations::Clusivity
|
116
|
-
end
|
117
|
-
class ActiveModel::Validations::ConfirmationValidator < ActiveModel::EachValidator
|
118
|
-
def confirmation_value_equal?(record, attribute, value, confirmed); end
|
119
|
-
def initialize(options); end
|
120
|
-
def setup!(klass); end
|
121
|
-
def validate_each(record, attribute, value); end
|
122
|
-
end
|
123
|
-
class ActiveModel::Validations::FormatValidator < ActiveModel::EachValidator
|
124
|
-
def check_options_validity(name); end
|
125
|
-
def check_validity!; end
|
126
|
-
def option_call(record, name); end
|
127
|
-
def record_error(record, attribute, name, value); end
|
128
|
-
def regexp_using_multiline_anchors?(regexp); end
|
129
|
-
def validate_each(record, attribute, value); end
|
130
|
-
end
|
131
|
-
class ActiveModel::Validations::PresenceValidator < ActiveModel::EachValidator
|
132
|
-
def validate_each(record, attr_name, value); end
|
133
|
-
end
|
134
|
-
class ActiveModel::Validations::LengthValidator < ActiveModel::EachValidator
|
135
|
-
def check_validity!; end
|
136
|
-
def initialize(options); end
|
137
|
-
def skip_nil_check?(key); end
|
138
|
-
def validate_each(record, attribute, value); end
|
139
|
-
end
|
140
|
-
class ActiveModel::Validations::AcceptanceValidator < ActiveModel::EachValidator
|
141
|
-
def acceptable_option?(value); end
|
142
|
-
def initialize(options); end
|
143
|
-
def setup!(klass); end
|
144
|
-
def validate_each(record, attribute, value); end
|
145
|
-
end
|
146
|
-
class ActiveModel::Validations::AcceptanceValidator::LazilyDefineAttributes < Module
|
147
|
-
def ==(other); end
|
148
|
-
def attributes; end
|
149
|
-
def define_on(klass); end
|
150
|
-
def included(klass); end
|
151
|
-
def initialize(attributes); end
|
152
|
-
def matches?(method_name); end
|
153
|
-
end
|
154
|
-
class ActiveModel::Validations::WithValidator < ActiveModel::EachValidator
|
155
|
-
def validate_each(record, attr, val); end
|
156
|
-
end
|
157
|
-
class ActiveModel::ValidationError < StandardError
|
158
|
-
def initialize(model); end
|
159
|
-
def model; end
|
160
|
-
end
|
161
|
-
class ActiveModel::Name
|
162
|
-
def !~(**, &&); end
|
163
|
-
def <=>(**, &&); end
|
164
|
-
def ==(arg); end
|
165
|
-
def ===(arg); end
|
166
|
-
def =~(**, &&); end
|
167
|
-
def _singularize(string); end
|
168
|
-
def as_json(**, &&); end
|
169
|
-
def cache_key; end
|
170
|
-
def collection; end
|
171
|
-
def element; end
|
172
|
-
def eql?(**, &&); end
|
173
|
-
def human(options = nil); end
|
174
|
-
def i18n_key; end
|
175
|
-
def initialize(klass, namespace = nil, name = nil); end
|
176
|
-
def match?(**, &&); end
|
177
|
-
def name; end
|
178
|
-
def param_key; end
|
179
|
-
def plural; end
|
180
|
-
def route_key; end
|
181
|
-
def singular; end
|
182
|
-
def singular_route_key; end
|
183
|
-
def to_s(**, &&); end
|
184
|
-
def to_str(**, &&); end
|
185
|
-
include Comparable
|
186
|
-
end
|
187
|
-
module ActiveModel::Naming
|
188
|
-
def model_name; end
|
189
|
-
def self.extended(base); end
|
190
|
-
def self.model_name_from_record_or_class(record_or_class); end
|
191
|
-
def self.param_key(record_or_class); end
|
192
|
-
def self.plural(record_or_class); end
|
193
|
-
def self.route_key(record_or_class); end
|
194
|
-
def self.singular(record_or_class); end
|
195
|
-
def self.singular_route_key(record_or_class); end
|
196
|
-
def self.uncountable?(record_or_class); end
|
197
|
-
end
|
198
|
-
module ActiveModel::Callbacks
|
199
|
-
def _define_after_model_callback(klass, callback); end
|
200
|
-
def _define_around_model_callback(klass, callback); end
|
201
|
-
def _define_before_model_callback(klass, callback); end
|
202
|
-
def define_model_callbacks(*callbacks); end
|
203
|
-
def self.extended(base); end
|
204
|
-
end
|
205
|
-
module ActiveModel::Translation
|
206
|
-
def human_attribute_name(attribute, options = nil); end
|
207
|
-
def i18n_scope; end
|
208
|
-
def lookup_ancestors; end
|
209
|
-
include ActiveModel::Naming
|
210
|
-
end
|
211
|
-
class ActiveModel::Errors
|
212
|
-
def [](attribute); end
|
213
|
-
def add(attribute, message = nil, options = nil); end
|
214
|
-
def added?(attribute, message = nil, options = nil); end
|
215
|
-
def apply_default_array(hash); end
|
216
|
-
def as_json(options = nil); end
|
217
|
-
def blank?; end
|
218
|
-
def clear; end
|
219
|
-
def copy!(other); end
|
220
|
-
def count; end
|
221
|
-
def delete(key); end
|
222
|
-
def details; end
|
223
|
-
def each; end
|
224
|
-
def empty?; end
|
225
|
-
def full_message(attribute, message); end
|
226
|
-
def full_messages; end
|
227
|
-
def full_messages_for(attribute); end
|
228
|
-
def generate_message(attribute, type = nil, options = nil); end
|
229
|
-
def has_key?(attribute); end
|
230
|
-
def include?(attribute); end
|
231
|
-
def init_with(coder); end
|
232
|
-
def initialize(base); end
|
233
|
-
def initialize_dup(other); end
|
234
|
-
def key?(attribute); end
|
235
|
-
def keys; end
|
236
|
-
def marshal_dump; end
|
237
|
-
def marshal_load(array); end
|
238
|
-
def merge!(other); end
|
239
|
-
def messages; end
|
240
|
-
def normalize_detail(message, options); end
|
241
|
-
def normalize_message(attribute, message, options); end
|
242
|
-
def of_kind?(attribute, message = nil); end
|
243
|
-
def self.i18n_customize_full_message; end
|
244
|
-
def self.i18n_customize_full_message=(arg0); end
|
245
|
-
def size; end
|
246
|
-
def slice!(*keys); end
|
247
|
-
def to_a; end
|
248
|
-
def to_hash(full_messages = nil); end
|
249
|
-
def to_xml(options = nil); end
|
250
|
-
def values; end
|
251
|
-
def without_default_proc(hash); end
|
252
|
-
include Enumerable
|
253
|
-
end
|
254
|
-
class ActiveModel::StrictValidationFailed < StandardError
|
255
|
-
end
|
256
|
-
class ActiveModel::RangeError < RangeError
|
257
|
-
end
|
258
|
-
class ActiveModel::UnknownAttributeError < NoMethodError
|
259
|
-
def attribute; end
|
260
|
-
def initialize(record, attribute); end
|
261
|
-
def record; end
|
262
|
-
end
|