inline_partial 0.1.1 → 0.1.3

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: 28315b57043785041846bd8d8ed3af5a2cd43ab2a295b8d0d11da17acf0ddc05
4
+ data.tar.gz: 054bde76bed333dd8e30a18ad977bbe7c08e0da2354402811889e7f0e9f2fcaa
5
5
  SHA512:
6
- metadata.gz: '08c47f45d944c7caeb6af274158654fb1b7680bdba20a2cd8a999c1db06518b791aeb5a26e85d20e3d59ce0f34ff5509b5b849910c48a020a99f7af209dd8a33'
7
- data.tar.gz: 58e8dcd6364a17eb1c66affb3b83381cd774ee68ec9f8c886d0e04c8176f1a01329c33e8e4960960f32cc5aa466fa228384be587636c7fa88f05c332c653fd7c
6
+ metadata.gz: 693790e7ded13092bcd588b69e151a0906e8b8fadc3753bac7da08a7ee8c240741ad8d6ea2a9403004f8c28ed40e8c4533e34edd3a5418b43f985ecbce912c6d
7
+ data.tar.gz: bbdbf3eabf69f483eaaec1730fc10ad1f4ee96a3381323a6a293f8f99dcb89082862ba691f6eaa0ca0a86fb8183774d82e4a08b131ae11fb892e2e53f21a0eae
data/CHANGELOG.md CHANGED
@@ -1,3 +1,16 @@
1
+ ## [Unreleased]
2
+
3
+ - No changes yet.
4
+
5
+ ## [0.1.3] - 2025-06-28
6
+
7
+ - Remove default value for inline_partial name parameter
8
+
9
+ ## [0.1.2] - 2025-06-28
10
+
11
+ - Update README to emphasize that partial templates can be defined with **any name**
12
+ - Clarify README and RBS documentation for inline_partial usage and parameters
13
+
1
14
  ## [0.1.1] - 2025-06-28
2
15
 
3
16
  - 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| %>
@@ -2,7 +2,7 @@
2
2
 
3
3
  module InlinePartial
4
4
  module Helper
5
- def inline_partial(name = :_, &block)
5
+ def inline_partial(name, &block)
6
6
  raise ArgumentError, "partial name must be present (not nil)" if name.nil?
7
7
 
8
8
  @_inline_partials ||= {}
@@ -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.3"
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.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - lef237