inline_partial 0.1.4 → 0.1.6

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: 6d0216cde8fd6f00d0391bca603f7590f8e461b671fbadb5296d1bc7eaeb5717
4
+ data.tar.gz: 5ed86c3807ba4046ced0cd329c1ec5d2f8adcb0e662224e598be95c1639126a3
5
5
  SHA512:
6
- metadata.gz: 7855faa0c93cb34dd217f9a0a0b228ab49fb58c9cd537ec0bf473555bff33c5a47a2e5a7b04d5bde8e8c9318c253abf321a6a910a70c006c985e58b16dfa51db
7
- data.tar.gz: e1cc0038f797e1e9cc5054b53fb06fab0ad908ff37c52e38a90d27c1b2171008ae5672b65b7270106c47d0d1b690438fde14223c8c236815e44c798c2ea649a8
6
+ metadata.gz: 5e4894ecdc2a12b692ebc1d93e5237de4427486e5d219a54fcb7b63e023d42aeb21c998152a9cc5eafb9fdc629ed0241e6337f2399560a7a3b9ad62a40e09842
7
+ data.tar.gz: 5f7be0ec10400e20a0d2bc99109d7861dfaa593738b946d21e9f70f10d10b82ac8d7262de938ea8f723fdcf677ed0f973ab724747e9fd1018d2364aba2ee2640
data/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  - No changes yet.
4
4
 
5
+ ## [0.1.6] - 2025-10-25
6
+
7
+ - Fix gemspec homepage URL to point to project repository
8
+
9
+ ## [0.1.5] - 2025-06-30
10
+
11
+ - Add Steepfile for type checking configuration and update RBS signatures for inline_partial methods
12
+
5
13
  ## [0.1.4] - 2025-06-29
6
14
 
7
15
  - 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.6"
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.6
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-10-25 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: rails
@@ -37,17 +37,18 @@ 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
43
44
  - lib/inline_partial/version.rb
44
45
  - sig/inline_partial.rbs
45
- homepage: https://github.com/lef237
46
+ homepage: https://github.com/lef237/inline_partial
46
47
  licenses:
47
48
  - MIT
48
49
  metadata:
49
50
  allowed_push_host: https://rubygems.org
50
- homepage_uri: https://github.com/lef237
51
+ homepage_uri: https://github.com/lef237/inline_partial
51
52
  source_code_uri: https://github.com/lef237/inline_partial
52
53
  changelog_uri: https://github.com/lef237/inline_partial/blob/main/CHANGELOG.md
53
54
  rdoc_options: []