inline_partial 0.1.1 → 0.1.2

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: 76ca0f8544f2dcfe9a820c1281ae48b59dc90a9e590044e351a6283f07d40cec
4
- data.tar.gz: be86fe0ba7bac748344990dcacdc7dc774f5e1c5d70b80d4e2cab46112cd262c
3
+ metadata.gz: cf589099fdc68511ac7d1e64ac5492ad210099aa6604af9c4ee8d49f3d6a6f73
4
+ data.tar.gz: b9a405ca7894b06eb720d3f730f6a16dfa5e2bd118ea2c83a03115335633a484
5
5
  SHA512:
6
- metadata.gz: '08c47f45d944c7caeb6af274158654fb1b7680bdba20a2cd8a999c1db06518b791aeb5a26e85d20e3d59ce0f34ff5509b5b849910c48a020a99f7af209dd8a33'
7
- data.tar.gz: 58e8dcd6364a17eb1c66affb3b83381cd774ee68ec9f8c886d0e04c8176f1a01329c33e8e4960960f32cc5aa466fa228384be587636c7fa88f05c332c653fd7c
6
+ metadata.gz: 1f39cfa31235ed73a17dc8cb14400fdf095a06b52ce1a86f85133dd964598feb4ec227f9f77c848ba5db071bda26aad25caa138e69dc7e29e152c51322d23b94
7
+ data.tar.gz: '0218cffaa9da21814eeb1606784ff6108b211b24b94717bf596db14f5156d47ac7237e3c221fd53732bb4447fd6d11c5448a26d8d3388d59080976bd33c1d83e'
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## [Unreleased]
2
+
3
+ - No changes yet.
4
+
5
+ ## [0.1.2] - 2025-06-28
6
+
7
+ - Update README to emphasize that partial templates can be defined with **any name**
8
+ - Clarify README and RBS documentation for inline_partial usage and parameters
9
+
1
10
  ## [0.1.1] - 2025-06-28
2
11
 
3
12
  - Second release of inline_partial gem.
data/README.md CHANGED
@@ -22,7 +22,7 @@ You can define a reusable ERB partial directly in your view:
22
22
  <%= render_inline_partial :foo %>
23
23
  ```
24
24
 
25
- This example defines a partial template named `user_row`. In this way, you can define partial templates with any name.
25
+ This example defines a partial template named `:user_row`. You can define inline partials with **any name**, using either a **symbol** or a **string**.
26
26
 
27
27
  ```erb
28
28
  <% inline_partial(:user_row) do |user| %>
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module InlinePartial
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
@@ -3,10 +3,10 @@ module InlinePartial
3
3
 
4
4
  module Helper
5
5
  # パーシャルの定義(ブロック必須)
6
- def inline_partial: ((Symbol | String)?) { (*untyped) -> untyped } -> nil
6
+ def inline_partial: ((Symbol | String), { (*untyped) -> untyped }) -> nil
7
7
 
8
- # collection キーワード引数に対応
9
- def render_inline_partial: (Symbol | String, *untyped, ?collection: untyped) -> untyped
8
+ # objectパラメータとcollectionキーワード引数に対応
9
+ def render_inline_partial: ((Symbol | String), ?untyped, ?collection: untyped) -> untyped
10
10
  end
11
11
 
12
12
  class Railtie < Rails::Railtie
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inline_partial
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - lef237