inline_partial 0.1.0 → 0.1.1

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: 001e33d06f529c175c05f8c34d8fed9868a3d6c1e6945b1ba0df95de8bf96cc9
4
- data.tar.gz: 33bf987d20b9be8c0937df970d87c04e37953687eaf179a20e5b51a16da3a8c5
3
+ metadata.gz: 76ca0f8544f2dcfe9a820c1281ae48b59dc90a9e590044e351a6283f07d40cec
4
+ data.tar.gz: be86fe0ba7bac748344990dcacdc7dc774f5e1c5d70b80d4e2cab46112cd262c
5
5
  SHA512:
6
- metadata.gz: 036bc1842e3861a1a9c4559832628765bb8683c0aaf3465e72354f657a111cc170b4db3658960f06170344792d5ceb7e5ee8509858152aa37b01809de4fd01eb
7
- data.tar.gz: b507b7a9d180329ef87e1b40a673824c0f71194f89d0c720d3cab812042f36aa5a53415d7501a66f10ba091a4d06c5ebee42a327286b02b4da5c805355acd9ab
6
+ metadata.gz: '08c47f45d944c7caeb6af274158654fb1b7680bdba20a2cd8a999c1db06518b791aeb5a26e85d20e3d59ce0f34ff5509b5b849910c48a020a99f7af209dd8a33'
7
+ data.tar.gz: 58e8dcd6364a17eb1c66affb3b83381cd774ee68ec9f8c886d0e04c8176f1a01329c33e8e4960960f32cc5aa466fa228384be587636c7fa88f05c332c653fd7c
data/CHANGELOG.md CHANGED
@@ -1,4 +1,7 @@
1
- ## [Unreleased]
1
+ ## [0.1.1] - 2025-06-28
2
+
3
+ - Second release of inline_partial gem.
4
+ - Refactored `render_inline_partial` method to use explicit object parameter instead of `*args`.
2
5
 
3
6
  ## [0.1.0] - 2025-06-28
4
7
 
@@ -10,7 +10,7 @@ module InlinePartial
10
10
  nil
11
11
  end
12
12
 
13
- def render_inline_partial(name, *args, collection: nil)
13
+ def render_inline_partial(name, object = nil, collection: nil)
14
14
  raise ArgumentError, "partial name must be present (not nil)" if name.nil?
15
15
 
16
16
  if collection
@@ -21,7 +21,7 @@ module InlinePartial
21
21
  partial = @_inline_partials&.[](name)
22
22
  raise ArgumentError, "inline partial :#{name.inspect} not found" unless partial
23
23
 
24
- capture(*args, &partial)
24
+ capture(object, &partial)
25
25
  end
26
26
  end
27
27
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module InlinePartial
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
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.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - lef237