esquema 0.1.0 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +4 -1
  3. data/CHANGELOG.md +9 -1
  4. data/README.md +11 -9
  5. data/lib/esquema/builder.rb +73 -28
  6. data/lib/esquema/configuration.rb +2 -1
  7. data/lib/esquema/keyword_validator.rb +98 -0
  8. data/lib/esquema/model.rb +4 -0
  9. data/lib/esquema/property.rb +185 -26
  10. data/lib/esquema/schema_enhancer.rb +55 -30
  11. data/lib/esquema/type_caster.rb +16 -4
  12. data/lib/esquema/version.rb +1 -1
  13. data/lib/esquema/virtual_column.rb +46 -0
  14. data/lib/esquema.rb +7 -1
  15. data/lib/generators/esquema/install/install_generator.rb +1 -0
  16. data/sorbet/config +4 -0
  17. data/sorbet/rbi/annotations/.gitattributes +1 -0
  18. data/sorbet/rbi/annotations/activemodel.rbi +89 -0
  19. data/sorbet/rbi/annotations/activerecord.rbi +92 -0
  20. data/sorbet/rbi/annotations/activesupport.rbi +421 -0
  21. data/sorbet/rbi/annotations/rainbow.rbi +269 -0
  22. data/sorbet/rbi/gems/.gitattributes +1 -0
  23. data/sorbet/rbi/gems/activemodel@7.1.3.rbi +8 -0
  24. data/sorbet/rbi/gems/activerecord@7.1.3.rbi +8 -0
  25. data/sorbet/rbi/gems/activesupport@7.1.3.rbi +192 -0
  26. data/sorbet/rbi/gems/ast@2.4.2.rbi +584 -0
  27. data/sorbet/rbi/gems/base64@0.2.0.rbi +8 -0
  28. data/sorbet/rbi/gems/bigdecimal@3.1.6.rbi +8 -0
  29. data/sorbet/rbi/gems/byebug@11.1.3.rbi +3606 -0
  30. data/sorbet/rbi/gems/coderay@1.1.3.rbi +3426 -0
  31. data/sorbet/rbi/gems/concurrent-ruby@1.2.3.rbi +8 -0
  32. data/sorbet/rbi/gems/connection_pool@2.4.1.rbi +8 -0
  33. data/sorbet/rbi/gems/diff-lcs@1.5.1.rbi +1130 -0
  34. data/sorbet/rbi/gems/drb@2.2.0.rbi +1272 -0
  35. data/sorbet/rbi/gems/erubi@1.12.0.rbi +145 -0
  36. data/sorbet/rbi/gems/i18n@1.14.1.rbi +8 -0
  37. data/sorbet/rbi/gems/json@2.7.1.rbi +1553 -0
  38. data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +14237 -0
  39. data/sorbet/rbi/gems/method_source@1.0.0.rbi +272 -0
  40. data/sorbet/rbi/gems/minitest@5.22.2.rbi +8 -0
  41. data/sorbet/rbi/gems/mutex_m@0.2.0.rbi +8 -0
  42. data/sorbet/rbi/gems/netrc@0.11.0.rbi +158 -0
  43. data/sorbet/rbi/gems/parallel@1.24.0.rbi +280 -0
  44. data/sorbet/rbi/gems/parser@3.3.0.5.rbi +5472 -0
  45. data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +951 -0
  46. data/sorbet/rbi/gems/prism@0.24.0.rbi +31040 -0
  47. data/sorbet/rbi/gems/pry-byebug@3.10.1.rbi +1150 -0
  48. data/sorbet/rbi/gems/pry@0.14.2.rbi +10075 -0
  49. data/sorbet/rbi/gems/racc@1.7.3.rbi +157 -0
  50. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +402 -0
  51. data/sorbet/rbi/gems/rake@13.1.0.rbi +3027 -0
  52. data/sorbet/rbi/gems/rbi@0.1.9.rbi +3006 -0
  53. data/sorbet/rbi/gems/regexp_parser@2.9.0.rbi +3771 -0
  54. data/sorbet/rbi/gems/rexml@3.2.6.rbi +4781 -0
  55. data/sorbet/rbi/gems/rspec-core@3.13.0.rbi +10978 -0
  56. data/sorbet/rbi/gems/rspec-expectations@3.13.0.rbi +8153 -0
  57. data/sorbet/rbi/gems/rspec-mocks@3.13.0.rbi +5340 -0
  58. data/sorbet/rbi/gems/rspec-support@3.13.0.rbi +1629 -0
  59. data/sorbet/rbi/gems/rspec@3.13.0.rbi +82 -0
  60. data/sorbet/rbi/gems/rubocop-ast@1.30.0.rbi +7006 -0
  61. data/sorbet/rbi/gems/rubocop@1.60.2.rbi +57383 -0
  62. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1317 -0
  63. data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +8 -0
  64. data/sorbet/rbi/gems/spoom@1.2.4.rbi +3777 -0
  65. data/sorbet/rbi/gems/sqlite3@1.7.2.rbi +1691 -0
  66. data/sorbet/rbi/gems/syntax_tree@6.2.0.rbi +23133 -0
  67. data/sorbet/rbi/gems/tapioca@0.12.0.rbi +3510 -0
  68. data/sorbet/rbi/gems/thor@1.3.0.rbi +4345 -0
  69. data/sorbet/rbi/gems/timeout@0.4.1.rbi +142 -0
  70. data/sorbet/rbi/gems/tzinfo@2.0.6.rbi +8 -0
  71. data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +65 -0
  72. data/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi +428 -0
  73. data/sorbet/rbi/gems/yard@0.9.34.rbi +18219 -0
  74. data/sorbet/rbi/todo.rbi +20 -0
  75. data/sorbet/tapioca/config.yml +13 -0
  76. data/sorbet/tapioca/require.rb +4 -0
  77. metadata +74 -12
  78. data/esquema.gemspec +0 -38
@@ -0,0 +1,82 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `rspec` gem.
5
+ # Please instead update this file by running `bin/tapioca gem rspec`.
6
+
7
+ # source://rspec//lib/rspec/version.rb#1
8
+ module RSpec
9
+ class << self
10
+ # source://rspec-core/3.13.0/lib/rspec/core.rb#70
11
+ def clear_examples; end
12
+
13
+ # source://rspec-core/3.13.0/lib/rspec/core.rb#85
14
+ def configuration; end
15
+
16
+ # source://rspec-core/3.13.0/lib/rspec/core.rb#49
17
+ def configuration=(_arg0); end
18
+
19
+ # source://rspec-core/3.13.0/lib/rspec/core.rb#97
20
+ def configure; end
21
+
22
+ # source://rspec-core/3.13.0/lib/rspec/core.rb#194
23
+ def const_missing(name); end
24
+
25
+ # source://rspec-core/3.13.0/lib/rspec/core/dsl.rb#42
26
+ def context(*args, &example_group_block); end
27
+
28
+ # source://rspec-core/3.13.0/lib/rspec/core.rb#122
29
+ def current_example; end
30
+
31
+ # source://rspec-core/3.13.0/lib/rspec/core.rb#128
32
+ def current_example=(example); end
33
+
34
+ # source://rspec-core/3.13.0/lib/rspec/core.rb#154
35
+ def current_scope; end
36
+
37
+ # source://rspec-core/3.13.0/lib/rspec/core.rb#134
38
+ def current_scope=(scope); end
39
+
40
+ # source://rspec-core/3.13.0/lib/rspec/core/dsl.rb#42
41
+ def describe(*args, &example_group_block); end
42
+
43
+ # source://rspec-core/3.13.0/lib/rspec/core/dsl.rb#42
44
+ def example_group(*args, &example_group_block); end
45
+
46
+ # source://rspec-core/3.13.0/lib/rspec/core/dsl.rb#42
47
+ def fcontext(*args, &example_group_block); end
48
+
49
+ # source://rspec-core/3.13.0/lib/rspec/core/dsl.rb#42
50
+ def fdescribe(*args, &example_group_block); end
51
+
52
+ # source://rspec-core/3.13.0/lib/rspec/core.rb#58
53
+ def reset; end
54
+
55
+ # source://rspec-core/3.13.0/lib/rspec/core/shared_example_group.rb#110
56
+ def shared_context(name, *args, &block); end
57
+
58
+ # source://rspec-core/3.13.0/lib/rspec/core/shared_example_group.rb#110
59
+ def shared_examples(name, *args, &block); end
60
+
61
+ # source://rspec-core/3.13.0/lib/rspec/core/shared_example_group.rb#110
62
+ def shared_examples_for(name, *args, &block); end
63
+
64
+ # source://rspec-core/3.13.0/lib/rspec/core.rb#160
65
+ def world; end
66
+
67
+ # source://rspec-core/3.13.0/lib/rspec/core.rb#49
68
+ def world=(_arg0); end
69
+
70
+ # source://rspec-core/3.13.0/lib/rspec/core/dsl.rb#42
71
+ def xcontext(*args, &example_group_block); end
72
+
73
+ # source://rspec-core/3.13.0/lib/rspec/core/dsl.rb#42
74
+ def xdescribe(*args, &example_group_block); end
75
+ end
76
+ end
77
+
78
+ # source://rspec//lib/rspec/version.rb#2
79
+ module RSpec::Version; end
80
+
81
+ # source://rspec//lib/rspec/version.rb#3
82
+ RSpec::Version::STRING = T.let(T.unsafe(nil), String)