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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: af2b6dfa46241060613e75a10a13a38070628b54ba8395c0368a30863af02a68
4
- data.tar.gz: e0d0e82c67310aff1003147694650b5406baf168d5a292bc1d5100828c2e4c86
3
+ metadata.gz: 23778a674630045a6fe926f90f360d5e6dca043311df6bc386a0019875fe222e
4
+ data.tar.gz: 3bfb61bf5f48e3f6910505e5cca758be826107f40a651e7121fdb1aa50c05f44
5
5
  SHA512:
6
- metadata.gz: 7855faa0c93cb34dd217f9a0a0b228ab49fb58c9cd537ec0bf473555bff33c5a47a2e5a7b04d5bde8e8c9318c253abf321a6a910a70c006c985e58b16dfa51db
7
- data.tar.gz: e1cc0038f797e1e9cc5054b53fb06fab0ad908ff37c52e38a90d27c1b2171008ae5672b65b7270106c47d0d1b690438fde14223c8c236815e44c798c2ea649a8
6
+ metadata.gz: 611be3d0d7e758d023f2b0b62f3217d422f60f6575db35860d9083e2284b4731ff06df565ffd0048e0a7a6515b5e8b59434479d713e942ce5b498d384e9ba1c9
7
+ data.tar.gz: 49066b299c7ad530598851200f7a22e23ff319b890dc8be61ec30f553c066ee7375edfd4ec7460c01a5d33c56d0ead1b8726a40f5451d5184787fe403006f0ca
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  - No changes yet.
4
4
 
5
+ ## [0.1.5] - 2025-06-30
6
+
7
+ - Add Steepfile for type checking configuration and update RBS signatures for inline_partial methods
8
+
5
9
  ## [0.1.4] - 2025-06-29
6
10
 
7
11
  - Update installation instructions in README to clarify Gemfile usage
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module InlinePartial
4
- VERSION = "0.1.4"
4
+ VERSION = "0.1.5"
5
5
  end
@@ -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
- # objectパラメータとcollectionキーワード引数に対応
9
- def render_inline_partial: ((Symbol | String), ?untyped, ?collection: untyped) -> untyped
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
- class Railtie < Rails::Railtie
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
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-29 00:00:00.000000000 Z
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