inline_partial 0.1.4 → 0.1.5
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/Steepfile +26 -0
- data/lib/inline_partial/version.rb +1 -1
- data/sig/inline_partial.rbs +21 -5
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23778a674630045a6fe926f90f360d5e6dca043311df6bc386a0019875fe222e
|
4
|
+
data.tar.gz: 3bfb61bf5f48e3f6910505e5cca758be826107f40a651e7121fdb1aa50c05f44
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 611be3d0d7e758d023f2b0b62f3217d422f60f6575db35860d9083e2284b4731ff06df565ffd0048e0a7a6515b5e8b59434479d713e942ce5b498d384e9ba1c9
|
7
|
+
data.tar.gz: 49066b299c7ad530598851200f7a22e23ff319b890dc8be61ec30f553c066ee7375edfd4ec7460c01a5d33c56d0ead1b8726a40f5451d5184787fe403006f0ca
|
data/CHANGELOG.md
CHANGED
data/Steepfile
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
D = Steep::Diagnostic
|
4
|
+
|
5
|
+
target :lib do
|
6
|
+
signature "sig"
|
7
|
+
|
8
|
+
check "lib"
|
9
|
+
|
10
|
+
# library "pathname" # Standard libraries
|
11
|
+
# library "strong_json" # Gems
|
12
|
+
|
13
|
+
configure_code_diagnostics do |hash|
|
14
|
+
hash[D::Ruby::UnannotatedEmptyCollection] = :information # Empty collection warnings to info level
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
# target :test do
|
19
|
+
# unreferenced! # Skip type checking the `lib` code when types in `test` target is changed
|
20
|
+
# signature "sig/test" # Put RBS files for tests under `sig/test`
|
21
|
+
# check "test" # Type check Ruby scripts under `test`
|
22
|
+
#
|
23
|
+
# configure_code_diagnostics(D::Ruby.lenient) # Weak type checking for test code
|
24
|
+
#
|
25
|
+
# # library "pathname" # Standard libraries
|
26
|
+
# end
|
data/sig/inline_partial.rbs
CHANGED
@@ -2,13 +2,29 @@ module InlinePartial
|
|
2
2
|
VERSION: String
|
3
3
|
|
4
4
|
module Helper
|
5
|
-
|
6
|
-
def inline_partial: ((Symbol | String), { (*untyped) -> untyped }) -> nil
|
5
|
+
@_inline_partials: Hash[(Symbol | String), ^(*untyped) -> untyped]
|
7
6
|
|
8
|
-
|
9
|
-
|
7
|
+
def inline_partial: ((Symbol | String)) { (*untyped) -> untyped } -> nil
|
8
|
+
|
9
|
+
def render_inline_partial: ((Symbol | String), ?Object, ?collection: Array[untyped]) -> String
|
10
|
+
|
11
|
+
private
|
12
|
+
|
13
|
+
def safe_join: (Array[untyped]) -> untyped
|
14
|
+
def capture: (untyped) { (*untyped) -> untyped } -> untyped
|
15
|
+
end
|
16
|
+
|
17
|
+
class Railtie
|
18
|
+
def self.initializer: (String) { () -> void } -> void
|
10
19
|
end
|
20
|
+
end
|
11
21
|
|
12
|
-
|
22
|
+
module Rails
|
23
|
+
class Railtie
|
24
|
+
def self.initializer: (String) { () -> void } -> void
|
13
25
|
end
|
14
26
|
end
|
27
|
+
|
28
|
+
module ActiveSupport
|
29
|
+
def self.on_load: (Symbol) { () -> void } -> void
|
30
|
+
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inline_partial
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lef237
|
8
8
|
bindir: exe
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-06-
|
10
|
+
date: 2025-06-30 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: rails
|
@@ -37,6 +37,7 @@ files:
|
|
37
37
|
- LICENSE.txt
|
38
38
|
- README.md
|
39
39
|
- Rakefile
|
40
|
+
- Steepfile
|
40
41
|
- lib/inline_partial.rb
|
41
42
|
- lib/inline_partial/helper.rb
|
42
43
|
- lib/inline_partial/railtie.rb
|