searchcraft 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. checksums.yaml +4 -4
  2. data/.gem_rbs_collection/actionpack/6.0/.rbs_meta.yaml +9 -0
  3. data/.gem_rbs_collection/actionpack/6.0/actioncontroller.rbs +127 -0
  4. data/.gem_rbs_collection/actionpack/6.0/actionpack-generated.rbs +12094 -0
  5. data/.gem_rbs_collection/actionpack/6.0/patch.rbs +93 -0
  6. data/.gem_rbs_collection/actionview/6.0/.rbs_meta.yaml +9 -0
  7. data/.gem_rbs_collection/actionview/6.0/actionview-generated.rbs +10768 -0
  8. data/.gem_rbs_collection/actionview/6.0/patch.rbs +64 -0
  9. data/.gem_rbs_collection/activemodel/7.0/.rbs_meta.yaml +9 -0
  10. data/.gem_rbs_collection/activemodel/7.0/activemodel-7.0.rbs +1 -0
  11. data/.gem_rbs_collection/activemodel/7.0/activemodel-generated.rbs +4319 -0
  12. data/.gem_rbs_collection/activemodel/7.0/manifest.yaml +12 -0
  13. data/.gem_rbs_collection/activemodel/7.0/patch.rbs +20 -0
  14. data/.gem_rbs_collection/activerecord/7.0/.rbs_meta.yaml +9 -0
  15. data/.gem_rbs_collection/activerecord/7.0/activerecord-7.0.rbs +21 -0
  16. data/.gem_rbs_collection/activerecord/7.0/activerecord-generated.rbs +24943 -0
  17. data/.gem_rbs_collection/activerecord/7.0/activerecord.rbs +563 -0
  18. data/.gem_rbs_collection/activerecord/7.0/manifest.yaml +12 -0
  19. data/.gem_rbs_collection/activerecord/7.0/patch.rbs +41 -0
  20. data/.gem_rbs_collection/activerecord/7.0/railties.rbs +120 -0
  21. data/.gem_rbs_collection/activesupport/7.0/.rbs_meta.yaml +9 -0
  22. data/.gem_rbs_collection/activesupport/7.0/activesupport-7.0.rbs +51 -0
  23. data/.gem_rbs_collection/activesupport/7.0/activesupport-generated.rbs +12672 -0
  24. data/.gem_rbs_collection/activesupport/7.0/activesupport.rbs +237 -0
  25. data/.gem_rbs_collection/activesupport/7.0/manifest.yaml +14 -0
  26. data/.gem_rbs_collection/activesupport/7.0/patch.rbs +89 -0
  27. data/.gem_rbs_collection/ast/2.4/.rbs_meta.yaml +9 -0
  28. data/.gem_rbs_collection/ast/2.4/ast.rbs +73 -0
  29. data/.gem_rbs_collection/concurrent-ruby/1.1/.rbs_meta.yaml +9 -0
  30. data/.gem_rbs_collection/concurrent-ruby/1.1/executor.rbs +26 -0
  31. data/.gem_rbs_collection/concurrent-ruby/1.1/promises.rbs +249 -0
  32. data/.gem_rbs_collection/concurrent-ruby/1.1/utility/processor_counter.rbs +5 -0
  33. data/.gem_rbs_collection/i18n/1.10/.rbs_meta.yaml +9 -0
  34. data/.gem_rbs_collection/i18n/1.10/backend.rbs +269 -0
  35. data/.gem_rbs_collection/i18n/1.10/i18n.rbs +117 -0
  36. data/.gem_rbs_collection/listen/3.2/.rbs_meta.yaml +9 -0
  37. data/.gem_rbs_collection/listen/3.2/listen.rbs +25 -0
  38. data/.gem_rbs_collection/listen/3.2/listener.rbs +24 -0
  39. data/.gem_rbs_collection/nokogiri/1.11/.rbs_meta.yaml +9 -0
  40. data/.gem_rbs_collection/nokogiri/1.11/nokogiri.rbs +2332 -0
  41. data/.gem_rbs_collection/nokogiri/1.11/patch.rbs +4 -0
  42. data/.gem_rbs_collection/rack/2.2/.rbs_meta.yaml +9 -0
  43. data/.gem_rbs_collection/rack/2.2/manifest.yaml +3 -0
  44. data/.gem_rbs_collection/rack/2.2/rack.rbs +1433 -0
  45. data/.gem_rbs_collection/rails-dom-testing/2.0/.rbs_meta.yaml +9 -0
  46. data/.gem_rbs_collection/rails-dom-testing/2.0/rails-dom-testing.rbs +55 -0
  47. data/.gem_rbs_collection/railties/6.0/.rbs_meta.yaml +9 -0
  48. data/.gem_rbs_collection/railties/6.0/manifest.yaml +2 -0
  49. data/.gem_rbs_collection/railties/6.0/patch.rbs +56 -0
  50. data/.gem_rbs_collection/railties/6.0/railties-generated.rbs +4858 -0
  51. data/.gem_rbs_collection/rainbow/3.0/.rbs_meta.yaml +9 -0
  52. data/.gem_rbs_collection/rainbow/3.0/global.rbs +7 -0
  53. data/.gem_rbs_collection/rainbow/3.0/presenter.rbs +209 -0
  54. data/.gem_rbs_collection/rainbow/3.0/rainbow.rbs +5 -0
  55. data/.gem_rbs_collection/rake/13.0/.rbs_meta.yaml +9 -0
  56. data/.gem_rbs_collection/rake/13.0/manifest.yaml +2 -0
  57. data/.gem_rbs_collection/rake/13.0/rake.rbs +28 -0
  58. data/.gem_rbs_collection/thor/1.2/.rbs_meta.yaml +9 -0
  59. data/.gem_rbs_collection/thor/1.2/manifest.yaml +7 -0
  60. data/.gem_rbs_collection/thor/1.2/thor.rbs +15 -0
  61. data/.overcommit.yml +10 -27
  62. data/.standard.yml +1 -1
  63. data/CHANGELOG.md +18 -3
  64. data/README.md +85 -1
  65. data/lib/searchcraft/annotate.rb +0 -2
  66. data/lib/searchcraft/builder.rb +5 -2
  67. data/lib/searchcraft/configuration.rb +19 -0
  68. data/lib/searchcraft/depends_on.rb +5 -12
  69. data/lib/searchcraft/dump_schema.rb +0 -2
  70. data/lib/searchcraft/model.rb +34 -32
  71. data/lib/searchcraft/text_search.rb +31 -0
  72. data/lib/searchcraft/version.rb +1 -1
  73. data/lib/searchcraft/view_hash_store.rb +2 -1
  74. data/lib/searchcraft.rb +2 -1
  75. data/rbs_collection.lock.yaml +174 -0
  76. data/rbs_collection.yaml +21 -0
  77. data/sig/ext/misc.rbs +33 -0
  78. data/sig/manifest.yaml +5 -0
  79. data/sig/searchcraft/annotate.rbs +7 -0
  80. data/sig/searchcraft/builder.rbs +58 -0
  81. data/sig/searchcraft/configuration.rbs +31 -0
  82. data/sig/searchcraft/depends_on.rbs +17 -0
  83. data/sig/searchcraft/dump_schema.rbs +5 -0
  84. data/sig/searchcraft/model.rbs +19 -0
  85. data/sig/searchcraft/railtie.rbs +5 -0
  86. data/sig/searchcraft/text_search.rbs +11 -0
  87. data/sig/searchcraft/view_hash_store.rbs +17 -0
  88. data/sig/searchcraft.rbs +17 -1
  89. metadata +86 -14
  90. data/Rakefile +0 -14
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9b3ce96e5074f0e8664cc1a43c05de1d08d2c95c93e48fec2cc8d5bdb5c6822e
4
- data.tar.gz: af503170e6d640853d0d4491019180a86bafbbff0aeedd38424f4053727d4285
3
+ metadata.gz: f97a2c7a55d3ccc12f032416b977dd1628285f9e1b1f64b5fe690d57f5086acb
4
+ data.tar.gz: 42f521f0a114fe21a88165632919d2c2a7fb74fd2dd35b6a7dd3fedba58daed2
5
5
  SHA512:
6
- metadata.gz: 72fdda7202a5da3c7be085e5ed47a8cc837032698935a9a029a3a7d4f8940ff7a9e048a52cac2777e314b96d4ffd57be971ed976f5bbd8183fbdcee87adf102c
7
- data.tar.gz: 9bd38d8a0a60e89b755098c2744c9380843c5898300e6a836f9f70b576da67094b97de3340d01ec777b2e8fcce475a4bc60ff4d00a510b0c7096478b1817aba3
6
+ metadata.gz: ada2ebc9f32ab873bde7c313465fd4711f8416bd25409b0eef66530bdf48e12b58e514a6e26197db5cf6e32fbd2bc9c4a3074bc662423f99e5c701daf6390283
7
+ data.tar.gz: 41c3d14649b1ffb1e90428c81727758c03c91d1deae80f6e6b2c0f04bba68f57d28ce0da5eeb6234fadf5b7525e56a785ffc4de311af9aa35d0d3edf77b44c0f
@@ -0,0 +1,9 @@
1
+ ---
2
+ name: actionpack
3
+ version: '6.0'
4
+ source:
5
+ type: git
6
+ name: ruby/gem_rbs_collection
7
+ revision: 3e93a59bd5da185b68187991630ac9a54a2468a7
8
+ remote: https://github.com/ruby/gem_rbs_collection.git
9
+ repo_dir: gems
@@ -0,0 +1,127 @@
1
+ module ActionController
2
+ interface _API_and_Base
3
+ def session: () -> untyped
4
+ def flash: () -> untyped
5
+ end
6
+
7
+ interface _API_and_Base_singletion
8
+ def rescue_from: (*Class, ?with: Symbol | Proc) -> void
9
+ | (*Class) { (Exception) -> void } -> void
10
+ end
11
+
12
+ class Base < Metal
13
+ include _API_and_Base
14
+ extend _API_and_Base_singletion
15
+
16
+ # https://github.com/rails/rails/blob/v6.0.3.2/actionpack/lib/action_controller/base.rb#L205-L255
17
+ include AbstractController::Rendering
18
+ include AbstractController::Translation
19
+ include AbstractController::AssetPaths
20
+ include Helpers
21
+ extend Helpers::ClassMethods
22
+ extend AbstractController::Helpers::ClassMethods
23
+ include UrlFor
24
+ include Redirecting
25
+ include ActionView::Layouts
26
+ extend ::ActionView::Layouts::ClassMethods
27
+ include Rendering
28
+ extend Rendering::ClassMethods
29
+ include Renderers::All
30
+ include ConditionalGet
31
+ extend ConditionalGet::ClassMethods
32
+ include EtagWithTemplateDigest
33
+ include EtagWithFlash
34
+ include Caching
35
+ include MimeResponds
36
+ include ImplicitRender
37
+ include StrongParameters
38
+ include ParameterEncoding
39
+ extend ParameterEncoding::ClassMethods
40
+ include Cookies
41
+ include Flash
42
+ extend Flash::ClassMethods
43
+ include FormBuilder
44
+ extend FormBuilder::ClassMethods
45
+ include RequestForgeryProtection
46
+ extend RequestForgeryProtection::ClassMethods
47
+ include ContentSecurityPolicy
48
+ extend ContentSecurityPolicy::ClassMethods
49
+ include ForceSSL
50
+ extend ForceSSL::ClassMethods
51
+ include Streaming
52
+ include DataStreaming
53
+ include HttpAuthentication::Basic::ControllerMethods
54
+ extend HttpAuthentication::Basic::ControllerMethods::ClassMethods
55
+ include HttpAuthentication::Digest::ControllerMethods
56
+ include HttpAuthentication::Token::ControllerMethods
57
+ include DefaultHeaders
58
+ extend DefaultHeaders::ClassMethods
59
+ include AbstractController::Callbacks
60
+ extend AbstractController::Callbacks::ClassMethods
61
+ include Rescue
62
+ include Instrumentation
63
+ extend Instrumentation::ClassMethods
64
+ include ParamsWrapper
65
+ extend ParamsWrapper::ClassMethods
66
+ end
67
+
68
+ class API < Metal
69
+ include _API_and_Base
70
+ extend _API_and_Base_singletion
71
+
72
+ # https://github.com/rails/rails/blob/v6.0.3.2/actionpack/lib/action_controller/api.rb#L112-L145
73
+ include AbstractController::Rendering
74
+ include UrlFor
75
+ include Redirecting
76
+ include ApiRendering
77
+ include Renderers::All
78
+ include ConditionalGet
79
+ extend ConditionalGet::ClassMethods
80
+ include BasicImplicitRender
81
+ include StrongParameters
82
+ include ForceSSL
83
+ extend ForceSSL::ClassMethods
84
+ include DataStreaming
85
+ include DefaultHeaders
86
+ extend DefaultHeaders::ClassMethods
87
+ include AbstractController::Callbacks
88
+ extend AbstractController::Callbacks::ClassMethods
89
+ include Rescue
90
+ include Instrumentation
91
+ extend Instrumentation::ClassMethods
92
+ include ParamsWrapper
93
+ extend ParamsWrapper::ClassMethods
94
+ end
95
+ end
96
+
97
+ module AbstractController::Callbacks::ClassMethods
98
+ interface _BeforeActionCallback
99
+ def before: (ActionController::Base controller) -> void
100
+ end
101
+
102
+ interface _AroundActionCallback
103
+ def around: (ActionController::Base controller) { () -> void } -> void
104
+ end
105
+
106
+ interface _AfterActionCallback
107
+ def after: (ActionController::Base controller) -> void
108
+ end
109
+
110
+ type before_action_callback = Symbol | ^(instance controller) [self: instance] -> void | _BeforeActionCallback
111
+ type around_action_callback = Symbol | ^(instance controller, ^() -> void) [self: instance] -> void | _AroundActionCallback
112
+ type after_action_callback = Symbol | ^(instance controller) [self: instance] -> void | _AfterActionCallback
113
+
114
+ def before_action: (*before_action_callback) ?{ (instance controller) [self: instance] -> void } -> void
115
+ def around_action: (*around_action_callback) ?{ (instance controller, ^() -> void) [self: instance] -> void } -> void
116
+ def after_action: (*after_action_callback) ?{ (instance controller) [self: instance] -> void } -> void
117
+ def skip_before_action: (*before_action_callback) ?{ (instance controller) [self: instance] -> void } -> void
118
+ def skip_around_action: (*around_action_callback) ?{ (instance controller, ^() -> void) [self: instance] -> void } -> void
119
+ def skip_after_action: (*after_action_callback) ?{ (instance controller) [self: instance] -> void } -> void
120
+ def prepend_before_action: (*before_action_callback) ?{ (instance controller) [self: instance] -> void } -> void
121
+ def prepend_around_action: (*around_action_callback) ?{ (instance controller, ^() -> void) [self: instance] -> void } -> void
122
+ def prepend_after_action: (*after_action_callback) ?{ (instance controller) [self: instance] -> void } -> void
123
+
124
+ alias append_before_action before_action
125
+ alias append_around_action around_action
126
+ alias append_after_action after_action
127
+ end