model-to-schema 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.rspec +3 -0
- data/.rubocop.yml +20 -0
- data/.ruby-version +1 -0
- data/CHANGELOG.md +13 -0
- data/LICENSE.txt +21 -0
- data/README.md +111 -0
- data/Rakefile +12 -0
- data/esquema.gemspec +38 -0
- data/lib/esquema/builder.rb +155 -0
- data/lib/esquema/configuration.rb +34 -0
- data/lib/esquema/keyword_validator.rb +98 -0
- data/lib/esquema/model.rb +31 -0
- data/lib/esquema/property.rb +238 -0
- data/lib/esquema/schema_enhancer.rb +90 -0
- data/lib/esquema/type_caster.rb +53 -0
- data/lib/esquema/version.rb +5 -0
- data/lib/esquema/virtual_column.rb +46 -0
- data/lib/esquema.rb +14 -0
- data/lib/generators/esquema/install/install_generator.rb +16 -0
- data/lib/generators/esquema/install/templates/esquema_initializer.rb +22 -0
- data/sorbet/config +4 -0
- data/sorbet/rbi/annotations/.gitattributes +1 -0
- data/sorbet/rbi/annotations/activemodel.rbi +89 -0
- data/sorbet/rbi/annotations/activerecord.rbi +92 -0
- data/sorbet/rbi/annotations/activesupport.rbi +421 -0
- data/sorbet/rbi/annotations/rainbow.rbi +269 -0
- data/sorbet/rbi/gems/.gitattributes +1 -0
- data/sorbet/rbi/gems/activemodel@7.1.3.rbi +8 -0
- data/sorbet/rbi/gems/activerecord@7.1.3.rbi +8 -0
- data/sorbet/rbi/gems/activesupport@7.1.3.rbi +192 -0
- data/sorbet/rbi/gems/ast@2.4.2.rbi +584 -0
- data/sorbet/rbi/gems/base64@0.2.0.rbi +8 -0
- data/sorbet/rbi/gems/bigdecimal@3.1.6.rbi +8 -0
- data/sorbet/rbi/gems/byebug@11.1.3.rbi +3606 -0
- data/sorbet/rbi/gems/coderay@1.1.3.rbi +3426 -0
- data/sorbet/rbi/gems/concurrent-ruby@1.2.3.rbi +8 -0
- data/sorbet/rbi/gems/connection_pool@2.4.1.rbi +8 -0
- data/sorbet/rbi/gems/diff-lcs@1.5.1.rbi +1130 -0
- data/sorbet/rbi/gems/drb@2.2.0.rbi +1272 -0
- data/sorbet/rbi/gems/erubi@1.12.0.rbi +145 -0
- data/sorbet/rbi/gems/i18n@1.14.1.rbi +8 -0
- data/sorbet/rbi/gems/json@2.7.1.rbi +1553 -0
- data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +14237 -0
- data/sorbet/rbi/gems/method_source@1.0.0.rbi +272 -0
- data/sorbet/rbi/gems/minitest@5.22.2.rbi +8 -0
- data/sorbet/rbi/gems/mutex_m@0.2.0.rbi +8 -0
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +158 -0
- data/sorbet/rbi/gems/parallel@1.24.0.rbi +280 -0
- data/sorbet/rbi/gems/parser@3.3.0.5.rbi +5472 -0
- data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +951 -0
- data/sorbet/rbi/gems/prism@0.24.0.rbi +31040 -0
- data/sorbet/rbi/gems/pry-byebug@3.10.1.rbi +1150 -0
- data/sorbet/rbi/gems/pry@0.14.2.rbi +10075 -0
- data/sorbet/rbi/gems/racc@1.7.3.rbi +157 -0
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +402 -0
- data/sorbet/rbi/gems/rake@13.1.0.rbi +3027 -0
- data/sorbet/rbi/gems/rbi@0.1.9.rbi +3006 -0
- data/sorbet/rbi/gems/regexp_parser@2.9.0.rbi +3771 -0
- data/sorbet/rbi/gems/rexml@3.2.6.rbi +4781 -0
- data/sorbet/rbi/gems/rspec-core@3.13.0.rbi +10978 -0
- data/sorbet/rbi/gems/rspec-expectations@3.13.0.rbi +8153 -0
- data/sorbet/rbi/gems/rspec-mocks@3.13.0.rbi +5340 -0
- data/sorbet/rbi/gems/rspec-support@3.13.0.rbi +1629 -0
- data/sorbet/rbi/gems/rspec@3.13.0.rbi +82 -0
- data/sorbet/rbi/gems/rubocop-ast@1.30.0.rbi +7006 -0
- data/sorbet/rbi/gems/rubocop@1.60.2.rbi +57383 -0
- data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1317 -0
- data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +8 -0
- data/sorbet/rbi/gems/spoom@1.2.4.rbi +3777 -0
- data/sorbet/rbi/gems/sqlite3@1.7.2.rbi +1691 -0
- data/sorbet/rbi/gems/syntax_tree@6.2.0.rbi +23133 -0
- data/sorbet/rbi/gems/tapioca@0.12.0.rbi +3510 -0
- data/sorbet/rbi/gems/thor@1.3.0.rbi +4345 -0
- data/sorbet/rbi/gems/timeout@0.4.1.rbi +142 -0
- data/sorbet/rbi/gems/tzinfo@2.0.6.rbi +8 -0
- data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +65 -0
- data/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi +428 -0
- data/sorbet/rbi/gems/yard@0.9.34.rbi +18219 -0
- data/sorbet/rbi/todo.rbi +20 -0
- data/sorbet/tapioca/config.yml +13 -0
- data/sorbet/tapioca/require.rb +4 -0
- metadata +176 -0
data/sorbet/rbi/todo.rbi
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# DO NOT EDIT MANUALLY
|
2
|
+
# This is an autogenerated file for unresolved constants.
|
3
|
+
# Please instead update this file by running `bin/tapioca todo`.
|
4
|
+
|
5
|
+
# typed: false
|
6
|
+
|
7
|
+
module ::DateAndTime::Calculations; end
|
8
|
+
module ::DateAndTime::Zones; end
|
9
|
+
module ActiveModel::Error; end
|
10
|
+
module ActiveRecord::ConnectionAdapters::DatabaseStatements; end
|
11
|
+
module ActiveRecord::ConnectionAdapters::SchemaStatements; end
|
12
|
+
module ActiveRecord::Tasks::DatabaseTasks; end
|
13
|
+
module ActiveSupport::ArrayInquirer; end
|
14
|
+
module ActiveSupport::Multibyte::Chars; end
|
15
|
+
module ActiveSupport::SafeBuffer; end
|
16
|
+
module ActiveSupport::StringInquirer; end
|
17
|
+
module ActiveSupport::TimeZone; end
|
18
|
+
module Esquema::Generators::Rails::Generators::Base; end
|
19
|
+
module Matchers::UnorderedArrayMatcher::JsonTraverser; end
|
20
|
+
module RSpec::JsonExpectations::Matchers::UnorderedArrayMatcher; end
|
metadata
ADDED
@@ -0,0 +1,176 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: model-to-schema
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Sergio Bayona
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2024-08-13 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: activerecord
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '7.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '7.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: pry-byebug
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '3.10'
|
34
|
+
- - ">="
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: 3.10.1
|
37
|
+
type: :development
|
38
|
+
prerelease: false
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - "~>"
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '3.10'
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 3.10.1
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: rake
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - "~>"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '13.0'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - "~>"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '13.0'
|
61
|
+
description: Generate json-schema from ActiveRecord models.
|
62
|
+
email:
|
63
|
+
- bayona.sergio@gmail.com
|
64
|
+
executables: []
|
65
|
+
extensions: []
|
66
|
+
extra_rdoc_files: []
|
67
|
+
files:
|
68
|
+
- ".rspec"
|
69
|
+
- ".rubocop.yml"
|
70
|
+
- ".ruby-version"
|
71
|
+
- CHANGELOG.md
|
72
|
+
- LICENSE.txt
|
73
|
+
- README.md
|
74
|
+
- Rakefile
|
75
|
+
- esquema.gemspec
|
76
|
+
- lib/esquema.rb
|
77
|
+
- lib/esquema/builder.rb
|
78
|
+
- lib/esquema/configuration.rb
|
79
|
+
- lib/esquema/keyword_validator.rb
|
80
|
+
- lib/esquema/model.rb
|
81
|
+
- lib/esquema/property.rb
|
82
|
+
- lib/esquema/schema_enhancer.rb
|
83
|
+
- lib/esquema/type_caster.rb
|
84
|
+
- lib/esquema/version.rb
|
85
|
+
- lib/esquema/virtual_column.rb
|
86
|
+
- lib/generators/esquema/install/install_generator.rb
|
87
|
+
- lib/generators/esquema/install/templates/esquema_initializer.rb
|
88
|
+
- sorbet/config
|
89
|
+
- sorbet/rbi/annotations/.gitattributes
|
90
|
+
- sorbet/rbi/annotations/activemodel.rbi
|
91
|
+
- sorbet/rbi/annotations/activerecord.rbi
|
92
|
+
- sorbet/rbi/annotations/activesupport.rbi
|
93
|
+
- sorbet/rbi/annotations/rainbow.rbi
|
94
|
+
- sorbet/rbi/gems/.gitattributes
|
95
|
+
- sorbet/rbi/gems/activemodel@7.1.3.rbi
|
96
|
+
- sorbet/rbi/gems/activerecord@7.1.3.rbi
|
97
|
+
- sorbet/rbi/gems/activesupport@7.1.3.rbi
|
98
|
+
- sorbet/rbi/gems/ast@2.4.2.rbi
|
99
|
+
- sorbet/rbi/gems/base64@0.2.0.rbi
|
100
|
+
- sorbet/rbi/gems/bigdecimal@3.1.6.rbi
|
101
|
+
- sorbet/rbi/gems/byebug@11.1.3.rbi
|
102
|
+
- sorbet/rbi/gems/coderay@1.1.3.rbi
|
103
|
+
- sorbet/rbi/gems/concurrent-ruby@1.2.3.rbi
|
104
|
+
- sorbet/rbi/gems/connection_pool@2.4.1.rbi
|
105
|
+
- sorbet/rbi/gems/diff-lcs@1.5.1.rbi
|
106
|
+
- sorbet/rbi/gems/drb@2.2.0.rbi
|
107
|
+
- sorbet/rbi/gems/erubi@1.12.0.rbi
|
108
|
+
- sorbet/rbi/gems/i18n@1.14.1.rbi
|
109
|
+
- sorbet/rbi/gems/json@2.7.1.rbi
|
110
|
+
- sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi
|
111
|
+
- sorbet/rbi/gems/method_source@1.0.0.rbi
|
112
|
+
- sorbet/rbi/gems/minitest@5.22.2.rbi
|
113
|
+
- sorbet/rbi/gems/mutex_m@0.2.0.rbi
|
114
|
+
- sorbet/rbi/gems/netrc@0.11.0.rbi
|
115
|
+
- sorbet/rbi/gems/parallel@1.24.0.rbi
|
116
|
+
- sorbet/rbi/gems/parser@3.3.0.5.rbi
|
117
|
+
- sorbet/rbi/gems/prettier_print@1.2.1.rbi
|
118
|
+
- sorbet/rbi/gems/prism@0.24.0.rbi
|
119
|
+
- sorbet/rbi/gems/pry-byebug@3.10.1.rbi
|
120
|
+
- sorbet/rbi/gems/pry@0.14.2.rbi
|
121
|
+
- sorbet/rbi/gems/racc@1.7.3.rbi
|
122
|
+
- sorbet/rbi/gems/rainbow@3.1.1.rbi
|
123
|
+
- sorbet/rbi/gems/rake@13.1.0.rbi
|
124
|
+
- sorbet/rbi/gems/rbi@0.1.9.rbi
|
125
|
+
- sorbet/rbi/gems/regexp_parser@2.9.0.rbi
|
126
|
+
- sorbet/rbi/gems/rexml@3.2.6.rbi
|
127
|
+
- sorbet/rbi/gems/rspec-core@3.13.0.rbi
|
128
|
+
- sorbet/rbi/gems/rspec-expectations@3.13.0.rbi
|
129
|
+
- sorbet/rbi/gems/rspec-mocks@3.13.0.rbi
|
130
|
+
- sorbet/rbi/gems/rspec-support@3.13.0.rbi
|
131
|
+
- sorbet/rbi/gems/rspec@3.13.0.rbi
|
132
|
+
- sorbet/rbi/gems/rubocop-ast@1.30.0.rbi
|
133
|
+
- sorbet/rbi/gems/rubocop@1.60.2.rbi
|
134
|
+
- sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi
|
135
|
+
- sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi
|
136
|
+
- sorbet/rbi/gems/spoom@1.2.4.rbi
|
137
|
+
- sorbet/rbi/gems/sqlite3@1.7.2.rbi
|
138
|
+
- sorbet/rbi/gems/syntax_tree@6.2.0.rbi
|
139
|
+
- sorbet/rbi/gems/tapioca@0.12.0.rbi
|
140
|
+
- sorbet/rbi/gems/thor@1.3.0.rbi
|
141
|
+
- sorbet/rbi/gems/timeout@0.4.1.rbi
|
142
|
+
- sorbet/rbi/gems/tzinfo@2.0.6.rbi
|
143
|
+
- sorbet/rbi/gems/unicode-display_width@2.5.0.rbi
|
144
|
+
- sorbet/rbi/gems/yard-sorbet@0.8.1.rbi
|
145
|
+
- sorbet/rbi/gems/yard@0.9.34.rbi
|
146
|
+
- sorbet/rbi/todo.rbi
|
147
|
+
- sorbet/tapioca/config.yml
|
148
|
+
- sorbet/tapioca/require.rb
|
149
|
+
homepage: https://github.com/sergiobayona/esquema
|
150
|
+
licenses:
|
151
|
+
- MIT
|
152
|
+
metadata:
|
153
|
+
allowed_push_host: https://rubygems.org
|
154
|
+
homepage_uri: https://github.com/sergiobayona/esquema
|
155
|
+
source_code_uri: https://github.com/sergiobayona/esquema
|
156
|
+
changelog_uri: https://github.com/sergiobayona/esquema/blob/main/CHANGELOG.md
|
157
|
+
post_install_message:
|
158
|
+
rdoc_options: []
|
159
|
+
require_paths:
|
160
|
+
- lib
|
161
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
162
|
+
requirements:
|
163
|
+
- - ">="
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: '3.1'
|
166
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
167
|
+
requirements:
|
168
|
+
- - ">="
|
169
|
+
- !ruby/object:Gem::Version
|
170
|
+
version: '0'
|
171
|
+
requirements: []
|
172
|
+
rubygems_version: 3.3.3
|
173
|
+
signing_key:
|
174
|
+
specification_version: 4
|
175
|
+
summary: Generate json-schema from ActiveRecord models.
|
176
|
+
test_files: []
|